[03:17:30]OFD Sender: No OFD packet to send [03:17:35]OFD Sender: No OFD packet to send [03:17:40]OFD Sender: No OFD packet to send [03:17:45]OFD Sender: No OFD packet to send [03:17:50]OFD Sender: No OFD packet to send [03:17:55]OFD Sender: No OFD packet to send [03:18:00]OFD Sender: No OFD packet to send [03:18:05]OFD Sender: No OFD packet to send [03:18:10]OFD Sender: No OFD packet to send [03:18:15]OFD Sender: No OFD packet to send [03:18:20]OFD Sender: No OFD packet to send [03:18:25]OFD Sender: No OFD packet to send [03:18:30]OFD Sender: No OFD packet to send [03:18:35]OFD Sender: No OFD packet to send [03:18:40]OFD Sender: No OFD packet to send [03:18:45]OFD Sender: No OFD packet to send [03:18:50]OFD Sender: No OFD packet to send [03:18:55]OFD Sender: No OFD packet to send [03:19:00]OFD Sender: No OFD packet to send [03:19:05]OFD Sender: No OFD packet to send [03:19:10]OFD Sender: No OFD packet to send [03:19:15]OFD Sender: No OFD packet to send [03:19:20]OFD Sender: No OFD packet to send [03:19:25]OFD Sender: No OFD packet to send [03:19:30]OFD Sender: No OFD packet to send [03:19:35]OFD Sender: No OFD packet to send [03:19:40]OFD Sender: No OFD packet to send [03:19:45]OFD Sender: No OFD packet to send [03:19:50]OFD Sender: No OFD packet to send [03:19:55]OFD Sender: No OFD packet to send [03:20:00]OFD Sender: No OFD packet to send [03:20:05]OFD Sender: No OFD packet to send [03:20:10]OFD Sender: No OFD packet to send [03:20:15]OFD Sender: No OFD packet to send [03:20:20]OFD Sender: No OFD packet to send [03:20:25]OFD Sender: No OFD packet to send [03:20:30]OFD Sender: No OFD packet to send [03:20:35]OFD Sender: No OFD packet to send [03:20:40]OFD Sender: No OFD packet to send [03:20:45]OFD Sender: No OFD packet to send [03:20:50]OFD Sender: No OFD packet to send [03:20:55]OFD Sender: No OFD packet to send [03:21:00]OFD Sender: No OFD packet to send [03:21:05]OFD Sender: No OFD packet to send [03:21:10]OFD Sender: No OFD packet to send [03:21:15]OFD Sender: No OFD packet to send [03:21:20]OFD Sender: No OFD packet to send [03:21:25]OFD Sender: No OFD packet to send [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:06]OFD Sender: No OFD packet to send [03:27:11]OFD Sender: No OFD packet to send [03:27:16]OFD Sender: No OFD packet to send [03:27:21]OFD Sender: No OFD packet to send [03:27:26]OFD Sender: No OFD packet to send [03:27:31]OFD Sender: No OFD packet to send [03:27:36]OFD Sender: No OFD packet to send [03:27:41]OFD Sender: No OFD packet to send [03:27:46]OFD Sender: No OFD packet to send [03:27:51]OFD Sender: No OFD packet to send [03:27:56]OFD Sender: No OFD packet to send [03:28:01]OFD Sender: No OFD packet to send [03:28:06]OFD Sender: No OFD packet to send [03:28:11]OFD Sender: No OFD packet to send [03:28:16]OFD Sender: No OFD packet to send [03:28:21]OFD Sender: No OFD packet to send [03:28:26]OFD Sender: No OFD packet to send [03:28:31]OFD Sender: No OFD packet to send [03:28:36]OFD Sender: No OFD packet to send [03:28:41]OFD Sender: No OFD packet to send [03:28:46]OFD Sender: No OFD packet to send [03:28:51]OFD Sender: No OFD packet to send [03:28:56]OFD Sender: No OFD packet to send [03:29:01]OFD Sender: No OFD packet to send [03:29:06]OFD Sender: No OFD packet to send [03:29:11]OFD Sender: No OFD packet to send [03:29:16]OFD Sender: No OFD packet to send [03:29:21]OFD Sender: No OFD packet to send [03:29:26]OFD Sender: No OFD packet to send [03:29:31]OFD Sender: No OFD packet to send [03:29:36]OFD Sender: No OFD packet to send [03:29:41]OFD Sender: No OFD packet to send [03:29:46]OFD Sender: No OFD packet to send [03:29:51]OFD Sender: No OFD packet to send [03:29:56]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:22]OFD Sender: No OFD packet to send [03:41:27]OFD Sender: No OFD packet to send [03:41:32]OFD Sender: No OFD packet to send [03:41:37]OFD Sender: No OFD packet to send [03:41:42]OFD Sender: No OFD packet to send [03:41:47]OFD Sender: No OFD packet to send [03:41:52]OFD Sender: No OFD packet to send [03:41:57]OFD Sender: No OFD packet to send [03:42:02]OFD Sender: No OFD packet to send [03:42:07]OFD Sender: No OFD packet to send [03:42:12]OFD Sender: No OFD packet to send [03:42:17]OFD Sender: No OFD packet to send [03:42:22]OFD Sender: No OFD packet to send [03:42:27]OFD Sender: No OFD packet to send [03:42:32]OFD Sender: No OFD packet to send [03:42:37]OFD Sender: No OFD packet to send [03:42:42]OFD Sender: No OFD packet to send [03:42:47]OFD Sender: No OFD packet to send [03:42:52]OFD Sender: No OFD packet to send [03:42:57]OFD Sender: No OFD packet to send [03:43:02]OFD Sender: No OFD packet to send [03:43:07]OFD Sender: No OFD packet to send [03:43:12]OFD Sender: No OFD packet to send [03:43:17]OFD Sender: No OFD packet to send [03:43:22]OFD Sender: No OFD packet to send [03:43:27]OFD Sender: No OFD packet to send [03:43:32]OFD Sender: No OFD packet to send [03:43:37]OFD Sender: No OFD packet to send [03:43:42]OFD Sender: No OFD packet to send [03:43:47]OFD Sender: No OFD packet to send [03:43:52]OFD Sender: No OFD packet to send [03:43:57]OFD Sender: No OFD packet to send [03:44:02]OFD Sender: No OFD packet to send [03:44:07]OFD Sender: No OFD packet to send [03:44:12]OFD Sender: No OFD packet to send [03:44:17]OFD Sender: No OFD packet to send [03:44:22]OFD Sender: No OFD packet to send [03:44:27]OFD Sender: No OFD packet to send [03:44:32]OFD Sender: No OFD packet to send [03:44:37]OFD Sender: No OFD packet to send [03:44:42]OFD Sender: No OFD packet to send [03:44:47]OFD Sender: No OFD packet to send [03:44:52]OFD Sender: No OFD packet to send [03:44:57]OFD Sender: No OFD packet to send [03:45:02]OFD Sender: No OFD packet to send [03:45:07]OFD Sender: No OFD packet to send [03:45:12]OFD Sender: No OFD packet to send [03:45:17]OFD Sender: No OFD packet to send [03:45:22]OFD Sender: No OFD packet to send [03:45:27]OFD Sender: No OFD packet to send [03:45:32]OFD Sender: No OFD packet to send [03:45:37]OFD Sender: No OFD packet to send [03:45:42]OFD Sender: No OFD packet to send [03:45:47]OFD Sender: No OFD packet to send [03:45:52]OFD Sender: No OFD packet to send [03:45:57]OFD Sender: No OFD packet to send [03:46:02]OFD Sender: No OFD packet to send [03:46:07]OFD Sender: No OFD packet to send [03:46:12]OFD Sender: No OFD packet to send [03:46:17]OFD Sender: No OFD packet to send [03:46:22]OFD Sender: No OFD packet to send [03:46:27]OFD Sender: No OFD packet to send [03:46:32]OFD Sender: No OFD packet to send [03:46:37]OFD Sender: No OFD packet to send [03:46:42]OFD Sender: No OFD packet to send [03:46:47]OFD Sender: No OFD packet to send [03:46:52]OFD Sender: No OFD packet to send [03:46:57]OFD Sender: No OFD packet to send [03:47:02]OFD Sender: No OFD packet to send [03:47:07]OFD Sender: No OFD packet to send [03:47:12]OFD Sender: No OFD packet to send [03:47:17]OFD Sender: No OFD packet to send [03:47:22]OFD Sender: No OFD packet to send [03:47:27]OFD Sender: No OFD packet to send [03:47:32]OFD Sender: No OFD packet to send [03:47:37]OFD Sender: No OFD packet to send [03:47:42]OFD Sender: No OFD packet to send [03:47:47]OFD Sender: No OFD packet to send [03:47:52]OFD Sender: No OFD packet to send [03:47:57]OFD Sender: No OFD packet to send [03:48:02]OFD Sender: No OFD packet to send [03:48:07]OFD Sender: No OFD packet to send [03:48:12]OFD Sender: No OFD packet to send [03:48:17]OFD Sender: No OFD packet to send [03:48:22]OFD Sender: No OFD packet to send [03:48:27]OFD Sender: No OFD packet to send [03:48:32]OFD Sender: No OFD packet to send [03:48:37]OFD Sender: No OFD packet to send [03:48:42]OFD Sender: No OFD packet to send [03:48:47]OFD Sender: No OFD packet to send [03:48:52]OFD Sender: No OFD packet to send [03:48:57]OFD Sender: No OFD packet to send [03:49:02]OFD Sender: No OFD packet to send [03:49:07]OFD Sender: No OFD packet to send [03:49:12]OFD Sender: No OFD packet to send [03:49:17]OFD Sender: No OFD packet to send [03:49:22]OFD Sender: No OFD packet to send [03:49:27]OFD Sender: No OFD packet to send [03:49:32]OFD Sender: No OFD packet to send [03:49:37]OFD Sender: No OFD packet to send [03:49:42]OFD Sender: No OFD packet to send [03:49:47]OFD Sender: No OFD packet to send [03:49:52]OFD Sender: No OFD packet to send [03:49:57]OFD Sender: No OFD packet to send [03:50:02]OFD Sender: No OFD packet to send [03:50:07]OFD Sender: No OFD packet to send [03:50:12]OFD Sender: No OFD packet to send [03:50:17]OFD Sender: No OFD packet to send [03:50:22]OFD Sender: No OFD packet to send [03:50:27]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:33]OFD Sender: No OFD packet to send [03:55:38]OFD Sender: No OFD packet to send [03:55:43]OFD Sender: No OFD packet to send [03:55:48]OFD Sender: No OFD packet to send [03:55:53]OFD Sender: No OFD packet to send [03:55:58]OFD Sender: No OFD packet to send [03:56:03]OFD Sender: No OFD packet to send [03:56:08]OFD Sender: No OFD packet to send [03:56:13]OFD Sender: No OFD packet to send [03:56:18]OFD Sender: No OFD packet to send [03:56:23]OFD Sender: No OFD packet to send [03:56:28]OFD Sender: No OFD packet to send [03:56:33]OFD Sender: No OFD packet to send [03:56:38]OFD Sender: No OFD packet to send [03:56:43]OFD Sender: No OFD packet to send [03:56:48]OFD Sender: No OFD packet to send [03:56:53]OFD Sender: No OFD packet to send [03:56:58]OFD Sender: No OFD packet to send [03:57:03]OFD Sender: No OFD packet to send [03:57:08]OFD Sender: No OFD packet to send [03:57:13]OFD Sender: No OFD packet to send [03:57:18]OFD Sender: No OFD packet to send [03:57:23]OFD Sender: No OFD packet to send [03:57:28]OFD Sender: No OFD packet to send [03:57:33]OFD Sender: No OFD packet to send [03:57:38]OFD Sender: No OFD packet to send [03:57:43]OFD Sender: No OFD packet to send [03:57:48]OFD Sender: No OFD packet to send [03:57:53]OFD Sender: No OFD packet to send [03:57:58]OFD Sender: No OFD packet to send [03:58:03]OFD Sender: No OFD packet to send [03:58:08]OFD Sender: No OFD packet to send [03:58:13]OFD Sender: No OFD packet to send [03:58:18]OFD Sender: No OFD packet to send [03:58:23]OFD Sender: No OFD packet to send [03:58:28]OFD Sender: No OFD packet to send [03:58:33]OFD Sender: No OFD packet to send [03:58:38]OFD Sender: No OFD packet to send [03:58:43]OFD Sender: No OFD packet to send [03:58:48]OFD Sender: No OFD packet to send [03:58:53]OFD Sender: No OFD packet to send [03:58:58]OFD Sender: No OFD packet to send [03:59:03]OFD Sender: No OFD packet to send [03:59:08]OFD Sender: No OFD packet to send [03:59:13]OFD Sender: No OFD packet to send [03:59:18]OFD Sender: No OFD packet to send [03:59:23]OFD Sender: No OFD packet to send [03:59:28]OFD Sender: No OFD packet to send [03:59:33]OFD Sender: No OFD packet to send [03:59:38]OFD Sender: No OFD packet to send [03:59:43]OFD Sender: No OFD packet to send [03:59:48]OFD Sender: No OFD packet to send [03:59:53]OFD Sender: No OFD packet to send [03:59:58]OFD Sender: No OFD packet to send [04:00:03]OFD Sender: No OFD packet to send [04:00:08]OFD Sender: No OFD packet to send [04:00:13]OFD Sender: No OFD packet to send [04:00:18]OFD Sender: No OFD packet to send [04:00:23]OFD Sender: No OFD packet to send [04:00:28]OFD Sender: No OFD packet to send [04:00:33]OFD Sender: No OFD packet to send [04:00:38]OFD Sender: No OFD packet to send [04:00:43]OFD Sender: No OFD packet to send [04:00:48]OFD Sender: No OFD packet to send [04:00:53]OFD Sender: No OFD packet to send [04:00:58]OFD Sender: No OFD packet to send [04:01:03]OFD Sender: No OFD packet to send [04:01:08]OFD Sender: No OFD packet to send [04:01:13]OFD Sender: No OFD packet to send [04:01:18]OFD Sender: No OFD packet to send [04:01:23]OFD Sender: No OFD packet to send [04:01:28]OFD Sender: No OFD packet to send [04:01:33]OFD Sender: No OFD packet to send [04:01:38]OFD Sender: No OFD packet to send [04:01:43]OFD Sender: No OFD packet to send [04:01:48]OFD Sender: No OFD packet to send [04:01:53]OFD Sender: No OFD packet to send [04:01:58]OFD Sender: No OFD packet to send [04:02:03]OFD Sender: No OFD packet to send [04:02:08]OFD Sender: No OFD packet to send [04:02:13]OFD Sender: No OFD packet to send [04:02:18]OFD Sender: No OFD packet to send [04:02:23]OFD Sender: No OFD packet to send [04:02:28]OFD Sender: No OFD packet to send [04:02:33]OFD Sender: No OFD packet to send [04:02:38]OFD Sender: No OFD packet to send [04:02:43]OFD Sender: No OFD packet to send [04:02:48]OFD Sender: No OFD packet to send [04:02:53]OFD Sender: No OFD packet to send [04:02:58]OFD Sender: No OFD packet to send [04:03:03]OFD Sender: No OFD packet to send [04:03:08]OFD Sender: No OFD packet to send [04:03:13]OFD Sender: No OFD packet to send [04:03:18]OFD Sender: No OFD packet to send [04:03:23]OFD Sender: No OFD packet to send [04:03:28]OFD Sender: No OFD packet to send [04:03:33]OFD Sender: No OFD packet to send [04:03:38]OFD Sender: No OFD packet to send [04:03:43]OFD Sender: No OFD packet to send [04:03:48]OFD Sender: No OFD packet to send [04:03:53]OFD Sender: No OFD packet to send [04:03:58]OFD Sender: No OFD packet to send [04:04:03]OFD Sender: No OFD packet to send [04:04:08]OFD Sender: No OFD packet to send [04:04:13]OFD Sender: No OFD packet to send [04:04:18]OFD Sender: No OFD packet to send [04:04:23]OFD Sender: No OFD packet to send [04:04:28]OFD Sender: No OFD packet to send [04:04:33]OFD Sender: No OFD packet to send [04:04:38]OFD Sender: No OFD packet to send [04:04:43]OFD Sender: No OFD packet to send [04:04:48]OFD Sender: No OFD packet to send [04:04:53]OFD Sender: No OFD packet to send [04:04:58]OFD Sender: No OFD packet to send [04:05:03]OFD Sender: No OFD packet to send [04:05:08]OFD Sender: No OFD packet to send [04:05:13]OFD Sender: No OFD packet to send [04:05:18]OFD Sender: No OFD packet to send [04:05:23]OFD Sender: No OFD packet to send [04:05:28]OFD Sender: No OFD packet to send [04:05:33]OFD Sender: No OFD packet to send [04:05:38]OFD Sender: No OFD packet to send [04:05:43]OFD Sender: No OFD packet to send [04:05:48]OFD Sender: No OFD packet to send [04:05:53]OFD Sender: No OFD packet to send [04:05:58]OFD Sender: No OFD packet to send [04:06:03]OFD Sender: No OFD packet to send [04:06:08]OFD Sender: No OFD packet to send [04:06:13]OFD Sender: No OFD packet to send [04:06:18]OFD Sender: No OFD packet to send [04:06:23]OFD Sender: No OFD packet to send [04:06:28]OFD Sender: No OFD packet to send [04:06:33]OFD Sender: No OFD packet to send [04:06:38]OFD Sender: No OFD packet to send [04:06:43]OFD Sender: No OFD packet to send [04:06:48]OFD Sender: No OFD packet to send [04:06:53]OFD Sender: No OFD packet to send [04:06:58]OFD Sender: No OFD packet to send [04:07:03]OFD Sender: No OFD packet to send [04:07:08]OFD Sender: No OFD packet to send [04:07:13]OFD Sender: No OFD packet to send [04:07:18]OFD Sender: No OFD packet to send [04:07:23]OFD Sender: No OFD packet to send [04:07:28]OFD Sender: No OFD packet to send [04:07:33]OFD Sender: No OFD packet to send [04:07:38]OFD Sender: No OFD packet to send [04:07:43]OFD Sender: No OFD packet to send [04:07:48]OFD Sender: No OFD packet to send [04:07:53]OFD Sender: No OFD packet to send [04:07:58]OFD Sender: No OFD packet to send [04:08:03]OFD Sender: No OFD packet to send [04:08:08]OFD Sender: No OFD packet to send [04:08:13]OFD Sender: No OFD packet to send [04:08:18]OFD Sender: No OFD packet to send [04:08:23]OFD Sender: No OFD packet to send [04:08:28]OFD Sender: No OFD packet to send [04:08:33]OFD Sender: No OFD packet to send [04:08:38]OFD Sender: No OFD packet to send [04:08:43]OFD Sender: No OFD packet to send [04:08:48]OFD Sender: No OFD packet to send [04:08:53]OFD Sender: No OFD packet to send [04:08:58]OFD Sender: No OFD packet to send [04:09:03]OFD Sender: No OFD packet to send [04:09:08]OFD Sender: No OFD packet to send [04:09:13]OFD Sender: No OFD packet to send [04:09:18]OFD Sender: No OFD packet to send [04:09:23]OFD Sender: No OFD packet to send [04:09:28]OFD Sender: No OFD packet to send [04:09:33]OFD Sender: No OFD packet to send [04:09:38]OFD Sender: No OFD packet to send [04:09:43]OFD Sender: No OFD packet to send [04:09:49]OFD Sender: No OFD packet to send [04:09:54]OFD Sender: No OFD packet to send [04:09:59]OFD Sender: No OFD packet to send [04:10:04]OFD Sender: No OFD packet to send [04:10:09]OFD Sender: No OFD packet to send [04:10:14]OFD Sender: No OFD packet to send [04:10:19]OFD Sender: No OFD packet to send [04:10:24]OFD Sender: No OFD packet to send [04:10:29]OFD Sender: No OFD packet to send [04:10:34]OFD Sender: No OFD packet to send [04:10:39]OFD Sender: No OFD packet to send [04:10:44]OFD Sender: No OFD packet to send [04:10:49]OFD Sender: No OFD packet to send [04:10:54]OFD Sender: No OFD packet to send [04:10:59]OFD Sender: No OFD packet to send [04:11:04]OFD Sender: No OFD packet to send [04:11:09]OFD Sender: No OFD packet to send [04:11:14]OFD Sender: No OFD packet to send [04:11:19]OFD Sender: No OFD packet to send [04:11:24]OFD Sender: No OFD packet to send [04:11:29]OFD Sender: No OFD packet to send [04:11:34]OFD Sender: No OFD packet to send [04:11:39]OFD Sender: No OFD packet to send [04:11:44]OFD Sender: No OFD packet to send [04:11:49]OFD Sender: No OFD packet to send [04:11:54]OFD Sender: No OFD packet to send [04:11:59]OFD Sender: No OFD packet to send [04:12:04]OFD Sender: No OFD packet to send [04:12:09]OFD Sender: No OFD packet to send [04:12:14]OFD Sender: No OFD packet to send [04:12:19]OFD Sender: No OFD packet to send [04:12:24]OFD Sender: No OFD packet to send [04:12:29]OFD Sender: No OFD packet to send [04:12:34]OFD Sender: No OFD packet to send [04:12:39]OFD Sender: No OFD packet to send [04:12:44]OFD Sender: No OFD packet to send [04:12:49]OFD Sender: No OFD packet to send [04:12:54]OFD Sender: No OFD packet to send [04:12:59]OFD Sender: No OFD packet to send [04:13:04]OFD Sender: No OFD packet to send [04:13:09]OFD Sender: No OFD packet to send [04:13:14]OFD Sender: No OFD packet to send [04:13:19]OFD Sender: No OFD packet to send [04:13:24]OFD Sender: No OFD packet to send [04:13:29]OFD Sender: No OFD packet to send [04:13:34]OFD Sender: No OFD packet to send [04:13:39]OFD Sender: No OFD packet to send [04:13:44]OFD Sender: No OFD packet to send [04:13:49]OFD Sender: No OFD packet to send [04:13:54]OFD Sender: No OFD packet to send [04:13:59]OFD Sender: No OFD packet to send [04:14:04]OFD Sender: No OFD packet to send [04:14:09]OFD Sender: No OFD packet to send [04:14:14]OFD Sender: No OFD packet to send [04:14:19]OFD Sender: No OFD packet to send [04:14:24]OFD Sender: No OFD packet to send [04:14:29]OFD Sender: No OFD packet to send [04:14:34]OFD Sender: No OFD packet to send [04:14:39]OFD Sender: No OFD packet to send [04:14:44]OFD Sender: No OFD packet to send [04:14:49]OFD Sender: No OFD packet to send [04:14:54]OFD Sender: No OFD packet to send [04:14:59]OFD Sender: No OFD packet to send [04:15:04]OFD Sender: No OFD packet to send [04:15:09]OFD Sender: No OFD packet to send [04:15:14]OFD Sender: No OFD packet to send [04:15:19]OFD Sender: No OFD packet to send [04:15:24]OFD Sender: No OFD packet to send [04:15:29]OFD Sender: No OFD packet to send [04:15:34]OFD Sender: No OFD packet to send [04:15:39]OFD Sender: No OFD packet to send [04:15:44]OFD Sender: No OFD packet to send [04:15:49]OFD Sender: No OFD packet to send [04:15:54]OFD Sender: No OFD packet to send [04:15:59]OFD Sender: No OFD packet to send [04:16:04]OFD Sender: No OFD packet to send [04:16:09]OFD Sender: No OFD packet to send [04:16:14]OFD Sender: No OFD packet to send [04:16:19]OFD Sender: No OFD packet to send [04:16:24]OFD Sender: No OFD packet to send [04:16:29]OFD Sender: No OFD packet to send [04:16:34]OFD Sender: No OFD packet to send [04:16:39]OFD Sender: No OFD packet to send [04:16:44]OFD Sender: No OFD packet to send [04:16:49]OFD Sender: No OFD packet to send [04:16:54]OFD Sender: No OFD packet to send [04:16:59]OFD Sender: No OFD packet to send [04:17:04]OFD Sender: No OFD packet to send [04:17:09]OFD Sender: No OFD packet to send [04:17:14]OFD Sender: No OFD packet to send [04:17:19]OFD Sender: No OFD packet to send [04:17:24]OFD Sender: No OFD packet to send [04:17:29]OFD Sender: No OFD packet to send [04:17:34]OFD Sender: No OFD packet to send [04:17:39]OFD Sender: No OFD packet to send [04:17:44]OFD Sender: No OFD packet to send [04:17:49]OFD Sender: No OFD packet to send [04:17:54]OFD Sender: No OFD packet to send [04:17:59]OFD Sender: No OFD packet to send [04:18:04]OFD Sender: No OFD packet to send [04:18:09]OFD Sender: No OFD packet to send [04:18:14]OFD Sender: No OFD packet to send [04:18:19]OFD Sender: No OFD packet to send [04:18:24]OFD Sender: No OFD packet to send [04:18:29]OFD Sender: No OFD packet to send [04:18:34]OFD Sender: No OFD packet to send [04:18:39]OFD Sender: No OFD packet to send [04:18:44]OFD Sender: No OFD packet to send [04:18:49]OFD Sender: No OFD packet to send [04:18:54]OFD Sender: No OFD packet to send [04:18:59]OFD Sender: No OFD packet to send [04:19:04]OFD Sender: No OFD packet to send [04:19:09]OFD Sender: No OFD packet to send [04:19:14]OFD Sender: No OFD packet to send [04:19:19]OFD Sender: No OFD packet to send [04:19:24]OFD Sender: No OFD packet to send [04:19:29]OFD Sender: No OFD packet to send [04:19:34]OFD Sender: No OFD packet to send [04:19:39]OFD Sender: No OFD packet to send [04:19:44]OFD Sender: No OFD packet to send [04:19:49]OFD Sender: No OFD packet to send [04:19:54]OFD Sender: No OFD packet to send [04:19:59]OFD Sender: No OFD packet to send [04:20:04]OFD Sender: No OFD packet to send [04:20:09]OFD Sender: No OFD packet to send [04:20:14]OFD Sender: No OFD packet to send [04:20:19]OFD Sender: No OFD packet to send [04:20:24]OFD Sender: No OFD packet to send [04:20:29]OFD Sender: No OFD packet to send [04:20:34]OFD Sender: No OFD packet to send [04:20:39]OFD Sender: No OFD packet to send [04:20:44]OFD Sender: No OFD packet to send [04:20:49]OFD Sender: No OFD packet to send [04:20:54]OFD Sender: No OFD packet to send [04:20:59]OFD Sender: No OFD packet to send [04:21:04]OFD Sender: No OFD packet to send [04:21:09]OFD Sender: No OFD packet to send [04:21:14]OFD Sender: No OFD packet to send [04:21:19]OFD Sender: No OFD packet to send [04:21:24]OFD Sender: No OFD packet to send [04:21:29]OFD Sender: No OFD packet to send [04:21:34]OFD Sender: No OFD packet to send [04:21:39]OFD Sender: No OFD packet to send [04:21:44]OFD Sender: No OFD packet to send [04:21:49]OFD Sender: No OFD packet to send [04:21:54]OFD Sender: No OFD packet to send [04:21:59]OFD Sender: No OFD packet to send [04:22:04]OFD Sender: No OFD packet to send [04:22:09]OFD Sender: No OFD packet to send [04:22:14]OFD Sender: No OFD packet to send [04:22:19]OFD Sender: No OFD packet to send [04:22:24]OFD Sender: No OFD packet to send [04:22:29]OFD Sender: No OFD packet to send [04:22:34]OFD Sender: No OFD packet to send [04:22:39]OFD Sender: No OFD packet to send [04:22:44]OFD Sender: No OFD packet to send [04:22:47]accept exits with 7 [04:22:47]New connection [04:22:47]New thread 3067481444 created [04:22:47]Thread 3067338084 joined [04:22:47]Waiting for new connection... [04:22:47] Sock 7.Parse request [04:22:47]Sock 7.Check first char [04:22:47]Sock 7.First char is OK [04:22:47]request: POST /json_proto HTTP/1.0 [04:22:47]Method: POST [04:22:47]URL: /json_proto [04:22:47]Method is POST - this is cgi request [04:22:47]url: /json_proto [04:22:47]query_string will be loaded in cgi processing [04:22:47]execute_cgi json_proto POST (null) [04:22:47]execute_cgi path=json_proto method=POST [04:22:47]POST find Content-Length [04:22:47]Host: 172.17.62.5:8080 [04:22:47]Content-Length: 682 [04:22:47]Content-Type: application/json [04:22:47] [04:22:47]POST finish read [04:22:47]Found Content-Length = 682 [04:22:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 18.640, "sum" : 1200.42, "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" ] } } [04:22:47]execute_script... [04:22: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)191280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 18.640, "sum" : 1200.42, "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" ] } } [04:22:47]POST & json_proto [04:22:47]process_json_proto [04:22:47]json parsed OK: [04:22:47]protocol is kg_v1.0 [04:22:47]action value=close_receipt [04:22:47]process_action close_receipt [04:22:47]cmd_close_receipt [04:22:47]MH_GetDate [04:22:47]Write to MH i2c: F0 00 00 74 11 74 [04:22:47]Write i2c OK [04:22:47]MH_I2C_Read... [04:22:47]Read from MH i2c: F0 [04:22:47]MH_I2C_Read... [04:22:47]Read from MH i2c: F0 09 00 [04:22:47]MH_I2C_Read... [04:22:47]Read from MH i2c: F0 09 00 74 11 00 9A 94 24 66 F4 E9 65 64 DB [04:22:47]GetLastDocTimeStamp 1713667917 [04:22:47]current date 1713673370 [04:22:47]FM_GetShiftState [04:22:47]SAM_PROTO_GetShiftState [04:22:47]wFMCommunicate request_size=4 [04:22:47]MH_SAM_APDU [04:22:47]CAPDU: 80 13 01 00 [04:22:47]Write to MH i2c: E2 08 00 75 11 80 13 01 00 00 00 00 00 03 [04:22:47]Write i2c OK [04:22:47]MH_I2C_Read... [04:22:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:22:47]Read from MH i2c: E2 [04:22:47]MH_I2C_Read... [04:22:47]Read from MH i2c: E2 0E 00 [04:22:47]MH_I2C_Read... [04:22:47]Read from MH i2c: E2 0E 00 75 11 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 4A [04:22:47]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [04:22:47]wFMCommunicate OK [04:22:47]SAM_PROTO_GetShiftState done [04:22:47]FM_GetShiftState done [04:22:47]opened in 1713658965 [04:22:47]opened+sec_in_day 1713745365 [04:22:47]quantity*price = 120041 [04:22:47]sum+1 = 120043 [04:22:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.48 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 9 21.04.2024 04:22 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76753 ФПД: 256535727242647 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T042250&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76753&fm=256535727242647&tin=02508201610067®Number=0000000000091573&sum=120000 [04:22:48]StoreToDocumentArchive [04:22:48]shift 372 fd 76753 [04:22:48]save to /storage/0372/doc_00076753 [04:22:48]save last doc name /storage/0372/doc_00076753 to /storage/kkm_last_doc_name [04:22:48]save OK [04:22:48]Clear old archive folders... [04:22:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:22:48]tlvbuf is 0185C930 [04:22:48]SAM_PROTO_ClearQueue [04:22:48]wFMCommunicate request_size=4 [04:22:48]MH_SAM_APDU [04:22:48]CAPDU: 80 09 00 00 [04:22:48]Write to MH i2c: E2 08 00 82 11 80 09 00 00 00 00 00 00 05 [04:22:48]Write i2c OK [04:22:48]MH_I2C_Read... [04:22:48]Read from MH i2c: E2 [04:22:48]MH_I2C_Read... [04:22:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:22:48]Read from MH i2c: E2 03 00 [04:22:48]MH_I2C_Read... [04:22:48]Read from MH i2c: E2 03 00 82 11 00 90 00 07 [04:22:48]RAPDU: 90 00 [04:22:48]wFMCommunicate OK [04:22:48]SAM_PROTO_ClearQueue done [04:22:48]KKMCreateOFDPacket [04:22:48]OFDProtocolAddRootSTLVToBuf [04:22:48]FM_MakeSignedData [04:22:48]FM_MakeSignedData [04:22:48]SAM_PROTO_SignData [04:22:48]wFMCommunicate request_size=4 [04:22:48]MH_SAM_APDU [04:22:48]CAPDU: 80 0D 01 02 [04:22:48]Write to MH i2c: E2 08 00 83 11 80 0D 01 02 00 00 00 00 0D [04:22:48]Write i2c OK [04:22:48]MH_I2C_Read... [04:22:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:22:48]Read from MH i2c: E2 [04:22:48]MH_I2C_Read... [04:22:48]Read from MH i2c: E2 03 00 [04:22:48]MH_I2C_Read... [04:22:48]Read from MH i2c: E2 03 00 83 11 00 90 00 08 [04:22:48]RAPDU: 90 00 [04:22:48]wFMCommunicate OK [04:22:48]wFMCommunicate request_size=255 [04:22:48]MH_SAM_APDU [04:22:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 48 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 EA 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 CC 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 09 00 00 00 F4 03 04 00 9A 94 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D1 2B 01 00 35 04 06 00 E9 [04:22:48]Write to MH i2c: E2 02 01 84 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 D0 48 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 EA 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 CC 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 09 00 00 00 F4 03 04 00 9A 94 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D1 2B 01 00 35 04 06 00 E9 00 00 9C [04:22:48]Write i2c OK [04:22:48]MH_I2C_Read... [04:22:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:22:49]Read from MH i2c: E2 [04:22:49]MH_I2C_Read... [04:22:49]Read from MH i2c: E2 03 00 [04:22:49]MH_I2C_Read... [04:22:49]Read from MH i2c: E2 03 00 84 11 00 90 00 09 [04:22:49]RAPDU: 90 00 [04:22:49]wFMCommunicate OK [04:22:49]wFMCommunicate request_size=10 [04:22:49]MH_SAM_APDU [04:22:49]CAPDU: 80 0D 02 02 05 51 60 E4 FD 97 [04:22:49]Write to MH i2c: E2 0D 00 85 11 80 0D 02 02 05 00 51 60 E4 FD 97 00 00 43 [04:22:49]Write i2c OK [04:22:49]MH_I2C_Read... [04:22:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:22:49]Read from MH i2c: E2 [04:22:49]MH_I2C_Read... [04:22:49]Read from MH i2c: E2 03 00 [04:22:49]MH_I2C_Read... [04:22:49]Read from MH i2c: E2 03 00 85 11 00 90 00 0A [04:22:49]RAPDU: 90 00 [04:22:49]wFMCommunicate OK [04:22:49]wFMCommunicate request_size=4 [04:22:49]MH_SAM_APDU [04:22:49]CAPDU: 80 0D 03 02 [04:22:49]Write to MH i2c: E2 08 00 86 11 80 0D 03 02 00 00 00 00 12 [04:22:49]Write i2c OK [04:22:49]MH_I2C_Read... [04:22:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:22:49]Read from MH i2c: E2 [04:22:49]MH_I2C_Read... [04:22:49]Read from MH i2c: E2 0B 00 [04:22:49]MH_I2C_Read... [04:22:49]Read from MH i2c: E2 0B 00 86 11 00 6E 33 9E 2E 98 F9 AF 23 90 00 E3 [04:22:49]RAPDU: 6E 33 9E 2E 98 F9 AF 23 90 00 [04:22:49]wFMCommunicate OK [04:22:49]SAM_PROTO_SignData done [04:22:49]FM_MakeSignedData done [04:22:49]CreateOFDProtocolMessage [04:22:49]wFMCommunicate request_size=4 [04:22:49]MH_SAM_APDU [04:22:49]CAPDU: 80 11 00 00 [04:22:49]Write to MH i2c: E2 08 00 87 11 80 11 00 00 00 00 00 00 12 [04:22:49]Write i2c OK [04:22:49]MH_I2C_Read... [04:22:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:22:49]Read from MH i2c: E2 [04:22:49]MH_I2C_Read... [04:22:49]Read from MH i2c: E2 17 00 [04:22:49]MH_I2C_Read... [04:22:49]Read from MH i2c: E2 17 00 87 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 65 [04:22:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [04:22:49]wFMCommunicate OK [04:22:49]CreateOFDProtocolMessage done [04:22:49]OFDSenderStorePacket 76753 [04:22:49]StoreOFDPacket docnum=76753 [04:22:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 FF F6 07 01 BA 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 48 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 EA 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 CC 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 09 00 00 00 F4 03 04 00 9A 94 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D1 2B 01 00 35 04 06 00 E9 51 60 E4 FD 97 6E 33 9E 2E 98 F9 AF 23 [04:22:49]CheckFolder [04:22:49]dirname=/storage/ofd_packets [04:22:49]CheckFolder done [04:22:49]ProducePacketName [04:22:49]name=ofd_packets/00076753 [04:22:49]NVStorageSaveData ofd_packets/00076753 [04:22:49]File name is /storage/ofd_packets/00076753 [04:22:49]Write 301 bytes [04:22:49]NVStorageSaveData done [04:22:49]OFDSenderStorePacket done [04:22:49]KKMCreateOFDPacket done [04:22:49]NVStorageSaveData kkm_last_timestamp [04:22:49]File name is /storage/kkm_last_timestamp [04:22:49]Write 4 bytes [04:22:49]NVStorageSaveData done [04:22:49]ExternCall_PrintAddStr [04:22:49]wPrintStart [04:22:49]Write to MH i2c: 01 00 00 88 11 99 [04:22:49]Write i2c OK [04:22:49]MH_I2C_Read... [04:22:49]Read from MH i2c: 01 [04:22:49]MH_I2C_Read... [04:22:49]Read from MH i2c: 01 07 00 [04:22:49]MH_I2C_Read... [04:22:49]Read from MH i2c: 01 07 00 88 11 00 00 00 00 00 FF 0F AE [04:22:49]RasterBufferAndPrint [04:22:49]line Счет N : (1)191280 [04:22:49]line ИНН: 02508201610067 [04:22:49]line Контрольно-Кассовый Чек [04:22:49]line ПРОДАЖА [04:22:49]line ТРК (МРК, ГНК) : 33 [04:22:49]line Товар: 2710124130 [04:22:49]line Аи-92-К-5 [04:22:49]line 18.640 * 64.40 [04:22:49]line = 1200.42 [04:22:49]line НДС 12% НСП 1% [04:22:49]line > о реализуемом товаре [04:22:49]line ОКРУГЛЕНИЕ: -0.42 [04:22:49]line ИТОГО: 1200.00 [04:22:49]line Внесено: 1200.00 [04:22:49]line СДАЧА: 0.00 [04:22:49]line НСП 1% : 10.62 [04:22:49]line НДС 12% : 127.48 [04:22:49]line Наличными: 1200.00 [04:22:49]line Безнал.: 0.00 [04:22:49]line Место: АЗС № 106 "Партнер Нефть" [04:22:49]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [04:22:49]line СНО: Общий режим [04:22:49]line Чек 9 21.04.2024 04:22 [04:22:49]line Смена: 372 ФФД: 1.0 [04:22:49]line ЗНМ: 0300000141 [04:22:49]line РНМ: 0000000000091573 [04:22:49]line Версия ККМ: 001 [04:22:49]line ФМ: 0000000000874652 [04:22:49]line ФД: 76753 [04:22:49]line ФПД: 256535727242647 [04:22:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T042250&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76753&fm=256535727242647&tin=02508201610067®Number=0000000000091573&sum=120000 [04:22:49]written 0, free lines is 4095 [04:22:49]OFD Sender: Processing packet 76753 [packets to send 129, broken 128] [04:22:49]ProducePacketName [04:22:49]name=ofd_packets/00076753 [04:22:49]OFD Sender: To server: pG, [04:22:49]CommunicateWithHost lk.salyk.kg:30040 [04:22:49]ConnectInit lk.salyk.kg [04:22:49]Connected sock=10 [04:22:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 FF F6 07 01 BA 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 48 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 EA 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 CC 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 09 00 00 00 F4 03 04 00 9A 94 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D1 2B 01 00 35 04 06 00 E9 51 60 E4 FD 97 6E 33 9E 2E 98 F9 AF 23 [04:22:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 38 E3 47 00 E4 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D1 2B 01 00 F4 03 04 00 20 3C 24 66 B6 04 01 00 00 BA E4 09 8D DD E6 51 E0 [04:22:49]CommunicateWithHost err = 0 [04:22:49]CheckOFDResponse [04:22:49]1017 (14) - 77093643461234 [04:22:49]1041 (16) - 0000000000874652 [04:22:49]1040 (4) - 76753 [04:22:49]1012 (4) - 20.04.2024 22:05 [04:22:49]1206 (1) - 0 [04:22:49]OFD Sender: Remove packet 76753 [04:22:49]ProducePacketName [04:22:49]name=ofd_packets/00076753 [04:22:49]NVStorageDeleteData [04:22:50]Write to MH i2c: 01 00 00 B2 11 C3 [04:22:50]Write i2c OK [04:22:50]MH_I2C_Read... [04:22:50]Read from MH i2c: 01 [04:22:50]MH_I2C_Read... [04:22:50]Read from MH i2c: 01 07 00 [04:22:50]MH_I2C_Read... [04:22:50]Read from MH i2c: 01 07 00 B2 11 00 00 00 00 00 00 0D D7 [04:22:50]RasterBufferAndPrint [04:22:50]line [04:22:50]line [04:22:50]line [04:22:50]line [04:22:50]line [04:22:50]written 0, free lines is 3334 [04:22:50]MH_Cut [04:22:50]Write to MH i2c: D1 01 00 B9 11 01 9C [04:22:50]Write i2c OK [04:22:50]MH_I2C_Read... [04:22:50]Read from MH i2c: D1 [04:22:50]MH_I2C_Read... [04:22:50]Read from MH i2c: D1 01 00 [04:22:50]MH_I2C_Read... [04:22:50]Read from MH i2c: D1 01 00 B9 11 00 9B [04:22:50]Write to MH i2c: 01 00 00 BA 11 CB [04:22:50]Write i2c OK [04:22:50]MH_I2C_Read... [04:22:50]OFD Sender: No OFD packet to send [04:22:50]*** Cut start [04:22:50]*** Partial cut [04:22:50]*** CUTSNS_PIN = 1 [04:22:50]*** CUTSNS_PIN = 0 [04:22:51]*** Brake cut motor [04:22:51]Read from MH i2c: 01 [04:22:51]MH_I2C_Read... [04:22:51]*** Stop cut motor [04:22:51]*** Cut end [04:22:51]Read from MH i2c: 01 07 00 [04:22:51]MH_I2C_Read... [04:22:51]Read from MH i2c: 01 07 00 BA 11 00 00 00 00 00 FF 0F E0 [04:22:51]process_action close_receipt done [04:22:51]requested_data is exist [04:22:51]produce_requested_data [04:22:51]requested_item fm.sn is exist - process it [04:22:51]wFMCommunicate request_size=4 [04:22:51]MH_SAM_APDU [04:22:51]CAPDU: 80 11 00 00 [04:22:51]Write to MH i2c: E2 08 00 BB 11 80 11 00 00 00 00 00 00 46 [04:22:51]Write i2c OK [04:22:51]MH_I2C_Read... [04:22:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:22:51]Read from MH i2c: E2 [04:22:51]MH_I2C_Read... [04:22:51]Read from MH i2c: E2 17 00 [04:22:51]MH_I2C_Read... [04:22:51]Read from MH i2c: E2 17 00 BB 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 99 [04:22:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [04:22:51]wFMCommunicate OK [04:22:51]requested_item fd.num is exist - process it [04:22:51]SAM_PROTO_GetFieldsCounters [04:22:51]wFMCommunicate request_size=4 [04:22:51]MH_SAM_APDU [04:22:51]CAPDU: 80 13 00 00 [04:22:51]Write to MH i2c: E2 08 00 BC 11 80 13 00 00 00 00 00 00 49 [04:22:51]Write i2c OK [04:22:51]MH_I2C_Read... [04:22:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:22:51]Read from MH i2c: E2 [04:22:51]MH_I2C_Read... [04:22:51]Read from MH i2c: E2 62 00 [04:22:51]MH_I2C_Read... [04:22:51]Read from MH i2c: E2 62 00 BC 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D1 2B 01 00 0E 04 04 00 74 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [04: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D1 2B 01 00 0E 04 04 00 74 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:22:51]wFMCommunicate OK [04:22:51]SAM_PROTO_GetFieldsCounters done [04:22:51]requested_item shift.num is exist - process it [04:22:51]requested_item shift.opened is exist - process it [04:22:51]req_shift_opened [04:22:51]FM_GetShiftState [04:22:51]SAM_PROTO_GetShiftState [04:22:51]wFMCommunicate request_size=4 [04:22:51]MH_SAM_APDU [04:22:51]CAPDU: 80 13 01 00 [04:22:51]Write to MH i2c: E2 08 00 BD 11 80 13 01 00 00 00 00 00 4B [04:22:51]Write i2c OK [04:22:51]MH_I2C_Read... [04:22:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:22:51]Read from MH i2c: E2 [04:22:51]MH_I2C_Read... [04:22:51]Read from MH i2c: E2 0E 00 [04:22:51]MH_I2C_Read... [04:22:51]Read from MH i2c: E2 0E 00 BD 11 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 92 [04:22:51]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [04:22:51]wFMCommunicate OK [04:22:51]SAM_PROTO_GetShiftState done [04:22:51]FM_GetShiftState done [04:22:51]req_shift_opened done [04:22:51]requested_item shift.open_date is exist - process it [04:22:51]req_shift_open_date [04:22:51]req_shift_open_date done [04:22:51]produce_requested_data done [04:22:51]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76753,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [04:22:51]process_action_free close_receipt [04:22:51]json_value_free [04:22:51]json_value_free done [04:22:51]process_json_proto returns [04:22:51]Send response to host [04:22:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76753,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [04:22:51]free response buf [04:22:51]execute_script done [04:22:51]execute_script returns [04:22:51]free content buf [04:22:51]Sock 7.Close socket [04:22:51]Sock 7.Thread stoped [04:22:55]OFD Sender: No OFD packet to send [04:23:00]OFD Sender: No OFD packet to send [04:23:04]accept exits with 9 [04:23:04]New connection [04:23:04]New thread 3067338084 created [04:23:04]Thread 3067481444 joined [04:23:04]Waiting for new connection... [04:23:04] Sock 9.Parse request [04:23:04]Sock 9.Check first char [04:23:04]Sock 9.First char is OK [04:23:04]request: POST /json_proto HTTP/1.0 [04:23:04]Method: POST [04:23:04]URL: /json_proto [04:23:04]Method is POST - this is cgi request [04:23:04]url: /json_proto [04:23:04]query_string will be loaded in cgi processing [04:23:04]execute_cgi json_proto POST (null) [04:23:04]execute_cgi path=json_proto method=POST [04:23:04]POST find Content-Length [04:23:04]Host: 172.17.62.5:8080 [04:23:04]Content-Length: 675 [04:23:04]Content-Type: application/json [04:23:04] [04:23:04]POST finish read [04:23:04]Found Content-Length = 675 [04:23:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 10.290, "sum" : 750.14, "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" ] } } [04:23:04]execute_script... [04:23: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)191281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 10.290, "sum" : 750.14, "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" ] } } [04:23:04]POST & json_proto [04:23:04]process_json_proto [04:23:04]json parsed OK: [04:23:04]protocol is kg_v1.0 [04:23:04]action value=close_receipt [04:23:04]process_action close_receipt [04:23:04]cmd_close_receipt [04:23:04]MH_GetDate [04:23:04]Write to MH i2c: F0 00 00 BE 11 BE [04:23:04]Write i2c OK [04:23:04]MH_I2C_Read... [04:23:04]Read from MH i2c: F0 [04:23:04]MH_I2C_Read... [04:23:04]Read from MH i2c: F0 09 00 [04:23:04]MH_I2C_Read... [04:23:04]Read from MH i2c: F0 09 00 BE 11 00 AB 94 24 66 F4 E9 65 64 36 [04:23:04]GetLastDocTimeStamp 1713673370 [04:23:04]current date 1713673387 [04:23:04]FM_GetShiftState [04:23:04]SAM_PROTO_GetShiftState [04:23:04]wFMCommunicate request_size=4 [04:23:04]MH_SAM_APDU [04:23:04]CAPDU: 80 13 01 00 [04:23:04]Write to MH i2c: E2 08 00 BF 11 80 13 01 00 00 00 00 00 4D [04:23:04]Write i2c OK [04:23:04]MH_I2C_Read... [04:23:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:23:04]Read from MH i2c: E2 [04:23:04]MH_I2C_Read... [04:23:04]Read from MH i2c: E2 0E 00 [04:23:04]MH_I2C_Read... [04:23:04]Read from MH i2c: E2 0E 00 BF 11 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 94 [04:23:04]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [04:23:04]wFMCommunicate OK [04:23:04]SAM_PROTO_GetShiftState done [04:23:04]FM_GetShiftState done [04:23:04]opened in 1713658965 [04:23:04]opened+sec_in_day 1713745365 [04:23:04]quantity*price = 75014 [04:23:04]sum+1 = 75015 [04:23:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.66 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 10 21.04.2024 04:23 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76754 ФПД: 196391394524759 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T042307&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76754&fm=196391394524759&tin=02508201610067®Number=0000000000091573&sum=75000 [04:23:05]StoreToDocumentArchive [04:23:05]shift 372 fd 76754 [04:23:05]save to /storage/0372/doc_00076754 [04:23:05]save last doc name /storage/0372/doc_00076754 to /storage/kkm_last_doc_name [04:23:05]save OK [04:23:05]Clear old archive folders... [04:23:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [04:23:05]tlvbuf is 018ABAB0 [04:23:05]SAM_PROTO_ClearQueue [04:23:05]wFMCommunicate request_size=4 [04:23:05]MH_SAM_APDU [04:23:05]CAPDU: 80 09 00 00 [04:23:05]Write to MH i2c: E2 08 00 CC 11 80 09 00 00 00 00 00 00 4F [04:23:05]Write i2c OK [04:23:05]MH_I2C_Read... [04:23:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:23:05]Read from MH i2c: E2 [04:23:05]MH_I2C_Read... [04:23:05]Read from MH i2c: E2 03 00 [04:23:05]MH_I2C_Read... [04:23:05]Read from MH i2c: E2 03 00 CC 11 00 90 00 51 [04:23:05]RAPDU: 90 00 [04:23:05]wFMCommunicate OK [04:23:05]SAM_PROTO_ClearQueue done [04:23:05]KKMCreateOFDPacket [04:23:05]OFDProtocolAddRootSTLVToBuf [04:23:05]FM_MakeSignedData [04:23:05]FM_MakeSignedData [04:23:05]SAM_PROTO_SignData [04:23:05]wFMCommunicate request_size=4 [04:23:05]MH_SAM_APDU [04:23:05]CAPDU: 80 0D 01 02 [04:23:05]Write to MH i2c: E2 08 00 CD 11 80 0D 01 02 00 00 00 00 57 [04:23:05]Write i2c OK [04:23:05]MH_I2C_Read... [04:23:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:23:05]Read from MH i2c: E2 [04:23:05]MH_I2C_Read... [04:23:05]Read from MH i2c: E2 03 00 [04:23:05]MH_I2C_Read... [04:23:05]Read from MH i2c: E2 03 00 CD 11 00 90 00 52 [04:23:05]RAPDU: 90 00 [04:23:05]wFMCommunicate OK [04:23:05]wFMCommunicate request_size=255 [04:23:05]MH_SAM_APDU [04:23:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 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 1E 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 0A 00 00 00 F4 03 04 00 AB 94 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D2 2B 01 00 35 04 06 00 B2 9D EF 4E [04:23:05]Write to MH i2c: E2 02 01 CE 11 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 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 1E 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 0A 00 00 00 F4 03 04 00 AB 94 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D2 2B 01 00 35 04 06 00 B2 9D EF 4E 00 00 B3 [04:23:06]Write i2c OK [04:23:06]MH_I2C_Read... [04:23:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:23:06]Read from MH i2c: E2 [04:23:06]MH_I2C_Read... [04:23:06]Read from MH i2c: E2 03 00 [04:23:06]MH_I2C_Read... [04:23:06]Read from MH i2c: E2 03 00 CE 11 00 90 00 53 [04:23:06]RAPDU: 90 00 [04:23:06]wFMCommunicate OK [04:23:06]wFMCommunicate request_size=7 [04:23:06]MH_SAM_APDU [04:23:06]CAPDU: 80 0D 02 02 02 BE 57 [04:23:06]Write to MH i2c: E2 0A 00 CF 11 80 0D 02 02 02 00 BE 57 00 00 73 [04:23:06]Write i2c OK [04:23:06]MH_I2C_Read... [04:23:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:23:06]Read from MH i2c: E2 [04:23:06]MH_I2C_Read... [04:23:06]Read from MH i2c: E2 03 00 [04:23:06]MH_I2C_Read... [04:23:06]Read from MH i2c: E2 03 00 CF 11 00 90 00 54 [04:23:06]RAPDU: 90 00 [04:23:06]wFMCommunicate OK [04:23:06]wFMCommunicate request_size=4 [04:23:06]MH_SAM_APDU [04:23:06]CAPDU: 80 0D 03 02 [04:23:06]Write to MH i2c: E2 08 00 D0 11 80 0D 03 02 00 00 00 00 5C [04:23:06]Write i2c OK [04:23:06]MH_I2C_Read... [04:23:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:23:06]Read from MH i2c: E2 [04:23:06]MH_I2C_Read... [04:23:06]Read from MH i2c: E2 0B 00 [04:23:06]MH_I2C_Read... [04:23:06]Read from MH i2c: E2 0B 00 D0 11 00 7B A9 25 B4 05 27 88 6D 90 00 7B [04:23:06]RAPDU: 7B A9 25 B4 05 27 88 6D 90 00 [04:23:06]wFMCommunicate OK [04:23:06]SAM_PROTO_SignData done [04:23:06]FM_MakeSignedData done [04:23:06]CreateOFDProtocolMessage [04:23:06]wFMCommunicate request_size=4 [04:23:06]MH_SAM_APDU [04:23:06]CAPDU: 80 11 00 00 [04:23:06]Write to MH i2c: E2 08 00 D1 11 80 11 00 00 00 00 00 00 5C [04:23:06]Write i2c OK [04:23:06]MH_I2C_Read... [04:23:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:23:06]Read from MH i2c: E2 [04:23:06]MH_I2C_Read... [04:23:06]Read from MH i2c: E2 17 00 [04:23:06]MH_I2C_Read... [04:23:06]Read from MH i2c: E2 17 00 D1 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 AF [04:23:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [04:23:06]wFMCommunicate OK [04:23:06]CreateOFDProtocolMessage done [04:23:06]OFDSenderStorePacket 76754 [04:23:06]StoreOFDPacket docnum=76754 [04:23:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 19 3E 04 01 BD B5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 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 1E 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 0A 00 00 00 F4 03 04 00 AB 94 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D2 2B 01 00 35 04 06 00 B2 9D EF 4E BE 57 7B A9 25 B4 05 27 88 6D [04:23:06]CheckFolder [04:23:06]dirname=/storage/ofd_packets [04:23:06]CheckFolder done [04:23:06]ProducePacketName [04:23:06]name=ofd_packets/00076754 [04:23:06]NVStorageSaveData ofd_packets/00076754 [04:23:06]File name is /storage/ofd_packets/00076754 [04:23:06]Write 298 bytes [04:23:06]NVStorageSaveData done [04:23:06]OFDSenderStorePacket done [04:23:06]KKMCreateOFDPacket done [04:23:06]NVStorageSaveData kkm_last_timestamp [04:23:06]File name is /storage/kkm_last_timestamp [04:23:06]Write 4 bytes [04:23:06]NVStorageSaveData done [04:23:06]ExternCall_PrintAddStr [04:23:06]wPrintStart [04:23:06]Write to MH i2c: 01 00 00 D2 11 E3 [04:23:06]Write i2c OK [04:23:06]MH_I2C_Read... [04:23:06]Read from MH i2c: 01 [04:23:06]MH_I2C_Read... [04:23:06]Read from MH i2c: 01 07 00 [04:23:06]MH_I2C_Read... [04:23:06]Read from MH i2c: 01 07 00 D2 11 00 00 00 00 00 FF 0F F8 [04:23:06]RasterBufferAndPrint [04:23:06]line Счет N : (1)191281 [04:23:06]line ИНН: 02508201610067 [04:23:06]line Контрольно-Кассовый Чек [04:23:06]line ПРОДАЖА [04:23:06]line ТРК (МРК, ГНК) : 51 [04:23:06]line Товар: 2710194210 [04:23:06]line ДТ-К-5 [04:23:06]line 10.290 * 72.90 [04:23:06]line = 750.14 [04:23:06]line НДС 12% НСП 1% [04:23:06]line > о реализуемом товаре [04:23:06]line ОКРУГЛЕНИЕ: -0.14 [04:23:06]line ИТОГО: 750.00 [04:23:06]line Внесено: 750.00 [04:23:06]line СДАЧА: 0.00 [04:23:06]line НСП 1% : 6.64 [04:23:06]line НДС 12% : 79.66 [04:23:06]line Наличными: 750.00 [04:23:06]line Безнал.: 0.00 [04:23:06]line Место: АЗС № 106 "Партнер Нефть" [04:23:06]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [04:23:06]line СНО: Общий режим [04:23:06]line Чек 10 21.04.2024 04:23 [04:23:06]line Смена: 372 ФФД: 1.0 [04:23:06]line ЗНМ: 0300000141 [04:23:06]line РНМ: 0000000000091573 [04:23:06]line Версия ККМ: 001 [04:23:06]line ФМ: 0000000000874652 [04:23:06]line ФД: 76754 [04:23:06]line ФПД: 196391394524759 [04:23:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T042307&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76754&fm=196391394524759&tin=02508201610067®Number=0000000000091573&sum=75000 [04:23:06]OFD Sender: Processing packet 76754 [packets to send 129, broken 128] [04:23:06]ProducePacketName [04:23:06]name=ofd_packets/00076754 [04:23:06]OFD Sender: To server: pG, [04:23:06]CommunicateWithHost lk.salyk.kg:30040 [04:23:06]ConnectInit lk.salyk.kg [04:23:06]written 0, free lines is 4095 [04:23:06]Connected sock=10 [04:23:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 19 3E 04 01 BD B5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 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 1E 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 0A 00 00 00 F4 03 04 00 AB 94 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D2 2B 01 00 35 04 06 00 B2 9D EF 4E BE 57 7B A9 25 B4 05 27 88 6D [04:23:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 41 C0 47 00 4C 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 34 36 35 32 10 04 04 00 D2 2B 01 00 F4 03 04 00 31 3C 24 66 B6 04 01 00 00 B2 52 AD 0F AA 57 77 D2 [04:23:07]CommunicateWithHost err = 0 [04:23:07]CheckOFDResponse [04:23:07]1017 (14) - 77093643461234 [04:23:07]1041 (16) - 0000000000874652 [04:23:07]1040 (4) - 76754 [04:23:07]1012 (4) - 20.04.2024 22:05 [04:23:07]1206 (1) - 0 [04:23:07]OFD Sender: Remove packet 76754 [04:23:07]ProducePacketName [04:23:07]name=ofd_packets/00076754 [04:23:07]NVStorageDeleteData [04:23:07]Write to MH i2c: 01 00 00 FC 11 0D [04:23:07]Write i2c OK [04:23:07]MH_I2C_Read... [04:23:07]Read from MH i2c: 01 [04:23:07]MH_I2C_Read... [04:23:07]Read from MH i2c: 01 07 00 [04:23:07]MH_I2C_Read... [04:23:07]Read from MH i2c: 01 07 00 FC 11 00 00 00 00 00 F1 0C 11 [04:23:07]RasterBufferAndPrint [04:23:07]line [04:23:07]line [04:23:07]line [04:23:07]line [04:23:07]line [04:23:07]written 0, free lines is 3320 [04:23:07]MH_Cut [04:23:07]Write to MH i2c: D1 01 00 03 12 01 E7 [04:23:07]Write i2c OK [04:23:07]MH_I2C_Read... [04:23:07]Read from MH i2c: D1 [04:23:07]MH_I2C_Read... [04:23:07]Read from MH i2c: D1 01 00 [04:23:07]MH_I2C_Read... [04:23:07]Read from MH i2c: D1 01 00 03 12 00 E6 [04:23:07]Write to MH i2c: 01 00 00 04 12 16 [04:23:07]Write i2c OK [04:23:07]MH_I2C_Read... [04:23:07]OFD Sender: No OFD packet to send [04:23:07]*** Cut start [04:23:07]*** Partial cut [04:23:07]*** CUTSNS_PIN = 1 [04:23:08]*** CUTSNS_PIN = 0 [04:23:08]*** Brake cut motor [04:23:08]Read from MH i2c: 01 [04:23:08]MH_I2C_Read... [04:23:08]*** Stop cut motor [04:23:08]*** Cut end [04:23:08]Read from MH i2c: 01 07 00 [04:23:08]MH_I2C_Read... [04:23:08]Read from MH i2c: 01 07 00 04 12 00 00 00 00 00 FF 0F 2B [04:23:08]process_action close_receipt done [04:23:08]requested_data is exist [04:23:08]produce_requested_data [04:23:08]requested_item fm.sn is exist - process it [04:23:08]wFMCommunicate request_size=4 [04:23:08]MH_SAM_APDU [04:23:08]CAPDU: 80 11 00 00 [04:23:08]Write to MH i2c: E2 08 00 05 12 80 11 00 00 00 00 00 00 91 [04:23:08]Write i2c OK [04:23:08]MH_I2C_Read... [04:23:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:23:08]Read from MH i2c: E2 [04:23:08]MH_I2C_Read... [04:23:08]Read from MH i2c: E2 17 00 [04:23:08]MH_I2C_Read... [04:23:08]Read from MH i2c: E2 17 00 05 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 E4 [04:23:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [04:23:08]wFMCommunicate OK [04:23:08]requested_item fd.num is exist - process it [04:23:08]SAM_PROTO_GetFieldsCounters [04:23:08]wFMCommunicate request_size=4 [04:23:08]MH_SAM_APDU [04:23:08]CAPDU: 80 13 00 00 [04:23:08]Write to MH i2c: E2 08 00 06 12 80 13 00 00 00 00 00 00 94 [04:23:08]Write i2c OK [04:23:08]MH_I2C_Read... [04:23:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:23:08]Read from MH i2c: E2 [04:23:08]MH_I2C_Read... [04:23:08]Read from MH i2c: E2 62 00 [04:23:08]MH_I2C_Read... [04:23:08]Read from MH i2c: E2 62 00 06 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D2 2B 01 00 0E 04 04 00 74 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [04:23: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D2 2B 01 00 0E 04 04 00 74 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:23:08]wFMCommunicate OK [04:23:08]SAM_PROTO_GetFieldsCounters done [04:23:08]requested_item shift.num is exist - process it [04:23:08]requested_item shift.opened is exist - process it [04:23:08]req_shift_opened [04:23:08]FM_GetShiftState [04:23:08]SAM_PROTO_GetShiftState [04:23:08]wFMCommunicate request_size=4 [04:23:08]MH_SAM_APDU [04:23:08]CAPDU: 80 13 01 00 [04:23:08]Write to MH i2c: E2 08 00 07 12 80 13 01 00 00 00 00 00 96 [04:23:08]Write i2c OK [04:23:08]MH_I2C_Read... [04:23:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:23:08]Read from MH i2c: E2 [04:23:08]MH_I2C_Read... [04:23:08]Read from MH i2c: E2 0E 00 [04:23:08]MH_I2C_Read... [04:23:08]Read from MH i2c: E2 0E 00 07 12 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 DD [04:23:08]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [04:23:08]wFMCommunicate OK [04:23:08]SAM_PROTO_GetShiftState done [04:23:08]FM_GetShiftState done [04:23:08]req_shift_opened done [04:23:08]requested_item shift.open_date is exist - process it [04:23:08]req_shift_open_date [04:23:08]req_shift_open_date done [04:23:08]produce_requested_data done [04:23:08]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76754,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [04:23:08]process_action_free close_receipt [04:23:08]json_value_free [04:23:08]json_value_free done [04:23:08]process_json_proto returns [04:23:08]Send response to host [04:23:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76754,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [04:23:08]free response buf [04:23:08]execute_script done [04:23:08]execute_script returns [04:23:08]free content buf [04:23:08]Sock 9.Close socket [04:23:08]Sock 9.Thread stoped [04:23:12]OFD Sender: No OFD packet to send [04:23:17]OFD Sender: No OFD packet to send [04:23:22]OFD Sender: No OFD packet to send [04:23:27]OFD Sender: No OFD packet to send [04:23:32]OFD Sender: No OFD packet to send [04:23:37]OFD Sender: No OFD packet to send [04:23:42]OFD Sender: No OFD packet to send [04:23:47]OFD Sender: No OFD packet to send [04:23:52]OFD Sender: No OFD packet to send [04:23:57]OFD Sender: No OFD packet to send [04:24:02]OFD Sender: No OFD packet to send [04:24:07]OFD Sender: No OFD packet to send [04:24:12]OFD Sender: No OFD packet to send [04:24:17]OFD Sender: No OFD packet to send [04:24:22]OFD Sender: No OFD packet to send [04:24:27]OFD Sender: No OFD packet to send [04:24:32]OFD Sender: No OFD packet to send [04:24:37]OFD Sender: No OFD packet to send [04:24:42]OFD Sender: No OFD packet to send [04:24:47]OFD Sender: No OFD packet to send [04:24:52]OFD Sender: No OFD packet to send [04:24:57]OFD Sender: No OFD packet to send [04:25:02]OFD Sender: No OFD packet to send [04:25:07]OFD Sender: No OFD packet to send [04:25:12]OFD Sender: No OFD packet to send [04:25:17]OFD Sender: No OFD packet to send [04:25:22]OFD Sender: No OFD packet to send [04:25:27]OFD Sender: No OFD packet to send [04:25:32]OFD Sender: No OFD packet to send [04:25:37]OFD Sender: No OFD packet to send [04:25:42]OFD Sender: No OFD packet to send [04:25:47]OFD Sender: No OFD packet to send [04:25:52]OFD Sender: No OFD packet to send [04:25:57]OFD Sender: No OFD packet to send [04:26:02]OFD Sender: No OFD packet to send [04:26:07]OFD Sender: No OFD packet to send [04:26:12]OFD Sender: No OFD packet to send [04:26:17]OFD Sender: No OFD packet to send [04:26:22]OFD Sender: No OFD packet to send [04:26:27]OFD Sender: No OFD packet to send [04:26:32]OFD Sender: No OFD packet to send [04:26:37]OFD Sender: No OFD packet to send [04:26:42]OFD Sender: No OFD packet to send [04:26:47]OFD Sender: No OFD packet to send [04:26:52]OFD Sender: No OFD packet to send [04:26:57]OFD Sender: No OFD packet to send [04:27:02]OFD Sender: No OFD packet to send [04:27:07]OFD Sender: No OFD packet to send [04:27:12]OFD Sender: No OFD packet to send [04:27:17]OFD Sender: No OFD packet to send [04:27:22]OFD Sender: No OFD packet to send [04:27:27]OFD Sender: No OFD packet to send [04:27:32]OFD Sender: No OFD packet to send [04:27:37]OFD Sender: No OFD packet to send [04:27:42]OFD Sender: No OFD packet to send [04:27:48]OFD Sender: No OFD packet to send [04:27:53]OFD Sender: No OFD packet to send [04:27:58]OFD Sender: No OFD packet to send [04:28:03]OFD Sender: No OFD packet to send [04:28:08]OFD Sender: No OFD packet to send [04:28:13]OFD Sender: No OFD packet to send [04:28:18]OFD Sender: No OFD packet to send [04:28:23]OFD Sender: No OFD packet to send [04:28:28]OFD Sender: No OFD packet to send [04:28:33]OFD Sender: No OFD packet to send [04:28:38]OFD Sender: No OFD packet to send [04:28:43]OFD Sender: No OFD packet to send [04:28:48]OFD Sender: No OFD packet to send [04:28:53]OFD Sender: No OFD packet to send [04:28:58]OFD Sender: No OFD packet to send [04:29:03]OFD Sender: No OFD packet to send [04:29:08]OFD Sender: No OFD packet to send [04:29:13]OFD Sender: No OFD packet to send [04:29:18]OFD Sender: No OFD packet to send [04:29:23]OFD Sender: No OFD packet to send [04:29:28]OFD Sender: No OFD packet to send [04:29:33]OFD Sender: No OFD packet to send [04:29:38]OFD Sender: No OFD packet to send [04:29:43]OFD Sender: No OFD packet to send [04:29:48]OFD Sender: No OFD packet to send [04:29:53]OFD Sender: No OFD packet to send [04:29:58]OFD Sender: No OFD packet to send [04:30:03]OFD Sender: No OFD packet to send [04:30:08]OFD Sender: No OFD packet to send [04:30:13]OFD Sender: No OFD packet to send [04:30:18]OFD Sender: No OFD packet to send [04:30:23]OFD Sender: No OFD packet to send [04:30:28]OFD Sender: No OFD packet to send [04:30:33]OFD Sender: No OFD packet to send [04:30:38]OFD Sender: No OFD packet to send [04:30:43]OFD Sender: No OFD packet to send [04:30:48]OFD Sender: No OFD packet to send [04:30:53]OFD Sender: No OFD packet to send [04:30:58]OFD Sender: No OFD packet to send [04:31:03]OFD Sender: No OFD packet to send [04:31:08]OFD Sender: No OFD packet to send [04:31:13]OFD Sender: No OFD packet to send [04:31:18]OFD Sender: No OFD packet to send [04:31:23]OFD Sender: No OFD packet to send [04:31:28]OFD Sender: No OFD packet to send [04:31:33]OFD Sender: No OFD packet to send [04:31:38]OFD Sender: No OFD packet to send [04:31:43]OFD Sender: No OFD packet to send [04:31:48]OFD Sender: No OFD packet to send [04:31:53]OFD Sender: No OFD packet to send [04:31:58]OFD Sender: No OFD packet to send [04:32:03]OFD Sender: No OFD packet to send [04:32:08]OFD Sender: No OFD packet to send [04:32:13]OFD Sender: No OFD packet to send [04:32:18]OFD Sender: No OFD packet to send [04:32:23]OFD Sender: No OFD packet to send [04:32:28]OFD Sender: No OFD packet to send [04:32:33]OFD Sender: No OFD packet to send [04:32:38]OFD Sender: No OFD packet to send [04:32:43]OFD Sender: No OFD packet to send [04:32:48]OFD Sender: No OFD packet to send [04:32:53]OFD Sender: No OFD packet to send [04:32:58]OFD Sender: No OFD packet to send [04:33:03]OFD Sender: No OFD packet to send [04:33:08]OFD Sender: No OFD packet to send [04:33:13]OFD Sender: No OFD packet to send [04:33:18]OFD Sender: No OFD packet to send [04:33:23]OFD Sender: No OFD packet to send [04:33:28]OFD Sender: No OFD packet to send [04:33:33]OFD Sender: No OFD packet to send [04:33:38]OFD Sender: No OFD packet to send [04:33:43]OFD Sender: No OFD packet to send [04:33:48]OFD Sender: No OFD packet to send [04:33:53]OFD Sender: No OFD packet to send [04:33:58]OFD Sender: No OFD packet to send [04:34:03]OFD Sender: No OFD packet to send [04:34:08]OFD Sender: No OFD packet to send [04:34:13]OFD Sender: No OFD packet to send [04:34:18]OFD Sender: No OFD packet to send [04:34:23]OFD Sender: No OFD packet to send [04:34:28]OFD Sender: No OFD packet to send [04:34:33]OFD Sender: No OFD packet to send [04:34:38]OFD Sender: No OFD packet to send [04:34:43]OFD Sender: No OFD packet to send [04:34:48]OFD Sender: No OFD packet to send [04:34:53]OFD Sender: No OFD packet to send [04:34:58]OFD Sender: No OFD packet to send [04:35:03]OFD Sender: No OFD packet to send [04:35:08]OFD Sender: No OFD packet to send [04:35:13]OFD Sender: No OFD packet to send [04:35:18]OFD Sender: No OFD packet to send [04:35:23]OFD Sender: No OFD packet to send [04:35:28]OFD Sender: No OFD packet to send [04:35:33]OFD Sender: No OFD packet to send [04:35:38]OFD Sender: No OFD packet to send [04:35:41]accept exits with 7 [04:35:41]New connection [04:35:41]New thread 3067481444 created [04:35:41]Thread 3067338084 joined [04:35:41]Waiting for new connection... [04:35:41] Sock 7.Parse request [04:35:41]Sock 7.Check first char [04:35:41]Sock 7.First char is OK [04:35:41]request: POST /json_proto HTTP/1.0 [04:35:41]Method: POST [04:35:41]URL: /json_proto [04:35:41]Method is POST - this is cgi request [04:35:41]url: /json_proto [04:35:41]query_string will be loaded in cgi processing [04:35:41]execute_cgi json_proto POST (null) [04:35:41]execute_cgi path=json_proto method=POST [04:35:41]POST find Content-Length [04:35:41]Host: 172.17.62.5:8080 [04:35:41]Content-Length: 682 [04:35:41]Content-Type: application/json [04:35:41] [04:35:41]POST finish read [04:35:41]Found Content-Length = 682 [04:35:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 20.190, "sum" : 1300.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:35:41]execute_script... [04:35: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)191283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 20.190, "sum" : 1300.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:35:41]POST & json_proto [04:35:41]process_json_proto [04:35:41]json parsed OK: [04:35:41]protocol is kg_v1.0 [04:35:41]action value=close_receipt [04:35:41]process_action close_receipt [04:35:41]cmd_close_receipt [04:35:41]MH_GetDate [04:35:41]Write to MH i2c: F0 00 00 08 12 09 [04:35:41]Write i2c OK [04:35:41]MH_I2C_Read... [04:35:41]Read from MH i2c: F0 [04:35:41]MH_I2C_Read... [04:35:41]Read from MH i2c: F0 09 00 [04:35:41]MH_I2C_Read... [04:35:41]Read from MH i2c: F0 09 00 08 12 00 9F 97 24 66 F4 E9 65 64 78 [04:35:41]GetLastDocTimeStamp 1713673387 [04:35:41]current date 1713674143 [04:35:41]FM_GetShiftState [04:35:41]SAM_PROTO_GetShiftState [04:35:41]wFMCommunicate request_size=4 [04:35:41]MH_SAM_APDU [04:35:41]CAPDU: 80 13 01 00 [04:35:41]Write to MH i2c: E2 08 00 09 12 80 13 01 00 00 00 00 00 98 [04:35:41]Write i2c OK [04:35:41]MH_I2C_Read... [04:35:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:35:41]Read from MH i2c: E2 [04:35:41]MH_I2C_Read... [04:35:41]Read from MH i2c: E2 0E 00 [04:35:41]MH_I2C_Read... [04:35:41]Read from MH i2c: E2 0E 00 09 12 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 DF [04:35:41]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [04:35:41]wFMCommunicate OK [04:35:41]SAM_PROTO_GetShiftState done [04:35:41]FM_GetShiftState done [04:35:41]opened in 1713658965 [04:35:41]opened+sec_in_day 1713745365 [04:35:41]quantity*price = 130023 [04:35:41]sum+1 = 130025 [04:35:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.08 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 11 21.04.2024 04:35 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76755 ФПД: 191036435291724 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T043543&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76755&fm=191036435291724&tin=02508201610067®Number=0000000000091573&sum=130000 [04:35:42]StoreToDocumentArchive [04:35:42]shift 372 fd 76755 [04:35:42]save to /storage/0372/doc_00076755 [04:35:42]save last doc name /storage/0372/doc_00076755 to /storage/kkm_last_doc_name [04:35:42]save OK [04:35:42]Clear old archive folders... [04:35:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:35:42]tlvbuf is B6FD6C80 [04:35:42]SAM_PROTO_ClearQueue [04:35:42]wFMCommunicate request_size=4 [04:35:42]MH_SAM_APDU [04:35:42]CAPDU: 80 09 00 00 [04:35:42]Write to MH i2c: E2 08 00 16 12 80 09 00 00 00 00 00 00 9A [04:35:42]Write i2c OK [04:35:42]MH_I2C_Read... [04:35:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:35:42]Read from MH i2c: E2 [04:35:42]MH_I2C_Read... [04:35:42]Read from MH i2c: E2 03 00 [04:35:42]MH_I2C_Read... [04:35:42]Read from MH i2c: E2 03 00 16 12 00 90 00 9C [04:35:42]RAPDU: 90 00 [04:35:42]wFMCommunicate OK [04:35:42]SAM_PROTO_ClearQueue done [04:35:42]KKMCreateOFDPacket [04:35:42]OFDProtocolAddRootSTLVToBuf [04:35:42]FM_MakeSignedData [04:35:42]FM_MakeSignedData [04:35:42]SAM_PROTO_SignData [04:35:42]wFMCommunicate request_size=4 [04:35:42]MH_SAM_APDU [04:35:42]CAPDU: 80 0D 01 02 [04:35:42]Write to MH i2c: E2 08 00 17 12 80 0D 01 02 00 00 00 00 A2 [04:35:42]Write i2c OK [04:35:42]MH_I2C_Read... [04:35:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:35:42]Read from MH i2c: E2 [04:35:42]MH_I2C_Read... [04:35:42]Read from MH i2c: E2 03 00 [04:35:42]MH_I2C_Read... [04:35:42]Read from MH i2c: E2 03 00 17 12 00 90 00 9D [04:35:42]RAPDU: 90 00 [04:35:42]wFMCommunicate OK [04:35:42]wFMCommunicate request_size=255 [04:35:42]MH_SAM_APDU [04:35: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 4E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 E8 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 9F 97 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D3 2B 01 00 35 04 06 00 AD [04:35:42]Write to MH i2c: E2 02 01 18 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 4E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 E8 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 9F 97 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D3 2B 01 00 35 04 06 00 AD 00 00 29 [04:35:42]Write i2c OK [04:35:42]MH_I2C_Read... [04:35:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:35:42]Read from MH i2c: E2 [04:35:42]MH_I2C_Read... [04:35:42]Read from MH i2c: E2 03 00 [04:35:42]MH_I2C_Read... [04:35:42]Read from MH i2c: E2 03 00 18 12 00 90 00 9E [04:35:42]RAPDU: 90 00 [04:35:42]wFMCommunicate OK [04:35:42]wFMCommunicate request_size=10 [04:35:42]MH_SAM_APDU [04:35:42]CAPDU: 80 0D 02 02 05 BF 22 DD 5E 4C [04:35:42]Write to MH i2c: E2 0D 00 19 12 80 0D 02 02 05 00 BF 22 DD 5E 4C 00 00 17 [04:35:42]Write i2c OK [04:35:42]MH_I2C_Read... [04:35:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:35:42]Read from MH i2c: E2 [04:35:42]MH_I2C_Read... [04:35:42]Read from MH i2c: E2 03 00 [04:35:42]MH_I2C_Read... [04:35:42]Read from MH i2c: E2 03 00 19 12 00 90 00 9F [04:35:42]RAPDU: 90 00 [04:35:42]wFMCommunicate OK [04:35:42]wFMCommunicate request_size=4 [04:35:42]MH_SAM_APDU [04:35:42]CAPDU: 80 0D 03 02 [04:35:42]Write to MH i2c: E2 08 00 1A 12 80 0D 03 02 00 00 00 00 A7 [04:35:42]Write i2c OK [04:35:42]MH_I2C_Read... [04:35:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:35:42]Read from MH i2c: E2 [04:35:42]MH_I2C_Read... [04:35:42]Read from MH i2c: E2 0B 00 [04:35:42]MH_I2C_Read... [04:35:42]Read from MH i2c: E2 0B 00 1A 12 00 6C 91 FC 89 14 D2 88 96 90 00 2E [04:35:42]RAPDU: 6C 91 FC 89 14 D2 88 96 90 00 [04:35:42]wFMCommunicate OK [04:35:42]SAM_PROTO_SignData done [04:35:42]FM_MakeSignedData done [04:35:42]CreateOFDProtocolMessage [04:35:42]wFMCommunicate request_size=4 [04:35:42]MH_SAM_APDU [04:35:42]CAPDU: 80 11 00 00 [04:35:42]Write to MH i2c: E2 08 00 1B 12 80 11 00 00 00 00 00 00 A7 [04:35:42]Write i2c OK [04:35:42]MH_I2C_Read... [04:35:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:35:42]Read from MH i2c: E2 [04:35:42]MH_I2C_Read... [04:35:42]Read from MH i2c: E2 17 00 [04:35:42]MH_I2C_Read... [04:35:42]Read from MH i2c: E2 17 00 1B 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 FA [04:35:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [04:35:42]wFMCommunicate OK [04:35:42]CreateOFDProtocolMessage done [04:35:42]OFDSenderStorePacket 76755 [04:35:42]StoreOFDPacket docnum=76755 [04:35:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 E7 F3 07 01 ED 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 4E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 E8 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 9F 97 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D3 2B 01 00 35 04 06 00 AD BF 22 DD 5E 4C 6C 91 FC 89 14 D2 88 96 [04:35:42]CheckFolder [04:35:42]dirname=/storage/ofd_packets [04:35:42]CheckFolder done [04:35:42]ProducePacketName [04:35:42]name=ofd_packets/00076755 [04:35:42]NVStorageSaveData ofd_packets/00076755 [04:35:42]File name is /storage/ofd_packets/00076755 [04:35:42]Write 301 bytes [04:35:42]NVStorageSaveData done [04:35:42]OFDSenderStorePacket done [04:35:42]KKMCreateOFDPacket done [04:35:42]NVStorageSaveData kkm_last_timestamp [04:35:42]File name is /storage/kkm_last_timestamp [04:35:42]Write 4 bytes [04:35:42]NVStorageSaveData done [04:35:42]ExternCall_PrintAddStr [04:35:42]wPrintStart [04:35:42]Write to MH i2c: 01 00 00 1C 12 2E [04:35:42]Write i2c OK [04:35:42]MH_I2C_Read... [04:35:42]Read from MH i2c: 01 [04:35:42]MH_I2C_Read... [04:35:42]Read from MH i2c: 01 07 00 [04:35:42]MH_I2C_Read... [04:35:42]Read from MH i2c: 01 07 00 1C 12 00 00 00 00 00 FF 0F 43 [04:35:42]RasterBufferAndPrint [04:35:42]line Счет N : (1)191283 [04:35:42]line ИНН: 02508201610067 [04:35:42]line Контрольно-Кассовый Чек [04:35:42]line ПРОДАЖА [04:35:42]line ТРК (МРК, ГНК) : 43 [04:35:42]line Товар: 2710124130 [04:35:42]line Аи-92-К-5 [04:35:42]line 20.190 * 64.40 [04:35:42]line = 1300.24 [04:35:42]line НДС 12% НСП 1% [04:35:42]line > о реализуемом товаре [04:35:42]line ОКРУГЛЕНИЕ: -0.24 [04:35:42]line ИТОГО: 1300.00 [04:35:42]line Внесено: 1300.00 [04:35:42]line СДАЧА: 0.00 [04:35:42]line НСП 1% : 11.51 [04:35:42]line НДС 12% : 138.08 [04:35:42]line Наличными: 1300.00 [04:35:42]line Безнал.: 0.00 [04:35:42]line Место: АЗС № 106 "Партнер Нефть" [04:35:42]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [04:35:42]line СНО: Общий режим [04:35:42]line Чек 11 21.04.2024 04:35 [04:35:42]line Смена: 372 ФФД: 1.0 [04:35:42]line ЗНМ: 0300000141 [04:35:42]line РНМ: 0000000000091573 [04:35:42]line Версия ККМ: 001 [04:35:42]line ФМ: 0000000000874652 [04:35:42]line ФД: 76755 [04:35:43]line ФПД: 191036435291724 [04:35:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T043543&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76755&fm=191036435291724&tin=02508201610067®Number=0000000000091573&sum=130000 [04:35:43]OFD Sender: Processing packet 76755 [packets to send 129, broken 128] [04:35:43]ProducePacketName [04:35:43]name=ofd_packets/00076755 [04:35:43]OFD Sender: To server: pG, [04:35:43]CommunicateWithHost lk.salyk.kg:30040 [04:35:43]ConnectInit lk.salyk.kg [04:35:43]written 0, free lines is 4095 [04:35:43]Write to MH i2c: 01 00 00 46 12 58 [04:35:43]Write i2c OK [04:35:43]MH_I2C_Read... [04:35:43]Read from MH i2c: 01 [04:35:43]MH_I2C_Read... [04:35:43]Read from MH i2c: 01 07 00 [04:35:43]MH_I2C_Read... [04:35:43]Read from MH i2c: 01 07 00 46 12 00 00 00 00 00 E4 0C 4F [04:35:43]RasterBufferAndPrint [04:35:43]line [04:35:43]line [04:35:43]line [04:35:43]line [04:35:43]line [04:35:43]written 0, free lines is 3306 [04:35:43]MH_Cut [04:35:43]Write to MH i2c: D1 01 00 4D 12 01 31 [04:35:43]Write i2c OK [04:35:43]MH_I2C_Read... [04:35:43]Read from MH i2c: D1 [04:35:43]MH_I2C_Read... [04:35:43]Read from MH i2c: D1 01 00 [04:35:43]MH_I2C_Read... [04:35:43]Read from MH i2c: D1 01 00 4D 12 00 30 [04:35:43]Write to MH i2c: 01 00 00 4E 12 60 [04:35:43]Write i2c OK [04:35:43]MH_I2C_Read... [04:35:44]*** Cut start [04:35:44]*** Partial cut [04:35:44]*** CUTSNS_PIN = 1 [04:35:44]*** CUTSNS_PIN = 0 [04:35:44]*** Brake cut motor [04:35:45]Read from MH i2c: 01 [04:35:45]*** Stop cut motor [04:35:45]*** Cut end [04:35:45]MH_I2C_Read... [04:35:45]Read from MH i2c: 01 07 00 [04:35:45]MH_I2C_Read... [04:35:45]Read from MH i2c: 01 07 00 4E 12 00 00 00 00 00 FF 0F 75 [04:35:45]process_action close_receipt done [04:35:45]requested_data is exist [04:35:45]produce_requested_data [04:35:45]requested_item fm.sn is exist - process it [04:35:45]wFMCommunicate request_size=4 [04:35:45]MH_SAM_APDU [04:35:45]CAPDU: 80 11 00 00 [04:35:45]Write to MH i2c: E2 08 00 4F 12 80 11 00 00 00 00 00 00 DB [04:35:45]Write i2c OK [04:35:45]MH_I2C_Read... [04:35:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:35:45]Read from MH i2c: E2 [04:35:45]MH_I2C_Read... [04:35:45]Read from MH i2c: E2 17 00 [04:35:45]MH_I2C_Read... [04:35:45]Read from MH i2c: E2 17 00 4F 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 2E [04:35:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [04:35:45]wFMCommunicate OK [04:35:45]requested_item fd.num is exist - process it [04:35:45]SAM_PROTO_GetFieldsCounters [04:35:45]wFMCommunicate request_size=4 [04:35:45]MH_SAM_APDU [04:35:45]CAPDU: 80 13 00 00 [04:35:45]Write to MH i2c: E2 08 00 50 12 80 13 00 00 00 00 00 00 DE [04:35:45]Write i2c OK [04:35:45]MH_I2C_Read... [04:35:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:35:45]Read from MH i2c: E2 [04:35:45]MH_I2C_Read... [04:35:45]Read from MH i2c: E2 62 00 [04:35:45]MH_I2C_Read... [04:35:45]Read from MH i2c: E2 62 00 50 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D3 2B 01 00 0E 04 04 00 74 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [04:35: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D3 2B 01 00 0E 04 04 00 74 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:35:45]wFMCommunicate OK [04:35:45]SAM_PROTO_GetFieldsCounters done [04:35:45]requested_item shift.num is exist - process it [04:35:45]requested_item shift.opened is exist - process it [04:35:45]req_shift_opened [04:35:45]FM_GetShiftState [04:35:45]SAM_PROTO_GetShiftState [04:35:45]wFMCommunicate request_size=4 [04:35:45]MH_SAM_APDU [04:35:45]CAPDU: 80 13 01 00 [04:35:45]Write to MH i2c: E2 08 00 51 12 80 13 01 00 00 00 00 00 E0 [04:35:45]Write i2c OK [04:35:45]MH_I2C_Read... [04:35:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:35:45]Read from MH i2c: E2 [04:35:45]MH_I2C_Read... [04:35:45]Read from MH i2c: E2 0E 00 [04:35:45]MH_I2C_Read... [04:35:45]Read from MH i2c: E2 0E 00 51 12 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 27 [04:35:45]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [04:35:45]wFMCommunicate OK [04:35:45]SAM_PROTO_GetShiftState done [04:35:45]FM_GetShiftState done [04:35:45]req_shift_opened done [04:35:45]requested_item shift.open_date is exist - process it [04:35:45]req_shift_open_date [04:35:45]req_shift_open_date done [04:35:45]produce_requested_data done [04:35:45]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76755,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [04:35:45]process_action_free close_receipt [04:35:45]json_value_free [04:35:45]json_value_free done [04:35:45]process_json_proto returns [04:35:45]Send response to host [04:35:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76755,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [04:35:45]free response buf [04:35:45]execute_script done [04:35:45]execute_script returns [04:35:45]free content buf [04:35:45]Sock 7.Close socket [04:35:45]Sock 7.Thread stoped [04:35:47]Connected sock=10 [04:35:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 E7 F3 07 01 ED 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 4E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 E8 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 9F 97 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D3 2B 01 00 35 04 06 00 AD BF 22 DD 5E 4C 6C 91 FC 89 14 D2 88 96 [04:35:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 52 37 47 00 78 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 34 36 35 32 10 04 04 00 D3 2B 01 00 F4 03 04 00 2A 3F 24 66 B6 04 01 00 00 AA 71 B0 38 23 F5 71 DA [04:35:48]CommunicateWithHost err = 0 [04:35:48]CheckOFDResponse [04:35:48]1017 (14) - 77093643461234 [04:35:48]1041 (16) - 0000000000874652 [04:35:48]1040 (4) - 76755 [04:35:48]1012 (4) - 20.04.2024 22:18 [04:35:48]1206 (1) - 0 [04:35:48]OFD Sender: Remove packet 76755 [04:35:48]ProducePacketName [04:35:48]name=ofd_packets/00076755 [04:35:48]NVStorageDeleteData [04:35:48]OFD Sender: No OFD packet to send [04:35:53]OFD Sender: No OFD packet to send [04:35:58]OFD Sender: No OFD packet to send [04:36:03]OFD Sender: No OFD packet to send [04:36:08]OFD Sender: No OFD packet to send [04:36:13]OFD Sender: No OFD packet to send [04:36:18]OFD Sender: No OFD packet to send [04:36:23]OFD Sender: No OFD packet to send [04:36:28]OFD Sender: No OFD packet to send [04:36:33]OFD Sender: No OFD packet to send [04:36:38]OFD Sender: No OFD packet to send [04:36:43]OFD Sender: No OFD packet to send [04:36:48]OFD Sender: No OFD packet to send [04:36:53]OFD Sender: No OFD packet to send [04:36:58]OFD Sender: No OFD packet to send [04:37:03]OFD Sender: No OFD packet to send [04:37:08]OFD Sender: No OFD packet to send [04:37:13]OFD Sender: No OFD packet to send [04:37:18]OFD Sender: No OFD packet to send [04:37:23]OFD Sender: No OFD packet to send [04:37:28]OFD Sender: No OFD packet to send [04:37:33]OFD Sender: No OFD packet to send [04:37:38]OFD Sender: No OFD packet to send [04:37:43]OFD Sender: No OFD packet to send [04:37:48]OFD Sender: No OFD packet to send [04:37:53]OFD Sender: No OFD packet to send [04:37:58]OFD Sender: No OFD packet to send [04:38:03]OFD Sender: No OFD packet to send [04:38:08]OFD Sender: No OFD packet to send [04:38:13]OFD Sender: No OFD packet to send [04:38:18]OFD Sender: No OFD packet to send [04:38:23]OFD Sender: No OFD packet to send [04:38:28]OFD Sender: No OFD packet to send [04:38:33]OFD Sender: No OFD packet to send [04:38:38]OFD Sender: No OFD packet to send [04:38:43]OFD Sender: No OFD packet to send [04:38:48]OFD Sender: No OFD packet to send [04:38:53]OFD Sender: No OFD packet to send [04:38:58]OFD Sender: No OFD packet to send [04:39:03]OFD Sender: No OFD packet to send [04:39:08]OFD Sender: No OFD packet to send [04:39:13]OFD Sender: No OFD packet to send [04:39:18]OFD Sender: No OFD packet to send [04:39:23]OFD Sender: No OFD packet to send [04:39:28]OFD Sender: No OFD packet to send [04:39:33]OFD Sender: No OFD packet to send [04:39:38]OFD Sender: No OFD packet to send [04:39:43]OFD Sender: No OFD packet to send [04:39:48]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:06]accept exits with 9 [04:43:06]New connection [04:43:06]New thread 3067338084 created [04:43:06]Thread 3067481444 joined [04:43:06]Waiting for new connection... [04:43:06] Sock 9.Parse request [04:43:06]Sock 9.Check first char [04:43:06]Sock 9.First char is OK [04:43:06]request: POST /json_proto HTTP/1.0 [04:43:06]Method: POST [04:43:06]URL: /json_proto [04:43:06]Method is POST - this is cgi request [04:43:06]url: /json_proto [04:43:06]query_string will be loaded in cgi processing [04:43:06]execute_cgi json_proto POST (null) [04:43:06]execute_cgi path=json_proto method=POST [04:43:06]POST find Content-Length [04:43:06]Host: 172.17.62.5:8080 [04:43:06]Content-Length: 682 [04:43:06]Content-Type: application/json [04:43:06] [04:43:06]POST finish read [04:43:06]Found Content-Length = 682 [04:43:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:43:06]execute_script... [04:43: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)191284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:43:06]POST & json_proto [04:43:06]process_json_proto [04:43:06]json parsed OK: [04:43:06]protocol is kg_v1.0 [04:43:06]action value=close_receipt [04:43:06]process_action close_receipt [04:43:06]cmd_close_receipt [04:43:06]MH_GetDate [04:43:06]Write to MH i2c: F0 00 00 52 12 53 [04:43:06]Write i2c OK [04:43:06]MH_I2C_Read... [04:43:06]Read from MH i2c: F0 [04:43:06]MH_I2C_Read... [04:43:06]Read from MH i2c: F0 09 00 [04:43:06]MH_I2C_Read... [04:43:06]Read from MH i2c: F0 09 00 52 12 00 5D 99 24 66 F4 E9 65 64 82 [04:43:06]GetLastDocTimeStamp 1713674143 [04:43:06]current date 1713674589 [04:43:06]FM_GetShiftState [04:43:06]SAM_PROTO_GetShiftState [04:43:06]wFMCommunicate request_size=4 [04:43:06]MH_SAM_APDU [04:43:06]CAPDU: 80 13 01 00 [04:43:06]Write to MH i2c: E2 08 00 53 12 80 13 01 00 00 00 00 00 E2 [04:43:06]Write i2c OK [04:43:06]MH_I2C_Read... [04:43:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:43:06]Read from MH i2c: E2 [04:43:06]MH_I2C_Read... [04:43:06]Read from MH i2c: E2 0E 00 [04:43:06]MH_I2C_Read... [04:43:06]Read from MH i2c: E2 0E 00 53 12 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 29 [04:43:06]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [04:43:06]wFMCommunicate OK [04:43:06]SAM_PROTO_GetShiftState done [04:43:06]FM_GetShiftState done [04:43:06]opened in 1713658965 [04:43:06]opened+sec_in_day 1713745365 [04:43:06]quantity*price = 100013 [04:43:06]sum+1 = 100014 [04:43:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 12 21.04.2024 04:43 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76756 ФПД: 60213722021917 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T044309&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76756&fm=60213722021917&tin=02508201610067®Number=0000000000091573&sum=100000 [04:43:08]StoreToDocumentArchive [04:43:08]shift 372 fd 76756 [04:43:08]save to /storage/0372/doc_00076756 [04:43:08]save last doc name /storage/0372/doc_00076756 to /storage/kkm_last_doc_name [04:43:08]save OK [04:43:08]Clear old archive folders... [04:43:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:43:08]tlvbuf is 018A78A0 [04:43:08]SAM_PROTO_ClearQueue [04:43:08]wFMCommunicate request_size=4 [04:43:08]MH_SAM_APDU [04:43:08]CAPDU: 80 09 00 00 [04:43:08]Write to MH i2c: E2 08 00 60 12 80 09 00 00 00 00 00 00 E4 [04:43:08]Write i2c OK [04:43:08]MH_I2C_Read... [04:43:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:43:08]Read from MH i2c: E2 [04:43:08]MH_I2C_Read... [04:43:08]Read from MH i2c: E2 03 00 [04:43:08]MH_I2C_Read... [04:43:08]Read from MH i2c: E2 03 00 60 12 00 90 00 E6 [04:43:08]RAPDU: 90 00 [04:43:08]wFMCommunicate OK [04:43:08]SAM_PROTO_ClearQueue done [04:43:08]KKMCreateOFDPacket [04:43:08]OFDProtocolAddRootSTLVToBuf [04:43:08]FM_MakeSignedData [04:43:08]FM_MakeSignedData [04:43:08]SAM_PROTO_SignData [04:43:08]wFMCommunicate request_size=4 [04:43:08]MH_SAM_APDU [04:43:08]CAPDU: 80 0D 01 02 [04:43:08]Write to MH i2c: E2 08 00 61 12 80 0D 01 02 00 00 00 00 EC [04:43:08]Write i2c OK [04:43:08]MH_I2C_Read... [04:43:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:43:08]Read from MH i2c: E2 [04:43:08]MH_I2C_Read... [04:43:08]Read from MH i2c: E2 03 00 [04:43:08]MH_I2C_Read... [04:43:08]Read from MH i2c: E2 03 00 61 12 00 90 00 E7 [04:43:08]RAPDU: 90 00 [04:43:08]wFMCommunicate OK [04:43:08]wFMCommunicate request_size=255 [04:43:08]MH_SAM_APDU [04:43: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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 5D 99 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D4 2B 01 00 35 04 06 00 36 [04:43:08]Write to MH i2c: E2 02 01 62 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 5D 99 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D4 2B 01 00 35 04 06 00 36 00 00 F4 [04:43:08]Write i2c OK [04:43:08]MH_I2C_Read... [04:43:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:43:08]Read from MH i2c: E2 [04:43:08]MH_I2C_Read... [04:43:08]Read from MH i2c: E2 03 00 [04:43:08]MH_I2C_Read... [04:43:08]Read from MH i2c: E2 03 00 62 12 00 90 00 E8 [04:43:08]RAPDU: 90 00 [04:43:08]wFMCommunicate OK [04:43:08]wFMCommunicate request_size=10 [04:43:08]MH_SAM_APDU [04:43:08]CAPDU: 80 0D 02 02 05 C3 99 83 00 1D [04:43:08]Write to MH i2c: E2 0D 00 63 12 80 0D 02 02 05 00 C3 99 83 00 1D 00 00 F5 [04:43:08]Write i2c OK [04:43:08]MH_I2C_Read... [04:43:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:43:08]Read from MH i2c: E2 [04:43:08]MH_I2C_Read... [04:43:08]Read from MH i2c: E2 03 00 [04:43:08]MH_I2C_Read... [04:43:08]Read from MH i2c: E2 03 00 63 12 00 90 00 E9 [04:43:08]RAPDU: 90 00 [04:43:08]wFMCommunicate OK [04:43:08]wFMCommunicate request_size=4 [04:43:08]MH_SAM_APDU [04:43:08]CAPDU: 80 0D 03 02 [04:43:08]Write to MH i2c: E2 08 00 64 12 80 0D 03 02 00 00 00 00 F1 [04:43:08]Write i2c OK [04:43:08]MH_I2C_Read... [04:43:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:43:08]Read from MH i2c: E2 [04:43:08]MH_I2C_Read... [04:43:08]Read from MH i2c: E2 0B 00 [04:43:08]MH_I2C_Read... [04:43:08]Read from MH i2c: E2 0B 00 64 12 00 4D B2 78 B9 66 84 61 54 90 00 C1 [04:43:08]RAPDU: 4D B2 78 B9 66 84 61 54 90 00 [04:43:08]wFMCommunicate OK [04:43:08]SAM_PROTO_SignData done [04:43:08]FM_MakeSignedData done [04:43:08]CreateOFDProtocolMessage [04:43:08]wFMCommunicate request_size=4 [04:43:08]MH_SAM_APDU [04:43:08]CAPDU: 80 11 00 00 [04:43:08]Write to MH i2c: E2 08 00 65 12 80 11 00 00 00 00 00 00 F1 [04:43:08]Write i2c OK [04:43:08]MH_I2C_Read... [04:43:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:43:08]Read from MH i2c: E2 [04:43:08]MH_I2C_Read... [04:43:08]Read from MH i2c: E2 17 00 [04:43:08]MH_I2C_Read... [04:43:08]Read from MH i2c: E2 17 00 65 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 44 [04:43:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [04:43:08]wFMCommunicate OK [04:43:08]CreateOFDProtocolMessage done [04:43:08]OFDSenderStorePacket 76756 [04:43:08]StoreOFDPacket docnum=76756 [04:43:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 6E E9 07 01 2E 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 5D 99 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D4 2B 01 00 35 04 06 00 36 C3 99 83 00 1D 4D B2 78 B9 66 84 61 54 [04:43:08]CheckFolder [04:43:08]dirname=/storage/ofd_packets [04:43:08]CheckFolder done [04:43:08]ProducePacketName [04:43:08]name=ofd_packets/00076756 [04:43:08]NVStorageSaveData ofd_packets/00076756 [04:43:08]File name is /storage/ofd_packets/00076756 [04:43:08]Write 301 bytes [04:43:08]NVStorageSaveData done [04:43:08]OFDSenderStorePacket done [04:43:08]KKMCreateOFDPacket done [04:43:08]NVStorageSaveData kkm_last_timestamp [04:43:08]File name is /storage/kkm_last_timestamp [04:43:08]Write 4 bytes [04:43:08]NVStorageSaveData done [04:43:08]ExternCall_PrintAddStr [04:43:08]wPrintStart [04:43:08]Write to MH i2c: 01 00 00 66 12 78 [04:43:08]Write i2c OK [04:43:08]MH_I2C_Read... [04:43:08]Read from MH i2c: 01 [04:43:08]MH_I2C_Read... [04:43:08]Read from MH i2c: 01 07 00 [04:43:08]MH_I2C_Read... [04:43:08]Read from MH i2c: 01 07 00 66 12 00 00 00 00 00 FF 0F 8D [04:43:08]RasterBufferAndPrint [04:43:08]line Счет N : (1)191284 [04:43:08]line ИНН: 02508201610067 [04:43:08]line Контрольно-Кассовый Чек [04:43:08]line ПРОДАЖА [04:43:08]line ТРК (МРК, ГНК) : 33 [04:43:08]line Товар: 2710124130 [04:43:08]line Аи-92-К-5 [04:43:08]line 15.530 * 64.40 [04:43:08]line = 1000.13 [04:43:08]line НДС 12% НСП 1% [04:43:08]line > о реализуемом товаре [04:43:08]line ОКРУГЛЕНИЕ: -0.13 [04:43:08]line ИТОГО: 1000.00 [04:43:08]line Внесено: 1000.00 [04:43:08]line СДАЧА: 0.00 [04:43:08]line НСП 1% : 8.85 [04:43:08]line НДС 12% : 106.21 [04:43:08]line Наличными: 1000.00 [04:43:08]line Безнал.: 0.00 [04:43:08]line Место: АЗС № 106 "Партнер Нефть" [04:43:08]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [04:43:08]line СНО: Общий режим [04:43:08]line Чек 12 21.04.2024 04:43 [04:43:08]line Смена: 372 ФФД: 1.0 [04:43:08]line ЗНМ: 0300000141 [04:43:08]line РНМ: 0000000000091573 [04:43:08]line Версия ККМ: 001 [04:43:08]line ФМ: 0000000000874652 [04:43:08]line ФД: 76756 [04:43:08]line ФПД: 60213722021917 [04:43:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T044309&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76756&fm=60213722021917&tin=02508201610067®Number=0000000000091573&sum=100000 [04:43:08]OFD Sender: Processing packet 76756 [packets to send 129, broken 128] [04:43:08]ProducePacketName [04:43:08]name=ofd_packets/00076756 [04:43:08]OFD Sender: To server: pG, [04:43:08]CommunicateWithHost lk.salyk.kg:30040 [04:43:08]ConnectInit lk.salyk.kg [04:43:08]written 0, free lines is 4095 [04:43:09]Connected sock=10 [04:43:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 6E E9 07 01 2E 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 5D 99 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D4 2B 01 00 35 04 06 00 36 C3 99 83 00 1D 4D B2 78 B9 66 84 61 54 [04:43:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 7D 65 47 00 92 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 34 36 35 32 10 04 04 00 D4 2B 01 00 F4 03 04 00 E3 40 24 66 B6 04 01 00 00 D1 84 03 46 01 9F 33 3D [04:43:09]CommunicateWithHost err = 0 [04:43:09]CheckOFDResponse [04:43:09]1017 (14) - 77093643461234 [04:43:09]1041 (16) - 0000000000874652 [04:43:09]1040 (4) - 76756 [04:43:09]1012 (4) - 20.04.2024 22:25 [04:43:09]1206 (1) - 0 [04:43:09]OFD Sender: Remove packet 76756 [04:43:09]ProducePacketName [04:43:09]name=ofd_packets/00076756 [04:43:09]NVStorageDeleteData [04:43:09]Write to MH i2c: 01 00 00 90 12 A2 [04:43:09]Write i2c OK [04:43:09]MH_I2C_Read... [04:43:09]Read from MH i2c: 01 [04:43:09]MH_I2C_Read... [04:43:09]Read from MH i2c: 01 07 00 [04:43:09]MH_I2C_Read... [04:43:09]Read from MH i2c: 01 07 00 90 12 00 00 00 00 00 F2 0C A7 [04:43:09]RasterBufferAndPrint [04:43:09]line [04:43:09]line [04:43:09]line [04:43:09]line [04:43:09]line [04:43:09]written 0, free lines is 3318 [04:43:09]MH_Cut [04:43:09]Write to MH i2c: D1 01 00 97 12 01 7B [04:43:09]Write i2c OK [04:43:09]MH_I2C_Read... [04:43:09]Read from MH i2c: D1 [04:43:09]MH_I2C_Read... [04:43:09]Read from MH i2c: D1 01 00 [04:43:09]MH_I2C_Read... [04:43:09]Read from MH i2c: D1 01 00 97 12 00 7A [04:43:09]Write to MH i2c: 01 00 00 98 12 AA [04:43:09]Write i2c OK [04:43:09]MH_I2C_Read... [04:43:09]OFD Sender: No OFD packet to send [04:43:10]*** Cut start [04:43:10]*** Partial cut [04:43:10]*** CUTSNS_PIN = 1 [04:43:10]*** CUTSNS_PIN = 0 [04:43:10]*** Brake cut motor [04:43:10]Read from MH i2c: 01 [04:43:10]MH_I2C_Read... [04:43:10]*** Stop cut motor [04:43:10]*** Cut end [04:43:10]Read from MH i2c: 01 07 00 [04:43:10]MH_I2C_Read... [04:43:10]Read from MH i2c: 01 07 00 98 12 00 00 00 00 00 FF 0F BF [04:43:10]process_action close_receipt done [04:43:10]requested_data is exist [04:43:10]produce_requested_data [04:43:10]requested_item fm.sn is exist - process it [04:43:10]wFMCommunicate request_size=4 [04:43:10]MH_SAM_APDU [04:43:10]CAPDU: 80 11 00 00 [04:43:10]Write to MH i2c: E2 08 00 99 12 80 11 00 00 00 00 00 00 25 [04:43:10]Write i2c OK [04:43:10]MH_I2C_Read... [04:43:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:43:10]Read from MH i2c: E2 [04:43:10]MH_I2C_Read... [04:43:10]Read from MH i2c: E2 17 00 [04:43:10]MH_I2C_Read... [04:43:10]Read from MH i2c: E2 17 00 99 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 78 [04:43:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [04:43:10]wFMCommunicate OK [04:43:10]requested_item fd.num is exist - process it [04:43:10]SAM_PROTO_GetFieldsCounters [04:43:10]wFMCommunicate request_size=4 [04:43:10]MH_SAM_APDU [04:43:10]CAPDU: 80 13 00 00 [04:43:10]Write to MH i2c: E2 08 00 9A 12 80 13 00 00 00 00 00 00 28 [04:43:10]Write i2c OK [04:43:10]MH_I2C_Read... [04:43:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:43:10]Read from MH i2c: E2 [04:43:10]MH_I2C_Read... [04:43:10]Read from MH i2c: E2 62 00 [04:43:10]MH_I2C_Read... [04:43:10]Read from MH i2c: E2 62 00 9A 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D4 2B 01 00 0E 04 04 00 74 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [04:43: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D4 2B 01 00 0E 04 04 00 74 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:43:10]wFMCommunicate OK [04:43:10]SAM_PROTO_GetFieldsCounters done [04:43:10]requested_item shift.num is exist - process it [04:43:10]requested_item shift.opened is exist - process it [04:43:10]req_shift_opened [04:43:10]FM_GetShiftState [04:43:10]SAM_PROTO_GetShiftState [04:43:10]wFMCommunicate request_size=4 [04:43:10]MH_SAM_APDU [04:43:10]CAPDU: 80 13 01 00 [04:43:10]Write to MH i2c: E2 08 00 9B 12 80 13 01 00 00 00 00 00 2A [04:43:10]Write i2c OK [04:43:10]MH_I2C_Read... [04:43:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:43:10]Read from MH i2c: E2 [04:43:10]MH_I2C_Read... [04:43:10]Read from MH i2c: E2 0E 00 [04:43:10]MH_I2C_Read... [04:43:10]Read from MH i2c: E2 0E 00 9B 12 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 71 [04:43:10]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [04:43:10]wFMCommunicate OK [04:43:10]SAM_PROTO_GetShiftState done [04:43:10]FM_GetShiftState done [04:43:10]req_shift_opened done [04:43:10]requested_item shift.open_date is exist - process it [04:43:10]req_shift_open_date [04:43:10]req_shift_open_date done [04:43:10]produce_requested_data done [04:43:10]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76756,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [04:43:10]process_action_free close_receipt [04:43:10]json_value_free [04:43:10]json_value_free done [04:43:10]process_json_proto returns [04:43:10]Send response to host [04:43:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76756,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [04:43:10]free response buf [04:43:10]execute_script done [04:43:10]execute_script returns [04:43:10]free content buf [04:43:10]Sock 9.Close socket [04:43:10]Sock 9.Thread stoped [04:43:14]OFD Sender: No OFD packet to send [04:43:19]OFD Sender: No OFD packet to send [04:43:21]accept exits with 7 [04:43:21]New connection [04:43:21]New thread 3067481444 created [04:43:21]Thread 3067338084 joined [04:43:21]Waiting for new connection... [04:43:21] Sock 7.Parse request [04:43:21]Sock 7.Check first char [04:43:21]Sock 7.First char is OK [04:43:21]request: POST /json_proto HTTP/1.0 [04:43:21]Method: POST [04:43:21]URL: /json_proto [04:43:21]Method is POST - this is cgi request [04:43:21]url: /json_proto [04:43:21]query_string will be loaded in cgi processing [04:43:21]execute_cgi json_proto POST (null) [04:43:21]execute_cgi path=json_proto method=POST [04:43:21]POST find Content-Length [04:43:21]Host: 172.17.62.5:8080 [04:43:21]Content-Length: 679 [04:43:21]Content-Type: application/json [04:43:21] [04:43:21]POST finish read [04:43:21]Found Content-Length = 679 [04:43:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [04:43:21]execute_script... [04:43: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)191285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [04:43:21]POST & json_proto [04:43:21]process_json_proto [04:43:21]json parsed OK: [04:43:21]protocol is kg_v1.0 [04:43:21]action value=close_receipt [04:43:21]process_action close_receipt [04:43:21]cmd_close_receipt [04:43:21]MH_GetDate [04:43:21]Write to MH i2c: F0 00 00 9C 12 9D [04:43:21]Write i2c OK [04:43:21]MH_I2C_Read... [04:43:21]Read from MH i2c: F0 [04:43:21]MH_I2C_Read... [04:43:21]Read from MH i2c: F0 09 00 [04:43:21]MH_I2C_Read... [04:43:21]Read from MH i2c: F0 09 00 9C 12 00 6B 99 24 66 F4 E9 65 64 DA [04:43:21]GetLastDocTimeStamp 1713674589 [04:43:21]current date 1713674603 [04:43:21]FM_GetShiftState [04:43:21]SAM_PROTO_GetShiftState [04:43:21]wFMCommunicate request_size=4 [04:43:21]MH_SAM_APDU [04:43:21]CAPDU: 80 13 01 00 [04:43:21]Write to MH i2c: E2 08 00 9D 12 80 13 01 00 00 00 00 00 2C [04:43:21]Write i2c OK [04:43:21]MH_I2C_Read... [04:43:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:43:21]Read from MH i2c: E2 [04:43:21]MH_I2C_Read... [04:43:21]Read from MH i2c: E2 0E 00 [04:43:21]MH_I2C_Read... [04:43:21]Read from MH i2c: E2 0E 00 9D 12 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 73 [04:43:21]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [04:43:21]wFMCommunicate OK [04:43:21]SAM_PROTO_GetShiftState done [04:43:21]FM_GetShiftState done [04:43:21]opened in 1713658965 [04:43:21]opened+sec_in_day 1713745365 [04:43:21]quantity*price = 100018 [04:43:21]sum+1 = 100020 [04:43:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 13 21.04.2024 04:43 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76757 ФПД: 97099666591307 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T044323&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76757&fm=97099666591307&tin=02508201610067®Number=0000000000091573&sum=100000 [04:43:22]StoreToDocumentArchive [04:43:22]shift 372 fd 76757 [04:43:22]save to /storage/0372/doc_00076757 [04:43:22]save last doc name /storage/0372/doc_00076757 to /storage/kkm_last_doc_name [04:43:22]save OK [04:43:22]Clear old archive folders... [04:43:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [04:43:22]tlvbuf is 018CB200 [04:43:22]SAM_PROTO_ClearQueue [04:43:22]wFMCommunicate request_size=4 [04:43:22]MH_SAM_APDU [04:43:22]CAPDU: 80 09 00 00 [04:43:22]Write to MH i2c: E2 08 00 AA 12 80 09 00 00 00 00 00 00 2E [04:43:22]Write i2c OK [04:43:22]MH_I2C_Read... [04:43:22]Read from MH i2c: E2 [04:43:22]MH_I2C_Read... [04:43:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:43:22]Read from MH i2c: E2 03 00 [04:43:22]MH_I2C_Read... [04:43:22]Read from MH i2c: E2 03 00 AA 12 00 90 00 30 [04:43:22]RAPDU: 90 00 [04:43:22]wFMCommunicate OK [04:43:22]SAM_PROTO_ClearQueue done [04:43:22]KKMCreateOFDPacket [04:43:22]OFDProtocolAddRootSTLVToBuf [04:43:22]FM_MakeSignedData [04:43:22]FM_MakeSignedData [04:43:22]SAM_PROTO_SignData [04:43:22]wFMCommunicate request_size=4 [04:43:22]MH_SAM_APDU [04:43:22]CAPDU: 80 0D 01 02 [04:43:22]Write to MH i2c: E2 08 00 AB 12 80 0D 01 02 00 00 00 00 36 [04:43:22]Write i2c OK [04:43:22]MH_I2C_Read... [04:43:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:43:22]Read from MH i2c: E2 [04:43:22]MH_I2C_Read... [04:43:22]Read from MH i2c: E2 03 00 [04:43:22]MH_I2C_Read... [04:43:22]Read from MH i2c: E2 03 00 AB 12 00 90 00 31 [04:43:22]RAPDU: 90 00 [04:43:22]wFMCommunicate OK [04:43:22]wFMCommunicate request_size=255 [04:43:22]MH_SAM_APDU [04:43:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 0D 00 00 00 F4 03 04 00 6B 99 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D5 2B 01 00 35 04 06 00 58 4F C7 22 [04:43:22]Write to MH i2c: E2 02 01 AC 12 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 6B 99 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D5 2B 01 00 35 04 06 00 58 4F C7 22 00 00 3D [04:43:22]Write i2c OK [04:43:22]MH_I2C_Read... [04:43:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:43:22]Read from MH i2c: E2 [04:43:22]MH_I2C_Read... [04:43:22]Read from MH i2c: E2 03 00 [04:43:22]MH_I2C_Read... [04:43:22]Read from MH i2c: E2 03 00 AC 12 00 90 00 32 [04:43:22]RAPDU: 90 00 [04:43:22]wFMCommunicate OK [04:43:22]wFMCommunicate request_size=7 [04:43:22]MH_SAM_APDU [04:43:22]CAPDU: 80 0D 02 02 02 8E 4B [04:43:22]Write to MH i2c: E2 0A 00 AD 12 80 0D 02 02 02 00 8E 4B 00 00 16 [04:43:22]Write i2c OK [04:43:22]MH_I2C_Read... [04:43:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:43:22]Read from MH i2c: E2 [04:43:22]MH_I2C_Read... [04:43:22]Read from MH i2c: E2 03 00 [04:43:22]MH_I2C_Read... [04:43:22]Read from MH i2c: E2 03 00 AD 12 00 90 00 33 [04:43:22]RAPDU: 90 00 [04:43:22]wFMCommunicate OK [04:43:22]wFMCommunicate request_size=4 [04:43:22]MH_SAM_APDU [04:43:22]CAPDU: 80 0D 03 02 [04:43:22]Write to MH i2c: E2 08 00 AE 12 80 0D 03 02 00 00 00 00 3B [04:43:22]Write i2c OK [04:43:22]MH_I2C_Read... [04:43:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:43:22]Read from MH i2c: E2 [04:43:22]MH_I2C_Read... [04:43:22]Read from MH i2c: E2 0B 00 [04:43:22]MH_I2C_Read... [04:43:22]Read from MH i2c: E2 0B 00 AE 12 00 2A 3C 6F 1C 18 91 B7 4C 90 00 D9 [04:43:22]RAPDU: 2A 3C 6F 1C 18 91 B7 4C 90 00 [04:43:22]wFMCommunicate OK [04:43:22]SAM_PROTO_SignData done [04:43:22]FM_MakeSignedData done [04:43:22]CreateOFDProtocolMessage [04:43:22]wFMCommunicate request_size=4 [04:43:22]MH_SAM_APDU [04:43:22]CAPDU: 80 11 00 00 [04:43:22]Write to MH i2c: E2 08 00 AF 12 80 11 00 00 00 00 00 00 3B [04:43:22]Write i2c OK [04:43:22]MH_I2C_Read... [04:43:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:43:23]Read from MH i2c: E2 [04:43:23]MH_I2C_Read... [04:43:23]Read from MH i2c: E2 17 00 [04:43:23]MH_I2C_Read... [04:43:23]Read from MH i2c: E2 17 00 AF 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 8E [04:43:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [04:43:23]wFMCommunicate OK [04:43:23]CreateOFDProtocolMessage done [04:43:23]OFDSenderStorePacket 76757 [04:43:23]StoreOFDPacket docnum=76757 [04:43:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 52 D6 04 01 43 E9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 0D 00 00 00 F4 03 04 00 6B 99 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D5 2B 01 00 35 04 06 00 58 4F C7 22 8E 4B 2A 3C 6F 1C 18 91 B7 4C [04:43:23]CheckFolder [04:43:23]dirname=/storage/ofd_packets [04:43:23]CheckFolder done [04:43:23]ProducePacketName [04:43:23]name=ofd_packets/00076757 [04:43:23]NVStorageSaveData ofd_packets/00076757 [04:43:23]File name is /storage/ofd_packets/00076757 [04:43:23]Write 298 bytes [04:43:23]NVStorageSaveData done [04:43:23]OFDSenderStorePacket done [04:43:23]KKMCreateOFDPacket done [04:43:23]NVStorageSaveData kkm_last_timestamp [04:43:23]File name is /storage/kkm_last_timestamp [04:43:23]Write 4 bytes [04:43:23]NVStorageSaveData done [04:43:23]ExternCall_PrintAddStr [04:43:23]wPrintStart [04:43:23]Write to MH i2c: 01 00 00 B0 12 C2 [04:43:23]Write i2c OK [04:43:23]MH_I2C_Read... [04:43:23]Read from MH i2c: 01 [04:43:23]MH_I2C_Read... [04:43:23]Read from MH i2c: 01 07 00 [04:43:23]MH_I2C_Read... [04:43:23]Read from MH i2c: 01 07 00 B0 12 00 00 00 00 00 FF 0F D7 [04:43:23]RasterBufferAndPrint [04:43:23]line Счет N : (1)191285 [04:43:23]line ИНН: 02508201610067 [04:43:23]line Контрольно-Кассовый Чек [04:43:23]line ПРОДАЖА [04:43:23]line ТРК (МРК, ГНК) : 13 [04:43:23]line Товар: 2710194210 [04:43:23]line ДТ-К-5 [04:43:23]line 13.720 * 72.90 [04:43:23]line = 1000.19 [04:43:23]line НДС 12% НСП 1% [04:43:23]line > о реализуемом товаре [04:43:23]line ОКРУГЛЕНИЕ: -0.19 [04:43:23]line ИТОГО: 1000.00 [04:43:23]line Внесено: 1000.00 [04:43:23]line СДАЧА: 0.00 [04:43:23]line НСП 1% : 8.85 [04:43:23]line НДС 12% : 106.21 [04:43:23]line Наличными: 1000.00 [04:43:23]line Безнал.: 0.00 [04:43:23]line Место: АЗС № 106 "Партнер Нефть" [04:43:23]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [04:43:23]line СНО: Общий режим [04:43:23]line Чек 13 21.04.2024 04:43 [04:43:23]line Смена: 372 ФФД: 1.0 [04:43:23]line ЗНМ: 0300000141 [04:43:23]line РНМ: 0000000000091573 [04:43:23]line Версия ККМ: 001 [04:43:23]line ФМ: 0000000000874652 [04:43:23]line ФД: 76757 [04:43:23]line ФПД: 97099666591307 [04:43:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T044323&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76757&fm=97099666591307&tin=02508201610067®Number=0000000000091573&sum=100000 [04:43:23]OFD Sender: Processing packet 76757 [packets to send 129, broken 128] [04:43:23]ProducePacketName [04:43:23]name=ofd_packets/00076757 [04:43:23]OFD Sender: To server: pG, [04:43:23]CommunicateWithHost lk.salyk.kg:30040 [04:43:23]ConnectInit lk.salyk.kg [04:43:23]written 0, free lines is 4095 [04:43:23]Connected sock=10 [04:43:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 52 D6 04 01 43 E9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 0D 00 00 00 F4 03 04 00 6B 99 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D5 2B 01 00 35 04 06 00 58 4F C7 22 8E 4B 2A 3C 6F 1C 18 91 B7 4C [04:43:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 8F 75 47 00 77 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D5 2B 01 00 F4 03 04 00 F2 40 24 66 B6 04 01 00 00 59 26 6E 61 A6 FB D8 7F [04:43:23]CommunicateWithHost err = 0 [04:43:23]CheckOFDResponse [04:43:23]1017 (14) - 77093643461234 [04:43:23]1041 (16) - 0000000000874652 [04:43:23]1040 (4) - 76757 [04:43:23]1012 (4) - 20.04.2024 22:25 [04:43:23]1206 (1) - 0 [04:43:23]OFD Sender: Remove packet 76757 [04:43:23]ProducePacketName [04:43:23]name=ofd_packets/00076757 [04:43:23]NVStorageDeleteData [04:43:23]Write to MH i2c: 01 00 00 DA 12 EC [04:43:23]Write i2c OK [04:43:23]MH_I2C_Read... [04:43:23]Read from MH i2c: 01 [04:43:23]MH_I2C_Read... [04:43:23]Read from MH i2c: 01 07 00 [04:43:23]MH_I2C_Read... [04:43:23]Read from MH i2c: 01 07 00 DA 12 00 00 00 00 00 E5 0C E4 [04:43:23]RasterBufferAndPrint [04:43:23]line [04:43:23]line [04:43:23]line [04:43:23]line [04:43:23]line [04:43:23]written 0, free lines is 3307 [04:43:23]MH_Cut [04:43:23]Write to MH i2c: D1 01 00 E1 12 01 C5 [04:43:23]Write i2c OK [04:43:23]MH_I2C_Read... [04:43:23]Read from MH i2c: D1 [04:43:23]MH_I2C_Read... [04:43:23]Read from MH i2c: D1 01 00 [04:43:23]MH_I2C_Read... [04:43:23]Read from MH i2c: D1 01 00 E1 12 00 C4 [04:43:23]Write to MH i2c: 01 00 00 E2 12 F4 [04:43:23]Write i2c OK [04:43:23]MH_I2C_Read... [04:43:24]OFD Sender: No OFD packet to send [04:43:24]*** Cut start [04:43:24]*** Partial cut [04:43:24]*** CUTSNS_PIN = 1 [04:43:24]*** CUTSNS_PIN = 0 [04:43:24]*** Brake cut motor [04:43:25]Read from MH i2c: 01 [04:43:25]MH_I2C_Read... [04:43:25]*** Stop cut motor [04:43:25]*** Cut end [04:43:25]Read from MH i2c: 01 07 00 [04:43:25]MH_I2C_Read... [04:43:25]Read from MH i2c: 01 07 00 E2 12 00 00 00 00 00 FF 0F 09 [04:43:25]process_action close_receipt done [04:43:25]requested_data is exist [04:43:25]produce_requested_data [04:43:25]requested_item fm.sn is exist - process it [04:43:25]wFMCommunicate request_size=4 [04:43:25]MH_SAM_APDU [04:43:25]CAPDU: 80 11 00 00 [04:43:25]Write to MH i2c: E2 08 00 E3 12 80 11 00 00 00 00 00 00 6F [04:43:25]Write i2c OK [04:43:25]MH_I2C_Read... [04:43:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:43:25]Read from MH i2c: E2 [04:43:25]MH_I2C_Read... [04:43:25]Read from MH i2c: E2 17 00 [04:43:25]MH_I2C_Read... [04:43:25]Read from MH i2c: E2 17 00 E3 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 C2 [04:43:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [04:43:25]wFMCommunicate OK [04:43:25]requested_item fd.num is exist - process it [04:43:25]SAM_PROTO_GetFieldsCounters [04:43:25]wFMCommunicate request_size=4 [04:43:25]MH_SAM_APDU [04:43:25]CAPDU: 80 13 00 00 [04:43:25]Write to MH i2c: E2 08 00 E4 12 80 13 00 00 00 00 00 00 72 [04:43:25]Write i2c OK [04:43:25]MH_I2C_Read... [04:43:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:43:25]Read from MH i2c: E2 [04:43:25]MH_I2C_Read... [04:43:25]Read from MH i2c: E2 62 00 [04:43:25]MH_I2C_Read... [04:43:25]Read from MH i2c: E2 62 00 E4 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D5 2B 01 00 0E 04 04 00 74 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [04:43: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D5 2B 01 00 0E 04 04 00 74 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:43:25]wFMCommunicate OK [04:43:25]SAM_PROTO_GetFieldsCounters done [04:43:25]requested_item shift.num is exist - process it [04:43:25]requested_item shift.opened is exist - process it [04:43:25]req_shift_opened [04:43:25]FM_GetShiftState [04:43:25]SAM_PROTO_GetShiftState [04:43:25]wFMCommunicate request_size=4 [04:43:25]MH_SAM_APDU [04:43:25]CAPDU: 80 13 01 00 [04:43:25]Write to MH i2c: E2 08 00 E5 12 80 13 01 00 00 00 00 00 74 [04:43:25]Write i2c OK [04:43:25]MH_I2C_Read... [04:43:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:43:25]Read from MH i2c: E2 [04:43:25]MH_I2C_Read... [04:43:25]Read from MH i2c: E2 0E 00 [04:43:25]MH_I2C_Read... [04:43:25]Read from MH i2c: E2 0E 00 E5 12 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 BB [04:43:25]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [04:43:25]wFMCommunicate OK [04:43:25]SAM_PROTO_GetShiftState done [04:43:25]FM_GetShiftState done [04:43:25]req_shift_opened done [04:43:25]requested_item shift.open_date is exist - process it [04:43:25]req_shift_open_date [04:43:25]req_shift_open_date done [04:43:25]produce_requested_data done [04:43:25]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76757,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [04:43:25]process_action_free close_receipt [04:43:25]json_value_free [04:43:25]json_value_free done [04:43:25]process_json_proto returns [04:43:25]Send response to host [04:43:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76757,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [04:43:25]free response buf [04:43:25]execute_script done [04:43:25]execute_script returns [04:43:25]free content buf [04:43:25]Sock 7.Close socket [04:43:25]Sock 7.Thread stoped [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:37]accept exits with 9 [04:47:37]New connection [04:47:37]New thread 3067338084 created [04:47:37]Thread 3067481444 joined [04:47:37]Waiting for new connection... [04:47:37] Sock 9.Parse request [04:47:37]Sock 9.Check first char [04:47:37]Sock 9.First char is OK [04:47:37]request: POST /json_proto HTTP/1.0 [04:47:37]Method: POST [04:47:37]URL: /json_proto [04:47:37]Method is POST - this is cgi request [04:47:37]url: /json_proto [04:47:37]query_string will be loaded in cgi processing [04:47:37]execute_cgi json_proto POST (null) [04:47:37]execute_cgi path=json_proto method=POST [04:47:37]POST find Content-Length [04:47:37]Host: 172.17.62.5:8080 [04:47:37]Content-Length: 978 [04:47:37]Content-Type: application/json [04:47:37] [04:47:37]POST finish read [04:47:37]Found Content-Length = 978 [04:47:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 13.91 \u0441\u043E\u043C", "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:47:37]execute_script... [04:47: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)191287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 13.91 \u0441\u043E\u043C", "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:47:37]POST & json_proto [04:47:37]process_json_proto [04:47:37]json parsed OK: [04:47:37]protocol is kg_v1.0 [04:47:37]action value=close_receipt [04:47:37]process_action close_receipt [04:47:37]cmd_close_receipt [04:47:37]MH_GetDate [04:47:37]Write to MH i2c: F0 00 00 E6 12 E7 [04:47:37]Write i2c OK [04:47:37]MH_I2C_Read... [04:47:37]Read from MH i2c: F0 [04:47:37]MH_I2C_Read... [04:47:37]Read from MH i2c: F0 09 00 [04:47:37]MH_I2C_Read... [04:47:37]Read from MH i2c: F0 09 00 E6 12 00 6B 9A 24 66 F4 E9 65 64 25 [04:47:37]GetLastDocTimeStamp 1713674603 [04:47:37]current date 1713674859 [04:47:37]FM_GetShiftState [04:47:37]SAM_PROTO_GetShiftState [04:47:37]wFMCommunicate request_size=4 [04:47:37]MH_SAM_APDU [04:47:37]CAPDU: 80 13 01 00 [04:47:37]Write to MH i2c: E2 08 00 E7 12 80 13 01 00 00 00 00 00 76 [04:47:37]Write i2c OK [04:47:37]MH_I2C_Read... [04:47:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:47:37]Read from MH i2c: E2 [04:47:37]MH_I2C_Read... [04:47:37]Read from MH i2c: E2 0E 00 [04:47:37]MH_I2C_Read... [04:47:37]Read from MH i2c: E2 0E 00 E7 12 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 BD [04:47:37]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [04:47:37]wFMCommunicate OK [04:47:37]SAM_PROTO_GetShiftState done [04:47:37]FM_GetShiftState done [04:47:37]opened in 1713658965 [04:47:37]opened+sec_in_day 1713745365 [04:47:37]quantity*price = 100012 [04:47:37]sum+1 = 100014 [04:47:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 14 21.04.2024 04:47 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 13.91 сом ФМ: 0000000000874652 ФД: 76758 ФПД: 269640205230279 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T044739&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76758&fm=269640205230279&tin=02508201610067®Number=0000000000091573&sum=100000 [04:47:38]StoreToDocumentArchive [04:47:38]shift 372 fd 76758 [04:47:38]save to /storage/0372/doc_00076758 [04:47:38]save last doc name /storage/0372/doc_00076758 to /storage/kkm_last_doc_name [04:47:38]save OK [04:47:38]Clear old archive folders... [04:47:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [04:47:38]tlvbuf is 018631B0 [04:47:38]SAM_PROTO_ClearQueue [04:47:38]wFMCommunicate request_size=4 [04:47:38]MH_SAM_APDU [04:47:38]CAPDU: 80 09 00 00 [04:47:38]Write to MH i2c: E2 08 00 F4 12 80 09 00 00 00 00 00 00 78 [04:47:38]Write i2c OK [04:47:38]MH_I2C_Read... [04:47:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:47:38]Read from MH i2c: E2 [04:47:38]MH_I2C_Read... [04:47:38]Read from MH i2c: E2 03 00 [04:47:38]MH_I2C_Read... [04:47:38]Read from MH i2c: E2 03 00 F4 12 00 90 00 7A [04:47:38]RAPDU: 90 00 [04:47:38]wFMCommunicate OK [04:47:38]SAM_PROTO_ClearQueue done [04:47:38]KKMCreateOFDPacket [04:47:38]OFDProtocolAddRootSTLVToBuf [04:47:38]FM_MakeSignedData [04:47:38]FM_MakeSignedData [04:47:38]SAM_PROTO_SignData [04:47:38]wFMCommunicate request_size=4 [04:47:38]MH_SAM_APDU [04:47:38]CAPDU: 80 0D 01 02 [04:47:38]Write to MH i2c: E2 08 00 F5 12 80 0D 01 02 00 00 00 00 80 [04:47:38]Write i2c OK [04:47:38]MH_I2C_Read... [04:47:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:47:38]Read from MH i2c: E2 [04:47:38]MH_I2C_Read... [04:47:38]Read from MH i2c: E2 03 00 [04:47:38]MH_I2C_Read... [04:47:38]Read from MH i2c: E2 03 00 F5 12 00 90 00 7B [04:47:38]RAPDU: 90 00 [04:47:38]wFMCommunicate OK [04:47:38]wFMCommunicate request_size=255 [04:47:38]MH_SAM_APDU [04:47:38]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 6B 9A 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D6 2B 01 00 35 04 06 00 F5 3C 80 A6 [04:47:38]Write to MH i2c: E2 02 01 F6 12 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 6B 9A 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D6 2B 01 00 35 04 06 00 F5 3C 80 A6 00 00 A6 [04:47:38]Write i2c OK [04:47:38]MH_I2C_Read... [04:47:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:47:38]Read from MH i2c: E2 [04:47:38]MH_I2C_Read... [04:47:38]Read from MH i2c: E2 03 00 [04:47:38]MH_I2C_Read... [04:47:38]Read from MH i2c: E2 03 00 F6 12 00 90 00 7C [04:47:38]RAPDU: 90 00 [04:47:38]wFMCommunicate OK [04:47:38]wFMCommunicate request_size=7 [04:47:38]MH_SAM_APDU [04:47:38]CAPDU: 80 0D 02 02 02 60 C7 [04:47:38]Write to MH i2c: E2 0A 00 F7 12 80 0D 02 02 02 00 60 C7 00 00 AE [04:47:38]Write i2c OK [04:47:38]MH_I2C_Read... [04:47:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:47:38]Read from MH i2c: E2 [04:47:38]MH_I2C_Read... [04:47:38]Read from MH i2c: E2 03 00 [04:47:38]MH_I2C_Read... [04:47:38]Read from MH i2c: E2 03 00 F7 12 00 90 00 7D [04:47:38]RAPDU: 90 00 [04:47:38]wFMCommunicate OK [04:47:38]wFMCommunicate request_size=4 [04:47:38]MH_SAM_APDU [04:47:38]CAPDU: 80 0D 03 02 [04:47:38]Write to MH i2c: E2 08 00 F8 12 80 0D 03 02 00 00 00 00 85 [04:47:38]Write i2c OK [04:47:38]MH_I2C_Read... [04:47:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:47:38]Read from MH i2c: E2 [04:47:38]MH_I2C_Read... [04:47:38]Read from MH i2c: E2 0B 00 [04:47:38]MH_I2C_Read... [04:47:38]Read from MH i2c: E2 0B 00 F8 12 00 58 B2 E1 C0 13 6A B4 A5 90 00 07 [04:47:38]RAPDU: 58 B2 E1 C0 13 6A B4 A5 90 00 [04:47:38]wFMCommunicate OK [04:47:38]SAM_PROTO_SignData done [04:47:38]FM_MakeSignedData done [04:47:38]CreateOFDProtocolMessage [04:47:38]wFMCommunicate request_size=4 [04:47:38]MH_SAM_APDU [04:47:38]CAPDU: 80 11 00 00 [04:47:38]Write to MH i2c: E2 08 00 F9 12 80 11 00 00 00 00 00 00 85 [04:47:38]Write i2c OK [04:47:38]MH_I2C_Read... [04:47:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:47:39]Read from MH i2c: E2 [04:47:39]MH_I2C_Read... [04:47:39]Read from MH i2c: E2 17 00 [04:47:39]MH_I2C_Read... [04:47:39]Read from MH i2c: E2 17 00 F9 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 D8 [04:47:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [04:47:39]wFMCommunicate OK [04:47:39]CreateOFDProtocolMessage done [04:47:39]OFDSenderStorePacket 76758 [04:47:39]StoreOFDPacket docnum=76758 [04:47:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 7A FE 04 01 32 A1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 6B 9A 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D6 2B 01 00 35 04 06 00 F5 3C 80 A6 60 C7 58 B2 E1 C0 13 6A B4 A5 [04:47:39]CheckFolder [04:47:39]dirname=/storage/ofd_packets [04:47:39]CheckFolder done [04:47:39]ProducePacketName [04:47:39]name=ofd_packets/00076758 [04:47:39]NVStorageSaveData ofd_packets/00076758 [04:47:39]File name is /storage/ofd_packets/00076758 [04:47:39]Write 298 bytes [04:47:39]NVStorageSaveData done [04:47:39]OFDSenderStorePacket done [04:47:39]KKMCreateOFDPacket done [04:47:39]NVStorageSaveData kkm_last_timestamp [04:47:39]File name is /storage/kkm_last_timestamp [04:47:39]Write 4 bytes [04:47:39]NVStorageSaveData done [04:47:39]ExternCall_PrintAddStr [04:47:39]wPrintStart [04:47:39]Write to MH i2c: 01 00 00 FA 12 0C [04:47:39]Write i2c OK [04:47:39]MH_I2C_Read... [04:47:39]Read from MH i2c: 01 [04:47:39]MH_I2C_Read... [04:47:39]Read from MH i2c: 01 07 00 [04:47:39]MH_I2C_Read... [04:47:39]Read from MH i2c: 01 07 00 FA 12 00 00 00 00 00 FF 0F 21 [04:47:39]RasterBufferAndPrint [04:47:39]line Счет N : (1)191287 [04:47:39]line ИНН: 02508201610067 [04:47:39]line Контрольно-Кассовый Чек [04:47:39]line ПРОДАЖА [04:47:39]line ТРК (МРК, ГНК) : 13 [04:47:39]line Товар: 2710194210 [04:47:39]line ДТ-К-5 [04:47:39]line 13.910 * 71.90 [04:47:39]line = 1000.13 [04:47:39]line НДС 12% НСП 1% [04:47:39]line > о реализуемом товаре [04:47:39]line ОКРУГЛЕНИЕ: -0.13 [04:47:39]line ИТОГО: 1000.00 [04:47:39]line Внесено: 1000.00 [04:47:39]line СДАЧА: 0.00 [04:47:39]line НСП 1% : 8.85 [04:47:39]line НДС 12% : 106.21 [04:47:39]line Наличными: 1000.00 [04:47:39]line Безнал.: 0.00 [04:47:39]line Место: АЗС № 106 "Партнер Нефть" [04:47:39]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [04:47:39]line СНО: Общий режим [04:47:39]line Чек 14 21.04.2024 04:47 [04:47:39]line Смена: 372 ФФД: 1.0 [04:47:39]line ЗНМ: 0300000141 [04:47:39]line РНМ: 0000000000091573 [04:47:39]line Версия ККМ: 001 [04:47:39]line [04:47:39]line Дисконтная программа [04:47:39]line ДТ [04:47:39]line номер 106 [04:47:39]line сэкономлено 13.91 сом [04:47:39]line ФМ: 0000000000874652 [04:47:39]line ФД: 76758 [04:47:39]line ФПД: 269640205230279 [04:47:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T044739&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76758&fm=269640205230279&tin=02508201610067®Number=0000000000091573&sum=100000 [04:47:39]written 0, free lines is 4095 [04:47:39]OFD Sender: Processing packet 76758 [packets to send 129, broken 128] [04:47:39]ProducePacketName [04:47:39]name=ofd_packets/00076758 [04:47:39]OFD Sender: To server: pG, [04:47:39]CommunicateWithHost lk.salyk.kg:30040 [04:47:39]ConnectInit lk.salyk.kg [04:47:39]Write to MH i2c: 01 00 00 29 13 3C [04:47:39]Write i2c OK [04:47:39]MH_I2C_Read... [04:47:39]Read from MH i2c: 01 [04:47:39]MH_I2C_Read... [04:47:39]Read from MH i2c: 01 07 00 [04:47:39]MH_I2C_Read... [04:47:39]Read from MH i2c: 01 07 00 29 13 00 00 00 00 00 87 0C D6 [04:47:39]RasterBufferAndPrint [04:47:39]line [04:47:39]line [04:47:39]line [04:47:39]line [04:47:39]line [04:47:39]written 0, free lines is 3212 [04:47:39]MH_Cut [04:47:39]Write to MH i2c: D1 01 00 30 13 01 15 [04:47:39]Write i2c OK [04:47:39]MH_I2C_Read... [04:47:39]Read from MH i2c: D1 [04:47:39]MH_I2C_Read... [04:47:39]Read from MH i2c: D1 01 00 [04:47:39]MH_I2C_Read... [04:47:39]Read from MH i2c: D1 01 00 30 13 00 14 [04:47:39]Write to MH i2c: 01 00 00 31 13 44 [04:47:39]Write i2c OK [04:47:39]MH_I2C_Read... [04:47:40]*** Cut start [04:47:40]*** Partial cut [04:47:40]*** CUTSNS_PIN = 1 [04:47:40]*** CUTSNS_PIN = 0 [04:47:40]*** Brake cut motor [04:47:41]Read from MH i2c: 01 [04:47:41]MH_I2C_Read... [04:47:41]*** Stop cut motor [04:47:41]*** Cut end [04:47:41]Read from MH i2c: 01 07 00 [04:47:41]MH_I2C_Read... [04:47:41]Read from MH i2c: 01 07 00 31 13 00 00 00 00 00 FF 0F 59 [04:47:41]process_action close_receipt done [04:47:41]requested_data is exist [04:47:41]produce_requested_data [04:47:41]requested_item fm.sn is exist - process it [04:47:41]wFMCommunicate request_size=4 [04:47:41]MH_SAM_APDU [04:47:41]CAPDU: 80 11 00 00 [04:47:41]Write to MH i2c: E2 08 00 32 13 80 11 00 00 00 00 00 00 BF [04:47:41]Write i2c OK [04:47:41]MH_I2C_Read... [04:47:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:47:41]Read from MH i2c: E2 [04:47:41]MH_I2C_Read... [04:47:41]Read from MH i2c: E2 17 00 [04:47:41]MH_I2C_Read... [04:47:41]Read from MH i2c: E2 17 00 32 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 12 [04:47:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [04:47:41]wFMCommunicate OK [04:47:41]requested_item fd.num is exist - process it [04:47:41]SAM_PROTO_GetFieldsCounters [04:47:41]wFMCommunicate request_size=4 [04:47:41]MH_SAM_APDU [04:47:41]CAPDU: 80 13 00 00 [04:47:41]Write to MH i2c: E2 08 00 33 13 80 13 00 00 00 00 00 00 C2 [04:47:41]Write i2c OK [04:47:41]MH_I2C_Read... [04:47:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:47:41]Read from MH i2c: E2 [04:47:41]MH_I2C_Read... [04:47:41]Read from MH i2c: E2 62 00 [04:47:41]MH_I2C_Read... [04:47:41]Read from MH i2c: E2 62 00 33 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D6 2B 01 00 0E 04 04 00 74 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 84 [04:47: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D6 2B 01 00 0E 04 04 00 74 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:47:41]wFMCommunicate OK [04:47:41]SAM_PROTO_GetFieldsCounters done [04:47:41]requested_item shift.num is exist - process it [04:47:41]requested_item shift.opened is exist - process it [04:47:41]req_shift_opened [04:47:41]FM_GetShiftState [04:47:41]SAM_PROTO_GetShiftState [04:47:41]wFMCommunicate request_size=4 [04:47:41]MH_SAM_APDU [04:47:41]CAPDU: 80 13 01 00 [04:47:41]Write to MH i2c: E2 08 00 34 13 80 13 01 00 00 00 00 00 C4 [04:47:41]Write i2c OK [04:47:41]MH_I2C_Read... [04:47:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:47:41]Read from MH i2c: E2 [04:47:41]MH_I2C_Read... [04:47:41]Read from MH i2c: E2 0E 00 [04:47:41]MH_I2C_Read... [04:47:41]Read from MH i2c: E2 0E 00 34 13 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 0B [04:47:41]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [04:47:41]wFMCommunicate OK [04:47:41]SAM_PROTO_GetShiftState done [04:47:41]FM_GetShiftState done [04:47:41]req_shift_opened done [04:47:41]requested_item shift.open_date is exist - process it [04:47:41]req_shift_open_date [04:47:41]req_shift_open_date done [04:47:41]produce_requested_data done [04:47:41]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76758,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [04:47:41]process_action_free close_receipt [04:47:41]json_value_free [04:47:41]json_value_free done [04:47:41]process_json_proto returns [04:47:41]Send response to host [04:47:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76758,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [04:47:41]free response buf [04:47:41]execute_script done [04:47:41]execute_script returns [04:47:41]free content buf [04:47:41]Sock 9.Close socket [04:47:41]Sock 9.Thread stoped [04:47:44]ConnectInit Can't take IP for lk.salyk.kg [04:47:44]CommunicateWithHost connect error [04:47:44]CommunicateWithHost err = -1 [04:47:44]OFD Sender: Server communicate error [04:47:49]OFD Sender: Processing packet 76758 [packets to send 129, broken 128] [04:47:49]ProducePacketName [04:47:49]name=ofd_packets/00076758 [04:47:49]OFD Sender: To server: pG, [04:47:49]CommunicateWithHost lk.salyk.kg:30040 [04:47:49]ConnectInit lk.salyk.kg [04:47:49]Connected sock=9 [04:47:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 7A FE 04 01 32 A1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 6B 9A 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D6 2B 01 00 35 04 06 00 F5 3C 80 A6 60 C7 58 B2 E1 C0 13 6A B4 A5 [04:47:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 C7 83 47 00 6A 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 34 36 35 32 10 04 04 00 D6 2B 01 00 F4 03 04 00 FC 41 24 66 B6 04 01 00 00 62 DE F9 68 24 B9 CB CF [04:47:49]CommunicateWithHost err = 0 [04:47:49]CheckOFDResponse [04:47:49]1017 (14) - 77093643461234 [04:47:49]1041 (16) - 0000000000874652 [04:47:49]1040 (4) - 76758 [04:47:49]1012 (4) - 20.04.2024 22:30 [04:47:49]1206 (1) - 0 [04:47:49]OFD Sender: Remove packet 76758 [04:47:49]ProducePacketName [04:47:49]name=ofd_packets/00076758 [04:47:49]NVStorageDeleteData [04:47:50]OFD Sender: No OFD packet to send [04:47:55]OFD Sender: No OFD packet to send [04:48:00]OFD Sender: No OFD packet to send [04:48:05]OFD Sender: No OFD packet to send [04:48:10]OFD Sender: No OFD packet to send [04:48:15]OFD Sender: No OFD packet to send [04:48:20]OFD Sender: No OFD packet to send [04:48:25]OFD Sender: No OFD packet to send [04:48:30]OFD Sender: No OFD packet to send [04:48:35]OFD Sender: No OFD packet to send [04:48:39]accept exits with 7 [04:48:39]New connection [04:48:39]New thread 3067481444 created [04:48:39]Thread 3067338084 joined [04:48:39]Waiting for new connection... [04:48:39] Sock 7.Parse request [04:48:39]Sock 7.Check first char [04:48:39]Sock 7.First char is OK [04:48:39]request: POST /json_proto HTTP/1.0 [04:48:39]Method: POST [04:48:39]URL: /json_proto [04:48:39]Method is POST - this is cgi request [04:48:39]url: /json_proto [04:48:39]query_string will be loaded in cgi processing [04:48:39]execute_cgi json_proto POST (null) [04:48:39]execute_cgi path=json_proto method=POST [04:48:39]POST find Content-Length [04:48:39]Host: 172.17.62.5:8080 [04:48:39]Content-Length: 681 [04:48:39]Content-Type: application/json [04:48:39] [04:48:39]POST finish read [04:48:39]Found Content-Length = 681 [04:48:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 15.300, "sum" : 500.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:48:39]execute_script... [04:48: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)191286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 15.300, "sum" : 500.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:48:39]POST & json_proto [04:48:39]process_json_proto [04:48:39]json parsed OK: [04:48:39]protocol is kg_v1.0 [04:48:39]action value=close_receipt [04:48:39]process_action close_receipt [04:48:39]cmd_close_receipt [04:48:39]MH_GetDate [04:48:39]Write to MH i2c: F0 00 00 35 13 37 [04:48:39]Write i2c OK [04:48:39]MH_I2C_Read... [04:48:39]Read from MH i2c: F0 [04:48:39]MH_I2C_Read... [04:48:39]Read from MH i2c: F0 09 00 [04:48:39]MH_I2C_Read... [04:48:39]Read from MH i2c: F0 09 00 35 13 00 A9 9A 24 66 F4 E9 65 64 B3 [04:48:39]GetLastDocTimeStamp 1713674859 [04:48:39]current date 1713674921 [04:48:39]FM_GetShiftState [04:48:39]SAM_PROTO_GetShiftState [04:48:39]wFMCommunicate request_size=4 [04:48:39]MH_SAM_APDU [04:48:39]CAPDU: 80 13 01 00 [04:48:39]Write to MH i2c: E2 08 00 36 13 80 13 01 00 00 00 00 00 C6 [04:48:39]Write i2c OK [04:48:39]MH_I2C_Read... [04:48:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:48:39]Read from MH i2c: E2 [04:48:39]MH_I2C_Read... [04:48:39]Read from MH i2c: E2 0E 00 [04:48:39]MH_I2C_Read... [04:48:39]Read from MH i2c: E2 0E 00 36 13 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 0D [04:48:39]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [04:48:39]wFMCommunicate OK [04:48:39]SAM_PROTO_GetShiftState done [04:48:39]FM_GetShiftState done [04:48:39]opened in 1713658965 [04:48:39]opened+sec_in_day 1713745365 [04:48:39]quantity*price = 50031 [04:48:39]sum+1 = 50032 [04:48:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 15 21.04.2024 04:48 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76759 ФПД: 145470645990802 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T044841&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76759&fm=145470645990802&tin=02508201610067®Number=0000000000091573&sum=50000 [04:48:40]StoreToDocumentArchive [04:48:40]shift 372 fd 76759 [04:48:40]save to /storage/0372/doc_00076759 [04:48:40]save last doc name /storage/0372/doc_00076759 to /storage/kkm_last_doc_name [04:48:40]save OK [04:48:40]Clear old archive folders... [04:48:40]ProcessDocumentItem done err = 0, tmpTLVsize=250 [04:48:40]tlvbuf is 018B5B20 [04:48:40]SAM_PROTO_ClearQueue [04:48:40]wFMCommunicate request_size=4 [04:48:40]MH_SAM_APDU [04:48:40]CAPDU: 80 09 00 00 [04:48:40]Write to MH i2c: E2 08 00 43 13 80 09 00 00 00 00 00 00 C8 [04:48:40]Write i2c OK [04:48:40]MH_I2C_Read... [04:48:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:48:40]Read from MH i2c: E2 [04:48:40]MH_I2C_Read... [04:48:40]Read from MH i2c: E2 03 00 [04:48:40]MH_I2C_Read... [04:48:40]Read from MH i2c: E2 03 00 43 13 00 90 00 CA [04:48:40]RAPDU: 90 00 [04:48:40]wFMCommunicate OK [04:48:40]SAM_PROTO_ClearQueue done [04:48:40]KKMCreateOFDPacket [04:48:40]OFDProtocolAddRootSTLVToBuf [04:48:40]FM_MakeSignedData [04:48:40]FM_MakeSignedData [04:48:40]SAM_PROTO_SignData [04:48:40]wFMCommunicate request_size=4 [04:48:40]MH_SAM_APDU [04:48:40]CAPDU: 80 0D 01 02 [04:48:40]Write to MH i2c: E2 08 00 44 13 80 0D 01 02 00 00 00 00 D0 [04:48:40]Write i2c OK [04:48:40]MH_I2C_Read... [04:48:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:48:40]Read from MH i2c: E2 [04:48:40]MH_I2C_Read... [04:48:40]Read from MH i2c: E2 03 00 [04:48:40]MH_I2C_Read... [04:48:40]Read from MH i2c: E2 03 00 44 13 00 90 00 CB [04:48:40]RAPDU: 90 00 [04:48:40]wFMCommunicate OK [04:48:40]wFMCommunicate request_size=255 [04:48:40]MH_SAM_APDU [04:48:40]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 0F 00 00 00 F4 03 04 00 A9 9A 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D7 2B 01 00 35 04 06 00 84 4E [04:48:40]Write to MH i2c: E2 02 01 45 13 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 0F 00 00 00 F4 03 04 00 A9 9A 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D7 2B 01 00 35 04 06 00 84 4E 00 00 61 [04:48:40]Write i2c OK [04:48:40]MH_I2C_Read... [04:48:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:48:40]Read from MH i2c: E2 [04:48:40]MH_I2C_Read... [04:48:40]Read from MH i2c: E2 03 00 [04:48:40]MH_I2C_Read... [04:48:40]Read from MH i2c: E2 03 00 45 13 00 90 00 CC [04:48:40]RAPDU: 90 00 [04:48:40]wFMCommunicate OK [04:48:40]wFMCommunicate request_size=9 [04:48:40]MH_SAM_APDU [04:48:40]CAPDU: 80 0D 02 02 04 06 2D F5 92 [04:48:40]Write to MH i2c: E2 0C 00 46 13 80 0D 02 02 04 00 06 2D F5 92 00 00 95 [04:48:40]Write i2c OK [04:48:40]MH_I2C_Read... [04:48:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:48:40]Read from MH i2c: E2 [04:48:40]MH_I2C_Read... [04:48:40]Read from MH i2c: E2 03 00 [04:48:40]MH_I2C_Read... [04:48:40]Read from MH i2c: E2 03 00 46 13 00 90 00 CD [04:48:40]RAPDU: 90 00 [04:48:40]wFMCommunicate OK [04:48:40]wFMCommunicate request_size=4 [04:48:40]MH_SAM_APDU [04:48:40]CAPDU: 80 0D 03 02 [04:48:40]Write to MH i2c: E2 08 00 47 13 80 0D 03 02 00 00 00 00 D5 [04:48:40]Write i2c OK [04:48:40]MH_I2C_Read... [04:48:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:48:40]Read from MH i2c: E2 [04:48:40]MH_I2C_Read... [04:48:40]Read from MH i2c: E2 0B 00 [04:48:40]MH_I2C_Read... [04:48:40]Read from MH i2c: E2 0B 00 47 13 00 37 3D 08 04 91 AE 4A 2A 90 00 09 [04:48:40]RAPDU: 37 3D 08 04 91 AE 4A 2A 90 00 [04:48:40]wFMCommunicate OK [04:48:40]SAM_PROTO_SignData done [04:48:40]FM_MakeSignedData done [04:48:40]CreateOFDProtocolMessage [04:48:40]wFMCommunicate request_size=4 [04:48:40]MH_SAM_APDU [04:48:40]CAPDU: 80 11 00 00 [04:48:40]Write to MH i2c: E2 08 00 48 13 80 11 00 00 00 00 00 00 D5 [04:48:40]Write i2c OK [04:48:40]MH_I2C_Read... [04:48:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:48:40]Read from MH i2c: E2 [04:48:40]MH_I2C_Read... [04:48:40]Read from MH i2c: E2 17 00 [04:48:40]MH_I2C_Read... [04:48:40]Read from MH i2c: E2 17 00 48 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 28 [04:48:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [04:48:40]wFMCommunicate OK [04:48:40]CreateOFDProtocolMessage done [04:48:40]OFDSenderStorePacket 76759 [04:48:40]StoreOFDPacket docnum=76759 [04:48:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 36 61 06 01 2D C6 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 0F 00 00 00 F4 03 04 00 A9 9A 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D7 2B 01 00 35 04 06 00 84 4E 06 2D F5 92 37 3D 08 04 91 AE 4A 2A [04:48:40]CheckFolder [04:48:40]dirname=/storage/ofd_packets [04:48:40]CheckFolder done [04:48:40]ProducePacketName [04:48:40]name=ofd_packets/00076759 [04:48:40]NVStorageSaveData ofd_packets/00076759 [04:48:40]File name is /storage/ofd_packets/00076759 [04:48:40]Write 300 bytes [04:48:40]NVStorageSaveData done [04:48:40]OFDSenderStorePacket done [04:48:40]KKMCreateOFDPacket done [04:48:40]NVStorageSaveData kkm_last_timestamp [04:48:40]File name is /storage/kkm_last_timestamp [04:48:40]Write 4 bytes [04:48:40]NVStorageSaveData done [04:48:40]ExternCall_PrintAddStr [04:48:40]wPrintStart [04:48:40]Write to MH i2c: 01 00 00 49 13 5C [04:48:40]Write i2c OK [04:48:40]MH_I2C_Read... [04:48:40]Read from MH i2c: 01 [04:48:40]MH_I2C_Read... [04:48:40]Read from MH i2c: 01 07 00 [04:48:40]MH_I2C_Read... [04:48:40]Read from MH i2c: 01 07 00 49 13 00 00 00 00 00 FF 0F 71 [04:48:40]RasterBufferAndPrint [04:48:40]line Счет N : (1)191286 [04:48:40]line ИНН: 02508201610067 [04:48:40]line Контрольно-Кассовый Чек [04:48:40]line ПРОДАЖА [04:48:40]line ТРК (МРК, ГНК) : 71 [04:48:40]line Товар: 2711190000 [04:48:40]line ГАЗ-К-5 [04:48:40]line 15.300 * 32.70 [04:48:40]line = 500.31 [04:48:40]line НДС 12% НСП 1% [04:48:40]line > о реализуемом товаре [04:48:40]line ОКРУГЛЕНИЕ: -0.31 [04:48:40]line ИТОГО: 500.00 [04:48:40]line Внесено: 500.00 [04:48:40]line СДАЧА: 0.00 [04:48:40]line НСП 1% : 4.43 [04:48:40]line НДС 12% : 53.13 [04:48:40]line Наличными: 500.00 [04:48:40]line Безнал.: 0.00 [04:48:40]line Место: АЗС № 106 "Партнер Нефть" [04:48:40]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [04:48:40]line СНО: Общий режим [04:48:40]line Чек 15 21.04.2024 04:48 [04:48:40]line Смена: 372 ФФД: 1.0 [04:48:40]line ЗНМ: 0300000141 [04:48:40]line РНМ: 0000000000091573 [04:48:40]line Версия ККМ: 001 [04:48:40]line ФМ: 0000000000874652 [04:48:40]line ФД: 76759 [04:48:40]line ФПД: 145470645990802 [04:48:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T044841&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76759&fm=145470645990802&tin=02508201610067®Number=0000000000091573&sum=50000 [04:48:41]OFD Sender: Processing packet 76759 [packets to send 129, broken 128] [04:48:41]ProducePacketName [04:48:41]name=ofd_packets/00076759 [04:48:41]OFD Sender: To server: pG, [04:48:41]CommunicateWithHost lk.salyk.kg:30040 [04:48:41]ConnectInit lk.salyk.kg [04:48:41]written 0, free lines is 4095 [04:48:41]Connected sock=9 [04:48:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 36 61 06 01 2D C6 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 0F 00 00 00 F4 03 04 00 A9 9A 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D7 2B 01 00 35 04 06 00 84 4E 06 2D F5 92 37 3D 08 04 91 AE 4A 2A [04:48:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 A5 DB 47 00 B6 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 34 36 35 32 10 04 04 00 D7 2B 01 00 F4 03 04 00 30 42 24 66 B6 04 01 00 00 BB 7A 67 FD 9D DF 4F 59 [04:48:41]CommunicateWithHost err = 0 [04:48:41]CheckOFDResponse [04:48:41]1017 (14) - 77093643461234 [04:48:41]1041 (16) - 0000000000874652 [04:48:41]1040 (4) - 76759 [04:48:41]1012 (4) - 20.04.2024 22:31 [04:48:41]1206 (1) - 0 [04:48:41]OFD Sender: Remove packet 76759 [04:48:41]ProducePacketName [04:48:41]name=ofd_packets/00076759 [04:48:41]NVStorageDeleteData [04:48:41]Write to MH i2c: 01 00 00 73 13 86 [04:48:41]Write i2c OK [04:48:41]MH_I2C_Read... [04:48:41]Read from MH i2c: 01 [04:48:41]MH_I2C_Read... [04:48:41]Read from MH i2c: 01 07 00 [04:48:41]MH_I2C_Read... [04:48:41]Read from MH i2c: 01 07 00 73 13 00 00 00 00 00 DC 0C 75 [04:48:41]RasterBufferAndPrint [04:48:41]line [04:48:41]line [04:48:41]line [04:48:41]line [04:48:41]line [04:48:41]written 0, free lines is 3298 [04:48:41]MH_Cut [04:48:41]Write to MH i2c: D1 01 00 7A 13 01 5F [04:48:41]Write i2c OK [04:48:41]MH_I2C_Read... [04:48:41]Read from MH i2c: D1 [04:48:41]MH_I2C_Read... [04:48:41]Read from MH i2c: D1 01 00 [04:48:41]MH_I2C_Read... [04:48:41]Read from MH i2c: D1 01 00 7A 13 00 5E [04:48:41]Write to MH i2c: 01 00 00 7B 13 8E [04:48:41]Write i2c OK [04:48:41]MH_I2C_Read... [04:48:42]OFD Sender: No OFD packet to send [04:48:42]*** Cut start [04:48:42]*** Partial cut [04:48:42]*** CUTSNS_PIN = 1 [04:48:42]*** CUTSNS_PIN = 0 [04:48:42]*** Brake cut motor [04:48:43]Read from MH i2c: 01 [04:48:43]MH_I2C_Read... [04:48:43]*** Stop cut motor [04:48:43]*** Cut end [04:48:43]Read from MH i2c: 01 07 00 [04:48:43]MH_I2C_Read... [04:48:43]Read from MH i2c: 01 07 00 7B 13 00 00 00 00 00 FF 0F A3 [04:48:43]process_action close_receipt done [04:48:43]requested_data is exist [04:48:43]produce_requested_data [04:48:43]requested_item fm.sn is exist - process it [04:48:43]wFMCommunicate request_size=4 [04:48:43]MH_SAM_APDU [04:48:43]CAPDU: 80 11 00 00 [04:48:43]Write to MH i2c: E2 08 00 7C 13 80 11 00 00 00 00 00 00 09 [04:48:43]Write i2c OK [04:48:43]MH_I2C_Read... [04:48:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:48:43]Read from MH i2c: E2 [04:48:43]MH_I2C_Read... [04:48:43]Read from MH i2c: E2 17 00 [04:48:43]MH_I2C_Read... [04:48:43]Read from MH i2c: E2 17 00 7C 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 5C [04:48:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [04:48:43]wFMCommunicate OK [04:48:43]requested_item fd.num is exist - process it [04:48:43]SAM_PROTO_GetFieldsCounters [04:48:43]wFMCommunicate request_size=4 [04:48:43]MH_SAM_APDU [04:48:43]CAPDU: 80 13 00 00 [04:48:43]Write to MH i2c: E2 08 00 7D 13 80 13 00 00 00 00 00 00 0C [04:48:43]Write i2c OK [04:48:43]MH_I2C_Read... [04:48:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:48:43]Read from MH i2c: E2 [04:48:43]MH_I2C_Read... [04:48:43]Read from MH i2c: E2 62 00 [04:48:43]MH_I2C_Read... [04:48:43]Read from MH i2c: E2 62 00 7D 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D7 2B 01 00 0E 04 04 00 74 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 D2 [04:48:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D7 2B 01 00 0E 04 04 00 74 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 [04:48:43]wFMCommunicate OK [04:48:43]SAM_PROTO_GetFieldsCounters done [04:48:43]requested_item shift.num is exist - process it [04:48:43]requested_item shift.opened is exist - process it [04:48:43]req_shift_opened [04:48:43]FM_GetShiftState [04:48:43]SAM_PROTO_GetShiftState [04:48:43]wFMCommunicate request_size=4 [04:48:43]MH_SAM_APDU [04:48:43]CAPDU: 80 13 01 00 [04:48:43]Write to MH i2c: E2 08 00 7E 13 80 13 01 00 00 00 00 00 0E [04:48:43]Write i2c OK [04:48:43]MH_I2C_Read... [04:48:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:48:43]Read from MH i2c: E2 [04:48:43]MH_I2C_Read... [04:48:43]Read from MH i2c: E2 0E 00 [04:48:43]MH_I2C_Read... [04:48:43]Read from MH i2c: E2 0E 00 7E 13 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 55 [04:48:43]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [04:48:43]wFMCommunicate OK [04:48:43]SAM_PROTO_GetShiftState done [04:48:43]FM_GetShiftState done [04:48:43]req_shift_opened done [04:48:43]requested_item shift.open_date is exist - process it [04:48:43]req_shift_open_date [04:48:43]req_shift_open_date done [04:48:43]produce_requested_data done [04:48:43]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76759,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [04:48:43]process_action_free close_receipt [04:48:43]json_value_free [04:48:43]json_value_free done [04:48:43]process_json_proto returns [04:48:43]Send response to host [04:48:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76759,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [04:48:43]free response buf [04:48:43]execute_script done [04:48:43]execute_script returns [04:48:43]free content buf [04:48:43]Sock 7.Close socket [04:48:43]Sock 7.Thread stoped [04:48:47]OFD Sender: No OFD packet to send [04:48:52]OFD Sender: No OFD packet to send [04:48:57]OFD Sender: No OFD packet to send [04:49:02]OFD Sender: No OFD packet to send [04:49:07]OFD Sender: No OFD packet to send [04:49:12]OFD Sender: No OFD packet to send [04:49:17]OFD Sender: No OFD packet to send [04:49:22]OFD Sender: No OFD packet to send [04:49:27]OFD Sender: No OFD packet to send [04:49:32]OFD Sender: No OFD packet to send [04:49:37]OFD Sender: No OFD packet to send [04:49:42]OFD Sender: No OFD packet to send [04:49:47]OFD Sender: No OFD packet to send [04:49:52]OFD Sender: No OFD packet to send [04:49:57]OFD Sender: No OFD packet to send [04:50:02]OFD Sender: No OFD packet to send [04:50:07]OFD Sender: No OFD packet to send [04:50:12]OFD Sender: No OFD packet to send [04:50:17]OFD Sender: No OFD packet to send [04:50:22]OFD Sender: No OFD packet to send [04:50:27]OFD Sender: No OFD packet to send [04:50:32]OFD Sender: No OFD packet to send [04:50:37]OFD Sender: No OFD packet to send [04:50:42]OFD Sender: No OFD packet to send [04:50:47]OFD Sender: No OFD packet to send [04:50:52]OFD Sender: No OFD packet to send [04:50:57]OFD Sender: No OFD packet to send [04:51:02]OFD Sender: No OFD packet to send [04:51:07]OFD Sender: No OFD packet to send [04:51:12]OFD Sender: No OFD packet to send [04:51:17]OFD Sender: No OFD packet to send [04:51:22]OFD Sender: No OFD packet to send [04:51:27]OFD Sender: No OFD packet to send [04:51:32]OFD Sender: No OFD packet to send [04:51:37]OFD Sender: No OFD packet to send [04:51:42]OFD Sender: No OFD packet to send [04:51:47]OFD Sender: No OFD packet to send [04:51:52]OFD Sender: No OFD packet to send [04:51:57]OFD Sender: No OFD packet to send [04:52:02]OFD Sender: No OFD packet to send [04:52:07]OFD Sender: No OFD packet to send [04:52:12]OFD Sender: No OFD packet to send [04:52:17]OFD Sender: No OFD packet to send [04:52:22]OFD Sender: No OFD packet to send [04:52:27]OFD Sender: No OFD packet to send [04:52:32]OFD Sender: No OFD packet to send [04:52:37]OFD Sender: No OFD packet to send [04:52:42]OFD Sender: No OFD packet to send [04:52:47]OFD Sender: No OFD packet to send [04:52:52]OFD Sender: No OFD packet to send [04:52:57]OFD Sender: No OFD packet to send [04:53:02]OFD Sender: No OFD packet to send [04:53:07]OFD Sender: No OFD packet to send [04:53:12]OFD Sender: No OFD packet to send [04:53:17]OFD Sender: No OFD packet to send [04:53:22]OFD Sender: No OFD packet to send [04:53:27]OFD Sender: No OFD packet to send [04:53:32]OFD Sender: No OFD packet to send [04:53:37]OFD Sender: No OFD packet to send [04:53:42]OFD Sender: No OFD packet to send [04:53:47]OFD Sender: No OFD packet to send [04:53:52]OFD Sender: No OFD packet to send [04:53:57]OFD Sender: No OFD packet to send [04:54:02]OFD Sender: No OFD packet to send [04:54:07]OFD Sender: No OFD packet to send [04:54:12]OFD Sender: No OFD packet to send [04:54:17]OFD Sender: No OFD packet to send [04:54:22]OFD Sender: No OFD packet to send [04:54:27]OFD Sender: No OFD packet to send [04:54:32]OFD Sender: No OFD packet to send [04:54:37]OFD Sender: No OFD packet to send [04:54:42]OFD Sender: No OFD packet to send [04:54:47]OFD Sender: No OFD packet to send [04:54:52]OFD Sender: No OFD packet to send [04:54:57]OFD Sender: No OFD packet to send [04:55:02]OFD Sender: No OFD packet to send [04:55:07]OFD Sender: No OFD packet to send [04:55:12]OFD Sender: No OFD packet to send [04:55:17]OFD Sender: No OFD packet to send [04:55:22]OFD Sender: No OFD packet to send [04:55:27]OFD Sender: No OFD packet to send [04:55:32]OFD Sender: No OFD packet to send [04:55:37]OFD Sender: No OFD packet to send [04:55:42]OFD Sender: No OFD packet to send [04:55:47]OFD Sender: No OFD packet to send [04:55:52]OFD Sender: No OFD packet to send [04:55:57]OFD Sender: No OFD packet to send [04:56:02]OFD Sender: No OFD packet to send [04:56:07]OFD Sender: No OFD packet to send [04:56:12]OFD Sender: No OFD packet to send [04:56:17]OFD Sender: No OFD packet to send [04:56:22]OFD Sender: No OFD packet to send [04:56:27]OFD Sender: No OFD packet to send [04:56:32]OFD Sender: No OFD packet to send [04:56:37]OFD Sender: No OFD packet to send [04:56:42]OFD Sender: No OFD packet to send [04:56:47]OFD Sender: No OFD packet to send [04:56:52]OFD Sender: No OFD packet to send [04:56:57]OFD Sender: No OFD packet to send [04:57:02]OFD Sender: No OFD packet to send [04:57:07]OFD Sender: No OFD packet to send [04:57:12]OFD Sender: No OFD packet to send [04:57:17]OFD Sender: No OFD packet to send [04:57:22]OFD Sender: No OFD packet to send [04:57:27]OFD Sender: No OFD packet to send [04:57:32]OFD Sender: No OFD packet to send [04:57:37]OFD Sender: No OFD packet to send [04:57:42]OFD Sender: No OFD packet to send [04:57:47]OFD Sender: No OFD packet to send [04:57:52]OFD Sender: No OFD packet to send [04:57:57]OFD Sender: No OFD packet to send [04:58:02]OFD Sender: No OFD packet to send [04:58:07]OFD Sender: No OFD packet to send [04:58:12]OFD Sender: No OFD packet to send [04:58:17]OFD Sender: No OFD packet to send [04:58:22]OFD Sender: No OFD packet to send [04:58:27]OFD Sender: No OFD packet to send [04:58:32]OFD Sender: No OFD packet to send [04:58:37]OFD Sender: No OFD packet to send [04:58:42]OFD Sender: No OFD packet to send [04:58:47]OFD Sender: No OFD packet to send [04:58:52]OFD Sender: No OFD packet to send [04:58:57]accept exits with 10 [04:58:57]New connection [04:58:57]New thread 3067338084 created [04:58:57]Thread 3067481444 joined [04:58:57]Waiting for new connection... [04:58:57] Sock 10.Parse request [04:58:57]Sock 10.Check first char [04:58:57]Sock 10.First char is OK [04:58:57]request: POST /json_proto HTTP/1.0 [04:58:57]Method: POST [04:58:57]URL: /json_proto [04:58:57]Method is POST - this is cgi request [04:58:57]url: /json_proto [04:58:57]query_string will be loaded in cgi processing [04:58:57]execute_cgi json_proto POST (null) [04:58:57]execute_cgi path=json_proto method=POST [04:58:57]POST find Content-Length [04:58:57]Host: 172.17.62.5:8080 [04:58:57]Content-Length: 682 [04:58:57]Content-Type: application/json [04:58:57] [04:58:57]POST finish read [04:58:57]Found Content-Length = 682 [04:58:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:58:57]execute_script... [04:58:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:58:57]POST & json_proto [04:58:57]process_json_proto [04:58:57]json parsed OK: [04:58:57]protocol is kg_v1.0 [04:58:57]action value=close_receipt [04:58:57]process_action close_receipt [04:58:57]cmd_close_receipt [04:58:57]MH_GetDate [04:58:57]Write to MH i2c: F0 00 00 7F 13 81 [04:58:57]Write i2c OK [04:58:57]MH_I2C_Read... [04:58:57]Read from MH i2c: F0 [04:58:57]MH_I2C_Read... [04:58:57]Read from MH i2c: F0 09 00 [04:58:57]MH_I2C_Read... [04:58:57]Read from MH i2c: F0 09 00 7F 13 00 13 9D 24 66 F4 E9 65 64 6A [04:58:57]GetLastDocTimeStamp 1713674921 [04:58:57]current date 1713675539 [04:58:57]FM_GetShiftState [04:58:57]SAM_PROTO_GetShiftState [04:58:57]wFMCommunicate request_size=4 [04:58:57]MH_SAM_APDU [04:58:57]CAPDU: 80 13 01 00 [04:58:57]Write to MH i2c: E2 08 00 80 13 80 13 01 00 00 00 00 00 10 [04:58:57]Write i2c OK [04:58:57]MH_I2C_Read... [04:58:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:58:57]Read from MH i2c: E2 [04:58:57]MH_I2C_Read... [04:58:57]Read from MH i2c: E2 0E 00 [04:58:57]MH_I2C_Read... [04:58:57]Read from MH i2c: E2 0E 00 80 13 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 57 [04:58:57]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [04:58:57]wFMCommunicate OK [04:58:57]SAM_PROTO_GetShiftState done [04:58:57]FM_GetShiftState done [04:58:57]opened in 1713658965 [04:58:57]opened+sec_in_day 1713745365 [04:58:57]quantity*price = 100013 [04:58:57]sum+1 = 100014 [04:58:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 16 21.04.2024 04:58 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76760 ФПД: 186459180510230 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T045859&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76760&fm=186459180510230&tin=02508201610067®Number=0000000000091573&sum=100000 [04:58:58]StoreToDocumentArchive [04:58:58]shift 372 fd 76760 [04:58:58]save to /storage/0372/doc_00076760 [04:58:58]save last doc name /storage/0372/doc_00076760 to /storage/kkm_last_doc_name [04:58:58]save OK [04:58:58]Clear old archive folders... [04:58:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:58:58]tlvbuf is 01873640 [04:58:58]SAM_PROTO_ClearQueue [04:58:58]wFMCommunicate request_size=4 [04:58:58]MH_SAM_APDU [04:58:58]CAPDU: 80 09 00 00 [04:58:58]Write to MH i2c: E2 08 00 8D 13 80 09 00 00 00 00 00 00 12 [04:58:58]Write i2c OK [04:58:58]MH_I2C_Read... [04:58:58]Read from MH i2c: E2 [04:58:58]MH_I2C_Read... [04:58:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:58:58]Read from MH i2c: E2 03 00 [04:58:58]MH_I2C_Read... [04:58:58]Read from MH i2c: E2 03 00 8D 13 00 90 00 14 [04:58:58]RAPDU: 90 00 [04:58:58]wFMCommunicate OK [04:58:58]SAM_PROTO_ClearQueue done [04:58:58]KKMCreateOFDPacket [04:58:58]OFDProtocolAddRootSTLVToBuf [04:58:58]FM_MakeSignedData [04:58:58]FM_MakeSignedData [04:58:58]SAM_PROTO_SignData [04:58:58]wFMCommunicate request_size=4 [04:58:58]MH_SAM_APDU [04:58:58]CAPDU: 80 0D 01 02 [04:58:58]Write to MH i2c: E2 08 00 8E 13 80 0D 01 02 00 00 00 00 1A [04:58:58]Write i2c OK [04:58:58]MH_I2C_Read... [04:58:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:58:58]Read from MH i2c: E2 [04:58:58]MH_I2C_Read... [04:58:58]Read from MH i2c: E2 03 00 [04:58:58]MH_I2C_Read... [04:58:58]Read from MH i2c: E2 03 00 8E 13 00 90 00 15 [04:58:58]RAPDU: 90 00 [04:58:58]wFMCommunicate OK [04:58:58]wFMCommunicate request_size=255 [04:58:58]MH_SAM_APDU [04:58: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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 13 9D 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D8 2B 01 00 35 04 06 00 A9 [04:58:58]Write to MH i2c: E2 02 01 8F 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 13 9D 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D8 2B 01 00 35 04 06 00 A9 00 00 57 [04:58:58]Write i2c OK [04:58:58]MH_I2C_Read... [04:58:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:58:58]Read from MH i2c: E2 [04:58:58]MH_I2C_Read... [04:58:58]Read from MH i2c: E2 03 00 [04:58:58]MH_I2C_Read... [04:58:58]Read from MH i2c: E2 03 00 8F 13 00 90 00 16 [04:58:58]RAPDU: 90 00 [04:58:58]wFMCommunicate OK [04:58:58]wFMCommunicate request_size=10 [04:58:58]MH_SAM_APDU [04:58:58]CAPDU: 80 0D 02 02 05 95 69 38 2C 16 [04:58:58]Write to MH i2c: E2 0D 00 90 13 80 0D 02 02 05 00 95 69 38 2C 16 00 00 9F [04:58:58]Write i2c OK [04:58:58]MH_I2C_Read... [04:58:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:58:58]Read from MH i2c: E2 [04:58:58]MH_I2C_Read... [04:58:58]Read from MH i2c: E2 03 00 [04:58:58]MH_I2C_Read... [04:58:58]Read from MH i2c: E2 03 00 90 13 00 90 00 17 [04:58:58]RAPDU: 90 00 [04:58:58]wFMCommunicate OK [04:58:58]wFMCommunicate request_size=4 [04:58:58]MH_SAM_APDU [04:58:58]CAPDU: 80 0D 03 02 [04:58:58]Write to MH i2c: E2 08 00 91 13 80 0D 03 02 00 00 00 00 1F [04:58:58]Write i2c OK [04:58:58]MH_I2C_Read... [04:58:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:58:58]Read from MH i2c: E2 [04:58:58]MH_I2C_Read... [04:58:58]Read from MH i2c: E2 0B 00 [04:58:58]MH_I2C_Read... [04:58:58]Read from MH i2c: E2 0B 00 91 13 00 60 6A F9 52 98 85 84 D9 90 00 AF [04:58:58]RAPDU: 60 6A F9 52 98 85 84 D9 90 00 [04:58:58]wFMCommunicate OK [04:58:58]SAM_PROTO_SignData done [04:58:58]FM_MakeSignedData done [04:58:58]CreateOFDProtocolMessage [04:58:58]wFMCommunicate request_size=4 [04:58:58]MH_SAM_APDU [04:58:58]CAPDU: 80 11 00 00 [04:58:58]Write to MH i2c: E2 08 00 92 13 80 11 00 00 00 00 00 00 1F [04:58:58]Write i2c OK [04:58:58]MH_I2C_Read... [04:58:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:58:58]Read from MH i2c: E2 [04:58:58]MH_I2C_Read... [04:58:58]Read from MH i2c: E2 17 00 [04:58:58]MH_I2C_Read... [04:58:58]Read from MH i2c: E2 17 00 92 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 72 [04:58:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [04:58:58]wFMCommunicate OK [04:58:58]CreateOFDProtocolMessage done [04:58:58]OFDSenderStorePacket 76760 [04:58:58]StoreOFDPacket docnum=76760 [04:58:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 DB 6A 07 01 AB 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 13 9D 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D8 2B 01 00 35 04 06 00 A9 95 69 38 2C 16 60 6A F9 52 98 85 84 D9 [04:58:58]CheckFolder [04:58:58]dirname=/storage/ofd_packets [04:58:58]CheckFolder done [04:58:58]ProducePacketName [04:58:58]name=ofd_packets/00076760 [04:58:58]NVStorageSaveData ofd_packets/00076760 [04:58:58]File name is /storage/ofd_packets/00076760 [04:58:58]Write 301 bytes [04:58:58]NVStorageSaveData done [04:58:58]OFDSenderStorePacket done [04:58:58]KKMCreateOFDPacket done [04:58:58]NVStorageSaveData kkm_last_timestamp [04:58:58]File name is /storage/kkm_last_timestamp [04:58:58]Write 4 bytes [04:58:58]NVStorageSaveData done [04:58:58]ExternCall_PrintAddStr [04:58:58]wPrintStart [04:58:58]Write to MH i2c: 01 00 00 93 13 A6 [04:58:58]Write i2c OK [04:58:58]MH_I2C_Read... [04:58:58]Read from MH i2c: 01 [04:58:58]MH_I2C_Read... [04:58:58]Read from MH i2c: 01 07 00 [04:58:58]MH_I2C_Read... [04:58:58]Read from MH i2c: 01 07 00 93 13 00 00 00 00 00 FF 0F BB [04:58:58]RasterBufferAndPrint [04:58:58]line Счет N : (1)191288 [04:58:58]line ИНН: 02508201610067 [04:58:58]line Контрольно-Кассовый Чек [04:58:58]line ПРОДАЖА [04:58:58]line ТРК (МРК, ГНК) : 43 [04:58:58]line Товар: 2710124130 [04:58:58]line Аи-92-К-5 [04:58:58]line 15.530 * 64.40 [04:58:58]line = 1000.13 [04:58:58]line НДС 12% НСП 1% [04:58:58]line > о реализуемом товаре [04:58:58]line ОКРУГЛЕНИЕ: -0.13 [04:58:58]line ИТОГО: 1000.00 [04:58:58]line Внесено: 1000.00 [04:58:58]line СДАЧА: 0.00 [04:58:58]line НСП 1% : 8.85 [04:58:58]line НДС 12% : 106.21 [04:58:58]line Наличными: 1000.00 [04:58:58]line Безнал.: 0.00 [04:58:58]line Место: АЗС № 106 "Партнер Нефть" [04:58:58]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [04:58:58]line СНО: Общий режим [04:58:58]line Чек 16 21.04.2024 04:58 [04:58:58]line Смена: 372 ФФД: 1.0 [04:58:58]line ЗНМ: 0300000141 [04:58:58]line РНМ: 0000000000091573 [04:58:58]line Версия ККМ: 001 [04:58:58]line ФМ: 0000000000874652 [04:58:58]line ФД: 76760 [04:58:58]line ФПД: 186459180510230 [04:58:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T045859&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76760&fm=186459180510230&tin=02508201610067®Number=0000000000091573&sum=100000 [04:58:59]OFD Sender: Processing packet 76760 [packets to send 129, broken 128] [04:58:59]ProducePacketName [04:58:59]name=ofd_packets/00076760 [04:58:59]OFD Sender: To server: pG, [04:58:59]CommunicateWithHost lk.salyk.kg:30040 [04:58:59]ConnectInit lk.salyk.kg [04:58:59]written 0, free lines is 4095 [04:58:59]Connected sock=11 [04:58:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 DB 6A 07 01 AB 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 13 9D 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D8 2B 01 00 35 04 06 00 A9 95 69 38 2C 16 60 6A F9 52 98 85 84 D9 [04:58:59]Write to MH i2c: 01 00 00 BD 13 D0 [04:58:59]Write i2c OK [04:58:59]MH_I2C_Read... [04:58:59]Read from MH i2c: 01 [04:58:59]MH_I2C_Read... [04:58:59]Read from MH i2c: 01 07 00 [04:58:59]MH_I2C_Read... [04:58:59]Read from MH i2c: 01 07 00 BD 13 00 00 00 00 00 FC 0C DF [04:58:59]RasterBufferAndPrint [04:58:59]line [04:58:59]line [04:58:59]line [04:58:59]line [04:58:59]line [04:58:59]written 0, free lines is 3330 [04:58:59]MH_Cut [04:58:59]Write to MH i2c: D1 01 00 C4 13 01 A9 [04:58:59]Write i2c OK [04:58:59]MH_I2C_Read... [04:58:59]Read from MH i2c: D1 [04:58:59]MH_I2C_Read... [04:58:59]Read from MH i2c: D1 01 00 [04:58:59]MH_I2C_Read... [04:58:59]Read from MH i2c: D1 01 00 C4 13 00 A8 [04:58:59]Write to MH i2c: 01 00 00 C5 13 D8 [04:58:59]Write i2c OK [04:58:59]MH_I2C_Read... [04:59:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 38 29 47 00 84 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 34 36 35 32 10 04 04 00 D8 2B 01 00 F4 03 04 00 9A 44 24 66 B6 04 01 00 00 0F 49 4C B7 9A 37 77 53 [04:59:00]CommunicateWithHost err = 0 [04:59:00]CheckOFDResponse [04:59:00]1017 (14) - 77093643461234 [04:59:00]1041 (16) - 0000000000874652 [04:59:00]1040 (4) - 76760 [04:59:00]1012 (4) - 20.04.2024 22:41 [04:59:00]1206 (1) - 0 [04:59:00]OFD Sender: Remove packet 76760 [04:59:00]ProducePacketName [04:59:00]name=ofd_packets/00076760 [04:59:00]NVStorageDeleteData [04:59:00]*** Cut start [04:59:00]*** Partial cut [04:59:00]*** CUTSNS_PIN = 1 [04:59:00]*** CUTSNS_PIN = 0 [04:59:00]OFD Sender: No OFD packet to send [04:59:00]*** Brake cut motor [04:59:01]Read from MH i2c: 01 [04:59:01]MH_I2C_Read... [04:59:01]*** Stop cut motor [04:59:01]*** Cut end [04:59:01]Read from MH i2c: 01 07 00 [04:59:01]MH_I2C_Read... [04:59:01]Read from MH i2c: 01 07 00 C5 13 00 00 00 00 00 FF 0F ED [04:59:01]process_action close_receipt done [04:59:01]requested_data is exist [04:59:01]produce_requested_data [04:59:01]requested_item fm.sn is exist - process it [04:59:01]wFMCommunicate request_size=4 [04:59:01]MH_SAM_APDU [04:59:01]CAPDU: 80 11 00 00 [04:59:01]Write to MH i2c: E2 08 00 C6 13 80 11 00 00 00 00 00 00 53 [04:59:01]Write i2c OK [04:59:01]MH_I2C_Read... [04:59:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:59:01]Read from MH i2c: E2 [04:59:01]MH_I2C_Read... [04:59:01]Read from MH i2c: E2 17 00 [04:59:01]MH_I2C_Read... [04:59:01]Read from MH i2c: E2 17 00 C6 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 A6 [04:59:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [04:59:01]wFMCommunicate OK [04:59:01]requested_item fd.num is exist - process it [04:59:01]SAM_PROTO_GetFieldsCounters [04:59:01]wFMCommunicate request_size=4 [04:59:01]MH_SAM_APDU [04:59:01]CAPDU: 80 13 00 00 [04:59:01]Write to MH i2c: E2 08 00 C7 13 80 13 00 00 00 00 00 00 56 [04:59:01]Write i2c OK [04:59:01]MH_I2C_Read... [04:59:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:59:01]Read from MH i2c: E2 [04:59:01]MH_I2C_Read... [04:59:01]Read from MH i2c: E2 62 00 [04:59:01]MH_I2C_Read... [04:59:01]Read from MH i2c: E2 62 00 C7 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D8 2B 01 00 0E 04 04 00 74 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 20 [04: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D8 2B 01 00 0E 04 04 00 74 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 [04:59:01]wFMCommunicate OK [04:59:01]SAM_PROTO_GetFieldsCounters done [04:59:01]requested_item shift.num is exist - process it [04:59:01]requested_item shift.opened is exist - process it [04:59:01]req_shift_opened [04:59:01]FM_GetShiftState [04:59:01]SAM_PROTO_GetShiftState [04:59:01]wFMCommunicate request_size=4 [04:59:01]MH_SAM_APDU [04:59:01]CAPDU: 80 13 01 00 [04:59:01]Write to MH i2c: E2 08 00 C8 13 80 13 01 00 00 00 00 00 58 [04:59:01]Write i2c OK [04:59:01]MH_I2C_Read... [04:59:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:59:01]Read from MH i2c: E2 [04:59:01]MH_I2C_Read... [04:59:01]Read from MH i2c: E2 0E 00 [04:59:01]MH_I2C_Read... [04:59:01]Read from MH i2c: E2 0E 00 C8 13 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 9F [04:59:01]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [04:59:01]wFMCommunicate OK [04:59:01]SAM_PROTO_GetShiftState done [04:59:01]FM_GetShiftState done [04:59:01]req_shift_opened done [04:59:01]requested_item shift.open_date is exist - process it [04:59:01]req_shift_open_date [04:59:01]req_shift_open_date done [04:59:01]produce_requested_data done [04:59:01]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76760,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [04:59:01]process_action_free close_receipt [04:59:01]json_value_free [04:59:01]json_value_free done [04:59:01]process_json_proto returns [04:59:01]Send response to host [04:59:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76760,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [04:59:01]free response buf [04:59:01]execute_script done [04:59:01]execute_script returns [04:59:01]free content buf [04:59:01]Sock 10.Close socket [04:59:01]Sock 10.Thread stoped [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:28]accept exits with 9 [05:00:28]New connection [05:00:28]New thread 3067481444 created [05:00:28]Thread 3067338084 joined [05:00:28]Waiting for new connection... [05:00:28] Sock 9.Parse request [05:00:28]Sock 9.Check first char [05:00:28]Sock 9.First char is OK [05:00:28]request: POST /json_proto HTTP/1.0 [05:00:28]Method: POST [05:00:28]URL: /json_proto [05:00:28]Method is POST - this is cgi request [05:00:28]url: /json_proto [05:00:28]query_string will be loaded in cgi processing [05:00:28]execute_cgi json_proto POST (null) [05:00:28]execute_cgi path=json_proto method=POST [05:00:28]POST find Content-Length [05:00:28]Host: 172.17.62.5:8080 [05:00:28]Content-Length: 677 [05:00:28]Content-Type: application/json [05:00:28] [05:00:28]POST finish read [05:00:28]Found Content-Length = 677 [05:00:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 4.660, "sum" : 300.10, "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" ] } } [05:00:28]execute_script... [05:00: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)191289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 4.660, "sum" : 300.10, "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" ] } } [05:00:28]POST & json_proto [05:00:28]process_json_proto [05:00:28]json parsed OK: [05:00:28]protocol is kg_v1.0 [05:00:28]action value=close_receipt [05:00:28]process_action close_receipt [05:00:28]cmd_close_receipt [05:00:28]MH_GetDate [05:00:28]Write to MH i2c: F0 00 00 C9 13 CB [05:00:28]Write i2c OK [05:00:28]MH_I2C_Read... [05:00:28]Read from MH i2c: F0 [05:00:28]MH_I2C_Read... [05:00:28]Read from MH i2c: F0 09 00 [05:00:28]MH_I2C_Read... [05:00:28]Read from MH i2c: F0 09 00 C9 13 00 6E 9D 24 66 F4 E9 65 64 0F [05:00:28]GetLastDocTimeStamp 1713675539 [05:00:28]current date 1713675630 [05:00:28]FM_GetShiftState [05:00:28]SAM_PROTO_GetShiftState [05:00:28]wFMCommunicate request_size=4 [05:00:28]MH_SAM_APDU [05:00:28]CAPDU: 80 13 01 00 [05:00:28]Write to MH i2c: E2 08 00 CA 13 80 13 01 00 00 00 00 00 5A [05:00:28]Write i2c OK [05:00:28]MH_I2C_Read... [05:00:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:00:28]Read from MH i2c: E2 [05:00:28]MH_I2C_Read... [05:00:28]Read from MH i2c: E2 0E 00 [05:00:28]MH_I2C_Read... [05:00:28]Read from MH i2c: E2 0E 00 CA 13 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 A1 [05:00:28]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [05:00:28]wFMCommunicate OK [05:00:28]SAM_PROTO_GetShiftState done [05:00:28]FM_GetShiftState done [05:00:28]opened in 1713658965 [05:00:28]opened+sec_in_day 1713745365 [05:00:28]quantity*price = 30010 [05:00:28]sum+1 = 30011 [05:00:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 17 21.04.2024 05:00 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76761 ФПД: 199899754304391 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T050031&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76761&fm=199899754304391&tin=02508201610067®Number=0000000000091573&sum=30000 [05:00:29]StoreToDocumentArchive [05:00:29]shift 372 fd 76761 [05:00:29]save to /storage/0372/doc_00076761 [05:00:29]save last doc name /storage/0372/doc_00076761 to /storage/kkm_last_doc_name [05:00:29]save OK [05:00:29]Clear old archive folders... [05:00:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:00:29]tlvbuf is 018B53A0 [05:00:29]SAM_PROTO_ClearQueue [05:00:29]wFMCommunicate request_size=4 [05:00:29]MH_SAM_APDU [05:00:29]CAPDU: 80 09 00 00 [05:00:29]Write to MH i2c: E2 08 00 D7 13 80 09 00 00 00 00 00 00 5C [05:00:29]Write i2c OK [05:00:29]MH_I2C_Read... [05:00:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:00:29]Read from MH i2c: E2 [05:00:29]MH_I2C_Read... [05:00:29]Read from MH i2c: E2 03 00 [05:00:29]MH_I2C_Read... [05:00:29]Read from MH i2c: E2 03 00 D7 13 00 90 00 5E [05:00:29]RAPDU: 90 00 [05:00:29]wFMCommunicate OK [05:00:29]SAM_PROTO_ClearQueue done [05:00:29]KKMCreateOFDPacket [05:00:29]OFDProtocolAddRootSTLVToBuf [05:00:29]FM_MakeSignedData [05:00:29]FM_MakeSignedData [05:00:29]SAM_PROTO_SignData [05:00:29]wFMCommunicate request_size=4 [05:00:29]MH_SAM_APDU [05:00:29]CAPDU: 80 0D 01 02 [05:00:29]Write to MH i2c: E2 08 00 D8 13 80 0D 01 02 00 00 00 00 64 [05:00:29]Write i2c OK [05:00:29]MH_I2C_Read... [05:00:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:00:29]Read from MH i2c: E2 [05:00:29]MH_I2C_Read... [05:00:29]Read from MH i2c: E2 03 00 [05:00:29]MH_I2C_Read... [05:00:29]Read from MH i2c: E2 03 00 D8 13 00 90 00 5F [05:00:29]RAPDU: 90 00 [05:00:29]wFMCommunicate OK [05:00:29]wFMCommunicate request_size=255 [05:00:29]MH_SAM_APDU [05:00:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 11 00 00 00 F4 03 04 00 6F 9D 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D9 2B 01 00 35 04 06 00 B5 [05:00:29]Write to MH i2c: E2 02 01 D9 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 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 11 00 00 00 F4 03 04 00 6F 9D 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D9 2B 01 00 35 04 06 00 B5 00 00 4E [05:00:29]Write i2c OK [05:00:29]MH_I2C_Read... [05:00:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:00:29]Read from MH i2c: E2 [05:00:29]MH_I2C_Read... [05:00:29]Read from MH i2c: E2 03 00 [05:00:29]MH_I2C_Read... [05:00:29]Read from MH i2c: E2 03 00 D9 13 00 90 00 60 [05:00:29]RAPDU: 90 00 [05:00:29]wFMCommunicate OK [05:00:29]wFMCommunicate request_size=10 [05:00:29]MH_SAM_APDU [05:00:29]CAPDU: 80 0D 02 02 05 CE C9 D8 93 87 [05:00:29]Write to MH i2c: E2 0D 00 DA 13 80 0D 02 02 05 00 CE C9 D8 93 87 00 00 FA [05:00:29]Write i2c OK [05:00:29]MH_I2C_Read... [05:00:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:00:29]Read from MH i2c: E2 [05:00:29]MH_I2C_Read... [05:00:29]Read from MH i2c: E2 03 00 [05:00:29]MH_I2C_Read... [05:00:29]Read from MH i2c: E2 03 00 DA 13 00 90 00 61 [05:00:29]RAPDU: 90 00 [05:00:29]wFMCommunicate OK [05:00:29]wFMCommunicate request_size=4 [05:00:29]MH_SAM_APDU [05:00:29]CAPDU: 80 0D 03 02 [05:00:29]Write to MH i2c: E2 08 00 DB 13 80 0D 03 02 00 00 00 00 69 [05:00:29]Write i2c OK [05:00:29]MH_I2C_Read... [05:00:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:00:30]Read from MH i2c: E2 [05:00:30]MH_I2C_Read... [05:00:30]Read from MH i2c: E2 0B 00 [05:00:30]MH_I2C_Read... [05:00:30]Read from MH i2c: E2 0B 00 DB 13 00 20 B6 30 94 B6 64 8F 9B 90 00 48 [05:00:30]RAPDU: 20 B6 30 94 B6 64 8F 9B 90 00 [05:00:30]wFMCommunicate OK [05:00:30]SAM_PROTO_SignData done [05:00:30]FM_MakeSignedData done [05:00:30]CreateOFDProtocolMessage [05:00:30]wFMCommunicate request_size=4 [05:00:30]MH_SAM_APDU [05:00:30]CAPDU: 80 11 00 00 [05:00:30]Write to MH i2c: E2 08 00 DC 13 80 11 00 00 00 00 00 00 69 [05:00:30]Write i2c OK [05:00:30]MH_I2C_Read... [05:00:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:00:30]Read from MH i2c: E2 [05:00:30]MH_I2C_Read... [05:00:30]Read from MH i2c: E2 17 00 [05:00:30]MH_I2C_Read... [05:00:30]Read from MH i2c: E2 17 00 DC 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 BC [05:00:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [05:00:30]wFMCommunicate OK [05:00:30]CreateOFDProtocolMessage done [05:00:30]OFDSenderStorePacket 76761 [05:00:30]StoreOFDPacket docnum=76761 [05:00:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 63 00 07 01 05 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 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 11 00 00 00 F4 03 04 00 6F 9D 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D9 2B 01 00 35 04 06 00 B5 CE C9 D8 93 87 20 B6 30 94 B6 64 8F 9B [05:00:30]CheckFolder [05:00:30]dirname=/storage/ofd_packets [05:00:30]CheckFolder done [05:00:30]ProducePacketName [05:00:30]name=ofd_packets/00076761 [05:00:30]NVStorageSaveData ofd_packets/00076761 [05:00:30]File name is /storage/ofd_packets/00076761 [05:00:30]Write 301 bytes [05:00:30]NVStorageSaveData done [05:00:30]OFDSenderStorePacket done [05:00:30]KKMCreateOFDPacket done [05:00:30]NVStorageSaveData kkm_last_timestamp [05:00:30]File name is /storage/kkm_last_timestamp [05:00:30]Write 4 bytes [05:00:30]NVStorageSaveData done [05:00:30]ExternCall_PrintAddStr [05:00:30]wPrintStart [05:00:30]Write to MH i2c: 01 00 00 DD 13 F0 [05:00:30]Write i2c OK [05:00:30]MH_I2C_Read... [05:00:30]Read from MH i2c: 01 [05:00:30]MH_I2C_Read... [05:00:30]Read from MH i2c: 01 07 00 [05:00:30]MH_I2C_Read... [05:00:30]Read from MH i2c: 01 07 00 DD 13 00 00 00 00 00 FF 0F 05 [05:00:30]RasterBufferAndPrint [05:00:30]line Счет N : (1)191289 [05:00:30]line ИНН: 02508201610067 [05:00:30]line Контрольно-Кассовый Чек [05:00:30]line ПРОДАЖА [05:00:30]line ТРК (МРК, ГНК) : 22 [05:00:30]line Товар: 2710124130 [05:00:30]line Аи-92-К-5 [05:00:30]line 4.660 * 64.40 [05:00:30]line = 300.10 [05:00:30]line НДС 12% НСП 1% [05:00:30]line > о реализуемом товаре [05:00:30]line ОКРУГЛЕНИЕ: -0.10 [05:00:30]line ИТОГО: 300.00 [05:00:30]line Внесено: 300.00 [05:00:30]line СДАЧА: 0.00 [05:00:30]line НСП 1% : 2.66 [05:00:30]line НДС 12% : 31.87 [05:00:30]line Наличными: 300.00 [05:00:30]line Безнал.: 0.00 [05:00:30]line Место: АЗС № 106 "Партнер Нефть" [05:00:30]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [05:00:30]line СНО: Общий режим [05:00:30]line Чек 17 21.04.2024 05:00 [05:00:30]line Смена: 372 ФФД: 1.0 [05:00:30]line ЗНМ: 0300000141 [05:00:30]line РНМ: 0000000000091573 [05:00:30]line Версия ККМ: 001 [05:00:30]line ФМ: 0000000000874652 [05:00:30]line ФД: 76761 [05:00:30]line ФПД: 199899754304391 [05:00:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T050031&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76761&fm=199899754304391&tin=02508201610067®Number=0000000000091573&sum=30000 [05:00:30]written 0, free lines is 4095 [05:00:30]OFD Sender: Processing packet 76761 [packets to send 129, broken 128] [05:00:30]ProducePacketName [05:00:30]name=ofd_packets/00076761 [05:00:30]OFD Sender: To server: pG, [05:00:30]CommunicateWithHost lk.salyk.kg:30040 [05:00:30]ConnectInit lk.salyk.kg [05:00:30]Connected sock=7 [05:00:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 63 00 07 01 05 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 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 11 00 00 00 F4 03 04 00 6F 9D 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D9 2B 01 00 35 04 06 00 B5 CE C9 D8 93 87 20 B6 30 94 B6 64 8F 9B [05:00:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 54 C4 47 00 3B 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 34 36 35 32 10 04 04 00 D9 2B 01 00 F4 03 04 00 F5 44 24 66 B6 04 01 00 00 A2 B3 3C 06 EE B7 D8 74 [05:00:30]CommunicateWithHost err = 0 [05:00:30]CheckOFDResponse [05:00:30]1017 (14) - 77093643461234 [05:00:30]1041 (16) - 0000000000874652 [05:00:30]1040 (4) - 76761 [05:00:30]1012 (4) - 20.04.2024 22:43 [05:00:30]1206 (1) - 0 [05:00:30]OFD Sender: Remove packet 76761 [05:00:30]ProducePacketName [05:00:30]name=ofd_packets/00076761 [05:00:30]NVStorageDeleteData [05:00:30]Write to MH i2c: 01 00 00 07 14 1B [05:00:30]Write i2c OK [05:00:30]MH_I2C_Read... [05:00:30]Read from MH i2c: 01 [05:00:30]MH_I2C_Read... [05:00:30]Read from MH i2c: 01 07 00 [05:00:30]MH_I2C_Read... [05:00:30]Read from MH i2c: 01 07 00 07 14 00 00 00 00 00 EB 0C 19 [05:00:30]RasterBufferAndPrint [05:00:30]line [05:00:30]line [05:00:30]line [05:00:30]line [05:00:30]line [05:00:30]written 0, free lines is 3313 [05:00:30]MH_Cut [05:00:30]Write to MH i2c: D1 01 00 0E 14 01 F4 [05:00:30]Write i2c OK [05:00:30]MH_I2C_Read... [05:00:30]Read from MH i2c: D1 [05:00:30]MH_I2C_Read... [05:00:30]Read from MH i2c: D1 01 00 [05:00:30]MH_I2C_Read... [05:00:30]Read from MH i2c: D1 01 00 0E 14 00 F3 [05:00:30]Write to MH i2c: 01 00 00 0F 14 23 [05:00:30]Write i2c OK [05:00:30]MH_I2C_Read... [05:00:31]OFD Sender: No OFD packet to send [05:00:31]*** Cut start [05:00:31]*** Partial cut [05:00:31]*** CUTSNS_PIN = 1 [05:00:31]*** CUTSNS_PIN = 0 [05:00:31]*** Brake cut motor [05:00:32]Read from MH i2c: 01 [05:00:32]MH_I2C_Read... [05:00:32]*** Stop cut motor [05:00:32]*** Cut end [05:00:32]Read from MH i2c: 01 07 00 [05:00:32]MH_I2C_Read... [05:00:32]Read from MH i2c: 01 07 00 0F 14 00 00 00 00 00 FF 0F 38 [05:00:32]process_action close_receipt done [05:00:32]requested_data is exist [05:00:32]produce_requested_data [05:00:32]requested_item fm.sn is exist - process it [05:00:32]wFMCommunicate request_size=4 [05:00:32]MH_SAM_APDU [05:00:32]CAPDU: 80 11 00 00 [05:00:32]Write to MH i2c: E2 08 00 10 14 80 11 00 00 00 00 00 00 9E [05:00:32]Write i2c OK [05:00:32]MH_I2C_Read... [05:00:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:00:32]Read from MH i2c: E2 [05:00:32]MH_I2C_Read... [05:00:32]Read from MH i2c: E2 17 00 [05:00:32]MH_I2C_Read... [05:00:32]Read from MH i2c: E2 17 00 10 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F1 [05:00:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [05:00:32]wFMCommunicate OK [05:00:32]requested_item fd.num is exist - process it [05:00:32]SAM_PROTO_GetFieldsCounters [05:00:32]wFMCommunicate request_size=4 [05:00:32]MH_SAM_APDU [05:00:32]CAPDU: 80 13 00 00 [05:00:32]Write to MH i2c: E2 08 00 11 14 80 13 00 00 00 00 00 00 A1 [05:00:32]Write i2c OK [05:00:32]MH_I2C_Read... [05:00:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:00:32]Read from MH i2c: E2 [05:00:32]MH_I2C_Read... [05:00:32]Read from MH i2c: E2 62 00 [05:00:32]MH_I2C_Read... [05:00:32]Read from MH i2c: E2 62 00 11 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D9 2B 01 00 0E 04 04 00 74 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 6F [05:00: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D9 2B 01 00 0E 04 04 00 74 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:00:32]wFMCommunicate OK [05:00:32]SAM_PROTO_GetFieldsCounters done [05:00:32]requested_item shift.num is exist - process it [05:00:32]requested_item shift.opened is exist - process it [05:00:32]req_shift_opened [05:00:32]FM_GetShiftState [05:00:32]SAM_PROTO_GetShiftState [05:00:32]wFMCommunicate request_size=4 [05:00:32]MH_SAM_APDU [05:00:32]CAPDU: 80 13 01 00 [05:00:32]Write to MH i2c: E2 08 00 12 14 80 13 01 00 00 00 00 00 A3 [05:00:32]Write i2c OK [05:00:32]MH_I2C_Read... [05:00:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:00:32]Read from MH i2c: E2 [05:00:32]MH_I2C_Read... [05:00:32]Read from MH i2c: E2 0E 00 [05:00:32]MH_I2C_Read... [05:00:32]Read from MH i2c: E2 0E 00 12 14 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 EA [05:00:32]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [05:00:32]wFMCommunicate OK [05:00:32]SAM_PROTO_GetShiftState done [05:00:32]FM_GetShiftState done [05:00:32]req_shift_opened done [05:00:32]requested_item shift.open_date is exist - process it [05:00:32]req_shift_open_date [05:00:32]req_shift_open_date done [05:00:32]produce_requested_data done [05:00:32]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76761,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [05:00:32]process_action_free close_receipt [05:00:32]json_value_free [05:00:32]json_value_free done [05:00:32]process_json_proto returns [05:00:32]Send response to host [05:00:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76761,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [05:00:32]free response buf [05:00:32]execute_script done [05:00:32]execute_script returns [05:00:32]free content buf [05:00:32]Sock 9.Close socket [05:00:32]Sock 9.Thread stoped [05:00:36]OFD Sender: No OFD packet to send [05:00:41]OFD Sender: No OFD packet to send [05:00:46]OFD Sender: No OFD packet to send [05:00:51]OFD Sender: No OFD packet to send [05:00:56]OFD Sender: No OFD packet to send [05:01:01]OFD Sender: No OFD packet to send [05:01:06]OFD Sender: No OFD packet to send [05:01:11]OFD Sender: No OFD packet to send [05:01:16]OFD Sender: No OFD packet to send [05:01:21]OFD Sender: No OFD packet to send [05:01:26]OFD Sender: No OFD packet to send [05:01:31]OFD Sender: No OFD packet to send [05:01:36]OFD Sender: No OFD packet to send [05:01:37]accept exits with 10 [05:01:37]New connection [05:01:37]New thread 3067338084 created [05:01:37]Thread 3067481444 joined [05:01:37]Waiting for new connection... [05:01:37] Sock 10.Parse request [05:01:37]Sock 10.Check first char [05:01:37]Sock 10.First char is OK [05:01:37]request: POST /json_proto HTTP/1.0 [05:01:37]Method: POST [05:01:37]URL: /json_proto [05:01:37]Method is POST - this is cgi request [05:01:37]url: /json_proto [05:01:37]query_string will be loaded in cgi processing [05:01:37]execute_cgi json_proto POST (null) [05:01:37]execute_cgi path=json_proto method=POST [05:01:37]POST find Content-Length [05:01:37]Host: 172.17.62.5:8080 [05:01:37]Content-Length: 670 [05:01:37]Content-Type: application/json [05:01:37] [05:01:37]POST finish read [05:01:37]Found Content-Length = 670 [05:01:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 4.590, "sum" : 300.19, "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" ] } } [05:01:37]execute_script... [05:01: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)191290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 4.590, "sum" : 300.19, "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" ] } } [05:01:37]POST & json_proto [05:01:37]process_json_proto [05:01:37]json parsed OK: [05:01:37]protocol is kg_v1.0 [05:01:37]action value=close_receipt [05:01:37]process_action close_receipt [05:01:37]cmd_close_receipt [05:01:37]MH_GetDate [05:01:37]Write to MH i2c: F0 00 00 13 14 16 [05:01:37]Write i2c OK [05:01:37]MH_I2C_Read... [05:01:37]Read from MH i2c: F0 [05:01:37]MH_I2C_Read... [05:01:37]Read from MH i2c: F0 09 00 [05:01:37]MH_I2C_Read... [05:01:37]Read from MH i2c: F0 09 00 13 14 00 B4 9D 24 66 F4 E9 65 64 A0 [05:01:37]GetLastDocTimeStamp 1713675631 [05:01:37]current date 1713675700 [05:01:37]FM_GetShiftState [05:01:37]SAM_PROTO_GetShiftState [05:01:37]wFMCommunicate request_size=4 [05:01:37]MH_SAM_APDU [05:01:37]CAPDU: 80 13 01 00 [05:01:37]Write to MH i2c: E2 08 00 14 14 80 13 01 00 00 00 00 00 A5 [05:01:37]Write i2c OK [05:01:37]MH_I2C_Read... [05:01:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:01:37]Read from MH i2c: E2 [05:01:37]MH_I2C_Read... [05:01:37]Read from MH i2c: E2 0E 00 [05:01:37]MH_I2C_Read... [05:01:37]Read from MH i2c: E2 0E 00 14 14 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 EC [05:01:37]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [05:01:37]wFMCommunicate OK [05:01:37]SAM_PROTO_GetShiftState done [05:01:37]FM_GetShiftState done [05:01:37]opened in 1713658965 [05:01:37]opened+sec_in_day 1713745365 [05:01:37]quantity*price = 30018 [05:01:37]sum+1 = 30020 [05:01:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 18 21.04.2024 05:01 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76762 ФПД: 3282441251531 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T050140&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76762&fm=3282441251531&tin=02508201610067®Number=0000000000091573&sum=30000 [05:01:38]StoreToDocumentArchive [05:01:38]shift 372 fd 76762 [05:01:38]save to /storage/0372/doc_00076762 [05:01:38]save last doc name /storage/0372/doc_00076762 to /storage/kkm_last_doc_name [05:01:38]save OK [05:01:38]Clear old archive folders... [05:01:38]ProcessDocumentItem done err = 0, tmpTLVsize=252 [05:01:38]tlvbuf is 018735E0 [05:01:38]SAM_PROTO_ClearQueue [05:01:38]wFMCommunicate request_size=4 [05:01:38]MH_SAM_APDU [05:01:38]CAPDU: 80 09 00 00 [05:01:38]Write to MH i2c: E2 08 00 21 14 80 09 00 00 00 00 00 00 A7 [05:01:38]Write i2c OK [05:01:38]MH_I2C_Read... [05:01:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:01:38]Read from MH i2c: E2 [05:01:38]MH_I2C_Read... [05:01:38]Read from MH i2c: E2 03 00 [05:01:38]MH_I2C_Read... [05:01:38]Read from MH i2c: E2 03 00 21 14 00 90 00 A9 [05:01:38]RAPDU: 90 00 [05:01:38]wFMCommunicate OK [05:01:38]SAM_PROTO_ClearQueue done [05:01:38]KKMCreateOFDPacket [05:01:38]OFDProtocolAddRootSTLVToBuf [05:01:38]FM_MakeSignedData [05:01:38]FM_MakeSignedData [05:01:38]SAM_PROTO_SignData [05:01:38]wFMCommunicate request_size=4 [05:01:38]MH_SAM_APDU [05:01:38]CAPDU: 80 0D 01 02 [05:01:38]Write to MH i2c: E2 08 00 22 14 80 0D 01 02 00 00 00 00 AF [05:01:38]Write i2c OK [05:01:38]MH_I2C_Read... [05:01:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:01:38]Read from MH i2c: E2 [05:01:38]MH_I2C_Read... [05:01:38]Read from MH i2c: E2 03 00 [05:01:38]MH_I2C_Read... [05:01:38]Read from MH i2c: E2 03 00 22 14 00 90 00 AA [05:01:38]RAPDU: 90 00 [05:01:38]wFMCommunicate OK [05:01:38]wFMCommunicate request_size=255 [05:01:38]MH_SAM_APDU [05:01: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 11 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 43 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 B4 9D 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DA 2B 01 00 35 04 06 00 [05:01:38]Write to MH i2c: E2 02 01 23 14 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 11 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 43 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 B4 9D 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DA 2B 01 00 35 04 06 00 00 00 EF [05:01:38]Write i2c OK [05:01:38]MH_I2C_Read... [05:01:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:01:39]Read from MH i2c: E2 [05:01:39]MH_I2C_Read... [05:01:39]Read from MH i2c: E2 03 00 [05:01:39]MH_I2C_Read... [05:01:39]Read from MH i2c: E2 03 00 23 14 00 90 00 AB [05:01:39]RAPDU: 90 00 [05:01:39]wFMCommunicate OK [05:01:39]wFMCommunicate request_size=11 [05:01:39]MH_SAM_APDU [05:01:39]CAPDU: 80 0D 02 02 06 02 FC 40 BE AA CB [05:01:39]Write to MH i2c: E2 0E 00 24 14 80 0D 02 02 06 00 02 FC 40 BE AA CB 00 00 2F [05:01:39]Write i2c OK [05:01:39]MH_I2C_Read... [05:01:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:01:39]Read from MH i2c: E2 [05:01:39]MH_I2C_Read... [05:01:39]Read from MH i2c: E2 03 00 [05:01:39]MH_I2C_Read... [05:01:39]Read from MH i2c: E2 03 00 24 14 00 90 00 AC [05:01:39]RAPDU: 90 00 [05:01:39]wFMCommunicate OK [05:01:39]wFMCommunicate request_size=4 [05:01:39]MH_SAM_APDU [05:01:39]CAPDU: 80 0D 03 02 [05:01:39]Write to MH i2c: E2 08 00 25 14 80 0D 03 02 00 00 00 00 B4 [05:01:39]Write i2c OK [05:01:39]MH_I2C_Read... [05:01:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:01:39]Read from MH i2c: E2 [05:01:39]MH_I2C_Read... [05:01:39]Read from MH i2c: E2 0B 00 [05:01:39]MH_I2C_Read... [05:01:39]Read from MH i2c: E2 0B 00 25 14 00 44 E4 12 C6 EB 1C BD 0F 90 00 88 [05:01:39]RAPDU: 44 E4 12 C6 EB 1C BD 0F 90 00 [05:01:39]wFMCommunicate OK [05:01:39]SAM_PROTO_SignData done [05:01:39]FM_MakeSignedData done [05:01:39]CreateOFDProtocolMessage [05:01:39]wFMCommunicate request_size=4 [05:01:39]MH_SAM_APDU [05:01:39]CAPDU: 80 11 00 00 [05:01:39]Write to MH i2c: E2 08 00 26 14 80 11 00 00 00 00 00 00 B4 [05:01:39]Write i2c OK [05:01:39]MH_I2C_Read... [05:01:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:01:39]Read from MH i2c: E2 [05:01:39]MH_I2C_Read... [05:01:39]Read from MH i2c: E2 17 00 [05:01:39]MH_I2C_Read... [05:01:39]Read from MH i2c: E2 17 00 26 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 07 [05:01:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [05:01:39]wFMCommunicate OK [05:01:39]CreateOFDProtocolMessage done [05:01:39]OFDSenderStorePacket 76762 [05:01:39]StoreOFDPacket docnum=76762 [05:01:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 FC 32 08 01 FC 82 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 11 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 43 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 B4 9D 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DA 2B 01 00 35 04 06 00 02 FC 40 BE AA CB 44 E4 12 C6 EB 1C BD 0F [05:01:39]CheckFolder [05:01:39]dirname=/storage/ofd_packets [05:01:39]CheckFolder done [05:01:39]ProducePacketName [05:01:39]name=ofd_packets/00076762 [05:01:39]NVStorageSaveData ofd_packets/00076762 [05:01:39]File name is /storage/ofd_packets/00076762 [05:01:39]Write 302 bytes [05:01:39]NVStorageSaveData done [05:01:39]OFDSenderStorePacket done [05:01:39]KKMCreateOFDPacket done [05:01:39]NVStorageSaveData kkm_last_timestamp [05:01:39]File name is /storage/kkm_last_timestamp [05:01:39]Write 4 bytes [05:01:39]NVStorageSaveData done [05:01:39]ExternCall_PrintAddStr [05:01:39]wPrintStart [05:01:39]Write to MH i2c: 01 00 00 27 14 3B [05:01:39]Write i2c OK [05:01:39]MH_I2C_Read... [05:01:39]Read from MH i2c: 01 [05:01:39]MH_I2C_Read... [05:01:39]Read from MH i2c: 01 07 00 [05:01:39]MH_I2C_Read... [05:01:39]Read from MH i2c: 01 07 00 27 14 00 00 00 00 00 FF 0F 50 [05:01:39]RasterBufferAndPrint [05:01:39]line Счет N : (1)191290 [05:01:39]line ИНН: 02508201610067 [05:01:39]line Контрольно-Кассовый Чек [05:01:39]line ПРОДАЖА [05:01:39]line ТРК (МРК, ГНК) : 41 [05:01:39]line Товар: 2710124130 [05:01:39]line SUPER 92-К-5 [05:01:39]line 4.590 * 65.40 [05:01:39]line = 300.19 [05:01:39]line НДС 12% НСП 1% [05:01:39]line > о реализуемом товаре [05:01:39]line ОКРУГЛЕНИЕ: -0.19 [05:01:39]line ИТОГО: 300.00 [05:01:39]line Внесено: 300.00 [05:01:39]line СДАЧА: 0.00 [05:01:39]line НСП 1% : 2.66 [05:01:39]line НДС 12% : 31.88 [05:01:39]line Наличными: 300.00 [05:01:39]line Безнал.: 0.00 [05:01:39]line Место: АЗС № 106 "Партнер Нефть" [05:01:39]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [05:01:39]line СНО: Общий режим [05:01:39]line Чек 18 21.04.2024 05:01 [05:01:39]line Смена: 372 ФФД: 1.0 [05:01:39]line ЗНМ: 0300000141 [05:01:39]line РНМ: 0000000000091573 [05:01:39]line Версия ККМ: 001 [05:01:39]line ФМ: 0000000000874652 [05:01:39]line ФД: 76762 [05:01:39]line ФПД: 3282441251531 [05:01:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T050140&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76762&fm=3282441251531&tin=02508201610067®Number=0000000000091573&sum=30000 [05:01:39]OFD Sender: Processing packet 76762 [packets to send 129, broken 128] [05:01:39]ProducePacketName [05:01:39]name=ofd_packets/00076762 [05:01:39]OFD Sender: To server: pG, [05:01:39]CommunicateWithHost lk.salyk.kg:30040 [05:01:39]ConnectInit lk.salyk.kg [05:01:39]written 0, free lines is 4095 [05:01:39]Connected sock=7 [05:01:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 FC 32 08 01 FC 82 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 11 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 43 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 B4 9D 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DA 2B 01 00 35 04 06 00 02 FC 40 BE AA CB 44 E4 12 C6 EB 1C BD 0F [05:01:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 67 91 47 00 69 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 34 36 35 32 10 04 04 00 DA 2B 01 00 F4 03 04 00 3A 45 24 66 B6 04 01 00 00 84 57 2C 84 82 E2 28 EB [05:01:40]CommunicateWithHost err = 0 [05:01:40]CheckOFDResponse [05:01:40]1017 (14) - 77093643461234 [05:01:40]1041 (16) - 0000000000874652 [05:01:40]1040 (4) - 76762 [05:01:40]1012 (4) - 20.04.2024 22:44 [05:01:40]1206 (1) - 0 [05:01:40]OFD Sender: Remove packet 76762 [05:01:40]ProducePacketName [05:01:40]name=ofd_packets/00076762 [05:01:40]NVStorageDeleteData [05:01:40]Write to MH i2c: 01 00 00 51 14 65 [05:01:40]Write i2c OK [05:01:40]MH_I2C_Read... [05:01:40]Read from MH i2c: 01 [05:01:40]MH_I2C_Read... [05:01:40]Read from MH i2c: 01 07 00 [05:01:40]MH_I2C_Read... [05:01:40]Read from MH i2c: 01 07 00 51 14 00 00 00 00 00 F2 0C 6A [05:01:40]RasterBufferAndPrint [05:01:40]line [05:01:40]line [05:01:40]line [05:01:40]line [05:01:40]line [05:01:40]written 0, free lines is 3322 [05:01:40]MH_Cut [05:01:40]Write to MH i2c: D1 01 00 58 14 01 3E [05:01:40]Write i2c OK [05:01:40]MH_I2C_Read... [05:01:40]Read from MH i2c: D1 [05:01:40]MH_I2C_Read... [05:01:40]Read from MH i2c: D1 01 00 [05:01:40]MH_I2C_Read... [05:01:40]Read from MH i2c: D1 01 00 58 14 00 3D [05:01:40]Write to MH i2c: 01 00 00 59 14 6D [05:01:40]Write i2c OK [05:01:40]MH_I2C_Read... [05:01:40]OFD Sender: No OFD packet to send [05:01:40]*** Cut start [05:01:40]*** Partial cut [05:01:40]*** CUTSNS_PIN = 1 [05:01:40]*** CUTSNS_PIN = 0 [05:01:41]*** Brake cut motor [05:01:41]Read from MH i2c: 01 [05:01:41]MH_I2C_Read... [05:01:41]*** Stop cut motor [05:01:41]*** Cut end [05:01:41]Read from MH i2c: 01 07 00 [05:01:41]MH_I2C_Read... [05:01:41]Read from MH i2c: 01 07 00 59 14 00 00 00 00 00 FF 0F 82 [05:01:41]process_action close_receipt done [05:01:41]requested_data is exist [05:01:41]produce_requested_data [05:01:41]requested_item fm.sn is exist - process it [05:01:41]wFMCommunicate request_size=4 [05:01:41]MH_SAM_APDU [05:01:41]CAPDU: 80 11 00 00 [05:01:41]Write to MH i2c: E2 08 00 5A 14 80 11 00 00 00 00 00 00 E8 [05:01:41]Write i2c OK [05:01:41]MH_I2C_Read... [05:01:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:01:41]Read from MH i2c: E2 [05:01:41]MH_I2C_Read... [05:01:41]Read from MH i2c: E2 17 00 [05:01:41]MH_I2C_Read... [05:01:41]Read from MH i2c: E2 17 00 5A 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 3B [05:01:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [05:01:41]wFMCommunicate OK [05:01:41]requested_item fd.num is exist - process it [05:01:41]SAM_PROTO_GetFieldsCounters [05:01:41]wFMCommunicate request_size=4 [05:01:41]MH_SAM_APDU [05:01:41]CAPDU: 80 13 00 00 [05:01:41]Write to MH i2c: E2 08 00 5B 14 80 13 00 00 00 00 00 00 EB [05:01:41]Write i2c OK [05:01:41]MH_I2C_Read... [05:01:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:01:41]Read from MH i2c: E2 [05:01:41]MH_I2C_Read... [05:01:41]Read from MH i2c: E2 62 00 [05:01:41]MH_I2C_Read... [05:01:41]Read from MH i2c: E2 62 00 5B 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DA 2B 01 00 0E 04 04 00 74 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 BD [05:01: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DA 2B 01 00 0E 04 04 00 74 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 [05:01:41]wFMCommunicate OK [05:01:41]SAM_PROTO_GetFieldsCounters done [05:01:41]requested_item shift.num is exist - process it [05:01:41]requested_item shift.opened is exist - process it [05:01:41]req_shift_opened [05:01:41]FM_GetShiftState [05:01:41]SAM_PROTO_GetShiftState [05:01:41]wFMCommunicate request_size=4 [05:01:41]MH_SAM_APDU [05:01:41]CAPDU: 80 13 01 00 [05:01:41]Write to MH i2c: E2 08 00 5C 14 80 13 01 00 00 00 00 00 ED [05:01:41]Write i2c OK [05:01:41]MH_I2C_Read... [05:01:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:01:41]Read from MH i2c: E2 [05:01:41]MH_I2C_Read... [05:01:41]Read from MH i2c: E2 0E 00 [05:01:41]MH_I2C_Read... [05:01:41]Read from MH i2c: E2 0E 00 5C 14 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 34 [05:01:41]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [05:01:41]wFMCommunicate OK [05:01:41]SAM_PROTO_GetShiftState done [05:01:41]FM_GetShiftState done [05:01:41]req_shift_opened done [05:01:41]requested_item shift.open_date is exist - process it [05:01:41]req_shift_open_date [05:01:41]req_shift_open_date done [05:01:41]produce_requested_data done [05:01:41]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76762,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [05:01:41]process_action_free close_receipt [05:01:41]json_value_free [05:01:41]json_value_free done [05:01:41]process_json_proto returns [05:01:41]Send response to host [05:01:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76762,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [05:01:41]free response buf [05:01:41]execute_script done [05:01:41]execute_script returns [05:01:41]free content buf [05:01:41]Sock 10.Close socket [05:01:41]Sock 10.Thread stoped [05:01:45]OFD Sender: No OFD packet to send [05:01:50]OFD Sender: No OFD packet to send [05:01:55]OFD Sender: No OFD packet to send [05:02:00]OFD Sender: No OFD packet to send [05:02:05]OFD Sender: No OFD packet to send [05:02:10]OFD Sender: No OFD packet to send [05:02:15]OFD Sender: No OFD packet to send [05:02:20]OFD Sender: No OFD packet to send [05:02:25]OFD Sender: No OFD packet to send [05:02:30]OFD Sender: No OFD packet to send [05:02:35]OFD Sender: No OFD packet to send [05:02:40]OFD Sender: No OFD packet to send [05:02:45]OFD Sender: No OFD packet to send [05:02:50]OFD Sender: No OFD packet to send [05:02:55]OFD Sender: No OFD packet to send [05:03:00]OFD Sender: No OFD packet to send [05:03:05]OFD Sender: No OFD packet to send [05:03:10]OFD Sender: No OFD packet to send [05:03:15]OFD Sender: No OFD packet to send [05:03:20]OFD Sender: No OFD packet to send [05:03:25]OFD Sender: No OFD packet to send [05:03:30]OFD Sender: No OFD packet to send [05:03:35]OFD Sender: No OFD packet to send [05:03:40]OFD Sender: No OFD packet to send [05:03:45]OFD Sender: No OFD packet to send [05:03:50]OFD Sender: No OFD packet to send [05:03:55]OFD Sender: No OFD packet to send [05:04:00]OFD Sender: No OFD packet to send [05:04:05]OFD Sender: No OFD packet to send [05:04:10]OFD Sender: No OFD packet to send [05:04:15]OFD Sender: No OFD packet to send [05:04:20]OFD Sender: No OFD packet to send [05:04:25]OFD Sender: No OFD packet to send [05:04:30]OFD Sender: No OFD packet to send [05:04:35]OFD Sender: No OFD packet to send [05:04:40]OFD Sender: No OFD packet to send [05:04:45]OFD Sender: No OFD packet to send [05:04:50]OFD Sender: No OFD packet to send [05:04:55]OFD Sender: No OFD packet to send [05:05:00]OFD Sender: No OFD packet to send [05:05:05]OFD Sender: No OFD packet to send [05:05:10]OFD Sender: No OFD packet to send [05:05:15]OFD Sender: No OFD packet to send [05:05:20]OFD Sender: No OFD packet to send [05:05:25]OFD Sender: No OFD packet to send [05:05: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:56]OFD Sender: No OFD packet to send [05:08:01]OFD Sender: No OFD packet to send [05:08:06]OFD Sender: No OFD packet to send [05:08:11]OFD Sender: No OFD packet to send [05:08:16]OFD Sender: No OFD packet to send [05:08:21]OFD Sender: No OFD packet to send [05:08:26]OFD Sender: No OFD packet to send [05:08:31]OFD Sender: No OFD packet to send [05:08:36]OFD Sender: No OFD packet to send [05:08:41]OFD Sender: No OFD packet to send [05:08:46]OFD Sender: No OFD packet to send [05:08:51]OFD Sender: No OFD packet to send [05:08:56]OFD Sender: No OFD packet to send [05:09:01]OFD Sender: No OFD packet to send [05:09:06]OFD Sender: No OFD packet to send [05:09:11]OFD Sender: No OFD packet to send [05:09:16]OFD Sender: No OFD packet to send [05:09:21]OFD Sender: No OFD packet to send [05:09:26]OFD Sender: No OFD packet to send [05:09:31]OFD Sender: No OFD packet to send [05:09:36]OFD Sender: No OFD packet to send [05:09:41]OFD Sender: No OFD packet to send [05:09:41]accept exits with 9 [05:09:41]New connection [05:09:41]New thread 3067481444 created [05:09:41]Thread 3067338084 joined [05:09:41]Waiting for new connection... [05:09:41] Sock 9.Parse request [05:09:41]Sock 9.Check first char [05:09:41]Sock 9.First char is OK [05:09:41]request: POST /json_proto HTTP/1.0 [05:09:41]Method: POST [05:09:41]URL: /json_proto [05:09:41]Method is POST - this is cgi request [05:09:41]url: /json_proto [05:09:41]query_string will be loaded in cgi processing [05:09:41]execute_cgi json_proto POST (null) [05:09:41]execute_cgi path=json_proto method=POST [05:09:41]POST find Content-Length [05:09:41]Host: 172.17.62.5:8080 [05:09:41]Content-Length: 681 [05:09:41]Content-Type: application/json [05:09:41] [05:09:41]POST finish read [05:09:41]Found Content-Length = 681 [05:09:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 15.300, "sum" : 500.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:09:41]execute_script... [05:09: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)191291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 15.300, "sum" : 500.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:09:41]POST & json_proto [05:09:41]process_json_proto [05:09:41]json parsed OK: [05:09:41]protocol is kg_v1.0 [05:09:41]action value=close_receipt [05:09:41]process_action close_receipt [05:09:41]cmd_close_receipt [05:09:41]MH_GetDate [05:09:41]Write to MH i2c: F0 00 00 5D 14 60 [05:09:41]Write i2c OK [05:09:41]MH_I2C_Read... [05:09:41]Read from MH i2c: F0 [05:09:41]MH_I2C_Read... [05:09:41]Read from MH i2c: F0 09 00 [05:09:41]MH_I2C_Read... [05:09:41]Read from MH i2c: F0 09 00 5D 14 00 97 9F 24 66 F4 E9 65 64 CF [05:09:41]GetLastDocTimeStamp 1713675700 [05:09:41]current date 1713676183 [05:09:41]FM_GetShiftState [05:09:41]SAM_PROTO_GetShiftState [05:09:41]wFMCommunicate request_size=4 [05:09:41]MH_SAM_APDU [05:09:41]CAPDU: 80 13 01 00 [05:09:41]Write to MH i2c: E2 08 00 5E 14 80 13 01 00 00 00 00 00 EF [05:09:41]Write i2c OK [05:09:41]MH_I2C_Read... [05:09:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:09:41]Read from MH i2c: E2 [05:09:41]MH_I2C_Read... [05:09:41]Read from MH i2c: E2 0E 00 [05:09:41]MH_I2C_Read... [05:09:41]Read from MH i2c: E2 0E 00 5E 14 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 36 [05:09:41]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [05:09:41]wFMCommunicate OK [05:09:41]SAM_PROTO_GetShiftState done [05:09:41]FM_GetShiftState done [05:09:41]opened in 1713658965 [05:09:41]opened+sec_in_day 1713745365 [05:09:41]quantity*price = 50031 [05:09:41]sum+1 = 50032 [05:09:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 19 21.04.2024 05:09 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76763 ФПД: 169172559854324 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T050943&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76763&fm=169172559854324&tin=02508201610067®Number=0000000000091573&sum=50000 [05:09:42]StoreToDocumentArchive [05:09:42]shift 372 fd 76763 [05:09:42]save to /storage/0372/doc_00076763 [05:09:42]save last doc name /storage/0372/doc_00076763 to /storage/kkm_last_doc_name [05:09:42]save OK [05:09:42]Clear old archive folders... [05:09:42]ProcessDocumentItem done err = 0, tmpTLVsize=250 [05:09:42]tlvbuf is 01873960 [05:09:42]SAM_PROTO_ClearQueue [05:09:42]wFMCommunicate request_size=4 [05:09:42]MH_SAM_APDU [05:09:42]CAPDU: 80 09 00 00 [05:09:42]Write to MH i2c: E2 08 00 6B 14 80 09 00 00 00 00 00 00 F1 [05:09:42]Write i2c OK [05:09:42]MH_I2C_Read... [05:09:42]Read from MH i2c: E2 [05:09:42]MH_I2C_Read... [05:09:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:09:42]Read from MH i2c: E2 03 00 [05:09:42]MH_I2C_Read... [05:09:42]Read from MH i2c: E2 03 00 6B 14 00 90 00 F3 [05:09:42]RAPDU: 90 00 [05:09:42]wFMCommunicate OK [05:09:42]SAM_PROTO_ClearQueue done [05:09:42]KKMCreateOFDPacket [05:09:42]OFDProtocolAddRootSTLVToBuf [05:09:42]FM_MakeSignedData [05:09:42]FM_MakeSignedData [05:09:42]SAM_PROTO_SignData [05:09:42]wFMCommunicate request_size=4 [05:09:42]MH_SAM_APDU [05:09:42]CAPDU: 80 0D 01 02 [05:09:42]Write to MH i2c: E2 08 00 6C 14 80 0D 01 02 00 00 00 00 F9 [05:09:42]Write i2c OK [05:09:42]MH_I2C_Read... [05:09:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:09:42]Read from MH i2c: E2 [05:09:42]MH_I2C_Read... [05:09:42]Read from MH i2c: E2 03 00 [05:09:42]MH_I2C_Read... [05:09:42]Read from MH i2c: E2 03 00 6C 14 00 90 00 F4 [05:09:42]RAPDU: 90 00 [05:09:42]wFMCommunicate OK [05:09:42]wFMCommunicate request_size=255 [05:09:42]MH_SAM_APDU [05:09:42]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 13 00 00 00 F4 03 04 00 97 9F 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DB 2B 01 00 35 04 06 00 99 DC [05:09:42]Write to MH i2c: E2 02 01 6D 14 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 13 00 00 00 F4 03 04 00 97 9F 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DB 2B 01 00 35 04 06 00 99 DC 00 00 28 [05:09:42]Write i2c OK [05:09:42]MH_I2C_Read... [05:09:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:09:42]Read from MH i2c: E2 [05:09:42]MH_I2C_Read... [05:09:42]Read from MH i2c: E2 03 00 [05:09:42]MH_I2C_Read... [05:09:42]Read from MH i2c: E2 03 00 6D 14 00 90 00 F5 [05:09:42]RAPDU: 90 00 [05:09:42]wFMCommunicate OK [05:09:42]wFMCommunicate request_size=9 [05:09:42]MH_SAM_APDU [05:09:42]CAPDU: 80 0D 02 02 04 8E 55 FA F4 [05:09:42]Write to MH i2c: E2 0C 00 6E 14 80 0D 02 02 04 00 8E 55 FA F4 00 00 D5 [05:09:42]Write i2c OK [05:09:42]MH_I2C_Read... [05:09:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:09:42]Read from MH i2c: E2 [05:09:42]MH_I2C_Read... [05:09:42]Read from MH i2c: E2 03 00 [05:09:42]MH_I2C_Read... [05:09:42]Read from MH i2c: E2 03 00 6E 14 00 90 00 F6 [05:09:42]RAPDU: 90 00 [05:09:42]wFMCommunicate OK [05:09:42]wFMCommunicate request_size=4 [05:09:42]MH_SAM_APDU [05:09:42]CAPDU: 80 0D 03 02 [05:09:42]Write to MH i2c: E2 08 00 6F 14 80 0D 03 02 00 00 00 00 FE [05:09:42]Write i2c OK [05:09:42]MH_I2C_Read... [05:09:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:09:42]Read from MH i2c: E2 [05:09:42]MH_I2C_Read... [05:09:42]Read from MH i2c: E2 0B 00 [05:09:42]MH_I2C_Read... [05:09:42]Read from MH i2c: E2 0B 00 6F 14 00 E9 9A 9B 6C 4E EA CB C3 90 00 4F [05:09:42]RAPDU: E9 9A 9B 6C 4E EA CB C3 90 00 [05:09:42]wFMCommunicate OK [05:09:42]SAM_PROTO_SignData done [05:09:42]FM_MakeSignedData done [05:09:42]CreateOFDProtocolMessage [05:09:42]wFMCommunicate request_size=4 [05:09:42]MH_SAM_APDU [05:09:42]CAPDU: 80 11 00 00 [05:09:42]Write to MH i2c: E2 08 00 70 14 80 11 00 00 00 00 00 00 FE [05:09:42]Write i2c OK [05:09:42]MH_I2C_Read... [05:09:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:09:42]Read from MH i2c: E2 [05:09:42]MH_I2C_Read... [05:09:42]Read from MH i2c: E2 17 00 [05:09:42]MH_I2C_Read... [05:09:42]Read from MH i2c: E2 17 00 70 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 51 [05:09:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [05:09:42]wFMCommunicate OK [05:09:42]CreateOFDProtocolMessage done [05:09:42]OFDSenderStorePacket 76763 [05:09:42]StoreOFDPacket docnum=76763 [05:09:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 07 DD 06 01 32 74 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 13 00 00 00 F4 03 04 00 97 9F 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DB 2B 01 00 35 04 06 00 99 DC 8E 55 FA F4 E9 9A 9B 6C 4E EA CB C3 [05:09:42]CheckFolder [05:09:42]dirname=/storage/ofd_packets [05:09:42]CheckFolder done [05:09:42]ProducePacketName [05:09:42]name=ofd_packets/00076763 [05:09:42]NVStorageSaveData ofd_packets/00076763 [05:09:42]File name is /storage/ofd_packets/00076763 [05:09:42]Write 300 bytes [05:09:42]NVStorageSaveData done [05:09:42]OFDSenderStorePacket done [05:09:42]KKMCreateOFDPacket done [05:09:42]NVStorageSaveData kkm_last_timestamp [05:09:42]File name is /storage/kkm_last_timestamp [05:09:42]Write 4 bytes [05:09:42]NVStorageSaveData done [05:09:42]ExternCall_PrintAddStr [05:09:42]wPrintStart [05:09:42]Write to MH i2c: 01 00 00 71 14 85 [05:09:42]Write i2c OK [05:09:42]MH_I2C_Read... [05:09:42]Read from MH i2c: 01 [05:09:42]MH_I2C_Read... [05:09:42]Read from MH i2c: 01 07 00 [05:09:42]MH_I2C_Read... [05:09:42]Read from MH i2c: 01 07 00 71 14 00 00 00 00 00 FF 0F 9A [05:09:42]RasterBufferAndPrint [05:09:42]line Счет N : (1)191291 [05:09:42]line ИНН: 02508201610067 [05:09:42]line Контрольно-Кассовый Чек [05:09:42]line ПРОДАЖА [05:09:42]line ТРК (МРК, ГНК) : 71 [05:09:42]line Товар: 2711190000 [05:09:42]line ГАЗ-К-5 [05:09:42]line 15.300 * 32.70 [05:09:42]line = 500.31 [05:09:42]line НДС 12% НСП 1% [05:09:42]line > о реализуемом товаре [05:09:42]line ОКРУГЛЕНИЕ: -0.31 [05:09:42]line ИТОГО: 500.00 [05:09:42]line Внесено: 500.00 [05:09:42]line СДАЧА: 0.00 [05:09:42]line НСП 1% : 4.43 [05:09:42]line НДС 12% : 53.13 [05:09:42]line Наличными: 500.00 [05:09:42]line Безнал.: 0.00 [05:09:42]line Место: АЗС № 106 "Партнер Нефть" [05:09:42]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [05:09:42]line СНО: Общий режим [05:09:42]line Чек 19 21.04.2024 05:09 [05:09:42]line Смена: 372 ФФД: 1.0 [05:09:42]line ЗНМ: 0300000141 [05:09:42]line РНМ: 0000000000091573 [05:09:42]line Версия ККМ: 001 [05:09:42]line ФМ: 0000000000874652 [05:09:42]line ФД: 76763 [05:09:42]line ФПД: 169172559854324 [05:09:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T050943&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76763&fm=169172559854324&tin=02508201610067®Number=0000000000091573&sum=50000 [05:09:42]written 0, free lines is 4095 [05:09:42]OFD Sender: Processing packet 76763 [packets to send 129, broken 128] [05:09:42]ProducePacketName [05:09:42]name=ofd_packets/00076763 [05:09:42]OFD Sender: To server: pG, [05:09:42]CommunicateWithHost lk.salyk.kg:30040 [05:09:42]ConnectInit lk.salyk.kg [05:09:43]Connected sock=10 [05:09:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 07 DD 06 01 32 74 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 13 00 00 00 F4 03 04 00 97 9F 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DB 2B 01 00 35 04 06 00 99 DC 8E 55 FA F4 E9 9A 9B 6C 4E EA CB C3 [05:09:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 A7 C2 47 00 71 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 34 36 35 32 10 04 04 00 DB 2B 01 00 F4 03 04 00 1E 47 24 66 B6 04 01 00 00 17 3C 6C 9F 51 9C 8A 00 [05:09:43]CommunicateWithHost err = 0 [05:09:43]CheckOFDResponse [05:09:43]1017 (14) - 77093643461234 [05:09:43]1041 (16) - 0000000000874652 [05:09:43]1040 (4) - 76763 [05:09:43]1012 (4) - 20.04.2024 22:52 [05:09:43]1206 (1) - 0 [05:09:43]OFD Sender: Remove packet 76763 [05:09:43]ProducePacketName [05:09:43]name=ofd_packets/00076763 [05:09:43]NVStorageDeleteData [05:09:43]Write to MH i2c: 01 00 00 9B 14 AF [05:09:43]Write i2c OK [05:09:43]MH_I2C_Read... [05:09:43]Read from MH i2c: 01 [05:09:43]MH_I2C_Read... [05:09:43]Read from MH i2c: 01 07 00 [05:09:43]MH_I2C_Read... [05:09:43]Read from MH i2c: 01 07 00 9B 14 00 00 00 00 00 FA 0C BC [05:09:43]RasterBufferAndPrint [05:09:43]line [05:09:43]line [05:09:43]line [05:09:43]line [05:09:43]line [05:09:43]written 0, free lines is 3328 [05:09:43]MH_Cut [05:09:43]Write to MH i2c: D1 01 00 A2 14 01 88 [05:09:43]Write i2c OK [05:09:43]MH_I2C_Read... [05:09:43]Read from MH i2c: D1 [05:09:43]MH_I2C_Read... [05:09:43]Read from MH i2c: D1 01 00 [05:09:43]MH_I2C_Read... [05:09:43]Read from MH i2c: D1 01 00 A2 14 00 87 [05:09:43]Write to MH i2c: 01 00 00 A3 14 B7 [05:09:43]Write i2c OK [05:09:43]MH_I2C_Read... [05:09:43]OFD Sender: No OFD packet to send [05:09:44]*** Cut start [05:09:44]*** Partial cut [05:09:44]*** CUTSNS_PIN = 1 [05:09:44]*** CUTSNS_PIN = 0 [05:09:44]*** Brake cut motor [05:09:44]Read from MH i2c: 01 [05:09:44]MH_I2C_Read... [05:09:44]*** Stop cut motor [05:09:44]*** Cut end [05:09:44]Read from MH i2c: 01 07 00 [05:09:44]MH_I2C_Read... [05:09:44]Read from MH i2c: 01 07 00 A3 14 00 00 00 00 00 FF 0F CC [05:09:44]process_action close_receipt done [05:09:44]requested_data is exist [05:09:44]produce_requested_data [05:09:44]requested_item fm.sn is exist - process it [05:09:44]wFMCommunicate request_size=4 [05:09:44]MH_SAM_APDU [05:09:44]CAPDU: 80 11 00 00 [05:09:44]Write to MH i2c: E2 08 00 A4 14 80 11 00 00 00 00 00 00 32 [05:09:44]Write i2c OK [05:09:44]MH_I2C_Read... [05:09:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:09:44]Read from MH i2c: E2 [05:09:44]MH_I2C_Read... [05:09:44]Read from MH i2c: E2 17 00 [05:09:44]MH_I2C_Read... [05:09:44]Read from MH i2c: E2 17 00 A4 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 85 [05:09:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [05:09:44]wFMCommunicate OK [05:09:44]requested_item fd.num is exist - process it [05:09:44]SAM_PROTO_GetFieldsCounters [05:09:44]wFMCommunicate request_size=4 [05:09:44]MH_SAM_APDU [05:09:44]CAPDU: 80 13 00 00 [05:09:44]Write to MH i2c: E2 08 00 A5 14 80 13 00 00 00 00 00 00 35 [05:09:44]Write i2c OK [05:09:44]MH_I2C_Read... [05:09:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:09:44]Read from MH i2c: E2 [05:09:44]MH_I2C_Read... [05:09:44]Read from MH i2c: E2 62 00 [05:09:44]MH_I2C_Read... [05:09:44]Read from MH i2c: E2 62 00 A5 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DB 2B 01 00 0E 04 04 00 74 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 0B [05:09: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DB 2B 01 00 0E 04 04 00 74 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 [05:09:44]wFMCommunicate OK [05:09:44]SAM_PROTO_GetFieldsCounters done [05:09:44]requested_item shift.num is exist - process it [05:09:44]requested_item shift.opened is exist - process it [05:09:44]req_shift_opened [05:09:44]FM_GetShiftState [05:09:44]SAM_PROTO_GetShiftState [05:09:44]wFMCommunicate request_size=4 [05:09:44]MH_SAM_APDU [05:09:44]CAPDU: 80 13 01 00 [05:09:44]Write to MH i2c: E2 08 00 A6 14 80 13 01 00 00 00 00 00 37 [05:09:44]Write i2c OK [05:09:44]MH_I2C_Read... [05:09:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:09:44]Read from MH i2c: E2 [05:09:44]MH_I2C_Read... [05:09:44]Read from MH i2c: E2 0E 00 [05:09:44]MH_I2C_Read... [05:09:44]Read from MH i2c: E2 0E 00 A6 14 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 7E [05:09:44]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [05:09:44]wFMCommunicate OK [05:09:44]SAM_PROTO_GetShiftState done [05:09:44]FM_GetShiftState done [05:09:44]req_shift_opened done [05:09:44]requested_item shift.open_date is exist - process it [05:09:44]req_shift_open_date [05:09:44]req_shift_open_date done [05:09:44]produce_requested_data done [05:09:44]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76763,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [05:09:44]process_action_free close_receipt [05:09:44]json_value_free [05:09:44]json_value_free done [05:09:44]process_json_proto returns [05:09:44]Send response to host [05:09:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76763,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [05:09:44]free response buf [05:09:44]execute_script done [05:09:44]execute_script returns [05:09:44]free content buf [05:09:44]Sock 9.Close socket [05:09:44]Sock 9.Thread stoped [05:09:48]OFD Sender: No OFD packet to send [05:09:53]OFD Sender: No OFD packet to send [05:09:58]OFD Sender: No OFD packet to send [05:10:03]OFD Sender: No OFD packet to send [05:10:08]OFD Sender: No OFD packet to send [05:10:13]OFD Sender: No OFD packet to send [05:10:18]OFD Sender: No OFD packet to send [05:10:23]OFD Sender: No OFD packet to send [05:10:27]accept exits with 7 [05:10:27]New connection [05:10:27]New thread 3067338084 created [05:10:27]Thread 3067481444 joined [05:10:27]Waiting for new connection... [05:10:27] Sock 7.Parse request [05:10:27]Sock 7.Check first char [05:10:27]Sock 7.First char is OK [05:10:27]request: POST /json_proto HTTP/1.0 [05:10:27]Method: POST [05:10:27]URL: /json_proto [05:10:27]Method is POST - this is cgi request [05:10:27]url: /json_proto [05:10:27]query_string will be loaded in cgi processing [05:10:27]execute_cgi json_proto POST (null) [05:10:27]execute_cgi path=json_proto method=POST [05:10:27]POST find Content-Length [05:10:27]Host: 172.17.62.5:8080 [05:10:27]Content-Length: 805 [05:10:27]Content-Type: application/json [05:10:27] [05:10:27]POST finish read [05:10:27]Found Content-Length = 805 [05:10:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 8.700, "sum" : 560.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 560.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:10:27]execute_script... [05:10:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 8.700, "sum" : 560.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 560.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:10:27]POST & json_proto [05:10:27]process_json_proto [05:10:27]json parsed OK: [05:10:27]protocol is kg_v1.0 [05:10:27]action value=close_receipt [05:10:27]process_action close_receipt [05:10:27]cmd_close_receipt [05:10:27]MH_GetDate [05:10:27]Write to MH i2c: F0 00 00 A7 14 AA [05:10:27]Write i2c OK [05:10:27]MH_I2C_Read... [05:10:27]Read from MH i2c: F0 [05:10:27]MH_I2C_Read... [05:10:27]Read from MH i2c: F0 09 00 [05:10:27]MH_I2C_Read... [05:10:27]Read from MH i2c: F0 09 00 A7 14 00 C5 9F 24 66 F4 E9 65 64 47 [05:10:27]GetLastDocTimeStamp 1713676183 [05:10:27]current date 1713676229 [05:10:27]FM_GetShiftState [05:10:27]SAM_PROTO_GetShiftState [05:10:27]wFMCommunicate request_size=4 [05:10:27]MH_SAM_APDU [05:10:27]CAPDU: 80 13 01 00 [05:10:27]Write to MH i2c: E2 08 00 A8 14 80 13 01 00 00 00 00 00 39 [05:10:27]Write i2c OK [05:10:27]MH_I2C_Read... [05:10:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:10:27]Read from MH i2c: E2 [05:10:27]MH_I2C_Read... [05:10:27]Read from MH i2c: E2 0E 00 [05:10:27]MH_I2C_Read... [05:10:27]Read from MH i2c: E2 0E 00 A8 14 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 80 [05:10:27]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [05:10:27]wFMCommunicate OK [05:10:27]SAM_PROTO_GetShiftState done [05:10:27]FM_GetShiftState done [05:10:27]opened in 1713658965 [05:10:27]opened+sec_in_day 1713745365 [05:10:27]quantity*price = 56028 [05:10:27]sum+1 = 56029 [05:10:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 560.28 НСП 1% : 4.96 НДС 12% : 59.50 Наличными: 0.00 Безнал.: 560.28 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 20 21.04.2024 05:10 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 76764 ФПД: 149817178639340 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T051029&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76764&fm=149817178639340&tin=02508201610067®Number=0000000000091573&sum=56028 [05:10:28]StoreToDocumentArchive [05:10:28]shift 372 fd 76764 [05:10:28]save to /storage/0372/doc_00076764 [05:10:28]save last doc name /storage/0372/doc_00076764 to /storage/kkm_last_doc_name [05:10:28]save OK [05:10:28]Clear old archive folders... [05:10:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:10:28]tlvbuf is 018AB7E0 [05:10:28]SAM_PROTO_ClearQueue [05:10:28]wFMCommunicate request_size=4 [05:10:28]MH_SAM_APDU [05:10:28]CAPDU: 80 09 00 00 [05:10:28]Write to MH i2c: E2 08 00 B5 14 80 09 00 00 00 00 00 00 3B [05:10:28]Write i2c OK [05:10:28]MH_I2C_Read... [05:10:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:10:28]Read from MH i2c: E2 [05:10:28]MH_I2C_Read... [05:10:28]Read from MH i2c: E2 03 00 [05:10:28]MH_I2C_Read... [05:10:28]Read from MH i2c: E2 03 00 B5 14 00 90 00 3D [05:10:28]RAPDU: 90 00 [05:10:28]wFMCommunicate OK [05:10:28]SAM_PROTO_ClearQueue done [05:10:28]KKMCreateOFDPacket [05:10:28]OFDProtocolAddRootSTLVToBuf [05:10:28]FM_MakeSignedData [05:10:28]FM_MakeSignedData [05:10:28]SAM_PROTO_SignData [05:10:28]wFMCommunicate request_size=4 [05:10:28]MH_SAM_APDU [05:10:28]CAPDU: 80 0D 01 02 [05:10:28]Write to MH i2c: E2 08 00 B6 14 80 0D 01 02 00 00 00 00 43 [05:10:28]Write i2c OK [05:10:28]MH_I2C_Read... [05:10:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:10:28]Read from MH i2c: E2 [05:10:28]MH_I2C_Read... [05:10:28]Read from MH i2c: E2 03 00 [05:10:28]MH_I2C_Read... [05:10:28]Read from MH i2c: E2 03 00 B6 14 00 90 00 3E [05:10:28]RAPDU: 90 00 [05:10:28]wFMCommunicate OK [05:10:28]wFMCommunicate request_size=255 [05:10:28]MH_SAM_APDU [05:10:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 21 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 DC DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC DA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 C5 9F 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DC 2B 01 00 35 04 06 00 88 [05:10:28]Write to MH i2c: E2 02 01 B7 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 FC 21 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 DC DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC DA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 C5 9F 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DC 2B 01 00 35 04 06 00 88 00 00 1A [05:10:28]Write i2c OK [05:10:28]MH_I2C_Read... [05:10:28]Read from MH i2c: E2 [05:10:28]MH_I2C_Read... [05:10:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:10:28]Read from MH i2c: E2 03 00 [05:10:28]MH_I2C_Read... [05:10:28]Read from MH i2c: E2 03 00 B7 14 00 90 00 3F [05:10:28]RAPDU: 90 00 [05:10:28]wFMCommunicate OK [05:10:28]wFMCommunicate request_size=10 [05:10:28]MH_SAM_APDU [05:10:28]CAPDU: 80 0D 02 02 05 42 07 B6 CB EC [05:10:28]Write to MH i2c: E2 0D 00 B8 14 80 0D 02 02 05 00 42 07 B6 CB EC 00 00 06 [05:10:28]Write i2c OK [05:10:28]MH_I2C_Read... [05:10:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:10:28]Read from MH i2c: E2 [05:10:28]MH_I2C_Read... [05:10:28]Read from MH i2c: E2 03 00 [05:10:28]MH_I2C_Read... [05:10:28]Read from MH i2c: E2 03 00 B8 14 00 90 00 40 [05:10:28]RAPDU: 90 00 [05:10:28]wFMCommunicate OK [05:10:28]wFMCommunicate request_size=4 [05:10:28]MH_SAM_APDU [05:10:28]CAPDU: 80 0D 03 02 [05:10:28]Write to MH i2c: E2 08 00 B9 14 80 0D 03 02 00 00 00 00 48 [05:10:28]Write i2c OK [05:10:28]MH_I2C_Read... [05:10:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:10:28]Read from MH i2c: E2 [05:10:28]MH_I2C_Read... [05:10:28]Read from MH i2c: E2 0B 00 [05:10:28]MH_I2C_Read... [05:10:28]Read from MH i2c: E2 0B 00 B9 14 00 E8 D6 BC 64 17 AC 00 6A 90 00 54 [05:10:28]RAPDU: E8 D6 BC 64 17 AC 00 6A 90 00 [05:10:28]wFMCommunicate OK [05:10:28]SAM_PROTO_SignData done [05:10:28]FM_MakeSignedData done [05:10:28]CreateOFDProtocolMessage [05:10:28]wFMCommunicate request_size=4 [05:10:28]MH_SAM_APDU [05:10:28]CAPDU: 80 11 00 00 [05:10:28]Write to MH i2c: E2 08 00 BA 14 80 11 00 00 00 00 00 00 48 [05:10:28]Write i2c OK [05:10:28]MH_I2C_Read... [05:10:28]OFD Sender: No OFD packet to send [05:10:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:10:28]Read from MH i2c: E2 [05:10:28]MH_I2C_Read... [05:10:28]Read from MH i2c: E2 17 00 [05:10:28]MH_I2C_Read... [05:10:28]Read from MH i2c: E2 17 00 BA 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 9B [05:10:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [05:10:28]wFMCommunicate OK [05:10:28]CreateOFDProtocolMessage done [05:10:28]OFDSenderStorePacket 76764 [05:10:28]StoreOFDPacket docnum=76764 [05:10:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 74 DD 07 01 CA 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 FC 21 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 DC DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC DA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 C5 9F 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DC 2B 01 00 35 04 06 00 88 42 07 B6 CB EC E8 D6 BC 64 17 AC 00 6A [05:10:28]CheckFolder [05:10:28]dirname=/storage/ofd_packets [05:10:28]CheckFolder done [05:10:28]ProducePacketName [05:10:28]name=ofd_packets/00076764 [05:10:28]NVStorageSaveData ofd_packets/00076764 [05:10:28]File name is /storage/ofd_packets/00076764 [05:10:28]Write 301 bytes [05:10:28]NVStorageSaveData done [05:10:28]OFDSenderStorePacket done [05:10:28]KKMCreateOFDPacket done [05:10:28]NVStorageSaveData kkm_last_timestamp [05:10:28]File name is /storage/kkm_last_timestamp [05:10:28]Write 4 bytes [05:10:28]NVStorageSaveData done [05:10:28]ExternCall_PrintAddStr [05:10:28]wPrintStart [05:10:28]Write to MH i2c: 01 00 00 BB 14 CF [05:10:28]Write i2c OK [05:10:28]MH_I2C_Read... [05:10:28]Read from MH i2c: 01 [05:10:28]MH_I2C_Read... [05:10:28]Read from MH i2c: 01 07 00 [05:10:28]MH_I2C_Read... [05:10:28]Read from MH i2c: 01 07 00 BB 14 00 00 00 00 00 FF 0F E4 [05:10:28]RasterBufferAndPrint [05:10:28]line Счет N : (1)191292 [05:10:28]line ИНН: 02508201610067 [05:10:28]line Контрольно-Кассовый Чек [05:10:28]line ПРОДАЖА [05:10:28]line ТРК (МРК, ГНК) : 12 [05:10:28]line Товар: 2710124130 [05:10:28]line Аи-92-К-5 [05:10:28]line 8.700 * 64.40 [05:10:28]line = 560.28 [05:10:28]line НДС 12% НСП 1% [05:10:28]line > о реализуемом товаре [05:10:28]line ИТОГО: 560.28 [05:10:28]line НСП 1% : 4.96 [05:10:28]line НДС 12% : 59.50 [05:10:28]line Наличными: 0.00 [05:10:28]line Безнал.: 560.28 [05:10:28]line Место: АЗС № 106 "Партнер Нефть" [05:10:28]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [05:10:28]line СНО: Общий режим [05:10:28]line Чек 20 21.04.2024 05:10 [05:10:28]line Смена: 372 ФФД: 1.0 [05:10:28]line ЗНМ: 0300000141 [05:10:28]line РНМ: 0000000000091573 [05:10:28]line Версия ККМ: 001 [05:10:28]line Платежная система: О! деньги [05:10:28]line ФМ: 0000000000874652 [05:10:28]line ФД: 76764 [05:10:28]line ФПД: 149817178639340 [05:10:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T051029&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76764&fm=149817178639340&tin=02508201610067®Number=0000000000091573&sum=56028 [05:10:29]OFD Sender: Processing packet 76764 [packets to send 129, broken 128] [05:10:29]ProducePacketName [05:10:29]name=ofd_packets/00076764 [05:10:29]OFD Sender: To server: pG, [05:10:29]CommunicateWithHost lk.salyk.kg:30040 [05:10:29]ConnectInit lk.salyk.kg [05:10:29]written 0, free lines is 4095 [05:10:29]Write to MH i2c: 01 00 00 E4 14 F8 [05:10:29]Write i2c OK [05:10:29]MH_I2C_Read... [05:10:29]Read from MH i2c: 01 [05:10:29]MH_I2C_Read... [05:10:29]Read from MH i2c: 01 07 00 [05:10:29]MH_I2C_Read... [05:10:29]Read from MH i2c: 01 07 00 E4 14 00 00 00 00 00 F4 0C FF [05:10:29]RasterBufferAndPrint [05:10:29]line [05:10:29]line [05:10:29]line [05:10:29]line [05:10:29]line [05:10:29]written 0, free lines is 3321 [05:10:29]MH_Cut [05:10:29]Write to MH i2c: D1 01 00 EB 14 01 D1 [05:10:29]Write i2c OK [05:10:29]MH_I2C_Read... [05:10:29]Read from MH i2c: D1 [05:10:29]MH_I2C_Read... [05:10:29]Read from MH i2c: D1 01 00 [05:10:29]MH_I2C_Read... [05:10:29]Read from MH i2c: D1 01 00 EB 14 00 D0 [05:10:29]Write to MH i2c: 01 00 00 EC 14 00 [05:10:29]Write i2c OK [05:10:29]MH_I2C_Read... [05:10:30]*** Cut start [05:10:30]*** Partial cut [05:10:30]*** CUTSNS_PIN = 1 [05:10:30]*** CUTSNS_PIN = 0 [05:10:30]*** Brake cut motor [05:10:30]Connected sock=11 [05:10:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 74 DD 07 01 CA 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 FC 21 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 DC DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC DA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 C5 9F 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DC 2B 01 00 35 04 06 00 88 42 07 B6 CB EC E8 D6 BC 64 17 AC 00 6A [05:10:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 8F 80 47 00 94 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 34 36 35 32 10 04 04 00 DC 2B 01 00 F4 03 04 00 4D 47 24 66 B6 04 01 00 00 90 C4 19 47 61 22 2E B3 [05:10:30]CommunicateWithHost err = 0 [05:10:30]CheckOFDResponse [05:10:30]1017 (14) - 77093643461234 [05:10:30]1041 (16) - 0000000000874652 [05:10:30]1040 (4) - 76764 [05:10:30]1012 (4) - 20.04.2024 22:53 [05:10:30]1206 (1) - 0 [05:10:30]OFD Sender: Remove packet 76764 [05:10:30]ProducePacketName [05:10:30]name=ofd_packets/00076764 [05:10:30]NVStorageDeleteData [05:10:31]Read from MH i2c: 01 [05:10:31]MH_I2C_Read... [05:10:31]*** Stop cut motor [05:10:31]*** Cut end [05:10:31]Read from MH i2c: 01 07 00 [05:10:31]MH_I2C_Read... [05:10:31]Read from MH i2c: 01 07 00 EC 14 00 00 00 00 00 FF 0F 15 [05:10:31]process_action close_receipt done [05:10:31]requested_data is exist [05:10:31]produce_requested_data [05:10:31]requested_item fm.sn is exist - process it [05:10:31]wFMCommunicate request_size=4 [05:10:31]MH_SAM_APDU [05:10:31]CAPDU: 80 11 00 00 [05:10:31]Write to MH i2c: E2 08 00 ED 14 80 11 00 00 00 00 00 00 7B [05:10:31]Write i2c OK [05:10:31]MH_I2C_Read... [05:10:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:10:31]Read from MH i2c: E2 [05:10:31]MH_I2C_Read... [05:10:31]Read from MH i2c: E2 17 00 [05:10:31]MH_I2C_Read... [05:10:31]Read from MH i2c: E2 17 00 ED 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 CE [05:10:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [05:10:31]wFMCommunicate OK [05:10:31]requested_item fd.num is exist - process it [05:10:31]SAM_PROTO_GetFieldsCounters [05:10:31]wFMCommunicate request_size=4 [05:10:31]MH_SAM_APDU [05:10:31]CAPDU: 80 13 00 00 [05:10:31]Write to MH i2c: E2 08 00 EE 14 80 13 00 00 00 00 00 00 7E [05:10:31]Write i2c OK [05:10:31]MH_I2C_Read... [05:10:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:10:31]Read from MH i2c: E2 [05:10:31]MH_I2C_Read... [05:10:31]Read from MH i2c: E2 62 00 [05:10:31]MH_I2C_Read... [05:10:31]Read from MH i2c: E2 62 00 EE 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DC 2B 01 00 0E 04 04 00 74 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 58 [05:10:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DC 2B 01 00 0E 04 04 00 74 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 [05:10:31]wFMCommunicate OK [05:10:31]SAM_PROTO_GetFieldsCounters done [05:10:31]requested_item shift.num is exist - process it [05:10:31]requested_item shift.opened is exist - process it [05:10:31]req_shift_opened [05:10:31]FM_GetShiftState [05:10:31]SAM_PROTO_GetShiftState [05:10:31]wFMCommunicate request_size=4 [05:10:31]MH_SAM_APDU [05:10:31]CAPDU: 80 13 01 00 [05:10:31]Write to MH i2c: E2 08 00 EF 14 80 13 01 00 00 00 00 00 80 [05:10:31]Write i2c OK [05:10:31]MH_I2C_Read... [05:10:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:10:31]Read from MH i2c: E2 [05:10:31]MH_I2C_Read... [05:10:31]Read from MH i2c: E2 0E 00 [05:10:31]MH_I2C_Read... [05:10:31]Read from MH i2c: E2 0E 00 EF 14 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 C7 [05:10:31]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [05:10:31]wFMCommunicate OK [05:10:31]SAM_PROTO_GetShiftState done [05:10:31]FM_GetShiftState done [05:10:31]req_shift_opened done [05:10:31]requested_item shift.open_date is exist - process it [05:10:31]req_shift_open_date [05:10:31]req_shift_open_date done [05:10:31]produce_requested_data done [05:10:31]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76764,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [05:10:31]process_action_free close_receipt [05:10:31]json_value_free [05:10:31]json_value_free done [05:10:31]process_json_proto returns [05:10:31]Send response to host [05:10:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76764,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [05:10:31]free response buf [05:10:31]execute_script done [05:10:31]execute_script returns [05:10:31]free content buf [05:10:31]Sock 7.Close socket [05:10:31]Sock 7.Thread stoped [05:10:31]OFD Sender: No OFD packet to send [05:10:36]OFD Sender: No OFD packet to send [05:10:41]OFD Sender: No OFD packet to send [05:10:46]OFD Sender: No OFD packet to send [05:10:51]OFD Sender: No OFD packet to send [05:10:56]OFD Sender: No OFD packet to send [05:11:01]OFD Sender: No OFD packet to send [05:11:06]OFD Sender: No OFD packet to send [05:11:11]OFD Sender: No OFD packet to send [05:11:16]OFD Sender: No OFD packet to send [05:11:21]OFD Sender: No OFD packet to send [05:11:26]OFD Sender: No OFD packet to send [05:11:31]OFD Sender: No OFD packet to send [05:11:36]OFD Sender: No OFD packet to send [05:11:41]OFD Sender: No OFD packet to send [05:11:46]OFD Sender: No OFD packet to send [05:11:51]OFD Sender: No OFD packet to send [05:11:56]OFD Sender: No OFD packet to send [05:12:01]OFD Sender: No OFD packet to send [05:12:06]OFD Sender: No OFD packet to send [05:12:11]OFD Sender: No OFD packet to send [05:12:16]OFD Sender: No OFD packet to send [05:12:21]OFD Sender: No OFD packet to send [05:12:26]OFD Sender: No OFD packet to send [05:12:31]OFD Sender: No OFD packet to send [05:12:36]OFD Sender: No OFD packet to send [05:12:41]OFD Sender: No OFD packet to send [05:12:46]OFD Sender: No OFD packet to send [05:12:51]OFD Sender: No OFD packet to send [05:12:56]OFD Sender: No OFD packet to send [05:13:01]OFD Sender: No OFD packet to send [05:13:06]OFD Sender: No OFD packet to send [05:13:11]OFD Sender: No OFD packet to send [05:13:16]OFD Sender: No OFD packet to send [05:13:21]OFD Sender: No OFD packet to send [05:13:26]OFD Sender: No OFD packet to send [05:13:31]OFD Sender: No OFD packet to send [05:13:36]OFD Sender: No OFD packet to send [05:13:41]OFD Sender: No OFD packet to send [05:13:46]OFD Sender: No OFD packet to send [05:13:51]OFD Sender: No OFD packet to send [05:13:56]OFD Sender: No OFD packet to send [05:14:01]OFD Sender: No OFD packet to send [05:14:06]OFD Sender: No OFD packet to send [05:14:11]OFD Sender: No OFD packet to send [05:14:16]OFD Sender: No OFD packet to send [05:14:21]OFD Sender: No OFD packet to send [05:14:26]OFD Sender: No OFD packet to send [05:14:31]OFD Sender: No OFD packet to send [05:14:36]OFD Sender: No OFD packet to send [05:14:41]OFD Sender: No OFD packet to send [05:14:46]OFD Sender: No OFD packet to send [05:14:51]OFD Sender: No OFD packet to send [05:14:56]OFD Sender: No OFD packet to send [05:15:01]OFD Sender: No OFD packet to send [05:15:06]OFD Sender: No OFD packet to send [05:15:11]OFD Sender: No OFD packet to send [05:15:16]OFD Sender: No OFD packet to send [05:15:21]OFD Sender: No OFD packet to send [05:15:26]OFD Sender: No OFD packet to send [05:15:31]OFD Sender: No OFD packet to send [05:15:36]OFD Sender: No OFD packet to send [05:15:41]OFD Sender: No OFD packet to send [05:15:46]OFD Sender: No OFD packet to send [05:15:51]OFD Sender: No OFD packet to send [05:15:56]OFD Sender: No OFD packet to send [05:16:01]OFD Sender: No OFD packet to send [05:16:06]OFD Sender: No OFD packet to send [05:16:11]OFD Sender: No OFD packet to send [05:16:16]OFD Sender: No OFD packet to send [05:16:21]OFD Sender: No OFD packet to send [05:16:26]OFD Sender: No OFD packet to send [05:16:31]OFD Sender: No OFD packet to send [05:16:36]OFD Sender: No OFD packet to send [05:16:41]OFD Sender: No OFD packet to send [05:16:46]OFD Sender: No OFD packet to send [05:16:51]OFD Sender: No OFD packet to send [05:16:56]OFD Sender: No OFD packet to send [05:17:01]OFD Sender: No OFD packet to send [05:17:06]OFD Sender: No OFD packet to send [05:17:11]OFD Sender: No OFD packet to send [05:17:16]OFD Sender: No OFD packet to send [05:17:21]OFD Sender: No OFD packet to send [05:17:26]OFD Sender: No OFD packet to send [05:17:31]OFD Sender: No OFD packet to send [05:17:36]OFD Sender: No OFD packet to send [05:17:41]OFD Sender: No OFD packet to send [05:17:46]OFD Sender: No OFD packet to send [05:17:52]OFD Sender: No OFD packet to send [05:17:57]OFD Sender: No OFD packet to send [05:18:02]OFD Sender: No OFD packet to send [05:18:07]OFD Sender: No OFD packet to send [05:18:12]OFD Sender: No OFD packet to send [05:18:17]OFD Sender: No OFD packet to send [05:18:22]OFD Sender: No OFD packet to send [05:18:27]OFD Sender: No OFD packet to send [05:18:32]OFD Sender: No OFD packet to send [05:18:37]OFD Sender: No OFD packet to send [05:18:42]OFD Sender: No OFD packet to send [05:18:47]OFD Sender: No OFD packet to send [05:18:52]OFD Sender: No OFD packet to send [05:18:57]OFD Sender: No OFD packet to send [05:19:02]OFD Sender: No OFD packet to send [05:19:07]OFD Sender: No OFD packet to send [05:19:12]OFD Sender: No OFD packet to send [05:19:17]OFD Sender: No OFD packet to send [05:19:22]OFD Sender: No OFD packet to send [05:19:27]OFD Sender: No OFD packet to send [05:19:32]OFD Sender: No OFD packet to send [05:19:37]OFD Sender: No OFD packet to send [05:19:42]OFD Sender: No OFD packet to send [05:19:47]OFD Sender: No OFD packet to send [05:19:52]OFD Sender: No OFD packet to send [05:19:57]OFD Sender: No OFD packet to send [05:20:02]OFD Sender: No OFD packet to send [05:20:07]OFD Sender: No OFD packet to send [05:20:12]OFD Sender: No OFD packet to send [05:20:17]OFD Sender: No OFD packet to send [05:20:22]OFD Sender: No OFD packet to send [05:20:27]OFD Sender: No OFD packet to send [05:20:32]OFD Sender: No OFD packet to send [05:20:37]OFD Sender: No OFD packet to send [05:20:42]OFD Sender: No OFD packet to send [05:20:47]OFD Sender: No OFD packet to send [05:20:52]OFD Sender: No OFD packet to send [05:20:57]OFD Sender: No OFD packet to send [05:21:02]OFD Sender: No OFD packet to send [05:21:07]OFD Sender: No OFD packet to send [05:21:12]OFD Sender: No OFD packet to send [05:21:17]OFD Sender: No OFD packet to send [05:21:22]OFD Sender: No OFD packet to send [05:21:27]OFD Sender: No OFD packet to send [05:21:32]OFD Sender: No OFD packet to send [05:21:37]OFD Sender: No OFD packet to send [05:21:42]OFD Sender: No OFD packet to send [05:21:47]OFD Sender: No OFD packet to send [05:21:52]OFD Sender: No OFD packet to send [05:21:57]OFD Sender: No OFD packet to send [05:22:02]OFD Sender: No OFD packet to send [05:22:07]OFD Sender: No OFD packet to send [05:22:12]OFD Sender: No OFD packet to send [05:22:17]OFD Sender: No OFD packet to send [05:22:22]OFD Sender: No OFD packet to send [05:22:27]OFD Sender: No OFD packet to send [05:22:32]OFD Sender: No OFD packet to send [05:22:37]OFD Sender: No OFD packet to send [05:22:42]OFD Sender: No OFD packet to send [05:22:47]OFD Sender: No OFD packet to send [05:22:52]OFD Sender: No OFD packet to send [05:22:57]OFD Sender: No OFD packet to send [05:23:02]OFD Sender: No OFD packet to send [05:23:07]OFD Sender: No OFD packet to send [05:23:12]OFD Sender: No OFD packet to send [05:23:17]OFD Sender: No OFD packet to send [05:23:22]OFD Sender: No OFD packet to send [05:23:27]OFD Sender: No OFD packet to send [05:23:32]OFD Sender: No OFD packet to send [05:23:37]OFD Sender: No OFD packet to send [05:23:42]OFD Sender: No OFD packet to send [05:23:47]OFD Sender: No OFD packet to send [05:23:52]OFD Sender: No OFD packet to send [05:23:57]OFD Sender: No OFD packet to send [05:24:02]OFD Sender: No OFD packet to send [05:24:07]OFD Sender: No OFD packet to send [05:24:12]OFD Sender: No OFD packet to send [05:24:17]OFD Sender: No OFD packet to send [05:24:22]OFD Sender: No OFD packet to send [05:24:27]OFD Sender: No OFD packet to send [05:24:32]OFD Sender: No OFD packet to send [05:24:37]OFD Sender: No OFD packet to send [05:24:42]OFD Sender: No OFD packet to send [05:24:47]OFD Sender: No OFD packet to send [05:24:52]OFD Sender: No OFD packet to send [05:24:57]OFD Sender: No OFD packet to send [05:25:02]OFD Sender: No OFD packet to send [05:25:07]OFD Sender: No OFD packet to send [05:25:12]OFD Sender: No OFD packet to send [05:25:17]OFD Sender: No OFD packet to send [05:25:22]OFD Sender: No OFD packet to send [05:25:27]OFD Sender: No OFD packet to send [05:25:32]OFD Sender: No OFD packet to send [05:25:37]OFD Sender: No OFD packet to send [05:25:42]OFD Sender: No OFD packet to send [05:25:47]OFD Sender: No OFD packet to send [05:25:52]OFD Sender: No OFD packet to send [05:25:57]OFD Sender: No OFD packet to send [05:26:02]OFD Sender: No OFD packet to send [05:26:07]OFD Sender: No OFD packet to send [05:26:12]OFD Sender: No OFD packet to send [05:26:17]OFD Sender: No OFD packet to send [05:26:22]OFD Sender: No OFD packet to send [05:26:27]OFD Sender: No OFD packet to send [05:26:32]OFD Sender: No OFD packet to send [05:26:37]OFD Sender: No OFD packet to send [05:26:42]OFD Sender: No OFD packet to send [05:26:47]OFD Sender: No OFD packet to send [05:26:52]OFD Sender: No OFD packet to send [05:26:57]OFD Sender: No OFD packet to send [05:27:02]OFD Sender: No OFD packet to send [05:27:07]OFD Sender: No OFD packet to send [05:27:12]OFD Sender: No OFD packet to send [05:27:17]OFD Sender: No OFD packet to send [05:27:22]OFD Sender: No OFD packet to send [05:27:27]OFD Sender: No OFD packet to send [05:27:32]OFD Sender: No OFD packet to send [05:27:37]OFD Sender: No OFD packet to send [05:27:42]OFD Sender: No OFD packet to send [05:27:47]OFD Sender: No OFD packet to send [05:27:52]OFD Sender: No OFD packet to send [05:27:57]OFD Sender: No OFD packet to send [05:28:02]OFD Sender: No OFD packet to send [05:28:07]OFD Sender: No OFD packet to send [05:28:12]OFD Sender: No OFD packet to send [05:28:17]OFD Sender: No OFD packet to send [05:28:22]OFD Sender: No OFD packet to send [05:28:27]OFD Sender: No OFD packet to send [05:28:32]OFD Sender: No OFD packet to send [05:28:37]OFD Sender: No OFD packet to send [05:28:42]OFD Sender: No OFD packet to send [05:28:47]OFD Sender: No OFD packet to send [05:28:52]OFD Sender: No OFD packet to send [05:28:57]OFD Sender: No OFD packet to send [05:29:02]OFD Sender: No OFD packet to send [05:29:07]OFD Sender: No OFD packet to send [05:29:12]OFD Sender: No OFD packet to send [05:29:17]OFD Sender: No OFD packet to send [05:29:22]OFD Sender: No OFD packet to send [05:29:27]OFD Sender: No OFD packet to send [05:29:32]OFD Sender: No OFD packet to send [05:29:37]OFD Sender: No OFD packet to send [05:29:42]OFD Sender: No OFD packet to send [05:29:47]OFD Sender: No OFD packet to send [05:29:52]OFD Sender: No OFD packet to send [05:29:57]OFD Sender: No OFD packet to send [05:30:02]OFD Sender: No OFD packet to send [05:30:07]OFD Sender: No OFD packet to send [05:30:12]OFD Sender: No OFD packet to send [05:30:17]OFD Sender: No OFD packet to send [05:30:22]OFD Sender: No OFD packet to send [05:30:27]OFD Sender: No OFD packet to send [05:30:32]OFD Sender: No OFD packet to send [05:30:37]OFD Sender: No OFD packet to send [05:30:42]OFD Sender: No OFD packet to send [05:30:47]OFD Sender: No OFD packet to send [05:30:52]OFD Sender: No OFD packet to send [05:30:57]OFD Sender: No OFD packet to send [05:31:02]OFD Sender: No OFD packet to send [05:31:07]OFD Sender: No OFD packet to send [05:31:12]OFD Sender: No OFD packet to send [05:31:17]OFD Sender: No OFD packet to send [05:31:22]OFD Sender: No OFD packet to send [05:31:27]OFD Sender: No OFD packet to send [05:31:32]OFD Sender: No OFD packet to send [05:31:37]OFD Sender: No OFD packet to send [05:31:42]OFD Sender: No OFD packet to send [05:31:47]OFD Sender: No OFD packet to send [05:31:52]OFD Sender: No OFD packet to send [05:31:57]OFD Sender: No OFD packet to send [05:32:03]OFD Sender: No OFD packet to send [05:32:08]OFD Sender: No OFD packet to send [05:32:13]OFD Sender: No OFD packet to send [05:32:18]OFD Sender: No OFD packet to send [05:32:23]OFD Sender: No OFD packet to send [05:32:28]OFD Sender: No OFD packet to send [05:32:33]OFD Sender: No OFD packet to send [05:32:38]OFD Sender: No OFD packet to send [05:32:43]OFD Sender: No OFD packet to send [05:32:48]OFD Sender: No OFD packet to send [05:32:53]OFD Sender: No OFD packet to send [05:32:58]OFD Sender: No OFD packet to send [05:33:03]OFD Sender: No OFD packet to send [05:33:08]OFD Sender: No OFD packet to send [05:33:13]OFD Sender: No OFD packet to send [05:33:18]OFD Sender: No OFD packet to send [05:33:23]OFD Sender: No OFD packet to send [05:33:28]OFD Sender: No OFD packet to send [05:33:33]OFD Sender: No OFD packet to send [05:33:38]OFD Sender: No OFD packet to send [05:33:43]OFD Sender: No OFD packet to send [05:33:48]OFD Sender: No OFD packet to send [05:33:53]OFD Sender: No OFD packet to send [05:33:58]OFD Sender: No OFD packet to send [05:34:03]OFD Sender: No OFD packet to send [05:34:08]OFD Sender: No OFD packet to send [05:34:13]OFD Sender: No OFD packet to send [05:34:18]OFD Sender: No OFD packet to send [05:34:23]OFD Sender: No OFD packet to send [05:34:28]OFD Sender: No OFD packet to send [05:34:33]OFD Sender: No OFD packet to send [05:34:38]OFD Sender: No OFD packet to send [05:34:43]OFD Sender: No OFD packet to send [05:34:48]OFD Sender: No OFD packet to send [05:34:53]OFD Sender: No OFD packet to send [05:34:58]OFD Sender: No OFD packet to send [05:35:03]OFD Sender: No OFD packet to send [05:35:08]OFD Sender: No OFD packet to send [05:35:13]OFD Sender: No OFD packet to send [05:35:18]OFD Sender: No OFD packet to send [05:35:23]OFD Sender: No OFD packet to send [05:35:28]OFD Sender: No OFD packet to send [05:35:33]OFD Sender: No OFD packet to send [05:35:38]OFD Sender: No OFD packet to send [05:35:43]OFD Sender: No OFD packet to send [05:35:48]OFD Sender: No OFD packet to send [05:35:53]OFD Sender: No OFD packet to send [05:35:58]OFD Sender: No OFD packet to send [05:36:03]OFD Sender: No OFD packet to send [05:36:08]OFD Sender: No OFD packet to send [05:36:13]OFD Sender: No OFD packet to send [05:36:18]OFD Sender: No OFD packet to send [05:36:23]OFD Sender: No OFD packet to send [05:36:28]OFD Sender: No OFD packet to send [05:36:33]OFD Sender: No OFD packet to send [05:36:38]OFD Sender: No OFD packet to send [05:36:43]OFD Sender: No OFD packet to send [05:36:48]OFD Sender: No OFD packet to send [05:36:53]OFD Sender: No OFD packet to send [05:36:58]OFD Sender: No OFD packet to send [05:37:03]OFD Sender: No OFD packet to send [05:37:08]OFD Sender: No OFD packet to send [05:37:13]OFD Sender: No OFD packet to send [05:37:18]OFD Sender: No OFD packet to send [05:37:23]OFD Sender: No OFD packet to send [05:37:28]OFD Sender: No OFD packet to send [05:37:33]OFD Sender: No OFD packet to send [05:37:38]OFD Sender: No OFD packet to send [05:37:43]OFD Sender: No OFD packet to send [05:37:48]OFD Sender: No OFD packet to send [05:37:53]OFD Sender: No OFD packet to send [05:37:58]OFD Sender: No OFD packet to send [05:38:03]OFD Sender: No OFD packet to send [05:38:08]OFD Sender: No OFD packet to send [05:38:13]OFD Sender: No OFD packet to send [05:38:18]OFD Sender: No OFD packet to send [05:38:23]OFD Sender: No OFD packet to send [05:38:28]OFD Sender: No OFD packet to send [05:38:33]OFD Sender: No OFD packet to send [05:38:38]OFD Sender: No OFD packet to send [05:38:43]OFD Sender: No OFD packet to send [05:38:48]OFD Sender: No OFD packet to send [05:38:53]OFD Sender: No OFD packet to send [05:38:58]OFD Sender: No OFD packet to send [05:39:03]OFD Sender: No OFD packet to send [05:39:08]OFD Sender: No OFD packet to send [05:39:13]OFD Sender: No OFD packet to send [05:39:18]OFD Sender: No OFD packet to send [05:39:23]OFD Sender: No OFD packet to send [05:39:28]OFD Sender: No OFD packet to send [05:39:33]OFD Sender: No OFD packet to send [05:39:38]OFD Sender: No OFD packet to send [05:39:43]OFD Sender: No OFD packet to send [05:39:48]OFD Sender: No OFD packet to send [05:39:53]OFD Sender: No OFD packet to send [05:39:58]OFD Sender: No OFD packet to send [05:40:03]OFD Sender: No OFD packet to send [05:40:08]OFD Sender: No OFD packet to send [05:40:13]OFD Sender: No OFD packet to send [05:40:18]OFD Sender: No OFD packet to send [05:40:23]OFD Sender: No OFD packet to send [05:40:28]OFD Sender: No OFD packet to send [05:40:33]OFD Sender: No OFD packet to send [05:40:38]OFD Sender: No OFD packet to send [05:40:43]OFD Sender: No OFD packet to send [05:40:48]OFD Sender: No OFD packet to send [05:40:53]OFD Sender: No OFD packet to send [05:40:58]OFD Sender: No OFD packet to send [05:41:03]OFD Sender: No OFD packet to send [05:41:08]OFD Sender: No OFD packet to send [05:41:13]OFD Sender: No OFD packet to send [05:41:18]OFD Sender: No OFD packet to send [05:41:23]OFD Sender: No OFD packet to send [05:41:28]OFD Sender: No OFD packet to send [05:41:33]OFD Sender: No OFD packet to send [05:41:38]OFD Sender: No OFD packet to send [05:41:43]OFD Sender: No OFD packet to send [05:41:48]OFD Sender: No OFD packet to send [05:41:53]OFD Sender: No OFD packet to send [05:41:58]OFD Sender: No OFD packet to send [05:42:03]OFD Sender: No OFD packet to send [05:42:08]OFD Sender: No OFD packet to send [05:42:13]OFD Sender: No OFD packet to send [05:42:18]OFD Sender: No OFD packet to send [05:42:23]OFD Sender: No OFD packet to send [05:42:28]OFD Sender: No OFD packet to send [05:42:33]OFD Sender: No OFD packet to send [05:42:38]OFD Sender: No OFD packet to send [05:42:43]OFD Sender: No OFD packet to send [05:42:48]OFD Sender: No OFD packet to send [05:42:53]OFD Sender: No OFD packet to send [05:42:58]OFD Sender: No OFD packet to send [05:43:03]OFD Sender: No OFD packet to send [05:43:08]OFD Sender: No OFD packet to send [05:43:13]OFD Sender: No OFD packet to send [05:43:18]OFD Sender: No OFD packet to send [05:43:23]OFD Sender: No OFD packet to send [05:43:28]OFD Sender: No OFD packet to send [05:43:33]OFD Sender: No OFD packet to send [05:43:38]OFD Sender: No OFD packet to send [05:43:43]OFD Sender: No OFD packet to send [05:43:48]OFD Sender: No OFD packet to send [05:43:53]OFD Sender: No OFD packet to send [05:43:58]OFD Sender: No OFD packet to send [05:44:03]OFD Sender: No OFD packet to send [05:44:08]OFD Sender: No OFD packet to send [05:44:13]OFD Sender: No OFD packet to send [05:44:18]OFD Sender: No OFD packet to send [05:44:23]OFD Sender: No OFD packet to send [05:44:28]OFD Sender: No OFD packet to send [05:44:33]OFD Sender: No OFD packet to send [05:44:38]OFD Sender: No OFD packet to send [05:44:43]OFD Sender: No OFD packet to send [05:44:48]OFD Sender: No OFD packet to send [05:44:53]OFD Sender: No OFD packet to send [05:44:58]OFD Sender: No OFD packet to send [05:45:03]OFD Sender: No OFD packet to send [05:45:08]OFD Sender: No OFD packet to send [05:45:13]OFD Sender: No OFD packet to send [05:45:18]OFD Sender: No OFD packet to send [05:45:23]OFD Sender: No OFD packet to send [05:45:28]OFD Sender: No OFD packet to send [05:45:33]OFD Sender: No OFD packet to send [05:45:38]OFD Sender: No OFD packet to send [05:45:43]OFD Sender: No OFD packet to send [05:45:48]OFD Sender: No OFD packet to send [05:45:53]OFD Sender: No OFD packet to send [05:45:58]OFD Sender: No OFD packet to send [05:46:03]OFD Sender: No OFD packet to send [05:46:08]OFD Sender: No OFD packet to send [05:46:14]OFD Sender: No OFD packet to send [05:46:19]OFD Sender: No OFD packet to send [05:46:24]OFD Sender: No OFD packet to send [05:46:29]OFD Sender: No OFD packet to send [05:46:34]OFD Sender: No OFD packet to send [05:46:39]OFD Sender: No OFD packet to send [05:46:44]OFD Sender: No OFD packet to send [05:46:49]OFD Sender: No OFD packet to send [05:46:54]OFD Sender: No OFD packet to send [05:46:59]OFD Sender: No OFD packet to send [05:47:04]OFD Sender: No OFD packet to send [05:47:09]OFD Sender: No OFD packet to send [05:47:14]OFD Sender: No OFD packet to send [05:47:19]OFD Sender: No OFD packet to send [05:47:24]OFD Sender: No OFD packet to send [05:47:29]OFD Sender: No OFD packet to send [05:47:34]OFD Sender: No OFD packet to send [05:47:39]OFD Sender: No OFD packet to send [05:47:44]OFD Sender: No OFD packet to send [05:47:49]OFD Sender: No OFD packet to send [05:47:54]OFD Sender: No OFD packet to send [05:47:59]OFD Sender: No OFD packet to send [05:48:04]OFD Sender: No OFD packet to send [05:48:09]OFD Sender: No OFD packet to send [05:48:14]OFD Sender: No OFD packet to send [05:48:19]OFD Sender: No OFD packet to send [05:48:24]OFD Sender: No OFD packet to send [05:48:29]OFD Sender: No OFD packet to send [05:48:34]OFD Sender: No OFD packet to send [05:48:39]OFD Sender: No OFD packet to send [05:48:44]OFD Sender: No OFD packet to send [05:48:49]OFD Sender: No OFD packet to send [05:48:54]OFD Sender: No OFD packet to send [05:48:59]OFD Sender: No OFD packet to send [05:49:04]OFD Sender: No OFD packet to send [05:49:09]OFD Sender: No OFD packet to send [05:49:14]OFD Sender: No OFD packet to send [05:49:19]OFD Sender: No OFD packet to send [05:49:24]OFD Sender: No OFD packet to send [05:49:29]OFD Sender: No OFD packet to send [05:49:34]OFD Sender: No OFD packet to send [05:49:39]OFD Sender: No OFD packet to send [05:49:44]OFD Sender: No OFD packet to send [05:49:49]OFD Sender: No OFD packet to send [05:49:54]OFD Sender: No OFD packet to send [05:49:59]OFD Sender: No OFD packet to send [05:50:04]OFD Sender: No OFD packet to send [05:50:09]OFD Sender: No OFD packet to send [05:50:14]OFD Sender: No OFD packet to send [05:50:19]OFD Sender: No OFD packet to send [05:50:24]OFD Sender: No OFD packet to send [05:50:29]OFD Sender: No OFD packet to send [05:50:34]OFD Sender: No OFD packet to send [05:50:39]OFD Sender: No OFD packet to send [05:50:44]OFD Sender: No OFD packet to send [05:50:49]OFD Sender: No OFD packet to send [05:50:54]OFD Sender: No OFD packet to send [05:50:59]OFD Sender: No OFD packet to send [05:51:04]OFD Sender: No OFD packet to send [05:51:09]OFD Sender: No OFD packet to send [05:51:14]OFD Sender: No OFD packet to send [05:51:19]OFD Sender: No OFD packet to send [05:51:24]OFD Sender: No OFD packet to send [05:51:29]OFD Sender: No OFD packet to send [05:51:34]OFD Sender: No OFD packet to send [05:51:39]OFD Sender: No OFD packet to send [05:51:44]OFD Sender: No OFD packet to send [05:51:49]OFD Sender: No OFD packet to send [05:51:54]OFD Sender: No OFD packet to send [05:51:59]OFD Sender: No OFD packet to send [05:52:04]OFD Sender: No OFD packet to send [05:52:09]OFD Sender: No OFD packet to send [05:52:14]OFD Sender: No OFD packet to send [05:52:19]OFD Sender: No OFD packet to send [05:52:24]OFD Sender: No OFD packet to send [05:52:29]OFD Sender: No OFD packet to send [05:52:34]OFD Sender: No OFD packet to send [05:52:39]OFD Sender: No OFD packet to send [05:52:44]OFD Sender: No OFD packet to send [05:52:49]OFD Sender: No OFD packet to send [05:52:54]OFD Sender: No OFD packet to send [05:52:59]OFD Sender: No OFD packet to send [05:53:04]OFD Sender: No OFD packet to send [05:53:09]OFD Sender: No OFD packet to send [05:53:14]OFD Sender: No OFD packet to send [05:53:19]OFD Sender: No OFD packet to send [05:53:24]OFD Sender: No OFD packet to send [05:53:29]OFD Sender: No OFD packet to send [05:53:34]OFD Sender: No OFD packet to send [05:53:39]OFD Sender: No OFD packet to send [05:53:44]OFD Sender: No OFD packet to send [05:53:49]OFD Sender: No OFD packet to send [05:53:54]OFD Sender: No OFD packet to send [05:53:59]OFD Sender: No OFD packet to send [05:54:04]OFD Sender: No OFD packet to send [05:54:09]OFD Sender: No OFD packet to send [05:54:14]OFD Sender: No OFD packet to send [05:54:19]OFD Sender: No OFD packet to send [05:54:24]OFD Sender: No OFD packet to send [05:54:29]OFD Sender: No OFD packet to send [05:54:34]OFD Sender: No OFD packet to send [05:54:39]OFD Sender: No OFD packet to send [05:54:44]OFD Sender: No OFD packet to send [05:54:49]OFD Sender: No OFD packet to send [05:54:54]OFD Sender: No OFD packet to send [05:54:59]OFD Sender: No OFD packet to send [05:55:04]OFD Sender: No OFD packet to send [05:55:09]OFD Sender: No OFD packet to send [05:55:14]OFD Sender: No OFD packet to send [05:55:19]OFD Sender: No OFD packet to send [05:55:24]OFD Sender: No OFD packet to send [05:55:29]OFD Sender: No OFD packet to send [05:55:34]OFD Sender: No OFD packet to send [05:55:39]OFD Sender: No OFD packet to send [05:55:44]OFD Sender: No OFD packet to send [05:55:49]OFD Sender: No OFD packet to send [05:55:54]OFD Sender: No OFD packet to send [05:55:59]OFD Sender: No OFD packet to send [05:56:04]OFD Sender: No OFD packet to send [05:56:09]OFD Sender: No OFD packet to send [05:56:14]OFD Sender: No OFD packet to send [05:56:19]OFD Sender: No OFD packet to send [05:56:24]OFD Sender: No OFD packet to send [05:56:29]OFD Sender: No OFD packet to send [05:56:34]OFD Sender: No OFD packet to send [05:56:39]OFD Sender: No OFD packet to send [05:56:44]OFD Sender: No OFD packet to send [05:56:49]OFD Sender: No OFD packet to send [05:56:54]OFD Sender: No OFD packet to send [05:56:59]OFD Sender: No OFD packet to send [05:57:04]OFD Sender: No OFD packet to send [05:57:09]OFD Sender: No OFD packet to send [05:57:14]OFD Sender: No OFD packet to send [05:57:19]OFD Sender: No OFD packet to send [05:57:24]OFD Sender: No OFD packet to send [05:57:29]OFD Sender: No OFD packet to send [05:57:34]OFD Sender: No OFD packet to send [05:57:39]OFD Sender: No OFD packet to send [05:57:44]OFD Sender: No OFD packet to send [05:57:49]OFD Sender: No OFD packet to send [05:57:54]OFD Sender: No OFD packet to send [05:57:59]OFD Sender: No OFD packet to send [05:58:04]OFD Sender: No OFD packet to send [05:58:09]OFD Sender: No OFD packet to send [05:58:14]OFD Sender: No OFD packet to send [05:58:19]OFD Sender: No OFD packet to send [05:58:24]OFD Sender: No OFD packet to send [05:58:29]OFD Sender: No OFD packet to send [05:58:34]OFD Sender: No OFD packet to send [05:58:39]OFD Sender: No OFD packet to send [05:58:44]OFD Sender: No OFD packet to send [05:58:49]OFD Sender: No OFD packet to send [05:58:54]OFD Sender: No OFD packet to send [05:58:59]OFD Sender: No OFD packet to send [05:59:04]OFD Sender: No OFD packet to send [05:59:09]OFD Sender: No OFD packet to send [05:59:14]OFD Sender: No OFD packet to send [05:59:19]OFD Sender: No OFD packet to send [05:59:24]OFD Sender: No OFD packet to send [05:59:29]OFD Sender: No OFD packet to send [05:59:34]OFD Sender: No OFD packet to send [05:59:39]OFD Sender: No OFD packet to send [05:59:44]OFD Sender: No OFD packet to send [05:59:49]OFD Sender: No OFD packet to send [05:59:54]OFD Sender: No OFD packet to send [05:59:59]OFD Sender: No OFD packet to send [06:00:04]OFD Sender: No OFD packet to send [06:00:09]OFD Sender: No OFD packet to send [06:00:14]OFD Sender: No OFD packet to send [06:00:19]OFD Sender: No OFD packet to send [06:00:25]OFD Sender: No OFD packet to send [06:00:30]OFD Sender: No OFD packet to send [06:00:35]OFD Sender: No OFD packet to send [06:00:40]OFD Sender: No OFD packet to send [06:00:45]OFD Sender: No OFD packet to send [06:00:50]OFD Sender: No OFD packet to send [06:00:55]OFD Sender: No OFD packet to send [06:01:00]OFD Sender: No OFD packet to send [06:01:05]OFD Sender: No OFD packet to send [06:01:10]OFD Sender: No OFD packet to send [06:01:15]OFD Sender: No OFD packet to send [06:01:20]OFD Sender: No OFD packet to send [06:01:25]OFD Sender: No OFD packet to send [06:01:30]OFD Sender: No OFD packet to send [06:01:35]OFD Sender: No OFD packet to send [06:01:40]OFD Sender: No OFD packet to send [06:01:45]OFD Sender: No OFD packet to send [06:01:50]OFD Sender: No OFD packet to send [06:01:55]OFD Sender: No OFD packet to send [06:02:00]OFD Sender: No OFD packet to send [06:02:05]OFD Sender: No OFD packet to send [06:02:10]OFD Sender: No OFD packet to send [06:02:15]OFD Sender: No OFD packet to send [06:02:20]OFD Sender: No OFD packet to send [06:02:25]OFD Sender: No OFD packet to send [06:02:30]OFD Sender: No OFD packet to send [06:02:35]OFD Sender: No OFD packet to send [06:02:40]OFD Sender: No OFD packet to send [06:02:45]OFD Sender: No OFD packet to send [06:02:50]OFD Sender: No OFD packet to send [06:02:55]OFD Sender: No OFD packet to send [06:03:00]OFD Sender: No OFD packet to send [06:03:05]OFD Sender: No OFD packet to send [06:03:10]OFD Sender: No OFD packet to send [06:03:15]OFD Sender: No OFD packet to send [06:03:20]OFD Sender: No OFD packet to send [06:03:25]OFD Sender: No OFD packet to send [06:03:30]OFD Sender: No OFD packet to send [06:03:35]OFD Sender: No OFD packet to send [06:03:40]OFD Sender: No OFD packet to send [06:03:45]OFD Sender: No OFD packet to send [06:03:50]OFD Sender: No OFD packet to send [06:03:55]OFD Sender: No OFD packet to send [06:04:00]OFD Sender: No OFD packet to send [06:04:05]OFD Sender: No OFD packet to send [06:04:10]OFD Sender: No OFD packet to send [06:04:15]OFD Sender: No OFD packet to send [06:04:20]OFD Sender: No OFD packet to send [06:04:25]OFD Sender: No OFD packet to send [06:04:30]OFD Sender: No OFD packet to send [06:04:35]OFD Sender: No OFD packet to send [06:04:40]OFD Sender: No OFD packet to send [06:04:45]OFD Sender: No OFD packet to send [06:04:50]OFD Sender: No OFD packet to send [06:04:55]OFD Sender: No OFD packet to send [06:05:00]OFD Sender: No OFD packet to send [06:05:05]OFD Sender: No OFD packet to send [06:05:10]OFD Sender: No OFD packet to send [06:05:15]OFD Sender: No OFD packet to send [06:05:20]OFD Sender: No OFD packet to send [06:05:25]OFD Sender: No OFD packet to send [06:05:30]OFD Sender: No OFD packet to send [06:05:35]OFD Sender: No OFD packet to send [06:05:40]OFD Sender: No OFD packet to send [06:05:45]OFD Sender: No OFD packet to send [06:05:50]OFD Sender: No OFD packet to send [06:05:55]OFD Sender: No OFD packet to send [06:06:00]OFD Sender: No OFD packet to send [06:06:05]OFD Sender: No OFD packet to send [06:06:10]OFD Sender: No OFD packet to send [06:06:15]OFD Sender: No OFD packet to send [06:06:20]OFD Sender: No OFD packet to send [06:06:23]accept exits with 9 [06:06:23]New connection [06:06:23]New thread 3067481444 created [06:06:23]Thread 3067338084 joined [06:06:23]Waiting for new connection... [06:06:23] Sock 9.Parse request [06:06:23]Sock 9.Check first char [06:06:23]Sock 9.First char is OK [06:06:23]request: POST /json_proto HTTP/1.0 [06:06:23]Method: POST [06:06:23]URL: /json_proto [06:06:23]Method is POST - this is cgi request [06:06:23]url: /json_proto [06:06:23]query_string will be loaded in cgi processing [06:06:23]execute_cgi json_proto POST (null) [06:06:23]execute_cgi path=json_proto method=POST [06:06:23]POST find Content-Length [06:06:23]Host: 172.17.62.5:8080 [06:06:23]Content-Length: 990 [06:06:23]Content-Type: application/json [06:06:23] [06:06:23]POST finish read [06:06:23]Found Content-Length = 990 [06:06:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 64.050, "sum" : 2030.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 64.05 \u0441\u043E\u043C", "deposit" : 2500.00, "total" : 2030.00, "payments": [ { "type": 0, "sum" : 2030.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:06:23]execute_script... [06: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)191293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 64.050, "sum" : 2030.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 64.05 \u0441\u043E\u043C", "deposit" : 2500.00, "total" : 2030.00, "payments": [ { "type": 0, "sum" : 2030.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:06:23]POST & json_proto [06:06:23]process_json_proto [06:06:23]json parsed OK: [06:06:23]protocol is kg_v1.0 [06:06:23]action value=close_receipt [06:06:23]process_action close_receipt [06:06:23]cmd_close_receipt [06:06:23]MH_GetDate [06:06:23]Write to MH i2c: F0 00 00 F0 14 F3 [06:06:23]Write i2c OK [06:06:23]MH_I2C_Read... [06:06:23]Read from MH i2c: F0 [06:06:23]MH_I2C_Read... [06:06:23]Read from MH i2c: F0 09 00 [06:06:23]MH_I2C_Read... [06:06:23]Read from MH i2c: F0 09 00 F0 14 00 E2 AC 24 66 F4 E9 65 64 BA [06:06:23]GetLastDocTimeStamp 1713676229 [06:06:23]current date 1713679586 [06:06:23]FM_GetShiftState [06:06:23]SAM_PROTO_GetShiftState [06:06:23]wFMCommunicate request_size=4 [06:06:23]MH_SAM_APDU [06:06:23]CAPDU: 80 13 01 00 [06:06:23]Write to MH i2c: E2 08 00 F1 14 80 13 01 00 00 00 00 00 82 [06:06:23]Write i2c OK [06:06:23]MH_I2C_Read... [06:06:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:06:23]Read from MH i2c: E2 [06:06:23]MH_I2C_Read... [06:06:23]Read from MH i2c: E2 0E 00 [06:06:23]MH_I2C_Read... [06:06:23]Read from MH i2c: E2 0E 00 F1 14 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 C9 [06:06:23]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [06:06:23]wFMCommunicate OK [06:06:23]SAM_PROTO_GetShiftState done [06:06:23]FM_GetShiftState done [06:06:23]opened in 1713658965 [06:06:23]opened+sec_in_day 1713745365 [06:06:23]quantity*price = 203038 [06:06:23]sum+1 = 203040 [06:06:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 2030.00 Внесено: 2500.00 СДАЧА: 470.00 НСП 1% : 17.97 НДС 12% : 215.62 Наличными: 2030.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 21 21.04.2024 06:06 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 64.05 сом ФМ: 0000000000874652 ФД: 76765 ФПД: 78242215821736 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T060626&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76765&fm=78242215821736&tin=02508201610067®Number=0000000000091573&sum=203000 [06:06:24]StoreToDocumentArchive [06:06:24]shift 372 fd 76765 [06:06:24]save to /storage/0372/doc_00076765 [06:06:24]save last doc name /storage/0372/doc_00076765 to /storage/kkm_last_doc_name [06:06:24]save OK [06:06:24]Clear old archive folders... [06:06:24]ProcessDocumentItem done err = 0, tmpTLVsize=250 [06:06:24]tlvbuf is 0186A5C0 [06:06:24]SAM_PROTO_ClearQueue [06:06:24]wFMCommunicate request_size=4 [06:06:24]MH_SAM_APDU [06:06:24]CAPDU: 80 09 00 00 [06:06:24]Write to MH i2c: E2 08 00 FE 14 80 09 00 00 00 00 00 00 84 [06:06:24]Write i2c OK [06:06:24]MH_I2C_Read... [06:06:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:06:24]Read from MH i2c: E2 [06:06:24]MH_I2C_Read... [06:06:24]Read from MH i2c: E2 03 00 [06:06:24]MH_I2C_Read... [06:06:24]Read from MH i2c: E2 03 00 FE 14 00 90 00 86 [06:06:24]RAPDU: 90 00 [06:06:24]wFMCommunicate OK [06:06:24]SAM_PROTO_ClearQueue done [06:06:24]KKMCreateOFDPacket [06:06:24]OFDProtocolAddRootSTLVToBuf [06:06:24]FM_MakeSignedData [06:06:24]FM_MakeSignedData [06:06:24]SAM_PROTO_SignData [06:06:24]wFMCommunicate request_size=4 [06:06:24]MH_SAM_APDU [06:06:24]CAPDU: 80 0D 01 02 [06:06:24]Write to MH i2c: E2 08 00 FF 14 80 0D 01 02 00 00 00 00 8C [06:06:24]Write i2c OK [06:06:24]MH_I2C_Read... [06:06:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:06:25]Read from MH i2c: E2 [06:06:25]MH_I2C_Read... [06:06:25]Read from MH i2c: E2 03 00 [06:06:25]MH_I2C_Read... [06:06:25]Read from MH i2c: E2 03 00 FF 14 00 90 00 87 [06:06:25]RAPDU: 90 00 [06:06:25]wFMCommunicate OK [06:06:25]wFMCommunicate request_size=255 [06:06:25]MH_SAM_APDU [06:06:25]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 32 FA 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 1F 19 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 18 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 54 00 00 00 00 07 04 06 00 F8 18 03 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 E2 AC 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DD 2B 01 00 35 04 06 00 47 29 [06:06:25]Write to MH i2c: E2 02 01 00 15 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 32 FA 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 1F 19 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 18 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 54 00 00 00 00 07 04 06 00 F8 18 03 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 E2 AC 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DD 2B 01 00 35 04 06 00 47 29 00 00 EE [06:06:25]Write i2c OK [06:06:25]MH_I2C_Read... [06:06:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:06:25]Read from MH i2c: E2 [06:06:25]MH_I2C_Read... [06:06:25]Read from MH i2c: E2 03 00 [06:06:25]MH_I2C_Read... [06:06:25]Read from MH i2c: E2 03 00 00 15 00 90 00 89 [06:06:25]RAPDU: 90 00 [06:06:25]wFMCommunicate OK [06:06:25]wFMCommunicate request_size=9 [06:06:25]MH_SAM_APDU [06:06:25]CAPDU: 80 0D 02 02 04 2F 7B 01 A8 [06:06:25]Write to MH i2c: E2 0C 00 01 15 80 0D 02 02 04 00 2F 7B 01 A8 00 00 EB [06:06:25]Write i2c OK [06:06:25]MH_I2C_Read... [06:06:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:06:25]Read from MH i2c: E2 [06:06:25]MH_I2C_Read... [06:06:25]Read from MH i2c: E2 03 00 [06:06:25]MH_I2C_Read... [06:06:25]Read from MH i2c: E2 03 00 01 15 00 90 00 8A [06:06:25]RAPDU: 90 00 [06:06:25]wFMCommunicate OK [06:06:25]wFMCommunicate request_size=4 [06:06:25]MH_SAM_APDU [06:06:25]CAPDU: 80 0D 03 02 [06:06:25]Write to MH i2c: E2 08 00 02 15 80 0D 03 02 00 00 00 00 92 [06:06:25]Write i2c OK [06:06:25]MH_I2C_Read... [06:06:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:06:25]Read from MH i2c: E2 [06:06:25]MH_I2C_Read... [06:06:25]Read from MH i2c: E2 0B 00 [06:06:25]MH_I2C_Read... [06:06:25]Read from MH i2c: E2 0B 00 02 15 00 C2 1D CD E9 26 B7 BD DA 90 00 9C [06:06:25]RAPDU: C2 1D CD E9 26 B7 BD DA 90 00 [06:06:25]wFMCommunicate OK [06:06:25]SAM_PROTO_SignData done [06:06:25]FM_MakeSignedData done [06:06:25]CreateOFDProtocolMessage [06:06:25]wFMCommunicate request_size=4 [06:06:25]MH_SAM_APDU [06:06:25]CAPDU: 80 11 00 00 [06:06:25]Write to MH i2c: E2 08 00 03 15 80 11 00 00 00 00 00 00 92 [06:06:25]Write i2c OK [06:06:25]MH_I2C_Read... [06:06:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:06:25]Read from MH i2c: E2 [06:06:25]MH_I2C_Read... [06:06:25]Read from MH i2c: E2 17 00 [06:06:25]MH_I2C_Read... [06:06:25]Read from MH i2c: E2 17 00 03 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 E5 [06:06:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [06:06:25]wFMCommunicate OK [06:06:25]CreateOFDProtocolMessage done [06:06:25]OFDSenderStorePacket 76765 [06:06:25]StoreOFDPacket docnum=76765 [06:06:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 BC DB 06 01 97 DD 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 32 FA 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 1F 19 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 18 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 54 00 00 00 00 07 04 06 00 F8 18 03 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 E2 AC 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DD 2B 01 00 35 04 06 00 47 29 2F 7B 01 A8 C2 1D CD E9 26 B7 BD DA [06:06:25]CheckFolder [06:06:25]dirname=/storage/ofd_packets [06:06:25]CheckFolder done [06:06:25]ProducePacketName [06:06:25]name=ofd_packets/00076765 [06:06:25]NVStorageSaveData ofd_packets/00076765 [06:06:25]File name is /storage/ofd_packets/00076765 [06:06:25]Write 300 bytes [06:06:25]NVStorageSaveData done [06:06:25]OFDSenderStorePacket done [06:06:25]KKMCreateOFDPacket done [06:06:25]NVStorageSaveData kkm_last_timestamp [06:06:25]File name is /storage/kkm_last_timestamp [06:06:25]Write 4 bytes [06:06:25]NVStorageSaveData done [06:06:25]OFD Sender: Processing packet 76765 [packets to send 129, broken 128] [06:06:25]ProducePacketName [06:06:25]name=ofd_packets/00076765 [06:06:25]OFD Sender: To server: pG, [06:06:25]CommunicateWithHost lk.salyk.kg:30040 [06:06:25]ConnectInit lk.salyk.kg [06:06:25]ExternCall_PrintAddStr [06:06:25]wPrintStart [06:06:25]Write to MH i2c: 01 00 00 04 15 19 [06:06:25]Write i2c OK [06:06:25]MH_I2C_Read... [06:06:25]Read from MH i2c: 01 [06:06:25]MH_I2C_Read... [06:06:25]Read from MH i2c: 01 07 00 [06:06:25]MH_I2C_Read... [06:06:25]Read from MH i2c: 01 07 00 04 15 00 00 00 00 00 FF 0F 2E [06:06:25]RasterBufferAndPrint [06:06:25]line Счет N : (1)191293 [06:06:25]line ИНН: 02508201610067 [06:06:25]line Контрольно-Кассовый Чек [06:06:25]line ПРОДАЖА [06:06:25]line ТРК (МРК, ГНК) : 71 [06:06:25]line Товар: 2711190000 [06:06:25]line ГАЗ-К-5 [06:06:25]line 64.050 * 31.70 [06:06:25]line = 2030.39 [06:06:25]line НДС 12% НСП 1% [06:06:25]line > о реализуемом товаре [06:06:25]line ОКРУГЛЕНИЕ: -0.39 [06:06:25]line ИТОГО: 2030.00 [06:06:25]line Внесено: 2500.00 [06:06:25]line СДАЧА: 470.00 [06:06:25]line НСП 1% : 17.97 [06:06:25]line НДС 12% : 215.62 [06:06:25]line Наличными: 2030.00 [06:06:25]line Безнал.: 0.00 [06:06:25]line Место: АЗС № 106 "Партнер Нефть" [06:06:25]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [06:06:25]line СНО: Общий режим [06:06:25]line Чек 21 21.04.2024 06:06 [06:06:25]line Смена: 372 ФФД: 1.0 [06:06:25]line ЗНМ: 0300000141 [06:06:25]line РНМ: 0000000000091573 [06:06:25]line Версия ККМ: 001 [06:06:25]line [06:06:25]line Дисконтная программа [06:06:25]line СУГ [06:06:25]line номер 106 [06:06:25]line сэкономлено 64.05 сом [06:06:25]line ФМ: 0000000000874652 [06:06:25]line ФД: 76765 [06:06:25]line ФПД: 78242215821736 [06:06:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T060626&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76765&fm=78242215821736&tin=02508201610067®Number=0000000000091573&sum=203000 [06:06:25]Connected sock=11 [06: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 34 36 35 32 0E 01 00 00 BC DB 06 01 97 DD 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 32 FA 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 1F 19 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 18 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 54 00 00 00 00 07 04 06 00 F8 18 03 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 E2 AC 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DD 2B 01 00 35 04 06 00 47 29 2F 7B 01 A8 C2 1D CD E9 26 B7 BD DA [06:06:25]written 0, free lines is 4095 [06:06:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 E6 DA 47 00 13 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 34 36 35 32 10 04 04 00 DD 2B 01 00 F4 03 04 00 68 54 24 66 B6 04 01 00 00 89 40 1E E8 09 02 67 5C [06:06:25]CommunicateWithHost err = 0 [06:06:25]CheckOFDResponse [06:06:25]1017 (14) - 77093643461234 [06:06:25]1041 (16) - 0000000000874652 [06:06:25]1040 (4) - 76765 [06:06:25]1012 (4) - 20.04.2024 23:48 [06:06:25]1206 (1) - 0 [06:06:25]OFD Sender: Remove packet 76765 [06:06:25]ProducePacketName [06:06:25]name=ofd_packets/00076765 [06:06:25]NVStorageDeleteData [06:06:26]Write to MH i2c: 01 00 00 33 15 48 [06:06:26]Write i2c OK [06:06:26]MH_I2C_Read... [06:06:26]Read from MH i2c: 01 [06:06:26]MH_I2C_Read... [06:06:26]Read from MH i2c: 01 07 00 [06:06:26]MH_I2C_Read... [06:06:26]Read from MH i2c: 01 07 00 33 15 00 00 00 00 00 91 0C EC [06:06:26]RasterBufferAndPrint [06:06:26]line [06:06:26]line [06:06:26]line [06:06:26]line [06:06:26]line [06:06:26]written 0, free lines is 3223 [06:06:26]MH_Cut [06:06:26]Write to MH i2c: D1 01 00 3A 15 01 21 [06:06:26]Write i2c OK [06:06:26]MH_I2C_Read... [06:06:26]Read from MH i2c: D1 [06:06:26]MH_I2C_Read... [06:06:26]Read from MH i2c: D1 01 00 [06:06:26]MH_I2C_Read... [06:06:26]Read from MH i2c: D1 01 00 3A 15 00 20 [06:06:26]Write to MH i2c: 01 00 00 3B 15 50 [06:06:26]Write i2c OK [06:06:26]MH_I2C_Read... [06:06:26]OFD Sender: No OFD packet to send [06:06:27]*** Cut start [06:06:27]*** Partial cut [06:06:27]*** CUTSNS_PIN = 1 [06:06:27]*** CUTSNS_PIN = 0 [06:06:27]*** Brake cut motor [06:06:27]Read from MH i2c: 01 [06:06:27]MH_I2C_Read... [06:06:27]*** Stop cut motor [06:06:27]*** Cut end [06:06:27]Read from MH i2c: 01 07 00 [06:06:27]MH_I2C_Read... [06:06:27]Read from MH i2c: 01 07 00 3B 15 00 00 00 00 00 FF 0F 65 [06:06:27]process_action close_receipt done [06:06:27]requested_data is exist [06:06:27]produce_requested_data [06:06:27]requested_item fm.sn is exist - process it [06:06:27]wFMCommunicate request_size=4 [06:06:27]MH_SAM_APDU [06:06:27]CAPDU: 80 11 00 00 [06:06:27]Write to MH i2c: E2 08 00 3C 15 80 11 00 00 00 00 00 00 CB [06:06:27]Write i2c OK [06:06:27]MH_I2C_Read... [06:06:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:06:27]Read from MH i2c: E2 [06:06:27]MH_I2C_Read... [06:06:27]Read from MH i2c: E2 17 00 [06:06:27]MH_I2C_Read... [06:06:27]Read from MH i2c: E2 17 00 3C 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 1E [06:06:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [06:06:27]wFMCommunicate OK [06:06:27]requested_item fd.num is exist - process it [06:06:27]SAM_PROTO_GetFieldsCounters [06:06:27]wFMCommunicate request_size=4 [06:06:27]MH_SAM_APDU [06:06:27]CAPDU: 80 13 00 00 [06:06:27]Write to MH i2c: E2 08 00 3D 15 80 13 00 00 00 00 00 00 CE [06:06:27]Write i2c OK [06:06:27]MH_I2C_Read... [06:06:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:06:27]Read from MH i2c: E2 [06:06:27]MH_I2C_Read... [06:06:27]Read from MH i2c: E2 62 00 [06:06:27]MH_I2C_Read... [06:06:27]Read from MH i2c: E2 62 00 3D 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DD 2B 01 00 0E 04 04 00 74 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 AC [06: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DD 2B 01 00 0E 04 04 00 74 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:06:27]wFMCommunicate OK [06:06:27]SAM_PROTO_GetFieldsCounters done [06:06:27]requested_item shift.num is exist - process it [06:06:27]requested_item shift.opened is exist - process it [06:06:27]req_shift_opened [06:06:27]FM_GetShiftState [06:06:27]SAM_PROTO_GetShiftState [06:06:27]wFMCommunicate request_size=4 [06:06:27]MH_SAM_APDU [06:06:27]CAPDU: 80 13 01 00 [06:06:27]Write to MH i2c: E2 08 00 3E 15 80 13 01 00 00 00 00 00 D0 [06:06:27]Write i2c OK [06:06:27]MH_I2C_Read... [06:06:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:06:27]Read from MH i2c: E2 [06:06:27]MH_I2C_Read... [06:06:27]Read from MH i2c: E2 0E 00 [06:06:27]MH_I2C_Read... [06:06:27]Read from MH i2c: E2 0E 00 3E 15 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 17 [06:06:27]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [06:06:27]wFMCommunicate OK [06:06:27]SAM_PROTO_GetShiftState done [06:06:27]FM_GetShiftState done [06:06:27]req_shift_opened done [06:06:27]requested_item shift.open_date is exist - process it [06:06:27]req_shift_open_date [06:06:27]req_shift_open_date done [06:06:27]produce_requested_data done [06:06:27]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76765,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [06:06:27]process_action_free close_receipt [06:06:27]json_value_free [06:06:27]json_value_free done [06:06:27]process_json_proto returns [06:06:27]Send response to host [06:06:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76765,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [06:06:27]free response buf [06:06:27]execute_script done [06:06:27]execute_script returns [06:06:27]free content buf [06:06:27]Sock 9.Close socket [06:06:27]Sock 9.Thread stoped [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:37]OFD Sender: No OFD packet to send [06:13:42]OFD Sender: No OFD packet to send [06:13:47]OFD Sender: No OFD packet to send [06:13:52]OFD Sender: No OFD packet to send [06:13:57]OFD Sender: No OFD packet to send [06:14:02]OFD Sender: No OFD packet to send [06:14:07]OFD Sender: No OFD packet to send [06:14:12]OFD Sender: No OFD packet to send [06:14:17]OFD Sender: No OFD packet to send [06:14:22]OFD Sender: No OFD packet to send [06:14:27]OFD Sender: No OFD packet to send [06:14:32]OFD Sender: No OFD packet to send [06:14:37]OFD Sender: No OFD packet to send [06:14:42]OFD Sender: No OFD packet to send [06:14:47]OFD Sender: No OFD packet to send [06:14:52]OFD Sender: No OFD packet to send [06:14:57]OFD Sender: No OFD packet to send [06:15:02]OFD Sender: No OFD packet to send [06:15:07]OFD Sender: No OFD packet to send [06:15:12]OFD Sender: No OFD packet to send [06:15:17]OFD Sender: No OFD packet to send [06:15:22]OFD Sender: No OFD packet to send [06:15:27]OFD Sender: No OFD packet to send [06:15:32]OFD Sender: No OFD packet to send [06:15:37]OFD Sender: No OFD packet to send [06:15:42]OFD Sender: No OFD packet to send [06:15:47]OFD Sender: No OFD packet to send [06:15:52]OFD Sender: No OFD packet to send [06:15:57]OFD Sender: No OFD packet to send [06:16:02]OFD Sender: No OFD packet to send [06:16:07]OFD Sender: No OFD packet to send [06:16:12]OFD Sender: No OFD packet to send [06:16:17]OFD Sender: No OFD packet to send [06:16:22]OFD Sender: No OFD packet to send [06:16:27]OFD Sender: No OFD packet to send [06:16:32]OFD Sender: No OFD packet to send [06:16:37]OFD Sender: No OFD packet to send [06:16:42]OFD Sender: No OFD packet to send [06:16:47]OFD Sender: No OFD packet to send [06:16:52]OFD Sender: No OFD packet to send [06:16:57]OFD Sender: No OFD packet to send [06:17:02]OFD Sender: No OFD packet to send [06:17:07]OFD Sender: No OFD packet to send [06:17:12]OFD Sender: No OFD packet to send [06:17:17]OFD Sender: No OFD packet to send [06:17:22]OFD Sender: No OFD packet to send [06:17:27]OFD Sender: No OFD packet to send [06:17:32]OFD Sender: No OFD packet to send [06:17:37]OFD Sender: No OFD packet to send [06:17:42]OFD Sender: No OFD packet to send [06:17:47]OFD Sender: No OFD packet to send [06:17:52]OFD Sender: No OFD packet to send [06:17:57]OFD Sender: No OFD packet to send [06:18:02]OFD Sender: No OFD packet to send [06:18:07]OFD Sender: No OFD packet to send [06:18:12]OFD Sender: No OFD packet to send [06:18:17]OFD Sender: No OFD packet to send [06:18:22]OFD Sender: No OFD packet to send [06:18:27]OFD Sender: No OFD packet to send [06:18:32]OFD Sender: No OFD packet to send [06:18:34]accept exits with 7 [06:18:34]New connection [06:18:34]New thread 3067338084 created [06:18:34]Thread 3067481444 joined [06:18:34]Waiting for new connection... [06:18:34] Sock 7.Parse request [06:18:34]Sock 7.Check first char [06:18:34]Sock 7.First char is OK [06:18:34]request: POST /json_proto HTTP/1.0 [06:18:34]Method: POST [06:18:34]URL: /json_proto [06:18:34]Method is POST - this is cgi request [06:18:34]url: /json_proto [06:18:34]query_string will be loaded in cgi processing [06:18:34]execute_cgi json_proto POST (null) [06:18:34]execute_cgi path=json_proto method=POST [06:18:34]POST find Content-Length [06:18:34]Host: 172.17.62.5:8080 [06:18:34]Content-Length: 674 [06:18:34]Content-Type: application/json [06:18:34] [06:18:34]POST finish read [06:18:34]Found Content-Length = 674 [06:18:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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:18:34]execute_script... [06:18: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)191294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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:18:34]POST & json_proto [06:18:34]process_json_proto [06:18:34]json parsed OK: [06:18:34]protocol is kg_v1.0 [06:18:34]action value=close_receipt [06:18:34]process_action close_receipt [06:18:34]cmd_close_receipt [06:18:34]MH_GetDate [06:18:34]Write to MH i2c: F0 00 00 3F 15 43 [06:18:34]Write i2c OK [06:18:34]MH_I2C_Read... [06:18:34]Read from MH i2c: F0 [06:18:34]MH_I2C_Read... [06:18:34]Read from MH i2c: F0 09 00 [06:18:34]MH_I2C_Read... [06:18:34]Read from MH i2c: F0 09 00 3F 15 00 BC AF 24 66 F4 E9 65 64 E7 [06:18:34]GetLastDocTimeStamp 1713679586 [06:18:34]current date 1713680316 [06:18:34]FM_GetShiftState [06:18:34]SAM_PROTO_GetShiftState [06:18:34]wFMCommunicate request_size=4 [06:18:34]MH_SAM_APDU [06:18:34]CAPDU: 80 13 01 00 [06:18:34]Write to MH i2c: E2 08 00 40 15 80 13 01 00 00 00 00 00 D2 [06:18:34]Write i2c OK [06:18:34]MH_I2C_Read... [06:18:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:18:34]Read from MH i2c: E2 [06:18:34]MH_I2C_Read... [06:18:34]Read from MH i2c: E2 0E 00 [06:18:34]MH_I2C_Read... [06:18:34]Read from MH i2c: E2 0E 00 40 15 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 19 [06:18:34]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [06:18:34]wFMCommunicate OK [06:18:34]SAM_PROTO_GetShiftState done [06:18:34]FM_GetShiftState done [06:18:34]opened in 1713658965 [06:18:34]opened+sec_in_day 1713745365 [06:18:34]quantity*price = 50009 [06:18:34]sum+1 = 50010 [06:18:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 22 21.04.2024 06:18 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76766 ФПД: 69668395170476 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T061837&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76766&fm=69668395170476&tin=02508201610067®Number=0000000000091573&sum=50000 [06:18:35]StoreToDocumentArchive [06:18:35]shift 372 fd 76766 [06:18:35]save to /storage/0372/doc_00076766 [06:18:35]save last doc name /storage/0372/doc_00076766 to /storage/kkm_last_doc_name [06:18:35]save OK [06:18:35]Clear old archive folders... [06:18:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:18:35]tlvbuf is 018A7080 [06:18:35]SAM_PROTO_ClearQueue [06:18:35]wFMCommunicate request_size=4 [06:18:35]MH_SAM_APDU [06:18:35]CAPDU: 80 09 00 00 [06:18:35]Write to MH i2c: E2 08 00 4D 15 80 09 00 00 00 00 00 00 D4 [06:18:35]Write i2c OK [06:18:35]MH_I2C_Read... [06:18:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:18:35]Read from MH i2c: E2 [06:18:35]MH_I2C_Read... [06:18:35]Read from MH i2c: E2 03 00 [06:18:35]MH_I2C_Read... [06:18:35]Read from MH i2c: E2 03 00 4D 15 00 90 00 D6 [06:18:35]RAPDU: 90 00 [06:18:35]wFMCommunicate OK [06:18:35]SAM_PROTO_ClearQueue done [06:18:35]KKMCreateOFDPacket [06:18:35]OFDProtocolAddRootSTLVToBuf [06:18:35]FM_MakeSignedData [06:18:35]FM_MakeSignedData [06:18:35]SAM_PROTO_SignData [06:18:35]wFMCommunicate request_size=4 [06:18:35]MH_SAM_APDU [06:18:35]CAPDU: 80 0D 01 02 [06:18:35]Write to MH i2c: E2 08 00 4E 15 80 0D 01 02 00 00 00 00 DC [06:18:35]Write i2c OK [06:18:35]MH_I2C_Read... [06:18:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:18:35]Read from MH i2c: E2 [06:18:35]MH_I2C_Read... [06:18:35]Read from MH i2c: E2 03 00 [06:18:35]MH_I2C_Read... [06:18:35]Read from MH i2c: E2 03 00 4E 15 00 90 00 D7 [06:18:35]RAPDU: 90 00 [06:18:35]wFMCommunicate OK [06:18:35]wFMCommunicate request_size=255 [06:18:35]MH_SAM_APDU [06:18:35]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 BD AF 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DE 2B 01 00 35 04 06 00 3F 5C EF F2 [06:18:35]Write to MH i2c: E2 02 01 4F 15 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 16 00 00 00 F4 03 04 00 BD AF 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DE 2B 01 00 35 04 06 00 3F 5C EF F2 00 00 8D [06:18:35]Write i2c OK [06:18:35]MH_I2C_Read... [06:18:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:18:35]Read from MH i2c: E2 [06:18:35]MH_I2C_Read... [06:18:35]Read from MH i2c: E2 03 00 [06:18:35]MH_I2C_Read... [06:18:35]Read from MH i2c: E2 03 00 4F 15 00 90 00 D8 [06:18:35]RAPDU: 90 00 [06:18:35]wFMCommunicate OK [06:18:35]wFMCommunicate request_size=7 [06:18:35]MH_SAM_APDU [06:18:35]CAPDU: 80 0D 02 02 02 3A AC [06:18:35]Write to MH i2c: E2 0A 00 50 15 80 0D 02 02 02 00 3A AC 00 00 C9 [06:18:35]Write i2c OK [06:18:35]MH_I2C_Read... [06:18:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:18:35]Read from MH i2c: E2 [06:18:35]MH_I2C_Read... [06:18:35]Read from MH i2c: E2 03 00 [06:18:35]MH_I2C_Read... [06:18:35]Read from MH i2c: E2 03 00 50 15 00 90 00 D9 [06:18:35]RAPDU: 90 00 [06:18:35]wFMCommunicate OK [06:18:35]wFMCommunicate request_size=4 [06:18:35]MH_SAM_APDU [06:18:35]CAPDU: 80 0D 03 02 [06:18:35]Write to MH i2c: E2 08 00 51 15 80 0D 03 02 00 00 00 00 E1 [06:18:35]Write i2c OK [06:18:35]MH_I2C_Read... [06:18:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:18:35]Read from MH i2c: E2 [06:18:35]MH_I2C_Read... [06:18:35]Read from MH i2c: E2 0B 00 [06:18:35]MH_I2C_Read... [06:18:35]Read from MH i2c: E2 0B 00 51 15 00 3F 71 98 BB 36 15 D4 95 90 00 99 [06:18:35]RAPDU: 3F 71 98 BB 36 15 D4 95 90 00 [06:18:35]wFMCommunicate OK [06:18:35]SAM_PROTO_SignData done [06:18:35]FM_MakeSignedData done [06:18:35]CreateOFDProtocolMessage [06:18:35]wFMCommunicate request_size=4 [06:18:35]MH_SAM_APDU [06:18:35]CAPDU: 80 11 00 00 [06:18:35]Write to MH i2c: E2 08 00 52 15 80 11 00 00 00 00 00 00 E1 [06:18:35]Write i2c OK [06:18:35]MH_I2C_Read... [06:18:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:18:35]Read from MH i2c: E2 [06:18:35]MH_I2C_Read... [06:18:35]Read from MH i2c: E2 17 00 [06:18:35]MH_I2C_Read... [06:18:35]Read from MH i2c: E2 17 00 52 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 34 [06:18:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [06:18:35]wFMCommunicate OK [06:18:35]CreateOFDProtocolMessage done [06:18:35]OFDSenderStorePacket 76766 [06:18:35]StoreOFDPacket docnum=76766 [06:18:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 C1 F4 04 01 7A 40 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 BD AF 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DE 2B 01 00 35 04 06 00 3F 5C EF F2 3A AC 3F 71 98 BB 36 15 D4 95 [06:18:35]CheckFolder [06:18:35]dirname=/storage/ofd_packets [06:18:35]CheckFolder done [06:18:35]ProducePacketName [06:18:35]name=ofd_packets/00076766 [06:18:35]NVStorageSaveData ofd_packets/00076766 [06:18:35]File name is /storage/ofd_packets/00076766 [06:18:35]Write 298 bytes [06:18:35]NVStorageSaveData done [06:18:35]OFDSenderStorePacket done [06:18:35]KKMCreateOFDPacket done [06:18:35]NVStorageSaveData kkm_last_timestamp [06:18:35]File name is /storage/kkm_last_timestamp [06:18:35]Write 4 bytes [06:18:35]NVStorageSaveData done [06:18:35]ExternCall_PrintAddStr [06:18:35]wPrintStart [06:18:35]Write to MH i2c: 01 00 00 53 15 68 [06:18:35]Write i2c OK [06:18:35]MH_I2C_Read... [06:18:35]Read from MH i2c: 01 [06:18:35]MH_I2C_Read... [06:18:35]Read from MH i2c: 01 07 00 [06:18:35]MH_I2C_Read... [06:18:35]Read from MH i2c: 01 07 00 53 15 00 00 00 00 00 FF 0F 7D [06:18:35]RasterBufferAndPrint [06:18:35]line Счет N : (1)191294 [06:18:35]line ИНН: 02508201610067 [06:18:35]line Контрольно-Кассовый Чек [06:18:35]line ПРОДАЖА [06:18:35]line ТРК (МРК, ГНК) : 13 [06:18:35]line Товар: 2710194210 [06:18:35]line ДТ-К-5 [06:18:35]line 6.860 * 72.90 [06:18:35]line = 500.09 [06:18:35]line НДС 12% НСП 1% [06:18:35]line > о реализуемом товаре [06:18:35]line ОКРУГЛЕНИЕ: -0.09 [06:18:35]line ИТОГО: 500.00 [06:18:35]line Внесено: 500.00 [06:18:35]line СДАЧА: 0.00 [06:18:35]line НСП 1% : 4.43 [06:18:35]line НДС 12% : 53.11 [06:18:35]line Наличными: 500.00 [06:18:35]line Безнал.: 0.00 [06:18:35]line Место: АЗС № 106 "Партнер Нефть" [06:18:35]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [06:18:35]line СНО: Общий режим [06:18:35]line Чек 22 21.04.2024 06:18 [06:18:35]line Смена: 372 ФФД: 1.0 [06:18:35]line ЗНМ: 0300000141 [06:18:35]line РНМ: 0000000000091573 [06:18:35]line Версия ККМ: 001 [06:18:35]line ФМ: 0000000000874652 [06:18:35]line ФД: 76766 [06:18:35]line ФПД: 69668395170476 [06:18:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T061837&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76766&fm=69668395170476&tin=02508201610067®Number=0000000000091573&sum=50000 [06:18:35]written 0, free lines is 4095 [06:18:35]OFD Sender: Processing packet 76766 [packets to send 129, broken 128] [06:18:35]ProducePacketName [06:18:35]name=ofd_packets/00076766 [06:18:35]OFD Sender: To server: pG, [06:18:35]CommunicateWithHost lk.salyk.kg:30040 [06:18:35]ConnectInit lk.salyk.kg [06:18:35]Connected sock=10 [06:18:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 C1 F4 04 01 7A 40 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 BD AF 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DE 2B 01 00 35 04 06 00 3F 5C EF F2 3A AC 3F 71 98 BB 36 15 D4 95 [06:18:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 11 39 47 00 74 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 34 36 35 32 10 04 04 00 DE 2B 01 00 F4 03 04 00 42 57 24 66 B6 04 01 00 00 57 5A 9C 98 F3 22 F9 F5 [06:18:36]CommunicateWithHost err = 0 [06:18:36]CheckOFDResponse [06:18:36]1017 (14) - 77093643461234 [06:18:36]1041 (16) - 0000000000874652 [06:18:36]1040 (4) - 76766 [06:18:36]1012 (4) - 21.04.2024 00:01 [06:18:36]1206 (1) - 0 [06:18:36]OFD Sender: Remove packet 76766 [06:18:36]ProducePacketName [06:18:36]name=ofd_packets/00076766 [06:18:36]NVStorageDeleteData [06:18:36]Write to MH i2c: 01 00 00 7D 15 92 [06:18:36]Write i2c OK [06:18:36]MH_I2C_Read... [06:18:36]Read from MH i2c: 01 [06:18:36]MH_I2C_Read... [06:18:36]Read from MH i2c: 01 07 00 [06:18:36]MH_I2C_Read... [06:18:36]Read from MH i2c: 01 07 00 7D 15 00 00 00 00 00 EB 0C 90 [06:18:36]RasterBufferAndPrint [06:18:36]line [06:18:36]line [06:18:36]line [06:18:36]line [06:18:36]line [06:18:36]written 0, free lines is 3313 [06:18:36]MH_Cut [06:18:36]Write to MH i2c: D1 01 00 84 15 01 6B [06:18:36]Write i2c OK [06:18:36]MH_I2C_Read... [06:18:36]Read from MH i2c: D1 [06:18:36]MH_I2C_Read... [06:18:36]Read from MH i2c: D1 01 00 [06:18:36]MH_I2C_Read... [06:18:36]Read from MH i2c: D1 01 00 84 15 00 6A [06:18:36]Write to MH i2c: 01 00 00 85 15 9A [06:18:36]Write i2c OK [06:18:36]MH_I2C_Read... [06:18:36]OFD Sender: No OFD packet to send [06:18:36]*** Cut start [06:18:36]*** Partial cut [06:18:36]*** CUTSNS_PIN = 1 [06:18:37]*** CUTSNS_PIN = 0 [06:18:37]*** Brake cut motor [06:18:37]Read from MH i2c: 01 [06:18:37]MH_I2C_Read... [06:18:37]*** Stop cut motor [06:18:37]*** Cut end [06:18:37]Read from MH i2c: 01 07 00 [06:18:37]MH_I2C_Read... [06:18:37]Read from MH i2c: 01 07 00 85 15 00 00 00 00 00 FF 0F AF [06:18:37]process_action close_receipt done [06:18:37]requested_data is exist [06:18:37]produce_requested_data [06:18:37]requested_item fm.sn is exist - process it [06:18:37]wFMCommunicate request_size=4 [06:18:37]MH_SAM_APDU [06:18:37]CAPDU: 80 11 00 00 [06:18:37]Write to MH i2c: E2 08 00 86 15 80 11 00 00 00 00 00 00 15 [06:18:37]Write i2c OK [06:18:37]MH_I2C_Read... [06:18:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:18:37]Read from MH i2c: E2 [06:18:37]MH_I2C_Read... [06:18:37]Read from MH i2c: E2 17 00 [06:18:37]MH_I2C_Read... [06:18:37]Read from MH i2c: E2 17 00 86 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 68 [06:18:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [06:18:37]wFMCommunicate OK [06:18:37]requested_item fd.num is exist - process it [06:18:37]SAM_PROTO_GetFieldsCounters [06:18:37]wFMCommunicate request_size=4 [06:18:37]MH_SAM_APDU [06:18:37]CAPDU: 80 13 00 00 [06:18:37]Write to MH i2c: E2 08 00 87 15 80 13 00 00 00 00 00 00 18 [06:18:37]Write i2c OK [06:18:37]MH_I2C_Read... [06:18:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:18:37]Read from MH i2c: E2 [06:18:37]MH_I2C_Read... [06:18:37]Read from MH i2c: E2 62 00 [06:18:37]MH_I2C_Read... [06:18:37]Read from MH i2c: E2 62 00 87 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DE 2B 01 00 0E 04 04 00 74 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 FA [06:18: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DE 2B 01 00 0E 04 04 00 74 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 [06:18:37]wFMCommunicate OK [06:18:37]SAM_PROTO_GetFieldsCounters done [06:18:37]requested_item shift.num is exist - process it [06:18:37]requested_item shift.opened is exist - process it [06:18:37]req_shift_opened [06:18:37]FM_GetShiftState [06:18:37]SAM_PROTO_GetShiftState [06:18:37]wFMCommunicate request_size=4 [06:18:37]MH_SAM_APDU [06:18:37]CAPDU: 80 13 01 00 [06:18:37]Write to MH i2c: E2 08 00 88 15 80 13 01 00 00 00 00 00 1A [06:18:37]Write i2c OK [06:18:37]MH_I2C_Read... [06:18:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:18:37]Read from MH i2c: E2 [06:18:37]MH_I2C_Read... [06:18:37]Read from MH i2c: E2 0E 00 [06:18:37]MH_I2C_Read... [06:18:37]Read from MH i2c: E2 0E 00 88 15 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 61 [06:18:37]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [06:18:37]wFMCommunicate OK [06:18:37]SAM_PROTO_GetShiftState done [06:18:37]FM_GetShiftState done [06:18:37]req_shift_opened done [06:18:37]requested_item shift.open_date is exist - process it [06:18:37]req_shift_open_date [06:18:37]req_shift_open_date done [06:18:37]produce_requested_data done [06:18:37]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76766,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [06:18:37]process_action_free close_receipt [06:18:37]json_value_free [06:18:37]json_value_free done [06:18:37]process_json_proto returns [06:18:37]Send response to host [06:18:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76766,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [06:18:37]free response buf [06:18:37]execute_script done [06:18:37]execute_script returns [06:18:37]free content buf [06:18:37]Sock 7.Close socket [06:18:37]Sock 7.Thread stoped [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:37]OFD Sender: No OFD packet to send [06:23:42]OFD Sender: No OFD packet to send [06:23:47]OFD Sender: No OFD packet to send [06:23:52]OFD Sender: No OFD packet to send [06:23:57]OFD Sender: No OFD packet to send [06:24:02]OFD Sender: No OFD packet to send [06:24:07]OFD Sender: No OFD packet to send [06:24:12]OFD Sender: No OFD packet to send [06:24:17]OFD Sender: No OFD packet to send [06:24:22]OFD Sender: No OFD packet to send [06:24:27]OFD Sender: No OFD packet to send [06:24:32]OFD Sender: No OFD packet to send [06:24:37]OFD Sender: No OFD packet to send [06:24:42]OFD Sender: No OFD packet to send [06:24:47]OFD Sender: No OFD packet to send [06:24:52]OFD Sender: No OFD packet to send [06:24:57]OFD Sender: No OFD packet to send [06:25:02]OFD Sender: No OFD packet to send [06:25:07]OFD Sender: No OFD packet to send [06:25:12]OFD Sender: No OFD packet to send [06:25:17]OFD Sender: No OFD packet to send [06:25:22]OFD Sender: No OFD packet to send [06:25:27]OFD Sender: No OFD packet to send [06:25:32]OFD Sender: No OFD packet to send [06:25:37]OFD Sender: No OFD packet to send [06:25:42]OFD Sender: No OFD packet to send [06:25:47]OFD Sender: No OFD packet to send [06:25:52]OFD Sender: No OFD packet to send [06:25:57]OFD Sender: No OFD packet to send [06:26:01]accept exits with 9 [06:26:01]New connection [06:26:01]New thread 3067481444 created [06:26:01]Thread 3067338084 joined [06:26:01]Waiting for new connection... [06:26:01] Sock 9.Parse request [06:26:01]Sock 9.Check first char [06:26:01]Sock 9.First char is OK [06:26:01]request: POST /json_proto HTTP/1.0 [06:26:01]Method: POST [06:26:01]URL: /json_proto [06:26:01]Method is POST - this is cgi request [06:26:01]url: /json_proto [06:26:01]query_string will be loaded in cgi processing [06:26:01]execute_cgi json_proto POST (null) [06:26:01]execute_cgi path=json_proto method=POST [06:26:01]POST find Content-Length [06:26:01]Host: 172.17.62.5:8080 [06:26:01]Content-Length: 990 [06:26:01]Content-Type: application/json [06:26:01] [06:26:01]POST finish read [06:26:01]Found Content-Length = 990 [06:26:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 31.550, "sum" : 1000.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 31.55 \u0441\u043E\u043C", "deposit" : 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:26:01]execute_script... [06:26: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)191295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 31.550, "sum" : 1000.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 31.55 \u0441\u043E\u043C", "deposit" : 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:26:01]POST & json_proto [06:26:01]process_json_proto [06:26:01]json parsed OK: [06:26:01]protocol is kg_v1.0 [06:26:01]action value=close_receipt [06:26:01]process_action close_receipt [06:26:01]cmd_close_receipt [06:26:01]MH_GetDate [06:26:01]Write to MH i2c: F0 00 00 89 15 8D [06:26:01]Write i2c OK [06:26:01]MH_I2C_Read... [06:26:01]Read from MH i2c: F0 [06:26:01]MH_I2C_Read... [06:26:01]Read from MH i2c: F0 09 00 [06:26:01]MH_I2C_Read... [06:26:01]Read from MH i2c: F0 09 00 89 15 00 7C B1 24 66 F4 E9 65 64 F3 [06:26:01]GetLastDocTimeStamp 1713680317 [06:26:01]current date 1713680764 [06:26:01]FM_GetShiftState [06:26:01]SAM_PROTO_GetShiftState [06:26:01]wFMCommunicate request_size=4 [06:26:01]MH_SAM_APDU [06:26:01]CAPDU: 80 13 01 00 [06:26:01]Write to MH i2c: E2 08 00 8A 15 80 13 01 00 00 00 00 00 1C [06:26:01]Write i2c OK [06:26:01]MH_I2C_Read... [06:26:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:26:01]Read from MH i2c: E2 [06:26:01]MH_I2C_Read... [06:26:01]Read from MH i2c: E2 0E 00 [06:26:01]MH_I2C_Read... [06:26:01]Read from MH i2c: E2 0E 00 8A 15 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 63 [06:26:01]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [06:26:01]wFMCommunicate OK [06:26:01]SAM_PROTO_GetShiftState done [06:26:01]FM_GetShiftState done [06:26:01]opened in 1713658965 [06:26:01]opened+sec_in_day 1713745365 [06:26:01]quantity*price = 100013 [06:26:01]sum+1 = 100015 [06:26:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 23 21.04.2024 06:26 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 31.55 сом ФМ: 0000000000874652 ФД: 76767 ФПД: 204852959420632 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T062604&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76767&fm=204852959420632&tin=02508201610067®Number=0000000000091573&sum=100000 [06:26:02]StoreToDocumentArchive [06:26:02]shift 372 fd 76767 [06:26:02]save to /storage/0372/doc_00076767 [06:26:02]save last doc name /storage/0372/doc_00076767 to /storage/kkm_last_doc_name [06:26:02]save OK [06:26:02]Clear old archive folders... [06:26:02]ProcessDocumentItem done err = 0, tmpTLVsize=250 [06:26:02]tlvbuf is 018B5360 [06:26:02]SAM_PROTO_ClearQueue [06:26:02]wFMCommunicate request_size=4 [06:26:02]MH_SAM_APDU [06:26:02]CAPDU: 80 09 00 00 [06:26:02]Write to MH i2c: E2 08 00 97 15 80 09 00 00 00 00 00 00 1E [06:26:02]Write i2c OK [06:26:02]MH_I2C_Read... [06:26:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:26:02]Read from MH i2c: E2 [06:26:02]MH_I2C_Read... [06:26:02]Read from MH i2c: E2 03 00 [06:26:02]MH_I2C_Read... [06:26:02]Read from MH i2c: E2 03 00 97 15 00 90 00 20 [06:26:02]RAPDU: 90 00 [06:26:02]wFMCommunicate OK [06:26:02]SAM_PROTO_ClearQueue done [06:26:02]KKMCreateOFDPacket [06:26:02]OFDProtocolAddRootSTLVToBuf [06:26:02]FM_MakeSignedData [06:26:02]FM_MakeSignedData [06:26:02]SAM_PROTO_SignData [06:26:02]wFMCommunicate request_size=4 [06:26:02]MH_SAM_APDU [06:26:02]CAPDU: 80 0D 01 02 [06:26:02]Write to MH i2c: E2 08 00 98 15 80 0D 01 02 00 00 00 00 26 [06:26:02]Write i2c OK [06:26:02]MH_I2C_Read... [06:26:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:26:02]Read from MH i2c: E2 [06:26:02]MH_I2C_Read... [06:26:02]Read from MH i2c: E2 03 00 [06:26:02]MH_I2C_Read... [06:26:02]Read from MH i2c: E2 03 00 98 15 00 90 00 21 [06:26:02]RAPDU: 90 00 [06:26:02]wFMCommunicate OK [06:26:02]wFMCommunicate request_size=255 [06:26:02]MH_SAM_APDU [06:26:02]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 7C B1 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DF 2B 01 00 35 04 06 00 BA 50 [06:26:02]Write to MH i2c: E2 02 01 99 15 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 7C B1 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DF 2B 01 00 35 04 06 00 BA 50 00 00 F7 [06:26:02]Write i2c OK [06:26:02]MH_I2C_Read... [06:26:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:26:02]Read from MH i2c: E2 [06:26:02]MH_I2C_Read... [06:26:02]Read from MH i2c: E2 03 00 [06:26:02]MH_I2C_Read... [06:26:02]Read from MH i2c: E2 03 00 99 15 00 90 00 22 [06:26:02]RAPDU: 90 00 [06:26:02]wFMCommunicate OK [06:26:02]wFMCommunicate request_size=9 [06:26:02]MH_SAM_APDU [06:26:02]CAPDU: 80 0D 02 02 04 0B E0 A0 D8 [06:26:02]Write to MH i2c: E2 0C 00 9A 15 80 0D 02 02 04 00 0B E0 A0 D8 00 00 94 [06:26:02]Write i2c OK [06:26:02]MH_I2C_Read... [06:26:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:26:02]Read from MH i2c: E2 [06:26:02]MH_I2C_Read... [06:26:02]Read from MH i2c: E2 03 00 [06:26:02]MH_I2C_Read... [06:26:02]Read from MH i2c: E2 03 00 9A 15 00 90 00 23 [06:26:02]RAPDU: 90 00 [06:26:02]wFMCommunicate OK [06:26:02]wFMCommunicate request_size=4 [06:26:02]MH_SAM_APDU [06:26:02]CAPDU: 80 0D 03 02 [06:26:02]Write to MH i2c: E2 08 00 9B 15 80 0D 03 02 00 00 00 00 2B [06:26:02]Write i2c OK [06:26:02]MH_I2C_Read... [06:26:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:26:02]Read from MH i2c: E2 [06:26:02]MH_I2C_Read... [06:26:02]Read from MH i2c: E2 0B 00 [06:26:02]MH_I2C_Read... [06:26:02]Read from MH i2c: E2 0B 00 9B 15 00 5A 65 AF FD 7D B7 FE 5E 90 00 27 [06:26:02]RAPDU: 5A 65 AF FD 7D B7 FE 5E 90 00 [06:26:02]wFMCommunicate OK [06:26:02]SAM_PROTO_SignData done [06:26:02]FM_MakeSignedData done [06:26:02]CreateOFDProtocolMessage [06:26:02]wFMCommunicate request_size=4 [06:26:02]MH_SAM_APDU [06:26:02]CAPDU: 80 11 00 00 [06:26:02]Write to MH i2c: E2 08 00 9C 15 80 11 00 00 00 00 00 00 2B [06:26:02]Write i2c OK [06:26:02]MH_I2C_Read... [06:26:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:26:02]Read from MH i2c: E2 [06:26:02]MH_I2C_Read... [06:26:03]Read from MH i2c: E2 17 00 [06:26:03]MH_I2C_Read... [06:26:03]Read from MH i2c: E2 17 00 9C 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 7E [06:26:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [06:26:03]wFMCommunicate OK [06:26:03]CreateOFDProtocolMessage done [06:26:03]OFDSenderStorePacket 76767 [06:26:03]StoreOFDPacket docnum=76767 [06:26:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 41 CB 06 01 F4 5B 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 7C B1 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DF 2B 01 00 35 04 06 00 BA 50 0B E0 A0 D8 5A 65 AF FD 7D B7 FE 5E [06:26:03]CheckFolder [06:26:03]dirname=/storage/ofd_packets [06:26:03]CheckFolder done [06:26:03]ProducePacketName [06:26:03]name=ofd_packets/00076767 [06:26:03]NVStorageSaveData ofd_packets/00076767 [06:26:03]File name is /storage/ofd_packets/00076767 [06:26:03]Write 300 bytes [06:26:03]NVStorageSaveData done [06:26:03]OFDSenderStorePacket done [06:26:03]KKMCreateOFDPacket done [06:26:03]NVStorageSaveData kkm_last_timestamp [06:26:03]File name is /storage/kkm_last_timestamp [06:26:03]Write 4 bytes [06:26:03]NVStorageSaveData done [06:26:03]ExternCall_PrintAddStr [06:26:03]wPrintStart [06:26:03]Write to MH i2c: 01 00 00 9D 15 B2 [06:26:03]Write i2c OK [06:26:03]MH_I2C_Read... [06:26:03]Read from MH i2c: 01 [06:26:03]MH_I2C_Read... [06:26:03]Read from MH i2c: 01 07 00 [06:26:03]MH_I2C_Read... [06:26:03]Read from MH i2c: 01 07 00 9D 15 00 00 00 00 00 FF 0F C7 [06:26:03]RasterBufferAndPrint [06:26:03]line Счет N : (1)191295 [06:26:03]line ИНН: 02508201610067 [06:26:03]line Контрольно-Кассовый Чек [06:26:03]line ПРОДАЖА [06:26:03]line ТРК (МРК, ГНК) : 71 [06:26:03]line Товар: 2711190000 [06:26:03]line ГАЗ-К-5 [06:26:03]line 31.550 * 31.70 [06:26:03]line = 1000.14 [06:26:03]line НДС 12% НСП 1% [06:26:03]line > о реализуемом товаре [06:26:03]line ОКРУГЛЕНИЕ: -0.14 [06:26:03]line ИТОГО: 1000.00 [06:26:03]line Внесено: 1000.00 [06:26:03]line СДАЧА: 0.00 [06:26:03]line НСП 1% : 8.85 [06:26:03]line НДС 12% : 106.21 [06:26:03]line Наличными: 1000.00 [06:26:03]line Безнал.: 0.00 [06:26:03]line Место: АЗС № 106 "Партнер Нефть" [06:26:03]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [06:26:03]line СНО: Общий режим [06:26:03]line Чек 23 21.04.2024 06:26 [06:26:03]line Смена: 372 ФФД: 1.0 [06:26:03]line ЗНМ: 0300000141 [06:26:03]line РНМ: 0000000000091573 [06:26:03]line Версия ККМ: 001 [06:26:03]line [06:26:03]line Дисконтная программа [06:26:03]line СУГ [06:26:03]line номер 106 [06:26:03]line сэкономлено 31.55 сом [06:26:03]line ФМ: 0000000000874652 [06:26:03]line ФД: 76767 [06:26:03]line ФПД: 204852959420632 [06:26:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T062604&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76767&fm=204852959420632&tin=02508201610067®Number=0000000000091573&sum=100000 [06:26:03]OFD Sender: Processing packet 76767 [packets to send 129, broken 128] [06:26:03]ProducePacketName [06:26:03]name=ofd_packets/00076767 [06:26:03]OFD Sender: To server: pG, [06:26:03]CommunicateWithHost lk.salyk.kg:30040 [06:26:03]ConnectInit lk.salyk.kg [06:26:03]written 0, free lines is 4095 [06:26:03]Connected sock=11 [06:26:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 41 CB 06 01 F4 5B 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 7C B1 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DF 2B 01 00 35 04 06 00 BA 50 0B E0 A0 D8 5A 65 AF FD 7D B7 FE 5E [06:26:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 40 10 47 00 98 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 34 36 35 32 10 04 04 00 DF 2B 01 00 F4 03 04 00 02 59 24 66 B6 04 01 00 00 4B DF 94 B5 6C FC 97 C4 [06:26:03]CommunicateWithHost err = 0 [06:26:03]CheckOFDResponse [06:26:03]1017 (14) - 77093643461234 [06:26:03]1041 (16) - 0000000000874652 [06:26:03]1040 (4) - 76767 [06:26:03]1012 (4) - 21.04.2024 00:08 [06:26:03]1206 (1) - 0 [06:26:03]OFD Sender: Remove packet 76767 [06:26:03]ProducePacketName [06:26:03]name=ofd_packets/00076767 [06:26:03]NVStorageDeleteData [06:26:03]Write to MH i2c: 01 00 00 CC 15 E1 [06:26:03]Write i2c OK [06:26:03]MH_I2C_Read... [06:26:03]Read from MH i2c: 01 [06:26:03]MH_I2C_Read... [06:26:03]Read from MH i2c: 01 07 00 [06:26:03]MH_I2C_Read... [06:26:03]Read from MH i2c: 01 07 00 CC 15 00 00 00 00 00 97 0C 8B [06:26:03]RasterBufferAndPrint [06:26:03]line [06:26:03]line [06:26:03]line [06:26:03]line [06:26:03]line [06:26:03]written 0, free lines is 3229 [06:26:03]MH_Cut [06:26:03]Write to MH i2c: D1 01 00 D3 15 01 BA [06:26:03]Write i2c OK [06:26:03]MH_I2C_Read... [06:26:03]Read from MH i2c: D1 [06:26:03]MH_I2C_Read... [06:26:03]Read from MH i2c: D1 01 00 [06:26:03]MH_I2C_Read... [06:26:03]Read from MH i2c: D1 01 00 D3 15 00 B9 [06:26:03]Write to MH i2c: 01 00 00 D4 15 E9 [06:26:03]Write i2c OK [06:26:03]MH_I2C_Read... [06:26:04]OFD Sender: No OFD packet to send [06:26:04]*** Cut start [06:26:04]*** Partial cut [06:26:04]*** CUTSNS_PIN = 1 [06:26:04]*** CUTSNS_PIN = 0 [06:26:04]*** Brake cut motor [06:26:05]Read from MH i2c: 01 [06:26:05]MH_I2C_Read... [06:26:05]*** Stop cut motor [06:26:05]*** Cut end [06:26:05]Read from MH i2c: 01 07 00 [06:26:05]MH_I2C_Read... [06:26:05]Read from MH i2c: 01 07 00 D4 15 00 00 00 00 00 FF 0F FE [06:26:05]process_action close_receipt done [06:26:05]requested_data is exist [06:26:05]produce_requested_data [06:26:05]requested_item fm.sn is exist - process it [06:26:05]wFMCommunicate request_size=4 [06:26:05]MH_SAM_APDU [06:26:05]CAPDU: 80 11 00 00 [06:26:05]Write to MH i2c: E2 08 00 D5 15 80 11 00 00 00 00 00 00 64 [06:26:05]Write i2c OK [06:26:05]MH_I2C_Read... [06:26:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:26:05]Read from MH i2c: E2 [06:26:05]MH_I2C_Read... [06:26:05]Read from MH i2c: E2 17 00 [06:26:05]MH_I2C_Read... [06:26:05]Read from MH i2c: E2 17 00 D5 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 B7 [06:26:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [06:26:05]wFMCommunicate OK [06:26:05]requested_item fd.num is exist - process it [06:26:05]SAM_PROTO_GetFieldsCounters [06:26:05]wFMCommunicate request_size=4 [06:26:05]MH_SAM_APDU [06:26:05]CAPDU: 80 13 00 00 [06:26:05]Write to MH i2c: E2 08 00 D6 15 80 13 00 00 00 00 00 00 67 [06:26:05]Write i2c OK [06:26:05]MH_I2C_Read... [06:26:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:26:05]Read from MH i2c: E2 [06:26:05]MH_I2C_Read... [06:26:05]Read from MH i2c: E2 62 00 [06:26:05]MH_I2C_Read... [06:26:05]Read from MH i2c: E2 62 00 D6 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DF 2B 01 00 0E 04 04 00 74 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 4D [06:26: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DF 2B 01 00 0E 04 04 00 74 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 [06:26:05]wFMCommunicate OK [06:26:05]SAM_PROTO_GetFieldsCounters done [06:26:05]requested_item shift.num is exist - process it [06:26:05]requested_item shift.opened is exist - process it [06:26:05]req_shift_opened [06:26:05]FM_GetShiftState [06:26:05]SAM_PROTO_GetShiftState [06:26:05]wFMCommunicate request_size=4 [06:26:05]MH_SAM_APDU [06:26:05]CAPDU: 80 13 01 00 [06:26:05]Write to MH i2c: E2 08 00 D7 15 80 13 01 00 00 00 00 00 69 [06:26:05]Write i2c OK [06:26:05]MH_I2C_Read... [06:26:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:26:05]Read from MH i2c: E2 [06:26:05]MH_I2C_Read... [06:26:05]Read from MH i2c: E2 0E 00 [06:26:05]MH_I2C_Read... [06:26:05]Read from MH i2c: E2 0E 00 D7 15 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 B0 [06:26:05]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [06:26:05]wFMCommunicate OK [06:26:05]SAM_PROTO_GetShiftState done [06:26:05]FM_GetShiftState done [06:26:05]req_shift_opened done [06:26:05]requested_item shift.open_date is exist - process it [06:26:05]req_shift_open_date [06:26:05]req_shift_open_date done [06:26:05]produce_requested_data done [06:26:05]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76767,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [06:26:05]process_action_free close_receipt [06:26:05]json_value_free [06:26:05]json_value_free done [06:26:05]process_json_proto returns [06:26:05]Send response to host [06:26:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76767,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [06:26:05]free response buf [06:26:05]execute_script done [06:26:05]execute_script returns [06:26:05]free content buf [06:26:05]Sock 9.Close socket [06:26:05]Sock 9.Thread stoped [06:26:09]OFD Sender: No OFD packet to send [06:26:14]OFD Sender: No OFD packet to send [06:26:19]OFD Sender: No OFD packet to send [06:26:24]OFD Sender: No OFD packet to send [06:26:29]OFD Sender: No OFD packet to send [06:26:34]OFD Sender: No OFD packet to send [06:26:39]OFD Sender: No OFD packet to send [06:26:44]OFD Sender: No OFD packet to send [06:26:49]OFD Sender: No OFD packet to send [06:26:54]OFD Sender: No OFD packet to send [06:26:59]OFD Sender: No OFD packet to send [06:27:04]OFD Sender: No OFD packet to send [06:27:09]OFD Sender: No OFD packet to send [06:27:14]OFD Sender: No OFD packet to send [06:27:19]OFD Sender: No OFD packet to send [06:27:24]OFD Sender: No OFD packet to send [06:27:29]OFD Sender: No OFD packet to send [06:27:34]OFD Sender: No OFD packet to send [06:27:39]OFD Sender: No OFD packet to send [06:27:44]OFD Sender: No OFD packet to send [06:27:49]OFD Sender: No OFD packet to send [06:27:54]OFD Sender: No OFD packet to send [06:27:59]OFD Sender: No OFD packet to send [06:28:04]OFD Sender: No OFD packet to send [06:28:09]OFD Sender: No OFD packet to send [06:28:14]OFD Sender: No OFD packet to send [06:28:19]OFD Sender: No OFD packet to send [06:28:24]OFD Sender: No OFD packet to send [06:28:29]OFD Sender: No OFD packet to send [06:28:34]OFD Sender: No OFD packet to send [06:28:39]OFD Sender: No OFD packet to send [06:28:44]OFD Sender: No OFD packet to send [06:28:49]OFD Sender: No OFD packet to send [06:28:54]OFD Sender: No OFD packet to send [06:28:59]OFD Sender: No OFD packet to send [06:29:04]OFD Sender: No OFD packet to send [06:29:09]OFD Sender: No OFD packet to send [06:29:14]OFD Sender: No OFD packet to send [06:29:19]OFD Sender: No OFD packet to send [06:29:24]OFD Sender: No OFD packet to send [06:29:29]OFD Sender: No OFD packet to send [06:29:34]OFD Sender: No OFD packet to send [06:29:39]OFD Sender: No OFD packet to send [06:29:44]OFD Sender: No OFD packet to send [06:29:49]OFD Sender: No OFD packet to send [06:29:54]OFD Sender: No OFD packet to send [06:29:59]OFD Sender: No OFD packet to send [06:30:04]OFD Sender: No OFD packet to send [06:30:09]OFD Sender: No OFD packet to send [06:30:14]OFD Sender: No OFD packet to send [06:30:19]OFD Sender: No OFD packet to send [06:30:24]OFD Sender: No OFD packet to send [06:30:29]OFD Sender: No OFD packet to send [06:30:34]OFD Sender: No OFD packet to send [06:30:39]OFD Sender: No OFD packet to send [06:30:44]OFD Sender: No OFD packet to send [06:30:49]OFD Sender: No OFD packet to send [06:30:54]OFD Sender: No OFD packet to send [06:30:59]OFD Sender: No OFD packet to send [06:31:04]OFD Sender: No OFD packet to send [06:31:09]OFD Sender: No OFD packet to send [06:31:14]OFD Sender: No OFD packet to send [06:31:17]accept exits with 7 [06:31:17]New connection [06:31:17]New thread 3067338084 created [06:31:17]Thread 3067481444 joined [06:31:17]Waiting for new connection... [06:31:17] Sock 7.Parse request [06:31:17]Sock 7.Check first char [06:31:17]Sock 7.First char is OK [06:31:17]request: POST /json_proto HTTP/1.0 [06:31:17]Method: POST [06:31:17]URL: /json_proto [06:31:17]Method is POST - this is cgi request [06:31:17]url: /json_proto [06:31:17]query_string will be loaded in cgi processing [06:31:17]execute_cgi json_proto POST (null) [06:31:17]execute_cgi path=json_proto method=POST [06:31:17]POST find Content-Length [06:31:17]Host: 172.17.62.5:8080 [06:31:17]Content-Length: 677 [06:31:17]Content-Type: application/json [06:31:17] [06:31:17]POST finish read [06:31:17]Found Content-Length = 677 [06:31:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 6.220, "sum" : 400.57, "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" ] } } [06:31:17]execute_script... [06:31: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)191296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 6.220, "sum" : 400.57, "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" ] } } [06:31:17]POST & json_proto [06:31:17]process_json_proto [06:31:17]json parsed OK: [06:31:17]protocol is kg_v1.0 [06:31:17]action value=close_receipt [06:31:17]process_action close_receipt [06:31:17]cmd_close_receipt [06:31:17]MH_GetDate [06:31:17]Write to MH i2c: F0 00 00 D8 15 DC [06:31:17]Write i2c OK [06:31:17]MH_I2C_Read... [06:31:17]Read from MH i2c: F0 [06:31:17]MH_I2C_Read... [06:31:17]Read from MH i2c: F0 09 00 [06:31:17]MH_I2C_Read... [06:31:17]Read from MH i2c: F0 09 00 D8 15 00 B8 B2 24 66 F4 E9 65 64 7F [06:31:17]GetLastDocTimeStamp 1713680764 [06:31:17]current date 1713681080 [06:31:17]FM_GetShiftState [06:31:17]SAM_PROTO_GetShiftState [06:31:17]wFMCommunicate request_size=4 [06:31:17]MH_SAM_APDU [06:31:17]CAPDU: 80 13 01 00 [06:31:17]Write to MH i2c: E2 08 00 D9 15 80 13 01 00 00 00 00 00 6B [06:31:17]Write i2c OK [06:31:17]MH_I2C_Read... [06:31:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:31:18]Read from MH i2c: E2 [06:31:18]MH_I2C_Read... [06:31:18]Read from MH i2c: E2 0E 00 [06:31:18]MH_I2C_Read... [06:31:18]Read from MH i2c: E2 0E 00 D9 15 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 B2 [06:31:18]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [06:31:18]wFMCommunicate OK [06:31:18]SAM_PROTO_GetShiftState done [06:31:18]FM_GetShiftState done [06:31:18]opened in 1713658965 [06:31:18]opened+sec_in_day 1713745365 [06:31:18]quantity*price = 40056 [06:31:18]sum+1 = 40058 [06:31:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 24 21.04.2024 06:31 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76768 ФПД: 180889637528806 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T063120&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76768&fm=180889637528806&tin=02508201610067®Number=0000000000091573&sum=40000 [06:31:19]StoreToDocumentArchive [06:31:19]shift 372 fd 76768 [06:31:19]save to /storage/0372/doc_00076768 [06:31:19]save last doc name /storage/0372/doc_00076768 to /storage/kkm_last_doc_name [06:31:19]save OK [06:31:19]Clear old archive folders... [06:31:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:31:19]tlvbuf is 0188FDC0 [06:31:19]SAM_PROTO_ClearQueue [06:31:19]wFMCommunicate request_size=4 [06:31:19]MH_SAM_APDU [06:31:19]CAPDU: 80 09 00 00 [06:31:19]Write to MH i2c: E2 08 00 E6 15 80 09 00 00 00 00 00 00 6D [06:31:19]Write i2c OK [06:31:19]MH_I2C_Read... [06:31:19]Read from MH i2c: E2 [06:31:19]MH_I2C_Read... [06:31:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:31:19]Read from MH i2c: E2 03 00 [06:31:19]MH_I2C_Read... [06:31:19]Read from MH i2c: E2 03 00 E6 15 00 90 00 6F [06:31:19]RAPDU: 90 00 [06:31:19]wFMCommunicate OK [06:31:19]SAM_PROTO_ClearQueue done [06:31:19]KKMCreateOFDPacket [06:31:19]OFDProtocolAddRootSTLVToBuf [06:31:19]FM_MakeSignedData [06:31:19]FM_MakeSignedData [06:31:19]SAM_PROTO_SignData [06:31:19]wFMCommunicate request_size=4 [06:31:19]MH_SAM_APDU [06:31:19]CAPDU: 80 0D 01 02 [06:31:19]Write to MH i2c: E2 08 00 E7 15 80 0D 01 02 00 00 00 00 75 [06:31:19]Write i2c OK [06:31:19]MH_I2C_Read... [06:31:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:31:19]Read from MH i2c: E2 [06:31:19]MH_I2C_Read... [06:31:19]Read from MH i2c: E2 03 00 [06:31:19]MH_I2C_Read... [06:31:19]Read from MH i2c: E2 03 00 E7 15 00 90 00 70 [06:31:19]RAPDU: 90 00 [06:31:19]wFMCommunicate OK [06:31:19]wFMCommunicate request_size=255 [06:31:19]MH_SAM_APDU [06:31:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 18 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 79 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 9E 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 18 00 00 00 F4 03 04 00 B8 B2 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E0 2B 01 00 35 04 06 00 A4 [06:31:19]Write to MH i2c: E2 02 01 E8 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 4C 18 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 79 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 9E 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 18 00 00 00 F4 03 04 00 B8 B2 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E0 2B 01 00 35 04 06 00 A4 00 00 33 [06:31:19]Write i2c OK [06:31:19]MH_I2C_Read... [06:31:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:31:19]Read from MH i2c: E2 [06:31:19]MH_I2C_Read... [06:31:19]Read from MH i2c: E2 03 00 [06:31:19]MH_I2C_Read... [06:31:19]Read from MH i2c: E2 03 00 E8 15 00 90 00 71 [06:31:19]RAPDU: 90 00 [06:31:19]wFMCommunicate OK [06:31:19]wFMCommunicate request_size=10 [06:31:19]MH_SAM_APDU [06:31:19]CAPDU: 80 0D 02 02 05 84 A6 96 A4 E6 [06:31:19]Write to MH i2c: E2 0D 00 E9 15 80 0D 02 02 05 00 84 A6 96 A4 E6 00 00 CC [06:31:19]Write i2c OK [06:31:19]MH_I2C_Read... [06:31:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:31:19]Read from MH i2c: E2 [06:31:19]MH_I2C_Read... [06:31:19]Read from MH i2c: E2 03 00 [06:31:19]MH_I2C_Read... [06:31:19]Read from MH i2c: E2 03 00 E9 15 00 90 00 72 [06:31:19]RAPDU: 90 00 [06:31:19]wFMCommunicate OK [06:31:19]wFMCommunicate request_size=4 [06:31:19]MH_SAM_APDU [06:31:19]CAPDU: 80 0D 03 02 [06:31:19]Write to MH i2c: E2 08 00 EA 15 80 0D 03 02 00 00 00 00 7A [06:31:19]Write i2c OK [06:31:19]MH_I2C_Read... [06:31:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:31:19]OFD Sender: No OFD packet to send [06:31:19]Read from MH i2c: E2 [06:31:19]MH_I2C_Read... [06:31:19]Read from MH i2c: E2 0B 00 [06:31:19]MH_I2C_Read... [06:31:19]Read from MH i2c: E2 0B 00 EA 15 00 62 0B 1E D2 1A 3E 21 B8 90 00 09 [06:31:19]RAPDU: 62 0B 1E D2 1A 3E 21 B8 90 00 [06:31:19]wFMCommunicate OK [06:31:19]SAM_PROTO_SignData done [06:31:19]FM_MakeSignedData done [06:31:19]CreateOFDProtocolMessage [06:31:19]wFMCommunicate request_size=4 [06:31:19]MH_SAM_APDU [06:31:19]CAPDU: 80 11 00 00 [06:31:19]Write to MH i2c: E2 08 00 EB 15 80 11 00 00 00 00 00 00 7A [06:31:19]Write i2c OK [06:31:19]MH_I2C_Read... [06:31:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:31:19]Read from MH i2c: E2 [06:31:19]MH_I2C_Read... [06:31:19]Read from MH i2c: E2 17 00 [06:31:19]MH_I2C_Read... [06:31:19]Read from MH i2c: E2 17 00 EB 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 CD [06:31:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [06:31:19]wFMCommunicate OK [06:31:19]CreateOFDProtocolMessage done [06:31:19]OFDSenderStorePacket 76768 [06:31:19]StoreOFDPacket docnum=76768 [06:31:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 7A D0 07 01 26 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 18 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 79 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 9E 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 18 00 00 00 F4 03 04 00 B8 B2 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E0 2B 01 00 35 04 06 00 A4 84 A6 96 A4 E6 62 0B 1E D2 1A 3E 21 B8 [06:31:19]CheckFolder [06:31:19]dirname=/storage/ofd_packets [06:31:19]CheckFolder done [06:31:19]ProducePacketName [06:31:19]name=ofd_packets/00076768 [06:31:19]NVStorageSaveData ofd_packets/00076768 [06:31:19]File name is /storage/ofd_packets/00076768 [06:31:19]Write 301 bytes [06:31:19]NVStorageSaveData done [06:31:19]OFDSenderStorePacket done [06:31:19]KKMCreateOFDPacket done [06:31:19]NVStorageSaveData kkm_last_timestamp [06:31:19]File name is /storage/kkm_last_timestamp [06:31:19]Write 4 bytes [06:31:19]NVStorageSaveData done [06:31:19]ExternCall_PrintAddStr [06:31:19]wPrintStart [06:31:19]Write to MH i2c: 01 00 00 EC 15 01 [06:31:19]Write i2c OK [06:31:19]MH_I2C_Read... [06:31:19]Read from MH i2c: 01 [06:31:19]MH_I2C_Read... [06:31:19]Read from MH i2c: 01 07 00 [06:31:19]MH_I2C_Read... [06:31:19]Read from MH i2c: 01 07 00 EC 15 00 00 00 00 00 FF 0F 16 [06:31:19]RasterBufferAndPrint [06:31:19]line Счет N : (1)191296 [06:31:19]line ИНН: 02508201610067 [06:31:19]line Контрольно-Кассовый Чек [06:31:19]line ПРОДАЖА [06:31:19]line ТРК (МРК, ГНК) : 43 [06:31:19]line Товар: 2710124130 [06:31:19]line Аи-92-К-5 [06:31:19]line 6.220 * 64.40 [06:31:19]line = 400.57 [06:31:19]line НДС 12% НСП 1% [06:31:19]line > о реализуемом товаре [06:31:19]line ОКРУГЛЕНИЕ: -0.57 [06:31:19]line ИТОГО: 400.00 [06:31:19]line Внесено: 400.00 [06:31:19]line СДАЧА: 0.00 [06:31:19]line НСП 1% : 3.54 [06:31:19]line НДС 12% : 42.54 [06:31:19]line Наличными: 400.00 [06:31:19]line Безнал.: 0.00 [06:31:19]line Место: АЗС № 106 "Партнер Нефть" [06:31:19]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [06:31:19]line СНО: Общий режим [06:31:19]line Чек 24 21.04.2024 06:31 [06:31:19]line Смена: 372 ФФД: 1.0 [06:31:19]line ЗНМ: 0300000141 [06:31:19]line РНМ: 0000000000091573 [06:31:19]line Версия ККМ: 001 [06:31:19]line ФМ: 0000000000874652 [06:31:19]line ФД: 76768 [06:31:19]line ФПД: 180889637528806 [06:31:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T063120&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76768&fm=180889637528806&tin=02508201610067®Number=0000000000091573&sum=40000 [06:31:19]OFD Sender: Processing packet 76768 [packets to send 129, broken 128] [06:31:19]ProducePacketName [06:31:19]name=ofd_packets/00076768 [06:31:19]OFD Sender: To server: pG, [06:31:19]CommunicateWithHost lk.salyk.kg:30040 [06:31:19]ConnectInit lk.salyk.kg [06:31:19]written 0, free lines is 4095 [06:31:20]Connected sock=10 [06:31:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 7A D0 07 01 26 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 18 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 79 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 9E 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 18 00 00 00 F4 03 04 00 B8 B2 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E0 2B 01 00 35 04 06 00 A4 84 A6 96 A4 E6 62 0B 1E D2 1A 3E 21 B8 [06:31:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 00 D8 47 00 0D 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E0 2B 01 00 F4 03 04 00 3F 5A 24 66 B6 04 01 00 00 E3 EE AE CA 92 49 FB F4 [06:31:20]CommunicateWithHost err = 0 [06:31:20]CheckOFDResponse [06:31:20]1017 (14) - 77093643461234 [06:31:20]1041 (16) - 0000000000874652 [06:31:20]1040 (4) - 76768 [06:31:20]1012 (4) - 21.04.2024 00:13 [06:31:20]1206 (1) - 0 [06:31:20]OFD Sender: Remove packet 76768 [06:31:20]ProducePacketName [06:31:20]name=ofd_packets/00076768 [06:31:20]NVStorageDeleteData [06:31:20]Write to MH i2c: 01 00 00 16 16 2C [06:31:20]Write i2c OK [06:31:20]MH_I2C_Read... [06:31:20]Read from MH i2c: 01 [06:31:20]MH_I2C_Read... [06:31:20]Read from MH i2c: 01 07 00 [06:31:20]MH_I2C_Read... [06:31:20]Read from MH i2c: 01 07 00 16 16 00 00 00 00 00 EB 0C 2A [06:31:20]RasterBufferAndPrint [06:31:20]line [06:31:20]line [06:31:20]line [06:31:20]line [06:31:20]line [06:31:20]written 0, free lines is 3310 [06:31:20]MH_Cut [06:31:20]Write to MH i2c: D1 01 00 1D 16 01 05 [06:31:20]Write i2c OK [06:31:20]MH_I2C_Read... [06:31:20]Read from MH i2c: D1 [06:31:20]MH_I2C_Read... [06:31:20]Read from MH i2c: D1 01 00 [06:31:20]MH_I2C_Read... [06:31:20]Read from MH i2c: D1 01 00 1D 16 00 04 [06:31:20]Write to MH i2c: 01 00 00 1E 16 34 [06:31:20]Write i2c OK [06:31:20]MH_I2C_Read... [06:31:20]OFD Sender: No OFD packet to send [06:31:21]*** Cut start [06:31:21]*** Partial cut [06:31:21]*** CUTSNS_PIN = 1 [06:31:21]*** CUTSNS_PIN = 0 [06:31:21]*** Brake cut motor [06:31:21]Read from MH i2c: 01 [06:31:21]MH_I2C_Read... [06:31:21]*** Stop cut motor [06:31:21]*** Cut end [06:31:21]Read from MH i2c: 01 07 00 [06:31:21]MH_I2C_Read... [06:31:21]Read from MH i2c: 01 07 00 1E 16 00 00 00 00 00 FF 0F 49 [06:31:21]process_action close_receipt done [06:31:21]requested_data is exist [06:31:21]produce_requested_data [06:31:21]requested_item fm.sn is exist - process it [06:31:21]wFMCommunicate request_size=4 [06:31:21]MH_SAM_APDU [06:31:21]CAPDU: 80 11 00 00 [06:31:21]Write to MH i2c: E2 08 00 1F 16 80 11 00 00 00 00 00 00 AF [06:31:21]Write i2c OK [06:31:21]MH_I2C_Read... [06:31:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:31:21]Read from MH i2c: E2 [06:31:21]MH_I2C_Read... [06:31:21]Read from MH i2c: E2 17 00 [06:31:21]MH_I2C_Read... [06:31:21]Read from MH i2c: E2 17 00 1F 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 02 [06:31:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [06:31:21]wFMCommunicate OK [06:31:21]requested_item fd.num is exist - process it [06:31:21]SAM_PROTO_GetFieldsCounters [06:31:21]wFMCommunicate request_size=4 [06:31:21]MH_SAM_APDU [06:31:21]CAPDU: 80 13 00 00 [06:31:21]Write to MH i2c: E2 08 00 20 16 80 13 00 00 00 00 00 00 B2 [06:31:21]Write i2c OK [06:31:21]MH_I2C_Read... [06:31:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:31:21]Read from MH i2c: E2 [06:31:21]MH_I2C_Read... [06:31:21]Read from MH i2c: E2 62 00 [06:31:21]MH_I2C_Read... [06:31:21]Read from MH i2c: E2 62 00 20 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E0 2B 01 00 0E 04 04 00 74 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 9C [06:31:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E0 2B 01 00 0E 04 04 00 74 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 [06:31:21]wFMCommunicate OK [06:31:21]SAM_PROTO_GetFieldsCounters done [06:31:21]requested_item shift.num is exist - process it [06:31:21]requested_item shift.opened is exist - process it [06:31:21]req_shift_opened [06:31:21]FM_GetShiftState [06:31:21]SAM_PROTO_GetShiftState [06:31:21]wFMCommunicate request_size=4 [06:31:21]MH_SAM_APDU [06:31:21]CAPDU: 80 13 01 00 [06:31:21]Write to MH i2c: E2 08 00 21 16 80 13 01 00 00 00 00 00 B4 [06:31:21]Write i2c OK [06:31:21]MH_I2C_Read... [06:31:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:31:22]Read from MH i2c: E2 [06:31:22]MH_I2C_Read... [06:31:22]Read from MH i2c: E2 0E 00 [06:31:22]MH_I2C_Read... [06:31:22]Read from MH i2c: E2 0E 00 21 16 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 FB [06:31:22]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [06:31:22]wFMCommunicate OK [06:31:22]SAM_PROTO_GetShiftState done [06:31:22]FM_GetShiftState done [06:31:22]req_shift_opened done [06:31:22]requested_item shift.open_date is exist - process it [06:31:22]req_shift_open_date [06:31:22]req_shift_open_date done [06:31:22]produce_requested_data done [06:31:22]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76768,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [06:31:22]process_action_free close_receipt [06:31:22]json_value_free [06:31:22]json_value_free done [06:31:22]process_json_proto returns [06:31:22]Send response to host [06:31:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76768,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [06:31:22]free response buf [06:31:22]execute_script done [06:31:22]execute_script returns [06:31:22]free content buf [06:31:22]Sock 7.Close socket [06:31:22]Sock 7.Thread stoped [06:31:25]OFD Sender: No OFD packet to send [06:31:30]OFD Sender: No OFD packet to send [06:31:35]OFD Sender: No OFD packet to send [06:31:40]OFD Sender: No OFD packet to send [06:31:45]OFD Sender: No OFD packet to send [06:31:50]OFD Sender: No OFD packet to send [06:31:55]OFD Sender: No OFD packet to send [06:32:00]OFD Sender: No OFD packet to send [06:32:05]OFD Sender: No OFD packet to send [06:32:10]OFD Sender: No OFD packet to send [06:32:15]OFD Sender: No OFD packet to send [06:32:20]OFD Sender: No OFD packet to send [06:32:25]OFD Sender: No OFD packet to send [06:32:30]OFD Sender: No OFD packet to send [06:32:35]OFD Sender: No OFD packet to send [06:32:40]OFD Sender: No OFD packet to send [06:32:45]OFD Sender: No OFD packet to send [06:32:50]OFD Sender: No OFD packet to send [06:32:55]OFD Sender: No OFD packet to send [06:33:00]OFD Sender: No OFD packet to send [06:33:05]OFD Sender: No OFD packet to send [06:33:10]OFD Sender: No OFD packet to send [06:33:15]OFD Sender: No OFD packet to send [06:33:20]OFD Sender: No OFD packet to send [06:33:25]OFD Sender: No OFD packet to send [06:33:30]OFD Sender: No OFD packet to send [06:33:35]OFD Sender: No OFD packet to send [06:33:40]OFD Sender: No OFD packet to send [06:33:45]OFD Sender: No OFD packet to send [06:33:50]OFD Sender: No OFD packet to send [06:33:55]OFD Sender: No OFD packet to send [06:34:01]OFD Sender: No OFD packet to send [06:34:06]OFD Sender: No OFD packet to send [06:34:11]OFD Sender: No OFD packet to send [06:34:16]OFD Sender: No OFD packet to send [06:34:21]OFD Sender: No OFD packet to send [06:34:26]OFD Sender: No OFD packet to send [06:34:31]OFD Sender: No OFD packet to send [06:34:36]OFD Sender: No OFD packet to send [06:34:41]OFD Sender: No OFD packet to send [06:34:46]OFD Sender: No OFD packet to send [06:34:51]OFD Sender: No OFD packet to send [06:34:56]OFD Sender: No OFD packet to send [06:35:01]OFD Sender: No OFD packet to send [06:35:06]OFD Sender: No OFD packet to send [06:35:11]OFD Sender: No OFD packet to send [06:35:16]OFD Sender: No OFD packet to send [06:35:21]OFD Sender: No OFD packet to send [06:35:26]OFD Sender: No OFD packet to send [06:35:31]OFD Sender: No OFD packet to send [06:35:36]OFD Sender: No OFD packet to send [06:35:41]OFD Sender: No OFD packet to send [06:35:46]OFD Sender: No OFD packet to send [06:35:51]OFD Sender: No OFD packet to send [06:35:56]OFD Sender: No OFD packet to send [06:36:01]OFD Sender: No OFD packet to send [06:36:06]OFD Sender: No OFD packet to send [06:36:11]OFD Sender: No OFD packet to send [06:36:16]OFD Sender: No OFD packet to send [06:36:21]OFD Sender: No OFD packet to send [06:36:26]OFD Sender: No OFD packet to send [06:36:31]OFD Sender: No OFD packet to send [06:36:36]OFD Sender: No OFD packet to send [06:36:41]OFD Sender: No OFD packet to send [06:36:46]OFD Sender: No OFD packet to send [06:36:51]OFD Sender: No OFD packet to send [06:36:56]OFD Sender: No OFD packet to send [06:37:01]OFD Sender: No OFD packet to send [06:37:03]accept exits with 9 [06:37:03]New connection [06:37:03]New thread 3067481444 created [06:37:03]Thread 3067338084 joined [06:37:03]Waiting for new connection... [06:37:03] Sock 9.Parse request [06:37:03]Sock 9.Check first char [06:37:03]Sock 9.First char is OK [06:37:03]request: POST /json_proto HTTP/1.0 [06:37:03]Method: POST [06:37:03]URL: /json_proto [06:37:03]Method is POST - this is cgi request [06:37:03]url: /json_proto [06:37:03]query_string will be loaded in cgi processing [06:37:03]execute_cgi json_proto POST (null) [06:37:03]execute_cgi path=json_proto method=POST [06:37:03]POST find Content-Length [06:37:03]Host: 172.17.62.5:8080 [06:37:03]Content-Length: 674 [06:37:03]Content-Type: application/json [06:37:03] [06:37:03]POST finish read [06:37:03]Found Content-Length = 674 [06:37:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 4.830, "sum" : 352.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 352.00, "total" : 352.00, "payments": [ { "type": 0, "sum" : 352.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:37:03]execute_script... [06:37: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)191297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 4.830, "sum" : 352.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 352.00, "total" : 352.00, "payments": [ { "type": 0, "sum" : 352.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:37:03]POST & json_proto [06:37:03]process_json_proto [06:37:04]json parsed OK: [06:37:04]protocol is kg_v1.0 [06:37:04]action value=close_receipt [06:37:04]process_action close_receipt [06:37:04]cmd_close_receipt [06:37:04]MH_GetDate [06:37:04]Write to MH i2c: F0 00 00 22 16 27 [06:37:04]Write i2c OK [06:37:04]MH_I2C_Read... [06:37:04]Read from MH i2c: F0 [06:37:04]MH_I2C_Read... [06:37:04]Read from MH i2c: F0 09 00 [06:37:04]MH_I2C_Read... [06:37:04]Read from MH i2c: F0 09 00 22 16 00 12 B4 24 66 F4 E9 65 64 26 [06:37:04]GetLastDocTimeStamp 1713681080 [06:37:04]current date 1713681426 [06:37:04]FM_GetShiftState [06:37:04]SAM_PROTO_GetShiftState [06:37:04]wFMCommunicate request_size=4 [06:37:04]MH_SAM_APDU [06:37:04]CAPDU: 80 13 01 00 [06:37:04]Write to MH i2c: E2 08 00 23 16 80 13 01 00 00 00 00 00 B6 [06:37:04]Write i2c OK [06:37:04]MH_I2C_Read... [06:37:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:37:04]Read from MH i2c: E2 [06:37:04]MH_I2C_Read... [06:37:04]Read from MH i2c: E2 0E 00 [06:37:04]MH_I2C_Read... [06:37:04]Read from MH i2c: E2 0E 00 23 16 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 FD [06:37:04]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [06:37:04]wFMCommunicate OK [06:37:04]SAM_PROTO_GetShiftState done [06:37:04]FM_GetShiftState done [06:37:04]opened in 1713658965 [06:37:04]opened+sec_in_day 1713745365 [06:37:04]quantity*price = 35210 [06:37:04]sum+1 = 35212 [06:37:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 352.00 Внесено: 352.00 СДАЧА: 0.00 НСП 1% : 3.12 НДС 12% : 37.39 Наличными: 352.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 25 21.04.2024 06:37 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76769 ФПД: 103295381897995 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T063707&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76769&fm=103295381897995&tin=02508201610067®Number=0000000000091573&sum=35200 [06:37:05]StoreToDocumentArchive [06:37:05]shift 372 fd 76769 [06:37:05]save to /storage/0372/doc_00076769 [06:37:05]save last doc name /storage/0372/doc_00076769 to /storage/kkm_last_doc_name [06:37:05]save OK [06:37:05]Clear old archive folders... [06:37:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:37:05]tlvbuf is 018B5220 [06:37:05]SAM_PROTO_ClearQueue [06:37:05]wFMCommunicate request_size=4 [06:37:05]MH_SAM_APDU [06:37:05]CAPDU: 80 09 00 00 [06:37:05]Write to MH i2c: E2 08 00 30 16 80 09 00 00 00 00 00 00 B8 [06:37:05]Write i2c OK [06:37:05]MH_I2C_Read... [06:37:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:37:05]Read from MH i2c: E2 [06:37:05]MH_I2C_Read... [06:37:05]Read from MH i2c: E2 03 00 [06:37:05]MH_I2C_Read... [06:37:05]Read from MH i2c: E2 03 00 30 16 00 90 00 BA [06:37:05]RAPDU: 90 00 [06:37:05]wFMCommunicate OK [06:37:05]SAM_PROTO_ClearQueue done [06:37:05]KKMCreateOFDPacket [06:37:05]OFDProtocolAddRootSTLVToBuf [06:37:05]FM_MakeSignedData [06:37:05]FM_MakeSignedData [06:37:05]SAM_PROTO_SignData [06:37:05]wFMCommunicate request_size=4 [06:37:05]MH_SAM_APDU [06:37:05]CAPDU: 80 0D 01 02 [06:37:05]Write to MH i2c: E2 08 00 31 16 80 0D 01 02 00 00 00 00 C0 [06:37:05]Write i2c OK [06:37:05]MH_I2C_Read... [06:37:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:37:05]Read from MH i2c: E2 [06:37:05]MH_I2C_Read... [06:37:05]Read from MH i2c: E2 03 00 [06:37:05]MH_I2C_Read... [06:37:05]Read from MH i2c: E2 03 00 31 16 00 90 00 BB [06:37:05]RAPDU: 90 00 [06:37:05]wFMCommunicate OK [06:37:05]wFMCommunicate request_size=255 [06:37:05]MH_SAM_APDU [06:37:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DE 12 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 8B 89 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 89 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 0E 00 00 00 00 07 04 06 00 80 89 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 13 B4 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E1 2B 01 00 35 04 06 00 5D F2 54 8B [06:37:05]Write to MH i2c: E2 02 01 32 16 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DE 12 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 8B 89 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 89 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 0E 00 00 00 00 07 04 06 00 80 89 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 13 B4 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E1 2B 01 00 35 04 06 00 5D F2 54 8B 00 00 C5 [06:37:05]Write i2c OK [06:37:05]MH_I2C_Read... [06:37:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:37:05]Read from MH i2c: E2 [06:37:05]MH_I2C_Read... [06:37:05]Read from MH i2c: E2 03 00 [06:37:05]MH_I2C_Read... [06:37:05]Read from MH i2c: E2 03 00 32 16 00 90 00 BC [06:37:05]RAPDU: 90 00 [06:37:05]wFMCommunicate OK [06:37:05]wFMCommunicate request_size=7 [06:37:05]MH_SAM_APDU [06:37:05]CAPDU: 80 0D 02 02 02 83 0B [06:37:05]Write to MH i2c: E2 0A 00 33 16 80 0D 02 02 02 00 83 0B 00 00 55 [06:37:05]Write i2c OK [06:37:05]MH_I2C_Read... [06:37:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:37:05]Read from MH i2c: E2 [06:37:05]MH_I2C_Read... [06:37:05]Read from MH i2c: E2 03 00 [06:37:05]MH_I2C_Read... [06:37:05]Read from MH i2c: E2 03 00 33 16 00 90 00 BD [06:37:05]RAPDU: 90 00 [06:37:05]wFMCommunicate OK [06:37:05]wFMCommunicate request_size=4 [06:37:05]MH_SAM_APDU [06:37:05]CAPDU: 80 0D 03 02 [06:37:05]Write to MH i2c: E2 08 00 34 16 80 0D 03 02 00 00 00 00 C5 [06:37:05]Write i2c OK [06:37:05]MH_I2C_Read... [06:37:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:37:05]Read from MH i2c: E2 [06:37:05]MH_I2C_Read... [06:37:05]Read from MH i2c: E2 0B 00 [06:37:05]MH_I2C_Read... [06:37:05]Read from MH i2c: E2 0B 00 34 16 00 A5 85 4D A6 33 CB D1 C5 90 00 77 [06:37:05]RAPDU: A5 85 4D A6 33 CB D1 C5 90 00 [06:37:05]wFMCommunicate OK [06:37:05]SAM_PROTO_SignData done [06:37:05]FM_MakeSignedData done [06:37:05]CreateOFDProtocolMessage [06:37:05]wFMCommunicate request_size=4 [06:37:05]MH_SAM_APDU [06:37:05]CAPDU: 80 11 00 00 [06:37:05]Write to MH i2c: E2 08 00 35 16 80 11 00 00 00 00 00 00 C5 [06:37:05]Write i2c OK [06:37:05]MH_I2C_Read... [06:37:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:37:05]Read from MH i2c: E2 [06:37:05]MH_I2C_Read... [06:37:05]Read from MH i2c: E2 17 00 [06:37:05]MH_I2C_Read... [06:37:05]Read from MH i2c: E2 17 00 35 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 18 [06:37:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [06:37:05]wFMCommunicate OK [06:37:05]CreateOFDProtocolMessage done [06:37:05]OFDSenderStorePacket 76769 [06:37:05]StoreOFDPacket docnum=76769 [06:37:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 94 FB 04 01 01 5D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DE 12 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 8B 89 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 89 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 0E 00 00 00 00 07 04 06 00 80 89 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 13 B4 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E1 2B 01 00 35 04 06 00 5D F2 54 8B 83 0B A5 85 4D A6 33 CB D1 C5 [06:37:05]CheckFolder [06:37:05]dirname=/storage/ofd_packets [06:37:05]CheckFolder done [06:37:05]ProducePacketName [06:37:05]name=ofd_packets/00076769 [06:37:05]NVStorageSaveData ofd_packets/00076769 [06:37:05]File name is /storage/ofd_packets/00076769 [06:37:05]Write 298 bytes [06:37:05]NVStorageSaveData done [06:37:05]OFDSenderStorePacket done [06:37:05]KKMCreateOFDPacket done [06:37:05]NVStorageSaveData kkm_last_timestamp [06:37:05]File name is /storage/kkm_last_timestamp [06:37:05]Write 4 bytes [06:37:05]NVStorageSaveData done [06:37:05]ExternCall_PrintAddStr [06:37:05]wPrintStart [06:37:05]Write to MH i2c: 01 00 00 36 16 4C [06:37:05]Write i2c OK [06:37:05]MH_I2C_Read... [06:37:05]Read from MH i2c: 01 [06:37:05]MH_I2C_Read... [06:37:05]Read from MH i2c: 01 07 00 [06:37:05]MH_I2C_Read... [06:37:05]Read from MH i2c: 01 07 00 36 16 00 00 00 00 00 FF 0F 61 [06:37:05]RasterBufferAndPrint [06:37:05]line Счет N : (1)191297 [06:37:05]line ИНН: 02508201610067 [06:37:05]line Контрольно-Кассовый Чек [06:37:05]line ПРОДАЖА [06:37:05]line ТРК (МРК, ГНК) : 13 [06:37:05]line Товар: 2710194210 [06:37:05]line ДТ-К-5 [06:37:05]line 4.830 * 72.90 [06:37:05]line = 352.11 [06:37:05]line НДС 12% НСП 1% [06:37:05]line > о реализуемом товаре [06:37:05]line ОКРУГЛЕНИЕ: -0.11 [06:37:05]line ИТОГО: 352.00 [06:37:05]line Внесено: 352.00 [06:37:05]line СДАЧА: 0.00 [06:37:05]line НСП 1% : 3.12 [06:37:05]line НДС 12% : 37.39 [06:37:05]line Наличными: 352.00 [06:37:05]line Безнал.: 0.00 [06:37:05]line Место: АЗС № 106 "Партнер Нефть" [06:37:05]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [06:37:05]line СНО: Общий режим [06:37:05]line Чек 25 21.04.2024 06:37 [06:37:05]line Смена: 372 ФФД: 1.0 [06:37:05]line ЗНМ: 0300000141 [06:37:05]line РНМ: 0000000000091573 [06:37:05]line Версия ККМ: 001 [06:37:05]line ФМ: 0000000000874652 [06:37:05]line ФД: 76769 [06:37:05]line ФПД: 103295381897995 [06:37:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T063707&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76769&fm=103295381897995&tin=02508201610067®Number=0000000000091573&sum=35200 [06:37:06]OFD Sender: Processing packet 76769 [packets to send 129, broken 128] [06:37:06]ProducePacketName [06:37:06]name=ofd_packets/00076769 [06:37:06]OFD Sender: To server: pG, [06:37:06]CommunicateWithHost lk.salyk.kg:30040 [06:37:06]ConnectInit lk.salyk.kg [06:37:06]written 0, free lines is 4095 [06:37:06]Connected sock=10 [06:37:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 94 FB 04 01 01 5D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DE 12 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 8B 89 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 89 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 0E 00 00 00 00 07 04 06 00 80 89 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 13 B4 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E1 2B 01 00 35 04 06 00 5D F2 54 8B 83 0B A5 85 4D A6 33 CB D1 C5 [06:37:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 13 07 47 00 06 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 34 36 35 32 10 04 04 00 E1 2B 01 00 F4 03 04 00 99 5B 24 66 B6 04 01 00 00 27 8E 16 B5 77 64 86 48 [06:37:06]CommunicateWithHost err = 0 [06:37:06]CheckOFDResponse [06:37:06]1017 (14) - 77093643461234 [06:37:06]1041 (16) - 0000000000874652 [06:37:06]1040 (4) - 76769 [06:37:06]1012 (4) - 21.04.2024 00:19 [06:37:06]1206 (1) - 0 [06:37:06]OFD Sender: Remove packet 76769 [06:37:06]ProducePacketName [06:37:06]name=ofd_packets/00076769 [06:37:06]NVStorageDeleteData [06:37:06]Write to MH i2c: 01 00 00 60 16 76 [06:37:06]Write i2c OK [06:37:06]MH_I2C_Read... [06:37:06]Read from MH i2c: 01 [06:37:06]MH_I2C_Read... [06:37:06]Read from MH i2c: 01 07 00 [06:37:06]MH_I2C_Read... [06:37:06]Read from MH i2c: 01 07 00 60 16 00 00 00 00 00 E8 0C 71 [06:37:06]RasterBufferAndPrint [06:37:06]line [06:37:06]line [06:37:06]line [06:37:06]line [06:37:06]line [06:37:06]written 0, free lines is 3310 [06:37:06]MH_Cut [06:37:06]Write to MH i2c: D1 01 00 67 16 01 4F [06:37:06]Write i2c OK [06:37:06]MH_I2C_Read... [06:37:06]Read from MH i2c: D1 [06:37:06]MH_I2C_Read... [06:37:06]Read from MH i2c: D1 01 00 [06:37:06]MH_I2C_Read... [06:37:06]Read from MH i2c: D1 01 00 67 16 00 4E [06:37:06]Write to MH i2c: 01 00 00 68 16 7E [06:37:06]Write i2c OK [06:37:06]MH_I2C_Read... [06:37:06]OFD Sender: No OFD packet to send [06:37:07]*** Cut start [06:37:07]*** Partial cut [06:37:07]*** CUTSNS_PIN = 1 [06:37:07]*** CUTSNS_PIN = 0 [06:37:07]*** Brake cut motor [06:37:07]Read from MH i2c: 01 [06:37:07]MH_I2C_Read... [06:37:07]*** Stop cut motor [06:37:07]*** Cut end [06:37:07]Read from MH i2c: 01 07 00 [06:37:07]MH_I2C_Read... [06:37:07]Read from MH i2c: 01 07 00 68 16 00 00 00 00 00 FF 0F 93 [06:37:07]process_action close_receipt done [06:37:07]requested_data is exist [06:37:07]produce_requested_data [06:37:07]requested_item fm.sn is exist - process it [06:37:07]wFMCommunicate request_size=4 [06:37:07]MH_SAM_APDU [06:37:07]CAPDU: 80 11 00 00 [06:37:07]Write to MH i2c: E2 08 00 69 16 80 11 00 00 00 00 00 00 F9 [06:37:07]Write i2c OK [06:37:07]MH_I2C_Read... [06:37:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:37:07]Read from MH i2c: E2 [06:37:07]MH_I2C_Read... [06:37:07]Read from MH i2c: E2 17 00 [06:37:07]MH_I2C_Read... [06:37:07]Read from MH i2c: E2 17 00 69 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 4C [06:37:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [06:37:07]wFMCommunicate OK [06:37:07]requested_item fd.num is exist - process it [06:37:07]SAM_PROTO_GetFieldsCounters [06:37:07]wFMCommunicate request_size=4 [06:37:07]MH_SAM_APDU [06:37:07]CAPDU: 80 13 00 00 [06:37:07]Write to MH i2c: E2 08 00 6A 16 80 13 00 00 00 00 00 00 FC [06:37:07]Write i2c OK [06:37:07]MH_I2C_Read... [06:37:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:37:08]Read from MH i2c: E2 [06:37:08]MH_I2C_Read... [06:37:08]Read from MH i2c: E2 62 00 [06:37:08]MH_I2C_Read... [06:37:08]Read from MH i2c: E2 62 00 6A 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E1 2B 01 00 0E 04 04 00 74 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 EA [06:37: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E1 2B 01 00 0E 04 04 00 74 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 [06:37:08]wFMCommunicate OK [06:37:08]SAM_PROTO_GetFieldsCounters done [06:37:08]requested_item shift.num is exist - process it [06:37:08]requested_item shift.opened is exist - process it [06:37:08]req_shift_opened [06:37:08]FM_GetShiftState [06:37:08]SAM_PROTO_GetShiftState [06:37:08]wFMCommunicate request_size=4 [06:37:08]MH_SAM_APDU [06:37:08]CAPDU: 80 13 01 00 [06:37:08]Write to MH i2c: E2 08 00 6B 16 80 13 01 00 00 00 00 00 FE [06:37:08]Write i2c OK [06:37:08]MH_I2C_Read... [06:37:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:37:08]Read from MH i2c: E2 [06:37:08]MH_I2C_Read... [06:37:08]Read from MH i2c: E2 0E 00 [06:37:08]MH_I2C_Read... [06:37:08]Read from MH i2c: E2 0E 00 6B 16 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 45 [06:37:08]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [06:37:08]wFMCommunicate OK [06:37:08]SAM_PROTO_GetShiftState done [06:37:08]FM_GetShiftState done [06:37:08]req_shift_opened done [06:37:08]requested_item shift.open_date is exist - process it [06:37:08]req_shift_open_date [06:37:08]req_shift_open_date done [06:37:08]produce_requested_data done [06:37:08]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76769,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [06:37:08]process_action_free close_receipt [06:37:08]json_value_free [06:37:08]json_value_free done [06:37:08]process_json_proto returns [06:37:08]Send response to host [06:37:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76769,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [06:37:08]free response buf [06:37:08]execute_script done [06:37:08]execute_script returns [06:37:08]free content buf [06:37:08]Sock 9.Close socket [06:37:08]Sock 9.Thread stoped [06:37:11]OFD Sender: No OFD packet to send [06:37:16]OFD Sender: No OFD packet to send [06:37:21]OFD Sender: No OFD packet to send [06:37:26]OFD Sender: No OFD packet to send [06:37:31]OFD Sender: No OFD packet to send [06:37:36]OFD Sender: No OFD packet to send [06:37:41]OFD Sender: No OFD packet to send [06:37:46]OFD Sender: No OFD packet to send [06:37:51]OFD Sender: No OFD packet to send [06:37:56]OFD Sender: No OFD packet to send [06:38:01]OFD Sender: No OFD packet to send [06:38:06]OFD Sender: No OFD packet to send [06:38:11]OFD Sender: No OFD packet to send [06:38:16]OFD Sender: No OFD packet to send [06:38:21]OFD Sender: No OFD packet to send [06:38:26]OFD Sender: No OFD packet to send [06:38:31]OFD Sender: No OFD packet to send [06:38:36]OFD Sender: No OFD packet to send [06:38:41]OFD Sender: No OFD packet to send [06:38:46]OFD Sender: No OFD packet to send [06:38:52]OFD Sender: No OFD packet to send [06:38:57]OFD Sender: No OFD packet to send [06:39:02]OFD Sender: No OFD packet to send [06:39:07]OFD Sender: No OFD packet to send [06:39:12]OFD Sender: No OFD packet to send [06:39:17]OFD Sender: No OFD packet to send [06:39:22]OFD Sender: No OFD packet to send [06:39:27]OFD Sender: No OFD packet to send [06:39:32]OFD Sender: No OFD packet to send [06:39:37]OFD Sender: No OFD packet to send [06:39:42]OFD Sender: No OFD packet to send [06:39:47]OFD Sender: No OFD packet to send [06:39:52]OFD Sender: No OFD packet to send [06:39:57]OFD Sender: No OFD packet to send [06:40:02]OFD Sender: No OFD packet to send [06:40:07]OFD Sender: No OFD packet to send [06:40:12]OFD Sender: No OFD packet to send [06:40:17]OFD Sender: No OFD packet to send [06:40:22]OFD Sender: No OFD packet to send [06:40:27]OFD Sender: No OFD packet to send [06:40:32]OFD Sender: No OFD packet to send [06:40:37]OFD Sender: No OFD packet to send [06:40:42]OFD Sender: No OFD packet to send [06:40:47]OFD Sender: No OFD packet to send [06:40:52]OFD Sender: No OFD packet to send [06:40:57]OFD Sender: No OFD packet to send [06:41:02]OFD Sender: No OFD packet to send [06:41:07]OFD Sender: No OFD packet to send [06:41:12]OFD Sender: No OFD packet to send [06:41:17]OFD Sender: No OFD packet to send [06:41:22]OFD Sender: No OFD packet to send [06:41:27]OFD Sender: No OFD packet to send [06:41:32]OFD Sender: No OFD packet to send [06:41:37]OFD Sender: No OFD packet to send [06:41:42]OFD Sender: No OFD packet to send [06:41:47]OFD Sender: No OFD packet to send [06:41:52]OFD Sender: No OFD packet to send [06:41:57]OFD Sender: No OFD packet to send [06:42:02]OFD Sender: No OFD packet to send [06:42:07]OFD Sender: No OFD packet to send [06:42:12]OFD Sender: No OFD packet to send [06:42:17]OFD Sender: No OFD packet to send [06:42:22]OFD Sender: No OFD packet to send [06:42:27]OFD Sender: No OFD packet to send [06:42:32]OFD Sender: No OFD packet to send [06:42:37]OFD Sender: No OFD packet to send [06:42:42]OFD Sender: No OFD packet to send [06:42:47]OFD Sender: No OFD packet to send [06:42:52]OFD Sender: No OFD packet to send [06:42:57]OFD Sender: No OFD packet to send [06:43:02]OFD Sender: No OFD packet to send [06:43:07]OFD Sender: No OFD packet to send [06:43:12]OFD Sender: No OFD packet to send [06:43:17]OFD Sender: No OFD packet to send [06:43:22]OFD Sender: No OFD packet to send [06:43:27]OFD Sender: No OFD packet to send [06:43:32]OFD Sender: No OFD packet to send [06:43:37]OFD Sender: No OFD packet to send [06:43:42]OFD Sender: No OFD packet to send [06:43:47]OFD Sender: No OFD packet to send [06:43:52]OFD Sender: No OFD packet to send [06:43:57]OFD Sender: No OFD packet to send [06:44:02]OFD Sender: No OFD packet to send [06:44:07]OFD Sender: No OFD packet to send [06:44:12]OFD Sender: No OFD packet to send [06:44:17]OFD Sender: No OFD packet to send [06:44:22]OFD Sender: No OFD packet to send [06:44:27]OFD Sender: No OFD packet to send [06:44:32]OFD Sender: No OFD packet to send [06:44:37]OFD Sender: No OFD packet to send [06:44:42]OFD Sender: No OFD packet to send [06:44:47]OFD Sender: No OFD packet to send [06:44:52]OFD Sender: No OFD packet to send [06:44:57]OFD Sender: No OFD packet to send [06:45:02]OFD Sender: No OFD packet to send [06:45:07]OFD Sender: No OFD packet to send [06:45:12]OFD Sender: No OFD packet to send [06:45:17]OFD Sender: No OFD packet to send [06:45:22]OFD Sender: No OFD packet to send [06:45:27]OFD Sender: No OFD packet to send [06:45:32]OFD Sender: No OFD packet to send [06:45:37]OFD Sender: No OFD packet to send [06:45:42]OFD Sender: No OFD packet to send [06:45:47]OFD Sender: No OFD packet to send [06:45:52]OFD Sender: No OFD packet to send [06:45:57]OFD Sender: No OFD packet to send [06:46:02]OFD Sender: No OFD packet to send [06:46:07]OFD Sender: No OFD packet to send [06:46:12]OFD Sender: No OFD packet to send [06:46:17]OFD Sender: No OFD packet to send [06:46:22]OFD Sender: No OFD packet to send [06:46:27]OFD Sender: No OFD packet to send [06:46:32]OFD Sender: No OFD packet to send [06:46:37]OFD Sender: No OFD packet to send [06:46:42]OFD Sender: No OFD packet to send [06:46:47]OFD Sender: No OFD packet to send [06:46:52]OFD Sender: No OFD packet to send [06:46:57]OFD Sender: No OFD packet to send [06:47:02]OFD Sender: No OFD packet to send [06:47:07]OFD Sender: No OFD packet to send [06:47:12]OFD Sender: No OFD packet to send [06:47:17]OFD Sender: No OFD packet to send [06:47:22]OFD Sender: No OFD packet to send [06:47:27]OFD Sender: No OFD packet to send [06:47:32]OFD Sender: No OFD packet to send [06:47:37]OFD Sender: No OFD packet to send [06:47:42]OFD Sender: No OFD packet to send [06:47:47]OFD Sender: No OFD packet to send [06:47:52]OFD Sender: No OFD packet to send [06:47:57]OFD Sender: No OFD packet to send [06:48:02]OFD Sender: No OFD packet to send [06:48:07]OFD Sender: No OFD packet to send [06:48:12]OFD Sender: No OFD packet to send [06:48:17]OFD Sender: No OFD packet to send [06:48:22]OFD Sender: No OFD packet to send [06:48:27]OFD Sender: No OFD packet to send [06:48:32]OFD Sender: No OFD packet to send [06:48:37]OFD Sender: No OFD packet to send [06:48:42]OFD Sender: No OFD packet to send [06:48:47]OFD Sender: No OFD packet to send [06:48:52]OFD Sender: No OFD packet to send [06:48:57]OFD Sender: No OFD packet to send [06:49:02]OFD Sender: No OFD packet to send [06:49:07]OFD Sender: No OFD packet to send [06:49:12]OFD Sender: No OFD packet to send [06:49:17]OFD Sender: No OFD packet to send [06:49:22]OFD Sender: No OFD packet to send [06:49:27]OFD Sender: No OFD packet to send [06:49:32]OFD Sender: No OFD packet to send [06:49:37]OFD Sender: No OFD packet to send [06:49:42]OFD Sender: No OFD packet to send [06:49:47]OFD Sender: No OFD packet to send [06:49:52]OFD Sender: No OFD packet to send [06:49:57]OFD Sender: No OFD packet to send [06:50:02]OFD Sender: No OFD packet to send [06:50:07]OFD Sender: No OFD packet to send [06:50:12]OFD Sender: No OFD packet to send [06:50:17]OFD Sender: No OFD packet to send [06:50:22]OFD Sender: No OFD packet to send [06:50:27]OFD Sender: No OFD packet to send [06:50:32]OFD Sender: No OFD packet to send [06:50:37]OFD Sender: No OFD packet to send [06:50:42]OFD Sender: No OFD packet to send [06:50:47]OFD Sender: No OFD packet to send [06:50:52]OFD Sender: No OFD packet to send [06:50:57]OFD Sender: No OFD packet to send [06:51:02]OFD Sender: No OFD packet to send [06:51:07]OFD Sender: No OFD packet to send [06:51:12]OFD Sender: No OFD packet to send [06:51:17]OFD Sender: No OFD packet to send [06:51:22]OFD Sender: No OFD packet to send [06:51:27]OFD Sender: No OFD packet to send [06:51:32]OFD Sender: No OFD packet to send [06:51:37]OFD Sender: No OFD packet to send [06:51:42]OFD Sender: No OFD packet to send [06:51:47]OFD Sender: No OFD packet to send [06:51:52]OFD Sender: No OFD packet to send [06:51:57]OFD Sender: No OFD packet to send [06:52:02]OFD Sender: No OFD packet to send [06:52:07]OFD Sender: No OFD packet to send [06:52:12]OFD Sender: No OFD packet to send [06:52:17]OFD Sender: No OFD packet to send [06:52:22]OFD Sender: No OFD packet to send [06:52:27]OFD Sender: No OFD packet to send [06:52:32]OFD Sender: No OFD packet to send [06:52:37]OFD Sender: No OFD packet to send [06:52:42]OFD Sender: No OFD packet to send [06:52:47]OFD Sender: No OFD packet to send [06:52:52]OFD Sender: No OFD packet to send [06:52:57]OFD Sender: No OFD packet to send [06:53:03]OFD Sender: No OFD packet to send [06:53:08]OFD Sender: No OFD packet to send [06:53:13]OFD Sender: No OFD packet to send [06:53:18]OFD Sender: No OFD packet to send [06:53:23]OFD Sender: No OFD packet to send [06:53:28]OFD Sender: No OFD packet to send [06:53:33]OFD Sender: No OFD packet to send [06:53:38]OFD Sender: No OFD packet to send [06:53:43]OFD Sender: No OFD packet to send [06:53:48]OFD Sender: No OFD packet to send [06:53:53]OFD Sender: No OFD packet to send [06:53:58]OFD Sender: No OFD packet to send [06:54:03]OFD Sender: No OFD packet to send [06:54:08]OFD Sender: No OFD packet to send [06:54:13]OFD Sender: No OFD packet to send [06:54:18]OFD Sender: No OFD packet to send [06:54:23]OFD Sender: No OFD packet to send [06:54:28]OFD Sender: No OFD packet to send [06:54:33]OFD Sender: No OFD packet to send [06:54:38]OFD Sender: No OFD packet to send [06:54:43]OFD Sender: No OFD packet to send [06:54:48]OFD Sender: No OFD packet to send [06:54:53]OFD Sender: No OFD packet to send [06:54:58]OFD Sender: No OFD packet to send [06:55:03]OFD Sender: No OFD packet to send [06:55:08]OFD Sender: No OFD packet to send [06:55:13]OFD Sender: No OFD packet to send [06:55:18]OFD Sender: No OFD packet to send [06:55:23]OFD Sender: No OFD packet to send [06:55:28]OFD Sender: No OFD packet to send [06:55:33]OFD Sender: No OFD packet to send [06:55:38]OFD Sender: No OFD packet to send [06:55:43]OFD Sender: No OFD packet to send [06:55:48]OFD Sender: No OFD packet to send [06:55:53]OFD Sender: No OFD packet to send [06:55:58]OFD Sender: No OFD packet to send [06:56:03]OFD Sender: No OFD packet to send [06:56:08]OFD Sender: No OFD packet to send [06:56:13]OFD Sender: No OFD packet to send [06:56:18]OFD Sender: No OFD packet to send [06:56:23]OFD Sender: No OFD packet to send [06:56:28]OFD Sender: No OFD packet to send [06:56:33]OFD Sender: No OFD packet to send [06:56:38]OFD Sender: No OFD packet to send [06:56:43]OFD Sender: No OFD packet to send [06:56:48]OFD Sender: No OFD packet to send [06:56:53]OFD Sender: No OFD packet to send [06:56:58]OFD Sender: No OFD packet to send [06:57:03]OFD Sender: No OFD packet to send [06:57:08]OFD Sender: No OFD packet to send [06:57:13]OFD Sender: No OFD packet to send [06:57:18]OFD Sender: No OFD packet to send [06:57:23]OFD Sender: No OFD packet to send [06:57:28]OFD Sender: No OFD packet to send [06:57:33]OFD Sender: No OFD packet to send [06:57:38]OFD Sender: No OFD packet to send [06:57:43]OFD Sender: No OFD packet to send [06:57:48]OFD Sender: No OFD packet to send [06:57:53]OFD Sender: No OFD packet to send [06:57:58]OFD Sender: No OFD packet to send [06:58:03]OFD Sender: No OFD packet to send [06:58:08]OFD Sender: No OFD packet to send [06:58:13]OFD Sender: No OFD packet to send [06:58:18]OFD Sender: No OFD packet to send [06:58:23]OFD Sender: No OFD packet to send [06:58:28]OFD Sender: No OFD packet to send [06:58:33]OFD Sender: No OFD packet to send [06:58:38]OFD Sender: No OFD packet to send [06:58:43]OFD Sender: No OFD packet to send [06:58:48]OFD Sender: No OFD packet to send [06:58:53]OFD Sender: No OFD packet to send [06:58:58]OFD Sender: No OFD packet to send [06:59:03]OFD Sender: No OFD packet to send [06:59:08]OFD Sender: No OFD packet to send [06:59:13]OFD Sender: No OFD packet to send [06:59:18]OFD Sender: No OFD packet to send [06:59:23]OFD Sender: No OFD packet to send [06:59:28]OFD Sender: No OFD packet to send [06:59:33]OFD Sender: No OFD packet to send [06:59:38]OFD Sender: No OFD packet to send [06:59:43]OFD Sender: No OFD packet to send [06:59:48]OFD Sender: No OFD packet to send [06:59:53]OFD Sender: No OFD packet to send [06:59:58]OFD Sender: No OFD packet to send [07:00:03]OFD Sender: No OFD packet to send [07:00:08]OFD Sender: No OFD packet to send [07:00:13]OFD Sender: No OFD packet to send [07:00:18]OFD Sender: No OFD packet to send [07:00:23]OFD Sender: No OFD packet to send [07:00:28]OFD Sender: No OFD packet to send [07:00:33]OFD Sender: No OFD packet to send [07:00:38]OFD Sender: No OFD packet to send [07:00:43]OFD Sender: No OFD packet to send [07:00:48]OFD Sender: No OFD packet to send [07:00:53]OFD Sender: No OFD packet to send [07:00:58]OFD Sender: No OFD packet to send [07:01:03]OFD Sender: No OFD packet to send [07:01:08]OFD Sender: No OFD packet to send [07:01:13]OFD Sender: No OFD packet to send [07:01:18]OFD Sender: No OFD packet to send [07:01:23]OFD Sender: No OFD packet to send [07:01:28]OFD Sender: No OFD packet to send [07:01:33]OFD Sender: No OFD packet to send [07:01:38]OFD Sender: No OFD packet to send [07:01:43]OFD Sender: No OFD packet to send [07:01:48]OFD Sender: No OFD packet to send [07:01:53]OFD Sender: No OFD packet to send [07:01:58]OFD Sender: No OFD packet to send [07:02:03]OFD Sender: No OFD packet to send [07:02:08]OFD Sender: No OFD packet to send [07:02:13]OFD Sender: No OFD packet to send [07:02: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:19]OFD Sender: No OFD packet to send [07:07:24]OFD Sender: No OFD packet to send [07:07:29]OFD Sender: No OFD packet to send [07:07:34]OFD Sender: No OFD packet to send [07:07:39]OFD Sender: No OFD packet to send [07:07:44]OFD Sender: No OFD packet to send [07:07:49]OFD Sender: No OFD packet to send [07:07:54]OFD Sender: No OFD packet to send [07:07:59]OFD Sender: No OFD packet to send [07:08:04]OFD Sender: No OFD packet to send [07:08:09]OFD Sender: No OFD packet to send [07:08:14]OFD Sender: No OFD packet to send [07:08:19]OFD Sender: No OFD packet to send [07:08:24]OFD Sender: No OFD packet to send [07:08:29]OFD Sender: No OFD packet to send [07:08:34]OFD Sender: No OFD packet to send [07:08:39]OFD Sender: No OFD packet to send [07:08:44]OFD Sender: No OFD packet to send [07:08:49]OFD Sender: No OFD packet to send [07:08:54]OFD Sender: No OFD packet to send [07:08:59]OFD Sender: No OFD packet to send [07:09:04]OFD Sender: No OFD packet to send [07:09:09]OFD Sender: No OFD packet to send [07:09:14]OFD Sender: No OFD packet to send [07:09:19]OFD Sender: No OFD packet to send [07:09:24]OFD Sender: No OFD packet to send [07:09:29]OFD Sender: No OFD packet to send [07:09:34]OFD Sender: No OFD packet to send [07:09:39]OFD Sender: No OFD packet to send [07:09:44]OFD Sender: No OFD packet to send [07:09:49]OFD Sender: No OFD packet to send [07:09:54]OFD Sender: No OFD packet to send [07:09:59]OFD Sender: No OFD packet to send [07:10:04]OFD Sender: No OFD packet to send [07:10:09]OFD Sender: No OFD packet to send [07:10:14]OFD Sender: No OFD packet to send [07:10:19]OFD Sender: No OFD packet to send [07:10:24]OFD Sender: No OFD packet to send [07:10:29]OFD Sender: No OFD packet to send [07:10:30]accept exits with 7 [07:10:30]New connection [07:10:30]New thread 3067338084 created [07:10:30]Thread 3067481444 joined [07:10:30]Waiting for new connection... [07:10:30] Sock 7.Parse request [07:10:30]Sock 7.Check first char [07:10:30]Sock 7.First char is OK [07:10:30]request: POST /json_proto HTTP/1.0 [07:10:30]Method: POST [07:10:30]URL: /json_proto [07:10:30]Method is POST - this is cgi request [07:10:30]url: /json_proto [07:10:30]query_string will be loaded in cgi processing [07:10:30]execute_cgi json_proto POST (null) [07:10:30]execute_cgi path=json_proto method=POST [07:10:30]POST find Content-Length [07:10:30]Host: 172.17.62.5:8080 [07:10:30]Content-Length: 679 [07:10:30]Content-Type: application/json [07:10:30] [07:10:30]POST finish read [07:10:30]Found Content-Length = 679 [07:10:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\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" ] } } [07:10:30]execute_script... [07:10:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\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" ] } } [07:10:30]POST & json_proto [07:10:30]process_json_proto [07:10:30]json parsed OK: [07:10:30]protocol is kg_v1.0 [07:10:30]action value=close_receipt [07:10:30]process_action close_receipt [07:10:30]cmd_close_receipt [07:10:30]MH_GetDate [07:10:30]Write to MH i2c: F0 00 00 6C 16 71 [07:10:30]Write i2c OK [07:10:30]MH_I2C_Read... [07:10:30]Read from MH i2c: F0 [07:10:30]MH_I2C_Read... [07:10:30]Read from MH i2c: F0 09 00 [07:10:30]MH_I2C_Read... [07:10:30]Read from MH i2c: F0 09 00 6C 16 00 E9 BB 24 66 F4 E9 65 64 4E [07:10:30]GetLastDocTimeStamp 1713681427 [07:10:30]current date 1713683433 [07:10:30]FM_GetShiftState [07:10:30]SAM_PROTO_GetShiftState [07:10:30]wFMCommunicate request_size=4 [07:10:30]MH_SAM_APDU [07:10:30]CAPDU: 80 13 01 00 [07:10:30]Write to MH i2c: E2 08 00 6D 16 80 13 01 00 00 00 00 00 00 [07:10:30]Write i2c OK [07:10:30]MH_I2C_Read... [07:10:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:10:30]Read from MH i2c: E2 [07:10:30]MH_I2C_Read... [07:10:30]Read from MH i2c: E2 0E 00 [07:10:30]MH_I2C_Read... [07:10:30]Read from MH i2c: E2 0E 00 6D 16 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 47 [07:10:30]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [07:10:30]wFMCommunicate OK [07:10:30]SAM_PROTO_GetShiftState done [07:10:30]FM_GetShiftState done [07:10:30]opened in 1713658965 [07:10:30]opened+sec_in_day 1713745365 [07:10:30]quantity*price = 110006 [07:10:30]sum+1 = 110007 [07:10:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.73 НДС 12% : 116.82 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 26 21.04.2024 07:10 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76770 ФПД: 87088840482065 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T071033&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76770&fm=87088840482065&tin=02508201610067®Number=0000000000091573&sum=110000 [07:10:31]StoreToDocumentArchive [07:10:31]shift 372 fd 76770 [07:10:31]save to /storage/0372/doc_00076770 [07:10:31]save last doc name /storage/0372/doc_00076770 to /storage/kkm_last_doc_name [07:10:31]save OK [07:10:31]Clear old archive folders... [07:10:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:10:31]tlvbuf is 018EFD60 [07:10:31]SAM_PROTO_ClearQueue [07:10:31]wFMCommunicate request_size=4 [07:10:31]MH_SAM_APDU [07:10:31]CAPDU: 80 09 00 00 [07:10:31]Write to MH i2c: E2 08 00 7A 16 80 09 00 00 00 00 00 00 02 [07:10:31]Write i2c OK [07:10:31]MH_I2C_Read... [07:10:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:10:31]Read from MH i2c: E2 [07:10:31]MH_I2C_Read... [07:10:31]Read from MH i2c: E2 03 00 [07:10:31]MH_I2C_Read... [07:10:31]Read from MH i2c: E2 03 00 7A 16 00 90 00 04 [07:10:31]RAPDU: 90 00 [07:10:31]wFMCommunicate OK [07:10:31]SAM_PROTO_ClearQueue done [07:10:31]KKMCreateOFDPacket [07:10:31]OFDProtocolAddRootSTLVToBuf [07:10:31]FM_MakeSignedData [07:10:31]FM_MakeSignedData [07:10:31]SAM_PROTO_SignData [07:10:31]wFMCommunicate request_size=4 [07:10:31]MH_SAM_APDU [07:10:31]CAPDU: 80 0D 01 02 [07:10:31]Write to MH i2c: E2 08 00 7B 16 80 0D 01 02 00 00 00 00 0A [07:10:31]Write i2c OK [07:10:31]MH_I2C_Read... [07:10:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:10:31]Read from MH i2c: E2 [07:10:31]MH_I2C_Read... [07:10:31]Read from MH i2c: E2 03 00 [07:10:31]MH_I2C_Read... [07:10:31]Read from MH i2c: E2 03 00 7B 16 00 90 00 05 [07:10:31]RAPDU: 90 00 [07:10:31]wFMCommunicate OK [07:10:31]wFMCommunicate request_size=255 [07:10:31]MH_SAM_APDU [07:10:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 1A 00 00 00 F4 03 04 00 E9 BB 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E2 2B 01 00 35 04 06 00 4F 34 F3 66 [07:10:31]Write to MH i2c: E2 02 01 7C 16 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 1A 00 00 00 F4 03 04 00 E9 BB 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E2 2B 01 00 35 04 06 00 4F 34 F3 66 00 00 8F [07:10:31]Write i2c OK [07:10:31]MH_I2C_Read... [07:10:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:10:32]Read from MH i2c: E2 [07:10:32]MH_I2C_Read... [07:10:32]Read from MH i2c: E2 03 00 [07:10:32]MH_I2C_Read... [07:10:32]Read from MH i2c: E2 03 00 7C 16 00 90 00 06 [07:10:32]RAPDU: 90 00 [07:10:32]wFMCommunicate OK [07:10:32]wFMCommunicate request_size=7 [07:10:32]MH_SAM_APDU [07:10:32]CAPDU: 80 0D 02 02 02 9D 11 [07:10:32]Write to MH i2c: E2 0A 00 7D 16 80 0D 02 02 02 00 9D 11 00 00 BF [07:10:32]Write i2c OK [07:10:32]MH_I2C_Read... [07:10:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:10:32]Read from MH i2c: E2 [07:10:32]MH_I2C_Read... [07:10:32]Read from MH i2c: E2 03 00 [07:10:32]MH_I2C_Read... [07:10:32]Read from MH i2c: E2 03 00 7D 16 00 90 00 07 [07:10:32]RAPDU: 90 00 [07:10:32]wFMCommunicate OK [07:10:32]wFMCommunicate request_size=4 [07:10:32]MH_SAM_APDU [07:10:32]CAPDU: 80 0D 03 02 [07:10:32]Write to MH i2c: E2 08 00 7E 16 80 0D 03 02 00 00 00 00 0F [07:10:32]Write i2c OK [07:10:32]MH_I2C_Read... [07:10:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:10:32]Read from MH i2c: E2 [07:10:32]MH_I2C_Read... [07:10:32]Read from MH i2c: E2 0B 00 [07:10:32]MH_I2C_Read... [07:10:32]Read from MH i2c: E2 0B 00 7E 16 00 AC DA 03 42 80 F5 54 F6 90 00 9A [07:10:32]RAPDU: AC DA 03 42 80 F5 54 F6 90 00 [07:10:32]wFMCommunicate OK [07:10:32]SAM_PROTO_SignData done [07:10:32]FM_MakeSignedData done [07:10:32]CreateOFDProtocolMessage [07:10:32]wFMCommunicate request_size=4 [07:10:32]MH_SAM_APDU [07:10:32]CAPDU: 80 11 00 00 [07:10:32]Write to MH i2c: E2 08 00 7F 16 80 11 00 00 00 00 00 00 0F [07:10:32]Write i2c OK [07:10:32]MH_I2C_Read... [07:10:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:10:32]Read from MH i2c: E2 [07:10:32]MH_I2C_Read... [07:10:32]Read from MH i2c: E2 17 00 [07:10:32]MH_I2C_Read... [07:10:32]Read from MH i2c: E2 17 00 7F 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 62 [07:10:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:10:32]wFMCommunicate OK [07:10:32]CreateOFDProtocolMessage done [07:10:32]OFDSenderStorePacket 76770 [07:10:32]StoreOFDPacket docnum=76770 [07:10:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 C6 66 04 01 88 09 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 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 1A 00 00 00 F4 03 04 00 E9 BB 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E2 2B 01 00 35 04 06 00 4F 34 F3 66 9D 11 AC DA 03 42 80 F5 54 F6 [07:10:32]CheckFolder [07:10:32]dirname=/storage/ofd_packets [07:10:32]CheckFolder done [07:10:32]ProducePacketName [07:10:32]name=ofd_packets/00076770 [07:10:32]NVStorageSaveData ofd_packets/00076770 [07:10:32]File name is /storage/ofd_packets/00076770 [07:10:32]Write 298 bytes [07:10:32]NVStorageSaveData done [07:10:32]OFDSenderStorePacket done [07:10:32]KKMCreateOFDPacket done [07:10:32]NVStorageSaveData kkm_last_timestamp [07:10:32]File name is /storage/kkm_last_timestamp [07:10:32]Write 4 bytes [07:10:32]NVStorageSaveData done [07:10:32]ExternCall_PrintAddStr [07:10:32]wPrintStart [07:10:32]Write to MH i2c: 01 00 00 80 16 96 [07:10:32]Write i2c OK [07:10:32]MH_I2C_Read... [07:10:32]Read from MH i2c: 01 [07:10:32]MH_I2C_Read... [07:10:32]Read from MH i2c: 01 07 00 [07:10:32]MH_I2C_Read... [07:10:32]Read from MH i2c: 01 07 00 80 16 00 00 00 00 00 FF 0F AB [07:10:32]RasterBufferAndPrint [07:10:32]line Счет N : (1)191298 [07:10:32]line ИНН: 02508201610067 [07:10:32]line Контрольно-Кассовый Чек [07:10:32]line ПРОДАЖА [07:10:32]line ТРК (МРК, ГНК) : 51 [07:10:32]line Товар: 2710194210 [07:10:32]line ДТ-К-5 [07:10:32]line 15.090 * 72.90 [07:10:32]line = 1100.06 [07:10:32]line НДС 12% НСП 1% [07:10:32]line > о реализуемом товаре [07:10:32]line ОКРУГЛЕНИЕ: -0.06 [07:10:32]line ИТОГО: 1100.00 [07:10:32]line Внесено: 1100.00 [07:10:32]line СДАЧА: 0.00 [07:10:32]line НСП 1% : 9.73 [07:10:32]line НДС 12% : 116.82 [07:10:32]line Наличными: 1100.00 [07:10:32]line Безнал.: 0.00 [07:10:32]line Место: АЗС № 106 "Партнер Нефть" [07:10:32]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [07:10:32]line СНО: Общий режим [07:10:32]line Чек 26 21.04.2024 07:10 [07:10:32]line Смена: 372 ФФД: 1.0 [07:10:32]line ЗНМ: 0300000141 [07:10:32]line РНМ: 0000000000091573 [07:10:32]line Версия ККМ: 001 [07:10:32]line ФМ: 0000000000874652 [07:10:32]line ФД: 76770 [07:10:32]line ФПД: 87088840482065 [07:10:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T071033&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76770&fm=87088840482065&tin=02508201610067®Number=0000000000091573&sum=110000 [07:10:32]OFD Sender: Processing packet 76770 [packets to send 129, broken 128] [07:10:32]ProducePacketName [07:10:32]name=ofd_packets/00076770 [07:10:32]OFD Sender: To server: pG, [07:10:32]CommunicateWithHost lk.salyk.kg:30040 [07:10:32]ConnectInit lk.salyk.kg [07:10:32]written 0, free lines is 4095 [07:10:32]Connected sock=9 [07:10:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 C6 66 04 01 88 09 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 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 1A 00 00 00 F4 03 04 00 E9 BB 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E2 2B 01 00 35 04 06 00 4F 34 F3 66 9D 11 AC DA 03 42 80 F5 54 F6 [07:10:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 7B A5 47 00 6A 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E2 2B 01 00 F4 03 04 00 6F 63 24 66 B6 04 01 00 00 25 2B E6 E2 3E 9C B4 F0 [07:10:32]CommunicateWithHost err = 0 [07:10:32]CheckOFDResponse [07:10:32]1017 (14) - 77093643461234 [07:10:32]1041 (16) - 0000000000874652 [07:10:32]1040 (4) - 76770 [07:10:32]1012 (4) - 21.04.2024 00:53 [07:10:32]1206 (1) - 0 [07:10:32]OFD Sender: Remove packet 76770 [07:10:32]ProducePacketName [07:10:32]name=ofd_packets/00076770 [07:10:32]NVStorageDeleteData [07:10:33]Write to MH i2c: 01 00 00 AA 16 C0 [07:10:33]Write i2c OK [07:10:33]MH_I2C_Read... [07:10:33]Read from MH i2c: 01 [07:10:33]MH_I2C_Read... [07:10:33]Read from MH i2c: 01 07 00 [07:10:33]MH_I2C_Read... [07:10:33]Read from MH i2c: 01 07 00 AA 16 00 00 00 00 00 E5 0C B8 [07:10:33]RasterBufferAndPrint [07:10:33]line [07:10:33]line [07:10:33]line [07:10:33]line [07:10:33]line [07:10:33]written 0, free lines is 3307 [07:10:33]MH_Cut [07:10:33]Write to MH i2c: D1 01 00 B1 16 01 99 [07:10:33]Write i2c OK [07:10:33]MH_I2C_Read... [07:10:33]Read from MH i2c: D1 [07:10:33]MH_I2C_Read... [07:10:33]Read from MH i2c: D1 01 00 [07:10:33]MH_I2C_Read... [07:10:33]Read from MH i2c: D1 01 00 B1 16 00 98 [07:10:33]Write to MH i2c: 01 00 00 B2 16 C8 [07:10:33]Write i2c OK [07:10:33]MH_I2C_Read... [07:10:33]OFD Sender: No OFD packet to send [07:10:33]*** Cut start [07:10:33]*** Partial cut [07:10:33]*** CUTSNS_PIN = 1 [07:10:33]*** CUTSNS_PIN = 0 [07:10:34]*** Brake cut motor [07:10:34]Read from MH i2c: 01 [07:10:34]MH_I2C_Read... [07:10:34]*** Stop cut motor [07:10:34]*** Cut end [07:10:34]Read from MH i2c: 01 07 00 [07:10:34]MH_I2C_Read... [07:10:34]Read from MH i2c: 01 07 00 B2 16 00 00 00 00 00 FF 0F DD [07:10:34]process_action close_receipt done [07:10:34]requested_data is exist [07:10:34]produce_requested_data [07:10:34]requested_item fm.sn is exist - process it [07:10:34]wFMCommunicate request_size=4 [07:10:34]MH_SAM_APDU [07:10:34]CAPDU: 80 11 00 00 [07:10:34]Write to MH i2c: E2 08 00 B3 16 80 11 00 00 00 00 00 00 43 [07:10:34]Write i2c OK [07:10:34]MH_I2C_Read... [07:10:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:10:34]Read from MH i2c: E2 [07:10:34]MH_I2C_Read... [07:10:34]Read from MH i2c: E2 17 00 [07:10:34]MH_I2C_Read... [07:10:34]Read from MH i2c: E2 17 00 B3 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 96 [07:10:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:10:34]wFMCommunicate OK [07:10:34]requested_item fd.num is exist - process it [07:10:34]SAM_PROTO_GetFieldsCounters [07:10:34]wFMCommunicate request_size=4 [07:10:34]MH_SAM_APDU [07:10:34]CAPDU: 80 13 00 00 [07:10:34]Write to MH i2c: E2 08 00 B4 16 80 13 00 00 00 00 00 00 46 [07:10:34]Write i2c OK [07:10:34]MH_I2C_Read... [07:10:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:10:34]Read from MH i2c: E2 [07:10:34]MH_I2C_Read... [07:10:34]Read from MH i2c: E2 62 00 [07:10:34]MH_I2C_Read... [07:10:34]Read from MH i2c: E2 62 00 B4 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E2 2B 01 00 0E 04 04 00 74 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 38 [07:10:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E2 2B 01 00 0E 04 04 00 74 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 [07:10:34]wFMCommunicate OK [07:10:34]SAM_PROTO_GetFieldsCounters done [07:10:34]requested_item shift.num is exist - process it [07:10:34]requested_item shift.opened is exist - process it [07:10:34]req_shift_opened [07:10:34]FM_GetShiftState [07:10:34]SAM_PROTO_GetShiftState [07:10:34]wFMCommunicate request_size=4 [07:10:34]MH_SAM_APDU [07:10:34]CAPDU: 80 13 01 00 [07:10:34]Write to MH i2c: E2 08 00 B5 16 80 13 01 00 00 00 00 00 48 [07:10:34]Write i2c OK [07:10:34]MH_I2C_Read... [07:10:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:10:34]Read from MH i2c: E2 [07:10:34]MH_I2C_Read... [07:10:34]Read from MH i2c: E2 0E 00 [07:10:34]MH_I2C_Read... [07:10:34]Read from MH i2c: E2 0E 00 B5 16 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 8F [07:10:34]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [07:10:34]wFMCommunicate OK [07:10:34]SAM_PROTO_GetShiftState done [07:10:34]FM_GetShiftState done [07:10:34]req_shift_opened done [07:10:34]requested_item shift.open_date is exist - process it [07:10:34]req_shift_open_date [07:10:34]req_shift_open_date done [07:10:34]produce_requested_data done [07:10:34]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76770,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [07:10:34]process_action_free close_receipt [07:10:34]json_value_free [07:10:34]json_value_free done [07:10:34]process_json_proto returns [07:10:34]Send response to host [07:10:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76770,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [07:10:34]free response buf [07:10:34]execute_script done [07:10:34]execute_script returns [07:10:34]free content buf [07:10:34]Sock 7.Close socket [07:10:34]Sock 7.Thread stoped [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:10:59]accept exits with 10 [07:10:59]New connection [07:10:59]New thread 3067481444 created [07:10:59]Thread 3067338084 joined [07:10:59]Waiting for new connection... [07:10:59] Sock 10.Parse request [07:10:59]Sock 10.Check first char [07:10:59]Sock 10.First char is OK [07:10:59]request: POST /json_proto HTTP/1.0 [07:10:59]Method: POST [07:10:59]URL: /json_proto [07:10:59]Method is POST - this is cgi request [07:10:59]url: /json_proto [07:10:59]query_string will be loaded in cgi processing [07:10:59]execute_cgi json_proto POST (null) [07:10:59]execute_cgi path=json_proto method=POST [07:10:59]POST find Content-Length [07:10:59]Host: 172.17.62.5:8080 [07:10:59]Content-Length: 1195 [07:10:59]Content-Type: application/json [07:10:59] [07:10:59]POST finish read [07:10:59]Found Content-Length = 1195 [07:10: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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041B\u044B\u043C\u0430\u0440\u0435\u0432\u0430 \u0412. \u000A\u0421\u0447\u0435\u0442 N : (1)191299\u000A21.04.2024 06:52\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 : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 1288.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\u000A00085\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:10:59]execute_script... [07:10: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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041B\u044B\u043C\u0430\u0440\u0435\u0432\u0430 \u0412. \u000A\u0421\u0447\u0435\u0442 N : (1)191299\u000A21.04.2024 06:52\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 : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 1288.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\u000A00085\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:10:59]POST & json_proto [07:10:59]process_json_proto [07:10:59]json parsed OK: [07:10:59]protocol is kg_v1.0 [07:10:59]action value=print_text [07:10:59]process_action print_text [07:10:59]cmd_print_text [07:10:59]ExternCall_PrintAddStr [07:10:59]wPrintStart [07:10:59]Write to MH i2c: 01 00 00 B6 16 CC [07:10:59]Write i2c OK [07:10:59]MH_I2C_Read... [07:10:59]Read from MH i2c: 01 [07:10:59]MH_I2C_Read... [07:10:59]Read from MH i2c: 01 07 00 [07:10:59]MH_I2C_Read... [07:10:59]Read from MH i2c: 01 07 00 B6 16 00 00 00 00 00 FF 0F E1 [07:10:59]RasterBufferAndPrint [07:10:59]line *****ТОВАРНЫЙ ЧЕК***** [07:10:59]line АЗС 106 [07:10:59]line Партнер нефть [07:10:59]line 02508201610067 [07:10:59]line Кассир : Лымарева В. [07:10:59]line Счет N : (1)191299 [07:10:59]line 21.04.2024 06:52 [07:10:59]line ПРОДАЖА [07:10:59]line ТРК (МРК, ГНК): 33 [07:10:59]line Вид ГСМ : 2710124130 [07:10:59]line Аи-92-К-5 [07:10:59]line 20.000 x 64.40 [07:10:59]line ИТОГ: 1288.00 [07:10:59]line Тип оплаты: Талоны: Топливная Карта [07:10:59]line 00085 [07:10:59]line ______________________ [07:10:59]line (подпись) [07:10:59]written 0, free lines is 4095 [07:11:00]Write to MH i2c: 01 00 00 CA 16 E0 [07:11:00]Write i2c OK [07:11:00]MH_I2C_Read... [07:11:00]Read from MH i2c: 01 [07:11:00]MH_I2C_Read... [07:11:00]Read from MH i2c: 01 07 00 [07:11:00]MH_I2C_Read... [07:11:00]Read from MH i2c: 01 07 00 CA 16 00 00 00 00 00 11 0E 06 [07:11:00]RasterBufferAndPrint [07:11:00]line [07:11:00]line [07:11:00]line [07:11:00]line [07:11:00]line [07:11:00]written 0, free lines is 3603 [07:11:00]MH_Cut [07:11:00]Write to MH i2c: D1 01 00 D1 16 01 B9 [07:11:00]Write i2c OK [07:11:00]MH_I2C_Read... [07:11:00]Read from MH i2c: D1 [07:11:00]MH_I2C_Read... [07:11:00]Read from MH i2c: D1 01 00 [07:11:00]MH_I2C_Read... [07:11:00]Read from MH i2c: D1 01 00 D1 16 00 B8 [07:11:00]Write to MH i2c: 01 00 00 D2 16 E8 [07:11:00]Write i2c OK [07:11:00]MH_I2C_Read... [07:11:00]*** Cut start [07:11:00]*** Partial cut [07:11:00]*** CUTSNS_PIN = 1 [07:11:00]*** CUTSNS_PIN = 0 [07:11:00]*** Brake cut motor [07:11:01]Read from MH i2c: 01 [07:11:01]MH_I2C_Read... [07:11:01]Read from MH i2c: 01 07 00 [07:11:01]MH_I2C_Read... [07:11:01]*** Stop cut motor [07:11:01]*** Cut end [07:11:01]Read from MH i2c: 01 07 00 D2 16 00 00 00 00 00 FF 0F FD [07:11:01]process_action print_text done [07:11:01]requested_data is exist [07:11:01]produce_requested_data [07:11:01]requested_item fm.sn is exist - process it [07:11:01]wFMCommunicate request_size=4 [07:11:01]MH_SAM_APDU [07:11:01]CAPDU: 80 11 00 00 [07:11:01]Write to MH i2c: E2 08 00 D3 16 80 11 00 00 00 00 00 00 63 [07:11:01]Write i2c OK [07:11:01]MH_I2C_Read... [07:11:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:11:01]Read from MH i2c: E2 [07:11:01]MH_I2C_Read... [07:11:01]Read from MH i2c: E2 17 00 [07:11:01]MH_I2C_Read... [07:11:01]Read from MH i2c: E2 17 00 D3 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 B6 [07:11:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:11:01]wFMCommunicate OK [07:11:01]requested_item fd.num is exist - process it [07:11:01]SAM_PROTO_GetFieldsCounters [07:11:01]wFMCommunicate request_size=4 [07:11:01]MH_SAM_APDU [07:11:01]CAPDU: 80 13 00 00 [07:11:01]Write to MH i2c: E2 08 00 D4 16 80 13 00 00 00 00 00 00 66 [07:11:01]Write i2c OK [07:11:01]MH_I2C_Read... [07:11:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:11:01]Read from MH i2c: E2 [07:11:01]MH_I2C_Read... [07:11:01]Read from MH i2c: E2 62 00 [07:11:01]MH_I2C_Read... [07:11:01]Read from MH i2c: E2 62 00 D4 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E2 2B 01 00 0E 04 04 00 74 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 58 [07:11:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E2 2B 01 00 0E 04 04 00 74 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 [07:11:01]wFMCommunicate OK [07:11:01]SAM_PROTO_GetFieldsCounters done [07:11:01]requested_item shift.num is exist - process it [07:11:01]requested_item shift.opened is exist - process it [07:11:01]req_shift_opened [07:11:01]FM_GetShiftState [07:11:01]SAM_PROTO_GetShiftState [07:11:01]wFMCommunicate request_size=4 [07:11:01]MH_SAM_APDU [07:11:01]CAPDU: 80 13 01 00 [07:11:01]Write to MH i2c: E2 08 00 D5 16 80 13 01 00 00 00 00 00 68 [07:11:01]Write i2c OK [07:11:01]MH_I2C_Read... [07:11:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:11:01]Read from MH i2c: E2 [07:11:01]MH_I2C_Read... [07:11:01]Read from MH i2c: E2 0E 00 [07:11:01]MH_I2C_Read... [07:11:01]Read from MH i2c: E2 0E 00 D5 16 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 AF [07:11:01]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [07:11:01]wFMCommunicate OK [07:11:01]SAM_PROTO_GetShiftState done [07:11:01]FM_GetShiftState done [07:11:01]req_shift_opened done [07:11:01]requested_item shift.open_date is exist - process it [07:11:01]req_shift_open_date [07:11:01]req_shift_open_date done [07:11:01]produce_requested_data done [07:11:01]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76770,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [07:11:01]process_action_free print_text [07:11:01]json_value_free [07:11:01]json_value_free done [07:11:01]process_json_proto returns [07:11:01]Send response to host [07:11:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76770,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [07:11:01]free response buf [07:11:01]execute_script done [07:11:01]execute_script returns [07:11:01]free content buf [07:11:01]Sock 10.Close socket [07:11:01]Sock 10.Thread stoped [07:11:03]OFD Sender: No OFD packet to send [07:11:08]OFD Sender: No OFD packet to send [07:11:13]OFD Sender: No OFD packet to send [07:11:18]OFD Sender: No OFD packet to send [07:11:23]OFD Sender: No OFD packet to send [07:11:28]OFD Sender: No OFD packet to send [07:11:33]OFD Sender: No OFD packet to send [07:11:38]OFD Sender: No OFD packet to send [07:11:43]OFD Sender: No OFD packet to send [07:11:48]OFD Sender: No OFD packet to send [07:11:53]OFD Sender: No OFD packet to send [07:11:58]OFD Sender: No OFD packet to send [07:12:03]OFD Sender: No OFD packet to send [07:12:08]OFD Sender: No OFD packet to send [07:12:13]OFD Sender: No OFD packet to send [07:12:18]OFD Sender: No OFD packet to send [07:12:23]OFD Sender: No OFD packet to send [07:12:28]OFD Sender: No OFD packet to send [07:12:33]OFD Sender: No OFD packet to send [07:12:38]OFD Sender: No OFD packet to send [07:12:43]OFD Sender: No OFD packet to send [07:12:48]OFD Sender: No OFD packet to send [07:12:53]OFD Sender: No OFD packet to send [07:12:58]OFD Sender: No OFD packet to send [07:13:03]OFD Sender: No OFD packet to send [07:13:08]OFD Sender: No OFD packet to send [07:13:13]OFD Sender: No OFD packet to send [07:13:18]OFD Sender: No OFD packet to send [07:13:23]OFD Sender: No OFD packet to send [07:13:28]OFD Sender: No OFD packet to send [07:13:33]OFD Sender: No OFD packet to send [07:13:38]OFD Sender: No OFD packet to send [07:13:43]OFD Sender: No OFD packet to send [07:13:48]OFD Sender: No OFD packet to send [07:13:53]OFD Sender: No OFD packet to send [07:13:58]OFD Sender: No OFD packet to send [07:14:03]OFD Sender: No OFD packet to send [07:14:08]OFD Sender: No OFD packet to send [07:14:13]OFD Sender: No OFD packet to send [07:14:18]OFD Sender: No OFD packet to send [07:14:23]OFD Sender: No OFD packet to send [07:14:28]OFD Sender: No OFD packet to send [07:14:33]OFD Sender: No OFD packet to send [07:14:38]OFD Sender: No OFD packet to send [07:14:43]OFD Sender: No OFD packet to send [07:14:48]OFD Sender: No OFD packet to send [07:14:53]OFD Sender: No OFD packet to send [07:14:58]OFD Sender: No OFD packet to send [07:15:03]OFD Sender: No OFD packet to send [07:15:08]OFD Sender: No OFD packet to send [07:15:13]OFD Sender: No OFD packet to send [07:15:18]OFD Sender: No OFD packet to send [07:15:23]OFD Sender: No OFD packet to send [07:15:28]OFD Sender: No OFD packet to send [07:15:33]OFD Sender: No OFD packet to send [07:15:38]OFD Sender: No OFD packet to send [07:15:43]OFD Sender: No OFD packet to send [07:15:48]OFD Sender: No OFD packet to send [07:15:53]OFD Sender: No OFD packet to send [07:15:58]OFD Sender: No OFD packet to send [07:16:03]OFD Sender: No OFD packet to send [07:16:08]OFD Sender: No OFD packet to send [07:16:13]OFD Sender: No OFD packet to send [07:16:18]OFD Sender: No OFD packet to send [07:16:23]OFD Sender: No OFD packet to send [07:16:28]OFD Sender: No OFD packet to send [07:16:33]OFD Sender: No OFD packet to send [07:16:38]OFD Sender: No OFD packet to send [07:16:43]OFD Sender: No OFD packet to send [07:16:48]OFD Sender: No OFD packet to send [07:16:53]OFD Sender: No OFD packet to send [07:16:58]OFD Sender: No OFD packet to send [07:17:03]OFD Sender: No OFD packet to send [07:17:08]OFD Sender: No OFD packet to send [07:17:13]OFD Sender: No OFD packet to send [07:17:18]OFD Sender: No OFD packet to send [07:17:23]OFD Sender: No OFD packet to send [07:17:28]OFD Sender: No OFD packet to send [07:17:33]OFD Sender: No OFD packet to send [07:17:38]OFD Sender: No OFD packet to send [07:17:43]OFD Sender: No OFD packet to send [07:17:48]OFD Sender: No OFD packet to send [07:17:53]OFD Sender: No OFD packet to send [07:17:58]OFD Sender: No OFD packet to send [07:18:03]OFD Sender: No OFD packet to send [07:18:08]OFD Sender: No OFD packet to send [07:18:13]OFD Sender: No OFD packet to send [07:18:18]OFD Sender: No OFD packet to send [07:18:23]OFD Sender: No OFD packet to send [07:18:28]OFD Sender: No OFD packet to send [07:18:33]OFD Sender: No OFD packet to send [07:18: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:23]accept exits with 7 [07:20:23]New connection [07:20:23]New thread 3067338084 created [07:20:23]Thread 3067481444 joined [07:20:23]Waiting for new connection... [07:20:23] Sock 7.Parse request [07:20:23]Sock 7.Check first char [07:20:23]Sock 7.First char is OK [07:20:23]request: POST /json_proto HTTP/1.0 [07:20:23]Method: POST [07:20:23]URL: /json_proto [07:20:23]Method is POST - this is cgi request [07:20:23]url: /json_proto [07:20:23]query_string will be loaded in cgi processing [07:20:23]execute_cgi json_proto POST (null) [07:20:23]execute_cgi path=json_proto method=POST [07:20:23]POST find Content-Length [07:20:23]Host: 172.17.62.5:8080 [07:20:23]Content-Length: 671 [07:20:23]Content-Type: application/json [07:20:23] [07:20:23]POST finish read [07:20:23]Found Content-Length = 671 [07:20:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 10.710, "sum" : 700.43, "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" ] } } [07:20:23]execute_script... [07:20: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)191300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 10.710, "sum" : 700.43, "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" ] } } [07:20:23]POST & json_proto [07:20:23]process_json_proto [07:20:23]json parsed OK: [07:20:23]protocol is kg_v1.0 [07:20:23]action value=close_receipt [07:20:23]process_action close_receipt [07:20:23]cmd_close_receipt [07:20:23]MH_GetDate [07:20:23]Write to MH i2c: F0 00 00 D6 16 DB [07:20:23]Write i2c OK [07:20:23]MH_I2C_Read... [07:20:23]Read from MH i2c: F0 [07:20:23]MH_I2C_Read... [07:20:23]Read from MH i2c: F0 09 00 [07:20:23]MH_I2C_Read... [07:20:23]Read from MH i2c: F0 09 00 D6 16 00 3A BE 24 66 F4 E9 65 64 0C [07:20:23]GetLastDocTimeStamp 1713683433 [07:20:23]current date 1713684026 [07:20:23]FM_GetShiftState [07:20:23]SAM_PROTO_GetShiftState [07:20:23]wFMCommunicate request_size=4 [07:20:23]MH_SAM_APDU [07:20:23]CAPDU: 80 13 01 00 [07:20:23]Write to MH i2c: E2 08 00 D7 16 80 13 01 00 00 00 00 00 6A [07:20:23]Write i2c OK [07:20:23]MH_I2C_Read... [07:20:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:20:23]Read from MH i2c: E2 [07:20:23]MH_I2C_Read... [07:20:23]Read from MH i2c: E2 0E 00 [07:20:23]MH_I2C_Read... [07:20:23]Read from MH i2c: E2 0E 00 D7 16 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 B1 [07:20:23]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [07:20:23]wFMCommunicate OK [07:20:23]SAM_PROTO_GetShiftState done [07:20:23]FM_GetShiftState done [07:20:23]opened in 1713658965 [07:20:23]opened+sec_in_day 1713745365 [07:20:23]quantity*price = 70043 [07:20:23]sum+1 = 70044 [07:20:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 27 21.04.2024 07:20 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76771 ФПД: 263574854137397 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T072026&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76771&fm=263574854137397&tin=02508201610067®Number=0000000000091573&sum=70000 [07:20:24]StoreToDocumentArchive [07:20:24]shift 372 fd 76771 [07:20:24]save to /storage/0372/doc_00076771 [07:20:24]save last doc name /storage/0372/doc_00076771 to /storage/kkm_last_doc_name [07:20:24]save OK [07:20:24]Clear old archive folders... [07:20:24]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:20:24]tlvbuf is 0185CCC0 [07:20:24]SAM_PROTO_ClearQueue [07:20:24]wFMCommunicate request_size=4 [07:20:24]MH_SAM_APDU [07:20:24]CAPDU: 80 09 00 00 [07:20:24]Write to MH i2c: E2 08 00 E4 16 80 09 00 00 00 00 00 00 6C [07:20:24]Write i2c OK [07:20:24]MH_I2C_Read... [07:20:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:20:24]Read from MH i2c: E2 [07:20:24]MH_I2C_Read... [07:20:24]Read from MH i2c: E2 03 00 [07:20:24]MH_I2C_Read... [07:20:24]Read from MH i2c: E2 03 00 E4 16 00 90 00 6E [07:20:24]RAPDU: 90 00 [07:20:24]wFMCommunicate OK [07:20:24]SAM_PROTO_ClearQueue done [07:20:24]KKMCreateOFDPacket [07:20:24]OFDProtocolAddRootSTLVToBuf [07:20:24]FM_MakeSignedData [07:20:24]FM_MakeSignedData [07:20:24]SAM_PROTO_SignData [07:20:24]wFMCommunicate request_size=4 [07:20:24]MH_SAM_APDU [07:20:24]CAPDU: 80 0D 01 02 [07:20:24]Write to MH i2c: E2 08 00 E5 16 80 0D 01 02 00 00 00 00 74 [07:20:24]Write i2c OK [07:20:24]MH_I2C_Read... [07:20:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:20:24]Read from MH i2c: E2 [07:20:24]MH_I2C_Read... [07:20:24]Read from MH i2c: E2 03 00 [07:20:24]MH_I2C_Read... [07:20:24]Read from MH i2c: E2 03 00 E5 16 00 90 00 6F [07:20:24]RAPDU: 90 00 [07:20:24]wFMCommunicate OK [07:20:24]wFMCommunicate request_size=255 [07:20:24]MH_SAM_APDU [07:20: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 29 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 9B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 3A BE 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E3 2B 01 00 35 04 06 00 [07:20:24]Write to MH i2c: E2 02 01 E6 16 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 29 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 9B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 3A BE 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E3 2B 01 00 35 04 06 00 00 00 2A [07:20:24]Write i2c OK [07:20:24]MH_I2C_Read... [07:20:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:20:25]Read from MH i2c: E2 [07:20:25]MH_I2C_Read... [07:20:25]Read from MH i2c: E2 03 00 [07:20:25]MH_I2C_Read... [07:20:25]Read from MH i2c: E2 03 00 E6 16 00 90 00 70 [07:20:25]RAPDU: 90 00 [07:20:25]wFMCommunicate OK [07:20:25]wFMCommunicate request_size=11 [07:20:25]MH_SAM_APDU [07:20:25]CAPDU: 80 0D 02 02 06 EF B8 4D 8D 76 35 [07:20:25]Write to MH i2c: E2 0E 00 E7 16 80 0D 02 02 06 00 EF B8 4D 8D 76 35 00 00 AF [07:20:25]Write i2c OK [07:20:25]MH_I2C_Read... [07:20:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:20:25]Read from MH i2c: E2 [07:20:25]MH_I2C_Read... [07:20:25]Read from MH i2c: E2 03 00 [07:20:25]MH_I2C_Read... [07:20:25]Read from MH i2c: E2 03 00 E7 16 00 90 00 71 [07:20:25]RAPDU: 90 00 [07:20:25]wFMCommunicate OK [07:20:25]wFMCommunicate request_size=4 [07:20:25]MH_SAM_APDU [07:20:25]CAPDU: 80 0D 03 02 [07:20:25]Write to MH i2c: E2 08 00 E8 16 80 0D 03 02 00 00 00 00 79 [07:20:25]Write i2c OK [07:20:25]MH_I2C_Read... [07:20:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:20:25]Read from MH i2c: E2 [07:20:25]MH_I2C_Read... [07:20:25]Read from MH i2c: E2 0B 00 [07:20:25]MH_I2C_Read... [07:20:25]Read from MH i2c: E2 0B 00 E8 16 00 42 FC 37 D6 83 10 14 93 90 00 FF [07:20:25]RAPDU: 42 FC 37 D6 83 10 14 93 90 00 [07:20:25]wFMCommunicate OK [07:20:25]SAM_PROTO_SignData done [07:20:25]FM_MakeSignedData done [07:20:25]CreateOFDProtocolMessage [07:20:25]wFMCommunicate request_size=4 [07:20:25]MH_SAM_APDU [07:20:25]CAPDU: 80 11 00 00 [07:20:25]Write to MH i2c: E2 08 00 E9 16 80 11 00 00 00 00 00 00 79 [07:20:25]Write i2c OK [07:20:25]MH_I2C_Read... [07:20:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:20:25]Read from MH i2c: E2 [07:20:25]MH_I2C_Read... [07:20:25]Read from MH i2c: E2 17 00 [07:20:25]MH_I2C_Read... [07:20:25]Read from MH i2c: E2 17 00 E9 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 CC [07:20:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:20:25]wFMCommunicate OK [07:20:25]CreateOFDProtocolMessage done [07:20:25]OFDSenderStorePacket 76771 [07:20:25]StoreOFDPacket docnum=76771 [07:20:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 F0 16 08 01 66 60 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 29 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 9B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 3A BE 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E3 2B 01 00 35 04 06 00 EF B8 4D 8D 76 35 42 FC 37 D6 83 10 14 93 [07:20:25]CheckFolder [07:20:25]dirname=/storage/ofd_packets [07:20:25]CheckFolder done [07:20:25]ProducePacketName [07:20:25]name=ofd_packets/00076771 [07:20:25]NVStorageSaveData ofd_packets/00076771 [07:20:25]File name is /storage/ofd_packets/00076771 [07:20:25]Write 302 bytes [07:20:25]NVStorageSaveData done [07:20:25]OFDSenderStorePacket done [07:20:25]KKMCreateOFDPacket done [07:20:25]NVStorageSaveData kkm_last_timestamp [07:20:25]File name is /storage/kkm_last_timestamp [07:20:25]Write 4 bytes [07:20:25]NVStorageSaveData done [07:20:25]ExternCall_PrintAddStr [07:20:25]wPrintStart [07:20:25]Write to MH i2c: 01 00 00 EA 16 00 [07:20:25]Write i2c OK [07:20:25]MH_I2C_Read... [07:20:25]Read from MH i2c: 01 [07:20:25]MH_I2C_Read... [07:20:25]Read from MH i2c: 01 07 00 [07:20:25]MH_I2C_Read... [07:20:25]Read from MH i2c: 01 07 00 EA 16 00 00 00 00 00 FF 0F 15 [07:20:25]RasterBufferAndPrint [07:20:25]line Счет N : (1)191300 [07:20:25]line ИНН: 02508201610067 [07:20:25]line Контрольно-Кассовый Чек [07:20:25]line ПРОДАЖА [07:20:25]line ТРК (МРК, ГНК) : 41 [07:20:25]line Товар: 2710124130 [07:20:25]line SUPER 92-К-5 [07:20:25]line 10.710 * 65.40 [07:20:25]line = 700.43 [07:20:25]line НДС 12% НСП 1% [07:20:25]line > о реализуемом товаре [07:20:25]line ОКРУГЛЕНИЕ: -0.43 [07:20:25]line ИТОГО: 700.00 [07:20:25]line Внесено: 700.00 [07:20:25]line СДАЧА: 0.00 [07:20:25]line НСП 1% : 6.20 [07:20:25]line НДС 12% : 74.38 [07:20:25]line Наличными: 700.00 [07:20:25]line Безнал.: 0.00 [07:20:25]line Место: АЗС № 106 "Партнер Нефть" [07:20:25]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [07:20:25]line СНО: Общий режим [07:20:25]line Чек 27 21.04.2024 07:20 [07:20:25]line Смена: 372 ФФД: 1.0 [07:20:25]line ЗНМ: 0300000141 [07:20:25]line РНМ: 0000000000091573 [07:20:25]line Версия ККМ: 001 [07:20:25]line ФМ: 0000000000874652 [07:20:25]line ФД: 76771 [07:20:25]line ФПД: 263574854137397 [07:20:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T072026&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76771&fm=263574854137397&tin=02508201610067®Number=0000000000091573&sum=70000 [07:20:25]written 0, free lines is 4095 [07:20:25]OFD Sender: Processing packet 76771 [packets to send 129, broken 128] [07:20:25]ProducePacketName [07:20:25]name=ofd_packets/00076771 [07:20:25]OFD Sender: To server: pG, [07:20:25]CommunicateWithHost lk.salyk.kg:30040 [07:20:25]ConnectInit lk.salyk.kg [07:20:25]Connected sock=10 [07:20:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 F0 16 08 01 66 60 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 29 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 9B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 3A BE 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E3 2B 01 00 35 04 06 00 EF B8 4D 8D 76 35 42 FC 37 D6 83 10 14 93 [07:20:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 89 9E 47 00 02 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 34 36 35 32 10 04 04 00 E3 2B 01 00 F4 03 04 00 C0 65 24 66 B6 04 01 00 00 DA 59 BC 6C 70 19 EF 06 [07:20:25]CommunicateWithHost err = 0 [07:20:25]CheckOFDResponse [07:20:25]1017 (14) - 77093643461234 [07:20:25]1041 (16) - 0000000000874652 [07:20:25]1040 (4) - 76771 [07:20:25]1012 (4) - 21.04.2024 01:02 [07:20:25]1206 (1) - 0 [07:20:25]OFD Sender: Remove packet 76771 [07:20:25]ProducePacketName [07:20:25]name=ofd_packets/00076771 [07:20:25]NVStorageDeleteData [07:20:26]Write to MH i2c: 01 00 00 14 17 2B [07:20:26]Write i2c OK [07:20:26]MH_I2C_Read... [07:20:26]Read from MH i2c: 01 [07:20:26]MH_I2C_Read... [07:20:26]Read from MH i2c: 01 07 00 [07:20:26]MH_I2C_Read... [07:20:26]Read from MH i2c: 01 07 00 14 17 00 00 00 00 00 F8 0C 36 [07:20:26]RasterBufferAndPrint [07:20:26]line [07:20:26]line [07:20:26]line [07:20:26]line [07:20:26]line [07:20:26]written 0, free lines is 3327 [07:20:26]MH_Cut [07:20:26]Write to MH i2c: D1 01 00 1B 17 01 04 [07:20:26]Write i2c OK [07:20:26]MH_I2C_Read... [07:20:26]Read from MH i2c: D1 [07:20:26]MH_I2C_Read... [07:20:26]Read from MH i2c: D1 01 00 [07:20:26]MH_I2C_Read... [07:20:26]Read from MH i2c: D1 01 00 1B 17 00 03 [07:20:26]Write to MH i2c: 01 00 00 1C 17 33 [07:20:26]Write i2c OK [07:20:26]MH_I2C_Read... [07:20:26]OFD Sender: No OFD packet to send [07:20:26]*** Cut start [07:20:26]*** Partial cut [07:20:26]*** CUTSNS_PIN = 1 [07:20:26]*** CUTSNS_PIN = 0 [07:20:27]*** Brake cut motor [07:20:27]Read from MH i2c: 01 [07:20:27]MH_I2C_Read... [07:20:27]*** Stop cut motor [07:20:27]*** Cut end [07:20:27]Read from MH i2c: 01 07 00 [07:20:27]MH_I2C_Read... [07:20:27]Read from MH i2c: 01 07 00 1C 17 00 00 00 00 00 FF 0F 48 [07:20:27]process_action close_receipt done [07:20:27]requested_data is exist [07:20:27]produce_requested_data [07:20:27]requested_item fm.sn is exist - process it [07:20:27]wFMCommunicate request_size=4 [07:20:27]MH_SAM_APDU [07:20:27]CAPDU: 80 11 00 00 [07:20:27]Write to MH i2c: E2 08 00 1D 17 80 11 00 00 00 00 00 00 AE [07:20:27]Write i2c OK [07:20:27]MH_I2C_Read... [07:20:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:20:27]Read from MH i2c: E2 [07:20:27]MH_I2C_Read... [07:20:27]Read from MH i2c: E2 17 00 [07:20:27]MH_I2C_Read... [07:20:27]Read from MH i2c: E2 17 00 1D 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 01 [07:20:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:20:27]wFMCommunicate OK [07:20:27]requested_item fd.num is exist - process it [07:20:27]SAM_PROTO_GetFieldsCounters [07:20:27]wFMCommunicate request_size=4 [07:20:27]MH_SAM_APDU [07:20:27]CAPDU: 80 13 00 00 [07:20:27]Write to MH i2c: E2 08 00 1E 17 80 13 00 00 00 00 00 00 B1 [07:20:27]Write i2c OK [07:20:27]MH_I2C_Read... [07:20:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:20:27]Read from MH i2c: E2 [07:20:27]MH_I2C_Read... [07:20:27]Read from MH i2c: E2 62 00 [07:20:27]MH_I2C_Read... [07:20:27]Read from MH i2c: E2 62 00 1E 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E3 2B 01 00 0E 04 04 00 74 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 A7 [07:20: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E3 2B 01 00 0E 04 04 00 74 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 [07:20:27]wFMCommunicate OK [07:20:27]SAM_PROTO_GetFieldsCounters done [07:20:27]requested_item shift.num is exist - process it [07:20:27]requested_item shift.opened is exist - process it [07:20:27]req_shift_opened [07:20:27]FM_GetShiftState [07:20:27]SAM_PROTO_GetShiftState [07:20:27]wFMCommunicate request_size=4 [07:20:27]MH_SAM_APDU [07:20:27]CAPDU: 80 13 01 00 [07:20:27]Write to MH i2c: E2 08 00 1F 17 80 13 01 00 00 00 00 00 B3 [07:20:27]Write i2c OK [07:20:27]MH_I2C_Read... [07:20:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:20:27]Read from MH i2c: E2 [07:20:27]MH_I2C_Read... [07:20:27]Read from MH i2c: E2 0E 00 [07:20:27]MH_I2C_Read... [07:20:27]Read from MH i2c: E2 0E 00 1F 17 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 FA [07:20:27]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [07:20:27]wFMCommunicate OK [07:20:27]SAM_PROTO_GetShiftState done [07:20:27]FM_GetShiftState done [07:20:27]req_shift_opened done [07:20:27]requested_item shift.open_date is exist - process it [07:20:27]req_shift_open_date [07:20:27]req_shift_open_date done [07:20:27]produce_requested_data done [07:20:27]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76771,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [07:20:27]process_action_free close_receipt [07:20:27]json_value_free [07:20:27]json_value_free done [07:20:27]process_json_proto returns [07:20:27]Send response to host [07:20:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76771,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [07:20:27]free response buf [07:20:27]execute_script done [07:20:27]execute_script returns [07:20:27]free content buf [07:20:27]Sock 7.Close socket [07:20:27]Sock 7.Thread stoped [07:20:31]OFD Sender: No OFD packet to send [07:20:36]OFD Sender: No OFD packet to send [07:20:41]OFD Sender: No OFD packet to send [07:20:46]OFD Sender: No OFD packet to send [07:20:51]OFD Sender: No OFD packet to send [07:20:56]OFD Sender: No OFD packet to send [07:21:01]OFD Sender: No OFD packet to send [07:21:06]OFD Sender: No OFD packet to send [07:21:11]OFD Sender: No OFD packet to send [07:21:16]OFD Sender: No OFD packet to send [07:21:21]OFD Sender: No OFD packet to send [07:21:26]OFD Sender: No OFD packet to send [07:21:31]OFD Sender: No OFD packet to send [07:21:36]OFD Sender: No OFD packet to send [07:21:41]OFD Sender: No OFD packet to send [07:21:46]OFD Sender: No OFD packet to send [07:21:51]OFD Sender: No OFD packet to send [07:21:56]OFD Sender: No OFD packet to send [07:22:01]OFD Sender: No OFD packet to send [07:22:06]OFD Sender: No OFD packet to send [07:22:11]OFD Sender: No OFD packet to send [07:22:16]OFD Sender: No OFD packet to send [07:22:21]OFD Sender: No OFD packet to send [07:22:26]OFD Sender: No OFD packet to send [07:22:31]OFD Sender: No OFD packet to send [07:22:36]OFD Sender: No OFD packet to send [07:22:41]OFD Sender: No OFD packet to send [07:22:46]OFD Sender: No OFD packet to send [07:22:51]OFD Sender: No OFD packet to send [07:22:56]OFD Sender: No OFD packet to send [07:23:01]OFD Sender: No OFD packet to send [07:23:06]OFD Sender: No OFD packet to send [07:23:11]OFD Sender: No OFD packet to send [07:23:16]OFD Sender: No OFD packet to send [07:23:21]OFD Sender: No OFD packet to send [07:23:26]OFD Sender: No OFD packet to send [07:23:31]OFD Sender: No OFD packet to send [07:23:36]OFD Sender: No OFD packet to send [07:23:41]OFD Sender: No OFD packet to send [07:23:46]OFD Sender: No OFD packet to send [07:23:51]OFD Sender: No OFD packet to send [07:23:56]OFD Sender: No OFD packet to send [07:24:01]OFD Sender: No OFD packet to send [07:24:06]OFD Sender: No OFD packet to send [07:24:11]OFD Sender: No OFD packet to send [07:24:16]OFD Sender: No OFD packet to send [07:24:21]OFD Sender: No OFD packet to send [07:24:26]OFD Sender: No OFD packet to send [07:24:31]OFD Sender: No OFD packet to send [07:24:36]OFD Sender: No OFD packet to send [07:24:41]OFD Sender: No OFD packet to send [07:24:46]OFD Sender: No OFD packet to send [07:24:51]OFD Sender: No OFD packet to send [07:24:56]OFD Sender: No OFD packet to send [07:25:01]OFD Sender: No OFD packet to send [07:25:06]OFD Sender: No OFD packet to send [07:25:11]OFD Sender: No OFD packet to send [07:25:16]OFD Sender: No OFD packet to send [07:25:21]OFD Sender: No OFD packet to send [07:25:21]accept exits with 9 [07:25:21]New connection [07:25:21]New thread 3067481444 created [07:25:21]Thread 3067338084 joined [07:25:21]Waiting for new connection... [07:25:21] Sock 9.Parse request [07:25:21]Sock 9.Check first char [07:25:21]Sock 9.First char is OK [07:25:21]request: POST /json_proto HTTP/1.0 [07:25:21]Method: POST [07:25:21]URL: /json_proto [07:25:21]Method is POST - this is cgi request [07:25:21]url: /json_proto [07:25:21]query_string will be loaded in cgi processing [07:25:21]execute_cgi json_proto POST (null) [07:25:21]execute_cgi path=json_proto method=POST [07:25:21]POST find Content-Length [07:25:21]Host: 172.17.62.5:8080 [07:25:21]Content-Length: 675 [07:25:21]Content-Type: application/json [07:25:21] [07:25:21]POST finish read [07:25:21]Found Content-Length = 675 [07:25:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 15.300, "sum" : 1000.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:25:21]execute_script... [07:25: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)191301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 15.300, "sum" : 1000.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:25:21]POST & json_proto [07:25:21]process_json_proto [07:25:21]json parsed OK: [07:25:21]protocol is kg_v1.0 [07:25:21]action value=close_receipt [07:25:21]process_action close_receipt [07:25:21]cmd_close_receipt [07:25:21]MH_GetDate [07:25:21]Write to MH i2c: F0 00 00 20 17 26 [07:25:21]Write i2c OK [07:25:21]MH_I2C_Read... [07:25:21]Read from MH i2c: F0 [07:25:21]MH_I2C_Read... [07:25:21]Read from MH i2c: F0 09 00 [07:25:21]MH_I2C_Read... [07:25:21]Read from MH i2c: F0 09 00 20 17 00 65 BF 24 66 F4 E9 65 64 83 [07:25:21]GetLastDocTimeStamp 1713684026 [07:25:21]current date 1713684325 [07:25:21]FM_GetShiftState [07:25:21]SAM_PROTO_GetShiftState [07:25:21]wFMCommunicate request_size=4 [07:25:21]MH_SAM_APDU [07:25:21]CAPDU: 80 13 01 00 [07:25:21]Write to MH i2c: E2 08 00 21 17 80 13 01 00 00 00 00 00 B5 [07:25:21]Write i2c OK [07:25:21]MH_I2C_Read... [07:25:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:25:21]Read from MH i2c: E2 [07:25:21]MH_I2C_Read... [07:25:21]Read from MH i2c: E2 0E 00 [07:25:21]MH_I2C_Read... [07:25:21]Read from MH i2c: E2 0E 00 21 17 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 FC [07:25:21]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [07:25:21]wFMCommunicate OK [07:25:21]SAM_PROTO_GetShiftState done [07:25:21]FM_GetShiftState done [07:25:21]opened in 1713658965 [07:25:21]opened+sec_in_day 1713745365 [07:25:21]quantity*price = 100062 [07:25:21]sum+1 = 100063 [07:25:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 28 21.04.2024 07:25 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76772 ФПД: 148167049070008 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T072525&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76772&fm=148167049070008&tin=02508201610067®Number=0000000000091573&sum=100000 [07:25:23]StoreToDocumentArchive [07:25:23]shift 372 fd 76772 [07:25:23]save to /storage/0372/doc_00076772 [07:25:23]save last doc name /storage/0372/doc_00076772 to /storage/kkm_last_doc_name [07:25:23]save OK [07:25:23]Clear old archive folders... [07:25:23]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:25:23]tlvbuf is 018B5510 [07:25:23]SAM_PROTO_ClearQueue [07:25:23]wFMCommunicate request_size=4 [07:25:23]MH_SAM_APDU [07:25:23]CAPDU: 80 09 00 00 [07:25:23]Write to MH i2c: E2 08 00 2E 17 80 09 00 00 00 00 00 00 B7 [07:25:23]Write i2c OK [07:25:23]MH_I2C_Read... [07:25:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:25:23]Read from MH i2c: E2 [07:25:23]MH_I2C_Read... [07:25:23]Read from MH i2c: E2 03 00 [07:25:23]MH_I2C_Read... [07:25:23]Read from MH i2c: E2 03 00 2E 17 00 90 00 B9 [07:25:23]RAPDU: 90 00 [07:25:23]wFMCommunicate OK [07:25:23]SAM_PROTO_ClearQueue done [07:25:23]KKMCreateOFDPacket [07:25:23]OFDProtocolAddRootSTLVToBuf [07:25:23]FM_MakeSignedData [07:25:23]FM_MakeSignedData [07:25:23]SAM_PROTO_SignData [07:25:23]wFMCommunicate request_size=4 [07:25:23]MH_SAM_APDU [07:25:23]CAPDU: 80 0D 01 02 [07:25:23]Write to MH i2c: E2 08 00 2F 17 80 0D 01 02 00 00 00 00 BF [07:25:23]Write i2c OK [07:25:23]MH_I2C_Read... [07:25:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:25:23]Read from MH i2c: E2 [07:25:23]MH_I2C_Read... [07:25:23]Read from MH i2c: E2 03 00 [07:25:23]MH_I2C_Read... [07:25:23]Read from MH i2c: E2 03 00 2F 17 00 90 00 BA [07:25:23]RAPDU: 90 00 [07:25:23]wFMCommunicate OK [07:25:23]wFMCommunicate request_size=255 [07:25:23]MH_SAM_APDU [07:25:23]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1C 00 00 00 F4 03 04 00 65 BF 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E4 2B 01 00 35 04 06 00 [07:25:23]Write to MH i2c: E2 02 01 30 17 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1C 00 00 00 F4 03 04 00 65 BF 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E4 2B 01 00 35 04 06 00 00 00 2F [07:25:23]Write i2c OK [07:25:23]MH_I2C_Read... [07:25:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:25:23]Read from MH i2c: E2 [07:25:23]MH_I2C_Read... [07:25:23]Read from MH i2c: E2 03 00 [07:25:23]MH_I2C_Read... [07:25:23]Read from MH i2c: E2 03 00 30 17 00 90 00 BB [07:25:23]RAPDU: 90 00 [07:25:23]wFMCommunicate OK [07:25:23]wFMCommunicate request_size=11 [07:25:23]MH_SAM_APDU [07:25:23]CAPDU: 80 0D 02 02 06 86 C1 D4 53 C5 B8 [07:25:23]Write to MH i2c: E2 0E 00 31 17 80 0D 02 02 06 00 86 C1 D4 53 C5 B8 00 00 B9 [07:25:23]Write i2c OK [07:25:23]MH_I2C_Read... [07:25:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:25:23]Read from MH i2c: E2 [07:25:23]MH_I2C_Read... [07:25:23]Read from MH i2c: E2 03 00 [07:25:23]MH_I2C_Read... [07:25:23]Read from MH i2c: E2 03 00 31 17 00 90 00 BC [07:25:23]RAPDU: 90 00 [07:25:23]wFMCommunicate OK [07:25:23]wFMCommunicate request_size=4 [07:25:23]MH_SAM_APDU [07:25:23]CAPDU: 80 0D 03 02 [07:25:23]Write to MH i2c: E2 08 00 32 17 80 0D 03 02 00 00 00 00 C4 [07:25:23]Write i2c OK [07:25:23]MH_I2C_Read... [07:25:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:25:23]Read from MH i2c: E2 [07:25:23]MH_I2C_Read... [07:25:23]Read from MH i2c: E2 0B 00 [07:25:23]MH_I2C_Read... [07:25:23]Read from MH i2c: E2 0B 00 32 17 00 4A 7E 97 C8 E4 43 4E 2A 90 00 8B [07:25:23]RAPDU: 4A 7E 97 C8 E4 43 4E 2A 90 00 [07:25:23]wFMCommunicate OK [07:25:23]SAM_PROTO_SignData done [07:25:23]FM_MakeSignedData done [07:25:23]CreateOFDProtocolMessage [07:25:23]wFMCommunicate request_size=4 [07:25:23]MH_SAM_APDU [07:25:23]CAPDU: 80 11 00 00 [07:25:23]Write to MH i2c: E2 08 00 33 17 80 11 00 00 00 00 00 00 C4 [07:25:23]Write i2c OK [07:25:23]MH_I2C_Read... [07:25:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:25:23]Read from MH i2c: E2 [07:25:23]MH_I2C_Read... [07:25:23]Read from MH i2c: E2 17 00 [07:25:23]MH_I2C_Read... [07:25:23]Read from MH i2c: E2 17 00 33 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 17 [07:25:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:25:23]wFMCommunicate OK [07:25:23]CreateOFDProtocolMessage done [07:25:23]OFDSenderStorePacket 76772 [07:25:23]StoreOFDPacket docnum=76772 [07:25:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 C3 2C 08 01 B0 3D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1C 00 00 00 F4 03 04 00 65 BF 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E4 2B 01 00 35 04 06 00 86 C1 D4 53 C5 B8 4A 7E 97 C8 E4 43 4E 2A [07:25:23]CheckFolder [07:25:23]dirname=/storage/ofd_packets [07:25:23]CheckFolder done [07:25:23]ProducePacketName [07:25:23]name=ofd_packets/00076772 [07:25:23]NVStorageSaveData ofd_packets/00076772 [07:25:23]File name is /storage/ofd_packets/00076772 [07:25:23]Write 302 bytes [07:25:23]NVStorageSaveData done [07:25:23]OFDSenderStorePacket done [07:25:23]KKMCreateOFDPacket done [07:25:23]NVStorageSaveData kkm_last_timestamp [07:25:23]File name is /storage/kkm_last_timestamp [07:25:23]Write 4 bytes [07:25:23]NVStorageSaveData done [07:25:23]ExternCall_PrintAddStr [07:25:23]wPrintStart [07:25:23]Write to MH i2c: 01 00 00 34 17 4B [07:25:23]Write i2c OK [07:25:23]MH_I2C_Read... [07:25:23]Read from MH i2c: 01 [07:25:23]MH_I2C_Read... [07:25:23]Read from MH i2c: 01 07 00 [07:25:23]MH_I2C_Read... [07:25:23]Read from MH i2c: 01 07 00 34 17 00 00 00 00 00 FF 0F 60 [07:25:23]RasterBufferAndPrint [07:25:23]line Счет N : (1)191301 [07:25:23]line ИНН: 02508201610067 [07:25:23]line Контрольно-Кассовый Чек [07:25:23]line ПРОДАЖА [07:25:23]line ТРК (МРК, ГНК) : 41 [07:25:23]line Товар: 2710124130 [07:25:23]line SUPER 92-К-5 [07:25:23]line 15.300 * 65.40 [07:25:23]line = 1000.62 [07:25:23]line НДС 12% НСП 1% [07:25:23]line > о реализуемом товаре [07:25:23]line ОКРУГЛЕНИЕ: -0.62 [07:25:23]line ИТОГО: 1000.00 [07:25:23]line Внесено: 1000.00 [07:25:23]line СДАЧА: 0.00 [07:25:23]line НСП 1% : 8.85 [07:25:23]line НДС 12% : 106.26 [07:25:23]line Наличными: 1000.00 [07:25:23]line Безнал.: 0.00 [07:25:23]line Место: АЗС № 106 "Партнер Нефть" [07:25:23]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [07:25:23]line СНО: Общий режим [07:25:23]line Чек 28 21.04.2024 07:25 [07:25:23]line Смена: 372 ФФД: 1.0 [07:25:23]line ЗНМ: 0300000141 [07:25:23]line РНМ: 0000000000091573 [07:25:23]line Версия ККМ: 001 [07:25:23]line ФМ: 0000000000874652 [07:25:23]line ФД: 76772 [07:25:23]line ФПД: 148167049070008 [07:25:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T072525&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76772&fm=148167049070008&tin=02508201610067®Number=0000000000091573&sum=100000 [07:25:23]written 0, free lines is 4095 [07:25:23]OFD Sender: Processing packet 76772 [packets to send 129, broken 128] [07:25:23]ProducePacketName [07:25:23]name=ofd_packets/00076772 [07:25:23]OFD Sender: To server: pG, [07:25:23]CommunicateWithHost lk.salyk.kg:30040 [07:25:23]ConnectInit lk.salyk.kg [07:25:24]Connected sock=10 [07:25:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 C3 2C 08 01 B0 3D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1C 00 00 00 F4 03 04 00 65 BF 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E4 2B 01 00 35 04 06 00 86 C1 D4 53 C5 B8 4A 7E 97 C8 E4 43 4E 2A [07:25:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 2E 21 47 00 0A 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 34 36 35 32 10 04 04 00 E4 2B 01 00 F4 03 04 00 EB 66 24 66 B6 04 01 00 00 83 EE 1A DB F5 04 D8 81 [07:25:24]CommunicateWithHost err = 0 [07:25:24]CheckOFDResponse [07:25:24]1017 (14) - 77093643461234 [07:25:24]1041 (16) - 0000000000874652 [07:25:24]1040 (4) - 76772 [07:25:24]1012 (4) - 21.04.2024 01:07 [07:25:24]1206 (1) - 0 [07:25:24]OFD Sender: Remove packet 76772 [07:25:24]ProducePacketName [07:25:24]name=ofd_packets/00076772 [07:25:24]NVStorageDeleteData [07:25:24]Write to MH i2c: 01 00 00 5E 17 75 [07:25:24]Write i2c OK [07:25:24]MH_I2C_Read... [07:25:24]Read from MH i2c: 01 [07:25:24]MH_I2C_Read... [07:25:24]Read from MH i2c: 01 07 00 [07:25:24]MH_I2C_Read... [07:25:24]Read from MH i2c: 01 07 00 5E 17 00 00 00 00 00 F3 0C 7B [07:25:24]RasterBufferAndPrint [07:25:24]line [07:25:24]line [07:25:24]line [07:25:24]line [07:25:24]line [07:25:24]written 0, free lines is 3322 [07:25:24]MH_Cut [07:25:24]Write to MH i2c: D1 01 00 65 17 01 4E [07:25:24]Write i2c OK [07:25:24]MH_I2C_Read... [07:25:24]Read from MH i2c: D1 [07:25:24]MH_I2C_Read... [07:25:24]Read from MH i2c: D1 01 00 [07:25:24]MH_I2C_Read... [07:25:24]Read from MH i2c: D1 01 00 65 17 00 4D [07:25:24]Write to MH i2c: 01 00 00 66 17 7D [07:25:24]Write i2c OK [07:25:24]MH_I2C_Read... [07:25:24]OFD Sender: No OFD packet to send [07:25:25]*** Cut start [07:25:25]*** Partial cut [07:25:25]*** CUTSNS_PIN = 1 [07:25:25]*** CUTSNS_PIN = 0 [07:25:25]*** Brake cut motor [07:25:25]Read from MH i2c: 01 [07:25:25]MH_I2C_Read... [07:25:25]*** Stop cut motor [07:25:25]*** Cut end [07:25:25]Read from MH i2c: 01 07 00 [07:25:25]MH_I2C_Read... [07:25:25]Read from MH i2c: 01 07 00 66 17 00 00 00 00 00 FF 0F 92 [07:25:25]process_action close_receipt done [07:25:25]requested_data is exist [07:25:25]produce_requested_data [07:25:25]requested_item fm.sn is exist - process it [07:25:25]wFMCommunicate request_size=4 [07:25:25]MH_SAM_APDU [07:25:25]CAPDU: 80 11 00 00 [07:25:25]Write to MH i2c: E2 08 00 67 17 80 11 00 00 00 00 00 00 F8 [07:25:25]Write i2c OK [07:25:25]MH_I2C_Read... [07:25:25]Read from MH i2c: E2 [07:25:25]MH_I2C_Read... [07:25:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:25:25]Read from MH i2c: E2 17 00 [07:25:25]MH_I2C_Read... [07:25:25]Read from MH i2c: E2 17 00 67 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 4B [07:25:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:25:25]wFMCommunicate OK [07:25:25]requested_item fd.num is exist - process it [07:25:25]SAM_PROTO_GetFieldsCounters [07:25:25]wFMCommunicate request_size=4 [07:25:25]MH_SAM_APDU [07:25:25]CAPDU: 80 13 00 00 [07:25:25]Write to MH i2c: E2 08 00 68 17 80 13 00 00 00 00 00 00 FB [07:25:25]Write i2c OK [07:25:25]MH_I2C_Read... [07:25:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:25:25]Read from MH i2c: E2 [07:25:25]MH_I2C_Read... [07:25:25]Read from MH i2c: E2 62 00 [07:25:25]MH_I2C_Read... [07:25:25]Read from MH i2c: E2 62 00 68 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E4 2B 01 00 0E 04 04 00 74 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 F5 [07: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E4 2B 01 00 0E 04 04 00 74 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 [07:25:25]wFMCommunicate OK [07:25:25]SAM_PROTO_GetFieldsCounters done [07:25:25]requested_item shift.num is exist - process it [07:25:25]requested_item shift.opened is exist - process it [07:25:25]req_shift_opened [07:25:25]FM_GetShiftState [07:25:25]SAM_PROTO_GetShiftState [07:25:25]wFMCommunicate request_size=4 [07:25:25]MH_SAM_APDU [07:25:25]CAPDU: 80 13 01 00 [07:25:25]Write to MH i2c: E2 08 00 69 17 80 13 01 00 00 00 00 00 FD [07:25:25]Write i2c OK [07:25:25]MH_I2C_Read... [07:25:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:25:26]Read from MH i2c: E2 [07:25:26]MH_I2C_Read... [07:25:26]Read from MH i2c: E2 0E 00 [07:25:26]MH_I2C_Read... [07:25:26]Read from MH i2c: E2 0E 00 69 17 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 44 [07:25:26]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [07:25:26]wFMCommunicate OK [07:25:26]SAM_PROTO_GetShiftState done [07:25:26]FM_GetShiftState done [07:25:26]req_shift_opened done [07:25:26]requested_item shift.open_date is exist - process it [07:25:26]req_shift_open_date [07:25:26]req_shift_open_date done [07:25:26]produce_requested_data done [07:25:26]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76772,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [07:25:26]process_action_free close_receipt [07:25:26]json_value_free [07:25:26]json_value_free done [07:25:26]process_json_proto returns [07:25:26]Send response to host [07:25:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76772,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [07:25:26]free response buf [07:25:26]execute_script done [07:25:26]execute_script returns [07:25:26]free content buf [07:25:26]Sock 9.Close socket [07:25:26]Sock 9.Thread stoped [07:25:29]OFD Sender: No OFD packet to send [07:25:34]OFD Sender: No OFD packet to send [07:25:39]OFD Sender: No OFD packet to send [07:25:44]OFD Sender: No OFD packet to send [07:25:49]OFD Sender: No OFD packet to send [07:25:54]OFD Sender: No OFD packet to send [07:25:59]OFD Sender: No OFD packet to send [07:26:04]OFD Sender: No OFD packet to send [07:26:09]OFD Sender: No OFD packet to send [07:26:14]OFD Sender: No OFD packet to send [07:26:19]OFD Sender: No OFD packet to send [07:26:24]OFD Sender: No OFD packet to send [07:26:29]OFD Sender: No OFD packet to send [07:26:34]OFD Sender: No OFD packet to send [07:26:39]OFD Sender: No OFD packet to send [07:26:44]OFD Sender: No OFD packet to send [07:26:49]OFD Sender: No OFD packet to send [07:26:54]OFD Sender: No OFD packet to send [07:26:59]OFD Sender: No OFD packet to send [07:27:04]OFD Sender: No OFD packet to send [07:27:09]OFD Sender: No OFD packet to send [07:27:14]OFD Sender: No OFD packet to send [07:27:19]OFD Sender: No OFD packet to send [07:27:24]OFD Sender: No OFD packet to send [07:27:29]OFD Sender: No OFD packet to send [07:27:34]OFD Sender: No OFD packet to send [07:27:39]OFD Sender: No OFD packet to send [07:27:44]OFD Sender: No OFD packet to send [07:27:49]OFD Sender: No OFD packet to send [07:27:54]OFD Sender: No OFD packet to send [07:27:59]OFD Sender: No OFD packet to send [07:28:04]OFD Sender: No OFD packet to send [07:28:09]OFD Sender: No OFD packet to send [07:28:15]OFD Sender: No OFD packet to send [07:28:20]OFD Sender: No OFD packet to send [07:28:25]OFD Sender: No OFD packet to send [07:28:30]OFD Sender: No OFD packet to send [07:28:35]OFD Sender: No OFD packet to send [07:28:40]OFD Sender: No OFD packet to send [07:28:45]OFD Sender: No OFD packet to send [07:28:50]OFD Sender: No OFD packet to send [07:28:55]OFD Sender: No OFD packet to send [07:29:00]OFD Sender: No OFD packet to send [07:29:05]OFD Sender: No OFD packet to send [07:29:10]OFD Sender: No OFD packet to send [07:29:15]OFD Sender: No OFD packet to send [07:29:20]OFD Sender: No OFD packet to send [07:29:25]OFD Sender: No OFD packet to send [07:29:30]OFD Sender: No OFD packet to send [07:29:35]OFD Sender: No OFD packet to send [07:29:40]OFD Sender: No OFD packet to send [07:29:45]OFD Sender: No OFD packet to send [07:29:50]OFD Sender: No OFD packet to send [07:29:55]OFD Sender: No OFD packet to send [07:30:00]OFD Sender: No OFD packet to send [07:30:05]OFD Sender: No OFD packet to send [07:30:10]OFD Sender: No OFD packet to send [07:30:15]OFD Sender: No OFD packet to send [07:30:20]OFD Sender: No OFD packet to send [07:30:25]OFD Sender: No OFD packet to send [07:30:30]OFD Sender: No OFD packet to send [07:30:35]OFD Sender: No OFD packet to send [07:30:40]OFD Sender: No OFD packet to send [07:30:45]OFD Sender: No OFD packet to send [07:30:50]OFD Sender: No OFD packet to send [07:30:55]OFD Sender: No OFD packet to send [07:31:00]OFD Sender: No OFD packet to send [07:31:05]OFD Sender: No OFD packet to send [07:31:10]OFD Sender: No OFD packet to send [07:31:15]OFD Sender: No OFD packet to send [07:31:20]OFD Sender: No OFD packet to send [07:31:25]OFD Sender: No OFD packet to send [07:31:30]OFD Sender: No OFD packet to send [07:31:35]OFD Sender: No OFD packet to send [07:31:40]OFD Sender: No OFD packet to send [07:31:45]OFD Sender: No OFD packet to send [07:31:50]OFD Sender: No OFD packet to send [07:31:55]OFD Sender: No OFD packet to send [07:32:00]OFD Sender: No OFD packet to send [07:32:05]OFD Sender: No OFD packet to send [07:32:10]OFD Sender: No OFD packet to send [07:32:15]OFD Sender: No OFD packet to send [07:32:20]OFD Sender: No OFD packet to send [07:32:25]OFD Sender: No OFD packet to send [07:32:30]OFD Sender: No OFD packet to send [07:32:35]OFD Sender: No OFD packet to send [07:32:40]OFD Sender: No OFD packet to send [07:32:45]OFD Sender: No OFD packet to send [07:32:50]OFD Sender: No OFD packet to send [07:32:55]OFD Sender: No OFD packet to send [07:33:00]OFD Sender: No OFD packet to send [07:33:05]OFD Sender: No OFD packet to send [07:33:10]OFD Sender: No OFD packet to send [07:33:15]OFD Sender: No OFD packet to send [07:33:20]OFD Sender: No OFD packet to send [07:33:25]OFD Sender: No OFD packet to send [07:33:30]OFD Sender: No OFD packet to send [07:33:35]OFD Sender: No OFD packet to send [07:33:40]OFD Sender: No OFD packet to send [07:33:45]OFD Sender: No OFD packet to send [07:33:50]OFD Sender: No OFD packet to send [07:33:54]accept exits with 7 [07:33:54]New connection [07:33:54]New thread 3067338084 created [07:33:54]Thread 3067481444 joined [07:33:54]Waiting for new connection... [07:33:54] Sock 7.Parse request [07:33:54]Sock 7.Check first char [07:33:54]Sock 7.First char is OK [07:33:54]request: POST /json_proto HTTP/1.0 [07:33:54]Method: POST [07:33:54]URL: /json_proto [07:33:54]Method is POST - this is cgi request [07:33:54]url: /json_proto [07:33:54]query_string will be loaded in cgi processing [07:33:54]execute_cgi json_proto POST (null) [07:33:54]execute_cgi path=json_proto method=POST [07:33:54]POST find Content-Length [07:33:54]Host: 172.17.62.5:8080 [07:33:54]Content-Length: 674 [07:33:54]Content-Type: application/json [07:33:54] [07:33:54]POST finish read [07:33:54]Found Content-Length = 674 [07:33:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [07:33:54]execute_script... [07:33: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)191302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [07:33:54]POST & json_proto [07:33:54]process_json_proto [07:33:54]json parsed OK: [07:33:54]protocol is kg_v1.0 [07:33:54]action value=close_receipt [07:33:54]process_action close_receipt [07:33:54]cmd_close_receipt [07:33:54]MH_GetDate [07:33:54]Write to MH i2c: F0 00 00 6A 17 70 [07:33:54]Write i2c OK [07:33:54]MH_I2C_Read... [07:33:54]Read from MH i2c: F0 [07:33:54]MH_I2C_Read... [07:33:54]Read from MH i2c: F0 09 00 [07:33:54]MH_I2C_Read... [07:33:54]Read from MH i2c: F0 09 00 6A 17 00 65 C1 24 66 F4 E9 65 64 CF [07:33:54]GetLastDocTimeStamp 1713684325 [07:33:54]current date 1713684837 [07:33:54]FM_GetShiftState [07:33:54]SAM_PROTO_GetShiftState [07:33:54]wFMCommunicate request_size=4 [07:33:54]MH_SAM_APDU [07:33:54]CAPDU: 80 13 01 00 [07:33:54]Write to MH i2c: E2 08 00 6B 17 80 13 01 00 00 00 00 00 FF [07:33:54]Write i2c OK [07:33:54]MH_I2C_Read... [07:33:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:33:54]Read from MH i2c: E2 [07:33:54]MH_I2C_Read... [07:33:54]Read from MH i2c: E2 0E 00 [07:33:54]MH_I2C_Read... [07:33:54]Read from MH i2c: E2 0E 00 6B 17 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 46 [07:33:54]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [07:33:54]wFMCommunicate OK [07:33:54]SAM_PROTO_GetShiftState done [07:33:54]FM_GetShiftState done [07:33:54]opened in 1713658965 [07:33:54]opened+sec_in_day 1713745365 [07:33:54]quantity*price = 60069 [07:33:54]sum+1 = 60071 [07:33:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.32 НДС 12% : 63.79 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 29 21.04.2024 07:33 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76773 ФПД: 120626079276117 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T073357&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76773&fm=120626079276117&tin=02508201610067®Number=0000000000091573&sum=60000 [07:33:55]StoreToDocumentArchive [07:33:55]shift 372 fd 76773 [07:33:55]save to /storage/0372/doc_00076773 [07:33:55]save last doc name /storage/0372/doc_00076773 to /storage/kkm_last_doc_name [07:33:55]save OK [07:33:55]Clear old archive folders... [07:33:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:33:55]tlvbuf is 018C2BD0 [07:33:55]SAM_PROTO_ClearQueue [07:33:55]wFMCommunicate request_size=4 [07:33:55]MH_SAM_APDU [07:33:55]CAPDU: 80 09 00 00 [07:33:55]Write to MH i2c: E2 08 00 78 17 80 09 00 00 00 00 00 00 01 [07:33:55]Write i2c OK [07:33:55]MH_I2C_Read... [07:33:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:33:55]Read from MH i2c: E2 [07:33:55]MH_I2C_Read... [07:33:55]Read from MH i2c: E2 03 00 [07:33:55]MH_I2C_Read... [07:33:55]Read from MH i2c: E2 03 00 78 17 00 90 00 03 [07:33:55]RAPDU: 90 00 [07:33:55]wFMCommunicate OK [07:33:55]SAM_PROTO_ClearQueue done [07:33:55]KKMCreateOFDPacket [07:33:55]OFDProtocolAddRootSTLVToBuf [07:33:55]FM_MakeSignedData [07:33:55]FM_MakeSignedData [07:33:55]SAM_PROTO_SignData [07:33:55]wFMCommunicate request_size=4 [07:33:55]MH_SAM_APDU [07:33:55]CAPDU: 80 0D 01 02 [07:33:55]Write to MH i2c: E2 08 00 79 17 80 0D 01 02 00 00 00 00 09 [07:33:55]Write i2c OK [07:33:55]MH_I2C_Read... [07:33:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:33:55]Read from MH i2c: E2 [07:33:55]MH_I2C_Read... [07:33:55]Read from MH i2c: E2 03 00 [07:33:55]MH_I2C_Read... [07:33:55]Read from MH i2c: E2 03 00 79 17 00 90 00 04 [07:33:55]RAPDU: 90 00 [07:33:55]wFMCommunicate OK [07:33:55]wFMCommunicate request_size=255 [07:33:55]MH_SAM_APDU [07:33:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 1D 00 00 00 F4 03 04 00 65 C1 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E5 2B 01 00 35 04 06 00 6D B5 72 9B [07:33:55]Write to MH i2c: E2 02 01 7A 17 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 1D 00 00 00 F4 03 04 00 65 C1 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E5 2B 01 00 35 04 06 00 6D B5 72 9B 00 00 0B [07:33:55]Write i2c OK [07:33:55]MH_I2C_Read... [07:33:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:33:56]Read from MH i2c: E2 [07:33:56]MH_I2C_Read... [07:33:56]Read from MH i2c: E2 03 00 [07:33:56]MH_I2C_Read... [07:33:56]Read from MH i2c: E2 03 00 7A 17 00 90 00 05 [07:33:56]RAPDU: 90 00 [07:33:56]wFMCommunicate OK [07:33:56]wFMCommunicate request_size=7 [07:33:56]MH_SAM_APDU [07:33:56]CAPDU: 80 0D 02 02 02 1C 55 [07:33:56]Write to MH i2c: E2 0A 00 7B 17 80 0D 02 02 02 00 1C 55 00 00 81 [07:33:56]Write i2c OK [07:33:56]MH_I2C_Read... [07:33:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:33:56]Read from MH i2c: E2 [07:33:56]MH_I2C_Read... [07:33:56]Read from MH i2c: E2 03 00 [07:33:56]MH_I2C_Read... [07:33:56]Read from MH i2c: E2 03 00 7B 17 00 90 00 06 [07:33:56]RAPDU: 90 00 [07:33:56]wFMCommunicate OK [07:33:56]wFMCommunicate request_size=4 [07:33:56]MH_SAM_APDU [07:33:56]CAPDU: 80 0D 03 02 [07:33:56]Write to MH i2c: E2 08 00 7C 17 80 0D 03 02 00 00 00 00 0E [07:33:56]Write i2c OK [07:33:56]MH_I2C_Read... [07:33:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:33:56]Read from MH i2c: E2 [07:33:56]MH_I2C_Read... [07:33:56]Read from MH i2c: E2 0B 00 [07:33:56]MH_I2C_Read... [07:33:56]Read from MH i2c: E2 0B 00 7C 17 00 EB 29 31 2F E1 8E 81 54 90 00 C7 [07:33:56]RAPDU: EB 29 31 2F E1 8E 81 54 90 00 [07:33:56]wFMCommunicate OK [07:33:56]SAM_PROTO_SignData done [07:33:56]FM_MakeSignedData done [07:33:56]CreateOFDProtocolMessage [07:33:56]wFMCommunicate request_size=4 [07:33:56]MH_SAM_APDU [07:33:56]CAPDU: 80 11 00 00 [07:33:56]Write to MH i2c: E2 08 00 7D 17 80 11 00 00 00 00 00 00 0E [07:33:56]Write i2c OK [07:33:56]MH_I2C_Read... [07:33:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:33:56]Read from MH i2c: E2 [07:33:56]MH_I2C_Read... [07:33:56]Read from MH i2c: E2 17 00 [07:33:56]MH_I2C_Read... [07:33:56]Read from MH i2c: E2 17 00 7D 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 61 [07:33:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:33:56]wFMCommunicate OK [07:33:56]CreateOFDProtocolMessage done [07:33:56]OFDSenderStorePacket 76773 [07:33:56]StoreOFDPacket docnum=76773 [07:33:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 2A C4 04 01 00 A2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 1D 00 00 00 F4 03 04 00 65 C1 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E5 2B 01 00 35 04 06 00 6D B5 72 9B 1C 55 EB 29 31 2F E1 8E 81 54 [07:33:56]CheckFolder [07:33:56]dirname=/storage/ofd_packets [07:33:56]CheckFolder done [07:33:56]ProducePacketName [07:33:56]name=ofd_packets/00076773 [07:33:56]NVStorageSaveData ofd_packets/00076773 [07:33:56]File name is /storage/ofd_packets/00076773 [07:33:56]Write 298 bytes [07:33:56]NVStorageSaveData done [07:33:56]OFDSenderStorePacket done [07:33:56]KKMCreateOFDPacket done [07:33:56]NVStorageSaveData kkm_last_timestamp [07:33:56]File name is /storage/kkm_last_timestamp [07:33:56]Write 4 bytes [07:33:56]NVStorageSaveData done [07:33:56]ExternCall_PrintAddStr [07:33:56]wPrintStart [07:33:56]Write to MH i2c: 01 00 00 7E 17 95 [07:33:56]Write i2c OK [07:33:56]MH_I2C_Read... [07:33:56]Read from MH i2c: 01 [07:33:56]MH_I2C_Read... [07:33:56]Read from MH i2c: 01 07 00 [07:33:56]MH_I2C_Read... [07:33:56]Read from MH i2c: 01 07 00 7E 17 00 00 00 00 00 FF 0F AA [07:33:56]RasterBufferAndPrint [07:33:56]line Счет N : (1)191302 [07:33:56]line ИНН: 02508201610067 [07:33:56]line Контрольно-Кассовый Чек [07:33:56]line ПРОДАЖА [07:33:56]line ТРК (МРК, ГНК) : 13 [07:33:56]line Товар: 2710194210 [07:33:56]line ДТ-К-5 [07:33:56]line 8.240 * 72.90 [07:33:56]line = 600.70 [07:33:56]line НДС 12% НСП 1% [07:33:56]line > о реализуемом товаре [07:33:56]line ОКРУГЛЕНИЕ: -0.70 [07:33:56]line ИТОГО: 600.00 [07:33:56]line Внесено: 600.00 [07:33:56]line СДАЧА: 0.00 [07:33:56]line НСП 1% : 5.32 [07:33:56]line НДС 12% : 63.79 [07:33:56]line Наличными: 600.00 [07:33:56]line Безнал.: 0.00 [07:33:56]line Место: АЗС № 106 "Партнер Нефть" [07:33:56]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [07:33:56]line СНО: Общий режим [07:33:56]line Чек 29 21.04.2024 07:33 [07:33:56]line Смена: 372 ФФД: 1.0 [07:33:56]line ЗНМ: 0300000141 [07:33:56]line РНМ: 0000000000091573 [07:33:56]line Версия ККМ: 001 [07:33:56]line ФМ: 0000000000874652 [07:33:56]line ФД: 76773 [07:33:56]line ФПД: 120626079276117 [07:33:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T073357&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76773&fm=120626079276117&tin=02508201610067®Number=0000000000091573&sum=60000 [07:33:56]OFD Sender: Processing packet 76773 [packets to send 129, broken 128] [07:33:56]ProducePacketName [07:33:56]name=ofd_packets/00076773 [07:33:56]OFD Sender: To server: pG, [07:33:56]CommunicateWithHost lk.salyk.kg:30040 [07:33:56]ConnectInit lk.salyk.kg [07:33:56]written 0, free lines is 4095 [07:33:57]Write to MH i2c: 01 00 00 A8 17 BF [07:33:57]Write i2c OK [07:33:57]MH_I2C_Read... [07:33:57]Read from MH i2c: 01 [07:33:57]MH_I2C_Read... [07:33:57]Read from MH i2c: 01 07 00 [07:33:57]MH_I2C_Read... [07:33:57]Read from MH i2c: 01 07 00 A8 17 00 00 00 00 00 E3 0C B5 [07:33:57]RasterBufferAndPrint [07:33:57]line [07:33:57]line [07:33:57]line [07:33:57]line [07:33:57]line [07:33:57]written 0, free lines is 3305 [07:33:57]MH_Cut [07:33:57]Write to MH i2c: D1 01 00 AF 17 01 98 [07:33:57]Write i2c OK [07:33:57]MH_I2C_Read... [07:33:57]Read from MH i2c: D1 [07:33:57]MH_I2C_Read... [07:33:57]Read from MH i2c: D1 01 00 [07:33:57]MH_I2C_Read... [07:33:57]Read from MH i2c: D1 01 00 AF 17 00 97 [07:33:57]Write to MH i2c: 01 00 00 B0 17 C7 [07:33:57]Write i2c OK [07:33:57]MH_I2C_Read... [07:33:57]*** Cut start [07:33:57]*** Partial cut [07:33:57]*** CUTSNS_PIN = 1 [07:33:57]*** CUTSNS_PIN = 0 [07:33:58]Connected sock=11 [07:33:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 2A C4 04 01 00 A2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 1D 00 00 00 F4 03 04 00 65 C1 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E5 2B 01 00 35 04 06 00 6D B5 72 9B 1C 55 EB 29 31 2F E1 8E 81 54 [07:33:58]*** Brake cut motor [07:33:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 1C 45 47 00 27 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E5 2B 01 00 F4 03 04 00 ED 68 24 66 B6 04 01 00 00 B3 A0 C7 F0 AD 39 CC 58 [07:33:58]CommunicateWithHost err = 0 [07:33:58]CheckOFDResponse [07:33:58]1017 (14) - 77093643461234 [07:33:58]1041 (16) - 0000000000874652 [07:33:58]1040 (4) - 76773 [07:33:58]1012 (4) - 21.04.2024 01:16 [07:33:58]1206 (1) - 0 [07:33:58]OFD Sender: Remove packet 76773 [07:33:58]ProducePacketName [07:33:58]name=ofd_packets/00076773 [07:33:58]NVStorageDeleteData [07:33:58]Read from MH i2c: 01 [07:33:58]MH_I2C_Read... [07:33:58]Read from MH i2c: 01 07 00 [07:33:58]MH_I2C_Read... [07:33:58]Read from MH i2c: 01 07 00 B0 17 00 00 00 00 00 FF 0F DC [07:33:58]process_action close_receipt done [07:33:58]requested_data is exist [07:33:58]produce_requested_data [07:33:58]requested_item fm.sn is exist - process it [07:33:58]wFMCommunicate request_size=4 [07:33:58]MH_SAM_APDU [07:33:58]CAPDU: 80 11 00 00 [07:33:58]Write to MH i2c: E2 08 00 B1 17 80 11 00 00 00 00 00 00 42 [07:33:58]Write i2c OK [07:33:58]MH_I2C_Read... [07:33:58]*** Stop cut motor [07:33:58]*** Cut end [07:33:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:33:58]Read from MH i2c: E2 [07:33:58]MH_I2C_Read... [07:33:58]Read from MH i2c: E2 17 00 [07:33:58]MH_I2C_Read... [07:33:58]Read from MH i2c: E2 17 00 B1 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 95 [07:33:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:33:58]wFMCommunicate OK [07:33:58]requested_item fd.num is exist - process it [07:33:58]SAM_PROTO_GetFieldsCounters [07:33:58]wFMCommunicate request_size=4 [07:33:58]MH_SAM_APDU [07:33:58]CAPDU: 80 13 00 00 [07:33:58]Write to MH i2c: E2 08 00 B2 17 80 13 00 00 00 00 00 00 45 [07:33:58]Write i2c OK [07:33:58]MH_I2C_Read... [07:33:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:33:58]Read from MH i2c: E2 [07:33:58]MH_I2C_Read... [07:33:58]Read from MH i2c: E2 62 00 [07:33:58]MH_I2C_Read... [07:33:58]Read from MH i2c: E2 62 00 B2 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E5 2B 01 00 0E 04 04 00 74 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 43 [07:33: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E5 2B 01 00 0E 04 04 00 74 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 [07:33:58]wFMCommunicate OK [07:33:58]SAM_PROTO_GetFieldsCounters done [07:33:58]requested_item shift.num is exist - process it [07:33:58]requested_item shift.opened is exist - process it [07:33:58]req_shift_opened [07:33:58]FM_GetShiftState [07:33:58]SAM_PROTO_GetShiftState [07:33:58]wFMCommunicate request_size=4 [07:33:58]MH_SAM_APDU [07:33:58]CAPDU: 80 13 01 00 [07:33:58]Write to MH i2c: E2 08 00 B3 17 80 13 01 00 00 00 00 00 47 [07:33:58]Write i2c OK [07:33:58]MH_I2C_Read... [07:33:58]Read from MH i2c: E2 [07:33:58]MH_I2C_Read... [07:33:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:33:58]Read from MH i2c: E2 0E 00 [07:33:58]MH_I2C_Read... [07:33:58]Read from MH i2c: E2 0E 00 B3 17 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 8E [07:33:58]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [07:33:58]wFMCommunicate OK [07:33:58]SAM_PROTO_GetShiftState done [07:33:58]FM_GetShiftState done [07:33:58]req_shift_opened done [07:33:58]requested_item shift.open_date is exist - process it [07:33:58]req_shift_open_date [07:33:58]req_shift_open_date done [07:33:58]produce_requested_data done [07:33:58]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76773,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [07:33:58]process_action_free close_receipt [07:33:58]json_value_free [07:33:58]json_value_free done [07:33:58]process_json_proto returns [07:33:58]Send response to host [07:33:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76773,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [07:33:58]free response buf [07:33:58]execute_script done [07:33:58]execute_script returns [07:33:58]free content buf [07:33:58]Sock 7.Close socket [07:33:58]Sock 7.Thread stoped [07:33:58]OFD Sender: No OFD packet to send [07:34:03]OFD Sender: No OFD packet to send [07:34:08]OFD Sender: No OFD packet to send [07:34:13]OFD Sender: No OFD packet to send [07:34:18]OFD Sender: No OFD packet to send [07:34:20]accept exits with 9 [07:34:20]New connection [07:34:20]New thread 3067481444 created [07:34:20]Thread 3067338084 joined [07:34:20]Waiting for new connection... [07:34:20] Sock 9.Parse request [07:34:20]Sock 9.Check first char [07:34:20]Sock 9.First char is OK [07:34:20]request: POST /json_proto HTTP/1.0 [07:34:20]Method: POST [07:34:20]URL: /json_proto [07:34:20]Method is POST - this is cgi request [07:34:20]url: /json_proto [07:34:20]query_string will be loaded in cgi processing [07:34:20]execute_cgi json_proto POST (null) [07:34:20]execute_cgi path=json_proto method=POST [07:34:20]POST find Content-Length [07:34:20]Host: 172.17.62.5:8080 [07:34:20]Content-Length: 670 [07:34:20]Content-Type: application/json [07:34:20] [07:34:20]POST finish read [07:34:20]Found Content-Length = 670 [07:34:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191303", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 7.650, "sum" : 500.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:34:20]execute_script... [07:34: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)191303", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 7.650, "sum" : 500.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:34:20]POST & json_proto [07:34:20]process_json_proto [07:34:20]json parsed OK: [07:34:20]protocol is kg_v1.0 [07:34:20]action value=close_receipt [07:34:20]process_action close_receipt [07:34:20]cmd_close_receipt [07:34:20]MH_GetDate [07:34:20]Write to MH i2c: F0 00 00 B4 17 BA [07:34:20]Write i2c OK [07:34:20]MH_I2C_Read... [07:34:20]Read from MH i2c: F0 [07:34:20]MH_I2C_Read... [07:34:20]Read from MH i2c: F0 09 00 [07:34:20]MH_I2C_Read... [07:34:20]Read from MH i2c: F0 09 00 B4 17 00 7F C1 24 66 F4 E9 65 64 33 [07:34:20]GetLastDocTimeStamp 1713684837 [07:34:20]current date 1713684863 [07:34:20]FM_GetShiftState [07:34:20]SAM_PROTO_GetShiftState [07:34:20]wFMCommunicate request_size=4 [07:34:20]MH_SAM_APDU [07:34:20]CAPDU: 80 13 01 00 [07:34:20]Write to MH i2c: E2 08 00 B5 17 80 13 01 00 00 00 00 00 49 [07:34:20]Write i2c OK [07:34:20]MH_I2C_Read... [07:34:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:34:20]Read from MH i2c: E2 [07:34:20]MH_I2C_Read... [07:34:20]Read from MH i2c: E2 0E 00 [07:34:20]MH_I2C_Read... [07:34:20]Read from MH i2c: E2 0E 00 B5 17 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 90 [07:34:20]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [07:34:20]wFMCommunicate OK [07:34:20]SAM_PROTO_GetShiftState done [07:34:20]FM_GetShiftState done [07:34:20]opened in 1713658965 [07:34:20]opened+sec_in_day 1713745365 [07:34:20]quantity*price = 50031 [07:34:20]sum+1 = 50032 [07:34:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 30 21.04.2024 07:34 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76774 ФПД: 85685289846467 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T073423&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76774&fm=85685289846467&tin=02508201610067®Number=0000000000091573&sum=50000 [07:34:21]StoreToDocumentArchive [07:34:21]shift 372 fd 76774 [07:34:21]save to /storage/0372/doc_00076774 [07:34:21]save last doc name /storage/0372/doc_00076774 to /storage/kkm_last_doc_name [07:34:21]save OK [07:34:21]Clear old archive folders... [07:34:21]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:34:21]tlvbuf is 01874430 [07:34:21]SAM_PROTO_ClearQueue [07:34:21]wFMCommunicate request_size=4 [07:34:21]MH_SAM_APDU [07:34:21]CAPDU: 80 09 00 00 [07:34:21]Write to MH i2c: E2 08 00 C2 17 80 09 00 00 00 00 00 00 4B [07:34:21]Write i2c OK [07:34:21]MH_I2C_Read... [07:34:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:34:21]Read from MH i2c: E2 [07:34:21]MH_I2C_Read... [07:34:21]Read from MH i2c: E2 03 00 [07:34:21]MH_I2C_Read... [07:34:21]Read from MH i2c: E2 03 00 C2 17 00 90 00 4D [07:34:21]RAPDU: 90 00 [07:34:21]wFMCommunicate OK [07:34:21]SAM_PROTO_ClearQueue done [07:34:21]KKMCreateOFDPacket [07:34:21]OFDProtocolAddRootSTLVToBuf [07:34:21]FM_MakeSignedData [07:34:21]FM_MakeSignedData [07:34:21]SAM_PROTO_SignData [07:34:21]wFMCommunicate request_size=4 [07:34:21]MH_SAM_APDU [07:34:21]CAPDU: 80 0D 01 02 [07:34:21]Write to MH i2c: E2 08 00 C3 17 80 0D 01 02 00 00 00 00 53 [07:34:21]Write i2c OK [07:34:21]MH_I2C_Read... [07:34:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:34:21]Read from MH i2c: E2 [07:34:21]MH_I2C_Read... [07:34:21]Read from MH i2c: E2 03 00 [07:34:21]MH_I2C_Read... [07:34:21]Read from MH i2c: E2 03 00 C3 17 00 90 00 4E [07:34:21]RAPDU: 90 00 [07:34:21]wFMCommunicate OK [07:34:21]wFMCommunicate request_size=255 [07:34:21]MH_SAM_APDU [07:34: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 1D 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1E 00 00 00 F4 03 04 00 7F C1 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E6 2B 01 00 35 04 06 00 [07:34:21]Write to MH i2c: E2 02 01 C4 17 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 1D 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1E 00 00 00 F4 03 04 00 7F C1 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E6 2B 01 00 35 04 06 00 00 00 F6 [07:34:21]Write i2c OK [07:34:21]MH_I2C_Read... [07:34:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:34:21]Read from MH i2c: E2 [07:34:21]MH_I2C_Read... [07:34:21]Read from MH i2c: E2 03 00 [07:34:21]MH_I2C_Read... [07:34:21]Read from MH i2c: E2 03 00 C4 17 00 90 00 4F [07:34:21]RAPDU: 90 00 [07:34:21]wFMCommunicate OK [07:34:21]wFMCommunicate request_size=11 [07:34:21]MH_SAM_APDU [07:34:21]CAPDU: 80 0D 02 02 06 4D EE 29 43 86 C3 [07:34:21]Write to MH i2c: E2 0E 00 C5 17 80 0D 02 02 06 00 4D EE 29 43 86 C3 00 00 52 [07:34:21]Write i2c OK [07:34:21]MH_I2C_Read... [07:34:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:34:21]Read from MH i2c: E2 [07:34:21]MH_I2C_Read... [07:34:21]Read from MH i2c: E2 03 00 [07:34:21]MH_I2C_Read... [07:34:21]Read from MH i2c: E2 03 00 C5 17 00 90 00 50 [07:34:21]RAPDU: 90 00 [07:34:21]wFMCommunicate OK [07:34:21]wFMCommunicate request_size=4 [07:34:21]MH_SAM_APDU [07:34:21]CAPDU: 80 0D 03 02 [07:34:21]Write to MH i2c: E2 08 00 C6 17 80 0D 03 02 00 00 00 00 58 [07:34:21]Write i2c OK [07:34:21]MH_I2C_Read... [07:34:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:34:21]Read from MH i2c: E2 [07:34:21]MH_I2C_Read... [07:34:21]Read from MH i2c: E2 0B 00 [07:34:21]MH_I2C_Read... [07:34:21]Read from MH i2c: E2 0B 00 C6 17 00 82 8E 3E ED EC 1B A9 C6 90 00 0A [07:34:21]RAPDU: 82 8E 3E ED EC 1B A9 C6 90 00 [07:34:21]wFMCommunicate OK [07:34:21]SAM_PROTO_SignData done [07:34:21]FM_MakeSignedData done [07:34:21]CreateOFDProtocolMessage [07:34:21]wFMCommunicate request_size=4 [07:34:21]MH_SAM_APDU [07:34:21]CAPDU: 80 11 00 00 [07:34:21]Write to MH i2c: E2 08 00 C7 17 80 11 00 00 00 00 00 00 58 [07:34:21]Write i2c OK [07:34:21]MH_I2C_Read... [07:34:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:34:22]Read from MH i2c: E2 [07:34:22]MH_I2C_Read... [07:34:22]Read from MH i2c: E2 17 00 [07:34:22]MH_I2C_Read... [07:34:22]Read from MH i2c: E2 17 00 C7 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 AB [07:34:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:34:22]wFMCommunicate OK [07:34:22]CreateOFDProtocolMessage done [07:34:22]OFDSenderStorePacket 76774 [07:34:22]StoreOFDPacket docnum=76774 [07:34:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 00 85 08 01 B8 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 1D 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1E 00 00 00 F4 03 04 00 7F C1 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E6 2B 01 00 35 04 06 00 4D EE 29 43 86 C3 82 8E 3E ED EC 1B A9 C6 [07:34:22]CheckFolder [07:34:22]dirname=/storage/ofd_packets [07:34:22]CheckFolder done [07:34:22]ProducePacketName [07:34:22]name=ofd_packets/00076774 [07:34:22]NVStorageSaveData ofd_packets/00076774 [07:34:22]File name is /storage/ofd_packets/00076774 [07:34:22]Write 302 bytes [07:34:22]NVStorageSaveData done [07:34:22]OFDSenderStorePacket done [07:34:22]KKMCreateOFDPacket done [07:34:22]NVStorageSaveData kkm_last_timestamp [07:34:22]File name is /storage/kkm_last_timestamp [07:34:22]Write 4 bytes [07:34:22]NVStorageSaveData done [07:34:22]ExternCall_PrintAddStr [07:34:22]wPrintStart [07:34:22]Write to MH i2c: 01 00 00 C8 17 DF [07:34:22]Write i2c OK [07:34:22]MH_I2C_Read... [07:34:22]Read from MH i2c: 01 [07:34:22]MH_I2C_Read... [07:34:22]Read from MH i2c: 01 07 00 [07:34:22]MH_I2C_Read... [07:34:22]Read from MH i2c: 01 07 00 C8 17 00 00 00 00 00 FF 0F F4 [07:34:22]RasterBufferAndPrint [07:34:22]line Счет N : (1)191303 [07:34:22]line ИНН: 02508201610067 [07:34:22]line Контрольно-Кассовый Чек [07:34:22]line ПРОДАЖА [07:34:22]line ТРК (МРК, ГНК) : 41 [07:34:22]line Товар: 2710124130 [07:34:22]line SUPER 92-К-5 [07:34:22]line 7.650 * 65.40 [07:34:22]line = 500.31 [07:34:22]line НДС 12% НСП 1% [07:34:22]line > о реализуемом товаре [07:34:22]line ОКРУГЛЕНИЕ: -0.31 [07:34:22]line ИТОГО: 500.00 [07:34:22]line Внесено: 500.00 [07:34:22]line СДАЧА: 0.00 [07:34:22]line НСП 1% : 4.43 [07:34:22]line НДС 12% : 53.13 [07:34:22]line Наличными: 500.00 [07:34:22]line Безнал.: 0.00 [07:34:22]line Место: АЗС № 106 "Партнер Нефть" [07:34:22]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [07:34:22]line СНО: Общий режим [07:34:22]line Чек 30 21.04.2024 07:34 [07:34:22]line Смена: 372 ФФД: 1.0 [07:34:22]line ЗНМ: 0300000141 [07:34:22]line РНМ: 0000000000091573 [07:34:22]line Версия ККМ: 001 [07:34:22]line ФМ: 0000000000874652 [07:34:22]line ФД: 76774 [07:34:22]line ФПД: 85685289846467 [07:34:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T073423&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76774&fm=85685289846467&tin=02508201610067®Number=0000000000091573&sum=50000 [07:34:22]written 0, free lines is 4095 [07:34:22]OFD Sender: Processing packet 76774 [packets to send 129, broken 128] [07:34:22]ProducePacketName [07:34:22]name=ofd_packets/00076774 [07:34:22]OFD Sender: To server: pG, [07:34:22]CommunicateWithHost lk.salyk.kg:30040 [07:34:22]ConnectInit lk.salyk.kg [07:34:22]Connected sock=11 [07:34:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 00 85 08 01 B8 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 1D 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1E 00 00 00 F4 03 04 00 7F C1 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E6 2B 01 00 35 04 06 00 4D EE 29 43 86 C3 82 8E 3E ED EC 1B A9 C6 [07:34:22]Write to MH i2c: 01 00 00 F2 17 09 [07:34:22]Write i2c OK [07:34:22]MH_I2C_Read... [07:34:22]Read from MH i2c: 01 [07:34:22]MH_I2C_Read... [07:34:22]Read from MH i2c: 01 07 00 [07:34:22]MH_I2C_Read... [07:34:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 CC F9 47 00 FC 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 34 36 35 32 10 04 04 00 E6 2B 01 00 F4 03 04 00 05 69 24 66 B6 04 01 00 00 FA 1F C0 20 02 2D 79 62 [07:34:22]CommunicateWithHost err = 0 [07:34:22]CheckOFDResponse [07:34:22]1017 (14) - 77093643461234 [07:34:22]1041 (16) - 0000000000874652 [07:34:22]1040 (4) - 76774 [07:34:22]1012 (4) - 21.04.2024 01:16 [07:34:22]1206 (1) - 0 [07:34:22]OFD Sender: Remove packet 76774 [07:34:22]ProducePacketName [07:34:22]name=ofd_packets/00076774 [07:34:22]NVStorageDeleteData [07:34:22]Read from MH i2c: 01 07 00 F2 17 00 00 00 00 00 E3 0C FF [07:34:22]RasterBufferAndPrint [07:34:22]line [07:34:22]line [07:34:22]line [07:34:22]line [07:34:22]line [07:34:22]written 0, free lines is 3311 [07:34:22]MH_Cut [07:34:22]Write to MH i2c: D1 01 00 F9 17 01 E2 [07:34:22]Write i2c OK [07:34:22]MH_I2C_Read... [07:34:22]Read from MH i2c: D1 [07:34:22]MH_I2C_Read... [07:34:22]Read from MH i2c: D1 01 00 [07:34:22]MH_I2C_Read... [07:34:22]Read from MH i2c: D1 01 00 F9 17 00 E1 [07:34:22]Write to MH i2c: 01 00 00 FA 17 11 [07:34:22]Write i2c OK [07:34:22]MH_I2C_Read... [07:34:23]OFD Sender: No OFD packet to send [07:34:23]*** Cut start [07:34:23]*** Partial cut [07:34:23]*** CUTSNS_PIN = 1 [07:34:23]*** CUTSNS_PIN = 0 [07:34:23]*** Brake cut motor [07:34:24]Read from MH i2c: 01 [07:34:24]MH_I2C_Read... [07:34:24]*** Stop cut motor [07:34:24]*** Cut end [07:34:24]Read from MH i2c: 01 07 00 [07:34:24]MH_I2C_Read... [07:34:24]Read from MH i2c: 01 07 00 FA 17 00 00 00 00 00 FF 0F 26 [07:34:24]process_action close_receipt done [07:34:24]requested_data is exist [07:34:24]produce_requested_data [07:34:24]requested_item fm.sn is exist - process it [07:34:24]wFMCommunicate request_size=4 [07:34:24]MH_SAM_APDU [07:34:24]CAPDU: 80 11 00 00 [07:34:24]Write to MH i2c: E2 08 00 FB 17 80 11 00 00 00 00 00 00 8C [07:34:24]Write i2c OK [07:34:24]MH_I2C_Read... [07:34:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:34:24]Read from MH i2c: E2 [07:34:24]MH_I2C_Read... [07:34:24]Read from MH i2c: E2 17 00 [07:34:24]MH_I2C_Read... [07:34:24]Read from MH i2c: E2 17 00 FB 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 DF [07:34:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:34:24]wFMCommunicate OK [07:34:24]requested_item fd.num is exist - process it [07:34:24]SAM_PROTO_GetFieldsCounters [07:34:24]wFMCommunicate request_size=4 [07:34:24]MH_SAM_APDU [07:34:24]CAPDU: 80 13 00 00 [07:34:24]Write to MH i2c: E2 08 00 FC 17 80 13 00 00 00 00 00 00 8F [07:34:24]Write i2c OK [07:34:24]MH_I2C_Read... [07:34:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:34:24]Read from MH i2c: E2 [07:34:24]MH_I2C_Read... [07:34:24]Read from MH i2c: E2 62 00 [07:34:24]MH_I2C_Read... [07:34:24]Read from MH i2c: E2 62 00 FC 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E6 2B 01 00 0E 04 04 00 74 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 91 [07:34: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E6 2B 01 00 0E 04 04 00 74 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 [07:34:24]wFMCommunicate OK [07:34:24]SAM_PROTO_GetFieldsCounters done [07:34:24]requested_item shift.num is exist - process it [07:34:24]requested_item shift.opened is exist - process it [07:34:24]req_shift_opened [07:34:24]FM_GetShiftState [07:34:24]SAM_PROTO_GetShiftState [07:34:24]wFMCommunicate request_size=4 [07:34:24]MH_SAM_APDU [07:34:24]CAPDU: 80 13 01 00 [07:34:24]Write to MH i2c: E2 08 00 FD 17 80 13 01 00 00 00 00 00 91 [07:34:24]Write i2c OK [07:34:24]MH_I2C_Read... [07:34:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:34:24]Read from MH i2c: E2 [07:34:24]MH_I2C_Read... [07:34:24]Read from MH i2c: E2 0E 00 [07:34:24]MH_I2C_Read... [07:34:24]Read from MH i2c: E2 0E 00 FD 17 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 D8 [07:34:24]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [07:34:24]wFMCommunicate OK [07:34:24]SAM_PROTO_GetShiftState done [07:34:24]FM_GetShiftState done [07:34:24]req_shift_opened done [07:34:24]requested_item shift.open_date is exist - process it [07:34:24]req_shift_open_date [07:34:24]req_shift_open_date done [07:34:24]produce_requested_data done [07:34:24]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76774,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [07:34:24]process_action_free close_receipt [07:34:24]json_value_free [07:34:24]json_value_free done [07:34:24]process_json_proto returns [07:34:24]Send response to host [07:34:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76774,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [07:34:24]free response buf [07:34:24]execute_script done [07:34:24]execute_script returns [07:34:24]free content buf [07:34:24]Sock 9.Close socket [07:34:24]Sock 9.Thread stoped [07:34:28]OFD Sender: No OFD packet to send [07:34:33]OFD Sender: No OFD packet to send [07:34:38]OFD Sender: No OFD packet to send [07:34:43]OFD Sender: No OFD packet to send [07:34:48]OFD Sender: No OFD packet to send [07:34:53]OFD Sender: No OFD packet to send [07:34:58]OFD Sender: No OFD packet to send [07:35:03]OFD Sender: No OFD packet to send [07:35:08]OFD Sender: No OFD packet to send [07:35:13]OFD Sender: No OFD packet to send [07:35:18]OFD Sender: No OFD packet to send [07:35:19]accept exits with 7 [07:35:19]New connection [07:35:19]New thread 3067338084 created [07:35:19]Thread 3067481444 joined [07:35:19]Waiting for new connection... [07:35:19] Sock 7.Parse request [07:35:19]Sock 7.Check first char [07:35:19]Sock 7.First char is OK [07:35:19]request: POST /json_proto HTTP/1.0 [07:35:19]Method: POST [07:35:19]URL: /json_proto [07:35:19]Method is POST - this is cgi request [07:35:19]url: /json_proto [07:35:19]query_string will be loaded in cgi processing [07:35:19]execute_cgi json_proto POST (null) [07:35:19]execute_cgi path=json_proto method=POST [07:35:19]POST find Content-Length [07:35:19]Host: 172.17.62.5:8080 [07:35:19]Content-Length: 677 [07:35:19]Content-Type: application/json [07:35:19] [07:35:19]POST finish read [07:35:19]Found Content-Length = 677 [07:35:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 4.660, "sum" : 300.10, "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" ] } } [07:35:19]execute_script... [07:35: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)191304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 4.660, "sum" : 300.10, "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" ] } } [07:35:19]POST & json_proto [07:35:19]process_json_proto [07:35:19]json parsed OK: [07:35:19]protocol is kg_v1.0 [07:35:19]action value=close_receipt [07:35:19]process_action close_receipt [07:35:19]cmd_close_receipt [07:35:19]MH_GetDate [07:35:19]Write to MH i2c: F0 00 00 FE 17 04 [07:35:19]Write i2c OK [07:35:19]MH_I2C_Read... [07:35:19]Read from MH i2c: F0 [07:35:19]MH_I2C_Read... [07:35:19]Read from MH i2c: F0 09 00 [07:35:19]MH_I2C_Read... [07:35:19]Read from MH i2c: F0 09 00 FE 17 00 BB C1 24 66 F4 E9 65 64 B9 [07:35:19]GetLastDocTimeStamp 1713684863 [07:35:19]current date 1713684923 [07:35:19]FM_GetShiftState [07:35:19]SAM_PROTO_GetShiftState [07:35:19]wFMCommunicate request_size=4 [07:35:19]MH_SAM_APDU [07:35:19]CAPDU: 80 13 01 00 [07:35:19]Write to MH i2c: E2 08 00 FF 17 80 13 01 00 00 00 00 00 93 [07:35:19]Write i2c OK [07:35:19]MH_I2C_Read... [07:35:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:19]Read from MH i2c: E2 [07:35:19]MH_I2C_Read... [07:35:19]Read from MH i2c: E2 0E 00 [07:35:19]MH_I2C_Read... [07:35:19]Read from MH i2c: E2 0E 00 FF 17 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 DA [07:35:19]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [07:35:19]wFMCommunicate OK [07:35:19]SAM_PROTO_GetShiftState done [07:35:19]FM_GetShiftState done [07:35:19]opened in 1713658965 [07:35:19]opened+sec_in_day 1713745365 [07:35:19]quantity*price = 30010 [07:35:19]sum+1 = 30011 [07:35:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 31 21.04.2024 07:35 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76775 ФПД: 105927116375804 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T073523&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76775&fm=105927116375804&tin=02508201610067®Number=0000000000091573&sum=30000 [07:35:21]StoreToDocumentArchive [07:35:21]shift 372 fd 76775 [07:35:21]save to /storage/0372/doc_00076775 [07:35:21]save last doc name /storage/0372/doc_00076775 to /storage/kkm_last_doc_name [07:35:21]save OK [07:35:21]Clear old archive folders... [07:35:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:35:21]tlvbuf is 018A6CE0 [07:35:21]SAM_PROTO_ClearQueue [07:35:21]wFMCommunicate request_size=4 [07:35:21]MH_SAM_APDU [07:35:21]CAPDU: 80 09 00 00 [07:35:21]Write to MH i2c: E2 08 00 0C 18 80 09 00 00 00 00 00 00 96 [07:35:21]Write i2c OK [07:35:21]MH_I2C_Read... [07:35:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:35:21]Read from MH i2c: E2 [07:35:21]MH_I2C_Read... [07:35:21]Read from MH i2c: E2 03 00 [07:35:21]MH_I2C_Read... [07:35:21]Read from MH i2c: E2 03 00 0C 18 00 90 00 98 [07:35:21]RAPDU: 90 00 [07:35:21]wFMCommunicate OK [07:35:21]SAM_PROTO_ClearQueue done [07:35:21]KKMCreateOFDPacket [07:35:21]OFDProtocolAddRootSTLVToBuf [07:35:21]FM_MakeSignedData [07:35:21]FM_MakeSignedData [07:35:21]SAM_PROTO_SignData [07:35:21]wFMCommunicate request_size=4 [07:35:21]MH_SAM_APDU [07:35:21]CAPDU: 80 0D 01 02 [07:35:21]Write to MH i2c: E2 08 00 0D 18 80 0D 01 02 00 00 00 00 9E [07:35:21]Write i2c OK [07:35:21]MH_I2C_Read... [07:35:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:35:21]Read from MH i2c: E2 [07:35:21]MH_I2C_Read... [07:35:21]Read from MH i2c: E2 03 00 [07:35:21]MH_I2C_Read... [07:35:21]Read from MH i2c: E2 03 00 0D 18 00 90 00 99 [07:35:21]RAPDU: 90 00 [07:35:21]wFMCommunicate OK [07:35:21]wFMCommunicate request_size=255 [07:35:21]MH_SAM_APDU [07:35: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 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1F 00 00 00 F4 03 04 00 BB C1 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E7 2B 01 00 35 04 06 00 60 [07:35:21]Write to MH i2c: E2 02 01 0E 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 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1F 00 00 00 F4 03 04 00 BB C1 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E7 2B 01 00 35 04 06 00 60 00 00 BF [07:35:21]Write i2c OK [07:35:21]MH_I2C_Read... [07:35:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:35:21]Read from MH i2c: E2 [07:35:21]MH_I2C_Read... [07:35:21]Read from MH i2c: E2 03 00 [07:35:21]MH_I2C_Read... [07:35:21]Read from MH i2c: E2 03 00 0E 18 00 90 00 9A [07:35:21]RAPDU: 90 00 [07:35:21]wFMCommunicate OK [07:35:21]wFMCommunicate request_size=10 [07:35:21]MH_SAM_APDU [07:35:21]CAPDU: 80 0D 02 02 05 57 14 24 C6 FC [07:35:21]Write to MH i2c: E2 0D 00 0F 18 80 0D 02 02 05 00 57 14 24 C6 FC 00 00 FC [07:35:21]Write i2c OK [07:35:21]MH_I2C_Read... [07:35:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:35:21]Read from MH i2c: E2 [07:35:21]MH_I2C_Read... [07:35:21]Read from MH i2c: E2 03 00 [07:35:21]MH_I2C_Read... [07:35:21]Read from MH i2c: E2 03 00 0F 18 00 90 00 9B [07:35:21]RAPDU: 90 00 [07:35:21]wFMCommunicate OK [07:35:21]wFMCommunicate request_size=4 [07:35:21]MH_SAM_APDU [07:35:21]CAPDU: 80 0D 03 02 [07:35:21]Write to MH i2c: E2 08 00 10 18 80 0D 03 02 00 00 00 00 A3 [07:35:21]Write i2c OK [07:35:21]MH_I2C_Read... [07:35:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:35:21]Read from MH i2c: E2 [07:35:21]MH_I2C_Read... [07:35:21]Read from MH i2c: E2 0B 00 [07:35:21]MH_I2C_Read... [07:35:21]Read from MH i2c: E2 0B 00 10 18 00 52 7F 53 1B 3F FA 4D 33 90 00 9C [07:35:21]RAPDU: 52 7F 53 1B 3F FA 4D 33 90 00 [07:35:21]wFMCommunicate OK [07:35:21]SAM_PROTO_SignData done [07:35:21]FM_MakeSignedData done [07:35:21]CreateOFDProtocolMessage [07:35:21]wFMCommunicate request_size=4 [07:35:21]MH_SAM_APDU [07:35:21]CAPDU: 80 11 00 00 [07:35:21]Write to MH i2c: E2 08 00 11 18 80 11 00 00 00 00 00 00 A3 [07:35:21]Write i2c OK [07:35:21]MH_I2C_Read... [07:35:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:35:21]Read from MH i2c: E2 [07:35:21]MH_I2C_Read... [07:35:21]Read from MH i2c: E2 17 00 [07:35:21]MH_I2C_Read... [07:35:21]Read from MH i2c: E2 17 00 11 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F6 [07:35:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:35:21]wFMCommunicate OK [07:35:21]CreateOFDProtocolMessage done [07:35:21]OFDSenderStorePacket 76775 [07:35:21]StoreOFDPacket docnum=76775 [07:35:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 00 81 07 01 86 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1F 00 00 00 F4 03 04 00 BB C1 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E7 2B 01 00 35 04 06 00 60 57 14 24 C6 FC 52 7F 53 1B 3F FA 4D 33 [07:35:21]CheckFolder [07:35:21]dirname=/storage/ofd_packets [07:35:21]CheckFolder done [07:35:21]ProducePacketName [07:35:21]name=ofd_packets/00076775 [07:35:21]NVStorageSaveData ofd_packets/00076775 [07:35:21]File name is /storage/ofd_packets/00076775 [07:35:21]Write 301 bytes [07:35:21]NVStorageSaveData done [07:35:21]OFDSenderStorePacket done [07:35:21]KKMCreateOFDPacket done [07:35:21]NVStorageSaveData kkm_last_timestamp [07:35:21]File name is /storage/kkm_last_timestamp [07:35:21]Write 4 bytes [07:35:21]NVStorageSaveData done [07:35:21]ExternCall_PrintAddStr [07:35:21]wPrintStart [07:35:21]Write to MH i2c: 01 00 00 12 18 2A [07:35:21]Write i2c OK [07:35:21]MH_I2C_Read... [07:35:21]Read from MH i2c: 01 [07:35:21]MH_I2C_Read... [07:35:21]Read from MH i2c: 01 07 00 [07:35:21]MH_I2C_Read... [07:35:21]Read from MH i2c: 01 07 00 12 18 00 00 00 00 00 FF 0F 3F [07:35:21]RasterBufferAndPrint [07:35:21]line Счет N : (1)191304 [07:35:21]line ИНН: 02508201610067 [07:35:21]line Контрольно-Кассовый Чек [07:35:21]line ПРОДАЖА [07:35:21]line ТРК (МРК, ГНК) : 22 [07:35:21]line Товар: 2710124130 [07:35:21]line Аи-92-К-5 [07:35:21]line 4.660 * 64.40 [07:35:21]line = 300.10 [07:35:21]line НДС 12% НСП 1% [07:35:21]line > о реализуемом товаре [07:35:21]line ОКРУГЛЕНИЕ: -0.10 [07:35:21]line ИТОГО: 300.00 [07:35:21]line Внесено: 300.00 [07:35:21]line СДАЧА: 0.00 [07:35:21]line НСП 1% : 2.66 [07:35:21]line НДС 12% : 31.87 [07:35:21]line Наличными: 300.00 [07:35:21]line Безнал.: 0.00 [07:35:21]line Место: АЗС № 106 "Партнер Нефть" [07:35:21]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [07:35:21]line СНО: Общий режим [07:35:21]line Чек 31 21.04.2024 07:35 [07:35:21]line Смена: 372 ФФД: 1.0 [07:35:21]line ЗНМ: 0300000141 [07:35:21]line РНМ: 0000000000091573 [07:35:21]line Версия ККМ: 001 [07:35:21]line ФМ: 0000000000874652 [07:35:21]line ФД: 76775 [07:35:21]line ФПД: 105927116375804 [07:35:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T073523&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76775&fm=105927116375804&tin=02508201610067®Number=0000000000091573&sum=30000 [07:35:21]OFD Sender: Processing packet 76775 [packets to send 129, broken 128] [07:35:21]ProducePacketName [07:35:21]name=ofd_packets/00076775 [07:35:21]OFD Sender: To server: pG, [07:35:21]CommunicateWithHost lk.salyk.kg:30040 [07:35:21]ConnectInit lk.salyk.kg [07:35:21]written 0, free lines is 4095 [07:35:22]Connected sock=10 [07:35:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 00 81 07 01 86 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1F 00 00 00 F4 03 04 00 BB C1 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E7 2B 01 00 35 04 06 00 60 57 14 24 C6 FC 52 7F 53 1B 3F FA 4D 33 [07:35:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 F9 C6 47 00 A8 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 34 36 35 32 10 04 04 00 E7 2B 01 00 F4 03 04 00 41 69 24 66 B6 04 01 00 00 5D DE 03 C5 2D E3 2B A7 [07:35:22]CommunicateWithHost err = 0 [07:35:22]CheckOFDResponse [07:35:22]1017 (14) - 77093643461234 [07:35:22]1041 (16) - 0000000000874652 [07:35:22]1040 (4) - 76775 [07:35:22]1012 (4) - 21.04.2024 01:17 [07:35:22]1206 (1) - 0 [07:35:22]OFD Sender: Remove packet 76775 [07:35:22]ProducePacketName [07:35:22]name=ofd_packets/00076775 [07:35:22]NVStorageDeleteData [07:35:22]Write to MH i2c: 01 00 00 3C 18 54 [07:35:22]Write i2c OK [07:35:22]MH_I2C_Read... [07:35:22]Read from MH i2c: 01 [07:35:22]MH_I2C_Read... [07:35:22]Read from MH i2c: 01 07 00 [07:35:22]MH_I2C_Read... [07:35:22]Read from MH i2c: 01 07 00 3C 18 00 00 00 00 00 E3 0C 4A [07:35:22]RasterBufferAndPrint [07:35:22]line [07:35:22]line [07:35:22]line [07:35:22]line [07:35:22]line [07:35:22]written 0, free lines is 3305 [07:35:22]MH_Cut [07:35:22]Write to MH i2c: D1 01 00 43 18 01 2D [07:35:22]Write i2c OK [07:35:22]MH_I2C_Read... [07:35:22]Read from MH i2c: D1 [07:35:22]MH_I2C_Read... [07:35:22]Read from MH i2c: D1 01 00 [07:35:22]MH_I2C_Read... [07:35:22]Read from MH i2c: D1 01 00 43 18 00 2C [07:35:22]Write to MH i2c: 01 00 00 44 18 5C [07:35:22]Write i2c OK [07:35:22]MH_I2C_Read... [07:35:22]OFD Sender: No OFD packet to send [07:35:23]*** Cut start [07:35:23]*** Partial cut [07:35:23]*** CUTSNS_PIN = 1 [07:35:23]*** CUTSNS_PIN = 0 [07:35:23]*** Brake cut motor [07:35:23]Read from MH i2c: 01 [07:35:23]MH_I2C_Read... [07:35:23]*** Stop cut motor [07:35:23]*** Cut end [07:35:23]Read from MH i2c: 01 07 00 [07:35:23]MH_I2C_Read... [07:35:23]Read from MH i2c: 01 07 00 44 18 00 00 00 00 00 FF 0F 71 [07:35:23]process_action close_receipt done [07:35:23]requested_data is exist [07:35:23]produce_requested_data [07:35:23]requested_item fm.sn is exist - process it [07:35:23]wFMCommunicate request_size=4 [07:35:23]MH_SAM_APDU [07:35:23]CAPDU: 80 11 00 00 [07:35:23]Write to MH i2c: E2 08 00 45 18 80 11 00 00 00 00 00 00 D7 [07:35:23]Write i2c OK [07:35:23]MH_I2C_Read... [07:35:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:35:23]Read from MH i2c: E2 [07:35:23]MH_I2C_Read... [07:35:23]Read from MH i2c: E2 17 00 [07:35:23]MH_I2C_Read... [07:35:23]Read from MH i2c: E2 17 00 45 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 2A [07:35:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:35:23]wFMCommunicate OK [07:35:23]requested_item fd.num is exist - process it [07:35:23]SAM_PROTO_GetFieldsCounters [07:35:23]wFMCommunicate request_size=4 [07:35:23]MH_SAM_APDU [07:35:23]CAPDU: 80 13 00 00 [07:35:23]Write to MH i2c: E2 08 00 46 18 80 13 00 00 00 00 00 00 DA [07:35:23]Write i2c OK [07:35:23]MH_I2C_Read... [07:35:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:35:23]Read from MH i2c: E2 [07:35:23]MH_I2C_Read... [07:35:23]Read from MH i2c: E2 62 00 [07:35:23]MH_I2C_Read... [07:35:23]Read from MH i2c: E2 62 00 46 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E7 2B 01 00 0E 04 04 00 74 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 E0 [07:35: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E7 2B 01 00 0E 04 04 00 74 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 [07:35:23]wFMCommunicate OK [07:35:23]SAM_PROTO_GetFieldsCounters done [07:35:23]requested_item shift.num is exist - process it [07:35:23]requested_item shift.opened is exist - process it [07:35:23]req_shift_opened [07:35:23]FM_GetShiftState [07:35:23]SAM_PROTO_GetShiftState [07:35:23]wFMCommunicate request_size=4 [07:35:23]MH_SAM_APDU [07:35:23]CAPDU: 80 13 01 00 [07:35:23]Write to MH i2c: E2 08 00 47 18 80 13 01 00 00 00 00 00 DC [07:35:23]Write i2c OK [07:35:23]MH_I2C_Read... [07:35:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:24]Read from MH i2c: E2 [07:35:24]MH_I2C_Read... [07:35:24]Read from MH i2c: E2 0E 00 [07:35:24]MH_I2C_Read... [07:35:24]Read from MH i2c: E2 0E 00 47 18 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 23 [07:35:24]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [07:35:24]wFMCommunicate OK [07:35:24]SAM_PROTO_GetShiftState done [07:35:24]FM_GetShiftState done [07:35:24]req_shift_opened done [07:35:24]requested_item shift.open_date is exist - process it [07:35:24]req_shift_open_date [07:35:24]req_shift_open_date done [07:35:24]produce_requested_data done [07:35:24]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76775,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [07:35:24]process_action_free close_receipt [07:35:24]json_value_free [07:35:24]json_value_free done [07:35:24]process_json_proto returns [07:35:24]Send response to host [07:35:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76775,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [07:35:24]free response buf [07:35:24]execute_script done [07:35:24]execute_script returns [07:35:24]free content buf [07:35:24]Sock 7.Close socket [07:35:24]Sock 7.Thread stoped [07:35:27]OFD Sender: No OFD packet to send [07:35:32]OFD Sender: No OFD packet to send [07:35:37]OFD Sender: No OFD packet to send [07:35:42]OFD Sender: No OFD packet to send [07:35:47]OFD Sender: No OFD packet to send [07:35:52]OFD Sender: No OFD packet to send [07:35:57]OFD Sender: No OFD packet to send [07:36:02]OFD Sender: No OFD packet to send [07:36:07]OFD Sender: No OFD packet to send [07:36:09]accept exits with 9 [07:36:09]New connection [07:36:09]New thread 3067481444 created [07:36:09]Thread 3067338084 joined [07:36:09]Waiting for new connection... [07:36:09] Sock 9.Parse request [07:36:09]Sock 9.Check first char [07:36:09]Sock 9.First char is OK [07:36:09]request: POST /json_proto HTTP/1.0 [07:36:09]Method: POST [07:36:09]URL: /json_proto [07:36:09]Method is POST - this is cgi request [07:36:09]url: /json_proto [07:36:09]query_string will be loaded in cgi processing [07:36:09]execute_cgi json_proto POST (null) [07:36:09]execute_cgi path=json_proto method=POST [07:36:09]POST find Content-Length [07:36:09]Host: 172.17.62.5:8080 [07:36:09]Content-Length: 677 [07:36:09]Content-Type: application/json [07:36:09] [07:36:09]POST finish read [07:36:09]Found Content-Length = 677 [07:36:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 4.660, "sum" : 300.10, "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" ] } } [07:36:09]execute_script... [07:36:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 4.660, "sum" : 300.10, "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" ] } } [07:36:09]POST & json_proto [07:36:09]process_json_proto [07:36:09]json parsed OK: [07:36:09]protocol is kg_v1.0 [07:36:09]action value=close_receipt [07:36:09]process_action close_receipt [07:36:09]cmd_close_receipt [07:36:09]MH_GetDate [07:36:09]Write to MH i2c: F0 00 00 48 18 4F [07:36:09]Write i2c OK [07:36:09]MH_I2C_Read... [07:36:09]Read from MH i2c: F0 [07:36:09]MH_I2C_Read... [07:36:09]Read from MH i2c: F0 09 00 [07:36:09]MH_I2C_Read... [07:36:09]Read from MH i2c: F0 09 00 48 18 00 EC C1 24 66 F4 E9 65 64 35 [07:36:09]GetLastDocTimeStamp 1713684923 [07:36:09]current date 1713684972 [07:36:09]FM_GetShiftState [07:36:09]SAM_PROTO_GetShiftState [07:36:09]wFMCommunicate request_size=4 [07:36:09]MH_SAM_APDU [07:36:09]CAPDU: 80 13 01 00 [07:36:09]Write to MH i2c: E2 08 00 49 18 80 13 01 00 00 00 00 00 DE [07:36:09]Write i2c OK [07:36:09]MH_I2C_Read... [07:36:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:36:09]Read from MH i2c: E2 [07:36:09]MH_I2C_Read... [07:36:09]Read from MH i2c: E2 0E 00 [07:36:09]MH_I2C_Read... [07:36:09]Read from MH i2c: E2 0E 00 49 18 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 25 [07:36:09]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [07:36:09]wFMCommunicate OK [07:36:09]SAM_PROTO_GetShiftState done [07:36:09]FM_GetShiftState done [07:36:09]opened in 1713658965 [07:36:09]opened+sec_in_day 1713745365 [07:36:09]quantity*price = 30010 [07:36:09]sum+1 = 30011 [07:36:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 32 21.04.2024 07:36 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76776 ФПД: 14939860254067 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T073612&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76776&fm=14939860254067&tin=02508201610067®Number=0000000000091573&sum=30000 [07:36:10]StoreToDocumentArchive [07:36:10]shift 372 fd 76776 [07:36:10]save to /storage/0372/doc_00076776 [07:36:10]save last doc name /storage/0372/doc_00076776 to /storage/kkm_last_doc_name [07:36:10]save OK [07:36:10]Clear old archive folders... [07:36:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:36:10]tlvbuf is B6FD6300 [07:36:10]SAM_PROTO_ClearQueue [07:36:10]wFMCommunicate request_size=4 [07:36:10]MH_SAM_APDU [07:36:10]CAPDU: 80 09 00 00 [07:36:10]Write to MH i2c: E2 08 00 56 18 80 09 00 00 00 00 00 00 E0 [07:36:10]Write i2c OK [07:36:10]MH_I2C_Read... [07:36:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:36:10]Read from MH i2c: E2 [07:36:10]MH_I2C_Read... [07:36:10]Read from MH i2c: E2 03 00 [07:36:10]MH_I2C_Read... [07:36:10]Read from MH i2c: E2 03 00 56 18 00 90 00 E2 [07:36:10]RAPDU: 90 00 [07:36:10]wFMCommunicate OK [07:36:10]SAM_PROTO_ClearQueue done [07:36:10]KKMCreateOFDPacket [07:36:10]OFDProtocolAddRootSTLVToBuf [07:36:10]FM_MakeSignedData [07:36:10]FM_MakeSignedData [07:36:10]SAM_PROTO_SignData [07:36:10]wFMCommunicate request_size=4 [07:36:10]MH_SAM_APDU [07:36:10]CAPDU: 80 0D 01 02 [07:36:10]Write to MH i2c: E2 08 00 57 18 80 0D 01 02 00 00 00 00 E8 [07:36:10]Write i2c OK [07:36:10]MH_I2C_Read... [07:36:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:36:10]Read from MH i2c: E2 [07:36:10]MH_I2C_Read... [07:36:10]Read from MH i2c: E2 03 00 [07:36:10]MH_I2C_Read... [07:36:10]Read from MH i2c: E2 03 00 57 18 00 90 00 E3 [07:36:10]RAPDU: 90 00 [07:36:10]wFMCommunicate OK [07:36:10]wFMCommunicate request_size=255 [07:36:10]MH_SAM_APDU [07:36: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 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 20 00 00 00 F4 03 04 00 EC C1 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E8 2B 01 00 35 04 06 00 0D [07:36:10]Write to MH i2c: E2 02 01 58 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 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 20 00 00 00 F4 03 04 00 EC C1 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E8 2B 01 00 35 04 06 00 0D 00 00 E9 [07:36:10]Write i2c OK [07:36:10]MH_I2C_Read... [07:36:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:36:10]Read from MH i2c: E2 [07:36:10]MH_I2C_Read... [07:36:10]Read from MH i2c: E2 03 00 [07:36:10]MH_I2C_Read... [07:36:10]Read from MH i2c: E2 03 00 58 18 00 90 00 E4 [07:36:10]RAPDU: 90 00 [07:36:10]wFMCommunicate OK [07:36:10]wFMCommunicate request_size=10 [07:36:10]MH_SAM_APDU [07:36:10]CAPDU: 80 0D 02 02 05 96 75 10 3D 73 [07:36:10]Write to MH i2c: E2 0D 00 59 18 80 0D 02 02 05 00 96 75 10 3D 73 00 00 C0 [07:36:10]Write i2c OK [07:36:10]MH_I2C_Read... [07:36:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:36:10]Read from MH i2c: E2 [07:36:10]MH_I2C_Read... [07:36:10]Read from MH i2c: E2 03 00 [07:36:10]MH_I2C_Read... [07:36:10]Read from MH i2c: E2 03 00 59 18 00 90 00 E5 [07:36:10]RAPDU: 90 00 [07:36:10]wFMCommunicate OK [07:36:10]wFMCommunicate request_size=4 [07:36:10]MH_SAM_APDU [07:36:10]CAPDU: 80 0D 03 02 [07:36:10]Write to MH i2c: E2 08 00 5A 18 80 0D 03 02 00 00 00 00 ED [07:36:10]Write i2c OK [07:36:10]MH_I2C_Read... [07:36:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:36:10]Read from MH i2c: E2 [07:36:10]MH_I2C_Read... [07:36:10]Read from MH i2c: E2 0B 00 [07:36:10]MH_I2C_Read... [07:36:10]Read from MH i2c: E2 0B 00 5A 18 00 ED 7A CF 7B D8 8C BE B5 90 00 76 [07:36:10]RAPDU: ED 7A CF 7B D8 8C BE B5 90 00 [07:36:10]wFMCommunicate OK [07:36:10]SAM_PROTO_SignData done [07:36:10]FM_MakeSignedData done [07:36:10]CreateOFDProtocolMessage [07:36:10]wFMCommunicate request_size=4 [07:36:10]MH_SAM_APDU [07:36:10]CAPDU: 80 11 00 00 [07:36:10]Write to MH i2c: E2 08 00 5B 18 80 11 00 00 00 00 00 00 ED [07:36:10]Write i2c OK [07:36:10]MH_I2C_Read... [07:36:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:36:10]Read from MH i2c: E2 [07:36:10]MH_I2C_Read... [07:36:10]Read from MH i2c: E2 17 00 [07:36:10]MH_I2C_Read... [07:36:10]Read from MH i2c: E2 17 00 5B 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 40 [07:36:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:36:10]wFMCommunicate OK [07:36:10]CreateOFDProtocolMessage done [07:36:10]OFDSenderStorePacket 76776 [07:36:10]StoreOFDPacket docnum=76776 [07:36:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 7C 89 07 01 95 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 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 20 00 00 00 F4 03 04 00 EC C1 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E8 2B 01 00 35 04 06 00 0D 96 75 10 3D 73 ED 7A CF 7B D8 8C BE B5 [07:36:10]CheckFolder [07:36:10]dirname=/storage/ofd_packets [07:36:10]CheckFolder done [07:36:10]ProducePacketName [07:36:10]name=ofd_packets/00076776 [07:36:10]NVStorageSaveData ofd_packets/00076776 [07:36:10]File name is /storage/ofd_packets/00076776 [07:36:10]Write 301 bytes [07:36:10]NVStorageSaveData done [07:36:10]OFDSenderStorePacket done [07:36:10]KKMCreateOFDPacket done [07:36:10]NVStorageSaveData kkm_last_timestamp [07:36:10]File name is /storage/kkm_last_timestamp [07:36:10]Write 4 bytes [07:36:10]NVStorageSaveData done [07:36:10]ExternCall_PrintAddStr [07:36:10]wPrintStart [07:36:10]Write to MH i2c: 01 00 00 5C 18 74 [07:36:10]Write i2c OK [07:36:10]MH_I2C_Read... [07:36:10]Read from MH i2c: 01 [07:36:10]MH_I2C_Read... [07:36:10]Read from MH i2c: 01 07 00 [07:36:10]MH_I2C_Read... [07:36:10]Read from MH i2c: 01 07 00 5C 18 00 00 00 00 00 FF 0F 89 [07:36:10]RasterBufferAndPrint [07:36:10]line Счет N : (1)191305 [07:36:10]line ИНН: 02508201610067 [07:36:10]line Контрольно-Кассовый Чек [07:36:10]line ПРОДАЖА [07:36:10]line ТРК (МРК, ГНК) : 33 [07:36:10]line Товар: 2710124130 [07:36:10]line Аи-92-К-5 [07:36:10]line 4.660 * 64.40 [07:36:10]line = 300.10 [07:36:10]line НДС 12% НСП 1% [07:36:10]line > о реализуемом товаре [07:36:10]line ОКРУГЛЕНИЕ: -0.10 [07:36:10]line ИТОГО: 300.00 [07:36:10]line Внесено: 300.00 [07:36:10]line СДАЧА: 0.00 [07:36:10]line НСП 1% : 2.66 [07:36:10]line НДС 12% : 31.87 [07:36:10]line Наличными: 300.00 [07:36:10]line Безнал.: 0.00 [07:36:10]line Место: АЗС № 106 "Партнер Нефть" [07:36:10]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [07:36:10]line СНО: Общий режим [07:36:10]line Чек 32 21.04.2024 07:36 [07:36:10]line Смена: 372 ФФД: 1.0 [07:36:10]line ЗНМ: 0300000141 [07:36:10]line РНМ: 0000000000091573 [07:36:10]line Версия ККМ: 001 [07:36:10]line ФМ: 0000000000874652 [07:36:10]line ФД: 76776 [07:36:10]line ФПД: 14939860254067 [07:36:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T073612&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76776&fm=14939860254067&tin=02508201610067®Number=0000000000091573&sum=30000 [07:36:11]written 0, free lines is 4095 [07:36:11]OFD Sender: Processing packet 76776 [packets to send 129, broken 128] [07:36:11]ProducePacketName [07:36:11]name=ofd_packets/00076776 [07:36:11]OFD Sender: To server: pG, [07:36:11]CommunicateWithHost lk.salyk.kg:30040 [07:36:11]ConnectInit lk.salyk.kg [07:36:11]Connected sock=11 [07:36:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 7C 89 07 01 95 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 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 20 00 00 00 F4 03 04 00 EC C1 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E8 2B 01 00 35 04 06 00 0D 96 75 10 3D 73 ED 7A CF 7B D8 8C BE B5 [07:36:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 EB 33 47 00 58 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 34 36 35 32 10 04 04 00 E8 2B 01 00 F4 03 04 00 72 69 24 66 B6 04 01 00 00 B2 04 33 B3 1E DE E8 27 [07:36:11]CommunicateWithHost err = 0 [07:36:11]CheckOFDResponse [07:36:11]1017 (14) - 77093643461234 [07:36:11]1041 (16) - 0000000000874652 [07:36:11]1040 (4) - 76776 [07:36:11]1012 (4) - 21.04.2024 01:18 [07:36:11]1206 (1) - 0 [07:36:11]OFD Sender: Remove packet 76776 [07:36:11]ProducePacketName [07:36:11]name=ofd_packets/00076776 [07:36:11]NVStorageDeleteData [07:36:11]Write to MH i2c: 01 00 00 86 18 9E [07:36:11]Write i2c OK [07:36:11]MH_I2C_Read... [07:36:11]Read from MH i2c: 01 [07:36:11]MH_I2C_Read... [07:36:11]Read from MH i2c: 01 07 00 [07:36:11]MH_I2C_Read... [07:36:11]Read from MH i2c: 01 07 00 86 18 00 00 00 00 00 F5 0C A6 [07:36:11]RasterBufferAndPrint [07:36:11]line [07:36:11]line [07:36:11]line [07:36:11]line [07:36:11]line [07:36:11]written 0, free lines is 3324 [07:36:11]MH_Cut [07:36:11]Write to MH i2c: D1 01 00 8D 18 01 77 [07:36:11]Write i2c OK [07:36:11]MH_I2C_Read... [07:36:11]Read from MH i2c: D1 [07:36:11]MH_I2C_Read... [07:36:11]Read from MH i2c: D1 01 00 [07:36:11]MH_I2C_Read... [07:36:11]Read from MH i2c: D1 01 00 8D 18 00 76 [07:36:11]Write to MH i2c: 01 00 00 8E 18 A6 [07:36:11]Write i2c OK [07:36:11]MH_I2C_Read... [07:36:11]OFD Sender: No OFD packet to send [07:36:12]*** Cut start [07:36:12]*** Partial cut [07:36:12]*** CUTSNS_PIN = 1 [07:36:12]*** CUTSNS_PIN = 0 [07:36:12]*** Brake cut motor [07:36:12]Read from MH i2c: 01 [07:36:12]MH_I2C_Read... [07:36:12]*** Stop cut motor [07:36:12]*** Cut end [07:36:12]Read from MH i2c: 01 07 00 [07:36:12]MH_I2C_Read... [07:36:12]Read from MH i2c: 01 07 00 8E 18 00 00 00 00 00 FF 0F BB [07:36:12]process_action close_receipt done [07:36:12]requested_data is exist [07:36:12]produce_requested_data [07:36:12]requested_item fm.sn is exist - process it [07:36:12]wFMCommunicate request_size=4 [07:36:12]MH_SAM_APDU [07:36:12]CAPDU: 80 11 00 00 [07:36:12]Write to MH i2c: E2 08 00 8F 18 80 11 00 00 00 00 00 00 21 [07:36:12]Write i2c OK [07:36:12]MH_I2C_Read... [07:36:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:36:12]Read from MH i2c: E2 [07:36:12]MH_I2C_Read... [07:36:12]Read from MH i2c: E2 17 00 [07:36:12]MH_I2C_Read... [07:36:12]Read from MH i2c: E2 17 00 8F 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 74 [07:36:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:36:12]wFMCommunicate OK [07:36:12]requested_item fd.num is exist - process it [07:36:12]SAM_PROTO_GetFieldsCounters [07:36:12]wFMCommunicate request_size=4 [07:36:12]MH_SAM_APDU [07:36:12]CAPDU: 80 13 00 00 [07:36:12]Write to MH i2c: E2 08 00 90 18 80 13 00 00 00 00 00 00 24 [07:36:12]Write i2c OK [07:36:12]MH_I2C_Read... [07:36:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:36:13]Read from MH i2c: E2 [07:36:13]MH_I2C_Read... [07:36:13]Read from MH i2c: E2 62 00 [07:36:13]MH_I2C_Read... [07:36:13]Read from MH i2c: E2 62 00 90 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E8 2B 01 00 0E 04 04 00 74 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 2E [07:36:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E8 2B 01 00 0E 04 04 00 74 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 [07:36:13]wFMCommunicate OK [07:36:13]SAM_PROTO_GetFieldsCounters done [07:36:13]requested_item shift.num is exist - process it [07:36:13]requested_item shift.opened is exist - process it [07:36:13]req_shift_opened [07:36:13]FM_GetShiftState [07:36:13]SAM_PROTO_GetShiftState [07:36:13]wFMCommunicate request_size=4 [07:36:13]MH_SAM_APDU [07:36:13]CAPDU: 80 13 01 00 [07:36:13]Write to MH i2c: E2 08 00 91 18 80 13 01 00 00 00 00 00 26 [07:36:13]Write i2c OK [07:36:13]MH_I2C_Read... [07:36:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:36:13]Read from MH i2c: E2 [07:36:13]MH_I2C_Read... [07:36:13]Read from MH i2c: E2 0E 00 [07:36:13]MH_I2C_Read... [07:36:13]Read from MH i2c: E2 0E 00 91 18 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 6D [07:36:13]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [07:36:13]wFMCommunicate OK [07:36:13]SAM_PROTO_GetShiftState done [07:36:13]FM_GetShiftState done [07:36:13]req_shift_opened done [07:36:13]requested_item shift.open_date is exist - process it [07:36:13]req_shift_open_date [07:36:13]req_shift_open_date done [07:36:13]produce_requested_data done [07:36:13]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76776,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [07:36:13]process_action_free close_receipt [07:36:13]json_value_free [07:36:13]json_value_free done [07:36:13]process_json_proto returns [07:36:13]Send response to host [07:36:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76776,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [07:36:13]free response buf [07:36:13]execute_script done [07:36:13]execute_script returns [07:36:13]free content buf [07:36:13]Sock 9.Close socket [07:36:13]Sock 9.Thread stoped [07:36:16]OFD Sender: No OFD packet to send [07:36:21]OFD Sender: No OFD packet to send [07:36:27]OFD Sender: No OFD packet to send [07:36:32]OFD Sender: No OFD packet to send [07:36:37]OFD Sender: No OFD packet to send [07:36:42]OFD Sender: No OFD packet to send [07:36:47]OFD Sender: No OFD packet to send [07:36:52]OFD Sender: No OFD packet to send [07:36:57]OFD Sender: No OFD packet to send [07:37:02]OFD Sender: No OFD packet to send [07:37:07]OFD Sender: No OFD packet to send [07:37:12]OFD Sender: No OFD packet to send [07:37:17]OFD Sender: No OFD packet to send [07:37:22]OFD Sender: No OFD packet to send [07:37:27]OFD Sender: No OFD packet to send [07:37:32]OFD Sender: No OFD packet to send [07:37:37]OFD Sender: No OFD packet to send [07:37:42]OFD Sender: No OFD packet to send [07:37:47]OFD Sender: No OFD packet to send [07:37:52]OFD Sender: No OFD packet to send [07:37:57]OFD Sender: No OFD packet to send [07:38:02]OFD Sender: No OFD packet to send [07:38:07]OFD Sender: No OFD packet to send [07:38:12]OFD Sender: No OFD packet to send [07:38:17]OFD Sender: No OFD packet to send [07:38:22]OFD Sender: No OFD packet to send [07:38:27]OFD Sender: No OFD packet to send [07:38:32]OFD Sender: No OFD packet to send [07:38:37]OFD Sender: No OFD packet to send [07:38:42]OFD Sender: No OFD packet to send [07:38:47]OFD Sender: No OFD packet to send [07:38:52]OFD Sender: No OFD packet to send [07:38:57]OFD Sender: No OFD packet to send [07:39:02]OFD Sender: No OFD packet to send [07:39:07]OFD Sender: No OFD packet to send [07:39:12]OFD Sender: No OFD packet to send [07:39:17]OFD Sender: No OFD packet to send [07:39:22]OFD Sender: No OFD packet to send [07:39:27]OFD Sender: No OFD packet to send [07:39:32]OFD Sender: No OFD packet to send [07:39:37]OFD Sender: No OFD packet to send [07:39:42]OFD Sender: No OFD packet to send [07:39:47]OFD Sender: No OFD packet to send [07:39:52]OFD Sender: No OFD packet to send [07:39:57]OFD Sender: No OFD packet to send [07:40:02]OFD Sender: No OFD packet to send [07:40:07]OFD Sender: No OFD packet to send [07:40:12]OFD Sender: No OFD packet to send [07:40:17]OFD Sender: No OFD packet to send [07:40:22]OFD Sender: No OFD packet to send [07:40:27]OFD Sender: No OFD packet to send [07:40:32]OFD Sender: No OFD packet to send [07:40:37]OFD Sender: No OFD packet to send [07:40:42]OFD Sender: No OFD packet to send [07:40:47]OFD Sender: No OFD packet to send [07:40:52]OFD Sender: No OFD packet to send [07:40:57]OFD Sender: No OFD packet to send [07:41:02]OFD Sender: No OFD packet to send [07:41:07]OFD Sender: No OFD packet to send [07:41:12]OFD Sender: No OFD packet to send [07:41:17]OFD Sender: No OFD packet to send [07:41:22]OFD Sender: No OFD packet to send [07:41:27]OFD Sender: No OFD packet to send [07:41:32]OFD Sender: No OFD packet to send [07:41:37]OFD Sender: No OFD packet to send [07:41:40]accept exits with 10 [07:41:40]New connection [07:41:40]New thread 3067338084 created [07:41:40]Thread 3067481444 joined [07:41:40]Waiting for new connection... [07:41:40] Sock 10.Parse request [07:41:40]Sock 10.Check first char [07:41:40]Sock 10.First char is OK [07:41:40]request: POST /json_proto HTTP/1.0 [07:41:40]Method: POST [07:41:40]URL: /json_proto [07:41:40]Method is POST - this is cgi request [07:41:40]url: /json_proto [07:41:40]query_string will be loaded in cgi processing [07:41:40]execute_cgi json_proto POST (null) [07:41:40]execute_cgi path=json_proto method=POST [07:41:40]POST find Content-Length [07:41:40]Host: 172.17.62.5:8080 [07:41:40]Content-Length: 677 [07:41:40]Content-Type: application/json [07:41:40] [07:41:40]POST finish read [07:41:40]Found Content-Length = 677 [07:41:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 9.320, "sum" : 600.21, "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" ] } } [07:41:40]execute_script... [07:41:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 9.320, "sum" : 600.21, "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" ] } } [07:41:40]POST & json_proto [07:41:40]process_json_proto [07:41:40]json parsed OK: [07:41:40]protocol is kg_v1.0 [07:41:40]action value=close_receipt [07:41:40]process_action close_receipt [07:41:40]cmd_close_receipt [07:41:40]MH_GetDate [07:41:40]Write to MH i2c: F0 00 00 92 18 99 [07:41:40]Write i2c OK [07:41:40]MH_I2C_Read... [07:41:40]Read from MH i2c: F0 [07:41:40]MH_I2C_Read... [07:41:40]Read from MH i2c: F0 09 00 [07:41:40]MH_I2C_Read... [07:41:40]Read from MH i2c: F0 09 00 92 18 00 37 C3 24 66 F4 E9 65 64 CC [07:41:40]GetLastDocTimeStamp 1713684972 [07:41:40]current date 1713685303 [07:41:40]FM_GetShiftState [07:41:40]SAM_PROTO_GetShiftState [07:41:40]wFMCommunicate request_size=4 [07:41:40]MH_SAM_APDU [07:41:40]CAPDU: 80 13 01 00 [07:41:40]Write to MH i2c: E2 08 00 93 18 80 13 01 00 00 00 00 00 28 [07:41:40]Write i2c OK [07:41:40]MH_I2C_Read... [07:41:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:41:40]Read from MH i2c: E2 [07:41:40]MH_I2C_Read... [07:41:40]Read from MH i2c: E2 0E 00 [07:41:40]MH_I2C_Read... [07:41:40]Read from MH i2c: E2 0E 00 93 18 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 6F [07:41:40]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [07:41:40]wFMCommunicate OK [07:41:40]SAM_PROTO_GetShiftState done [07:41:40]FM_GetShiftState done [07:41:40]opened in 1713658965 [07:41:40]opened+sec_in_day 1713745365 [07:41:40]quantity*price = 60020 [07:41:40]sum+1 = 60022 [07:41:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 33 21.04.2024 07:41 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76777 ФПД: 219752507984470 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T074143&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76777&fm=219752507984470&tin=02508201610067®Number=0000000000091573&sum=60000 [07:41:41]StoreToDocumentArchive [07:41:41]shift 372 fd 76777 [07:41:41]save to /storage/0372/doc_00076777 [07:41:41]save last doc name /storage/0372/doc_00076777 to /storage/kkm_last_doc_name [07:41:41]save OK [07:41:41]Clear old archive folders... [07:41:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:41:41]tlvbuf is 018F0330 [07:41:41]SAM_PROTO_ClearQueue [07:41:41]wFMCommunicate request_size=4 [07:41:41]MH_SAM_APDU [07:41:41]CAPDU: 80 09 00 00 [07:41:41]Write to MH i2c: E2 08 00 A0 18 80 09 00 00 00 00 00 00 2A [07:41:41]Write i2c OK [07:41:41]MH_I2C_Read... [07:41:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:41:41]Read from MH i2c: E2 [07:41:41]MH_I2C_Read... [07:41:41]Read from MH i2c: E2 03 00 [07:41:41]MH_I2C_Read... [07:41:41]Read from MH i2c: E2 03 00 A0 18 00 90 00 2C [07:41:41]RAPDU: 90 00 [07:41:41]wFMCommunicate OK [07:41:41]SAM_PROTO_ClearQueue done [07:41:41]KKMCreateOFDPacket [07:41:41]OFDProtocolAddRootSTLVToBuf [07:41:41]FM_MakeSignedData [07:41:41]FM_MakeSignedData [07:41:41]SAM_PROTO_SignData [07:41:41]wFMCommunicate request_size=4 [07:41:41]MH_SAM_APDU [07:41:41]CAPDU: 80 0D 01 02 [07:41:41]Write to MH i2c: E2 08 00 A1 18 80 0D 01 02 00 00 00 00 32 [07:41:41]Write i2c OK [07:41:41]MH_I2C_Read... [07:41:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:41:41]Read from MH i2c: E2 [07:41:41]MH_I2C_Read... [07:41:41]Read from MH i2c: E2 03 00 [07:41:41]MH_I2C_Read... [07:41:41]Read from MH i2c: E2 03 00 A1 18 00 90 00 2D [07:41:41]RAPDU: 90 00 [07:41:41]wFMCommunicate OK [07:41:41]wFMCommunicate request_size=255 [07:41:41]MH_SAM_APDU [07:41:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 68 24 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 75 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 21 00 00 00 F4 03 04 00 37 C3 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E9 2B 01 00 35 04 06 00 C7 [07:41:41]Write to MH i2c: E2 02 01 A2 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 68 24 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 75 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 21 00 00 00 F4 03 04 00 37 C3 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E9 2B 01 00 35 04 06 00 C7 00 00 05 [07:41:41]Write i2c OK [07:41:41]MH_I2C_Read... [07:41:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:41:41]Read from MH i2c: E2 [07:41:41]MH_I2C_Read... [07:41:41]Read from MH i2c: E2 03 00 [07:41:41]MH_I2C_Read... [07:41:41]Read from MH i2c: E2 03 00 A2 18 00 90 00 2E [07:41:41]RAPDU: 90 00 [07:41:41]wFMCommunicate OK [07:41:41]wFMCommunicate request_size=10 [07:41:41]MH_SAM_APDU [07:41:41]CAPDU: 80 0D 02 02 05 DD 1E 2D 4A 56 [07:41:41]Write to MH i2c: E2 0D 00 A3 18 80 0D 02 02 05 00 DD 1E 2D 4A 56 00 00 07 [07:41:41]Write i2c OK [07:41:41]MH_I2C_Read... [07:41:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:41:41]Read from MH i2c: E2 [07:41:41]MH_I2C_Read... [07:41:41]Read from MH i2c: E2 03 00 [07:41:41]MH_I2C_Read... [07:41:41]Read from MH i2c: E2 03 00 A3 18 00 90 00 2F [07:41:41]RAPDU: 90 00 [07:41:41]wFMCommunicate OK [07:41:41]wFMCommunicate request_size=4 [07:41:41]MH_SAM_APDU [07:41:41]CAPDU: 80 0D 03 02 [07:41:41]Write to MH i2c: E2 08 00 A4 18 80 0D 03 02 00 00 00 00 37 [07:41:41]Write i2c OK [07:41:41]MH_I2C_Read... [07:41:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:41:41]Read from MH i2c: E2 [07:41:41]MH_I2C_Read... [07:41:41]Read from MH i2c: E2 0B 00 [07:41:41]MH_I2C_Read... [07:41:41]Read from MH i2c: E2 0B 00 A4 18 00 70 B2 83 AF 86 E4 52 DA 90 00 22 [07:41:41]RAPDU: 70 B2 83 AF 86 E4 52 DA 90 00 [07:41:41]wFMCommunicate OK [07:41:41]SAM_PROTO_SignData done [07:41:41]FM_MakeSignedData done [07:41:41]CreateOFDProtocolMessage [07:41:41]wFMCommunicate request_size=4 [07:41:41]MH_SAM_APDU [07:41:41]CAPDU: 80 11 00 00 [07:41:41]Write to MH i2c: E2 08 00 A5 18 80 11 00 00 00 00 00 00 37 [07:41:41]Write i2c OK [07:41:41]MH_I2C_Read... [07:41:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:41]Read from MH i2c: E2 [07:41:41]MH_I2C_Read... [07:41:41]Read from MH i2c: E2 17 00 [07:41:41]MH_I2C_Read... [07:41:41]Read from MH i2c: E2 17 00 A5 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 8A [07:41:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:41:41]wFMCommunicate OK [07:41:41]CreateOFDProtocolMessage done [07:41:41]OFDSenderStorePacket 76777 [07:41:41]StoreOFDPacket docnum=76777 [07:41:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 97 A7 07 01 69 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 68 24 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 75 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 21 00 00 00 F4 03 04 00 37 C3 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E9 2B 01 00 35 04 06 00 C7 DD 1E 2D 4A 56 70 B2 83 AF 86 E4 52 DA [07:41:41]CheckFolder [07:41:41]dirname=/storage/ofd_packets [07:41:41]CheckFolder done [07:41:41]ProducePacketName [07:41:41]name=ofd_packets/00076777 [07:41:41]NVStorageSaveData ofd_packets/00076777 [07:41:41]File name is /storage/ofd_packets/00076777 [07:41:41]Write 301 bytes [07:41:41]NVStorageSaveData done [07:41:41]OFDSenderStorePacket done [07:41:41]KKMCreateOFDPacket done [07:41:41]NVStorageSaveData kkm_last_timestamp [07:41:41]File name is /storage/kkm_last_timestamp [07:41:41]Write 4 bytes [07:41:41]NVStorageSaveData done [07:41:41]ExternCall_PrintAddStr [07:41:41]wPrintStart [07:41:41]Write to MH i2c: 01 00 00 A6 18 BE [07:41:41]Write i2c OK [07:41:41]MH_I2C_Read... [07:41:41]Read from MH i2c: 01 [07:41:41]MH_I2C_Read... [07:41:41]Read from MH i2c: 01 07 00 [07:41:41]MH_I2C_Read... [07:41:41]Read from MH i2c: 01 07 00 A6 18 00 00 00 00 00 FF 0F D3 [07:41:41]RasterBufferAndPrint [07:41:41]line Счет N : (1)191306 [07:41:41]line ИНН: 02508201610067 [07:41:41]line Контрольно-Кассовый Чек [07:41:41]line ПРОДАЖА [07:41:41]line ТРК (МРК, ГНК) : 33 [07:41:41]line Товар: 2710124130 [07:41:41]line Аи-92-К-5 [07:41:41]line 9.320 * 64.40 [07:41:41]line = 600.21 [07:41:41]line НДС 12% НСП 1% [07:41:41]line > о реализуемом товаре [07:41:41]line ОКРУГЛЕНИЕ: -0.21 [07:41:41]line ИТОГО: 600.00 [07:41:41]line Внесено: 600.00 [07:41:41]line СДАЧА: 0.00 [07:41:41]line НСП 1% : 5.31 [07:41:41]line НДС 12% : 63.74 [07:41:41]line Наличными: 600.00 [07:41:41]line Безнал.: 0.00 [07:41:41]line Место: АЗС № 106 "Партнер Нефть" [07:41:41]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [07:41:41]line СНО: Общий режим [07:41:41]line Чек 33 21.04.2024 07:41 [07:41:41]line Смена: 372 ФФД: 1.0 [07:41:41]line ЗНМ: 0300000141 [07:41:41]line РНМ: 0000000000091573 [07:41:41]line Версия ККМ: 001 [07:41:41]line ФМ: 0000000000874652 [07:41:41]line ФД: 76777 [07:41:41]line ФПД: 219752507984470 [07:41:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T074143&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76777&fm=219752507984470&tin=02508201610067®Number=0000000000091573&sum=60000 [07:41:42]written 0, free lines is 4095 [07:41:42]OFD Sender: Processing packet 76777 [packets to send 129, broken 128] [07:41:42]ProducePacketName [07:41:42]name=ofd_packets/00076777 [07:41:42]OFD Sender: To server: pG, [07:41:42]CommunicateWithHost lk.salyk.kg:30040 [07:41:42]ConnectInit lk.salyk.kg [07:41:42]Connected sock=9 [07:41:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 97 A7 07 01 69 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 68 24 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 75 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 21 00 00 00 F4 03 04 00 37 C3 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E9 2B 01 00 35 04 06 00 C7 DD 1E 2D 4A 56 70 B2 83 AF 86 E4 52 DA [07:41:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 6B F4 47 00 59 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E9 2B 01 00 F4 03 04 00 BD 6A 24 66 B6 04 01 00 00 F3 01 9C 0F 8B 8B 29 51 [07:41:42]CommunicateWithHost err = 0 [07:41:42]CheckOFDResponse [07:41:42]1017 (14) - 77093643461234 [07:41:42]1041 (16) - 0000000000874652 [07:41:42]1040 (4) - 76777 [07:41:42]1012 (4) - 21.04.2024 01:24 [07:41:42]1206 (1) - 0 [07:41:42]OFD Sender: Remove packet 76777 [07:41:42]ProducePacketName [07:41:42]name=ofd_packets/00076777 [07:41:42]NVStorageDeleteData [07:41:42]Write to MH i2c: 01 00 00 D0 18 E8 [07:41:42]Write i2c OK [07:41:42]MH_I2C_Read... [07:41:42]Read from MH i2c: 01 [07:41:42]MH_I2C_Read... [07:41:42]Read from MH i2c: 01 07 00 [07:41:42]MH_I2C_Read... [07:41:42]Read from MH i2c: 01 07 00 D0 18 00 00 00 00 00 EA 0C E5 [07:41:42]RasterBufferAndPrint [07:41:42]line [07:41:42]line [07:41:42]line [07:41:42]line [07:41:42]line [07:41:42]written 0, free lines is 3310 [07:41:42]MH_Cut [07:41:42]Write to MH i2c: D1 01 00 D7 18 01 C1 [07:41:42]Write i2c OK [07:41:42]MH_I2C_Read... [07:41:42]Read from MH i2c: D1 [07:41:42]MH_I2C_Read... [07:41:42]Read from MH i2c: D1 01 00 [07:41:42]MH_I2C_Read... [07:41:42]Read from MH i2c: D1 01 00 D7 18 00 C0 [07:41:42]Write to MH i2c: 01 00 00 D8 18 F0 [07:41:42]Write i2c OK [07:41:42]MH_I2C_Read... [07:41:43]OFD Sender: No OFD packet to send [07:41:43]*** Cut start [07:41:43]*** Partial cut [07:41:43]*** CUTSNS_PIN = 1 [07:41:43]*** CUTSNS_PIN = 0 [07:41:43]*** Brake cut motor [07:41:44]Read from MH i2c: 01 [07:41:44]MH_I2C_Read... [07:41:44]*** Stop cut motor [07:41:44]*** Cut end [07:41:44]Read from MH i2c: 01 07 00 [07:41:44]MH_I2C_Read... [07:41:44]Read from MH i2c: 01 07 00 D8 18 00 00 00 00 00 FF 0F 05 [07:41:44]process_action close_receipt done [07:41:44]requested_data is exist [07:41:44]produce_requested_data [07:41:44]requested_item fm.sn is exist - process it [07:41:44]wFMCommunicate request_size=4 [07:41:44]MH_SAM_APDU [07:41:44]CAPDU: 80 11 00 00 [07:41:44]Write to MH i2c: E2 08 00 D9 18 80 11 00 00 00 00 00 00 6B [07:41:44]Write i2c OK [07:41:44]MH_I2C_Read... [07:41:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:44]Read from MH i2c: E2 [07:41:44]MH_I2C_Read... [07:41:44]Read from MH i2c: E2 17 00 [07:41:44]MH_I2C_Read... [07:41:44]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 34 36 35 32 90 00 BE [07:41:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:41:44]wFMCommunicate OK [07:41:44]requested_item fd.num is exist - process it [07:41:44]SAM_PROTO_GetFieldsCounters [07:41:44]wFMCommunicate request_size=4 [07:41:44]MH_SAM_APDU [07:41:44]CAPDU: 80 13 00 00 [07:41:44]Write to MH i2c: E2 08 00 DA 18 80 13 00 00 00 00 00 00 6E [07:41:44]Write i2c OK [07:41:44]MH_I2C_Read... [07:41:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:41:44]Read from MH i2c: E2 [07:41:44]MH_I2C_Read... [07:41:44]Read from MH i2c: E2 62 00 [07:41:44]MH_I2C_Read... [07:41:44]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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E9 2B 01 00 0E 04 04 00 74 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 7C [07:41: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E9 2B 01 00 0E 04 04 00 74 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 [07:41:44]wFMCommunicate OK [07:41:44]SAM_PROTO_GetFieldsCounters done [07:41:44]requested_item shift.num is exist - process it [07:41:44]requested_item shift.opened is exist - process it [07:41:44]req_shift_opened [07:41:44]FM_GetShiftState [07:41:44]SAM_PROTO_GetShiftState [07:41:44]wFMCommunicate request_size=4 [07:41:44]MH_SAM_APDU [07:41:44]CAPDU: 80 13 01 00 [07:41:44]Write to MH i2c: E2 08 00 DB 18 80 13 01 00 00 00 00 00 70 [07:41:44]Write i2c OK [07:41:44]MH_I2C_Read... [07:41:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:41:44]Read from MH i2c: E2 [07:41:44]MH_I2C_Read... [07:41:44]Read from MH i2c: E2 0E 00 [07:41:44]MH_I2C_Read... [07:41:44]Read from MH i2c: E2 0E 00 DB 18 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 B7 [07:41:44]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [07:41:44]wFMCommunicate OK [07:41:44]SAM_PROTO_GetShiftState done [07:41:44]FM_GetShiftState done [07:41:44]req_shift_opened done [07:41:44]requested_item shift.open_date is exist - process it [07:41:44]req_shift_open_date [07:41:44]req_shift_open_date done [07:41:44]produce_requested_data done [07:41:44]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76777,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [07:41:44]process_action_free close_receipt [07:41:44]json_value_free [07:41:44]json_value_free done [07:41:44]process_json_proto returns [07:41:44]Send response to host [07:41:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76777,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [07:41:44]free response buf [07:41:44]execute_script done [07:41:44]execute_script returns [07:41:44]free content buf [07:41:44]Sock 10.Close socket [07:41:44]Sock 10.Thread stoped [07:41:48]OFD Sender: No OFD packet to send [07:41:53]OFD Sender: No OFD packet to send [07:41:58]OFD Sender: No OFD packet to send [07:42:03]OFD Sender: No OFD packet to send [07:42:08]OFD Sender: No OFD packet to send [07:42:13]OFD Sender: No OFD packet to send [07:42:18]OFD Sender: No OFD packet to send [07:42:23]OFD Sender: No OFD packet to send [07:42:28]OFD Sender: No OFD packet to send [07:42:33]OFD Sender: No OFD packet to send [07:42:38]OFD Sender: No OFD packet to send [07:42:43]OFD Sender: No OFD packet to send [07:42:48]OFD Sender: No OFD packet to send [07:42:53]OFD Sender: No OFD packet to send [07:42:58]OFD Sender: No OFD packet to send [07:43:03]OFD Sender: No OFD packet to send [07:43:08]OFD Sender: No OFD packet to send [07:43:13]OFD Sender: No OFD packet to send [07:43:18]OFD Sender: No OFD packet to send [07:43:23]OFD Sender: No OFD packet to send [07:43:28]OFD Sender: No OFD packet to send [07:43:33]OFD Sender: No OFD packet to send [07:43:38]OFD Sender: No OFD packet to send [07:43:43]OFD Sender: No OFD packet to send [07:43:48]OFD Sender: No OFD packet to send [07:43:53]OFD Sender: No OFD packet to send [07:43:58]OFD Sender: No OFD packet to send [07:44:03]OFD Sender: No OFD packet to send [07:44:08]OFD Sender: No OFD packet to send [07:44:13]OFD Sender: No OFD packet to send [07:44:18]OFD Sender: No OFD packet to send [07:44:23]OFD Sender: No OFD packet to send [07:44:28]OFD Sender: No OFD packet to send [07:44:33]OFD Sender: No OFD packet to send [07:44:38]OFD Sender: No OFD packet to send [07:44:43]OFD Sender: No OFD packet to send [07:44:48]OFD Sender: No OFD packet to send [07:44:53]OFD Sender: No OFD packet to send [07:44:58]OFD Sender: No OFD packet to send [07:45:03]OFD Sender: No OFD packet to send [07:45:08]OFD Sender: No OFD packet to send [07:45:13]OFD Sender: No OFD packet to send [07:45:18]OFD Sender: No OFD packet to send [07:45:23]OFD Sender: No OFD packet to send [07:45:28]OFD Sender: No OFD packet to send [07:45:33]OFD Sender: No OFD packet to send [07:45:38]OFD Sender: No OFD packet to send [07:45:43]OFD Sender: No OFD packet to send [07:45:48]OFD Sender: No OFD packet to send [07:45:53]OFD Sender: No OFD packet to send [07:45:58]OFD Sender: No OFD packet to send [07:46:03]OFD Sender: No OFD packet to send [07:46:08]OFD Sender: No OFD packet to send [07:46:13]OFD Sender: No OFD packet to send [07:46:18]OFD Sender: No OFD packet to send [07:46:23]OFD Sender: No OFD packet to send [07:46:28]OFD Sender: No OFD packet to send [07:46:33]OFD Sender: No OFD packet to send [07:46:37]accept exits with 7 [07:46:37]New connection [07:46:37]New thread 3067481444 created [07:46:37]Thread 3067338084 joined [07:46:37]Waiting for new connection... [07:46:37] Sock 7.Parse request [07:46:37]Sock 7.Check first char [07:46:37]Sock 7.First char is OK [07:46:37]request: POST /json_proto HTTP/1.0 [07:46:37]Method: POST [07:46:37]URL: /json_proto [07:46:37]Method is POST - this is cgi request [07:46:37]url: /json_proto [07:46:37]query_string will be loaded in cgi processing [07:46:37]execute_cgi json_proto POST (null) [07:46:37]execute_cgi path=json_proto method=POST [07:46:37]POST find Content-Length [07:46:37]Host: 172.17.62.5:8080 [07:46:37]Content-Length: 682 [07:46:37]Content-Type: application/json [07:46:37] [07:46:37]POST finish read [07:46:37]Found Content-Length = 682 [07:46:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 31.060, "sum" : 2000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:37]execute_script... [07:46: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)191307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 31.060, "sum" : 2000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:37]POST & json_proto [07:46:37]process_json_proto [07:46:37]json parsed OK: [07:46:37]protocol is kg_v1.0 [07:46:37]action value=close_receipt [07:46:37]process_action close_receipt [07:46:37]cmd_close_receipt [07:46:37]MH_GetDate [07:46:37]Write to MH i2c: F0 00 00 DC 18 E3 [07:46:37]Write i2c OK [07:46:37]MH_I2C_Read... [07:46:37]Read from MH i2c: F0 [07:46:37]MH_I2C_Read... [07:46:37]Read from MH i2c: F0 09 00 [07:46:37]MH_I2C_Read... [07:46:37]Read from MH i2c: F0 09 00 DC 18 00 61 C4 24 66 F4 E9 65 64 41 [07:46:37]GetLastDocTimeStamp 1713685303 [07:46:37]current date 1713685601 [07:46:37]FM_GetShiftState [07:46:37]SAM_PROTO_GetShiftState [07:46:37]wFMCommunicate request_size=4 [07:46:37]MH_SAM_APDU [07:46:37]CAPDU: 80 13 01 00 [07:46:37]Write to MH i2c: E2 08 00 DD 18 80 13 01 00 00 00 00 00 72 [07:46:37]Write i2c OK [07:46:37]MH_I2C_Read... [07:46:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:37]Read from MH i2c: E2 [07:46:37]MH_I2C_Read... [07:46:37]Read from MH i2c: E2 0E 00 [07:46:37]MH_I2C_Read... [07:46:37]Read from MH i2c: E2 0E 00 DD 18 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 B9 [07:46:37]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [07:46:37]wFMCommunicate OK [07:46:37]SAM_PROTO_GetShiftState done [07:46:37]FM_GetShiftState done [07:46:37]opened in 1713658965 [07:46:37]opened+sec_in_day 1713745365 [07:46:37]quantity*price = 200026 [07:46:37]sum+1 = 200027 [07:46:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 34 21.04.2024 07:46 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76778 ФПД: 17359024397894 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T074641&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76778&fm=17359024397894&tin=02508201610067®Number=0000000000091573&sum=200000 [07:46:39]StoreToDocumentArchive [07:46:39]shift 372 fd 76778 [07:46:39]save to /storage/0372/doc_00076778 [07:46:39]save last doc name /storage/0372/doc_00076778 to /storage/kkm_last_doc_name [07:46:39]save OK [07:46:39]Clear old archive folders... [07:46:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:46:39]tlvbuf is 01873CF0 [07:46:39]SAM_PROTO_ClearQueue [07:46:39]wFMCommunicate request_size=4 [07:46:39]MH_SAM_APDU [07:46:39]CAPDU: 80 09 00 00 [07:46:39]Write to MH i2c: E2 08 00 EA 18 80 09 00 00 00 00 00 00 74 [07:46:39]Write i2c OK [07:46:39]MH_I2C_Read... [07:46:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:46:39]Read from MH i2c: E2 [07:46:39]MH_I2C_Read... [07:46:39]Read from MH i2c: E2 03 00 [07:46:39]MH_I2C_Read... [07:46:39]Read from MH i2c: E2 03 00 EA 18 00 90 00 76 [07:46:39]RAPDU: 90 00 [07:46:39]wFMCommunicate OK [07:46:39]SAM_PROTO_ClearQueue done [07:46:39]KKMCreateOFDPacket [07:46:39]OFDProtocolAddRootSTLVToBuf [07:46:39]FM_MakeSignedData [07:46:39]FM_MakeSignedData [07:46:39]SAM_PROTO_SignData [07:46:39]wFMCommunicate request_size=4 [07:46:39]MH_SAM_APDU [07:46:39]CAPDU: 80 0D 01 02 [07:46:39]Write to MH i2c: E2 08 00 EB 18 80 0D 01 02 00 00 00 00 7C [07:46:39]Write i2c OK [07:46:39]MH_I2C_Read... [07:46:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:46:39]Read from MH i2c: E2 [07:46:39]MH_I2C_Read... [07:46:39]Read from MH i2c: E2 03 00 [07:46:39]MH_I2C_Read... [07:46:39]Read from MH i2c: E2 03 00 EB 18 00 90 00 77 [07:46:39]RAPDU: 90 00 [07:46:39]wFMCommunicate OK [07:46:39]wFMCommunicate request_size=255 [07:46:39]MH_SAM_APDU [07:46: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 54 79 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 61 C4 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EA 2B 01 00 35 04 06 00 0F [07:46:39]Write to MH i2c: E2 02 01 EC 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 54 79 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 61 C4 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EA 2B 01 00 35 04 06 00 0F 00 00 45 [07:46:39]Write i2c OK [07:46:39]MH_I2C_Read... [07:46:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:39]Read from MH i2c: E2 [07:46:39]MH_I2C_Read... [07:46:39]Read from MH i2c: E2 03 00 [07:46:39]MH_I2C_Read... [07:46:39]Read from MH i2c: E2 03 00 EC 18 00 90 00 78 [07:46:39]RAPDU: 90 00 [07:46:39]wFMCommunicate OK [07:46:39]wFMCommunicate request_size=10 [07:46:39]MH_SAM_APDU [07:46:39]CAPDU: 80 0D 02 02 05 C9 B6 7B 9E 46 [07:46:39]Write to MH i2c: E2 0D 00 ED 18 80 0D 02 02 05 00 C9 B6 7B 9E 46 00 00 67 [07:46:39]Write i2c OK [07:46:39]MH_I2C_Read... [07:46:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:39]Read from MH i2c: E2 [07:46:39]MH_I2C_Read... [07:46:39]Read from MH i2c: E2 03 00 [07:46:39]MH_I2C_Read... [07:46:39]Read from MH i2c: E2 03 00 ED 18 00 90 00 79 [07:46:39]RAPDU: 90 00 [07:46:39]wFMCommunicate OK [07:46:39]wFMCommunicate request_size=4 [07:46:39]MH_SAM_APDU [07:46:39]CAPDU: 80 0D 03 02 [07:46:39]Write to MH i2c: E2 08 00 EE 18 80 0D 03 02 00 00 00 00 81 [07:46:39]Write i2c OK [07:46:39]MH_I2C_Read... [07:46:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:46:39]Read from MH i2c: E2 [07:46:39]MH_I2C_Read... [07:46:39]Read from MH i2c: E2 0B 00 [07:46:39]MH_I2C_Read... [07:46:39]Read from MH i2c: E2 0B 00 EE 18 00 7F D9 FF CC A4 FE 29 79 90 00 E9 [07:46:39]RAPDU: 7F D9 FF CC A4 FE 29 79 90 00 [07:46:39]wFMCommunicate OK [07:46:39]SAM_PROTO_SignData done [07:46:39]FM_MakeSignedData done [07:46:39]CreateOFDProtocolMessage [07:46:39]wFMCommunicate request_size=4 [07:46:39]MH_SAM_APDU [07:46:39]CAPDU: 80 11 00 00 [07:46:39]Write to MH i2c: E2 08 00 EF 18 80 11 00 00 00 00 00 00 81 [07:46:39]Write i2c OK [07:46:39]MH_I2C_Read... [07:46:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:39]Read from MH i2c: E2 [07:46:39]MH_I2C_Read... [07:46:39]Read from MH i2c: E2 17 00 [07:46:39]MH_I2C_Read... [07:46:39]Read from MH i2c: E2 17 00 EF 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 D4 [07:46:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:46:39]wFMCommunicate OK [07:46:39]CreateOFDProtocolMessage done [07:46:39]OFDSenderStorePacket 76778 [07:46:39]StoreOFDPacket docnum=76778 [07:46:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 CD 70 07 01 57 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 54 79 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 61 C4 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EA 2B 01 00 35 04 06 00 0F C9 B6 7B 9E 46 7F D9 FF CC A4 FE 29 79 [07:46:39]CheckFolder [07:46:39]dirname=/storage/ofd_packets [07:46:39]CheckFolder done [07:46:39]ProducePacketName [07:46:39]name=ofd_packets/00076778 [07:46:39]NVStorageSaveData ofd_packets/00076778 [07:46:39]File name is /storage/ofd_packets/00076778 [07:46:39]Write 301 bytes [07:46:39]NVStorageSaveData done [07:46:39]OFDSenderStorePacket done [07:46:39]KKMCreateOFDPacket done [07:46:39]NVStorageSaveData kkm_last_timestamp [07:46:39]File name is /storage/kkm_last_timestamp [07:46:39]Write 4 bytes [07:46:39]NVStorageSaveData done [07:46:39]ExternCall_PrintAddStr [07:46:39]wPrintStart [07:46:39]Write to MH i2c: 01 00 00 F0 18 08 [07:46:39]Write i2c OK [07:46:39]MH_I2C_Read... [07:46:39]Read from MH i2c: 01 [07:46:39]MH_I2C_Read... [07:46:39]Read from MH i2c: 01 07 00 [07:46:39]MH_I2C_Read... [07:46:39]Read from MH i2c: 01 07 00 F0 18 00 00 00 00 00 FF 0F 1D [07:46:39]RasterBufferAndPrint [07:46:39]line Счет N : (1)191307 [07:46:39]line ИНН: 02508201610067 [07:46:39]line Контрольно-Кассовый Чек [07:46:39]line ПРОДАЖА [07:46:39]line ТРК (МРК, ГНК) : 12 [07:46:39]line Товар: 2710124130 [07:46:39]line Аи-92-К-5 [07:46:39]line 31.060 * 64.40 [07:46:39]line = 2000.26 [07:46:39]line НДС 12% НСП 1% [07:46:39]line > о реализуемом товаре [07:46:39]line ОКРУГЛЕНИЕ: -0.26 [07:46:39]line ИТОГО: 2000.00 [07:46:39]line Внесено: 2000.00 [07:46:39]line СДАЧА: 0.00 [07:46:39]line НСП 1% : 17.70 [07:46:39]line НДС 12% : 212.42 [07:46:39]line Наличными: 2000.00 [07:46:39]line Безнал.: 0.00 [07:46:39]line Место: АЗС № 106 "Партнер Нефть" [07:46:39]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [07:46:39]line СНО: Общий режим [07:46:39]line Чек 34 21.04.2024 07:46 [07:46:39]line Смена: 372 ФФД: 1.0 [07:46:39]line ЗНМ: 0300000141 [07:46:39]line РНМ: 0000000000091573 [07:46:39]line Версия ККМ: 001 [07:46:39]line ФМ: 0000000000874652 [07:46:39]line ФД: 76778 [07:46:39]line ФПД: 17359024397894 [07:46:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T074641&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76778&fm=17359024397894&tin=02508201610067®Number=0000000000091573&sum=200000 [07:46:39]OFD Sender: Processing packet 76778 [packets to send 129, broken 128] [07:46:39]ProducePacketName [07:46:39]name=ofd_packets/00076778 [07:46:39]OFD Sender: To server: pG, [07:46:39]CommunicateWithHost lk.salyk.kg:30040 [07:46:39]ConnectInit lk.salyk.kg [07:46:39]written 0, free lines is 4095 [07:46:40]Connected sock=9 [07:46:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 CD 70 07 01 57 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 54 79 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 61 C4 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EA 2B 01 00 35 04 06 00 0F C9 B6 7B 9E 46 7F D9 FF CC A4 FE 29 79 [07:46:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 A1 DF 47 00 55 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EA 2B 01 00 F4 03 04 00 E7 6B 24 66 B6 04 01 00 00 B3 B1 85 09 C0 6E B4 21 [07:46:40]CommunicateWithHost err = 0 [07:46:40]CheckOFDResponse [07:46:40]1017 (14) - 77093643461234 [07:46:40]1041 (16) - 0000000000874652 [07:46:40]1040 (4) - 76778 [07:46:40]1012 (4) - 21.04.2024 01:29 [07:46:40]1206 (1) - 0 [07:46:40]OFD Sender: Remove packet 76778 [07:46:40]ProducePacketName [07:46:40]name=ofd_packets/00076778 [07:46:40]NVStorageDeleteData [07:46:40]Write to MH i2c: 01 00 00 1A 19 33 [07:46:40]Write i2c OK [07:46:40]MH_I2C_Read... [07:46:40]Read from MH i2c: 01 [07:46:40]MH_I2C_Read... [07:46:40]Read from MH i2c: 01 07 00 [07:46:40]MH_I2C_Read... [07:46:40]Read from MH i2c: 01 07 00 1A 19 00 00 00 00 00 EB 0C 31 [07:46:40]RasterBufferAndPrint [07:46:40]line [07:46:40]line [07:46:40]line [07:46:40]line [07:46:40]line [07:46:40]written 0, free lines is 3314 [07:46:40]MH_Cut [07:46:40]Write to MH i2c: D1 01 00 21 19 01 0C [07:46:40]Write i2c OK [07:46:40]MH_I2C_Read... [07:46:40]Read from MH i2c: D1 [07:46:40]MH_I2C_Read... [07:46:40]Read from MH i2c: D1 01 00 [07:46:40]MH_I2C_Read... [07:46:40]Read from MH i2c: D1 01 00 21 19 00 0B [07:46:40]Write to MH i2c: 01 00 00 22 19 3B [07:46:40]Write i2c OK [07:46:40]MH_I2C_Read... [07:46:40]OFD Sender: No OFD packet to send [07:46:41]*** Cut start [07:46:41]*** Partial cut [07:46:41]*** CUTSNS_PIN = 1 [07:46:41]*** CUTSNS_PIN = 0 [07:46:41]*** Brake cut motor [07:46:41]Read from MH i2c: 01 [07:46:41]MH_I2C_Read... [07:46:41]*** Stop cut motor [07:46:41]*** Cut end [07:46:41]Read from MH i2c: 01 07 00 [07:46:41]MH_I2C_Read... [07:46:41]Read from MH i2c: 01 07 00 22 19 00 00 00 00 00 FF 0F 50 [07:46:41]process_action close_receipt done [07:46:41]requested_data is exist [07:46:41]produce_requested_data [07:46:41]requested_item fm.sn is exist - process it [07:46:41]wFMCommunicate request_size=4 [07:46:41]MH_SAM_APDU [07:46:41]CAPDU: 80 11 00 00 [07:46:41]Write to MH i2c: E2 08 00 23 19 80 11 00 00 00 00 00 00 B6 [07:46:41]Write i2c OK [07:46:41]MH_I2C_Read... [07:46:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:41]Read from MH i2c: E2 [07:46:41]MH_I2C_Read... [07:46:41]Read from MH i2c: E2 17 00 [07:46:41]MH_I2C_Read... [07:46:41]Read from MH i2c: E2 17 00 23 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 09 [07:46:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:46:41]wFMCommunicate OK [07:46:41]requested_item fd.num is exist - process it [07:46:41]SAM_PROTO_GetFieldsCounters [07:46:41]wFMCommunicate request_size=4 [07:46:41]MH_SAM_APDU [07:46:41]CAPDU: 80 13 00 00 [07:46:41]Write to MH i2c: E2 08 00 24 19 80 13 00 00 00 00 00 00 B9 [07:46:41]Write i2c OK [07:46:41]MH_I2C_Read... [07:46:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:46:42]Read from MH i2c: E2 [07:46:42]MH_I2C_Read... [07:46:42]Read from MH i2c: E2 62 00 [07:46:42]MH_I2C_Read... [07:46:42]Read from MH i2c: E2 62 00 24 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 EA 2B 01 00 0E 04 04 00 74 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 CB [07:46: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 EA 2B 01 00 0E 04 04 00 74 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 [07:46:42]wFMCommunicate OK [07:46:42]SAM_PROTO_GetFieldsCounters done [07:46:42]requested_item shift.num is exist - process it [07:46:42]requested_item shift.opened is exist - process it [07:46:42]req_shift_opened [07:46:42]FM_GetShiftState [07:46:42]SAM_PROTO_GetShiftState [07:46:42]wFMCommunicate request_size=4 [07:46:42]MH_SAM_APDU [07:46:42]CAPDU: 80 13 01 00 [07:46:42]Write to MH i2c: E2 08 00 25 19 80 13 01 00 00 00 00 00 BB [07:46:42]Write i2c OK [07:46:42]MH_I2C_Read... [07:46:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:42]Read from MH i2c: E2 [07:46:42]MH_I2C_Read... [07:46:42]Read from MH i2c: E2 0E 00 [07:46:42]MH_I2C_Read... [07:46:42]Read from MH i2c: E2 0E 00 25 19 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 02 [07:46:42]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [07:46:42]wFMCommunicate OK [07:46:42]SAM_PROTO_GetShiftState done [07:46:42]FM_GetShiftState done [07:46:42]req_shift_opened done [07:46:42]requested_item shift.open_date is exist - process it [07:46:42]req_shift_open_date [07:46:42]req_shift_open_date done [07:46:42]produce_requested_data done [07:46:42]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76778,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [07:46:42]process_action_free close_receipt [07:46:42]json_value_free [07:46:42]json_value_free done [07:46:42]process_json_proto returns [07:46:42]Send response to host [07:46:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76778,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [07:46:42]free response buf [07:46:42]execute_script done [07:46:42]execute_script returns [07:46:42]free content buf [07:46:42]Sock 7.Close socket [07:46:42]Sock 7.Thread stoped [07:46:45]OFD Sender: No OFD packet to send [07:46:50]OFD Sender: No OFD packet to send [07:46:55]OFD Sender: No OFD packet to send [07:47:00]OFD Sender: No OFD packet to send [07:47:05]OFD Sender: No OFD packet to send [07:47:10]OFD Sender: No OFD packet to send [07:47:15]OFD Sender: No OFD packet to send [07:47:20]OFD Sender: No OFD packet to send [07:47:25]OFD Sender: No OFD packet to send [07:47:30]OFD Sender: No OFD packet to send [07:47:35]OFD Sender: No OFD packet to send [07:47:40]OFD Sender: No OFD packet to send [07:47:45]OFD Sender: No OFD packet to send [07:47:50]OFD Sender: No OFD packet to send [07:47:55]OFD Sender: No OFD packet to send [07:48:01]OFD Sender: No OFD packet to send [07:48:06]OFD Sender: No OFD packet to send [07:48:11]OFD Sender: No OFD packet to send [07:48:16]OFD Sender: No OFD packet to send [07:48:21]OFD Sender: No OFD packet to send [07:48:26]OFD Sender: No OFD packet to send [07:48:31]OFD Sender: No OFD packet to send [07:48:36]OFD Sender: No OFD packet to send [07:48:41]OFD Sender: No OFD packet to send [07:48:46]OFD Sender: No OFD packet to send [07:48:51]OFD Sender: No OFD packet to send [07:48:56]OFD Sender: No OFD packet to send [07:49:01]OFD Sender: No OFD packet to send [07:49:06]OFD Sender: No OFD packet to send [07:49:11]OFD Sender: No OFD packet to send [07:49:16]OFD Sender: No OFD packet to send [07:49:21]OFD Sender: No OFD packet to send [07:49:26]OFD Sender: No OFD packet to send [07:49:31]OFD Sender: No OFD packet to send [07:49:36]OFD Sender: No OFD packet to send [07:49:41]OFD Sender: No OFD packet to send [07:49:46]OFD Sender: No OFD packet to send [07:49:51]OFD Sender: No OFD packet to send [07:49:56]OFD Sender: No OFD packet to send [07:50:01]OFD Sender: No OFD packet to send [07:50:06]OFD Sender: No OFD packet to send [07:50:11]OFD Sender: No OFD packet to send [07:50:16]OFD Sender: No OFD packet to send [07:50:21]OFD Sender: No OFD packet to send [07:50:26]OFD Sender: No OFD packet to send [07:50:31]OFD Sender: No OFD packet to send [07:50:36]OFD Sender: No OFD packet to send [07:50:41]OFD Sender: No OFD packet to send [07:50:46]OFD Sender: No OFD packet to send [07:50:51]OFD Sender: No OFD packet to send [07:50:56]OFD Sender: No OFD packet to send [07:51:01]OFD Sender: No OFD packet to send [07:51:06]OFD Sender: No OFD packet to send [07:51:11]OFD Sender: No OFD packet to send [07:51:16]OFD Sender: No OFD packet to send [07:51:21]OFD Sender: No OFD packet to send [07:51:26]OFD Sender: No OFD packet to send [07:51:31]OFD Sender: No OFD packet to send [07:51:36]OFD Sender: No OFD packet to send [07:51:41]OFD Sender: No OFD packet to send [07:51:46]OFD Sender: No OFD packet to send [07:51:51]OFD Sender: No OFD packet to send [07:51:56]OFD Sender: No OFD packet to send [07:52:01]OFD Sender: No OFD packet to send [07:52:06]OFD Sender: No OFD packet to send [07:52:11]OFD Sender: No OFD packet to send [07:52:16]OFD Sender: No OFD packet to send [07:52:21]OFD Sender: No OFD packet to send [07:52:26]OFD Sender: No OFD packet to send [07:52:31]OFD Sender: No OFD packet to send [07:52:36]OFD Sender: No OFD packet to send [07:52:41]OFD Sender: No OFD packet to send [07:52:46]OFD Sender: No OFD packet to send [07:52:51]OFD Sender: No OFD packet to send [07:52:56]OFD Sender: No OFD packet to send [07:53:01]OFD Sender: No OFD packet to send [07:53:06]OFD Sender: No OFD packet to send [07:53:11]OFD Sender: No OFD packet to send [07:53:16]OFD Sender: No OFD packet to send [07:53:21]OFD Sender: No OFD packet to send [07:53:26]OFD Sender: No OFD packet to send [07:53:31]OFD Sender: No OFD packet to send [07:53:36]OFD Sender: No OFD packet to send [07:53:41]OFD Sender: No OFD packet to send [07:53:46]OFD Sender: No OFD packet to send [07:53:51]OFD Sender: No OFD packet to send [07:53:56]OFD Sender: No OFD packet to send [07:54:01]OFD Sender: No OFD packet to send [07:54:06]OFD Sender: No OFD packet to send [07:54:11]OFD Sender: No OFD packet to send [07:54:16]OFD Sender: No OFD packet to send [07:54:21]OFD Sender: No OFD packet to send [07:54:26]OFD Sender: No OFD packet to send [07:54:31]OFD Sender: No OFD packet to send [07:54:36]OFD Sender: No OFD packet to send [07:54:37]accept exits with 10 [07:54:37]New connection [07:54:37]New thread 3067338084 created [07:54:37]Thread 3067481444 joined [07:54:37]Waiting for new connection... [07:54:37] Sock 10.Parse request [07:54:37]Sock 10.Check first char [07:54:37]Sock 10.First char is OK [07:54:37]request: POST /json_proto HTTP/1.0 [07:54:37]Method: POST [07:54:37]URL: /json_proto [07:54:37]Method is POST - this is cgi request [07:54:37]url: /json_proto [07:54:37]query_string will be loaded in cgi processing [07:54:37]execute_cgi json_proto POST (null) [07:54:37]execute_cgi path=json_proto method=POST [07:54:37]POST find Content-Length [07:54:37]Host: 172.17.62.5:8080 [07:54:37]Content-Length: 681 [07:54:37]Content-Type: application/json [07:54:37] [07:54:37]POST finish read [07:54:37]Found Content-Length = 681 [07:54:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 15.300, "sum" : 500.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:37]execute_script... [07:54:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 15.300, "sum" : 500.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:37]POST & json_proto [07:54:37]process_json_proto [07:54:37]json parsed OK: [07:54:37]protocol is kg_v1.0 [07:54:37]action value=close_receipt [07:54:37]process_action close_receipt [07:54:37]cmd_close_receipt [07:54:37]MH_GetDate [07:54:37]Write to MH i2c: F0 00 00 26 19 2E [07:54:37]Write i2c OK [07:54:37]MH_I2C_Read... [07:54:37]Read from MH i2c: F0 [07:54:37]MH_I2C_Read... [07:54:37]Read from MH i2c: F0 09 00 [07:54:37]MH_I2C_Read... [07:54:37]Read from MH i2c: F0 09 00 26 19 00 41 C6 24 66 F4 E9 65 64 6E [07:54:37]GetLastDocTimeStamp 1713685601 [07:54:37]current date 1713686081 [07:54:37]FM_GetShiftState [07:54:37]SAM_PROTO_GetShiftState [07:54:37]wFMCommunicate request_size=4 [07:54:37]MH_SAM_APDU [07:54:37]CAPDU: 80 13 01 00 [07:54:37]Write to MH i2c: E2 08 00 27 19 80 13 01 00 00 00 00 00 BD [07:54:37]Write i2c OK [07:54:37]MH_I2C_Read... [07:54:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:38]Read from MH i2c: E2 [07:54:38]MH_I2C_Read... [07:54:38]Read from MH i2c: E2 0E 00 [07:54:38]MH_I2C_Read... [07:54:38]Read from MH i2c: E2 0E 00 27 19 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 04 [07:54:38]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [07:54:38]wFMCommunicate OK [07:54:38]SAM_PROTO_GetShiftState done [07:54:38]FM_GetShiftState done [07:54:38]opened in 1713658965 [07:54:38]opened+sec_in_day 1713745365 [07:54:38]quantity*price = 50031 [07:54:38]sum+1 = 50032 [07:54:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 35 21.04.2024 07:54 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76779 ФПД: 5954782938594 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T075441&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76779&fm=5954782938594&tin=02508201610067®Number=0000000000091573&sum=50000 [07:54:39]StoreToDocumentArchive [07:54:39]shift 372 fd 76779 [07:54:39]save to /storage/0372/doc_00076779 [07:54:39]save last doc name /storage/0372/doc_00076779 to /storage/kkm_last_doc_name [07:54:39]save OK [07:54:39]Clear old archive folders... [07:54:39]ProcessDocumentItem done err = 0, tmpTLVsize=250 [07:54:39]tlvbuf is 01887910 [07:54:39]SAM_PROTO_ClearQueue [07:54:39]wFMCommunicate request_size=4 [07:54:39]MH_SAM_APDU [07:54:39]CAPDU: 80 09 00 00 [07:54:39]Write to MH i2c: E2 08 00 34 19 80 09 00 00 00 00 00 00 BF [07:54:39]Write i2c OK [07:54:39]MH_I2C_Read... [07:54:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:54:39]Read from MH i2c: E2 [07:54:39]MH_I2C_Read... [07:54:39]Read from MH i2c: E2 03 00 [07:54:39]MH_I2C_Read... [07:54:39]Read from MH i2c: E2 03 00 34 19 00 90 00 C1 [07:54:39]RAPDU: 90 00 [07:54:39]wFMCommunicate OK [07:54:39]SAM_PROTO_ClearQueue done [07:54:39]KKMCreateOFDPacket [07:54:39]OFDProtocolAddRootSTLVToBuf [07:54:39]FM_MakeSignedData [07:54:39]FM_MakeSignedData [07:54:39]SAM_PROTO_SignData [07:54:39]wFMCommunicate request_size=4 [07:54:39]MH_SAM_APDU [07:54:39]CAPDU: 80 0D 01 02 [07:54:39]Write to MH i2c: E2 08 00 35 19 80 0D 01 02 00 00 00 00 C7 [07:54:39]Write i2c OK [07:54:39]MH_I2C_Read... [07:54:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:54:39]Read from MH i2c: E2 [07:54:39]MH_I2C_Read... [07:54:39]Read from MH i2c: E2 03 00 [07:54:39]MH_I2C_Read... [07:54:39]Read from MH i2c: E2 03 00 35 19 00 90 00 C2 [07:54:39]RAPDU: 90 00 [07:54:39]wFMCommunicate OK [07:54:39]wFMCommunicate request_size=255 [07:54:39]MH_SAM_APDU [07:54:39]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 23 00 00 00 F4 03 04 00 41 C6 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EB 2B 01 00 35 04 06 00 05 6A [07:54:39]Write to MH i2c: E2 02 01 36 19 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 23 00 00 00 F4 03 04 00 41 C6 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EB 2B 01 00 35 04 06 00 05 6A 00 00 E1 [07:54:39]Write i2c OK [07:54:39]MH_I2C_Read... [07:54:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:39]Read from MH i2c: E2 [07:54:39]MH_I2C_Read... [07:54:39]Read from MH i2c: E2 03 00 [07:54:39]MH_I2C_Read... [07:54:39]Read from MH i2c: E2 03 00 36 19 00 90 00 C3 [07:54:39]RAPDU: 90 00 [07:54:39]wFMCommunicate OK [07:54:39]wFMCommunicate request_size=9 [07:54:39]MH_SAM_APDU [07:54:39]CAPDU: 80 0D 02 02 04 74 B8 C5 E2 [07:54:39]Write to MH i2c: E2 0C 00 37 19 80 0D 02 02 04 00 74 B8 C5 E2 00 00 A5 [07:54:39]Write i2c OK [07:54:39]MH_I2C_Read... [07:54:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:39]Read from MH i2c: E2 [07:54:39]MH_I2C_Read... [07:54:39]Read from MH i2c: E2 03 00 [07:54:39]MH_I2C_Read... [07:54:39]Read from MH i2c: E2 03 00 37 19 00 90 00 C4 [07:54:39]RAPDU: 90 00 [07:54:39]wFMCommunicate OK [07:54:39]wFMCommunicate request_size=4 [07:54:39]MH_SAM_APDU [07:54:39]CAPDU: 80 0D 03 02 [07:54:39]Write to MH i2c: E2 08 00 38 19 80 0D 03 02 00 00 00 00 CC [07:54:39]Write i2c OK [07:54:39]MH_I2C_Read... [07:54:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:54:39]Read from MH i2c: E2 [07:54:39]MH_I2C_Read... [07:54:39]Read from MH i2c: E2 0B 00 [07:54:39]MH_I2C_Read... [07:54:39]Read from MH i2c: E2 0B 00 38 19 00 66 A1 6A FB 9B 3B 84 1B 90 00 AE [07:54:39]RAPDU: 66 A1 6A FB 9B 3B 84 1B 90 00 [07:54:39]wFMCommunicate OK [07:54:39]SAM_PROTO_SignData done [07:54:39]FM_MakeSignedData done [07:54:39]CreateOFDProtocolMessage [07:54:39]wFMCommunicate request_size=4 [07:54:39]MH_SAM_APDU [07:54:39]CAPDU: 80 11 00 00 [07:54:39]Write to MH i2c: E2 08 00 39 19 80 11 00 00 00 00 00 00 CC [07:54:39]Write i2c OK [07:54:39]MH_I2C_Read... [07:54:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:39]Read from MH i2c: E2 [07:54:39]MH_I2C_Read... [07:54:39]Read from MH i2c: E2 17 00 [07:54:39]MH_I2C_Read... [07:54:39]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 34 36 35 32 90 00 1F [07:54:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:54:39]wFMCommunicate OK [07:54:39]CreateOFDProtocolMessage done [07:54:39]OFDSenderStorePacket 76779 [07:54:39]StoreOFDPacket docnum=76779 [07:54:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 F7 D7 06 01 85 B3 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 23 00 00 00 F4 03 04 00 41 C6 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EB 2B 01 00 35 04 06 00 05 6A 74 B8 C5 E2 66 A1 6A FB 9B 3B 84 1B [07:54:39]CheckFolder [07:54:39]dirname=/storage/ofd_packets [07:54:39]CheckFolder done [07:54:39]ProducePacketName [07:54:39]name=ofd_packets/00076779 [07:54:39]NVStorageSaveData ofd_packets/00076779 [07:54:39]File name is /storage/ofd_packets/00076779 [07:54:39]Write 300 bytes [07:54:39]NVStorageSaveData done [07:54:39]OFDSenderStorePacket done [07:54:39]KKMCreateOFDPacket done [07:54:39]NVStorageSaveData kkm_last_timestamp [07:54:39]File name is /storage/kkm_last_timestamp [07:54:39]Write 4 bytes [07:54:39]NVStorageSaveData done [07:54:39]ExternCall_PrintAddStr [07:54:39]wPrintStart [07:54:39]Write to MH i2c: 01 00 00 3A 19 53 [07:54:39]Write i2c OK [07:54:39]MH_I2C_Read... [07:54:39]Read from MH i2c: 01 [07:54:39]MH_I2C_Read... [07:54:39]Read from MH i2c: 01 07 00 [07:54:39]MH_I2C_Read... [07:54:39]Read from MH i2c: 01 07 00 3A 19 00 00 00 00 00 FF 0F 68 [07:54:39]RasterBufferAndPrint [07:54:39]line Счет N : (1)191308 [07:54:39]line ИНН: 02508201610067 [07:54:39]line Контрольно-Кассовый Чек [07:54:39]line ПРОДАЖА [07:54:39]line ТРК (МРК, ГНК) : 71 [07:54:39]line Товар: 2711190000 [07:54:39]line ГАЗ-К-5 [07:54:39]line 15.300 * 32.70 [07:54:39]line = 500.31 [07:54:39]line НДС 12% НСП 1% [07:54:39]line > о реализуемом товаре [07:54:39]line ОКРУГЛЕНИЕ: -0.31 [07:54:39]line ИТОГО: 500.00 [07:54:39]line Внесено: 500.00 [07:54:39]line СДАЧА: 0.00 [07:54:39]line НСП 1% : 4.43 [07:54:39]line НДС 12% : 53.13 [07:54:39]line Наличными: 500.00 [07:54:39]line Безнал.: 0.00 [07:54:39]line Место: АЗС № 106 "Партнер Нефть" [07:54:39]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [07:54:39]line СНО: Общий режим [07:54:39]line Чек 35 21.04.2024 07:54 [07:54:39]line Смена: 372 ФФД: 1.0 [07:54:39]line ЗНМ: 0300000141 [07:54:39]line РНМ: 0000000000091573 [07:54:39]line Версия ККМ: 001 [07:54:39]line ФМ: 0000000000874652 [07:54:39]line ФД: 76779 [07:54:39]line ФПД: 5954782938594 [07:54:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T075441&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76779&fm=5954782938594&tin=02508201610067®Number=0000000000091573&sum=50000 [07:54:40]OFD Sender: Processing packet 76779 [packets to send 129, broken 128] [07:54:40]ProducePacketName [07:54:40]name=ofd_packets/00076779 [07:54:40]OFD Sender: To server: pG, [07:54:40]CommunicateWithHost lk.salyk.kg:30040 [07:54:40]ConnectInit lk.salyk.kg [07:54:40]written 0, free lines is 4095 [07:54:40]Connected sock=9 [07:54:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 F7 D7 06 01 85 B3 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 23 00 00 00 F4 03 04 00 41 C6 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EB 2B 01 00 35 04 06 00 05 6A 74 B8 C5 E2 66 A1 6A FB 9B 3B 84 1B [07:54:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 D3 04 47 00 AA 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EB 2B 01 00 F4 03 04 00 C7 6D 24 66 B6 04 01 00 00 80 BD 3E D0 3F E6 2F E4 [07:54:40]CommunicateWithHost err = 0 [07:54:40]CheckOFDResponse [07:54:40]1017 (14) - 77093643461234 [07:54:40]1041 (16) - 0000000000874652 [07:54:40]1040 (4) - 76779 [07:54:40]1012 (4) - 21.04.2024 01:37 [07:54:40]1206 (1) - 0 [07:54:40]OFD Sender: Remove packet 76779 [07:54:40]ProducePacketName [07:54:40]name=ofd_packets/00076779 [07:54:40]NVStorageDeleteData [07:54:40]Write to MH i2c: 01 00 00 64 19 7D [07:54:40]Write i2c OK [07:54:40]MH_I2C_Read... [07:54:40]Read from MH i2c: 01 [07:54:40]MH_I2C_Read... [07:54:40]Read from MH i2c: 01 07 00 [07:54:40]MH_I2C_Read... [07:54:40]Read from MH i2c: 01 07 00 64 19 00 00 00 00 00 FA 0C 8A [07:54:40]RasterBufferAndPrint [07:54:40]line [07:54:40]line [07:54:40]line [07:54:40]line [07:54:40]line [07:54:40]written 0, free lines is 3328 [07:54:40]MH_Cut [07:54:40]Write to MH i2c: D1 01 00 6B 19 01 56 [07:54:40]Write i2c OK [07:54:40]MH_I2C_Read... [07:54:40]Read from MH i2c: D1 [07:54:40]MH_I2C_Read... [07:54:40]Read from MH i2c: D1 01 00 [07:54:40]MH_I2C_Read... [07:54:40]Read from MH i2c: D1 01 00 6B 19 00 55 [07:54:40]Write to MH i2c: 01 00 00 6C 19 85 [07:54:40]Write i2c OK [07:54:40]MH_I2C_Read... [07:54:40]OFD Sender: No OFD packet to send [07:54:41]*** Cut start [07:54:41]*** Partial cut [07:54:41]*** CUTSNS_PIN = 1 [07:54:41]*** CUTSNS_PIN = 0 [07:54:41]*** Brake cut motor [07:54:41]Read from MH i2c: 01 [07:54:41]MH_I2C_Read... [07:54:41]*** Stop cut motor [07:54:41]*** Cut end [07:54:41]Read from MH i2c: 01 07 00 [07:54:41]MH_I2C_Read... [07:54:41]Read from MH i2c: 01 07 00 6C 19 00 00 00 00 00 FF 0F 9A [07:54:41]process_action close_receipt done [07:54:41]requested_data is exist [07:54:41]produce_requested_data [07:54:41]requested_item fm.sn is exist - process it [07:54:41]wFMCommunicate request_size=4 [07:54:41]MH_SAM_APDU [07:54:41]CAPDU: 80 11 00 00 [07:54:41]Write to MH i2c: E2 08 00 6D 19 80 11 00 00 00 00 00 00 00 [07:54:41]Write i2c OK [07:54:41]MH_I2C_Read... [07:54:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:41]Read from MH i2c: E2 [07:54:41]MH_I2C_Read... [07:54:41]Read from MH i2c: E2 17 00 [07:54:41]MH_I2C_Read... [07:54:41]Read from MH i2c: E2 17 00 6D 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 53 [07:54:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:54:41]wFMCommunicate OK [07:54:41]requested_item fd.num is exist - process it [07:54:41]SAM_PROTO_GetFieldsCounters [07:54:41]wFMCommunicate request_size=4 [07:54:41]MH_SAM_APDU [07:54:41]CAPDU: 80 13 00 00 [07:54:41]Write to MH i2c: E2 08 00 6E 19 80 13 00 00 00 00 00 00 03 [07:54:41]Write i2c OK [07:54:41]MH_I2C_Read... [07:54:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:54:42]Read from MH i2c: E2 [07:54:42]MH_I2C_Read... [07:54:42]Read from MH i2c: E2 62 00 [07:54:42]MH_I2C_Read... [07:54:42]Read from MH i2c: E2 62 00 6E 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 EB 2B 01 00 0E 04 04 00 74 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 19 [07: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 EB 2B 01 00 0E 04 04 00 74 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 [07:54:42]wFMCommunicate OK [07:54:42]SAM_PROTO_GetFieldsCounters done [07:54:42]requested_item shift.num is exist - process it [07:54:42]requested_item shift.opened is exist - process it [07:54:42]req_shift_opened [07:54:42]FM_GetShiftState [07:54:42]SAM_PROTO_GetShiftState [07:54:42]wFMCommunicate request_size=4 [07:54:42]MH_SAM_APDU [07:54:42]CAPDU: 80 13 01 00 [07:54:42]Write to MH i2c: E2 08 00 6F 19 80 13 01 00 00 00 00 00 05 [07:54:42]Write i2c OK [07:54:42]MH_I2C_Read... [07:54:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:42]Read from MH i2c: E2 [07:54:42]MH_I2C_Read... [07:54:42]Read from MH i2c: E2 0E 00 [07:54:42]MH_I2C_Read... [07:54:42]Read from MH i2c: E2 0E 00 6F 19 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 4C [07:54:42]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [07:54:42]wFMCommunicate OK [07:54:42]SAM_PROTO_GetShiftState done [07:54:42]FM_GetShiftState done [07:54:42]req_shift_opened done [07:54:42]requested_item shift.open_date is exist - process it [07:54:42]req_shift_open_date [07:54:42]req_shift_open_date done [07:54:42]produce_requested_data done [07:54:42]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76779,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [07:54:42]process_action_free close_receipt [07:54:42]json_value_free [07:54:42]json_value_free done [07:54:42]process_json_proto returns [07:54:42]Send response to host [07:54:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76779,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [07:54:42]free response buf [07:54:42]execute_script done [07:54:42]execute_script returns [07:54:42]free content buf [07:54:42]Sock 10.Close socket [07:54:42]Sock 10.Thread stoped [07:54:45]OFD Sender: No OFD packet to send [07:54:50]OFD Sender: No OFD packet to send [07:54:52]accept exits with 7 [07:54:52]New connection [07:54:52]New thread 3067481444 created [07:54:52]Thread 3067338084 joined [07:54:52]Waiting for new connection... [07:54:52] Sock 7.Parse request [07:54:52]Sock 7.Check first char [07:54:52]Sock 7.First char is OK [07:54:52]request: POST /json_proto HTTP/1.0 [07:54:52]Method: POST [07:54:52]URL: /json_proto [07:54:52]Method is POST - this is cgi request [07:54:52]url: /json_proto [07:54:52]query_string will be loaded in cgi processing [07:54:52]execute_cgi json_proto POST (null) [07:54:52]execute_cgi path=json_proto method=POST [07:54:52]POST find Content-Length [07:54:52]Host: 172.17.62.5:8080 [07:54:52]Content-Length: 978 [07:54:52]Content-Type: application/json [07:54:52] [07:54:52]POST finish read [07:54:52]Found Content-Length = 978 [07:54:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191309", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 29.770, "sum" : 2140.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 29.77 \u0441\u043E\u043C", "deposit" : 2140.00, "total" : 2140.00, "payments": [ { "type": 0, "sum" : 2140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:52]execute_script... [07:54: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)191309", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 29.770, "sum" : 2140.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 29.77 \u0441\u043E\u043C", "deposit" : 2140.00, "total" : 2140.00, "payments": [ { "type": 0, "sum" : 2140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:52]POST & json_proto [07:54:52]process_json_proto [07:54:52]json parsed OK: [07:54:52]protocol is kg_v1.0 [07:54:52]action value=close_receipt [07:54:52]process_action close_receipt [07:54:52]cmd_close_receipt [07:54:52]MH_GetDate [07:54:52]Write to MH i2c: F0 00 00 70 19 78 [07:54:52]Write i2c OK [07:54:52]MH_I2C_Read... [07:54:52]Read from MH i2c: F0 [07:54:52]MH_I2C_Read... [07:54:52]Read from MH i2c: F0 09 00 [07:54:52]MH_I2C_Read... [07:54:52]Read from MH i2c: F0 09 00 70 19 00 50 C6 24 66 F4 E9 65 64 C7 [07:54:52]GetLastDocTimeStamp 1713686081 [07:54:52]current date 1713686096 [07:54:52]FM_GetShiftState [07:54:52]SAM_PROTO_GetShiftState [07:54:52]wFMCommunicate request_size=4 [07:54:52]MH_SAM_APDU [07:54:52]CAPDU: 80 13 01 00 [07:54:52]Write to MH i2c: E2 08 00 71 19 80 13 01 00 00 00 00 00 07 [07:54:52]Write i2c OK [07:54:52]MH_I2C_Read... [07:54:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:52]Read from MH i2c: E2 [07:54:52]MH_I2C_Read... [07:54:52]Read from MH i2c: E2 0E 00 [07:54:52]MH_I2C_Read... [07:54:52]Read from MH i2c: E2 0E 00 71 19 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 4E [07:54:52]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [07:54:52]wFMCommunicate OK [07:54:52]SAM_PROTO_GetShiftState done [07:54:52]FM_GetShiftState done [07:54:52]opened in 1713658965 [07:54:52]opened+sec_in_day 1713745365 [07:54:52]quantity*price = 214046 [07:54:52]sum+1 = 214047 [07:54:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 2140.00 Внесено: 2140.00 СДАЧА: 0.00 НСП 1% : 18.94 НДС 12% : 227.30 Наличными: 2140.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 36 21.04.2024 07:54 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 29.77 сом ФМ: 0000000000874652 ФД: 76780 ФПД: 187075183639988 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T075456&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76780&fm=187075183639988&tin=02508201610067®Number=0000000000091573&sum=214000 [07:54:54]StoreToDocumentArchive [07:54:54]shift 372 fd 76780 [07:54:54]save to /storage/0372/doc_00076780 [07:54:54]save last doc name /storage/0372/doc_00076780 to /storage/kkm_last_doc_name [07:54:54]save OK [07:54:54]Clear old archive folders... [07:54:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:54:54]tlvbuf is 0185CA60 [07:54:54]SAM_PROTO_ClearQueue [07:54:54]wFMCommunicate request_size=4 [07:54:54]MH_SAM_APDU [07:54:54]CAPDU: 80 09 00 00 [07:54:54]Write to MH i2c: E2 08 00 7E 19 80 09 00 00 00 00 00 00 09 [07:54:54]Write i2c OK [07:54:54]MH_I2C_Read... [07:54:54]Read from MH i2c: E2 [07:54:54]MH_I2C_Read... [07:54:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:54:54]Read from MH i2c: E2 03 00 [07:54:54]MH_I2C_Read... [07:54:54]Read from MH i2c: E2 03 00 7E 19 00 90 00 0B [07:54:54]RAPDU: 90 00 [07:54:54]wFMCommunicate OK [07:54:54]SAM_PROTO_ClearQueue done [07:54:54]KKMCreateOFDPacket [07:54:54]OFDProtocolAddRootSTLVToBuf [07:54:54]FM_MakeSignedData [07:54:54]FM_MakeSignedData [07:54:54]SAM_PROTO_SignData [07:54:54]wFMCommunicate request_size=4 [07:54:54]MH_SAM_APDU [07:54:54]CAPDU: 80 0D 01 02 [07:54:54]Write to MH i2c: E2 08 00 7F 19 80 0D 01 02 00 00 00 00 11 [07:54:54]Write i2c OK [07:54:54]MH_I2C_Read... [07:54:54]Read from MH i2c: E2 [07:54:54]MH_I2C_Read... [07:54:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:54:54]Read from MH i2c: E2 03 00 [07:54:54]MH_I2C_Read... [07:54:54]Read from MH i2c: E2 03 00 7F 19 00 90 00 0C [07:54:54]RAPDU: 90 00 [07:54:54]wFMCommunicate OK [07:54:54]wFMCommunicate request_size=255 [07:54:54]MH_SAM_APDU [07:54:54]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 74 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 1E 44 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 43 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 58 00 00 00 00 07 04 06 00 F0 43 03 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 50 C6 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EC 2B 01 00 35 04 06 00 AA 24 D5 DD [07:54:54]Write to MH i2c: E2 02 01 80 19 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 74 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 1E 44 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 43 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 58 00 00 00 00 07 04 06 00 F0 43 03 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 50 C6 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EC 2B 01 00 35 04 06 00 AA 24 D5 DD 00 00 8F [07:54:54]Write i2c OK [07:54:54]MH_I2C_Read... [07:54:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:54]Read from MH i2c: E2 [07:54:54]MH_I2C_Read... [07:54:54]Read from MH i2c: E2 03 00 [07:54:54]MH_I2C_Read... [07:54:54]Read from MH i2c: E2 03 00 80 19 00 90 00 0D [07:54:54]RAPDU: 90 00 [07:54:54]wFMCommunicate OK [07:54:54]wFMCommunicate request_size=7 [07:54:54]MH_SAM_APDU [07:54:54]CAPDU: 80 0D 02 02 02 FD B4 [07:54:54]Write to MH i2c: E2 0A 00 81 19 80 0D 02 02 02 00 FD B4 00 00 C9 [07:54:54]Write i2c OK [07:54:54]MH_I2C_Read... [07:54:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:54]Read from MH i2c: E2 [07:54:54]MH_I2C_Read... [07:54:54]Read from MH i2c: E2 03 00 [07:54:54]MH_I2C_Read... [07:54:54]Read from MH i2c: E2 03 00 81 19 00 90 00 0E [07:54:54]RAPDU: 90 00 [07:54:54]wFMCommunicate OK [07:54:54]wFMCommunicate request_size=4 [07:54:54]MH_SAM_APDU [07:54:54]CAPDU: 80 0D 03 02 [07:54:54]Write to MH i2c: E2 08 00 82 19 80 0D 03 02 00 00 00 00 16 [07:54:54]Write i2c OK [07:54:54]MH_I2C_Read... [07:54:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:54:54]Read from MH i2c: E2 [07:54:54]MH_I2C_Read... [07:54:54]Read from MH i2c: E2 0B 00 [07:54:54]MH_I2C_Read... [07:54:54]Read from MH i2c: E2 0B 00 82 19 00 18 7C E6 65 D7 DA 51 97 90 00 8F [07:54:54]RAPDU: 18 7C E6 65 D7 DA 51 97 90 00 [07:54:54]wFMCommunicate OK [07:54:54]SAM_PROTO_SignData done [07:54:54]FM_MakeSignedData done [07:54:54]CreateOFDProtocolMessage [07:54:54]wFMCommunicate request_size=4 [07:54:54]MH_SAM_APDU [07:54:54]CAPDU: 80 11 00 00 [07:54:54]Write to MH i2c: E2 08 00 83 19 80 11 00 00 00 00 00 00 16 [07:54:54]Write i2c OK [07:54:54]MH_I2C_Read... [07:54:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:54]Read from MH i2c: E2 [07:54:54]MH_I2C_Read... [07:54:54]Read from MH i2c: E2 17 00 [07:54:54]MH_I2C_Read... [07:54:54]Read from MH i2c: E2 17 00 83 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 69 [07:54:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:54:54]wFMCommunicate OK [07:54:54]CreateOFDProtocolMessage done [07:54:54]OFDSenderStorePacket 76780 [07:54:54]StoreOFDPacket docnum=76780 [07:54:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 C7 76 04 01 98 4B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 74 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 1E 44 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 43 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 58 00 00 00 00 07 04 06 00 F0 43 03 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 50 C6 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EC 2B 01 00 35 04 06 00 AA 24 D5 DD FD B4 18 7C E6 65 D7 DA 51 97 [07:54:54]CheckFolder [07:54:54]dirname=/storage/ofd_packets [07:54:54]CheckFolder done [07:54:54]ProducePacketName [07:54:54]name=ofd_packets/00076780 [07:54:54]NVStorageSaveData ofd_packets/00076780 [07:54:54]File name is /storage/ofd_packets/00076780 [07:54:54]Write 298 bytes [07:54:54]NVStorageSaveData done [07:54:54]OFDSenderStorePacket done [07:54:54]KKMCreateOFDPacket done [07:54:54]NVStorageSaveData kkm_last_timestamp [07:54:54]File name is /storage/kkm_last_timestamp [07:54:54]Write 4 bytes [07:54:54]NVStorageSaveData done [07:54:54]ExternCall_PrintAddStr [07:54:54]wPrintStart [07:54:54]Write to MH i2c: 01 00 00 84 19 9D [07:54:54]Write i2c OK [07:54:54]MH_I2C_Read... [07:54:54]Read from MH i2c: 01 [07:54:54]MH_I2C_Read... [07:54:54]Read from MH i2c: 01 07 00 [07:54:54]MH_I2C_Read... [07:54:54]Read from MH i2c: 01 07 00 84 19 00 00 00 00 00 FF 0F B2 [07:54:54]RasterBufferAndPrint [07:54:54]line Счет N : (1)191309 [07:54:54]line ИНН: 02508201610067 [07:54:54]line Контрольно-Кассовый Чек [07:54:54]line ПРОДАЖА [07:54:54]line ТРК (МРК, ГНК) : 13 [07:54:54]line Товар: 2710194210 [07:54:54]line ДТ-К-5 [07:54:54]line 29.770 * 71.90 [07:54:54]line = 2140.46 [07:54:54]line НДС 12% НСП 1% [07:54:54]line > о реализуемом товаре [07:54:54]line ОКРУГЛЕНИЕ: -0.46 [07:54:54]line ИТОГО: 2140.00 [07:54:54]line Внесено: 2140.00 [07:54:54]line СДАЧА: 0.00 [07:54:54]line НСП 1% : 18.94 [07:54:54]line НДС 12% : 227.30 [07:54:54]line Наличными: 2140.00 [07:54:54]line Безнал.: 0.00 [07:54:54]line Место: АЗС № 106 "Партнер Нефть" [07:54:54]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [07:54:54]line СНО: Общий режим [07:54:54]line Чек 36 21.04.2024 07:54 [07:54:54]line Смена: 372 ФФД: 1.0 [07:54:54]line ЗНМ: 0300000141 [07:54:54]line РНМ: 0000000000091573 [07:54:54]line Версия ККМ: 001 [07:54:54]line [07:54:54]line Дисконтная программа [07:54:54]line ДТ [07:54:54]line номер 106 [07:54:54]line сэкономлено 29.77 сом [07:54:54]line ФМ: 0000000000874652 [07:54:54]line ФД: 76780 [07:54:54]line ФПД: 187075183639988 [07:54:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T075456&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76780&fm=187075183639988&tin=02508201610067®Number=0000000000091573&sum=214000 [07:54:54]OFD Sender: Processing packet 76780 [packets to send 129, broken 128] [07:54:54]ProducePacketName [07:54:54]name=ofd_packets/00076780 [07:54:54]OFD Sender: To server: pG, [07:54:54]CommunicateWithHost lk.salyk.kg:30040 [07:54:54]ConnectInit lk.salyk.kg [07:54:54]written 0, free lines is 4095 [07:54:55]Write to MH i2c: 01 00 00 B3 19 CC [07:54:55]Write i2c OK [07:54:55]MH_I2C_Read... [07:54:55]Read from MH i2c: 01 [07:54:55]MH_I2C_Read... [07:54:55]Read from MH i2c: 01 07 00 [07:54:55]MH_I2C_Read... [07:54:55]Read from MH i2c: 01 07 00 B3 19 00 00 00 00 00 8A 0C 69 [07:54:55]RasterBufferAndPrint [07:54:55]line [07:54:55]line [07:54:55]line [07:54:55]line [07:54:55]line [07:54:55]written 0, free lines is 3217 [07:54:55]MH_Cut [07:54:55]Write to MH i2c: D1 01 00 BA 19 01 A5 [07:54:55]Write i2c OK [07:54:55]MH_I2C_Read... [07:54:55]Read from MH i2c: D1 [07:54:55]MH_I2C_Read... [07:54:55]Read from MH i2c: D1 01 00 [07:54:55]MH_I2C_Read... [07:54:55]Read from MH i2c: D1 01 00 BA 19 00 A4 [07:54:55]Write to MH i2c: 01 00 00 BB 19 D4 [07:54:55]Write i2c OK [07:54:55]MH_I2C_Read... [07:54:55]Connected sock=11 [07:54:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 C7 76 04 01 98 4B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 74 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 1E 44 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 43 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 58 00 00 00 00 07 04 06 00 F0 43 03 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 50 C6 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EC 2B 01 00 35 04 06 00 AA 24 D5 DD FD B4 18 7C E6 65 D7 DA 51 97 [07:54:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 02 64 47 00 9D 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 34 36 35 32 10 04 04 00 EC 2B 01 00 F4 03 04 00 D7 6D 24 66 B6 04 01 00 00 0E 3F 0B 1D 36 E4 8C 86 [07:54:56]CommunicateWithHost err = 0 [07:54:56]CheckOFDResponse [07:54:56]1017 (14) - 77093643461234 [07:54:56]1041 (16) - 0000000000874652 [07:54:56]1040 (4) - 76780 [07:54:56]1012 (4) - 21.04.2024 01:37 [07:54:56]1206 (1) - 0 [07:54:56]OFD Sender: Remove packet 76780 [07:54:56]ProducePacketName [07:54:56]name=ofd_packets/00076780 [07:54:56]NVStorageDeleteData [07:54:56]*** Cut start [07:54:56]*** Partial cut [07:54:56]*** CUTSNS_PIN = 1 [07:54:56]*** CUTSNS_PIN = 0 [07:54:56]*** Brake cut motor [07:54:56]OFD Sender: No OFD packet to send [07:54:56]Read from MH i2c: 01 [07:54:56]MH_I2C_Read... [07:54:56]*** Stop cut motor [07:54:56]*** Cut end [07:54:56]Read from MH i2c: 01 07 00 [07:54:56]MH_I2C_Read... [07:54:56]Read from MH i2c: 01 07 00 BB 19 00 00 00 00 00 FF 0F E9 [07:54:56]process_action close_receipt done [07:54:56]requested_data is exist [07:54:56]produce_requested_data [07:54:56]requested_item fm.sn is exist - process it [07:54:56]wFMCommunicate request_size=4 [07:54:56]MH_SAM_APDU [07:54:56]CAPDU: 80 11 00 00 [07:54:56]Write to MH i2c: E2 08 00 BC 19 80 11 00 00 00 00 00 00 4F [07:54:56]Write i2c OK [07:54:56]MH_I2C_Read... [07:54:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:56]Read from MH i2c: E2 [07:54:56]MH_I2C_Read... [07:54:56]Read from MH i2c: E2 17 00 [07:54:56]MH_I2C_Read... [07:54:56]Read from MH i2c: E2 17 00 BC 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 A2 [07:54:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:54:56]wFMCommunicate OK [07:54:56]requested_item fd.num is exist - process it [07:54:56]SAM_PROTO_GetFieldsCounters [07:54:56]wFMCommunicate request_size=4 [07:54:56]MH_SAM_APDU [07:54:56]CAPDU: 80 13 00 00 [07:54:56]Write to MH i2c: E2 08 00 BD 19 80 13 00 00 00 00 00 00 52 [07:54:56]Write i2c OK [07:54:56]MH_I2C_Read... [07:54:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:54:57]Read from MH i2c: E2 [07:54:57]MH_I2C_Read... [07:54:57]Read from MH i2c: E2 62 00 [07:54:57]MH_I2C_Read... [07:54:57]Read from MH i2c: E2 62 00 BD 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 EC 2B 01 00 0E 04 04 00 74 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 6C [07:54: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 EC 2B 01 00 0E 04 04 00 74 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 [07:54:57]wFMCommunicate OK [07:54:57]SAM_PROTO_GetFieldsCounters done [07:54:57]requested_item shift.num is exist - process it [07:54:57]requested_item shift.opened is exist - process it [07:54:57]req_shift_opened [07:54:57]FM_GetShiftState [07:54:57]SAM_PROTO_GetShiftState [07:54:57]wFMCommunicate request_size=4 [07:54:57]MH_SAM_APDU [07:54:57]CAPDU: 80 13 01 00 [07:54:57]Write to MH i2c: E2 08 00 BE 19 80 13 01 00 00 00 00 00 54 [07:54:57]Write i2c OK [07:54:57]MH_I2C_Read... [07:54:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:57]Read from MH i2c: E2 [07:54:57]MH_I2C_Read... [07:54:57]Read from MH i2c: E2 0E 00 [07:54:57]MH_I2C_Read... [07:54:57]Read from MH i2c: E2 0E 00 BE 19 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 9B [07:54:57]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [07:54:57]wFMCommunicate OK [07:54:57]SAM_PROTO_GetShiftState done [07:54:57]FM_GetShiftState done [07:54:57]req_shift_opened done [07:54:57]requested_item shift.open_date is exist - process it [07:54:57]req_shift_open_date [07:54:57]req_shift_open_date done [07:54:57]produce_requested_data done [07:54:57]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76780,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [07:54:57]process_action_free close_receipt [07:54:57]json_value_free [07:54:57]json_value_free done [07:54:57]process_json_proto returns [07:54:57]Send response to host [07:54:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76780,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [07:54:57]free response buf [07:54:57]execute_script done [07:54:57]execute_script returns [07:54:57]free content buf [07:54:57]Sock 7.Close socket [07:54:57]Sock 7.Thread stoped [07:55:01]OFD Sender: No OFD packet to send [07:55:06]OFD Sender: No OFD packet to send [07:55:11]OFD Sender: No OFD packet to send [07:55:16]OFD Sender: No OFD packet to send [07:55:21]OFD Sender: No OFD packet to send [07:55:26]OFD Sender: No OFD packet to send [07:55:31]OFD Sender: No OFD packet to send [07:55:36]OFD Sender: No OFD packet to send [07:55:41]OFD Sender: No OFD packet to send [07:55:46]OFD Sender: No OFD packet to send [07:55:51]OFD Sender: No OFD packet to send [07:55:56]OFD Sender: No OFD packet to send [07:56:01]OFD Sender: No OFD packet to send [07:56:06]OFD Sender: No OFD packet to send [07:56:11]OFD Sender: No OFD packet to send [07:56:16]OFD Sender: No OFD packet to send [07:56:21]OFD Sender: No OFD packet to send [07:56:26]OFD Sender: No OFD packet to send [07:56:31]OFD Sender: No OFD packet to send [07:56:36]OFD Sender: No OFD packet to send [07:56:41]OFD Sender: No OFD packet to send [07:56:46]OFD Sender: No OFD packet to send [07:56:51]OFD Sender: No OFD packet to send [07:56:56]OFD Sender: No OFD packet to send [07:57:01]OFD Sender: No OFD packet to send [07:57:06]OFD Sender: No OFD packet to send [07:57:11]OFD Sender: No OFD packet to send [07:57:16]OFD Sender: No OFD packet to send [07:57:21]OFD Sender: No OFD packet to send [07:57:26]OFD Sender: No OFD packet to send [07:57:31]OFD Sender: No OFD packet to send [07:57:36]OFD Sender: No OFD packet to send [07:57:41]OFD Sender: No OFD packet to send [07:57:46]OFD Sender: No OFD packet to send [07:57:51]OFD Sender: No OFD packet to send [07:57:56]OFD Sender: No OFD packet to send [07:58:01]OFD Sender: No OFD packet to send [07:58:06]OFD Sender: No OFD packet to send [07:58:11]OFD Sender: No OFD packet to send [07:58:16]OFD Sender: No OFD packet to send [07:58:21]OFD Sender: No OFD packet to send [07:58:26]OFD Sender: No OFD packet to send [07:58:31]OFD Sender: No OFD packet to send [07:58:36]OFD Sender: No OFD packet to send [07:58:41]OFD Sender: No OFD packet to send [07:58:46]OFD Sender: No OFD packet to send [07:58:51]OFD Sender: No OFD packet to send [07:58:56]OFD Sender: No OFD packet to send [07:59:01]OFD Sender: No OFD packet to send [07:59:06]OFD Sender: No OFD packet to send [07:59:11]OFD Sender: No OFD packet to send [07:59:16]OFD Sender: No OFD packet to send [07:59:21]OFD Sender: No OFD packet to send [07:59:26]OFD Sender: No OFD packet to send [07:59:31]OFD Sender: No OFD packet to send [07:59:36]OFD Sender: No OFD packet to send [07:59:41]OFD Sender: No OFD packet to send [07:59:46]OFD Sender: No OFD packet to send [07:59:51]OFD Sender: No OFD packet to send [07:59:56]OFD Sender: No OFD packet to send [08:00:01]OFD Sender: No OFD packet to send [08:00:06]OFD Sender: No OFD packet to send [08:00:11]OFD Sender: No OFD packet to send [08:00:16]OFD Sender: No OFD packet to send [08:00:21]OFD Sender: No OFD packet to send [08:00:26]OFD Sender: No OFD packet to send [08:00:31]OFD Sender: No OFD packet to send [08:00:36]OFD Sender: No OFD packet to send [08:00:41]OFD Sender: No OFD packet to send [08:00:46]OFD Sender: No OFD packet to send [08:00:52]OFD Sender: No OFD packet to send [08:00:57]OFD Sender: No OFD packet to send [08:01:02]OFD Sender: No OFD packet to send [08:01:07]OFD Sender: No OFD packet to send [08:01:12]OFD Sender: No OFD packet to send [08:01:17]OFD Sender: No OFD packet to send [08:01:22]OFD Sender: No OFD packet to send [08:01:27]OFD Sender: No OFD packet to send [08:01:32]OFD Sender: No OFD packet to send [08:01:37]OFD Sender: No OFD packet to send [08:01:42]OFD Sender: No OFD packet to send [08:01:47]OFD Sender: No OFD packet to send [08:01:48]accept exits with 9 [08:01:48]New connection [08:01:48]New thread 3067338084 created [08:01:48]Thread 3067481444 joined [08:01:48]Waiting for new connection... [08:01:48] Sock 9.Parse request [08:01:48]Sock 9.Check first char [08:01:48]Sock 9.First char is OK [08:01:48]request: POST /json_proto HTTP/1.0 [08:01:48]Method: POST [08:01:48]URL: /json_proto [08:01:48]Method is POST - this is cgi request [08:01:48]url: /json_proto [08:01:48]query_string will be loaded in cgi processing [08:01:48]execute_cgi json_proto POST (null) [08:01:48]execute_cgi path=json_proto method=POST [08:01:48]POST find Content-Length [08:01:48]Host: 172.17.62.5:8080 [08:01:48]Content-Length: 817 [08:01:48]Content-Type: application/json [08:01:48] [08:01:48]POST finish read [08:01:48]Found Content-Length = 817 [08:01:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.000, "sum" : 966.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" : 966.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:01:48]execute_script... [08:01: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)191310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.000, "sum" : 966.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" : 966.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:01:48]POST & json_proto [08:01:48]process_json_proto [08:01:48]json parsed OK: [08:01:48]protocol is kg_v1.0 [08:01:48]action value=close_receipt [08:01:48]process_action close_receipt [08:01:48]cmd_close_receipt [08:01:48]MH_GetDate [08:01:48]Write to MH i2c: F0 00 00 BF 19 C7 [08:01:48]Write i2c OK [08:01:48]MH_I2C_Read... [08:01:48]Read from MH i2c: F0 [08:01:48]MH_I2C_Read... [08:01:48]Read from MH i2c: F0 09 00 [08:01:48]MH_I2C_Read... [08:01:48]Read from MH i2c: F0 09 00 BF 19 00 F0 C7 24 66 F4 E9 65 64 B7 [08:01:48]GetLastDocTimeStamp 1713686096 [08:01:48]current date 1713686512 [08:01:48]FM_GetShiftState [08:01:48]SAM_PROTO_GetShiftState [08:01:48]wFMCommunicate request_size=4 [08:01:48]MH_SAM_APDU [08:01:48]CAPDU: 80 13 01 00 [08:01:48]Write to MH i2c: E2 08 00 C0 19 80 13 01 00 00 00 00 00 56 [08:01:48]Write i2c OK [08:01:48]MH_I2C_Read... [08:01:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:48]Read from MH i2c: E2 [08:01:48]MH_I2C_Read... [08:01:48]Read from MH i2c: E2 0E 00 [08:01:48]MH_I2C_Read... [08:01:48]Read from MH i2c: E2 0E 00 C0 19 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 9D [08:01:48]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [08:01:48]wFMCommunicate OK [08:01:48]SAM_PROTO_GetShiftState done [08:01:48]FM_GetShiftState done [08:01:48]opened in 1713658965 [08:01:48]opened+sec_in_day 1713745365 [08:01:48]quantity*price = 96600 [08:01:48]sum+1 = 96601 [08:01:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 966.00 НСП 1% : 8.55 НДС 12% : 102.58 Наличными: 0.00 Безнал.: 966.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 37 21.04.2024 08:01 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 76781 ФПД: 3539200388625 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T080152&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76781&fm=3539200388625&tin=02508201610067®Number=0000000000091573&sum=96600 [08:01:50]StoreToDocumentArchive [08:01:50]shift 372 fd 76781 [08:01:50]save to /storage/0372/doc_00076781 [08:01:50]save last doc name /storage/0372/doc_00076781 to /storage/kkm_last_doc_name [08:01:50]save OK [08:01:50]Clear old archive folders... [08:01:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:01:50]tlvbuf is 0186A5C0 [08:01:50]SAM_PROTO_ClearQueue [08:01:50]wFMCommunicate request_size=4 [08:01:50]MH_SAM_APDU [08:01:50]CAPDU: 80 09 00 00 [08:01:50]Write to MH i2c: E2 08 00 CD 19 80 09 00 00 00 00 00 00 58 [08:01:50]Write i2c OK [08:01:50]MH_I2C_Read... [08:01:50]Read from MH i2c: E2 [08:01:50]MH_I2C_Read... [08:01:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:01:50]Read from MH i2c: E2 03 00 [08:01:50]MH_I2C_Read... [08:01:50]Read from MH i2c: E2 03 00 CD 19 00 90 00 5A [08:01:50]RAPDU: 90 00 [08:01:50]wFMCommunicate OK [08:01:50]SAM_PROTO_ClearQueue done [08:01:50]KKMCreateOFDPacket [08:01:50]OFDProtocolAddRootSTLVToBuf [08:01:50]FM_MakeSignedData [08:01:50]FM_MakeSignedData [08:01:50]SAM_PROTO_SignData [08:01:50]wFMCommunicate request_size=4 [08:01:50]MH_SAM_APDU [08:01:50]CAPDU: 80 0D 01 02 [08:01:50]Write to MH i2c: E2 08 00 CE 19 80 0D 01 02 00 00 00 00 60 [08:01:50]Write i2c OK [08:01:50]MH_I2C_Read... [08:01:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:01:50]Read from MH i2c: E2 [08:01:50]MH_I2C_Read... [08:01:50]Read from MH i2c: E2 03 00 [08:01:50]MH_I2C_Read... [08:01:50]Read from MH i2c: E2 03 00 CE 19 00 90 00 5B [08:01:50]RAPDU: 90 00 [08:01:50]wFMCommunicate OK [08:01:50]wFMCommunicate request_size=255 [08:01:50]MH_SAM_APDU [08:01: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 98 3A 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 58 79 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 79 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 28 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 79 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 F0 C7 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 ED 2B 01 00 35 04 06 00 03 [08:01:50]Write to MH i2c: E2 02 01 CF 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 98 3A 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 58 79 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 79 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 28 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 79 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 F0 C7 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 ED 2B 01 00 35 04 06 00 03 00 00 7E [08:01:50]Write i2c OK [08:01:50]MH_I2C_Read... [08:01:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:50]Read from MH i2c: E2 [08:01:50]MH_I2C_Read... [08:01:50]Read from MH i2c: E2 03 00 [08:01:50]MH_I2C_Read... [08:01:50]Read from MH i2c: E2 03 00 CF 19 00 90 00 5C [08:01:50]RAPDU: 90 00 [08:01:50]wFMCommunicate OK [08:01:50]wFMCommunicate request_size=10 [08:01:50]MH_SAM_APDU [08:01:50]CAPDU: 80 0D 02 02 05 38 08 C8 2E 11 [08:01:50]Write to MH i2c: E2 0D 00 D0 19 80 0D 02 02 05 00 38 08 C8 2E 11 00 00 B4 [08:01:50]Write i2c OK [08:01:50]MH_I2C_Read... [08:01:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:50]Read from MH i2c: E2 [08:01:50]MH_I2C_Read... [08:01:50]Read from MH i2c: E2 03 00 [08:01:50]MH_I2C_Read... [08:01:50]Read from MH i2c: E2 03 00 D0 19 00 90 00 5D [08:01:50]RAPDU: 90 00 [08:01:50]wFMCommunicate OK [08:01:50]wFMCommunicate request_size=4 [08:01:50]MH_SAM_APDU [08:01:50]CAPDU: 80 0D 03 02 [08:01:50]Write to MH i2c: E2 08 00 D1 19 80 0D 03 02 00 00 00 00 65 [08:01:50]Write i2c OK [08:01:50]MH_I2C_Read... [08:01:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:01:50]Read from MH i2c: E2 [08:01:50]MH_I2C_Read... [08:01:50]Read from MH i2c: E2 0B 00 [08:01:50]MH_I2C_Read... [08:01:50]Read from MH i2c: E2 0B 00 D1 19 00 D7 1C FD 0B 7A 07 90 5C 90 00 CE [08:01:50]RAPDU: D7 1C FD 0B 7A 07 90 5C 90 00 [08:01:50]wFMCommunicate OK [08:01:50]SAM_PROTO_SignData done [08:01:50]FM_MakeSignedData done [08:01:50]CreateOFDProtocolMessage [08:01:50]wFMCommunicate request_size=4 [08:01:50]MH_SAM_APDU [08:01:50]CAPDU: 80 11 00 00 [08:01:50]Write to MH i2c: E2 08 00 D2 19 80 11 00 00 00 00 00 00 65 [08:01:50]Write i2c OK [08:01:50]MH_I2C_Read... [08:01:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:50]Read from MH i2c: E2 [08:01:50]MH_I2C_Read... [08:01:50]Read from MH i2c: E2 17 00 [08:01:50]MH_I2C_Read... [08:01:50]Read from MH i2c: E2 17 00 D2 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 B8 [08:01:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:01:50]wFMCommunicate OK [08:01:50]CreateOFDProtocolMessage done [08:01:50]OFDSenderStorePacket 76781 [08:01:50]StoreOFDPacket docnum=76781 [08:01:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 8F 5B 07 01 88 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 58 79 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 79 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 28 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 79 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 F0 C7 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 ED 2B 01 00 35 04 06 00 03 38 08 C8 2E 11 D7 1C FD 0B 7A 07 90 5C [08:01:50]CheckFolder [08:01:50]dirname=/storage/ofd_packets [08:01:50]CheckFolder done [08:01:50]ProducePacketName [08:01:50]name=ofd_packets/00076781 [08:01:50]NVStorageSaveData ofd_packets/00076781 [08:01:50]File name is /storage/ofd_packets/00076781 [08:01:50]Write 301 bytes [08:01:50]NVStorageSaveData done [08:01:50]OFDSenderStorePacket done [08:01:50]KKMCreateOFDPacket done [08:01:50]NVStorageSaveData kkm_last_timestamp [08:01:50]File name is /storage/kkm_last_timestamp [08:01:50]Write 4 bytes [08:01:50]NVStorageSaveData done [08:01:50]ExternCall_PrintAddStr [08:01:50]wPrintStart [08:01:50]Write to MH i2c: 01 00 00 D3 19 EC [08:01:50]Write i2c OK [08:01:50]MH_I2C_Read... [08:01:50]Read from MH i2c: 01 [08:01:50]MH_I2C_Read... [08:01:50]Read from MH i2c: 01 07 00 [08:01:50]MH_I2C_Read... [08:01:50]Read from MH i2c: 01 07 00 D3 19 00 00 00 00 00 FF 0F 01 [08:01:50]RasterBufferAndPrint [08:01:50]line Счет N : (1)191310 [08:01:50]line ИНН: 02508201610067 [08:01:50]line Контрольно-Кассовый Чек [08:01:50]line ПРОДАЖА [08:01:50]line ТРК (МРК, ГНК) : 12 [08:01:50]line Товар: 2710124130 [08:01:50]line Аи-92-К-5 [08:01:50]line 15.000 * 64.40 [08:01:50]line = 966.00 [08:01:50]line НДС 12% НСП 1% [08:01:50]line > о реализуемом товаре [08:01:50]line ИТОГО: 966.00 [08:01:50]line НСП 1% : 8.55 [08:01:50]line НДС 12% : 102.58 [08:01:50]line Наличными: 0.00 [08:01:50]line Безнал.: 966.00 [08:01:50]line Место: АЗС № 106 "Партнер Нефть" [08:01:50]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [08:01:50]line СНО: Общий режим [08:01:50]line Чек 37 21.04.2024 08:01 [08:01:50]line Смена: 372 ФФД: 1.0 [08:01:50]line ЗНМ: 0300000141 [08:01:50]line РНМ: 0000000000091573 [08:01:50]line Версия ККМ: 001 [08:01:50]line Платежная система: Бакай Банк [08:01:50]line ФМ: 0000000000874652 [08:01:50]line ФД: 76781 [08:01:50]line ФПД: 3539200388625 [08:01:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T080152&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76781&fm=3539200388625&tin=02508201610067®Number=0000000000091573&sum=96600 [08:01:50]written 0, free lines is 4095 [08:01:50]OFD Sender: Processing packet 76781 [packets to send 129, broken 128] [08:01:50]ProducePacketName [08:01:50]name=ofd_packets/00076781 [08:01:50]OFD Sender: To server: pG, [08:01:50]CommunicateWithHost lk.salyk.kg:30040 [08:01:50]ConnectInit lk.salyk.kg [08:01:50]Connected sock=10 [08:01:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 8F 5B 07 01 88 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 58 79 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 79 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 28 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 79 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 F0 C7 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 ED 2B 01 00 35 04 06 00 03 38 08 C8 2E 11 D7 1C FD 0B 7A 07 90 5C [08:01:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 FB 26 47 00 97 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 ED 2B 01 00 F4 03 04 00 75 6F 24 66 B6 04 01 00 00 4E 65 82 77 C8 06 83 53 [08:01:50]CommunicateWithHost err = 0 [08:01:50]CheckOFDResponse [08:01:50]1017 (14) - 77093643461234 [08:01:50]1041 (16) - 0000000000874652 [08:01:50]1040 (4) - 76781 [08:01:50]1012 (4) - 21.04.2024 01:44 [08:01:50]1206 (1) - 0 [08:01:50]OFD Sender: Remove packet 76781 [08:01:50]ProducePacketName [08:01:50]name=ofd_packets/00076781 [08:01:50]NVStorageDeleteData [08:01:51]Write to MH i2c: 01 00 00 FC 19 15 [08:01:51]Write i2c OK [08:01:51]MH_I2C_Read... [08:01:51]Read from MH i2c: 01 [08:01:51]MH_I2C_Read... [08:01:51]Read from MH i2c: 01 07 00 [08:01:51]MH_I2C_Read... [08:01:51]Read from MH i2c: 01 07 00 FC 19 00 00 00 00 00 08 0D 31 [08:01:51]RasterBufferAndPrint [08:01:51]line [08:01:51]line [08:01:51]line [08:01:51]line [08:01:51]line [08:01:51]written 0, free lines is 3342 [08:01:51]MH_Cut [08:01:51]Write to MH i2c: D1 01 00 03 1A 01 EF [08:01:51]Write i2c OK [08:01:51]MH_I2C_Read... [08:01:51]Read from MH i2c: D1 [08:01:51]MH_I2C_Read... [08:01:51]Read from MH i2c: D1 01 00 [08:01:51]MH_I2C_Read... [08:01:51]Read from MH i2c: D1 01 00 03 1A 00 EE [08:01:51]Write to MH i2c: 01 00 00 04 1A 1E [08:01:51]Write i2c OK [08:01:51]MH_I2C_Read... [08:01:51]OFD Sender: No OFD packet to send [08:01:51]*** Cut start [08:01:51]*** Partial cut [08:01:51]*** CUTSNS_PIN = 1 [08:01:51]*** CUTSNS_PIN = 0 [08:01:52]*** Brake cut motor [08:01:52]Read from MH i2c: 01 [08:01:52]MH_I2C_Read... [08:01:52]*** Stop cut motor [08:01:52]*** Cut end [08:01:52]Read from MH i2c: 01 07 00 [08:01:52]MH_I2C_Read... [08:01:52]Read from MH i2c: 01 07 00 04 1A 00 00 00 00 00 FF 0F 33 [08:01:52]process_action close_receipt done [08:01:52]requested_data is exist [08:01:52]produce_requested_data [08:01:52]requested_item fm.sn is exist - process it [08:01:52]wFMCommunicate request_size=4 [08:01:52]MH_SAM_APDU [08:01:52]CAPDU: 80 11 00 00 [08:01:52]Write to MH i2c: E2 08 00 05 1A 80 11 00 00 00 00 00 00 99 [08:01:52]Write i2c OK [08:01:52]MH_I2C_Read... [08:01:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:52]Read from MH i2c: E2 [08:01:52]MH_I2C_Read... [08:01:52]Read from MH i2c: E2 17 00 [08:01:52]MH_I2C_Read... [08:01:52]Read from MH i2c: E2 17 00 05 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 EC [08:01:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:01:52]wFMCommunicate OK [08:01:52]requested_item fd.num is exist - process it [08:01:52]SAM_PROTO_GetFieldsCounters [08:01:52]wFMCommunicate request_size=4 [08:01:52]MH_SAM_APDU [08:01:52]CAPDU: 80 13 00 00 [08:01:52]Write to MH i2c: E2 08 00 06 1A 80 13 00 00 00 00 00 00 9C [08:01:52]Write i2c OK [08:01:52]MH_I2C_Read... [08:01:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:01:52]Read from MH i2c: E2 [08:01:52]MH_I2C_Read... [08:01:52]Read from MH i2c: E2 62 00 [08:01:52]MH_I2C_Read... [08:01:52]Read from MH i2c: E2 62 00 06 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 ED 2B 01 00 0E 04 04 00 74 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 BA [08:01: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 ED 2B 01 00 0E 04 04 00 74 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 [08:01:52]wFMCommunicate OK [08:01:52]SAM_PROTO_GetFieldsCounters done [08:01:52]requested_item shift.num is exist - process it [08:01:52]requested_item shift.opened is exist - process it [08:01:52]req_shift_opened [08:01:52]FM_GetShiftState [08:01:52]SAM_PROTO_GetShiftState [08:01:52]wFMCommunicate request_size=4 [08:01:52]MH_SAM_APDU [08:01:52]CAPDU: 80 13 01 00 [08:01:52]Write to MH i2c: E2 08 00 07 1A 80 13 01 00 00 00 00 00 9E [08:01:52]Write i2c OK [08:01:52]MH_I2C_Read... [08:01:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:52]Read from MH i2c: E2 [08:01:52]MH_I2C_Read... [08:01:52]Read from MH i2c: E2 0E 00 [08:01:52]MH_I2C_Read... [08:01:52]Read from MH i2c: E2 0E 00 07 1A 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 E5 [08:01:52]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [08:01:52]wFMCommunicate OK [08:01:52]SAM_PROTO_GetShiftState done [08:01:52]FM_GetShiftState done [08:01:52]req_shift_opened done [08:01:52]requested_item shift.open_date is exist - process it [08:01:52]req_shift_open_date [08:01:52]req_shift_open_date done [08:01:52]produce_requested_data done [08:01:52]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76781,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [08:01:52]process_action_free close_receipt [08:01:52]json_value_free [08:01:52]json_value_free done [08:01:52]process_json_proto returns [08:01:52]Send response to host [08:01:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76781,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [08:01:52]free response buf [08:01:52]execute_script done [08:01:52]execute_script returns [08:01:52]free content buf [08:01:52]Sock 9.Close socket [08:01:52]Sock 9.Thread stoped [08:01:56]OFD Sender: No OFD packet to send [08:02:01]OFD Sender: No OFD packet to send [08:02:06]OFD Sender: No OFD packet to send [08:02:11]OFD Sender: No OFD packet to send [08:02:16]OFD Sender: No OFD packet to send [08:02:21]OFD Sender: No OFD packet to send [08:02:26]OFD Sender: No OFD packet to send [08:02:31]OFD Sender: No OFD packet to send [08:02:36]OFD Sender: No OFD packet to send [08:02:41]OFD Sender: No OFD packet to send [08:02:46]OFD Sender: No OFD packet to send [08:02:51]OFD Sender: No OFD packet to send [08:02:56]OFD Sender: No OFD packet to send [08:03:01]OFD Sender: No OFD packet to send [08:03:06]OFD Sender: No OFD packet to send [08:03:11]OFD Sender: No OFD packet to send [08:03:16]OFD Sender: No OFD packet to send [08:03:21]OFD Sender: No OFD packet to send [08:03:26]OFD Sender: No OFD packet to send [08:03:31]OFD Sender: No OFD packet to send [08:03:36]OFD Sender: No OFD packet to send [08:03:41]OFD Sender: No OFD packet to send [08:03:46]OFD Sender: No OFD packet to send [08:03:51]OFD Sender: No OFD packet to send [08:03:56]OFD Sender: No OFD packet to send [08:04:01]OFD Sender: No OFD packet to send [08:04:06]OFD Sender: No OFD packet to send [08:04:11]OFD Sender: No OFD packet to send [08:04:16]OFD Sender: No OFD packet to send [08:04:21]OFD Sender: No OFD packet to send [08:04:26]OFD Sender: No OFD packet to send [08:04:31]OFD Sender: No OFD packet to send [08:04:36]OFD Sender: No OFD packet to send [08:04:41]OFD Sender: No OFD packet to send [08:04:46]OFD Sender: No OFD packet to send [08:04:51]OFD Sender: No OFD packet to send [08:04:56]OFD Sender: No OFD packet to send [08:05:01]OFD Sender: No OFD packet to send [08:05:06]OFD Sender: No OFD packet to send [08:05:11]OFD Sender: No OFD packet to send [08:05:16]OFD Sender: No OFD packet to send [08:05:21]OFD Sender: No OFD packet to send [08:05:26]OFD Sender: No OFD packet to send [08:05:31]OFD Sender: No OFD packet to send [08:05:36]OFD Sender: No OFD packet to send [08:05:41]OFD Sender: No OFD packet to send [08:05:41]accept exits with 7 [08:05:41]New connection [08:05:41]New thread 3067481444 created [08:05:41]Thread 3067338084 joined [08:05:41]Waiting for new connection... [08:05:41] Sock 7.Parse request [08:05:41]Sock 7.Check first char [08:05:41]Sock 7.First char is OK [08:05:41]request: POST /json_proto HTTP/1.0 [08:05:41]Method: POST [08:05:41]URL: /json_proto [08:05:41]Method is POST - this is cgi request [08:05:41]url: /json_proto [08:05:41]query_string will be loaded in cgi processing [08:05:41]execute_cgi json_proto POST (null) [08:05:41]execute_cgi path=json_proto method=POST [08:05:41]POST find Content-Length [08:05:41]Host: 172.17.62.5:8080 [08:05:41]Content-Length: 215 [08:05:41]Content-Type: application/json [08:05:41] [08:05:41]POST finish read [08:05:41]Found Content-Length = 215 [08:05:41]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" ] } } [08:05:41]execute_script... [08:05:41]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" ] } } [08:05:41]POST & json_proto [08:05:41]process_json_proto [08:05:41]json parsed OK: [08:05:41]protocol is kg_v1.0 [08:05:41]action value=get_value [08:05:41]process_action get_value [08:05:41]cmd_get_value [08:05:41]process_action get_value done [08:05:41]requested_data is exist [08:05:41]produce_requested_data [08:05:41]requested_item kkm.sn is exist - process it [08:05:41]requested_item kkm.ver is exist - process it [08:05:41]requested_item fm.sn is exist - process it [08:05:41]wFMCommunicate request_size=4 [08:05:41]MH_SAM_APDU [08:05:41]CAPDU: 80 11 00 00 [08:05:41]Write to MH i2c: E2 08 00 08 1A 80 11 00 00 00 00 00 00 9C [08:05:41]Write i2c OK [08:05:41]MH_I2C_Read... [08:05:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:41]Read from MH i2c: E2 [08:05:41]MH_I2C_Read... [08:05:41]Read from MH i2c: E2 17 00 [08:05:41]MH_I2C_Read... [08:05:41]Read from MH i2c: E2 17 00 08 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 EF [08:05:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:05:41]wFMCommunicate OK [08:05:41]requested_item fd.num is exist - process it [08:05:41]SAM_PROTO_GetFieldsCounters [08:05:41]wFMCommunicate request_size=4 [08:05:41]MH_SAM_APDU [08:05:41]CAPDU: 80 13 00 00 [08:05:41]Write to MH i2c: E2 08 00 09 1A 80 13 00 00 00 00 00 00 9F [08:05:41]Write i2c OK [08:05:41]MH_I2C_Read... [08:05:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:05:41]Read from MH i2c: E2 [08:05:41]MH_I2C_Read... [08:05:41]Read from MH i2c: E2 62 00 [08:05:41]MH_I2C_Read... [08:05:41]Read from MH i2c: E2 62 00 09 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 ED 2B 01 00 0E 04 04 00 74 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 BD [08:05: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 ED 2B 01 00 0E 04 04 00 74 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 [08:05:41]wFMCommunicate OK [08:05:41]SAM_PROTO_GetFieldsCounters done [08:05:41]requested_item shift.num is exist - process it [08:05:41]requested_item shift.opened is exist - process it [08:05:41]req_shift_opened [08:05:41]FM_GetShiftState [08:05:41]SAM_PROTO_GetShiftState [08:05:41]wFMCommunicate request_size=4 [08:05:41]MH_SAM_APDU [08:05:41]CAPDU: 80 13 01 00 [08:05:41]Write to MH i2c: E2 08 00 0A 1A 80 13 01 00 00 00 00 00 A1 [08:05:41]Write i2c OK [08:05:41]MH_I2C_Read... [08:05:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:42]Read from MH i2c: E2 [08:05:42]MH_I2C_Read... [08:05:42]Read from MH i2c: E2 0E 00 [08:05:42]MH_I2C_Read... [08:05:42]Read from MH i2c: E2 0E 00 0A 1A 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 E8 [08:05:42]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [08:05:42]wFMCommunicate OK [08:05:42]SAM_PROTO_GetShiftState done [08:05:42]FM_GetShiftState done [08:05:42]req_shift_opened done [08:05:42]requested_item shift.open_date is exist - process it [08:05:42]req_shift_open_date [08:05:42]req_shift_open_date done [08:05:42]produce_requested_data done [08:05:42]produce_requested_data return {"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76781,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [08:05:42]process_action_free get_value [08:05:42]json_value_free [08:05:42]json_value_free done [08:05:42]process_json_proto returns [08:05:42]Send response to host [08:05:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76781,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [08:05:42]free response buf [08:05:42]execute_script done [08:05:42]execute_script returns [08:05:42]free content buf [08:05:42]Sock 7.Close socket [08:05:42]Sock 7.Thread stoped [08:05:42]accept exits with 9 [08:05:42]New connection [08:05:42]New thread 3067338084 created [08:05:42]Thread 3067481444 joined [08:05:42]Waiting for new connection... [08:05:42] Sock 9.Parse request [08:05:42]Sock 9.Check first char [08:05:42]Sock 9.First char is OK [08:05:42]request: POST /json_proto HTTP/1.0 [08:05:42]Method: POST [08:05:42]URL: /json_proto [08:05:42]Method is POST - this is cgi request [08:05:42]url: /json_proto [08:05:42]query_string will be loaded in cgi processing [08:05:42]execute_cgi json_proto POST (null) [08:05:42]execute_cgi path=json_proto method=POST [08:05:42]POST find Content-Length [08:05:42]Host: 172.17.62.5:8080 [08:05:42]Content-Length: 331 [08:05:42]Content-Type: application/json [08:05:42] [08:05:42]POST finish read [08:05:42]Found Content-Length = 331 [08:05:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:05:42]execute_script... [08:05:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:05:42]POST & json_proto [08:05:42]process_json_proto [08:05:42]json parsed OK: [08:05:42]protocol is kg_v1.0 [08:05:42]action value=get_value [08:05:42]process_action get_value [08:05:42]cmd_get_value [08:05:42]process_action get_value done [08:05:42]requested_data is exist [08:05:42]produce_requested_data [08:05:42]requested_item fm.sale.total is exist - process it [08:05:42]SAM_PROTO_GetFMData [08:05:42]wFMCommunicate request_size=4 [08:05:42]MH_SAM_APDU [08:05:42]CAPDU: 80 13 03 00 [08:05:42]Write to MH i2c: E2 08 00 0B 1A 80 13 03 00 00 00 00 00 A4 [08:05:42]Write i2c OK [08:05:42]MH_I2C_Read... [08:05:42]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:05:42]Read from MH i2c: E2 [08:05:42]MH_I2C_Read... [08:05:42]Read from MH i2c: E2 FD 00 [08:05:42]MH_I2C_Read... [08:05:42]Read from MH i2c: E2 FD 00 0B 1A 00 C8 04 85 04 C4 04 6E 04 04 00 05 29 01 00 69 04 A3 00 6F 04 04 00 15 27 01 00 B1 04 05 00 74 D8 F6 B9 02 70 04 05 00 D0 4D 32 76 02 72 04 04 00 A4 8A C4 43 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 BC 6A 21 4A 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 B8 62 2D 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F0 01 00 00 B1 04 05 00 F4 E2 DA 15 01 70 04 05 00 F4 E2 DA 15 01 72 04 00 00 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 1F BE 81 1D EF 90 00 03 [08:05:42]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 05 29 01 00 69 04 A3 00 6F 04 04 00 15 27 01 00 B1 04 05 00 74 D8 F6 B9 02 70 04 05 00 D0 4D 32 76 02 72 04 04 00 A4 8A C4 43 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 BC 6A 21 4A 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 B8 62 2D 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F0 01 00 00 B1 04 05 00 F4 E2 DA 15 01 70 04 05 00 F4 E2 DA 15 01 72 04 00 00 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 1F BE 81 1D EF 90 00 [08:05:42]wFMCommunicate OK [08:05:42]wFMCommunicate request_size=4 [08:05:42]MH_SAM_APDU [08:05:42]CAPDU: 80 17 00 00 [08:05:42]Write to MH i2c: E2 08 00 0C 1A 80 17 00 00 00 00 00 00 A6 [08:05:42]Write i2c OK [08:05:42]MH_I2C_Read... [08:05:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:05:43]Read from MH i2c: E2 [08:05:43]MH_I2C_Read... [08:05:43]Read from MH i2c: E2 FD 00 [08:05:43]MH_I2C_Read... [08:05:43]Read from MH i2c: E2 FD 00 0C 1A 00 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 66 7A 75 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 90 00 0C [08:05:43]RAPDU: 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 66 7A 75 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 90 00 [08:05:43]wFMCommunicate OK [08:05:43]wFMCommunicate request_size=4 [08:05:43]MH_SAM_APDU [08:05:43]CAPDU: 80 17 00 00 [08:05:43]Write to MH i2c: E2 08 00 0D 1A 80 17 00 00 00 00 00 00 A7 [08:05:43]Write i2c OK [08:05:43]MH_I2C_Read... [08:05:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:05:43]Read from MH i2c: E2 [08:05:43]MH_I2C_Read... [08:05:43]Read from MH i2c: E2 FD 00 [08:05:43]MH_I2C_Read... [08:05:43]Read from MH i2c: E2 FD 00 0D 1A 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 7F [08:05:43]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [08:05:43]wFMCommunicate OK [08:05:43]wFMCommunicate request_size=4 [08:05:43]MH_SAM_APDU [08:05:43]CAPDU: 80 17 00 00 [08:05:43]Write to MH i2c: E2 08 00 0E 1A 80 17 00 00 00 00 00 00 A8 [08:05:43]Write i2c OK [08:05:43]MH_I2C_Read... [08:05:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:05:43]Read from MH i2c: E2 [08:05:43]MH_I2C_Read... [08:05:43]Read from MH i2c: E2 FD 00 [08:05:43]MH_I2C_Read... [08:05:43]Read from MH i2c: E2 FD 00 0E 1A 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 20 [08:05:43]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [08:05:43]wFMCommunicate OK [08:05:43]wFMCommunicate request_size=4 [08:05:43]MH_SAM_APDU [08:05:43]CAPDU: 80 17 00 00 [08:05:43]Write to MH i2c: E2 08 00 0F 1A 80 17 00 00 00 00 00 00 A9 [08:05:43]Write i2c OK [08:05:43]MH_I2C_Read... [08:05:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [08:05:43]Read from MH i2c: E2 [08:05:43]MH_I2C_Read... [08:05:43]Read from MH i2c: E2 E5 00 [08:05:43]MH_I2C_Read... [08:05:43]Read from MH i2c: E2 E5 00 0F 1A 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 8D [08:05:43]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:05:43]wFMCommunicate OK [08:05:43]SAM_PROTO_GetFMData done [08:05:43]requested_item fm.sale_refund.total is exist - process it [08:05:43]requested_item fm.buy.total is exist - process it [08:05:43]requested_item shift.sale.total is exist - process it [08:05:43]SAM_PROTO_GetShiftData [08:05:43]wFMCommunicate request_size=4 [08:05:43]MH_SAM_APDU [08:05:43]CAPDU: 80 13 02 00 [08:05:43]Write to MH i2c: E2 08 00 10 1A 80 13 02 00 00 00 00 00 A8 [08:05:43]Write i2c OK [08:05:43]MH_I2C_Read... [08:05:44]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [08:05:44]Read from MH i2c: E2 [08:05:44]MH_I2C_Read... [08:05:44]Read from MH i2c: E2 FD 00 [08:05:44]MH_I2C_Read... [08:05:44]Read from MH i2c: E2 FD 00 10 1A 00 AE 04 AA 04 AA 04 6E 04 04 00 25 00 00 00 69 04 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 25 BA 3A 70 04 03 00 44 DF 36 72 04 03 00 E1 DA 03 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EE 3C 06 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 15 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 AD [08:05:44]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 25 00 00 00 69 04 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 25 BA 3A 70 04 03 00 44 DF 36 72 04 03 00 E1 DA 03 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EE 3C 06 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 15 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [08:05:44]wFMCommunicate OK [08:05:44]wFMCommunicate request_size=4 [08:05:44]MH_SAM_APDU [08:05:44]CAPDU: 80 17 00 00 [08:05:44]Write to MH i2c: E2 08 00 11 1A 80 17 00 00 00 00 00 00 AB [08:05:44]Write i2c OK [08:05:44]MH_I2C_Read... [08:05:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:05:44]Read from MH i2c: E2 [08:05:44]MH_I2C_Read... [08:05:44]Read from MH i2c: E2 FD 00 [08:05:44]MH_I2C_Read... [08:05:44]Read from MH i2c: E2 FD 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 CD [08:05: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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [08:05:44]wFMCommunicate OK [08:05:44]wFMCommunicate request_size=4 [08:05:44]MH_SAM_APDU [08:05:44]CAPDU: 80 17 00 00 [08:05:44]Write to MH i2c: E2 08 00 12 1A 80 17 00 00 00 00 00 00 AC [08:05:44]Write i2c OK [08:05:44]MH_I2C_Read... [08:05:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:05:44]Read from MH i2c: E2 [08:05:44]MH_I2C_Read... [08:05:44]Read from MH i2c: E2 FD 00 [08:05:44]MH_I2C_Read... [08:05:44]Read from MH i2c: E2 FD 00 12 1A 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 63 [08:05:44]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [08:05:44]wFMCommunicate OK [08:05:44]wFMCommunicate request_size=4 [08:05:44]MH_SAM_APDU [08:05:44]CAPDU: 80 17 00 00 [08:05:44]Write to MH i2c: E2 08 00 13 1A 80 17 00 00 00 00 00 00 AD [08:05:44]Write i2c OK [08:05:44]MH_I2C_Read... [08:05:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:05:45]Read from MH i2c: E2 [08:05:45]MH_I2C_Read... [08:05:45]Read from MH i2c: E2 FD 00 [08:05:45]MH_I2C_Read... [08:05:45]Read from MH i2c: E2 FD 00 13 1A 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 1F [08:05:45]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [08:05:45]wFMCommunicate OK [08:05:45]wFMCommunicate request_size=4 [08:05:45]MH_SAM_APDU [08:05:45]CAPDU: 80 17 00 00 [08:05:45]Write to MH i2c: E2 08 00 14 1A 80 17 00 00 00 00 00 00 AE [08:05:45]Write i2c OK [08:05:45]MH_I2C_Read... [08:05:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [08:05:45]Read from MH i2c: E2 [08:05:45]MH_I2C_Read... [08:05:45]Read from MH i2c: E2 CB 00 [08:05:45]MH_I2C_Read... [08:05:45]Read from MH i2c: E2 CB 00 14 1A 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 97 [08:05:45]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:05:45]wFMCommunicate OK [08:05:45]SAM_PROTO_GetShiftData done [08:05:45]requested_item shift.sale.total_cash is exist - process it [08:05:45]requested_item shift.sale_refund.total is exist - process it [08:05:45]requested_item shift.sale_refund.total_cash is exist - process it [08:05:45]requested_item shift.buy.total is exist - process it [08:05:45]requested_item shift.buy.total_cash is exist - process it [08:05:45]produce_requested_data done [08:05:45]produce_requested_data return {"fm.sale.total":117098968.20,"fm.sale_refund.total":46616337.80,"fm.buy.total":0.00,"shift.sale.total":38487.41,"shift.sale.total_cash":35961.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} [08:05:45]process_action_free get_value [08:05:45]json_value_free [08:05:45]json_value_free done [08:05:45]process_json_proto returns [08:05:45]Send response to host [08:05:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":117098968.20,"fm.sale_refund.total":46616337.80,"fm.buy.total":0.00,"shift.sale.total":38487.41,"shift.sale.total_cash":35961.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}}} [08:05:45]free response buf [08:05:45]execute_script done [08:05:45]execute_script returns [08:05:45]free content buf [08:05:45]Sock 9.Close socket [08:05:45]Sock 9.Thread stoped [08:05:46]OFD Sender: No OFD packet to send [08:05:51]OFD Sender: No OFD packet to send [08:05:56]OFD Sender: No OFD packet to send [08:06:01]OFD Sender: No OFD packet to send [08:06:06]OFD Sender: No OFD packet to send [08:06:11]OFD Sender: No OFD packet to send [08:06:16]OFD Sender: No OFD packet to send [08:06:21]OFD Sender: No OFD packet to send [08:06:26]OFD Sender: No OFD packet to send [08:06:31]OFD Sender: No OFD packet to send [08:06:36]OFD Sender: No OFD packet to send [08:06:41]OFD Sender: No OFD packet to send [08:06:46]OFD Sender: No OFD packet to send [08:06:51]OFD Sender: No OFD packet to send [08:06:56]OFD Sender: No OFD packet to send [08:07:01]OFD Sender: No OFD packet to send [08:07:06]OFD Sender: No OFD packet to send [08:07:11]OFD Sender: No OFD packet to send [08:07:16]OFD Sender: No OFD packet to send [08:07:21]OFD Sender: No OFD packet to send [08:07:26]OFD Sender: No OFD packet to send [08:07:31]OFD Sender: No OFD packet to send [08:07:36]OFD Sender: No OFD packet to send [08:07:41]OFD Sender: No OFD packet to send [08:07:46]OFD Sender: No OFD packet to send [08:07:51]OFD Sender: No OFD packet to send [08:07:56]OFD Sender: No OFD packet to send [08:08:01]OFD Sender: No OFD packet to send [08:08:06]OFD Sender: No OFD packet to send [08:08:11]OFD Sender: No OFD packet to send [08:08:16]OFD Sender: No OFD packet to send [08:08:21]OFD Sender: No OFD packet to send [08:08:26]OFD Sender: No OFD packet to send [08:08:31]OFD Sender: No OFD packet to send [08:08:36]OFD Sender: No OFD packet to send [08:08:41]OFD Sender: No OFD packet to send [08:08:47]OFD Sender: No OFD packet to send [08:08:52]OFD Sender: No OFD packet to send [08:08:57]OFD Sender: No OFD packet to send [08:09:02]OFD Sender: No OFD packet to send [08:09:07]OFD Sender: No OFD packet to send [08:09:12]OFD Sender: No OFD packet to send [08:09:17]OFD Sender: No OFD packet to send [08:09:22]OFD Sender: No OFD packet to send [08:09:27]OFD Sender: No OFD packet to send [08:09:32]OFD Sender: No OFD packet to send [08:09:37]OFD Sender: No OFD packet to send [08:09:42]OFD Sender: No OFD packet to send [08:09:47]OFD Sender: No OFD packet to send [08:09:52]OFD Sender: No OFD packet to send [08:09:57]OFD Sender: No OFD packet to send [08:10:02]OFD Sender: No OFD packet to send [08:10:07]OFD Sender: No OFD packet to send [08:10:12]OFD Sender: No OFD packet to send [08:10:17]OFD Sender: No OFD packet to send [08:10:22]OFD Sender: No OFD packet to send [08:10:27]OFD Sender: No OFD packet to send [08:10:32]OFD Sender: No OFD packet to send [08:10:37]OFD Sender: No OFD packet to send [08:10:42]OFD Sender: No OFD packet to send [08:10:47]OFD Sender: No OFD packet to send [08:10:52]OFD Sender: No OFD packet to send [08:10:57]OFD Sender: No OFD packet to send [08:11:02]OFD Sender: No OFD packet to send [08:11:07]OFD Sender: No OFD packet to send [08:11:12]OFD Sender: No OFD packet to send [08:11:17]OFD Sender: No OFD packet to send [08:11:22]OFD Sender: No OFD packet to send [08:11:27]OFD Sender: No OFD packet to send [08:11:32]OFD Sender: No OFD packet to send [08:11:37]OFD Sender: No OFD packet to send [08:11:42]OFD Sender: No OFD packet to send [08:11:47]OFD Sender: No OFD packet to send [08:11:52]OFD Sender: No OFD packet to send [08:11:57]OFD Sender: No OFD packet to send [08:12:02]OFD Sender: No OFD packet to send [08:12:07]OFD Sender: No OFD packet to send [08:12:12]OFD Sender: No OFD packet to send [08:12:17]OFD Sender: No OFD packet to send [08:12:22]OFD Sender: No OFD packet to send [08:12:27]OFD Sender: No OFD packet to send [08:12:32]OFD Sender: No OFD packet to send [08:12:37]OFD Sender: No OFD packet to send [08:12:42]OFD Sender: No OFD packet to send [08:12:47]OFD Sender: No OFD packet to send [08:12:52]OFD Sender: No OFD packet to send [08:12:57]OFD Sender: No OFD packet to send [08:13:01]accept exits with 7 [08:13:01]New connection [08:13:01]New thread 3067481444 created [08:13:01]Thread 3067338084 joined [08:13:01]Waiting for new connection... [08:13:01] Sock 7.Parse request [08:13:01]Sock 7.Check first char [08:13:01]Sock 7.First char is OK [08:13:01]request: POST /json_proto HTTP/1.0 [08:13:01]Method: POST [08:13:01]URL: /json_proto [08:13:01]Method is POST - this is cgi request [08:13:01]url: /json_proto [08:13:01]query_string will be loaded in cgi processing [08:13:01]execute_cgi json_proto POST (null) [08:13:01]execute_cgi path=json_proto method=POST [08:13:01]POST find Content-Length [08:13:01]Host: 172.17.62.5:8080 [08:13:01]Content-Length: 1157 [08:13:01]Content-Type: application/json [08:13:01] [08:13:01]POST finish read [08:13:01]Found Content-Length = 1157 [08:13: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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041B\u044B\u043C\u0430\u0440\u0435\u0432\u0430 \u0412. \u000A\u0421\u0447\u0435\u0442 N : (1)191311\u000A21.04.2024 07:54\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 : 2710124500\u000A\u0410\u0438-95-\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\u041A \u0413\u041F\u041D\u0410 Online\u000A30119707\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:01]execute_script... [08:13: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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041B\u044B\u043C\u0430\u0440\u0435\u0432\u0430 \u0412. \u000A\u0421\u0447\u0435\u0442 N : (1)191311\u000A21.04.2024 07:54\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 : 2710124500\u000A\u0410\u0438-95-\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\u041A \u0413\u041F\u041D\u0410 Online\u000A30119707\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:01]POST & json_proto [08:13:01]process_json_proto [08:13:01]json parsed OK: [08:13:01]protocol is kg_v1.0 [08:13:01]action value=print_text [08:13:01]process_action print_text [08:13:01]cmd_print_text [08:13:01]ExternCall_PrintAddStr [08:13:01]wPrintStart [08:13:01]Write to MH i2c: 01 00 00 15 1A 2F [08:13:01]Write i2c OK [08:13:01]MH_I2C_Read... [08:13:01]Read from MH i2c: 01 [08:13:01]MH_I2C_Read... [08:13:01]Read from MH i2c: 01 07 00 [08:13:01]MH_I2C_Read... [08:13:01]Read from MH i2c: 01 07 00 15 1A 00 00 00 00 00 FF 0F 44 [08:13:01]RasterBufferAndPrint [08:13:01]line *****ТОВАРНЫЙ ЧЕК***** [08:13:01]line АЗС 106 [08:13:01]line Партнер нефть [08:13:01]line 02508201610067 [08:13:01]line Кассир : Лымарева В. [08:13:01]line Счет N : (1)191311 [08:13:01]line 21.04.2024 07:54 [08:13:01]line ПРОДАЖА [08:13:01]line ТРК (МРК, ГНК): 11 [08:13:01]line Вид ГСМ : 2710124500 [08:13:01]line Аи-95-К-5 [08:13:01]line 40.000 x 72.90 [08:13:01]line ИТОГ: 2916.00 [08:13:01]line Тип оплаты: Талоны: ТК ГПНА Online [08:13:01]line 30119707 [08:13:01]line ______________________ [08:13:01]line (подпись) [08:13:01]written 0, free lines is 4095 [08:13:01]Write to MH i2c: 01 00 00 29 1A 43 [08:13:01]Write i2c OK [08:13:01]MH_I2C_Read... [08:13:01]Read from MH i2c: 01 [08:13:01]MH_I2C_Read... [08:13:01]Read from MH i2c: 01 07 00 [08:13:01]MH_I2C_Read... [08:13:01]Read from MH i2c: 01 07 00 29 1A 00 00 00 00 00 0F 0E 67 [08:13:01]RasterBufferAndPrint [08:13:01]line [08:13:01]line [08:13:01]line [08:13:01]line [08:13:01]line [08:13:01]written 0, free lines is 3600 [08:13:01]MH_Cut [08:13:01]Write to MH i2c: D1 01 00 30 1A 01 1C [08:13:01]Write i2c OK [08:13:01]MH_I2C_Read... [08:13:01]Read from MH i2c: D1 [08:13:01]MH_I2C_Read... [08:13:01]Read from MH i2c: D1 01 00 [08:13:01]MH_I2C_Read... [08:13:01]Read from MH i2c: D1 01 00 30 1A 00 1B [08:13:01]Write to MH i2c: 01 00 00 31 1A 4B [08:13:01]Write i2c OK [08:13:01]MH_I2C_Read... [08:13:01]*** Cut start [08:13:01]*** Partial cut [08:13:01]*** CUTSNS_PIN = 1 [08:13:02]*** CUTSNS_PIN = 0 [08:13:02]*** Brake cut motor [08:13:02]OFD Sender: No OFD packet to send [08:13:02]Read from MH i2c: 01 [08:13:02]MH_I2C_Read... [08:13:02]*** Stop cut motor [08:13:02]*** Cut end [08:13:02]Read from MH i2c: 01 07 00 [08:13:02]MH_I2C_Read... [08:13:02]Read from MH i2c: 01 07 00 31 1A 00 00 00 00 00 FF 0F 60 [08:13:02]process_action print_text done [08:13:02]requested_data is exist [08:13:02]produce_requested_data [08:13:02]requested_item fm.sn is exist - process it [08:13:02]wFMCommunicate request_size=4 [08:13:02]MH_SAM_APDU [08:13:02]CAPDU: 80 11 00 00 [08:13:02]Write to MH i2c: E2 08 00 32 1A 80 11 00 00 00 00 00 00 C6 [08:13:02]Write i2c OK [08:13:02]MH_I2C_Read... [08:13:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:02]Read from MH i2c: E2 [08:13:02]MH_I2C_Read... [08:13:02]Read from MH i2c: E2 17 00 [08:13:02]MH_I2C_Read... [08:13:02]Read from MH i2c: E2 17 00 32 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 19 [08:13:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:13:02]wFMCommunicate OK [08:13:02]requested_item fd.num is exist - process it [08:13:02]SAM_PROTO_GetFieldsCounters [08:13:02]wFMCommunicate request_size=4 [08:13:02]MH_SAM_APDU [08:13:02]CAPDU: 80 13 00 00 [08:13:02]Write to MH i2c: E2 08 00 33 1A 80 13 00 00 00 00 00 00 C9 [08:13:02]Write i2c OK [08:13:02]MH_I2C_Read... [08:13:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:13:02]Read from MH i2c: E2 [08:13:02]MH_I2C_Read... [08:13:02]Read from MH i2c: E2 62 00 [08:13:02]MH_I2C_Read... [08:13:02]Read from MH i2c: E2 62 00 33 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 ED 2B 01 00 0E 04 04 00 74 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 E7 [08:13: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 ED 2B 01 00 0E 04 04 00 74 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 [08:13:02]wFMCommunicate OK [08:13:02]SAM_PROTO_GetFieldsCounters done [08:13:02]requested_item shift.num is exist - process it [08:13:02]requested_item shift.opened is exist - process it [08:13:02]req_shift_opened [08:13:02]FM_GetShiftState [08:13:02]SAM_PROTO_GetShiftState [08:13:02]wFMCommunicate request_size=4 [08:13:02]MH_SAM_APDU [08:13:02]CAPDU: 80 13 01 00 [08:13:02]Write to MH i2c: E2 08 00 34 1A 80 13 01 00 00 00 00 00 CB [08:13:02]Write i2c OK [08:13:02]MH_I2C_Read... [08:13:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:02]Read from MH i2c: E2 [08:13:02]MH_I2C_Read... [08:13:02]Read from MH i2c: E2 0E 00 [08:13:02]MH_I2C_Read... [08:13:02]Read from MH i2c: E2 0E 00 34 1A 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 12 [08:13:02]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [08:13:02]wFMCommunicate OK [08:13:02]SAM_PROTO_GetShiftState done [08:13:02]FM_GetShiftState done [08:13:02]req_shift_opened done [08:13:02]requested_item shift.open_date is exist - process it [08:13:02]req_shift_open_date [08:13:02]req_shift_open_date done [08:13:02]produce_requested_data done [08:13:02]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76781,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [08:13:02]process_action_free print_text [08:13:02]json_value_free [08:13:02]json_value_free done [08:13:02]process_json_proto returns [08:13:02]Send response to host [08:13:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76781,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [08:13:02]free response buf [08:13:02]execute_script done [08:13:02]execute_script returns [08:13:02]free content buf [08:13:02]Sock 7.Close socket [08:13:02]Sock 7.Thread stoped [08:13:07]OFD Sender: No OFD packet to send [08:13:12]OFD Sender: No OFD packet to send [08:13:17]OFD Sender: No OFD packet to send [08:13:22]OFD Sender: No OFD packet to send [08:13:27]OFD Sender: No OFD packet to send [08:13:32]OFD Sender: No OFD packet to send [08:13:37]OFD Sender: No OFD packet to send [08:13:42]OFD Sender: No OFD packet to send [08:13:47]OFD Sender: No OFD packet to send [08:13:52]OFD Sender: No OFD packet to send [08:13:57]OFD Sender: No OFD packet to send [08:14:02]OFD Sender: No OFD packet to send [08:14:07]OFD Sender: No OFD packet to send [08:14:12]OFD Sender: No OFD packet to send [08:14:17]OFD Sender: No OFD packet to send [08:14:22]OFD Sender: No OFD packet to send [08:14:27]OFD Sender: No OFD packet to send [08:14:32]OFD Sender: No OFD packet to send [08:14:37]OFD Sender: No OFD packet to send [08:14:42]OFD Sender: No OFD packet to send [08:14:47]OFD Sender: No OFD packet to send [08:14:52]OFD Sender: No OFD packet to send [08:14:57]OFD Sender: No OFD packet to send [08:15:02]OFD Sender: No OFD packet to send [08:15:07]OFD Sender: No OFD packet to send [08:15:12]OFD Sender: No OFD packet to send [08:15:17]OFD Sender: No OFD packet to send [08:15:22]OFD Sender: No OFD packet to send [08:15:27]OFD Sender: No OFD packet to send [08:15:32]OFD Sender: No OFD packet to send [08:15:37]OFD Sender: No OFD packet to send [08:15:42]OFD Sender: No OFD packet to send [08:15:47]OFD Sender: No OFD packet to send [08:15:52]OFD Sender: No OFD packet to send [08:15:57]OFD Sender: No OFD packet to send [08:16:02]OFD Sender: No OFD packet to send [08:16:07]OFD Sender: No OFD packet to send [08:16:12]OFD Sender: No OFD packet to send [08:16:17]OFD Sender: No OFD packet to send [08:16:22]OFD Sender: No OFD packet to send [08:16:27]OFD Sender: No OFD packet to send [08:16:32]OFD Sender: No OFD packet to send [08:16:37]OFD Sender: No OFD packet to send [08:16:42]OFD Sender: No OFD packet to send [08:16:47]OFD Sender: No OFD packet to send [08:16:52]OFD Sender: No OFD packet to send [08:16:57]OFD Sender: No OFD packet to send [08:17:02]OFD Sender: No OFD packet to send [08:17:07]OFD Sender: No OFD packet to send [08:17:12]OFD Sender: No OFD packet to send [08:17:17]OFD Sender: No OFD packet to send [08:17:22]OFD Sender: No OFD packet to send [08:17:27]OFD Sender: No OFD packet to send [08:17:32]OFD Sender: No OFD packet to send [08:17:37]OFD Sender: No OFD packet to send [08:17:42]OFD Sender: No OFD packet to send [08:17:47]OFD Sender: No OFD packet to send [08:17:52]OFD Sender: No OFD packet to send [08:17:57]OFD Sender: No OFD packet to send [08:18:02]OFD Sender: No OFD packet to send [08:18:07]OFD Sender: No OFD packet to send [08:18:12]OFD Sender: No OFD packet to send [08:18:17]OFD Sender: No OFD packet to send [08:18:22]OFD Sender: No OFD packet to send [08:18:27]OFD Sender: No OFD packet to send [08:18:32]OFD Sender: No OFD packet to send [08:18:37]OFD Sender: No OFD packet to send [08:18:42]OFD Sender: No OFD packet to send [08:18:47]OFD Sender: No OFD packet to send [08:18:52]OFD Sender: No OFD packet to send [08:18:57]OFD Sender: No OFD packet to send [08:19:02]OFD Sender: No OFD packet to send [08:19:07]OFD Sender: No OFD packet to send [08:19:12]OFD Sender: No OFD packet to send [08:19:17]OFD Sender: No OFD packet to send [08:19:18]accept exits with 9 [08:19:18]New connection [08:19:18]New thread 3067338084 created [08:19:18]Thread 3067481444 joined [08:19:18]Waiting for new connection... [08:19:18] Sock 9.Parse request [08:19:18]Sock 9.Check first char [08:19:18]Sock 9.First char is OK [08:19:18]request: POST /json_proto HTTP/1.0 [08:19:18]Method: POST [08:19:18]URL: /json_proto [08:19:18]Method is POST - this is cgi request [08:19:18]url: /json_proto [08:19:18]query_string will be loaded in cgi processing [08:19:18]execute_cgi json_proto POST (null) [08:19:18]execute_cgi path=json_proto method=POST [08:19:18]POST find Content-Length [08:19:18]Host: 172.17.62.5:8080 [08:19:18]Content-Length: 682 [08:19:18]Content-Type: application/json [08:19:18] [08:19:18]POST finish read [08:19:18]Found Content-Length = 682 [08:19:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:19:18]execute_script... [08:19: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)191313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:19:18]POST & json_proto [08:19:18]process_json_proto [08:19:18]json parsed OK: [08:19:18]protocol is kg_v1.0 [08:19:18]action value=close_receipt [08:19:18]process_action close_receipt [08:19:18]cmd_close_receipt [08:19:18]MH_GetDate [08:19:18]Write to MH i2c: F0 00 00 35 1A 3E [08:19:18]Write i2c OK [08:19:18]MH_I2C_Read... [08:19:18]Read from MH i2c: F0 [08:19:18]MH_I2C_Read... [08:19:18]Read from MH i2c: F0 09 00 [08:19:18]MH_I2C_Read... [08:19:18]Read from MH i2c: F0 09 00 35 1A 00 09 CC 24 66 F4 E9 65 64 4C [08:19:18]GetLastDocTimeStamp 1713686512 [08:19:18]current date 1713687561 [08:19:18]FM_GetShiftState [08:19:18]SAM_PROTO_GetShiftState [08:19:18]wFMCommunicate request_size=4 [08:19:18]MH_SAM_APDU [08:19:18]CAPDU: 80 13 01 00 [08:19:18]Write to MH i2c: E2 08 00 36 1A 80 13 01 00 00 00 00 00 CD [08:19:18]Write i2c OK [08:19:18]MH_I2C_Read... [08:19:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:18]Read from MH i2c: E2 [08:19:18]MH_I2C_Read... [08:19:18]Read from MH i2c: E2 0E 00 [08:19:18]MH_I2C_Read... [08:19:18]Read from MH i2c: E2 0E 00 36 1A 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 14 [08:19:18]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [08:19:18]wFMCommunicate OK [08:19:18]SAM_PROTO_GetShiftState done [08:19:18]FM_GetShiftState done [08:19:18]opened in 1713658965 [08:19:18]opened+sec_in_day 1713745365 [08:19:18]quantity*price = 100013 [08:19:18]sum+1 = 100014 [08:19:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 38 21.04.2024 08:19 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76782 ФПД: 25135219373477 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T081921&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76782&fm=25135219373477&tin=02508201610067®Number=0000000000091573&sum=100000 [08:19:19]StoreToDocumentArchive [08:19:19]shift 372 fd 76782 [08:19:19]save to /storage/0372/doc_00076782 [08:19:19]save last doc name /storage/0372/doc_00076782 to /storage/kkm_last_doc_name [08:19:19]save OK [08:19:19]Clear old archive folders... [08:19:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:19:19]tlvbuf is 018B4DF0 [08:19:19]SAM_PROTO_ClearQueue [08:19:19]wFMCommunicate request_size=4 [08:19:19]MH_SAM_APDU [08:19:19]CAPDU: 80 09 00 00 [08:19:19]Write to MH i2c: E2 08 00 43 1A 80 09 00 00 00 00 00 00 CF [08:19:19]Write i2c OK [08:19:19]MH_I2C_Read... [08:19:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:19:19]Read from MH i2c: E2 [08:19:19]MH_I2C_Read... [08:19:19]Read from MH i2c: E2 03 00 [08:19:19]MH_I2C_Read... [08:19:19]Read from MH i2c: E2 03 00 43 1A 00 90 00 D1 [08:19:19]RAPDU: 90 00 [08:19:19]wFMCommunicate OK [08:19:19]SAM_PROTO_ClearQueue done [08:19:19]KKMCreateOFDPacket [08:19:19]OFDProtocolAddRootSTLVToBuf [08:19:19]FM_MakeSignedData [08:19:19]FM_MakeSignedData [08:19:19]SAM_PROTO_SignData [08:19:19]wFMCommunicate request_size=4 [08:19:19]MH_SAM_APDU [08:19:19]CAPDU: 80 0D 01 02 [08:19:19]Write to MH i2c: E2 08 00 44 1A 80 0D 01 02 00 00 00 00 D7 [08:19:19]Write i2c OK [08:19:19]MH_I2C_Read... [08:19:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:19:19]Read from MH i2c: E2 [08:19:19]MH_I2C_Read... [08:19:19]Read from MH i2c: E2 03 00 [08:19:19]MH_I2C_Read... [08:19:19]Read from MH i2c: E2 03 00 44 1A 00 90 00 D2 [08:19:19]RAPDU: 90 00 [08:19:19]wFMCommunicate OK [08:19:19]wFMCommunicate request_size=255 [08:19:19]MH_SAM_APDU [08:19: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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 09 CC 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EE 2B 01 00 35 04 06 00 16 [08:19:19]Write to MH i2c: E2 02 01 45 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 09 CC 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EE 2B 01 00 35 04 06 00 16 00 00 D2 [08:19:19]Write i2c OK [08:19:19]MH_I2C_Read... [08:19:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:20]Read from MH i2c: E2 [08:19:20]MH_I2C_Read... [08:19:20]Read from MH i2c: E2 03 00 [08:19:20]MH_I2C_Read... [08:19:20]Read from MH i2c: E2 03 00 45 1A 00 90 00 D3 [08:19:20]RAPDU: 90 00 [08:19:20]wFMCommunicate OK [08:19:20]wFMCommunicate request_size=10 [08:19:20]MH_SAM_APDU [08:19:20]CAPDU: 80 0D 02 02 05 DC 3F D2 75 A5 [08:19:20]Write to MH i2c: E2 0D 00 46 1A 80 0D 02 02 05 00 DC 3F D2 75 A5 00 00 EB [08:19:20]Write i2c OK [08:19:20]MH_I2C_Read... [08:19:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:20]Read from MH i2c: E2 [08:19:20]MH_I2C_Read... [08:19:20]Read from MH i2c: E2 03 00 [08:19:20]MH_I2C_Read... [08:19:20]Read from MH i2c: E2 03 00 46 1A 00 90 00 D4 [08:19:20]RAPDU: 90 00 [08:19:20]wFMCommunicate OK [08:19:20]wFMCommunicate request_size=4 [08:19:20]MH_SAM_APDU [08:19:20]CAPDU: 80 0D 03 02 [08:19:20]Write to MH i2c: E2 08 00 47 1A 80 0D 03 02 00 00 00 00 DC [08:19:20]Write i2c OK [08:19:20]MH_I2C_Read... [08:19:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:19:20]Read from MH i2c: E2 [08:19:20]MH_I2C_Read... [08:19:20]Read from MH i2c: E2 0B 00 [08:19:20]MH_I2C_Read... [08:19:20]Read from MH i2c: E2 0B 00 47 1A 00 A7 BF 2A 08 A7 39 1E 3A 90 00 AD [08:19:20]RAPDU: A7 BF 2A 08 A7 39 1E 3A 90 00 [08:19:20]wFMCommunicate OK [08:19:20]SAM_PROTO_SignData done [08:19:20]FM_MakeSignedData done [08:19:20]CreateOFDProtocolMessage [08:19:20]wFMCommunicate request_size=4 [08:19:20]MH_SAM_APDU [08:19:20]CAPDU: 80 11 00 00 [08:19:20]Write to MH i2c: E2 08 00 48 1A 80 11 00 00 00 00 00 00 DC [08:19:20]Write i2c OK [08:19:20]MH_I2C_Read... [08:19:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:20]Read from MH i2c: E2 [08:19:20]MH_I2C_Read... [08:19:20]Read from MH i2c: E2 17 00 [08:19:20]MH_I2C_Read... [08:19:20]Read from MH i2c: E2 17 00 48 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 2F [08:19:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:19:20]wFMCommunicate OK [08:19:20]CreateOFDProtocolMessage done [08:19:20]OFDSenderStorePacket 76782 [08:19:20]StoreOFDPacket docnum=76782 [08:19:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 D2 2D 07 01 89 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 09 CC 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EE 2B 01 00 35 04 06 00 16 DC 3F D2 75 A5 A7 BF 2A 08 A7 39 1E 3A [08:19:20]CheckFolder [08:19:20]dirname=/storage/ofd_packets [08:19:20]CheckFolder done [08:19:20]ProducePacketName [08:19:20]name=ofd_packets/00076782 [08:19:20]NVStorageSaveData ofd_packets/00076782 [08:19:20]File name is /storage/ofd_packets/00076782 [08:19:20]Write 301 bytes [08:19:20]NVStorageSaveData done [08:19:20]OFDSenderStorePacket done [08:19:20]KKMCreateOFDPacket done [08:19:20]NVStorageSaveData kkm_last_timestamp [08:19:20]File name is /storage/kkm_last_timestamp [08:19:20]Write 4 bytes [08:19:20]NVStorageSaveData done [08:19:20]ExternCall_PrintAddStr [08:19:20]wPrintStart [08:19:20]Write to MH i2c: 01 00 00 49 1A 63 [08:19:20]Write i2c OK [08:19:20]MH_I2C_Read... [08:19:20]Read from MH i2c: 01 [08:19:20]MH_I2C_Read... [08:19:20]Read from MH i2c: 01 07 00 [08:19:20]MH_I2C_Read... [08:19:20]Read from MH i2c: 01 07 00 49 1A 00 00 00 00 00 FF 0F 78 [08:19:20]RasterBufferAndPrint [08:19:20]line Счет N : (1)191313 [08:19:20]line ИНН: 02508201610067 [08:19:20]line Контрольно-Кассовый Чек [08:19:20]line ПРОДАЖА [08:19:20]line ТРК (МРК, ГНК) : 12 [08:19:20]line Товар: 2710124130 [08:19:20]line Аи-92-К-5 [08:19:20]line 15.530 * 64.40 [08:19:20]line = 1000.13 [08:19:20]line НДС 12% НСП 1% [08:19:20]line > о реализуемом товаре [08:19:20]line ОКРУГЛЕНИЕ: -0.13 [08:19:20]line ИТОГО: 1000.00 [08:19:20]line Внесено: 1000.00 [08:19:20]line СДАЧА: 0.00 [08:19:20]line НСП 1% : 8.85 [08:19:20]line НДС 12% : 106.21 [08:19:20]line Наличными: 1000.00 [08:19:20]line Безнал.: 0.00 [08:19:20]line Место: АЗС № 106 "Партнер Нефть" [08:19:20]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [08:19:20]line СНО: Общий режим [08:19:20]line Чек 38 21.04.2024 08:19 [08:19:20]line Смена: 372 ФФД: 1.0 [08:19:20]line ЗНМ: 0300000141 [08:19:20]line РНМ: 0000000000091573 [08:19:20]line Версия ККМ: 001 [08:19:20]line ФМ: 0000000000874652 [08:19:20]line ФД: 76782 [08:19:20]line ФПД: 25135219373477 [08:19:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T081921&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76782&fm=25135219373477&tin=02508201610067®Number=0000000000091573&sum=100000 [08:19:20]OFD Sender: Processing packet 76782 [packets to send 129, broken 128] [08:19:20]ProducePacketName [08:19:20]name=ofd_packets/00076782 [08:19:20]OFD Sender: To server: pG, [08:19:20]CommunicateWithHost lk.salyk.kg:30040 [08:19:20]ConnectInit lk.salyk.kg [08:19:20]written 0, free lines is 4095 [08:19:20]Connected sock=7 [08: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 34 36 35 32 0F 01 00 00 D2 2D 07 01 89 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 09 CC 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EE 2B 01 00 35 04 06 00 16 DC 3F D2 75 A5 A7 BF 2A 08 A7 39 1E 3A [08:19:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 F5 C3 47 00 63 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EE 2B 01 00 F4 03 04 00 8F 73 24 66 B6 04 01 00 00 7F 48 23 C1 A8 02 DE 2B [08:19:20]CommunicateWithHost err = 0 [08:19:20]CheckOFDResponse [08:19:20]1017 (14) - 77093643461234 [08:19:20]1041 (16) - 0000000000874652 [08:19:20]1040 (4) - 76782 [08:19:20]1012 (4) - 21.04.2024 02:01 [08:19:20]1206 (1) - 0 [08:19:20]OFD Sender: Remove packet 76782 [08:19:20]ProducePacketName [08:19:20]name=ofd_packets/00076782 [08:19:20]NVStorageDeleteData [08:19:21]Write to MH i2c: 01 00 00 73 1A 8D [08:19:21]Write i2c OK [08:19:21]MH_I2C_Read... [08:19:21]Read from MH i2c: 01 [08:19:21]MH_I2C_Read... [08:19:21]Read from MH i2c: 01 07 00 [08:19:21]MH_I2C_Read... [08:19:21]Read from MH i2c: 01 07 00 73 1A 00 00 00 00 00 EF 0C 8F [08:19:21]RasterBufferAndPrint [08:19:21]line [08:19:21]line [08:19:21]line [08:19:21]line [08:19:21]line [08:19:21]written 0, free lines is 3317 [08:19:21]MH_Cut [08:19:21]Write to MH i2c: D1 01 00 7A 1A 01 66 [08:19:21]Write i2c OK [08:19:21]MH_I2C_Read... [08:19:21]Read from MH i2c: D1 [08:19:21]MH_I2C_Read... [08:19:21]Read from MH i2c: D1 01 00 [08:19:21]MH_I2C_Read... [08:19:21]Read from MH i2c: D1 01 00 7A 1A 00 65 [08:19:21]Write to MH i2c: 01 00 00 7B 1A 95 [08:19:21]Write i2c OK [08:19:21]MH_I2C_Read... [08:19:21]OFD Sender: No OFD packet to send [08:19:21]*** Cut start [08:19:21]*** Partial cut [08:19:21]*** CUTSNS_PIN = 1 [08:19:21]*** CUTSNS_PIN = 0 [08:19:22]*** Brake cut motor [08:19:22]Read from MH i2c: 01 [08:19:22]MH_I2C_Read... [08:19:22]Read from MH i2c: 01 07 00 [08:19:22]MH_I2C_Read... [08:19:22]*** Stop cut motor [08:19:22]*** Cut end [08:19:22]Read from MH i2c: 01 07 00 7B 1A 00 00 00 00 00 FF 0F AA [08:19:22]process_action close_receipt done [08:19:22]requested_data is exist [08:19:22]produce_requested_data [08:19:22]requested_item fm.sn is exist - process it [08:19:22]wFMCommunicate request_size=4 [08:19:22]MH_SAM_APDU [08:19:22]CAPDU: 80 11 00 00 [08:19:22]Write to MH i2c: E2 08 00 7C 1A 80 11 00 00 00 00 00 00 10 [08:19:22]Write i2c OK [08:19:22]MH_I2C_Read... [08:19:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:22]Read from MH i2c: E2 [08:19:22]MH_I2C_Read... [08:19:22]Read from MH i2c: E2 17 00 [08:19:22]MH_I2C_Read... [08:19:22]Read from MH i2c: E2 17 00 7C 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 63 [08:19:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:19:22]wFMCommunicate OK [08:19:22]requested_item fd.num is exist - process it [08:19:22]SAM_PROTO_GetFieldsCounters [08:19:22]wFMCommunicate request_size=4 [08:19:22]MH_SAM_APDU [08:19:22]CAPDU: 80 13 00 00 [08:19:22]Write to MH i2c: E2 08 00 7D 1A 80 13 00 00 00 00 00 00 13 [08:19:22]Write i2c OK [08:19:22]MH_I2C_Read... [08:19:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:19:22]Read from MH i2c: E2 [08:19:22]MH_I2C_Read... [08:19:22]Read from MH i2c: E2 62 00 [08:19:22]MH_I2C_Read... [08:19:22]Read from MH i2c: E2 62 00 7D 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 EE 2B 01 00 0E 04 04 00 74 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 35 [08:19: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 EE 2B 01 00 0E 04 04 00 74 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 [08:19:22]wFMCommunicate OK [08:19:22]SAM_PROTO_GetFieldsCounters done [08:19:22]requested_item shift.num is exist - process it [08:19:22]requested_item shift.opened is exist - process it [08:19:22]req_shift_opened [08:19:22]FM_GetShiftState [08:19:22]SAM_PROTO_GetShiftState [08:19:22]wFMCommunicate request_size=4 [08:19:22]MH_SAM_APDU [08:19:22]CAPDU: 80 13 01 00 [08:19:22]Write to MH i2c: E2 08 00 7E 1A 80 13 01 00 00 00 00 00 15 [08:19:22]Write i2c OK [08:19:22]MH_I2C_Read... [08:19:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:22]Read from MH i2c: E2 [08:19:22]MH_I2C_Read... [08:19:22]Read from MH i2c: E2 0E 00 [08:19:22]MH_I2C_Read... [08:19:22]Read from MH i2c: E2 0E 00 7E 1A 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 5C [08:19:22]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [08:19:22]wFMCommunicate OK [08:19:22]SAM_PROTO_GetShiftState done [08:19:22]FM_GetShiftState done [08:19:22]req_shift_opened done [08:19:22]requested_item shift.open_date is exist - process it [08:19:22]req_shift_open_date [08:19:22]req_shift_open_date done [08:19:22]produce_requested_data done [08:19:22]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76782,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [08:19:22]process_action_free close_receipt [08:19:22]json_value_free [08:19:22]json_value_free done [08:19:22]process_json_proto returns [08:19:22]Send response to host [08:19:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76782,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [08:19:22]free response buf [08:19:22]execute_script done [08:19:22]execute_script returns [08:19:22]free content buf [08:19:22]Sock 9.Close socket [08:19:22]Sock 9.Thread stoped [08:19:26]OFD Sender: No OFD packet to send [08:19:31]OFD Sender: No OFD packet to send [08:19:36]OFD Sender: No OFD packet to send [08:19:41]OFD Sender: No OFD packet to send [08:19:46]OFD Sender: No OFD packet to send [08:19:51]OFD Sender: No OFD packet to send [08:19:56]OFD Sender: No OFD packet to send [08:20:01]OFD Sender: No OFD packet to send [08:20:06]OFD Sender: No OFD packet to send [08:20:11]OFD Sender: No OFD packet to send [08:20:16]OFD Sender: No OFD packet to send [08:20:21]OFD Sender: No OFD packet to send [08:20:26]OFD Sender: No OFD packet to send [08:20:29]accept exits with 10 [08:20:29]New connection [08:20:29]New thread 3067481444 created [08:20:29]Thread 3067338084 joined [08:20:29]Waiting for new connection... [08:20:29] Sock 10.Parse request [08:20:29]Sock 10.Check first char [08:20:29]Sock 10.First char is OK [08:20:29]request: POST /json_proto HTTP/1.0 [08:20:29]Method: POST [08:20:29]URL: /json_proto [08:20:29]Method is POST - this is cgi request [08:20:29]url: /json_proto [08:20:29]query_string will be loaded in cgi processing [08:20:29]execute_cgi json_proto POST (null) [08:20:29]execute_cgi path=json_proto method=POST [08:20:29]POST find Content-Length [08:20:29]Host: 172.17.62.5:8080 [08:20:29]Content-Length: 990 [08:20:29]Content-Type: application/json [08:20:29] [08:20:29]POST finish read [08:20:29]Found Content-Length = 990 [08:20:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 42.920, "sum" : 1360.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 42.92 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1360.00, "payments": [ { "type": 0, "sum" : 1360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:29]execute_script... [08:20:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 42.920, "sum" : 1360.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 42.92 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1360.00, "payments": [ { "type": 0, "sum" : 1360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:29]POST & json_proto [08:20:29]process_json_proto [08:20:29]json parsed OK: [08:20:29]protocol is kg_v1.0 [08:20:29]action value=close_receipt [08:20:29]process_action close_receipt [08:20:29]cmd_close_receipt [08:20:29]MH_GetDate [08:20:29]Write to MH i2c: F0 00 00 7F 1A 88 [08:20:29]Write i2c OK [08:20:29]MH_I2C_Read... [08:20:29]Read from MH i2c: F0 [08:20:29]MH_I2C_Read... [08:20:29]Read from MH i2c: F0 09 00 [08:20:29]MH_I2C_Read... [08:20:29]Read from MH i2c: F0 09 00 7F 1A 00 50 CC 24 66 F4 E9 65 64 DD [08:20:29]GetLastDocTimeStamp 1713687561 [08:20:29]current date 1713687632 [08:20:29]FM_GetShiftState [08:20:29]SAM_PROTO_GetShiftState [08:20:29]wFMCommunicate request_size=4 [08:20:29]MH_SAM_APDU [08:20:29]CAPDU: 80 13 01 00 [08:20:29]Write to MH i2c: E2 08 00 80 1A 80 13 01 00 00 00 00 00 17 [08:20:29]Write i2c OK [08:20:29]MH_I2C_Read... [08:20:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:29]Read from MH i2c: E2 [08:20:29]MH_I2C_Read... [08:20:29]Read from MH i2c: E2 0E 00 [08:20:29]MH_I2C_Read... [08:20:29]Read from MH i2c: E2 0E 00 80 1A 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 5E [08:20:29]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [08:20:29]wFMCommunicate OK [08:20:29]SAM_PROTO_GetShiftState done [08:20:29]FM_GetShiftState done [08:20:29]opened in 1713658965 [08:20:29]opened+sec_in_day 1713745365 [08:20:29]quantity*price = 136056 [08:20:29]sum+1 = 136057 [08:20:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1360.00 Внесено: 1500.00 СДАЧА: 140.00 НСП 1% : 12.04 НДС 12% : 144.48 Наличными: 1360.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 39 21.04.2024 08:20 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 42.92 сом ФМ: 0000000000874652 ФД: 76783 ФПД: 104658382662710 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T082032&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76783&fm=104658382662710&tin=02508201610067®Number=0000000000091573&sum=136000 [08:20:30]StoreToDocumentArchive [08:20:30]shift 372 fd 76783 [08:20:30]save to /storage/0372/doc_00076783 [08:20:30]save last doc name /storage/0372/doc_00076783 to /storage/kkm_last_doc_name [08:20:30]save OK [08:20:30]Clear old archive folders... [08:20:30]ProcessDocumentItem done err = 0, tmpTLVsize=250 [08:20:30]tlvbuf is 018B53F0 [08:20:30]SAM_PROTO_ClearQueue [08:20:30]wFMCommunicate request_size=4 [08:20:30]MH_SAM_APDU [08:20:30]CAPDU: 80 09 00 00 [08:20:30]Write to MH i2c: E2 08 00 8D 1A 80 09 00 00 00 00 00 00 19 [08:20:30]Write i2c OK [08:20:30]MH_I2C_Read... [08:20:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:20:30]Read from MH i2c: E2 [08:20:30]MH_I2C_Read... [08:20:30]Read from MH i2c: E2 03 00 [08:20:30]MH_I2C_Read... [08:20:30]Read from MH i2c: E2 03 00 8D 1A 00 90 00 1B [08:20:30]RAPDU: 90 00 [08:20:30]wFMCommunicate OK [08:20:30]SAM_PROTO_ClearQueue done [08:20:30]KKMCreateOFDPacket [08:20:30]OFDProtocolAddRootSTLVToBuf [08:20:30]FM_MakeSignedData [08:20:30]FM_MakeSignedData [08:20:30]SAM_PROTO_SignData [08:20:30]wFMCommunicate request_size=4 [08:20:30]MH_SAM_APDU [08:20:30]CAPDU: 80 0D 01 02 [08:20:30]Write to MH i2c: E2 08 00 8E 1A 80 0D 01 02 00 00 00 00 21 [08:20:30]Write i2c OK [08:20:30]MH_I2C_Read... [08:20:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:20:30]Read from MH i2c: E2 [08:20:30]MH_I2C_Read... [08:20:30]Read from MH i2c: E2 03 00 [08:20:30]MH_I2C_Read... [08:20:30]Read from MH i2c: E2 03 00 8E 1A 00 90 00 1C [08:20:30]RAPDU: 90 00 [08:20:30]wFMCommunicate OK [08:20:30]wFMCommunicate request_size=255 [08:20:30]MH_SAM_APDU [08:20:30]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A8 A7 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 78 13 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 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 70 38 00 00 00 00 07 04 06 00 40 13 02 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 50 CC 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EF 2B 01 00 35 04 06 00 5F 2F [08:20:30]Write to MH i2c: E2 02 01 8F 1A 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A8 A7 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 78 13 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 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 70 38 00 00 00 00 07 04 06 00 40 13 02 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 50 CC 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EF 2B 01 00 35 04 06 00 5F 2F 00 00 11 [08:20:30]Write i2c OK [08:20:30]MH_I2C_Read... [08:20:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:30]Read from MH i2c: E2 [08:20:30]MH_I2C_Read... [08:20:30]Read from MH i2c: E2 03 00 [08:20:30]MH_I2C_Read... [08:20:30]Read from MH i2c: E2 03 00 8F 1A 00 90 00 1D [08:20:30]RAPDU: 90 00 [08:20:30]wFMCommunicate OK [08:20:30]wFMCommunicate request_size=9 [08:20:30]MH_SAM_APDU [08:20:30]CAPDU: 80 0D 02 02 04 AD B8 AC 36 [08:20:30]Write to MH i2c: E2 0C 00 90 1A 80 0D 02 02 04 00 AD B8 AC 36 00 00 73 [08:20:30]Write i2c OK [08:20:30]MH_I2C_Read... [08:20:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:30]Read from MH i2c: E2 [08:20:30]MH_I2C_Read... [08:20:30]Read from MH i2c: E2 03 00 [08:20:30]MH_I2C_Read... [08:20:30]Read from MH i2c: E2 03 00 90 1A 00 90 00 1E [08:20:30]RAPDU: 90 00 [08:20:30]wFMCommunicate OK [08:20:30]wFMCommunicate request_size=4 [08:20:30]MH_SAM_APDU [08:20:30]CAPDU: 80 0D 03 02 [08:20:30]Write to MH i2c: E2 08 00 91 1A 80 0D 03 02 00 00 00 00 26 [08:20:30]Write i2c OK [08:20:30]MH_I2C_Read... [08:20:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:20:30]Read from MH i2c: E2 [08:20:30]MH_I2C_Read... [08:20:30]Read from MH i2c: E2 0B 00 [08:20:30]MH_I2C_Read... [08:20:30]Read from MH i2c: E2 0B 00 91 1A 00 D0 5F 6A A3 CE FA 1E FE 90 00 47 [08:20:30]RAPDU: D0 5F 6A A3 CE FA 1E FE 90 00 [08:20:30]wFMCommunicate OK [08:20:30]SAM_PROTO_SignData done [08:20:30]FM_MakeSignedData done [08:20:30]CreateOFDProtocolMessage [08:20:30]wFMCommunicate request_size=4 [08:20:30]MH_SAM_APDU [08:20:30]CAPDU: 80 11 00 00 [08:20:30]Write to MH i2c: E2 08 00 92 1A 80 11 00 00 00 00 00 00 26 [08:20:30]Write i2c OK [08:20:30]MH_I2C_Read... [08:20:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:30]Read from MH i2c: E2 [08:20:30]MH_I2C_Read... [08:20:30]Read from MH i2c: E2 17 00 [08:20:30]MH_I2C_Read... [08:20:30]Read from MH i2c: E2 17 00 92 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 79 [08:20:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:20:30]wFMCommunicate OK [08:20:30]CreateOFDProtocolMessage done [08:20:30]OFDSenderStorePacket 76783 [08:20:30]StoreOFDPacket docnum=76783 [08:20:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 43 BE 06 01 B2 AE 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A8 A7 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 78 13 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 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 70 38 00 00 00 00 07 04 06 00 40 13 02 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 50 CC 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EF 2B 01 00 35 04 06 00 5F 2F AD B8 AC 36 D0 5F 6A A3 CE FA 1E FE [08:20:30]CheckFolder [08:20:30]dirname=/storage/ofd_packets [08:20:30]CheckFolder done [08:20:30]ProducePacketName [08:20:30]name=ofd_packets/00076783 [08:20:30]NVStorageSaveData ofd_packets/00076783 [08:20:30]File name is /storage/ofd_packets/00076783 [08:20:30]Write 300 bytes [08:20:30]NVStorageSaveData done [08:20:30]OFDSenderStorePacket done [08:20:30]KKMCreateOFDPacket done [08:20:30]NVStorageSaveData kkm_last_timestamp [08:20:30]File name is /storage/kkm_last_timestamp [08:20:30]Write 4 bytes [08:20:30]NVStorageSaveData done [08:20:30]ExternCall_PrintAddStr [08:20:30]wPrintStart [08:20:30]Write to MH i2c: 01 00 00 93 1A AD [08:20:30]Write i2c OK [08:20:30]MH_I2C_Read... [08:20:30]Read from MH i2c: 01 [08:20:30]MH_I2C_Read... [08:20:30]Read from MH i2c: 01 07 00 [08:20:30]MH_I2C_Read... [08:20:30]Read from MH i2c: 01 07 00 93 1A 00 00 00 00 00 FF 0F C2 [08:20:30]RasterBufferAndPrint [08:20:30]line Счет N : (1)191312 [08:20:30]line ИНН: 02508201610067 [08:20:30]line Контрольно-Кассовый Чек [08:20:30]line ПРОДАЖА [08:20:30]line ТРК (МРК, ГНК) : 71 [08:20:30]line Товар: 2711190000 [08:20:30]line ГАЗ-К-5 [08:20:30]line 42.920 * 31.70 [08:20:30]line = 1360.56 [08:20:30]line НДС 12% НСП 1% [08:20:30]line > о реализуемом товаре [08:20:30]line ОКРУГЛЕНИЕ: -0.56 [08:20:30]line ИТОГО: 1360.00 [08:20:30]line Внесено: 1500.00 [08:20:30]line СДАЧА: 140.00 [08:20:30]line НСП 1% : 12.04 [08:20:30]line НДС 12% : 144.48 [08:20:30]line Наличными: 1360.00 [08:20:30]line Безнал.: 0.00 [08:20:30]line Место: АЗС № 106 "Партнер Нефть" [08:20:30]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [08:20:30]line СНО: Общий режим [08:20:30]line Чек 39 21.04.2024 08:20 [08:20:30]line Смена: 372 ФФД: 1.0 [08:20:30]line ЗНМ: 0300000141 [08:20:30]line РНМ: 0000000000091573 [08:20:30]line Версия ККМ: 001 [08:20:30]line [08:20:30]line Дисконтная программа [08:20:30]line СУГ [08:20:30]line номер 106 [08:20:30]line сэкономлено 42.92 сом [08:20:30]line ФМ: 0000000000874652 [08:20:30]line ФД: 76783 [08:20:30]line ФПД: 104658382662710 [08:20:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T082032&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76783&fm=104658382662710&tin=02508201610067®Number=0000000000091573&sum=136000 [08:20:31]OFD Sender: Processing packet 76783 [packets to send 129, broken 128] [08:20:31]ProducePacketName [08:20:31]name=ofd_packets/00076783 [08:20:31]OFD Sender: To server: pG, [08:20:31]CommunicateWithHost lk.salyk.kg:30040 [08:20:31]ConnectInit lk.salyk.kg [08:20:31]written 0, free lines is 4095 [08:20:31]Connected sock=9 [08:20:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 43 BE 06 01 B2 AE 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A8 A7 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 78 13 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 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 70 38 00 00 00 00 07 04 06 00 40 13 02 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 50 CC 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EF 2B 01 00 35 04 06 00 5F 2F AD B8 AC 36 D0 5F 6A A3 CE FA 1E FE [08:20:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 DB 69 47 00 24 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 34 36 35 32 10 04 04 00 EF 2B 01 00 F4 03 04 00 D6 73 24 66 B6 04 01 00 00 78 32 8A 52 18 AA E3 2F [08:20:31]CommunicateWithHost err = 0 [08:20:31]CheckOFDResponse [08:20:31]1017 (14) - 77093643461234 [08:20:31]1041 (16) - 0000000000874652 [08:20:31]1040 (4) - 76783 [08:20:31]1012 (4) - 21.04.2024 02:03 [08:20:31]1206 (1) - 0 [08:20:31]OFD Sender: Remove packet 76783 [08:20:31]ProducePacketName [08:20:31]name=ofd_packets/00076783 [08:20:31]NVStorageDeleteData [08:20:31]Write to MH i2c: 01 00 00 C2 1A DC [08:20:31]Write i2c OK [08:20:31]MH_I2C_Read... [08:20:31]Read from MH i2c: 01 [08:20:31]MH_I2C_Read... [08:20:31]Read from MH i2c: 01 07 00 [08:20:31]MH_I2C_Read... [08:20:31]Read from MH i2c: 01 07 00 C2 1A 00 00 00 00 00 97 0C 86 [08:20:31]RasterBufferAndPrint [08:20:31]line [08:20:31]line [08:20:31]line [08:20:31]line [08:20:31]line [08:20:31]written 0, free lines is 3232 [08:20:31]MH_Cut [08:20:31]Write to MH i2c: D1 01 00 C9 1A 01 B5 [08:20:31]Write i2c OK [08:20:31]MH_I2C_Read... [08:20:31]Read from MH i2c: D1 [08:20:31]MH_I2C_Read... [08:20:31]Read from MH i2c: D1 01 00 [08:20:31]MH_I2C_Read... [08:20:31]Read from MH i2c: D1 01 00 C9 1A 00 B4 [08:20:31]Write to MH i2c: 01 00 00 CA 1A E4 [08:20:31]Write i2c OK [08:20:31]MH_I2C_Read... [08:20:32]OFD Sender: No OFD packet to send [08:20:32]*** Cut start [08:20:32]*** Partial cut [08:20:32]*** CUTSNS_PIN = 1 [08:20:32]*** CUTSNS_PIN = 0 [08:20:32]*** Brake cut motor [08:20:33]Read from MH i2c: 01 [08:20:33]MH_I2C_Read... [08:20:33]*** Stop cut motor [08:20:33]*** Cut end [08:20:33]Read from MH i2c: 01 07 00 [08:20:33]MH_I2C_Read... [08:20:33]Read from MH i2c: 01 07 00 CA 1A 00 00 00 00 00 FF 0F F9 [08:20:33]process_action close_receipt done [08:20:33]requested_data is exist [08:20:33]produce_requested_data [08:20:33]requested_item fm.sn is exist - process it [08:20:33]wFMCommunicate request_size=4 [08:20:33]MH_SAM_APDU [08:20:33]CAPDU: 80 11 00 00 [08:20:33]Write to MH i2c: E2 08 00 CB 1A 80 11 00 00 00 00 00 00 5F [08:20:33]Write i2c OK [08:20:33]MH_I2C_Read... [08:20:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:33]Read from MH i2c: E2 [08:20:33]MH_I2C_Read... [08:20:33]Read from MH i2c: E2 17 00 [08:20:33]MH_I2C_Read... [08:20:33]Read from MH i2c: E2 17 00 CB 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 B2 [08:20:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:20:33]wFMCommunicate OK [08:20:33]requested_item fd.num is exist - process it [08:20:33]SAM_PROTO_GetFieldsCounters [08:20:33]wFMCommunicate request_size=4 [08:20:33]MH_SAM_APDU [08:20:33]CAPDU: 80 13 00 00 [08:20:33]Write to MH i2c: E2 08 00 CC 1A 80 13 00 00 00 00 00 00 62 [08:20:33]Write i2c OK [08:20:33]MH_I2C_Read... [08:20:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:20:33]Read from MH i2c: E2 [08:20:33]MH_I2C_Read... [08:20:33]Read from MH i2c: E2 62 00 [08:20:33]MH_I2C_Read... [08:20:33]Read from MH i2c: E2 62 00 CC 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 EF 2B 01 00 0E 04 04 00 74 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 88 [08:20:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 EF 2B 01 00 0E 04 04 00 74 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 [08:20:33]wFMCommunicate OK [08:20:33]SAM_PROTO_GetFieldsCounters done [08:20:33]requested_item shift.num is exist - process it [08:20:33]requested_item shift.opened is exist - process it [08:20:33]req_shift_opened [08:20:33]FM_GetShiftState [08:20:33]SAM_PROTO_GetShiftState [08:20:33]wFMCommunicate request_size=4 [08:20:33]MH_SAM_APDU [08:20:33]CAPDU: 80 13 01 00 [08:20:33]Write to MH i2c: E2 08 00 CD 1A 80 13 01 00 00 00 00 00 64 [08:20:33]Write i2c OK [08:20:33]MH_I2C_Read... [08:20:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:33]Read from MH i2c: E2 [08:20:33]MH_I2C_Read... [08:20:33]Read from MH i2c: E2 0E 00 [08:20:33]MH_I2C_Read... [08:20:33]Read from MH i2c: E2 0E 00 CD 1A 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 AB [08:20:33]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [08:20:33]wFMCommunicate OK [08:20:33]SAM_PROTO_GetShiftState done [08:20:33]FM_GetShiftState done [08:20:33]req_shift_opened done [08:20:33]requested_item shift.open_date is exist - process it [08:20:33]req_shift_open_date [08:20:33]req_shift_open_date done [08:20:33]produce_requested_data done [08:20:33]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76783,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [08:20:33]process_action_free close_receipt [08:20:33]json_value_free [08:20:33]json_value_free done [08:20:33]process_json_proto returns [08:20:33]Send response to host [08:20:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76783,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [08:20:33]free response buf [08:20:33]execute_script done [08:20:33]execute_script returns [08:20:33]free content buf [08:20:33]Sock 10.Close socket [08:20:33]Sock 10.Thread stoped [08:20:37]OFD Sender: No OFD packet to send [08:20:42]OFD Sender: No OFD packet to send [08:20:47]OFD Sender: No OFD packet to send [08:20:52]OFD Sender: No OFD packet to send [08:20:57]OFD Sender: No OFD packet to send [08:21:02]OFD Sender: No OFD packet to send [08:21:07]OFD Sender: No OFD packet to send [08:21:12]OFD Sender: No OFD packet to send [08:21:17]OFD Sender: No OFD packet to send [08:21:22]OFD Sender: No OFD packet to send [08:21:27]OFD Sender: No OFD packet to send [08:21:32]OFD Sender: No OFD packet to send [08:21:37]OFD Sender: No OFD packet to send [08:21:42]OFD Sender: No OFD packet to send [08:21:47]OFD Sender: No OFD packet to send [08:21:52]OFD Sender: No OFD packet to send [08:21:57]OFD Sender: No OFD packet to send [08:22:02]OFD Sender: No OFD packet to send [08:22:07]OFD Sender: No OFD packet to send [08:22:12]OFD Sender: No OFD packet to send [08:22:17]OFD Sender: No OFD packet to send [08:22:22]OFD Sender: No OFD packet to send [08:22:27]OFD Sender: No OFD packet to send [08:22:32]OFD Sender: No OFD packet to send [08:22:37]OFD Sender: No OFD packet to send [08:22:42]OFD Sender: No OFD packet to send [08:22:47]OFD Sender: No OFD packet to send [08:22:52]OFD Sender: No OFD packet to send [08:22:57]OFD Sender: No OFD packet to send [08:23:02]OFD Sender: No OFD packet to send [08:23:07]OFD Sender: No OFD packet to send [08:23:12]OFD Sender: No OFD packet to send [08:23:17]OFD Sender: No OFD packet to send [08:23:22]OFD Sender: No OFD packet to send [08:23:27]OFD Sender: No OFD packet to send [08:23:32]OFD Sender: No OFD packet to send [08:23:37]OFD Sender: No OFD packet to send [08:23:42]OFD Sender: No OFD packet to send [08:23:47]OFD Sender: No OFD packet to send [08:23:52]OFD Sender: No OFD packet to send [08:23:57]OFD Sender: No OFD packet to send [08:24:02]OFD Sender: No OFD packet to send [08:24:07]OFD Sender: No OFD packet to send [08:24:12]OFD Sender: No OFD packet to send [08:24:17]OFD Sender: No OFD packet to send [08:24:22]OFD Sender: No OFD packet to send [08:24:27]OFD Sender: No OFD packet to send [08:24:32]OFD Sender: No OFD packet to send [08:24:37]OFD Sender: No OFD packet to send [08:24:42]OFD Sender: No OFD packet to send [08:24:47]OFD Sender: No OFD packet to send [08:24:52]OFD Sender: No OFD packet to send [08:24:57]OFD Sender: No OFD packet to send [08:25:02]OFD Sender: No OFD packet to send [08:25:07]OFD Sender: No OFD packet to send [08:25:12]OFD Sender: No OFD packet to send [08:25:17]OFD Sender: No OFD packet to send [08:25:22]OFD Sender: No OFD packet to send [08:25:27]OFD Sender: No OFD packet to send [08:25:32]OFD Sender: No OFD packet to send [08:25:37]OFD Sender: No OFD packet to send [08:25:42]OFD Sender: No OFD packet to send [08:25:47]OFD Sender: No OFD packet to send [08:25:52]OFD Sender: No OFD packet to send [08:25:57]OFD Sender: No OFD packet to send [08:26:02]OFD Sender: No OFD packet to send [08:26:07]OFD Sender: No OFD packet to send [08:26:12]OFD Sender: No OFD packet to send [08:26:17]OFD Sender: No OFD packet to send [08:26:22]OFD Sender: No OFD packet to send [08:26:27]OFD Sender: No OFD packet to send [08:26:32]OFD Sender: No OFD packet to send [08:26:37]OFD Sender: No OFD packet to send [08:26:42]OFD Sender: No OFD packet to send [08:26:47]OFD Sender: No OFD packet to send [08:26:52]OFD Sender: No OFD packet to send [08:26:57]OFD Sender: No OFD packet to send [08:27:02]OFD Sender: No OFD packet to send [08:27:07]OFD Sender: No OFD packet to send [08:27:12]OFD Sender: No OFD packet to send [08:27:17]OFD Sender: No OFD packet to send [08:27:22]OFD Sender: No OFD packet to send [08:27:27]OFD Sender: No OFD packet to send [08:27:32]OFD Sender: No OFD packet to send [08:27:37]OFD Sender: No OFD packet to send [08:27:42]OFD Sender: No OFD packet to send [08:27:47]OFD Sender: No OFD packet to send [08:27:52]OFD Sender: No OFD packet to send [08:27:57]OFD Sender: No OFD packet to send [08:28:02]OFD Sender: No OFD packet to send [08:28:07]OFD Sender: No OFD packet to send [08:28:12]OFD Sender: No OFD packet to send [08:28:17]OFD Sender: No OFD packet to send [08:28:22]OFD Sender: No OFD packet to send [08:28:27]OFD Sender: No OFD packet to send [08:28:32]OFD Sender: No OFD packet to send [08:28:37]OFD Sender: No OFD packet to send [08:28:42]OFD Sender: No OFD packet to send [08:28:47]OFD Sender: No OFD packet to send [08:28:52]OFD Sender: No OFD packet to send [08:28:57]OFD Sender: No OFD packet to send [08:29:02]OFD Sender: No OFD packet to send [08:29:07]OFD Sender: No OFD packet to send [08:29:12]OFD Sender: No OFD packet to send [08:29:17]OFD Sender: No OFD packet to send [08:29:22]OFD Sender: No OFD packet to send [08:29:27]OFD Sender: No OFD packet to send [08:29:32]OFD Sender: No OFD packet to send [08:29:37]OFD Sender: No OFD packet to send [08:29:42]OFD Sender: No OFD packet to send [08:29:47]OFD Sender: No OFD packet to send [08:29:52]OFD Sender: No OFD packet to send [08:29:57]OFD Sender: No OFD packet to send [08:30:02]OFD Sender: No OFD packet to send [08:30:07]OFD Sender: No OFD packet to send [08:30:12]OFD Sender: No OFD packet to send [08:30:17]OFD Sender: No OFD packet to send [08:30:22]OFD Sender: No OFD packet to send [08:30:27]OFD Sender: No OFD packet to send [08:30:32]OFD Sender: No OFD packet to send [08:30:37]OFD Sender: No OFD packet to send [08:30:42]OFD Sender: No OFD packet to send [08:30:47]OFD Sender: No OFD packet to send [08:30:52]OFD Sender: No OFD packet to send [08:30:57]OFD Sender: No OFD packet to send [08:31:02]OFD Sender: No OFD packet to send [08:31:07]OFD Sender: No OFD packet to send [08:31:12]OFD Sender: No OFD packet to send [08:31:17]OFD Sender: No OFD packet to send [08:31:22]OFD Sender: No OFD packet to send [08:31:28]OFD Sender: No OFD packet to send [08:31:33]OFD Sender: No OFD packet to send [08:31:38]OFD Sender: No OFD packet to send [08:31:43]OFD Sender: No OFD packet to send [08:31:48]OFD Sender: No OFD packet to send [08:31:53]OFD Sender: No OFD packet to send [08:31:58]OFD Sender: No OFD packet to send [08:32:03]OFD Sender: No OFD packet to send [08:32:08]OFD Sender: No OFD packet to send [08:32:13]OFD Sender: No OFD packet to send [08:32:18]OFD Sender: No OFD packet to send [08:32:23]OFD Sender: No OFD packet to send [08:32:28]OFD Sender: No OFD packet to send [08:32:33]OFD Sender: No OFD packet to send [08:32:38]OFD Sender: No OFD packet to send [08:32:43]OFD Sender: No OFD packet to send [08:32:48]OFD Sender: No OFD packet to send [08:32:53]OFD Sender: No OFD packet to send [08:32:58]OFD Sender: No OFD packet to send [08:33:03]OFD Sender: No OFD packet to send [08:33:08]OFD Sender: No OFD packet to send [08:33:13]OFD Sender: No OFD packet to send [08:33:18]OFD Sender: No OFD packet to send [08:33:23]OFD Sender: No OFD packet to send [08:33:28]OFD Sender: No OFD packet to send [08:33:33]OFD Sender: No OFD packet to send [08:33:38]OFD Sender: No OFD packet to send [08:33:43]OFD Sender: No OFD packet to send [08:33:46]accept exits with 7 [08:33:46]New connection [08:33:46]New thread 3067338084 created [08:33:46]Thread 3067481444 joined [08:33:46]Waiting for new connection... [08:33:46] Sock 7.Parse request [08:33:46]Sock 7.Check first char [08:33:46]Sock 7.First char is OK [08:33:46]request: POST /json_proto HTTP/1.0 [08:33:46]Method: POST [08:33:46]URL: /json_proto [08:33:46]Method is POST - this is cgi request [08:33:46]url: /json_proto [08:33:46]query_string will be loaded in cgi processing [08:33:46]execute_cgi json_proto POST (null) [08:33:46]execute_cgi path=json_proto method=POST [08:33:46]POST find Content-Length [08:33:46]Host: 172.17.62.5:8080 [08:33:46]Content-Length: 677 [08:33:46]Content-Type: application/json [08:33:46] [08:33:46]POST finish read [08:33:46]Found Content-Length = 677 [08:33:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:46]execute_script... [08:33: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)191314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:46]POST & json_proto [08:33:46]process_json_proto [08:33:46]json parsed OK: [08:33:46]protocol is kg_v1.0 [08:33:46]action value=close_receipt [08:33:46]process_action close_receipt [08:33:46]cmd_close_receipt [08:33:46]MH_GetDate [08:33:46]Write to MH i2c: F0 00 00 CE 1A D7 [08:33:46]Write i2c OK [08:33:46]MH_I2C_Read... [08:33:46]Read from MH i2c: F0 [08:33:46]MH_I2C_Read... [08:33:46]Read from MH i2c: F0 09 00 [08:33:46]MH_I2C_Read... [08:33:46]Read from MH i2c: F0 09 00 CE 1A 00 6D CF 24 66 F4 E9 65 64 4C [08:33:46]GetLastDocTimeStamp 1713687632 [08:33:46]current date 1713688429 [08:33:46]FM_GetShiftState [08:33:46]SAM_PROTO_GetShiftState [08:33:46]wFMCommunicate request_size=4 [08:33:46]MH_SAM_APDU [08:33:46]CAPDU: 80 13 01 00 [08:33:46]Write to MH i2c: E2 08 00 CF 1A 80 13 01 00 00 00 00 00 66 [08:33:46]Write i2c OK [08:33:46]MH_I2C_Read... [08:33:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:46]Read from MH i2c: E2 [08:33:46]MH_I2C_Read... [08:33:46]Read from MH i2c: E2 0E 00 [08:33:46]MH_I2C_Read... [08:33:46]Read from MH i2c: E2 0E 00 CF 1A 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 AD [08:33:46]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [08:33:46]wFMCommunicate OK [08:33:46]SAM_PROTO_GetShiftState done [08:33:46]FM_GetShiftState done [08:33:46]opened in 1713658965 [08:33:46]opened+sec_in_day 1713745365 [08:33:46]quantity*price = 50038 [08:33:46]sum+1 = 50040 [08:33:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 40 21.04.2024 08:33 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76784 ФПД: 22006913411450 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T083349&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76784&fm=22006913411450&tin=02508201610067®Number=0000000000091573&sum=50000 [08:33:47]StoreToDocumentArchive [08:33:47]shift 372 fd 76784 [08:33:47]save to /storage/0372/doc_00076784 [08:33:47]save last doc name /storage/0372/doc_00076784 to /storage/kkm_last_doc_name [08:33:47]save OK [08:33:47]Clear old archive folders... [08:33:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:33:47]tlvbuf is B6FD6770 [08:33:47]SAM_PROTO_ClearQueue [08:33:47]wFMCommunicate request_size=4 [08:33:47]MH_SAM_APDU [08:33:47]CAPDU: 80 09 00 00 [08:33:47]Write to MH i2c: E2 08 00 DC 1A 80 09 00 00 00 00 00 00 68 [08:33:47]Write i2c OK [08:33:47]MH_I2C_Read... [08:33:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:33:47]Read from MH i2c: E2 [08:33:47]MH_I2C_Read... [08:33:47]Read from MH i2c: E2 03 00 [08:33:47]MH_I2C_Read... [08:33:47]Read from MH i2c: E2 03 00 DC 1A 00 90 00 6A [08:33:47]RAPDU: 90 00 [08:33:47]wFMCommunicate OK [08:33:47]SAM_PROTO_ClearQueue done [08:33:47]KKMCreateOFDPacket [08:33:47]OFDProtocolAddRootSTLVToBuf [08:33:47]FM_MakeSignedData [08:33:47]FM_MakeSignedData [08:33:47]SAM_PROTO_SignData [08:33:47]wFMCommunicate request_size=4 [08:33:47]MH_SAM_APDU [08:33:47]CAPDU: 80 0D 01 02 [08:33:47]Write to MH i2c: E2 08 00 DD 1A 80 0D 01 02 00 00 00 00 70 [08:33:47]Write i2c OK [08:33:47]MH_I2C_Read... [08:33:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:33:47]Read from MH i2c: E2 [08:33:47]MH_I2C_Read... [08:33:47]Read from MH i2c: E2 03 00 [08:33:47]MH_I2C_Read... [08:33:47]Read from MH i2c: E2 03 00 DD 1A 00 90 00 6B [08:33:47]RAPDU: 90 00 [08:33:47]wFMCommunicate OK [08:33:47]wFMCommunicate request_size=255 [08:33:47]MH_SAM_APDU [08:33: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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 6D CF 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F0 2B 01 00 35 04 06 00 14 [08:33:47]Write to MH i2c: E2 02 01 DE 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 6D CF 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F0 2B 01 00 35 04 06 00 14 00 00 B8 [08:33:47]Write i2c OK [08:33:47]MH_I2C_Read... [08:33:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:47]Read from MH i2c: E2 [08:33:47]MH_I2C_Read... [08:33:47]Read from MH i2c: E2 03 00 [08:33:47]MH_I2C_Read... [08:33:47]Read from MH i2c: E2 03 00 DE 1A 00 90 00 6C [08:33:47]RAPDU: 90 00 [08:33:47]wFMCommunicate OK [08:33:47]wFMCommunicate request_size=10 [08:33:47]MH_SAM_APDU [08:33:47]CAPDU: 80 0D 02 02 05 03 E2 41 A9 7A [08:33:47]Write to MH i2c: E2 0D 00 DF 1A 80 0D 02 02 05 00 03 E2 41 A9 7A 00 00 C6 [08:33:47]Write i2c OK [08:33:47]MH_I2C_Read... [08:33:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:47]Read from MH i2c: E2 [08:33:47]MH_I2C_Read... [08:33:47]Read from MH i2c: E2 03 00 [08:33:47]MH_I2C_Read... [08:33:47]Read from MH i2c: E2 03 00 DF 1A 00 90 00 6D [08:33:47]RAPDU: 90 00 [08:33:47]wFMCommunicate OK [08:33:47]wFMCommunicate request_size=4 [08:33:47]MH_SAM_APDU [08:33:47]CAPDU: 80 0D 03 02 [08:33:47]Write to MH i2c: E2 08 00 E0 1A 80 0D 03 02 00 00 00 00 75 [08:33:47]Write i2c OK [08:33:47]MH_I2C_Read... [08:33:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:33:47]Read from MH i2c: E2 [08:33:47]MH_I2C_Read... [08:33:47]Read from MH i2c: E2 0B 00 [08:33:47]MH_I2C_Read... [08:33:47]Read from MH i2c: E2 0B 00 E0 1A 00 6C FD B0 3D 78 46 8F 9F 90 00 B8 [08:33:47]RAPDU: 6C FD B0 3D 78 46 8F 9F 90 00 [08:33:47]wFMCommunicate OK [08:33:47]SAM_PROTO_SignData done [08:33:47]FM_MakeSignedData done [08:33:47]CreateOFDProtocolMessage [08:33:47]wFMCommunicate request_size=4 [08:33:47]MH_SAM_APDU [08:33:47]CAPDU: 80 11 00 00 [08:33:47]Write to MH i2c: E2 08 00 E1 1A 80 11 00 00 00 00 00 00 75 [08:33:47]Write i2c OK [08:33:47]MH_I2C_Read... [08:33:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:47]Read from MH i2c: E2 [08:33:47]MH_I2C_Read... [08:33:47]Read from MH i2c: E2 17 00 [08:33:47]MH_I2C_Read... [08:33:47]Read from MH i2c: E2 17 00 E1 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 C8 [08:33:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:33:47]wFMCommunicate OK [08:33:47]CreateOFDProtocolMessage done [08:33:47]OFDSenderStorePacket 76784 [08:33:47]StoreOFDPacket docnum=76784 [08:33:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 E8 65 07 01 DC 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 6D CF 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F0 2B 01 00 35 04 06 00 14 03 E2 41 A9 7A 6C FD B0 3D 78 46 8F 9F [08:33:47]CheckFolder [08:33:47]dirname=/storage/ofd_packets [08:33:47]CheckFolder done [08:33:47]ProducePacketName [08:33:47]name=ofd_packets/00076784 [08:33:47]NVStorageSaveData ofd_packets/00076784 [08:33:47]File name is /storage/ofd_packets/00076784 [08:33:47]Write 301 bytes [08:33:47]NVStorageSaveData done [08:33:47]OFDSenderStorePacket done [08:33:47]KKMCreateOFDPacket done [08:33:47]NVStorageSaveData kkm_last_timestamp [08:33:47]File name is /storage/kkm_last_timestamp [08:33:47]Write 4 bytes [08:33:47]NVStorageSaveData done [08:33:47]ExternCall_PrintAddStr [08:33:47]wPrintStart [08:33:47]Write to MH i2c: 01 00 00 E2 1A FC [08:33:47]Write i2c OK [08:33:47]MH_I2C_Read... [08:33:47]Read from MH i2c: 01 [08:33:47]MH_I2C_Read... [08:33:47]Read from MH i2c: 01 07 00 [08:33:47]MH_I2C_Read... [08:33:47]Read from MH i2c: 01 07 00 E2 1A 00 00 00 00 00 FF 0F 11 [08:33:47]RasterBufferAndPrint [08:33:47]line Счет N : (1)191314 [08:33:47]line ИНН: 02508201610067 [08:33:47]line Контрольно-Кассовый Чек [08:33:47]line ПРОДАЖА [08:33:47]line ТРК (МРК, ГНК) : 43 [08:33:47]line Товар: 2710124130 [08:33:47]line Аи-92-К-5 [08:33:47]line 7.770 * 64.40 [08:33:47]line = 500.39 [08:33:47]line НДС 12% НСП 1% [08:33:47]line > о реализуемом товаре [08:33:47]line ОКРУГЛЕНИЕ: -0.39 [08:33:47]line ИТОГО: 500.00 [08:33:47]line Внесено: 500.00 [08:33:47]line СДАЧА: 0.00 [08:33:47]line НСП 1% : 4.43 [08:33:47]line НДС 12% : 53.14 [08:33:47]line Наличными: 500.00 [08:33:47]line Безнал.: 0.00 [08:33:47]line Место: АЗС № 106 "Партнер Нефть" [08:33:47]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [08:33:47]line СНО: Общий режим [08:33:47]line Чек 40 21.04.2024 08:33 [08:33:47]line Смена: 372 ФФД: 1.0 [08:33:47]line ЗНМ: 0300000141 [08:33:47]line РНМ: 0000000000091573 [08:33:47]line Версия ККМ: 001 [08:33:47]line ФМ: 0000000000874652 [08:33:47]line ФД: 76784 [08:33:48]line ФПД: 22006913411450 [08:33:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T083349&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76784&fm=22006913411450&tin=02508201610067®Number=0000000000091573&sum=50000 [08:33:48]OFD Sender: Processing packet 76784 [packets to send 129, broken 128] [08:33:48]ProducePacketName [08:33:48]name=ofd_packets/00076784 [08:33:48]OFD Sender: To server: pG, [08:33:48]CommunicateWithHost lk.salyk.kg:30040 [08:33:48]ConnectInit lk.salyk.kg [08:33:48]written 0, free lines is 4095 [08:33:48]Write to MH i2c: 01 00 00 0C 1B 27 [08:33:48]Write i2c OK [08:33:48]MH_I2C_Read... [08:33:48]Read from MH i2c: 01 [08:33:48]MH_I2C_Read... [08:33:48]Read from MH i2c: 01 07 00 [08:33:48]MH_I2C_Read... [08:33:48]Read from MH i2c: 01 07 00 0C 1B 00 00 00 00 00 DC 0C 16 [08:33:48]RasterBufferAndPrint [08:33:48]line [08:33:48]line [08:33:48]line [08:33:48]line [08:33:48]line [08:33:48]written 0, free lines is 3296 [08:33:48]MH_Cut [08:33:48]Write to MH i2c: D1 01 00 13 1B 01 00 [08:33:48]Write i2c OK [08:33:48]MH_I2C_Read... [08:33:48]Read from MH i2c: D1 [08:33:48]MH_I2C_Read... [08:33:48]Read from MH i2c: D1 01 00 [08:33:48]MH_I2C_Read... [08:33:48]Read from MH i2c: D1 01 00 13 1B 00 FF [08:33:48]Write to MH i2c: 01 00 00 14 1B 2F [08:33:48]Write i2c OK [08:33:48]MH_I2C_Read... [08:33:49]*** Cut start [08:33:49]*** Partial cut [08:33:49]*** CUTSNS_PIN = 1 [08:33:49]*** CUTSNS_PIN = 0 [08:33:49]*** Brake cut motor [08:33:49]Read from MH i2c: 01 [08:33:49]MH_I2C_Read... [08:33:49]*** Stop cut motor [08:33:49]*** Cut end [08:33:49]Read from MH i2c: 01 07 00 [08:33:49]MH_I2C_Read... [08:33:49]Read from MH i2c: 01 07 00 14 1B 00 00 00 00 00 FF 0F 44 [08:33:49]process_action close_receipt done [08:33:49]requested_data is exist [08:33:49]produce_requested_data [08:33:49]requested_item fm.sn is exist - process it [08:33:49]wFMCommunicate request_size=4 [08:33:49]MH_SAM_APDU [08:33:49]CAPDU: 80 11 00 00 [08:33:49]Write to MH i2c: E2 08 00 15 1B 80 11 00 00 00 00 00 00 AA [08:33:49]Write i2c OK [08:33:49]MH_I2C_Read... [08:33:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:50]Read from MH i2c: E2 [08:33:50]MH_I2C_Read... [08:33:50]Read from MH i2c: E2 17 00 [08:33:50]MH_I2C_Read... [08:33:50]Read from MH i2c: E2 17 00 15 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 FD [08:33:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:33:50]wFMCommunicate OK [08:33:50]requested_item fd.num is exist - process it [08:33:50]SAM_PROTO_GetFieldsCounters [08:33:50]wFMCommunicate request_size=4 [08:33:50]MH_SAM_APDU [08:33:50]CAPDU: 80 13 00 00 [08:33:50]Write to MH i2c: E2 08 00 16 1B 80 13 00 00 00 00 00 00 AD [08:33:50]Write i2c OK [08:33:50]MH_I2C_Read... [08:33:50]Connected sock=11 [08:33:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 E8 65 07 01 DC 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 6D CF 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F0 2B 01 00 35 04 06 00 14 03 E2 41 A9 7A 6C FD B0 3D 78 46 8F 9F [08:33:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:33:50]Read from MH i2c: E2 [08:33:50]MH_I2C_Read... [08:33:50]Read from MH i2c: E2 62 00 [08:33:50]MH_I2C_Read... [08:33:50]Read from MH i2c: E2 62 00 16 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F0 2B 01 00 0E 04 04 00 74 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 D7 [08:33: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F0 2B 01 00 0E 04 04 00 74 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 [08:33:50]wFMCommunicate OK [08:33:50]SAM_PROTO_GetFieldsCounters done [08:33:50]requested_item shift.num is exist - process it [08:33:50]requested_item shift.opened is exist - process it [08:33:50]req_shift_opened [08:33:50]FM_GetShiftState [08:33:50]SAM_PROTO_GetShiftState [08:33:50]wFMCommunicate request_size=4 [08:33:50]MH_SAM_APDU [08:33:50]CAPDU: 80 13 01 00 [08:33:50]Write to MH i2c: E2 08 00 17 1B 80 13 01 00 00 00 00 00 AF [08:33:50]Write i2c OK [08:33:50]MH_I2C_Read... [08:33:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:50]Read from MH i2c: E2 [08:33:50]MH_I2C_Read... [08:33:50]Read from MH i2c: E2 0E 00 [08:33:50]MH_I2C_Read... [08:33:50]Read from MH i2c: E2 0E 00 17 1B 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 F6 [08:33:50]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [08:33:50]wFMCommunicate OK [08:33:50]SAM_PROTO_GetShiftState done [08:33:50]FM_GetShiftState done [08:33:50]req_shift_opened done [08:33:50]requested_item shift.open_date is exist - process it [08:33:50]req_shift_open_date [08:33:50]req_shift_open_date done [08:33:50]produce_requested_data done [08:33:50]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76784,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [08:33:50]process_action_free close_receipt [08:33:50]json_value_free [08:33:50]json_value_free done [08:33:50]process_json_proto returns [08:33:50]Send response to host [08:33:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76784,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [08:33:50]free response buf [08:33:50]execute_script done [08:33:50]execute_script returns [08:33:50]free content buf [08:33:50]Sock 7.Close socket [08:33:50]Sock 7.Thread stoped [08:33:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 0E BF 47 00 38 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F0 2B 01 00 F4 03 04 00 F5 76 24 66 B6 04 01 00 00 71 2F DD EE A2 10 C7 53 [08:33:50]CommunicateWithHost err = 0 [08:33:50]CheckOFDResponse [08:33:50]1017 (14) - 77093643461234 [08:33:50]1041 (16) - 0000000000874652 [08:33:50]1040 (4) - 76784 [08:33:50]1012 (4) - 21.04.2024 02:16 [08:33:50]1206 (1) - 0 [08:33:50]OFD Sender: Remove packet 76784 [08:33:50]ProducePacketName [08:33:50]name=ofd_packets/00076784 [08:33:50]NVStorageDeleteData [08:33:50]OFD Sender: No OFD packet to send [08:33:55]OFD Sender: No OFD packet to send [08:34:00]OFD Sender: No OFD packet to send [08:34:05]OFD Sender: No OFD packet to send [08:34:10]OFD Sender: No OFD packet to send [08:34:15]OFD Sender: No OFD packet to send [08:34:20]OFD Sender: No OFD packet to send [08:34:25]OFD Sender: No OFD packet to send [08:34:30]OFD Sender: No OFD packet to send [08:34:35]OFD Sender: No OFD packet to send [08:34:40]OFD Sender: No OFD packet to send [08:34:45]OFD Sender: No OFD packet to send [08:34:50]OFD Sender: No OFD packet to send [08:34:55]OFD Sender: No OFD packet to send [08:35:00]OFD Sender: No OFD packet to send [08:35:05]OFD Sender: No OFD packet to send [08:35:10]OFD Sender: No OFD packet to send [08:35:15]OFD Sender: No OFD packet to send [08:35:20]OFD Sender: No OFD packet to send [08:35:25]OFD Sender: No OFD packet to send [08:35:30]OFD Sender: No OFD packet to send [08:35:35]OFD Sender: No OFD packet to send [08:35:40]OFD Sender: No OFD packet to send [08:35:45]OFD Sender: No OFD packet to send [08:35:50]OFD Sender: No OFD packet to send [08:35:55]OFD Sender: No OFD packet to send [08:36:00]OFD Sender: No OFD packet to send [08:36:05]OFD Sender: No OFD packet to send [08:36:10]OFD Sender: No OFD packet to send [08:36:15]OFD Sender: No OFD packet to send [08:36:20]OFD Sender: No OFD packet to send [08:36:25]OFD Sender: No OFD packet to send [08:36:30]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:21]OFD Sender: No OFD packet to send [08:39:26]OFD Sender: No OFD packet to send [08:39:31]OFD Sender: No OFD packet to send [08:39:36]OFD Sender: No OFD packet to send [08:39:41]OFD Sender: No OFD packet to send [08:39:46]OFD Sender: No OFD packet to send [08:39:51]OFD Sender: No OFD packet to send [08:39:56]OFD Sender: No OFD packet to send [08:40:01]OFD Sender: No OFD packet to send [08:40:06]OFD Sender: No OFD packet to send [08:40:11]OFD Sender: No OFD packet to send [08:40:16]OFD Sender: No OFD packet to send [08:40:21]OFD Sender: No OFD packet to send [08:40:26]OFD Sender: No OFD packet to send [08:40:31]OFD Sender: No OFD packet to send [08:40:36]OFD Sender: No OFD packet to send [08:40:41]OFD Sender: No OFD packet to send [08:40:46]OFD Sender: No OFD packet to send [08:40:51]OFD Sender: No OFD packet to send [08:40:56]OFD Sender: No OFD packet to send [08:41:01]OFD Sender: No OFD packet to send [08:41:06]OFD Sender: No OFD packet to send [08:41:11]OFD Sender: No OFD packet to send [08:41:16]OFD Sender: No OFD packet to send [08:41:21]OFD Sender: No OFD packet to send [08:41:26]OFD Sender: No OFD packet to send [08:41:31]OFD Sender: No OFD packet to send [08:41:36]OFD Sender: No OFD packet to send [08:41:41]OFD Sender: No OFD packet to send [08:41:46]OFD Sender: No OFD packet to send [08:41:51]OFD Sender: No OFD packet to send [08:41:56]OFD Sender: No OFD packet to send [08:42:01]OFD Sender: No OFD packet to send [08:42:06]OFD Sender: No OFD packet to send [08:42:11]OFD Sender: No OFD packet to send [08:42:16]OFD Sender: No OFD packet to send [08:42:21]OFD Sender: No OFD packet to send [08:42:26]OFD Sender: No OFD packet to send [08:42:31]OFD Sender: No OFD packet to send [08:42:36]OFD Sender: No OFD packet to send [08:42:41]OFD Sender: No OFD packet to send [08:42:46]OFD Sender: No OFD packet to send [08:42:51]OFD Sender: No OFD packet to send [08:42:56]OFD Sender: No OFD packet to send [08:43:01]OFD Sender: No OFD packet to send [08:43:06]OFD Sender: No OFD packet to send [08:43:11]OFD Sender: No OFD packet to send [08:43:16]OFD Sender: No OFD packet to send [08:43:21]OFD Sender: No OFD packet to send [08:43:26]OFD Sender: No OFD packet to send [08:43:31]OFD Sender: No OFD packet to send [08:43:36]OFD Sender: No OFD packet to send [08:43:41]OFD Sender: No OFD packet to send [08:43:46]OFD Sender: No OFD packet to send [08:43:51]OFD Sender: No OFD packet to send [08:43:56]OFD Sender: No OFD packet to send [08:44:01]OFD Sender: No OFD packet to send [08:44:06]OFD Sender: No OFD packet to send [08:44:11]OFD Sender: No OFD packet to send [08:44:16]OFD Sender: No OFD packet to send [08:44:21]OFD Sender: No OFD packet to send [08:44:26]OFD Sender: No OFD packet to send [08:44:31]OFD Sender: No OFD packet to send [08:44:36]OFD Sender: No OFD packet to send [08:44:41]OFD Sender: No OFD packet to send [08:44:46]OFD Sender: No OFD packet to send [08:44:51]OFD Sender: No OFD packet to send [08:44:56]OFD Sender: No OFD packet to send [08:45:01]OFD Sender: No OFD packet to send [08:45:06]OFD Sender: No OFD packet to send [08:45:11]OFD Sender: No OFD packet to send [08:45:16]OFD Sender: No OFD packet to send [08:45:21]OFD Sender: No OFD packet to send [08:45:26]OFD Sender: No OFD packet to send [08:45:31]OFD Sender: No OFD packet to send [08:45:36]OFD Sender: No OFD packet to send [08:45:41]OFD Sender: No OFD packet to send [08:45:46]OFD Sender: No OFD packet to send [08:45:51]OFD Sender: No OFD packet to send [08:45:56]OFD Sender: No OFD packet to send [08:46:01]OFD Sender: No OFD packet to send [08:46:06]OFD Sender: No OFD packet to send [08:46:11]OFD Sender: No OFD packet to send [08:46:16]OFD Sender: No OFD packet to send [08:46:21]OFD Sender: No OFD packet to send [08:46:26]OFD Sender: No OFD packet to send [08:46:31]OFD Sender: No OFD packet to send [08:46:36]OFD Sender: No OFD packet to send [08:46:41]OFD Sender: No OFD packet to send [08:46:46]OFD Sender: No OFD packet to send [08:46:51]OFD Sender: No OFD packet to send [08:46:56]OFD Sender: No OFD packet to send [08:47:01]OFD Sender: No OFD packet to send [08:47:06]OFD Sender: No OFD packet to send [08:47:11]OFD Sender: No OFD packet to send [08:47:16]OFD Sender: No OFD packet to send [08:47:21]OFD Sender: No OFD packet to send [08:47:26]OFD Sender: No OFD packet to send [08:47:31]OFD Sender: No OFD packet to send [08:47:36]OFD Sender: No OFD packet to send [08:47:41]OFD Sender: No OFD packet to send [08:47:46]OFD Sender: No OFD packet to send [08:47:51]OFD Sender: No OFD packet to send [08:47:56]OFD Sender: No OFD packet to send [08:48:01]OFD Sender: No OFD packet to send [08:48:06]OFD Sender: No OFD packet to send [08:48:11]OFD Sender: No OFD packet to send [08:48:16]OFD Sender: No OFD packet to send [08:48:21]OFD Sender: No OFD packet to send [08:48:26]OFD Sender: No OFD packet to send [08:48:31]OFD Sender: No OFD packet to send [08:48:36]OFD Sender: No OFD packet to send [08:48:41]OFD Sender: No OFD packet to send [08:48:46]OFD Sender: No OFD packet to send [08:48:51]OFD Sender: No OFD packet to send [08:48:56]OFD Sender: No OFD packet to send [08:49:01]OFD Sender: No OFD packet to send [08:49:06]OFD Sender: No OFD packet to send [08:49:11]OFD Sender: No OFD packet to send [08:49:16]OFD Sender: No OFD packet to send [08:49:21]OFD Sender: No OFD packet to send [08:49:26]OFD Sender: No OFD packet to send [08:49:31]OFD Sender: No OFD packet to send [08:49:36]OFD Sender: No OFD packet to send [08:49:41]OFD Sender: No OFD packet to send [08:49:46]OFD Sender: No OFD packet to send [08:49:51]OFD Sender: No OFD packet to send [08:49:56]OFD Sender: No OFD packet to send [08:50:01]OFD Sender: No OFD packet to send [08:50:06]OFD Sender: No OFD packet to send [08:50:11]OFD Sender: No OFD packet to send [08:50:16]OFD Sender: No OFD packet to send [08:50:21]OFD Sender: No OFD packet to send [08:50:26]OFD Sender: No OFD packet to send [08:50:31]OFD Sender: No OFD packet to send [08:50:36]OFD Sender: No OFD packet to send [08:50:41]OFD Sender: No OFD packet to send [08:50:46]OFD Sender: No OFD packet to send [08:50:52]OFD Sender: No OFD packet to send [08:50:57]OFD Sender: No OFD packet to send [08:51:02]OFD Sender: No OFD packet to send [08:51:07]OFD Sender: No OFD packet to send [08:51:12]OFD Sender: No OFD packet to send [08:51:17]OFD Sender: No OFD packet to send [08:51:22]OFD Sender: No OFD packet to send [08:51:27]OFD Sender: No OFD packet to send [08:51:32]OFD Sender: No OFD packet to send [08:51:37]OFD Sender: No OFD packet to send [08:51:42]OFD Sender: No OFD packet to send [08:51:47]OFD Sender: No OFD packet to send [08:51:52]OFD Sender: No OFD packet to send [08:51:57]OFD Sender: No OFD packet to send [08:52:02]OFD Sender: No OFD packet to send [08:52:07]OFD Sender: No OFD packet to send [08:52:12]OFD Sender: No OFD packet to send [08:52:17]OFD Sender: No OFD packet to send [08:52:22]OFD Sender: No OFD packet to send [08:52:25]accept exits with 9 [08:52:25]New connection [08:52:25]New thread 3067481444 created [08:52:25]Thread 3067338084 joined [08:52:25]Waiting for new connection... [08:52:25] Sock 9.Parse request [08:52:25]Sock 9.Check first char [08:52:25]Sock 9.First char is OK [08:52:25]request: POST /json_proto HTTP/1.0 [08:52:25]Method: POST [08:52:25]URL: /json_proto [08:52:25]Method is POST - this is cgi request [08:52:25]url: /json_proto [08:52:25]query_string will be loaded in cgi processing [08:52:25]execute_cgi json_proto POST (null) [08:52:25]execute_cgi path=json_proto method=POST [08:52:25]POST find Content-Length [08:52:25]Host: 172.17.62.5:8080 [08:52:25]Content-Length: 682 [08:52:25]Content-Type: application/json [08:52:25] [08:52:25]POST finish read [08:52:25]Found Content-Length = 682 [08:52:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [08:52:25]execute_script... [08:52: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)191316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [08:52:25]POST & json_proto [08:52:25]process_json_proto [08:52:25]json parsed OK: [08:52:25]protocol is kg_v1.0 [08:52:25]action value=close_receipt [08:52:25]process_action close_receipt [08:52:25]cmd_close_receipt [08:52:25]MH_GetDate [08:52:25]Write to MH i2c: F0 00 00 18 1B 22 [08:52:25]Write i2c OK [08:52:25]MH_I2C_Read... [08:52:25]Read from MH i2c: F0 [08:52:25]MH_I2C_Read... [08:52:25]Read from MH i2c: F0 09 00 [08:52:25]MH_I2C_Read... [08:52:25]Read from MH i2c: F0 09 00 18 1B 00 CD D3 24 66 F4 E9 65 64 FB [08:52:25]GetLastDocTimeStamp 1713688429 [08:52:25]current date 1713689549 [08:52:25]FM_GetShiftState [08:52:25]SAM_PROTO_GetShiftState [08:52:25]wFMCommunicate request_size=4 [08:52:25]MH_SAM_APDU [08:52:25]CAPDU: 80 13 01 00 [08:52:25]Write to MH i2c: E2 08 00 19 1B 80 13 01 00 00 00 00 00 B1 [08:52:25]Write i2c OK [08:52:25]MH_I2C_Read... [08:52:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:25]Read from MH i2c: E2 [08:52:25]MH_I2C_Read... [08:52:25]Read from MH i2c: E2 0E 00 [08:52:25]MH_I2C_Read... [08:52:25]Read from MH i2c: E2 0E 00 19 1B 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 F8 [08:52:25]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [08:52:25]wFMCommunicate OK [08:52:25]SAM_PROTO_GetShiftState done [08:52:25]FM_GetShiftState done [08:52:25]opened in 1713658965 [08:52:25]opened+sec_in_day 1713745365 [08:52:25]quantity*price = 500021 [08:52:25]sum+1 = 500022 [08:52:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 531.00 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 41 21.04.2024 08:52 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76785 ФПД: 253996395994094 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T085229&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76785&fm=253996395994094&tin=02508201610067®Number=0000000000091573&sum=500000 [08:52:26]StoreToDocumentArchive [08:52:26]shift 372 fd 76785 [08:52:26]save to /storage/0372/doc_00076785 [08:52:26]save last doc name /storage/0372/doc_00076785 to /storage/kkm_last_doc_name [08:52:26]save OK [08:52:26]Clear old archive folders... [08:52:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:52:26]tlvbuf is 018EFA70 [08:52:26]SAM_PROTO_ClearQueue [08:52:26]wFMCommunicate request_size=4 [08:52:26]MH_SAM_APDU [08:52:26]CAPDU: 80 09 00 00 [08:52:26]Write to MH i2c: E2 08 00 26 1B 80 09 00 00 00 00 00 00 B3 [08:52:26]Write i2c OK [08:52:26]MH_I2C_Read... [08:52:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:52:26]Read from MH i2c: E2 [08:52:26]MH_I2C_Read... [08:52:26]Read from MH i2c: E2 03 00 [08:52:26]MH_I2C_Read... [08:52:26]Read from MH i2c: E2 03 00 26 1B 00 90 00 B5 [08:52:26]RAPDU: 90 00 [08:52:26]wFMCommunicate OK [08:52:26]SAM_PROTO_ClearQueue done [08:52:26]KKMCreateOFDPacket [08:52:26]OFDProtocolAddRootSTLVToBuf [08:52:26]FM_MakeSignedData [08:52:26]FM_MakeSignedData [08:52:26]SAM_PROTO_SignData [08:52:26]wFMCommunicate request_size=4 [08:52:26]MH_SAM_APDU [08:52:26]CAPDU: 80 0D 01 02 [08:52:26]Write to MH i2c: E2 08 00 27 1B 80 0D 01 02 00 00 00 00 BB [08:52:26]Write i2c OK [08:52:26]MH_I2C_Read... [08:52:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:52:26]Read from MH i2c: E2 [08:52:26]MH_I2C_Read... [08:52:26]Read from MH i2c: E2 03 00 [08:52:26]MH_I2C_Read... [08:52:26]Read from MH i2c: E2 03 00 27 1B 00 90 00 B6 [08:52:26]RAPDU: 90 00 [08:52:26]wFMCommunicate OK [08:52:26]wFMCommunicate request_size=255 [08:52:26]MH_SAM_APDU [08:52: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 29 00 00 00 F4 03 04 00 CD D3 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F1 2B 01 00 35 04 06 00 E7 [08:52:26]Write to MH i2c: E2 02 01 28 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 29 00 00 00 F4 03 04 00 CD D3 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F1 2B 01 00 35 04 06 00 E7 00 00 27 [08:52:26]Write i2c OK [08:52:26]MH_I2C_Read... [08:52:27]OFD Sender: No OFD packet to send [08:52:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:27]Read from MH i2c: E2 [08:52:27]MH_I2C_Read... [08:52:27]Read from MH i2c: E2 03 00 [08:52:27]MH_I2C_Read... [08:52:27]Read from MH i2c: E2 03 00 28 1B 00 90 00 B7 [08:52:27]RAPDU: 90 00 [08:52:27]wFMCommunicate OK [08:52:27]wFMCommunicate request_size=10 [08:52:27]MH_SAM_APDU [08:52:27]CAPDU: 80 0D 02 02 05 02 24 F5 1B EE [08:52:27]Write to MH i2c: E2 0D 00 29 1B 80 0D 02 02 05 00 02 24 F5 1B EE 00 00 EC [08:52:27]Write i2c OK [08:52:27]MH_I2C_Read... [08:52:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:27]Read from MH i2c: E2 [08:52:27]MH_I2C_Read... [08:52:27]Read from MH i2c: E2 03 00 [08:52:27]MH_I2C_Read... [08:52:27]Read from MH i2c: E2 03 00 29 1B 00 90 00 B8 [08:52:27]RAPDU: 90 00 [08:52:27]wFMCommunicate OK [08:52:27]wFMCommunicate request_size=4 [08:52:27]MH_SAM_APDU [08:52:27]CAPDU: 80 0D 03 02 [08:52:27]Write to MH i2c: E2 08 00 2A 1B 80 0D 03 02 00 00 00 00 C0 [08:52:27]Write i2c OK [08:52:27]MH_I2C_Read... [08:52:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:52:27]Read from MH i2c: E2 [08:52:27]MH_I2C_Read... [08:52:27]Read from MH i2c: E2 0B 00 [08:52:27]MH_I2C_Read... [08:52:27]Read from MH i2c: E2 0B 00 2A 1B 00 D3 1F 4E D6 FD AD F1 82 90 00 F4 [08:52:27]RAPDU: D3 1F 4E D6 FD AD F1 82 90 00 [08:52:27]wFMCommunicate OK [08:52:27]SAM_PROTO_SignData done [08:52:27]FM_MakeSignedData done [08:52:27]CreateOFDProtocolMessage [08:52:27]wFMCommunicate request_size=4 [08:52:27]MH_SAM_APDU [08:52:27]CAPDU: 80 11 00 00 [08:52:27]Write to MH i2c: E2 08 00 2B 1B 80 11 00 00 00 00 00 00 C0 [08:52:27]Write i2c OK [08:52:27]MH_I2C_Read... [08:52:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:27]Read from MH i2c: E2 [08:52:27]MH_I2C_Read... [08:52:27]Read from MH i2c: E2 17 00 [08:52:27]MH_I2C_Read... [08:52:27]Read from MH i2c: E2 17 00 2B 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 13 [08:52:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:52:27]wFMCommunicate OK [08:52:27]CreateOFDProtocolMessage done [08:52:27]OFDSenderStorePacket 76785 [08:52:27]StoreOFDPacket docnum=76785 [08:52:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 AD 52 07 01 4B 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 29 00 00 00 F4 03 04 00 CD D3 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F1 2B 01 00 35 04 06 00 E7 02 24 F5 1B EE D3 1F 4E D6 FD AD F1 82 [08:52:27]CheckFolder [08:52:27]dirname=/storage/ofd_packets [08:52:27]CheckFolder done [08:52:27]ProducePacketName [08:52:27]name=ofd_packets/00076785 [08:52:27]NVStorageSaveData ofd_packets/00076785 [08:52:27]File name is /storage/ofd_packets/00076785 [08:52:27]Write 301 bytes [08:52:27]NVStorageSaveData done [08:52:27]OFDSenderStorePacket done [08:52:27]KKMCreateOFDPacket done [08:52:27]NVStorageSaveData kkm_last_timestamp [08:52:27]File name is /storage/kkm_last_timestamp [08:52:27]Write 4 bytes [08:52:27]NVStorageSaveData done [08:52:27]ExternCall_PrintAddStr [08:52:27]wPrintStart [08:52:27]Write to MH i2c: 01 00 00 2C 1B 47 [08:52:27]Write i2c OK [08:52:27]MH_I2C_Read... [08:52:27]Read from MH i2c: 01 [08:52:27]MH_I2C_Read... [08:52:27]Read from MH i2c: 01 07 00 [08:52:27]MH_I2C_Read... [08:52:27]Read from MH i2c: 01 07 00 2C 1B 00 00 00 00 00 FF 0F 5C [08:52:27]RasterBufferAndPrint [08:52:27]line Счет N : (1)191316 [08:52:27]line ИНН: 02508201610067 [08:52:27]line Контрольно-Кассовый Чек [08:52:27]line ПРОДАЖА [08:52:27]line ТРК (МРК, ГНК) : 42 [08:52:27]line Товар: 2710124500 [08:52:27]line Аи-95-К-5 [08:52:27]line 68.590 * 72.90 [08:52:27]line = 5000.21 [08:52:27]line НДС 12% НСП 1% [08:52:27]line > о реализуемом товаре [08:52:27]line ОКРУГЛЕНИЕ: -0.21 [08:52:27]line ИТОГО: 5000.00 [08:52:27]line Внесено: 5000.00 [08:52:27]line СДАЧА: 0.00 [08:52:27]line НСП 1% : 44.25 [08:52:27]line НДС 12% : 531.00 [08:52:27]line Наличными: 5000.00 [08:52:27]line Безнал.: 0.00 [08:52:27]line Место: АЗС № 106 "Партнер Нефть" [08:52:27]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [08:52:27]line СНО: Общий режим [08:52:27]line Чек 41 21.04.2024 08:52 [08:52:27]line Смена: 372 ФФД: 1.0 [08:52:27]line ЗНМ: 0300000141 [08:52:27]line РНМ: 0000000000091573 [08:52:27]line Версия ККМ: 001 [08:52:27]line ФМ: 0000000000874652 [08:52:27]line ФД: 76785 [08:52:27]line ФПД: 253996395994094 [08:52:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T085229&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76785&fm=253996395994094&tin=02508201610067®Number=0000000000091573&sum=500000 [08:52:27]written 0, free lines is 4095 [08:52:27]OFD Sender: Processing packet 76785 [packets to send 129, broken 128] [08:52:27]ProducePacketName [08:52:27]name=ofd_packets/00076785 [08:52:27]OFD Sender: To server: pG, [08:52:27]CommunicateWithHost lk.salyk.kg:30040 [08:52:27]ConnectInit lk.salyk.kg [08:52:27]Connected sock=10 [08:52:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 AD 52 07 01 4B 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 29 00 00 00 F4 03 04 00 CD D3 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F1 2B 01 00 35 04 06 00 E7 02 24 F5 1B EE D3 1F 4E D6 FD AD F1 82 [08:52:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 42 CC 47 00 B5 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F1 2B 01 00 F4 03 04 00 52 7B 24 66 B6 04 01 00 00 61 10 8C 1A BD 9D 10 F1 [08:52:27]CommunicateWithHost err = 0 [08:52:27]CheckOFDResponse [08:52:27]1017 (14) - 77093643461234 [08:52:27]1041 (16) - 0000000000874652 [08:52:27]1040 (4) - 76785 [08:52:27]1012 (4) - 21.04.2024 02:34 [08:52:27]1206 (1) - 0 [08:52:27]OFD Sender: Remove packet 76785 [08:52:27]ProducePacketName [08:52:27]name=ofd_packets/00076785 [08:52:27]NVStorageDeleteData [08:52:27]Write to MH i2c: 01 00 00 56 1B 71 [08:52:27]Write i2c OK [08:52:27]MH_I2C_Read... [08:52:27]Read from MH i2c: 01 [08:52:27]MH_I2C_Read... [08:52:27]Read from MH i2c: 01 07 00 [08:52:27]MH_I2C_Read... [08:52:27]Read from MH i2c: 01 07 00 56 1B 00 00 00 00 00 F3 0C 77 [08:52:27]RasterBufferAndPrint [08:52:27]line [08:52:27]line [08:52:27]line [08:52:27]line [08:52:27]line [08:52:27]written 0, free lines is 3323 [08:52:27]MH_Cut [08:52:27]Write to MH i2c: D1 01 00 5D 1B 01 4A [08:52:27]Write i2c OK [08:52:27]MH_I2C_Read... [08:52:27]Read from MH i2c: D1 [08:52:27]MH_I2C_Read... [08:52:27]Read from MH i2c: D1 01 00 [08:52:27]MH_I2C_Read... [08:52:27]Read from MH i2c: D1 01 00 5D 1B 00 49 [08:52:27]Write to MH i2c: 01 00 00 5E 1B 79 [08:52:27]Write i2c OK [08:52:27]MH_I2C_Read... [08:52:28]OFD Sender: No OFD packet to send [08:52:28]*** Cut start [08:52:28]*** Partial cut [08:52:28]*** CUTSNS_PIN = 1 [08:52:28]*** CUTSNS_PIN = 0 [08:52:28]*** Brake cut motor [08:52:29]Read from MH i2c: 01 [08:52:29]MH_I2C_Read... [08:52:29]*** Stop cut motor [08:52:29]*** Cut end [08:52:29]Read from MH i2c: 01 07 00 [08:52:29]MH_I2C_Read... [08:52:29]Read from MH i2c: 01 07 00 5E 1B 00 00 00 00 00 FF 0F 8E [08:52:29]process_action close_receipt done [08:52:29]requested_data is exist [08:52:29]produce_requested_data [08:52:29]requested_item fm.sn is exist - process it [08:52:29]wFMCommunicate request_size=4 [08:52:29]MH_SAM_APDU [08:52:29]CAPDU: 80 11 00 00 [08:52:29]Write to MH i2c: E2 08 00 5F 1B 80 11 00 00 00 00 00 00 F4 [08:52:29]Write i2c OK [08:52:29]MH_I2C_Read... [08:52:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:29]Read from MH i2c: E2 [08:52:29]MH_I2C_Read... [08:52:29]Read from MH i2c: E2 17 00 [08:52:29]MH_I2C_Read... [08:52:29]Read from MH i2c: E2 17 00 5F 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 47 [08:52:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:52:29]wFMCommunicate OK [08:52:29]requested_item fd.num is exist - process it [08:52:29]SAM_PROTO_GetFieldsCounters [08:52:29]wFMCommunicate request_size=4 [08:52:29]MH_SAM_APDU [08:52:29]CAPDU: 80 13 00 00 [08:52:29]Write to MH i2c: E2 08 00 60 1B 80 13 00 00 00 00 00 00 F7 [08:52:29]Write i2c OK [08:52:29]MH_I2C_Read... [08:52:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:52:29]Read from MH i2c: E2 [08:52:29]MH_I2C_Read... [08:52:29]Read from MH i2c: E2 62 00 [08:52:29]MH_I2C_Read... [08:52:29]Read from MH i2c: E2 62 00 60 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F1 2B 01 00 0E 04 04 00 74 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 25 [08:52: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F1 2B 01 00 0E 04 04 00 74 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 [08:52:29]wFMCommunicate OK [08:52:29]SAM_PROTO_GetFieldsCounters done [08:52:29]requested_item shift.num is exist - process it [08:52:29]requested_item shift.opened is exist - process it [08:52:29]req_shift_opened [08:52:29]FM_GetShiftState [08:52:29]SAM_PROTO_GetShiftState [08:52:29]wFMCommunicate request_size=4 [08:52:29]MH_SAM_APDU [08:52:29]CAPDU: 80 13 01 00 [08:52:29]Write to MH i2c: E2 08 00 61 1B 80 13 01 00 00 00 00 00 F9 [08:52:29]Write i2c OK [08:52:29]MH_I2C_Read... [08:52:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:29]Read from MH i2c: E2 [08:52:29]MH_I2C_Read... [08:52:29]Read from MH i2c: E2 0E 00 [08:52:29]MH_I2C_Read... [08:52:29]Read from MH i2c: E2 0E 00 61 1B 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 40 [08:52:29]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [08:52:29]wFMCommunicate OK [08:52:29]SAM_PROTO_GetShiftState done [08:52:29]FM_GetShiftState done [08:52:29]req_shift_opened done [08:52:29]requested_item shift.open_date is exist - process it [08:52:29]req_shift_open_date [08:52:29]req_shift_open_date done [08:52:29]produce_requested_data done [08:52:29]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76785,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [08:52:29]process_action_free close_receipt [08:52:29]json_value_free [08:52:29]json_value_free done [08:52:29]process_json_proto returns [08:52:29]Send response to host [08:52:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76785,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [08:52:29]free response buf [08:52:29]execute_script done [08:52:29]execute_script returns [08:52:29]free content buf [08:52:29]Sock 9.Close socket [08:52:29]Sock 9.Thread stoped [08:52:33]OFD Sender: No OFD packet to send [08:52:38]OFD Sender: No OFD packet to send [08:52:43]OFD Sender: No OFD packet to send [08:52:48]OFD Sender: No OFD packet to send [08:52:52]accept exits with 7 [08:52:52]New connection [08:52:52]New thread 3067338084 created [08:52:52]Thread 3067481444 joined [08:52:52]Waiting for new connection... [08:52:52] Sock 7.Parse request [08:52:52]Sock 7.Check first char [08:52:52]Sock 7.First char is OK [08:52:52]request: POST /json_proto HTTP/1.0 [08:52:52]Method: POST [08:52:52]URL: /json_proto [08:52:52]Method is POST - this is cgi request [08:52:52]url: /json_proto [08:52:52]query_string will be loaded in cgi processing [08:52:52]execute_cgi json_proto POST (null) [08:52:52]execute_cgi path=json_proto method=POST [08:52:52]POST find Content-Length [08:52:52]Host: 172.17.62.5:8080 [08:52:52]Content-Length: 990 [08:52:52]Content-Type: application/json [08:52:52] [08:52:52]POST finish read [08:52:52]Found Content-Length = 990 [08:52:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 31.550, "sum" : 1000.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 31.55 \u0441\u043E\u043C", "deposit" : 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:52:52]execute_script... [08:52:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 31.550, "sum" : 1000.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 31.55 \u0441\u043E\u043C", "deposit" : 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:52:52]POST & json_proto [08:52:52]process_json_proto [08:52:52]json parsed OK: [08:52:52]protocol is kg_v1.0 [08:52:52]action value=close_receipt [08:52:52]process_action close_receipt [08:52:52]cmd_close_receipt [08:52:52]MH_GetDate [08:52:52]Write to MH i2c: F0 00 00 62 1B 6C [08:52:52]Write i2c OK [08:52:52]MH_I2C_Read... [08:52:52]Read from MH i2c: F0 [08:52:52]MH_I2C_Read... [08:52:52]Read from MH i2c: F0 09 00 [08:52:52]MH_I2C_Read... [08:52:52]Read from MH i2c: F0 09 00 62 1B 00 E8 D3 24 66 F4 E9 65 64 60 [08:52:52]GetLastDocTimeStamp 1713689549 [08:52:52]current date 1713689576 [08:52:52]FM_GetShiftState [08:52:52]SAM_PROTO_GetShiftState [08:52:52]wFMCommunicate request_size=4 [08:52:52]MH_SAM_APDU [08:52:52]CAPDU: 80 13 01 00 [08:52:52]Write to MH i2c: E2 08 00 63 1B 80 13 01 00 00 00 00 00 FB [08:52:52]Write i2c OK [08:52:52]MH_I2C_Read... [08:52:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:52]Read from MH i2c: E2 [08:52:52]MH_I2C_Read... [08:52:52]Read from MH i2c: E2 0E 00 [08:52:52]MH_I2C_Read... [08:52:52]Read from MH i2c: E2 0E 00 63 1B 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 42 [08:52:52]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [08:52:52]wFMCommunicate OK [08:52:52]SAM_PROTO_GetShiftState done [08:52:52]FM_GetShiftState done [08:52:52]opened in 1713658965 [08:52:52]opened+sec_in_day 1713745365 [08:52:52]quantity*price = 100013 [08:52:52]sum+1 = 100015 [08:52:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 42 21.04.2024 08:52 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 31.55 сом ФМ: 0000000000874652 ФД: 76786 ФПД: 94468576419079 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T085256&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76786&fm=94468576419079&tin=02508201610067®Number=0000000000091573&sum=100000 [08:52:53]StoreToDocumentArchive [08:52:53]shift 372 fd 76786 [08:52:53]save to /storage/0372/doc_00076786 [08:52:53]save last doc name /storage/0372/doc_00076786 to /storage/kkm_last_doc_name [08:52:53]save OK [08:52:53]Clear old archive folders... [08:52:53]ProcessDocumentItem done err = 0, tmpTLVsize=250 [08:52:53]tlvbuf is 01873DF0 [08:52:53]SAM_PROTO_ClearQueue [08:52:53]wFMCommunicate request_size=4 [08:52:53]MH_SAM_APDU [08:52:53]CAPDU: 80 09 00 00 [08:52:53]Write to MH i2c: E2 08 00 70 1B 80 09 00 00 00 00 00 00 FD [08:52:53]Write i2c OK [08:52:53]MH_I2C_Read... [08:52:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:52:53]Read from MH i2c: E2 [08:52:53]MH_I2C_Read... [08:52:53]Read from MH i2c: E2 03 00 [08:52:53]MH_I2C_Read... [08:52:53]Read from MH i2c: E2 03 00 70 1B 00 90 00 FF [08:52:53]RAPDU: 90 00 [08:52:53]wFMCommunicate OK [08:52:53]SAM_PROTO_ClearQueue done [08:52:53]KKMCreateOFDPacket [08:52:53]OFDProtocolAddRootSTLVToBuf [08:52:53]FM_MakeSignedData [08:52:53]FM_MakeSignedData [08:52:53]SAM_PROTO_SignData [08:52:53]wFMCommunicate request_size=4 [08:52:53]MH_SAM_APDU [08:52:53]CAPDU: 80 0D 01 02 [08:52:53]Write to MH i2c: E2 08 00 71 1B 80 0D 01 02 00 00 00 00 05 [08:52:53]Write i2c OK [08:52:53]MH_I2C_Read... [08:52:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:52:53]Read from MH i2c: E2 [08:52:53]MH_I2C_Read... [08:52:53]Read from MH i2c: E2 03 00 [08:52:53]MH_I2C_Read... [08:52:53]Read from MH i2c: E2 03 00 71 1B 00 90 00 00 [08:52:53]RAPDU: 90 00 [08:52:53]wFMCommunicate OK [08:52:53]wFMCommunicate request_size=255 [08:52:53]MH_SAM_APDU [08:52:53]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 E8 D3 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F2 2B 01 00 35 04 06 00 55 EB [08:52:53]Write to MH i2c: E2 02 01 72 1B 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 E8 D3 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F2 2B 01 00 35 04 06 00 55 EB 00 00 C0 [08:52:53]Write i2c OK [08:52:53]MH_I2C_Read... [08:52:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:54]Read from MH i2c: E2 [08:52:54]MH_I2C_Read... [08:52:54]Read from MH i2c: E2 03 00 [08:52:54]MH_I2C_Read... [08:52:54]Read from MH i2c: E2 03 00 72 1B 00 90 00 01 [08:52:54]RAPDU: 90 00 [08:52:54]wFMCommunicate OK [08:52:54]wFMCommunicate request_size=9 [08:52:54]MH_SAM_APDU [08:52:54]CAPDU: 80 0D 02 02 04 2D F0 9D 07 [08:52:54]Write to MH i2c: E2 0C 00 73 1B 80 0D 02 02 04 00 2D F0 9D 07 00 00 D1 [08:52:54]Write i2c OK [08:52:54]MH_I2C_Read... [08:52:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:54]Read from MH i2c: E2 [08:52:54]MH_I2C_Read... [08:52:54]Read from MH i2c: E2 03 00 [08:52:54]MH_I2C_Read... [08:52:54]Read from MH i2c: E2 03 00 73 1B 00 90 00 02 [08:52:54]RAPDU: 90 00 [08:52:54]wFMCommunicate OK [08:52:54]wFMCommunicate request_size=4 [08:52:54]MH_SAM_APDU [08:52:54]CAPDU: 80 0D 03 02 [08:52:54]Write to MH i2c: E2 08 00 74 1B 80 0D 03 02 00 00 00 00 0A [08:52:54]Write i2c OK [08:52:54]MH_I2C_Read... [08:52:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:52:54]Read from MH i2c: E2 [08:52:54]MH_I2C_Read... [08:52:54]Read from MH i2c: E2 0B 00 [08:52:54]MH_I2C_Read... [08:52:54]Read from MH i2c: E2 0B 00 74 1B 00 BE 4D 17 25 56 1E D5 40 90 00 DB [08:52:54]RAPDU: BE 4D 17 25 56 1E D5 40 90 00 [08:52:54]wFMCommunicate OK [08:52:54]SAM_PROTO_SignData done [08:52:54]FM_MakeSignedData done [08:52:54]CreateOFDProtocolMessage [08:52:54]wFMCommunicate request_size=4 [08:52:54]MH_SAM_APDU [08:52:54]CAPDU: 80 11 00 00 [08:52:54]Write to MH i2c: E2 08 00 75 1B 80 11 00 00 00 00 00 00 0A [08:52:54]Write i2c OK [08:52:54]MH_I2C_Read... [08:52:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:54]Read from MH i2c: E2 [08:52:54]MH_I2C_Read... [08:52:54]Read from MH i2c: E2 17 00 [08:52:54]MH_I2C_Read... [08:52:54]Read from MH i2c: E2 17 00 75 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 5D [08:52:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:52:54]wFMCommunicate OK [08:52:54]CreateOFDProtocolMessage done [08:52:54]OFDSenderStorePacket 76786 [08:52:54]StoreOFDPacket docnum=76786 [08:52:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 61 87 06 01 1B 30 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 E8 D3 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F2 2B 01 00 35 04 06 00 55 EB 2D F0 9D 07 BE 4D 17 25 56 1E D5 40 [08:52:54]CheckFolder [08:52:54]dirname=/storage/ofd_packets [08:52:54]CheckFolder done [08:52:54]ProducePacketName [08:52:54]name=ofd_packets/00076786 [08:52:54]NVStorageSaveData ofd_packets/00076786 [08:52:54]File name is /storage/ofd_packets/00076786 [08:52:54]Write 300 bytes [08:52:54]NVStorageSaveData done [08:52:54]OFDSenderStorePacket done [08:52:54]KKMCreateOFDPacket done [08:52:54]NVStorageSaveData kkm_last_timestamp [08:52:54]File name is /storage/kkm_last_timestamp [08:52:54]Write 4 bytes [08:52:54]NVStorageSaveData done [08:52:54]ExternCall_PrintAddStr [08:52:54]wPrintStart [08:52:54]Write to MH i2c: 01 00 00 76 1B 91 [08:52:54]Write i2c OK [08:52:54]MH_I2C_Read... [08:52:54]Read from MH i2c: 01 [08:52:54]MH_I2C_Read... [08:52:54]Read from MH i2c: 01 07 00 [08:52:54]MH_I2C_Read... [08:52:54]Read from MH i2c: 01 07 00 76 1B 00 00 00 00 00 FF 0F A6 [08:52:54]RasterBufferAndPrint [08:52:54]line Счет N : (1)191315 [08:52:54]line ИНН: 02508201610067 [08:52:54]line Контрольно-Кассовый Чек [08:52:54]line ПРОДАЖА [08:52:54]line ТРК (МРК, ГНК) : 71 [08:52:54]line Товар: 2711190000 [08:52:54]line ГАЗ-К-5 [08:52:54]line 31.550 * 31.70 [08:52:54]line = 1000.14 [08:52:54]line НДС 12% НСП 1% [08:52:54]line > о реализуемом товаре [08:52:54]line ОКРУГЛЕНИЕ: -0.14 [08:52:54]line ИТОГО: 1000.00 [08:52:54]line Внесено: 1000.00 [08:52:54]line СДАЧА: 0.00 [08:52:54]line НСП 1% : 8.85 [08:52:54]line НДС 12% : 106.21 [08:52:54]line Наличными: 1000.00 [08:52:54]line Безнал.: 0.00 [08:52:54]line Место: АЗС № 106 "Партнер Нефть" [08:52:54]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [08:52:54]line СНО: Общий режим [08:52:54]line Чек 42 21.04.2024 08:52 [08:52:54]line Смена: 372 ФФД: 1.0 [08:52:54]line ЗНМ: 0300000141 [08:52:54]line РНМ: 0000000000091573 [08:52:54]line Версия ККМ: 001 [08:52:54]line [08:52:54]line Дисконтная программа [08:52:54]line СУГ [08:52:54]line номер 106 [08:52:54]line сэкономлено 31.55 сом [08:52:54]line ФМ: 0000000000874652 [08:52:54]line ФД: 76786 [08:52:54]line ФПД: 94468576419079 [08:52:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T085256&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76786&fm=94468576419079&tin=02508201610067®Number=0000000000091573&sum=100000 [08:52:54]OFD Sender: Processing packet 76786 [packets to send 129, broken 128] [08:52:54]ProducePacketName [08:52:54]name=ofd_packets/00076786 [08:52:54]OFD Sender: To server: pG, [08:52:54]CommunicateWithHost lk.salyk.kg:30040 [08:52:54]ConnectInit lk.salyk.kg [08:52:54]written 0, free lines is 4095 [08:52:54]Connected sock=10 [08:52:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 61 87 06 01 1B 30 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 E8 D3 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F2 2B 01 00 35 04 06 00 55 EB 2D F0 9D 07 BE 4D 17 25 56 1E D5 40 [08:52:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 4C 8C 47 00 73 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 34 36 35 32 10 04 04 00 F2 2B 01 00 F4 03 04 00 6E 7B 24 66 B6 04 01 00 00 44 57 E1 90 62 CC 09 95 [08:52:55]CommunicateWithHost err = 0 [08:52:55]CheckOFDResponse [08:52:55]1017 (14) - 77093643461234 [08:52:55]1041 (16) - 0000000000874652 [08:52:55]1040 (4) - 76786 [08:52:55]1012 (4) - 21.04.2024 02:35 [08:52:55]1206 (1) - 0 [08:52:55]OFD Sender: Remove packet 76786 [08:52:55]ProducePacketName [08:52:55]name=ofd_packets/00076786 [08:52:55]NVStorageDeleteData [08:52:55]Write to MH i2c: 01 00 00 A5 1B C0 [08:52:55]Write i2c OK [08:52:55]MH_I2C_Read... [08:52:55]Read from MH i2c: 01 [08:52:55]MH_I2C_Read... [08:52:55]Read from MH i2c: 01 07 00 [08:52:55]MH_I2C_Read... [08:52:55]Read from MH i2c: 01 07 00 A5 1B 00 00 00 00 00 83 0C 56 [08:52:55]RasterBufferAndPrint [08:52:55]line [08:52:55]line [08:52:55]line [08:52:55]line [08:52:55]line [08:52:55]written 0, free lines is 3209 [08:52:55]MH_Cut [08:52:55]Write to MH i2c: D1 01 00 AC 1B 01 99 [08:52:55]Write i2c OK [08:52:55]MH_I2C_Read... [08:52:55]Read from MH i2c: D1 [08:52:55]MH_I2C_Read... [08:52:55]Read from MH i2c: D1 01 00 [08:52:55]MH_I2C_Read... [08:52:55]Read from MH i2c: D1 01 00 AC 1B 00 98 [08:52:55]Write to MH i2c: 01 00 00 AD 1B C8 [08:52:55]Write i2c OK [08:52:55]MH_I2C_Read... [08:52:55]OFD Sender: No OFD packet to send [08:52:56]*** Cut start [08:52:56]*** Partial cut [08:52:56]*** CUTSNS_PIN = 1 [08:52:56]*** CUTSNS_PIN = 0 [08:52:56]*** Brake cut motor [08:52:56]Read from MH i2c: 01 [08:52:56]MH_I2C_Read... [08:52:56]*** Stop cut motor [08:52:56]*** Cut end [08:52:56]Read from MH i2c: 01 07 00 [08:52:56]MH_I2C_Read... [08:52:56]Read from MH i2c: 01 07 00 AD 1B 00 00 00 00 00 FF 0F DD [08:52:56]process_action close_receipt done [08:52:56]requested_data is exist [08:52:56]produce_requested_data [08:52:56]requested_item fm.sn is exist - process it [08:52:56]wFMCommunicate request_size=4 [08:52:56]MH_SAM_APDU [08:52:56]CAPDU: 80 11 00 00 [08:52:56]Write to MH i2c: E2 08 00 AE 1B 80 11 00 00 00 00 00 00 43 [08:52:56]Write i2c OK [08:52:56]MH_I2C_Read... [08:52:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:56]Read from MH i2c: E2 [08:52:56]MH_I2C_Read... [08:52:56]Read from MH i2c: E2 17 00 [08:52:56]MH_I2C_Read... [08:52:56]Read from MH i2c: E2 17 00 AE 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 96 [08:52:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:52:56]wFMCommunicate OK [08:52:56]requested_item fd.num is exist - process it [08:52:56]SAM_PROTO_GetFieldsCounters [08:52:56]wFMCommunicate request_size=4 [08:52:56]MH_SAM_APDU [08:52:56]CAPDU: 80 13 00 00 [08:52:56]Write to MH i2c: E2 08 00 AF 1B 80 13 00 00 00 00 00 00 46 [08:52:56]Write i2c OK [08:52:56]MH_I2C_Read... [08:52:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:52:56]Read from MH i2c: E2 [08:52:56]MH_I2C_Read... [08:52:56]Read from MH i2c: E2 62 00 [08:52:56]MH_I2C_Read... [08:52:56]Read from MH i2c: E2 62 00 AF 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F2 2B 01 00 0E 04 04 00 74 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 78 [08:52:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F2 2B 01 00 0E 04 04 00 74 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 [08:52:56]wFMCommunicate OK [08:52:56]SAM_PROTO_GetFieldsCounters done [08:52:56]requested_item shift.num is exist - process it [08:52:56]requested_item shift.opened is exist - process it [08:52:56]req_shift_opened [08:52:56]FM_GetShiftState [08:52:56]SAM_PROTO_GetShiftState [08:52:56]wFMCommunicate request_size=4 [08:52:56]MH_SAM_APDU [08:52:56]CAPDU: 80 13 01 00 [08:52:56]Write to MH i2c: E2 08 00 B0 1B 80 13 01 00 00 00 00 00 48 [08:52:56]Write i2c OK [08:52:56]MH_I2C_Read... [08:52:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:56]Read from MH i2c: E2 [08:52:56]MH_I2C_Read... [08:52:56]Read from MH i2c: E2 0E 00 [08:52:56]MH_I2C_Read... [08:52:56]Read from MH i2c: E2 0E 00 B0 1B 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 8F [08:52:56]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [08:52:56]wFMCommunicate OK [08:52:56]SAM_PROTO_GetShiftState done [08:52:56]FM_GetShiftState done [08:52:56]req_shift_opened done [08:52:56]requested_item shift.open_date is exist - process it [08:52:56]req_shift_open_date [08:52:56]req_shift_open_date done [08:52:56]produce_requested_data done [08:52:56]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76786,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [08:52:56]process_action_free close_receipt [08:52:56]json_value_free [08:52:56]json_value_free done [08:52:56]process_json_proto returns [08:52:56]Send response to host [08:52:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76786,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [08:52:56]free response buf [08:52:56]execute_script done [08:52:56]execute_script returns [08:52:56]free content buf [08:52:56]Sock 7.Close socket [08:52:56]Sock 7.Thread stoped [08:53:00]OFD Sender: No OFD packet to send [08:53:05]OFD Sender: No OFD packet to send [08:53:10]OFD Sender: No OFD packet to send [08:53:15]OFD Sender: No OFD packet to send [08:53:20]OFD Sender: No OFD packet to send [08:53:25]OFD Sender: No OFD packet to send [08:53:30]OFD Sender: No OFD packet to send [08:53:35]OFD Sender: No OFD packet to send [08:53:40]OFD Sender: No OFD packet to send [08:53:45]OFD Sender: No OFD packet to send [08:53:50]OFD Sender: No OFD packet to send [08:53:55]OFD Sender: No OFD packet to send [08:54:00]OFD Sender: No OFD packet to send [08:54:05]OFD Sender: No OFD packet to send [08:54:10]OFD Sender: No OFD packet to send [08:54:15]OFD Sender: No OFD packet to send [08:54:20]OFD Sender: No OFD packet to send [08:54:25]OFD Sender: No OFD packet to send [08:54:30]OFD Sender: No OFD packet to send [08:54:35]OFD Sender: No OFD packet to send [08:54:40]OFD Sender: No OFD packet to send [08:54:45]OFD Sender: No OFD packet to send [08:54:50]OFD Sender: No OFD packet to send [08:54:55]OFD Sender: No OFD packet to send [08:55:00]OFD Sender: No OFD packet to send [08:55:05]OFD Sender: No OFD packet to send [08:55:10]OFD Sender: No OFD packet to send [08:55:15]OFD Sender: No OFD packet to send [08:55:20]OFD Sender: No OFD packet to send [08:55:25]OFD Sender: No OFD packet to send [08:55:30]OFD Sender: No OFD packet to send [08:55:35]OFD Sender: No OFD packet to send [08:55:40]OFD Sender: No OFD packet to send [08:55:45]OFD Sender: No OFD packet to send [08:55:50]OFD Sender: No OFD packet to send [08:55:55]OFD Sender: No OFD packet to send [08:56:00]OFD Sender: No OFD packet to send [08:56:05]OFD Sender: No OFD packet to send [08:56:10]OFD Sender: No OFD packet to send [08:56:15]OFD Sender: No OFD packet to send [08:56:20]OFD Sender: No OFD packet to send [08:56:25]OFD Sender: No OFD packet to send [08:56:30]OFD Sender: No OFD packet to send [08:56:35]OFD Sender: No OFD packet to send [08:56:40]OFD Sender: No OFD packet to send [08:56:45]OFD Sender: No OFD packet to send [08:56:50]OFD Sender: No OFD packet to send [08:56:55]OFD Sender: No OFD packet to send [08:57:00]OFD Sender: No OFD packet to send [08:57:05]OFD Sender: No OFD packet to send [08:57:10]OFD Sender: No OFD packet to send [08:57:15]OFD Sender: No OFD packet to send [08:57:20]OFD Sender: No OFD packet to send [08:57:25]OFD Sender: No OFD packet to send [08:57:30]OFD Sender: No OFD packet to send [08:57:35]OFD Sender: No OFD packet to send [08:57:40]OFD Sender: No OFD packet to send [08:57:45]OFD Sender: No OFD packet to send [08:57:50]OFD Sender: No OFD packet to send [08:57:55]OFD Sender: No OFD packet to send [08:58:00]OFD Sender: No OFD packet to send [08:58:05]OFD Sender: No OFD packet to send [08:58:10]OFD Sender: No OFD packet to send [08:58:15]OFD Sender: No OFD packet to send [08:58:20]OFD Sender: No OFD packet to send [08:58:25]OFD Sender: No OFD packet to send [08:58:30]OFD Sender: No OFD packet to send [08:58:35]OFD Sender: No OFD packet to send [08:58:40]OFD Sender: No OFD packet to send [08:58:45]OFD Sender: No OFD packet to send [08:58:50]OFD Sender: No OFD packet to send [08:58:55]OFD Sender: No OFD packet to send [08:59:00]OFD Sender: No OFD packet to send [08:59:05]OFD Sender: No OFD packet to send [08:59:10]OFD Sender: No OFD packet to send [08:59:15]OFD Sender: No OFD packet to send [08:59:20]OFD Sender: No OFD packet to send [08:59:26]OFD Sender: No OFD packet to send [08:59:31]OFD Sender: No OFD packet to send [08:59:36]OFD Sender: No OFD packet to send [08:59:41]OFD Sender: No OFD packet to send [08:59:46]OFD Sender: No OFD packet to send [08:59:51]OFD Sender: No OFD packet to send [08:59:56]OFD Sender: No OFD packet to send [09:00:01]OFD Sender: No OFD packet to send [09:00:06]OFD Sender: No OFD packet to send [09:00:11]OFD Sender: No OFD packet to send [09:00:16]OFD Sender: No OFD packet to send [09:00:21]OFD Sender: No OFD packet to send [09:00:26]OFD Sender: No OFD packet to send [09:00:31]OFD Sender: No OFD packet to send [09:00:36]OFD Sender: No OFD packet to send [09:00:41]OFD Sender: No OFD packet to send [09:00:46]OFD Sender: No OFD packet to send [09:00:51]OFD Sender: No OFD packet to send [09:00:56]OFD Sender: No OFD packet to send [09:01:01]OFD Sender: No OFD packet to send [09:01:06]OFD Sender: No OFD packet to send [09:01:11]OFD Sender: No OFD packet to send [09:01:16]OFD Sender: No OFD packet to send [09:01:21]OFD Sender: No OFD packet to send [09:01:26]OFD Sender: No OFD packet to send [09:01:31]OFD Sender: No OFD packet to send [09:01:36]OFD Sender: No OFD packet to send [09:01:36]accept exits with 9 [09:01:36]New connection [09:01:36]New thread 3067481444 created [09:01:36]Thread 3067338084 joined [09:01:36]Waiting for new connection... [09:01:36] Sock 9.Parse request [09:01:36]Sock 9.Check first char [09:01:36]Sock 9.First char is OK [09:01:36]request: POST /json_proto HTTP/1.0 [09:01:36]Method: POST [09:01:36]URL: /json_proto [09:01:36]Method is POST - this is cgi request [09:01:36]url: /json_proto [09:01:36]query_string will be loaded in cgi processing [09:01:36]execute_cgi json_proto POST (null) [09:01:36]execute_cgi path=json_proto method=POST [09:01:36]POST find Content-Length [09:01:36]Host: 172.17.62.5:8080 [09:01:36]Content-Length: 682 [09:01:36]Content-Type: application/json [09:01:36] [09:01:36]POST finish read [09:01:36]Found Content-Length = 682 [09:01:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:01:36]execute_script... [09:01: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)191317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:01:36]POST & json_proto [09:01:36]process_json_proto [09:01:36]json parsed OK: [09:01:36]protocol is kg_v1.0 [09:01:36]action value=close_receipt [09:01:36]process_action close_receipt [09:01:36]cmd_close_receipt [09:01:36]MH_GetDate [09:01:36]Write to MH i2c: F0 00 00 B1 1B BB [09:01:36]Write i2c OK [09:01:36]MH_I2C_Read... [09:01:36]Read from MH i2c: F0 [09:01:36]MH_I2C_Read... [09:01:36]Read from MH i2c: F0 09 00 [09:01:36]MH_I2C_Read... [09:01:36]Read from MH i2c: F0 09 00 B1 1B 00 F3 D5 24 66 F4 E9 65 64 BC [09:01:36]GetLastDocTimeStamp 1713689576 [09:01:36]current date 1713690099 [09:01:36]FM_GetShiftState [09:01:36]SAM_PROTO_GetShiftState [09:01:36]wFMCommunicate request_size=4 [09:01:36]MH_SAM_APDU [09:01:36]CAPDU: 80 13 01 00 [09:01:36]Write to MH i2c: E2 08 00 B2 1B 80 13 01 00 00 00 00 00 4A [09:01:36]Write i2c OK [09:01:36]MH_I2C_Read... [09:01:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:36]Read from MH i2c: E2 [09:01:36]MH_I2C_Read... [09:01:36]Read from MH i2c: E2 0E 00 [09:01:36]MH_I2C_Read... [09:01:36]Read from MH i2c: E2 0E 00 B2 1B 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 91 [09:01:36]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [09:01:36]wFMCommunicate OK [09:01:36]SAM_PROTO_GetShiftState done [09:01:36]FM_GetShiftState done [09:01:36]opened in 1713658965 [09:01:36]opened+sec_in_day 1713745365 [09:01:36]quantity*price = 100013 [09:01:36]sum+1 = 100014 [09:01:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 43 21.04.2024 09:01 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76787 ФПД: 253009407201185 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T090139&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76787&fm=253009407201185&tin=02508201610067®Number=0000000000091573&sum=100000 [09:01:37]StoreToDocumentArchive [09:01:37]shift 372 fd 76787 [09:01:37]save to /storage/0372/doc_00076787 [09:01:37]save last doc name /storage/0372/doc_00076787 to /storage/kkm_last_doc_name [09:01:37]save OK [09:01:37]Clear old archive folders... [09:01:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:01:37]tlvbuf is 018B5280 [09:01:37]SAM_PROTO_ClearQueue [09:01:37]wFMCommunicate request_size=4 [09:01:37]MH_SAM_APDU [09:01:37]CAPDU: 80 09 00 00 [09:01:37]Write to MH i2c: E2 08 00 BF 1B 80 09 00 00 00 00 00 00 4C [09:01:37]Write i2c OK [09:01:37]MH_I2C_Read... [09:01:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:01:37]Read from MH i2c: E2 [09:01:37]MH_I2C_Read... [09:01:37]Read from MH i2c: E2 03 00 [09:01:37]MH_I2C_Read... [09:01:37]Read from MH i2c: E2 03 00 BF 1B 00 90 00 4E [09:01:37]RAPDU: 90 00 [09:01:37]wFMCommunicate OK [09:01:37]SAM_PROTO_ClearQueue done [09:01:37]KKMCreateOFDPacket [09:01:37]OFDProtocolAddRootSTLVToBuf [09:01:37]FM_MakeSignedData [09:01:37]FM_MakeSignedData [09:01:37]SAM_PROTO_SignData [09:01:37]wFMCommunicate request_size=4 [09:01:37]MH_SAM_APDU [09:01:37]CAPDU: 80 0D 01 02 [09:01:37]Write to MH i2c: E2 08 00 C0 1B 80 0D 01 02 00 00 00 00 54 [09:01:37]Write i2c OK [09:01:37]MH_I2C_Read... [09:01:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:01:37]Read from MH i2c: E2 [09:01:37]MH_I2C_Read... [09:01:37]Read from MH i2c: E2 03 00 [09:01:37]MH_I2C_Read... [09:01:37]Read from MH i2c: E2 03 00 C0 1B 00 90 00 4F [09:01:37]RAPDU: 90 00 [09:01:37]wFMCommunicate OK [09:01:37]wFMCommunicate request_size=255 [09:01:37]MH_SAM_APDU [09:01: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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 F3 D5 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F3 2B 01 00 35 04 06 00 E6 [09:01:37]Write to MH i2c: E2 02 01 C1 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 F3 D5 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F3 2B 01 00 35 04 06 00 E6 00 00 1C [09:01:37]Write i2c OK [09:01:37]MH_I2C_Read... [09:01:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:37]Read from MH i2c: E2 [09:01:37]MH_I2C_Read... [09:01:37]Read from MH i2c: E2 03 00 [09:01:37]MH_I2C_Read... [09:01:37]Read from MH i2c: E2 03 00 C1 1B 00 90 00 50 [09:01:37]RAPDU: 90 00 [09:01:37]wFMCommunicate OK [09:01:37]wFMCommunicate request_size=10 [09:01:37]MH_SAM_APDU [09:01:37]CAPDU: 80 0D 02 02 05 1C 57 D7 4F A1 [09:01:37]Write to MH i2c: E2 0D 00 C2 1B 80 0D 02 02 05 00 1C 57 D7 4F A1 00 00 9B [09:01:37]Write i2c OK [09:01:37]MH_I2C_Read... [09:01:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:37]Read from MH i2c: E2 [09:01:37]MH_I2C_Read... [09:01:37]Read from MH i2c: E2 03 00 [09:01:37]MH_I2C_Read... [09:01:37]Read from MH i2c: E2 03 00 C2 1B 00 90 00 51 [09:01:37]RAPDU: 90 00 [09:01:37]wFMCommunicate OK [09:01:37]wFMCommunicate request_size=4 [09:01:37]MH_SAM_APDU [09:01:37]CAPDU: 80 0D 03 02 [09:01:37]Write to MH i2c: E2 08 00 C3 1B 80 0D 03 02 00 00 00 00 59 [09:01:37]Write i2c OK [09:01:37]MH_I2C_Read... [09:01:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:01:37]Read from MH i2c: E2 [09:01:37]MH_I2C_Read... [09:01:37]Read from MH i2c: E2 0B 00 [09:01:37]MH_I2C_Read... [09:01:37]Read from MH i2c: E2 0B 00 C3 1B 00 0F C8 56 B7 46 A3 6F C6 90 00 5C [09:01:37]RAPDU: 0F C8 56 B7 46 A3 6F C6 90 00 [09:01:37]wFMCommunicate OK [09:01:37]SAM_PROTO_SignData done [09:01:37]FM_MakeSignedData done [09:01:37]CreateOFDProtocolMessage [09:01:37]wFMCommunicate request_size=4 [09:01:37]MH_SAM_APDU [09:01:37]CAPDU: 80 11 00 00 [09:01:37]Write to MH i2c: E2 08 00 C4 1B 80 11 00 00 00 00 00 00 59 [09:01:37]Write i2c OK [09:01:37]MH_I2C_Read... [09:01:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:38]Read from MH i2c: E2 [09:01:38]MH_I2C_Read... [09:01:38]Read from MH i2c: E2 17 00 [09:01:38]MH_I2C_Read... [09:01:38]Read from MH i2c: E2 17 00 C4 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 AC [09:01:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:01:38]wFMCommunicate OK [09:01:38]CreateOFDProtocolMessage done [09:01:38]OFDSenderStorePacket 76787 [09:01:38]StoreOFDPacket docnum=76787 [09:01:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 6E EC 07 01 8B 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 F3 D5 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F3 2B 01 00 35 04 06 00 E6 1C 57 D7 4F A1 0F C8 56 B7 46 A3 6F C6 [09:01:38]CheckFolder [09:01:38]dirname=/storage/ofd_packets [09:01:38]CheckFolder done [09:01:38]ProducePacketName [09:01:38]name=ofd_packets/00076787 [09:01:38]NVStorageSaveData ofd_packets/00076787 [09:01:38]File name is /storage/ofd_packets/00076787 [09:01:38]Write 301 bytes [09:01:38]NVStorageSaveData done [09:01:38]OFDSenderStorePacket done [09:01:38]KKMCreateOFDPacket done [09:01:38]NVStorageSaveData kkm_last_timestamp [09:01:38]File name is /storage/kkm_last_timestamp [09:01:38]Write 4 bytes [09:01:38]NVStorageSaveData done [09:01:38]ExternCall_PrintAddStr [09:01:38]wPrintStart [09:01:38]Write to MH i2c: 01 00 00 C5 1B E0 [09:01:38]Write i2c OK [09:01:38]MH_I2C_Read... [09:01:38]Read from MH i2c: 01 [09:01:38]MH_I2C_Read... [09:01:38]Read from MH i2c: 01 07 00 [09:01:38]MH_I2C_Read... [09:01:38]Read from MH i2c: 01 07 00 C5 1B 00 00 00 00 00 FF 0F F5 [09:01:38]RasterBufferAndPrint [09:01:38]line Счет N : (1)191317 [09:01:38]line ИНН: 02508201610067 [09:01:38]line Контрольно-Кассовый Чек [09:01:38]line ПРОДАЖА [09:01:38]line ТРК (МРК, ГНК) : 12 [09:01:38]line Товар: 2710124130 [09:01:38]line Аи-92-К-5 [09:01:38]line 15.530 * 64.40 [09:01:38]line = 1000.13 [09:01:38]line НДС 12% НСП 1% [09:01:38]line > о реализуемом товаре [09:01:38]line ОКРУГЛЕНИЕ: -0.13 [09:01:38]line ИТОГО: 1000.00 [09:01:38]line Внесено: 1000.00 [09:01:38]line СДАЧА: 0.00 [09:01:38]line НСП 1% : 8.85 [09:01:38]line НДС 12% : 106.21 [09:01:38]line Наличными: 1000.00 [09:01:38]line Безнал.: 0.00 [09:01:38]line Место: АЗС № 106 "Партнер Нефть" [09:01:38]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [09:01:38]line СНО: Общий режим [09:01:38]line Чек 43 21.04.2024 09:01 [09:01:38]line Смена: 372 ФФД: 1.0 [09:01:38]line ЗНМ: 0300000141 [09:01:38]line РНМ: 0000000000091573 [09:01:38]line Версия ККМ: 001 [09:01:38]line ФМ: 0000000000874652 [09:01:38]line ФД: 76787 [09:01:38]line ФПД: 253009407201185 [09:01:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T090139&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76787&fm=253009407201185&tin=02508201610067®Number=0000000000091573&sum=100000 [09:01:38]OFD Sender: Processing packet 76787 [packets to send 129, broken 128] [09:01:38]ProducePacketName [09:01:38]name=ofd_packets/00076787 [09:01:38]OFD Sender: To server: pG, [09:01:38]written 0, free lines is 4095 [09:01:38]CommunicateWithHost lk.salyk.kg:30040 [09:01:38]ConnectInit lk.salyk.kg [09:01:38]Write to MH i2c: 01 00 00 EF 1B 0A [09:01:38]Write i2c OK [09:01:38]MH_I2C_Read... [09:01:38]Read from MH i2c: 01 [09:01:38]MH_I2C_Read... [09:01:38]Read from MH i2c: 01 07 00 [09:01:38]MH_I2C_Read... [09:01:38]Read from MH i2c: 01 07 00 EF 1B 00 00 00 00 00 E0 0C FD [09:01:38]RasterBufferAndPrint [09:01:38]line [09:01:38]line [09:01:38]line [09:01:38]line [09:01:38]line [09:01:38]written 0, free lines is 3301 [09:01:38]MH_Cut [09:01:38]Write to MH i2c: D1 01 00 F6 1B 01 E3 [09:01:38]Write i2c OK [09:01:38]MH_I2C_Read... [09:01:38]Read from MH i2c: D1 [09:01:38]MH_I2C_Read... [09:01:38]Read from MH i2c: D1 01 00 [09:01:38]MH_I2C_Read... [09:01:38]Read from MH i2c: D1 01 00 F6 1B 00 E2 [09:01:38]Write to MH i2c: 01 00 00 F7 1B 12 [09:01:38]Write i2c OK [09:01:38]MH_I2C_Read... [09:01:39]*** Cut start [09:01:39]*** Partial cut [09:01:39]*** CUTSNS_PIN = 1 [09:01:39]*** CUTSNS_PIN = 0 [09:01:39]*** Brake cut motor [09:01:40]Connected sock=11 [09:01:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 6E EC 07 01 8B 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 F3 D5 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F3 2B 01 00 35 04 06 00 E6 1C 57 D7 4F A1 0F C8 56 B7 46 A3 6F C6 [09:01:40]Read from MH i2c: 01 [09:01:40]MH_I2C_Read... [09:01:40]*** Stop cut motor [09:01:40]*** Cut end [09:01:40]Read from MH i2c: 01 07 00 [09:01:40]MH_I2C_Read... [09:01:40]Read from MH i2c: 01 07 00 F7 1B 00 00 00 00 00 FF 0F 27 [09:01:40]process_action close_receipt done [09:01:40]requested_data is exist [09:01:40]produce_requested_data [09:01:40]requested_item fm.sn is exist - process it [09:01:40]wFMCommunicate request_size=4 [09:01:40]MH_SAM_APDU [09:01:40]CAPDU: 80 11 00 00 [09:01:40]Write to MH i2c: E2 08 00 F8 1B 80 11 00 00 00 00 00 00 8D [09:01:40]Write i2c OK [09:01:40]MH_I2C_Read... [09:01:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:40]Read from MH i2c: E2 [09:01:40]MH_I2C_Read... [09:01:40]Read from MH i2c: E2 17 00 [09:01:40]MH_I2C_Read... [09:01:40]Read from MH i2c: E2 17 00 F8 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 E0 [09:01:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:01:40]wFMCommunicate OK [09:01:40]requested_item fd.num is exist - process it [09:01:40]SAM_PROTO_GetFieldsCounters [09:01:40]wFMCommunicate request_size=4 [09:01:40]MH_SAM_APDU [09:01:40]CAPDU: 80 13 00 00 [09:01:40]Write to MH i2c: E2 08 00 F9 1B 80 13 00 00 00 00 00 00 90 [09:01:40]Write i2c OK [09:01:40]MH_I2C_Read... [09:01:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 2D 55 47 00 1D 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 34 36 35 32 10 04 04 00 F3 2B 01 00 F4 03 04 00 7B 7D 24 66 B6 04 01 00 00 FE 9B 0C 5F 73 BB 08 E7 [09:01:40]CommunicateWithHost err = 0 [09:01:40]CheckOFDResponse [09:01:40]1017 (14) - 77093643461234 [09:01:40]1041 (16) - 0000000000874652 [09:01:40]1040 (4) - 76787 [09:01:40]1012 (4) - 21.04.2024 02:44 [09:01:40]1206 (1) - 0 [09:01:40]OFD Sender: Remove packet 76787 [09:01:40]ProducePacketName [09:01:40]name=ofd_packets/00076787 [09:01:40]NVStorageDeleteData [09:01:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:01:40]Read from MH i2c: E2 [09:01:40]MH_I2C_Read... [09:01:40]Read from MH i2c: E2 62 00 [09:01:40]MH_I2C_Read... [09:01:40]Read from MH i2c: E2 62 00 F9 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F3 2B 01 00 0E 04 04 00 74 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 C6 [09:01: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F3 2B 01 00 0E 04 04 00 74 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:01:40]wFMCommunicate OK [09:01:40]SAM_PROTO_GetFieldsCounters done [09:01:40]requested_item shift.num is exist - process it [09:01:40]requested_item shift.opened is exist - process it [09:01:40]req_shift_opened [09:01:40]FM_GetShiftState [09:01:40]SAM_PROTO_GetShiftState [09:01:40]wFMCommunicate request_size=4 [09:01:40]MH_SAM_APDU [09:01:40]CAPDU: 80 13 01 00 [09:01:40]Write to MH i2c: E2 08 00 FA 1B 80 13 01 00 00 00 00 00 92 [09:01:40]Write i2c OK [09:01:40]MH_I2C_Read... [09:01:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:40]Read from MH i2c: E2 [09:01:40]MH_I2C_Read... [09:01:40]Read from MH i2c: E2 0E 00 [09:01:40]MH_I2C_Read... [09:01:40]Read from MH i2c: E2 0E 00 FA 1B 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 D9 [09:01:40]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [09:01:40]wFMCommunicate OK [09:01:40]SAM_PROTO_GetShiftState done [09:01:40]FM_GetShiftState done [09:01:40]req_shift_opened done [09:01:40]requested_item shift.open_date is exist - process it [09:01:40]req_shift_open_date [09:01:40]req_shift_open_date done [09:01:40]produce_requested_data done [09:01:40]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76787,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [09:01:40]process_action_free close_receipt [09:01:40]json_value_free [09:01:40]json_value_free done [09:01:40]process_json_proto returns [09:01:40]Send response to host [09:01:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76787,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [09:01:40]free response buf [09:01:40]execute_script done [09:01:40]execute_script returns [09:01:40]free content buf [09:01:40]Sock 9.Close socket [09:01:40]Sock 9.Thread stoped [09:01:40]OFD Sender: No OFD packet to send [09:01:45]OFD Sender: No OFD packet to send [09:01:50]OFD Sender: No OFD packet to send [09:01:55]OFD Sender: No OFD packet to send [09:02:00]OFD Sender: No OFD packet to send [09:02:05]OFD Sender: No OFD packet to send [09:02:10]OFD Sender: No OFD packet to send [09:02:15]OFD Sender: No OFD packet to send [09:02:20]OFD Sender: No OFD packet to send [09:02:25]OFD Sender: No OFD packet to send [09:02:30]OFD Sender: No OFD packet to send [09:02:35]OFD Sender: No OFD packet to send [09:02:40]OFD Sender: No OFD packet to send [09:02:45]OFD Sender: No OFD packet to send [09:02:50]OFD Sender: No OFD packet to send [09:02:55]OFD Sender: No OFD packet to send [09:03:00]OFD Sender: No OFD packet to send [09:03:05]OFD Sender: No OFD packet to send [09:03:10]OFD Sender: No OFD packet to send [09:03:15]OFD Sender: No OFD packet to send [09:03:20]OFD Sender: No OFD packet to send [09:03:25]OFD Sender: No OFD packet to send [09:03:30]OFD Sender: No OFD packet to send [09:03:35]OFD Sender: No OFD packet to send [09:03:40]OFD Sender: No OFD packet to send [09:03:45]OFD Sender: No OFD packet to send [09:03:50]OFD Sender: No OFD packet to send [09:03:55]OFD Sender: No OFD packet to send [09:04:00]OFD Sender: No OFD packet to send [09:04:05]OFD Sender: No OFD packet to send [09:04:10]OFD Sender: No OFD packet to send [09:04:15]OFD Sender: No OFD packet to send [09:04:21]OFD Sender: No OFD packet to send [09:04:26]OFD Sender: No OFD packet to send [09:04:31]OFD Sender: No OFD packet to send [09:04:36]OFD Sender: No OFD packet to send [09:04:41]OFD Sender: No OFD packet to send [09:04:46]OFD Sender: No OFD packet to send [09:04:51]OFD Sender: No OFD packet to send [09:04:56]OFD Sender: No OFD packet to send [09:05:01]OFD Sender: No OFD packet to send [09:05:06]OFD Sender: No OFD packet to send [09:05:11]OFD Sender: No OFD packet to send [09:05:16]OFD Sender: No OFD packet to send [09:05:21]OFD Sender: No OFD packet to send [09:05:26]OFD Sender: No OFD packet to send [09:05:31]OFD Sender: No OFD packet to send [09:05:36]OFD Sender: No OFD packet to send [09:05:41]OFD Sender: No OFD packet to send [09:05:46]OFD Sender: No OFD packet to send [09:05:51]OFD Sender: No OFD packet to send [09:05:56]OFD Sender: No OFD packet to send [09:06:01]OFD Sender: No OFD packet to send [09:06:06]OFD Sender: No OFD packet to send [09:06:11]OFD Sender: No OFD packet to send [09:06:16]OFD Sender: No OFD packet to send [09:06:21]OFD Sender: No OFD packet to send [09:06:26]OFD Sender: No OFD packet to send [09:06:31]OFD Sender: No OFD packet to send [09:06:36]OFD Sender: No OFD packet to send [09:06:41]OFD Sender: No OFD packet to send [09:06:46]OFD Sender: No OFD packet to send [09:06:51]OFD Sender: No OFD packet to send [09:06:56]OFD Sender: No OFD packet to send [09:07:01]OFD Sender: No OFD packet to send [09:07:06]OFD Sender: No OFD packet to send [09:07:11]OFD Sender: No OFD packet to send [09:07:16]OFD Sender: No OFD packet to send [09:07:21]OFD Sender: No OFD packet to send [09:07:26]OFD Sender: No OFD packet to send [09:07:31]OFD Sender: No OFD packet to send [09:07:36]OFD Sender: No OFD packet to send [09:07:41]OFD Sender: No OFD packet to send [09:07:46]OFD Sender: No OFD packet to send [09:07:51]OFD Sender: No OFD packet to send [09:07:56]OFD Sender: No OFD packet to send [09:08:01]OFD Sender: No OFD packet to send [09:08:06]OFD Sender: No OFD packet to send [09:08:11]OFD Sender: No OFD packet to send [09:08:16]OFD Sender: No OFD packet to send [09:08:21]OFD Sender: No OFD packet to send [09:08:26]OFD Sender: No OFD packet to send [09:08:31]OFD Sender: No OFD packet to send [09:08:36]OFD Sender: No OFD packet to send [09:08:41]OFD Sender: No OFD packet to send [09:08:46]OFD Sender: No OFD packet to send [09:08:51]OFD Sender: No OFD packet to send [09:08:56]OFD Sender: No OFD packet to send [09:09:01]OFD Sender: No OFD packet to send [09:09:06]OFD Sender: No OFD packet to send [09:09:11]OFD Sender: No OFD packet to send [09:09:16]OFD Sender: No OFD packet to send [09:09:21]OFD Sender: No OFD packet to send [09:09:26]OFD Sender: No OFD packet to send [09:09:31]OFD Sender: No OFD packet to send [09:09:36]OFD Sender: No OFD packet to send [09:09:41]OFD Sender: No OFD packet to send [09:09:46]OFD Sender: No OFD packet to send [09:09:51]OFD Sender: No OFD packet to send [09:09:56]OFD Sender: No OFD packet to send [09:10:01]OFD Sender: No OFD packet to send [09:10:06]OFD Sender: No OFD packet to send [09:10:11]OFD Sender: No OFD packet to send [09:10:16]OFD Sender: No OFD packet to send [09:10:21]OFD Sender: No OFD packet to send [09:10:26]OFD Sender: No OFD packet to send [09:10:31]OFD Sender: No OFD packet to send [09:10:36]OFD Sender: No OFD packet to send [09:10:41]OFD Sender: No OFD packet to send [09:10:46]OFD Sender: No OFD packet to send [09:10:51]OFD Sender: No OFD packet to send [09:10:56]OFD Sender: No OFD packet to send [09:11:01]OFD Sender: No OFD packet to send [09:11:06]OFD Sender: No OFD packet to send [09:11:11]OFD Sender: No OFD packet to send [09:11:16]OFD Sender: No OFD packet to send [09:11:21]OFD Sender: No OFD packet to send [09:11:26]OFD Sender: No OFD packet to send [09:11:31]OFD Sender: No OFD packet to send [09:11:36]OFD Sender: No OFD packet to send [09:11:41]OFD Sender: No OFD packet to send [09:11:46]OFD Sender: No OFD packet to send [09:11:51]OFD Sender: No OFD packet to send [09:11:56]OFD Sender: No OFD packet to send [09:12:01]OFD Sender: No OFD packet to send [09:12:06]OFD Sender: No OFD packet to send [09:12:11]OFD Sender: No OFD packet to send [09:12:16]OFD Sender: No OFD packet to send [09:12:21]OFD Sender: No OFD packet to send [09:12:26]OFD Sender: No OFD packet to send [09:12:31]OFD Sender: No OFD packet to send [09:12:36]OFD Sender: No OFD packet to send [09:12:41]OFD Sender: No OFD packet to send [09:12:46]OFD Sender: No OFD packet to send [09:12:51]OFD Sender: No OFD packet to send [09:12:56]OFD Sender: No OFD packet to send [09:13:01]OFD Sender: No OFD packet to send [09:13:06]OFD Sender: No OFD packet to send [09:13:11]OFD Sender: No OFD packet to send [09:13:16]OFD Sender: No OFD packet to send [09:13:21]OFD Sender: No OFD packet to send [09:13:26]OFD Sender: No OFD packet to send [09:13:31]OFD Sender: No OFD packet to send [09:13:36]OFD Sender: No OFD packet to send [09:13:38]accept exits with 7 [09:13:38]New connection [09:13:38]New thread 3067338084 created [09:13:38]Thread 3067481444 joined [09:13:38]Waiting for new connection... [09:13:38] Sock 7.Parse request [09:13:38]Sock 7.Check first char [09:13:38]Sock 7.First char is OK [09:13:38]request: POST /json_proto HTTP/1.0 [09:13:38]Method: POST [09:13:38]URL: /json_proto [09:13:38]Method is POST - this is cgi request [09:13:38]url: /json_proto [09:13:38]query_string will be loaded in cgi processing [09:13:38]execute_cgi json_proto POST (null) [09:13:38]execute_cgi path=json_proto method=POST [09:13:38]POST find Content-Length [09:13:38]Host: 172.17.62.5:8080 [09:13:38]Content-Length: 674 [09:13:38]Content-Type: application/json [09:13:38] [09:13:38]POST finish read [09:13:38]Found Content-Length = 674 [09:13:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [09:13:38]execute_script... [09:13: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)191318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [09:13:38]POST & json_proto [09:13:38]process_json_proto [09:13:38]json parsed OK: [09:13:38]protocol is kg_v1.0 [09:13:38]action value=close_receipt [09:13:38]process_action close_receipt [09:13:38]cmd_close_receipt [09:13:38]MH_GetDate [09:13:38]Write to MH i2c: F0 00 00 FB 1B 05 [09:13:38]Write i2c OK [09:13:38]MH_I2C_Read... [09:13:38]Read from MH i2c: F0 [09:13:38]MH_I2C_Read... [09:13:38]Read from MH i2c: F0 09 00 [09:13:38]MH_I2C_Read... [09:13:38]Read from MH i2c: F0 09 00 FB 1B 00 C5 D8 24 66 F4 E9 65 64 DB [09:13:38]GetLastDocTimeStamp 1713690099 [09:13:38]current date 1713690821 [09:13:38]FM_GetShiftState [09:13:38]SAM_PROTO_GetShiftState [09:13:38]wFMCommunicate request_size=4 [09:13:38]MH_SAM_APDU [09:13:38]CAPDU: 80 13 01 00 [09:13:38]Write to MH i2c: E2 08 00 FC 1B 80 13 01 00 00 00 00 00 94 [09:13:38]Write i2c OK [09:13:38]MH_I2C_Read... [09:13:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:38]Read from MH i2c: E2 [09:13:38]MH_I2C_Read... [09:13:38]Read from MH i2c: E2 0E 00 [09:13:38]MH_I2C_Read... [09:13:38]Read from MH i2c: E2 0E 00 FC 1B 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 DB [09:13:38]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [09:13:38]wFMCommunicate OK [09:13:38]SAM_PROTO_GetShiftState done [09:13:38]FM_GetShiftState done [09:13:38]opened in 1713658965 [09:13:38]opened+sec_in_day 1713745365 [09:13:38]quantity*price = 50009 [09:13:38]sum+1 = 50010 [09:13: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 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 44 21.04.2024 09:13 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76788 ФПД: 51824885455289 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T091341&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76788&fm=51824885455289&tin=02508201610067®Number=0000000000091573&sum=50000 [09:13:39]StoreToDocumentArchive [09:13:39]shift 372 fd 76788 [09:13:39]save to /storage/0372/doc_00076788 [09:13:39]save last doc name /storage/0372/doc_00076788 to /storage/kkm_last_doc_name [09:13:39]save OK [09:13:39]Clear old archive folders... [09:13:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:13:39]tlvbuf is 018736E0 [09:13:39]SAM_PROTO_ClearQueue [09:13:39]wFMCommunicate request_size=4 [09:13:39]MH_SAM_APDU [09:13:39]CAPDU: 80 09 00 00 [09:13:39]Write to MH i2c: E2 08 00 09 1C 80 09 00 00 00 00 00 00 97 [09:13:39]Write i2c OK [09:13:39]MH_I2C_Read... [09:13:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:13:39]Read from MH i2c: E2 [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: E2 03 00 [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: E2 03 00 09 1C 00 90 00 99 [09:13:39]RAPDU: 90 00 [09:13:39]wFMCommunicate OK [09:13:39]SAM_PROTO_ClearQueue done [09:13:39]KKMCreateOFDPacket [09:13:39]OFDProtocolAddRootSTLVToBuf [09:13:39]FM_MakeSignedData [09:13:39]FM_MakeSignedData [09:13:39]SAM_PROTO_SignData [09:13:39]wFMCommunicate request_size=4 [09:13:39]MH_SAM_APDU [09:13:39]CAPDU: 80 0D 01 02 [09:13:39]Write to MH i2c: E2 08 00 0A 1C 80 0D 01 02 00 00 00 00 9F [09:13:39]Write i2c OK [09:13:39]MH_I2C_Read... [09:13:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:13:39]Read from MH i2c: E2 [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: E2 03 00 [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: E2 03 00 0A 1C 00 90 00 9A [09:13:39]RAPDU: 90 00 [09:13:39]wFMCommunicate OK [09:13:39]wFMCommunicate request_size=255 [09:13:39]MH_SAM_APDU [09:13:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 2C 00 00 00 F4 03 04 00 C5 D8 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F4 2B 01 00 35 04 06 00 2F 22 6B E3 [09:13:39]Write to MH i2c: E2 02 01 0B 1C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 2C 00 00 00 F4 03 04 00 C5 D8 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F4 2B 01 00 35 04 06 00 2F 22 6B E3 00 00 D0 [09:13:39]Write i2c OK [09:13:39]MH_I2C_Read... [09:13:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:39]Read from MH i2c: E2 [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: E2 03 00 [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: E2 03 00 0B 1C 00 90 00 9B [09:13:39]RAPDU: 90 00 [09:13:39]wFMCommunicate OK [09:13:39]wFMCommunicate request_size=7 [09:13:39]MH_SAM_APDU [09:13:39]CAPDU: 80 0D 02 02 02 59 B9 [09:13:39]Write to MH i2c: E2 0A 00 0C 1C 80 0D 02 02 02 00 59 B9 00 00 B8 [09:13:39]Write i2c OK [09:13:39]MH_I2C_Read... [09:13:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:39]Read from MH i2c: E2 [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: E2 03 00 [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: E2 03 00 0C 1C 00 90 00 9C [09:13:39]RAPDU: 90 00 [09:13:39]wFMCommunicate OK [09:13:39]wFMCommunicate request_size=4 [09:13:39]MH_SAM_APDU [09:13:39]CAPDU: 80 0D 03 02 [09:13:39]Write to MH i2c: E2 08 00 0D 1C 80 0D 03 02 00 00 00 00 A4 [09:13:39]Write i2c OK [09:13:39]MH_I2C_Read... [09:13:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:13:39]Read from MH i2c: E2 [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: E2 0B 00 [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: E2 0B 00 0D 1C 00 51 00 81 03 8A 45 F4 D3 90 00 10 [09:13:39]RAPDU: 51 00 81 03 8A 45 F4 D3 90 00 [09:13:39]wFMCommunicate OK [09:13:39]SAM_PROTO_SignData done [09:13:39]FM_MakeSignedData done [09:13:39]CreateOFDProtocolMessage [09:13:39]wFMCommunicate request_size=4 [09:13:39]MH_SAM_APDU [09:13:39]CAPDU: 80 11 00 00 [09:13:39]Write to MH i2c: E2 08 00 0E 1C 80 11 00 00 00 00 00 00 A4 [09:13:39]Write i2c OK [09:13:39]MH_I2C_Read... [09:13:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:39]Read from MH i2c: E2 [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: E2 17 00 [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: E2 17 00 0E 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F7 [09:13:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:13:39]wFMCommunicate OK [09:13:39]CreateOFDProtocolMessage done [09:13:39]OFDSenderStorePacket 76788 [09:13:39]StoreOFDPacket docnum=76788 [09:13:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 F2 B6 04 01 04 EF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 C5 D8 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F4 2B 01 00 35 04 06 00 2F 22 6B E3 59 B9 51 00 81 03 8A 45 F4 D3 [09:13:39]CheckFolder [09:13:39]dirname=/storage/ofd_packets [09:13:39]CheckFolder done [09:13:39]ProducePacketName [09:13:39]name=ofd_packets/00076788 [09:13:39]NVStorageSaveData ofd_packets/00076788 [09:13:39]File name is /storage/ofd_packets/00076788 [09:13:39]Write 298 bytes [09:13:39]NVStorageSaveData done [09:13:39]OFDSenderStorePacket done [09:13:39]KKMCreateOFDPacket done [09:13:39]NVStorageSaveData kkm_last_timestamp [09:13:39]File name is /storage/kkm_last_timestamp [09:13:39]Write 4 bytes [09:13:39]NVStorageSaveData done [09:13:39]ExternCall_PrintAddStr [09:13:39]wPrintStart [09:13:39]Write to MH i2c: 01 00 00 0F 1C 2B [09:13:39]Write i2c OK [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: 01 [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: 01 07 00 [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: 01 07 00 0F 1C 00 00 00 00 00 FF 0F 40 [09:13:39]RasterBufferAndPrint [09:13:39]line Счет N : (1)191318 [09:13:39]line ИНН: 02508201610067 [09:13:39]line Контрольно-Кассовый Чек [09:13:39]line ПРОДАЖА [09:13:39]line ТРК (МРК, ГНК) : 13 [09:13:39]line Товар: 2710194210 [09:13:39]line ДТ-К-5 [09:13:39]line 6.860 * 72.90 [09:13:39]line = 500.09 [09:13:39]line НДС 12% НСП 1% [09:13:39]line > о реализуемом товаре [09:13:39]line ОКРУГЛЕНИЕ: -0.09 [09:13:39]line ИТОГО: 500.00 [09:13:39]line Внесено: 500.00 [09:13:39]line СДАЧА: 0.00 [09:13:39]line НСП 1% : 4.43 [09:13:39]line НДС 12% : 53.11 [09:13:39]line Наличными: 500.00 [09:13:39]line Безнал.: 0.00 [09:13:39]line Место: АЗС № 106 "Партнер Нефть" [09:13:39]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [09:13:39]line СНО: Общий режим [09:13:39]line Чек 44 21.04.2024 09:13 [09:13:39]line Смена: 372 ФФД: 1.0 [09:13:39]line ЗНМ: 0300000141 [09:13:39]line РНМ: 0000000000091573 [09:13:39]line Версия ККМ: 001 [09:13:39]line ФМ: 0000000000874652 [09:13:39]line ФД: 76788 [09:13:39]line ФПД: 51824885455289 [09:13:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T091341&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76788&fm=51824885455289&tin=02508201610067®Number=0000000000091573&sum=50000 [09:13:40]OFD Sender: Processing packet 76788 [packets to send 129, broken 128] [09:13:40]ProducePacketName [09:13:40]name=ofd_packets/00076788 [09:13:40]OFD Sender: To server: pG, [09:13:40]CommunicateWithHost lk.salyk.kg:30040 [09:13:40]ConnectInit lk.salyk.kg [09:13:40]written 0, free lines is 4095 [09:13:40]Connected sock=9 [09:13:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 F2 B6 04 01 04 EF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 C5 D8 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F4 2B 01 00 35 04 06 00 2F 22 6B E3 59 B9 51 00 81 03 8A 45 F4 D3 [09:13:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 59 9C 47 00 4C 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 34 36 35 32 10 04 04 00 F4 2B 01 00 F4 03 04 00 4B 80 24 66 B6 04 01 00 00 6E 4E 89 5F DA 9C A4 7C [09:13:40]CommunicateWithHost err = 0 [09:13:40]CheckOFDResponse [09:13:40]1017 (14) - 77093643461234 [09:13:40]1041 (16) - 0000000000874652 [09:13:40]1040 (4) - 76788 [09:13:40]1012 (4) - 21.04.2024 02:56 [09:13:40]1206 (1) - 0 [09:13:40]OFD Sender: Remove packet 76788 [09:13:40]ProducePacketName [09:13:40]name=ofd_packets/00076788 [09:13:40]NVStorageDeleteData [09:13:40]Write to MH i2c: 01 00 00 39 1C 55 [09:13:40]Write i2c OK [09:13:40]MH_I2C_Read... [09:13:40]Read from MH i2c: 01 [09:13:40]MH_I2C_Read... [09:13:40]Read from MH i2c: 01 07 00 [09:13:40]MH_I2C_Read... [09:13:40]Read from MH i2c: 01 07 00 39 1C 00 00 00 00 00 D8 0C 40 [09:13:40]RasterBufferAndPrint [09:13:40]line [09:13:40]line [09:13:40]line [09:13:40]line [09:13:40]line [09:13:40]written 0, free lines is 3295 [09:13:40]MH_Cut [09:13:40]Write to MH i2c: D1 01 00 40 1C 01 2E [09:13:40]Write i2c OK [09:13:40]MH_I2C_Read... [09:13:40]Read from MH i2c: D1 [09:13:40]MH_I2C_Read... [09:13:40]Read from MH i2c: D1 01 00 [09:13:40]MH_I2C_Read... [09:13:40]Read from MH i2c: D1 01 00 40 1C 00 2D [09:13:40]Write to MH i2c: 01 00 00 41 1C 5D [09:13:40]Write i2c OK [09:13:40]MH_I2C_Read... [09:13:41]OFD Sender: No OFD packet to send [09:13:41]*** Cut start [09:13:41]*** Partial cut [09:13:41]*** CUTSNS_PIN = 1 [09:13:41]*** CUTSNS_PIN = 0 [09:13:41]*** Brake cut motor [09:13:42]Read from MH i2c: 01 [09:13:42]MH_I2C_Read... [09:13:42]*** Stop cut motor [09:13:42]*** Cut end [09:13:42]Read from MH i2c: 01 07 00 [09:13:42]MH_I2C_Read... [09:13:42]Read from MH i2c: 01 07 00 41 1C 00 00 00 00 00 FF 0F 72 [09:13:42]process_action close_receipt done [09:13:42]requested_data is exist [09:13:42]produce_requested_data [09:13:42]requested_item fm.sn is exist - process it [09:13:42]wFMCommunicate request_size=4 [09:13:42]MH_SAM_APDU [09:13:42]CAPDU: 80 11 00 00 [09:13:42]Write to MH i2c: E2 08 00 42 1C 80 11 00 00 00 00 00 00 D8 [09:13:42]Write i2c OK [09:13:42]MH_I2C_Read... [09:13:42]Read from MH i2c: E2 [09:13:42]MH_I2C_Read... [09:13:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:42]Read from MH i2c: E2 17 00 [09:13:42]MH_I2C_Read... [09:13:42]Read from MH i2c: E2 17 00 42 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 2B [09:13:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:13:42]wFMCommunicate OK [09:13:42]requested_item fd.num is exist - process it [09:13:42]SAM_PROTO_GetFieldsCounters [09:13:42]wFMCommunicate request_size=4 [09:13:42]MH_SAM_APDU [09:13:42]CAPDU: 80 13 00 00 [09:13:42]Write to MH i2c: E2 08 00 43 1C 80 13 00 00 00 00 00 00 DB [09:13:42]Write i2c OK [09:13:42]MH_I2C_Read... [09:13:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:13:42]Read from MH i2c: E2 [09:13:42]MH_I2C_Read... [09:13:42]Read from MH i2c: E2 62 00 [09:13:42]MH_I2C_Read... [09:13:42]Read from MH i2c: E2 62 00 43 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F4 2B 01 00 0E 04 04 00 74 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 15 [09:13: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F4 2B 01 00 0E 04 04 00 74 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:13:42]wFMCommunicate OK [09:13:42]SAM_PROTO_GetFieldsCounters done [09:13:42]requested_item shift.num is exist - process it [09:13:42]requested_item shift.opened is exist - process it [09:13:42]req_shift_opened [09:13:42]FM_GetShiftState [09:13:42]SAM_PROTO_GetShiftState [09:13:42]wFMCommunicate request_size=4 [09:13:42]MH_SAM_APDU [09:13:42]CAPDU: 80 13 01 00 [09:13:42]Write to MH i2c: E2 08 00 44 1C 80 13 01 00 00 00 00 00 DD [09:13:42]Write i2c OK [09:13:42]MH_I2C_Read... [09:13:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:42]Read from MH i2c: E2 [09:13:42]MH_I2C_Read... [09:13:42]Read from MH i2c: E2 0E 00 [09:13:42]MH_I2C_Read... [09:13:42]Read from MH i2c: E2 0E 00 44 1C 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 24 [09:13:42]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [09:13:42]wFMCommunicate OK [09:13:42]SAM_PROTO_GetShiftState done [09:13:42]FM_GetShiftState done [09:13:42]req_shift_opened done [09:13:42]requested_item shift.open_date is exist - process it [09:13:42]req_shift_open_date [09:13:42]req_shift_open_date done [09:13:42]produce_requested_data done [09:13:42]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76788,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [09:13:42]process_action_free close_receipt [09:13:42]json_value_free [09:13:42]json_value_free done [09:13:42]process_json_proto returns [09:13:42]Send response to host [09:13:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76788,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [09:13:42]free response buf [09:13:42]execute_script done [09:13:42]execute_script returns [09:13:42]free content buf [09:13:42]Sock 7.Close socket [09:13:42]Sock 7.Thread stoped [09:13:46]OFD Sender: No OFD packet to send [09:13:51]OFD Sender: No OFD packet to send [09:13:56]OFD Sender: No OFD packet to send [09:14:01]OFD Sender: No OFD packet to send [09:14:06]OFD Sender: No OFD packet to send [09:14:11]OFD Sender: No OFD packet to send [09:14:16]OFD Sender: No OFD packet to send [09:14:21]OFD Sender: No OFD packet to send [09:14:26]OFD Sender: No OFD packet to send [09:14:31]OFD Sender: No OFD packet to send [09:14:36]OFD Sender: No OFD packet to send [09:14:41]OFD Sender: No OFD packet to send [09:14:41]accept exits with 10 [09:14:41]New connection [09:14:41]New thread 3067481444 created [09:14:41]Thread 3067338084 joined [09:14:41]Waiting for new connection... [09:14:41] Sock 10.Parse request [09:14:41]Sock 10.Check first char [09:14:41]Sock 10.First char is OK [09:14:41]request: POST /json_proto HTTP/1.0 [09:14:41]Method: POST [09:14:41]URL: /json_proto [09:14:41]Method is POST - this is cgi request [09:14:41]url: /json_proto [09:14:41]query_string will be loaded in cgi processing [09:14:41]execute_cgi json_proto POST (null) [09:14:41]execute_cgi path=json_proto method=POST [09:14:41]POST find Content-Length [09:14:41]Host: 172.17.62.5:8080 [09:14:41]Content-Length: 978 [09:14:41]Content-Type: application/json [09:14:41] [09:14:41]POST finish read [09:14:41]Found Content-Length = 978 [09:14:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191319", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 20.87 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:41]execute_script... [09:14: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)191319", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 20.87 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:41]POST & json_proto [09:14:41]process_json_proto [09:14:41]json parsed OK: [09:14:41]protocol is kg_v1.0 [09:14:41]action value=close_receipt [09:14:41]process_action close_receipt [09:14:41]cmd_close_receipt [09:14:41]MH_GetDate [09:14:41]Write to MH i2c: F0 00 00 45 1C 50 [09:14:41]Write i2c OK [09:14:41]MH_I2C_Read... [09:14:41]Read from MH i2c: F0 [09:14:41]MH_I2C_Read... [09:14:41]Read from MH i2c: F0 09 00 [09:14:41]MH_I2C_Read... [09:14:41]Read from MH i2c: F0 09 00 45 1C 00 05 D9 24 66 F4 E9 65 64 67 [09:14:41]GetLastDocTimeStamp 1713690821 [09:14:41]current date 1713690885 [09:14:41]FM_GetShiftState [09:14:41]SAM_PROTO_GetShiftState [09:14:41]wFMCommunicate request_size=4 [09:14:41]MH_SAM_APDU [09:14:41]CAPDU: 80 13 01 00 [09:14:41]Write to MH i2c: E2 08 00 46 1C 80 13 01 00 00 00 00 00 DF [09:14:41]Write i2c OK [09:14:41]MH_I2C_Read... [09:14:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:41]Read from MH i2c: E2 [09:14:41]MH_I2C_Read... [09:14:41]Read from MH i2c: E2 0E 00 [09:14:41]MH_I2C_Read... [09:14:41]Read from MH i2c: E2 0E 00 46 1C 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 26 [09:14:41]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [09:14:41]wFMCommunicate OK [09:14:41]SAM_PROTO_GetShiftState done [09:14:41]FM_GetShiftState done [09:14:41]opened in 1713658965 [09:14:41]opened+sec_in_day 1713745365 [09:14:41]quantity*price = 150055 [09:14:41]sum+1 = 150056 [09:14:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 45 21.04.2024 09:14 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 20.87 сом ФМ: 0000000000874652 ФД: 76789 ФПД: 204033647497557 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T091445&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76789&fm=204033647497557&tin=02508201610067®Number=0000000000091573&sum=150000 [09:14:42]StoreToDocumentArchive [09:14:42]shift 372 fd 76789 [09:14:42]save to /storage/0372/doc_00076789 [09:14:42]save last doc name /storage/0372/doc_00076789 to /storage/kkm_last_doc_name [09:14:42]save OK [09:14:42]Clear old archive folders... [09:14:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:14:42]tlvbuf is 018EFD60 [09:14:42]SAM_PROTO_ClearQueue [09:14:42]wFMCommunicate request_size=4 [09:14:42]MH_SAM_APDU [09:14:42]CAPDU: 80 09 00 00 [09:14:42]Write to MH i2c: E2 08 00 53 1C 80 09 00 00 00 00 00 00 E1 [09:14:42]Write i2c OK [09:14:42]MH_I2C_Read... [09:14:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:14:42]Read from MH i2c: E2 [09:14:42]MH_I2C_Read... [09:14:42]Read from MH i2c: E2 03 00 [09:14:42]MH_I2C_Read... [09:14:42]Read from MH i2c: E2 03 00 53 1C 00 90 00 E3 [09:14:42]RAPDU: 90 00 [09:14:42]wFMCommunicate OK [09:14:42]SAM_PROTO_ClearQueue done [09:14:42]KKMCreateOFDPacket [09:14:42]OFDProtocolAddRootSTLVToBuf [09:14:42]FM_MakeSignedData [09:14:42]FM_MakeSignedData [09:14:42]SAM_PROTO_SignData [09:14:42]wFMCommunicate request_size=4 [09:14:42]MH_SAM_APDU [09:14:42]CAPDU: 80 0D 01 02 [09:14:42]Write to MH i2c: E2 08 00 54 1C 80 0D 01 02 00 00 00 00 E9 [09:14:42]Write i2c OK [09:14:42]MH_I2C_Read... [09:14:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:14:42]Read from MH i2c: E2 [09:14:42]MH_I2C_Read... [09:14:42]Read from MH i2c: E2 03 00 [09:14:42]MH_I2C_Read... [09:14:42]Read from MH i2c: E2 03 00 54 1C 00 90 00 E4 [09:14:42]RAPDU: 90 00 [09:14:42]wFMCommunicate OK [09:14:42]wFMCommunicate request_size=255 [09:14:42]MH_SAM_APDU [09:14:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 05 D9 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F5 2B 01 00 35 04 06 00 B9 91 49 14 [09:14:42]Write to MH i2c: E2 02 01 55 1C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 05 D9 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F5 2B 01 00 35 04 06 00 B9 91 49 14 00 00 BC [09:14:42]Write i2c OK [09:14:42]MH_I2C_Read... [09:14:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:43]Read from MH i2c: E2 [09:14:43]MH_I2C_Read... [09:14:43]Read from MH i2c: E2 03 00 [09:14:43]MH_I2C_Read... [09:14:43]Read from MH i2c: E2 03 00 55 1C 00 90 00 E5 [09:14:43]RAPDU: 90 00 [09:14:43]wFMCommunicate OK [09:14:43]wFMCommunicate request_size=7 [09:14:43]MH_SAM_APDU [09:14:43]CAPDU: 80 0D 02 02 02 D1 55 [09:14:43]Write to MH i2c: E2 0A 00 56 1C 80 0D 02 02 02 00 D1 55 00 00 16 [09:14:43]Write i2c OK [09:14:43]MH_I2C_Read... [09:14:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:43]Read from MH i2c: E2 [09:14:43]MH_I2C_Read... [09:14:43]Read from MH i2c: E2 03 00 [09:14:43]MH_I2C_Read... [09:14:43]Read from MH i2c: E2 03 00 56 1C 00 90 00 E6 [09:14:43]RAPDU: 90 00 [09:14:43]wFMCommunicate OK [09:14:43]wFMCommunicate request_size=4 [09:14:43]MH_SAM_APDU [09:14:43]CAPDU: 80 0D 03 02 [09:14:43]Write to MH i2c: E2 08 00 57 1C 80 0D 03 02 00 00 00 00 EE [09:14:43]Write i2c OK [09:14:43]MH_I2C_Read... [09:14:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:14:43]Read from MH i2c: E2 [09:14:43]MH_I2C_Read... [09:14:43]Read from MH i2c: E2 0B 00 [09:14:43]MH_I2C_Read... [09:14:43]Read from MH i2c: E2 0B 00 57 1C 00 70 19 83 BD B0 2D 4C E2 90 00 C3 [09:14:43]RAPDU: 70 19 83 BD B0 2D 4C E2 90 00 [09:14:43]wFMCommunicate OK [09:14:43]SAM_PROTO_SignData done [09:14:43]FM_MakeSignedData done [09:14:43]CreateOFDProtocolMessage [09:14:43]wFMCommunicate request_size=4 [09:14:43]MH_SAM_APDU [09:14:43]CAPDU: 80 11 00 00 [09:14:43]Write to MH i2c: E2 08 00 58 1C 80 11 00 00 00 00 00 00 EE [09:14:43]Write i2c OK [09:14:43]MH_I2C_Read... [09:14:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:43]Read from MH i2c: E2 [09:14:43]MH_I2C_Read... [09:14:43]Read from MH i2c: E2 17 00 [09:14:43]MH_I2C_Read... [09:14:43]Read from MH i2c: E2 17 00 58 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 41 [09:14:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:14:43]wFMCommunicate OK [09:14:43]CreateOFDProtocolMessage done [09:14:43]OFDSenderStorePacket 76789 [09:14:43]StoreOFDPacket docnum=76789 [09:14:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 AD BC 04 01 BF 2F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 05 D9 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F5 2B 01 00 35 04 06 00 B9 91 49 14 D1 55 70 19 83 BD B0 2D 4C E2 [09:14:43]CheckFolder [09:14:43]dirname=/storage/ofd_packets [09:14:43]CheckFolder done [09:14:43]ProducePacketName [09:14:43]name=ofd_packets/00076789 [09:14:43]NVStorageSaveData ofd_packets/00076789 [09:14:43]File name is /storage/ofd_packets/00076789 [09:14:43]Write 298 bytes [09:14:43]NVStorageSaveData done [09:14:43]OFDSenderStorePacket done [09:14:43]KKMCreateOFDPacket done [09:14:43]NVStorageSaveData kkm_last_timestamp [09:14:43]File name is /storage/kkm_last_timestamp [09:14:43]Write 4 bytes [09:14:43]NVStorageSaveData done [09:14:43]ExternCall_PrintAddStr [09:14:43]wPrintStart [09:14:43]Write to MH i2c: 01 00 00 59 1C 75 [09:14:43]Write i2c OK [09:14:43]MH_I2C_Read... [09:14:43]Read from MH i2c: 01 [09:14:43]MH_I2C_Read... [09:14:43]Read from MH i2c: 01 07 00 [09:14:43]MH_I2C_Read... [09:14:43]Read from MH i2c: 01 07 00 59 1C 00 00 00 00 00 FF 0F 8A [09:14:43]RasterBufferAndPrint [09:14:43]line Счет N : (1)191319 [09:14:43]line ИНН: 02508201610067 [09:14:43]line Контрольно-Кассовый Чек [09:14:43]line ПРОДАЖА [09:14:43]line ТРК (МРК, ГНК) : 23 [09:14:43]line Товар: 2710194210 [09:14:43]line ДТ-К-5 [09:14:43]line 20.870 * 71.90 [09:14:43]line = 1500.55 [09:14:43]line НДС 12% НСП 1% [09:14:43]line > о реализуемом товаре [09:14:43]line ОКРУГЛЕНИЕ: -0.55 [09:14:43]line ИТОГО: 1500.00 [09:14:43]line Внесено: 1500.00 [09:14:43]line СДАЧА: 0.00 [09:14:43]line НСП 1% : 13.28 [09:14:43]line НДС 12% : 159.35 [09:14:43]line Наличными: 1500.00 [09:14:43]line Безнал.: 0.00 [09:14:43]line Место: АЗС № 106 "Партнер Нефть" [09:14:43]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [09:14:43]line СНО: Общий режим [09:14:43]line Чек 45 21.04.2024 09:14 [09:14:43]line Смена: 372 ФФД: 1.0 [09:14:43]line ЗНМ: 0300000141 [09:14:43]line РНМ: 0000000000091573 [09:14:43]line Версия ККМ: 001 [09:14:43]line [09:14:43]line Дисконтная программа [09:14:43]line ДТ [09:14:43]line номер 106 [09:14:43]line сэкономлено 20.87 сом [09:14:43]line ФМ: 0000000000874652 [09:14:43]line ФД: 76789 [09:14:43]line ФПД: 204033647497557 [09:14:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T091445&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76789&fm=204033647497557&tin=02508201610067®Number=0000000000091573&sum=150000 [09:14:43]OFD Sender: Processing packet 76789 [packets to send 129, broken 128] [09:14:43]ProducePacketName [09:14:43]name=ofd_packets/00076789 [09:14:43]OFD Sender: To server: pG, [09:14:43]CommunicateWithHost lk.salyk.kg:30040 [09:14:43]ConnectInit lk.salyk.kg [09:14:43]written 0, free lines is 4095 [09:14:44]Connected sock=9 [09:14:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 AD BC 04 01 BF 2F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 05 D9 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F5 2B 01 00 35 04 06 00 B9 91 49 14 D1 55 70 19 83 BD B0 2D 4C E2 [09:14:44]Write to MH i2c: 01 00 00 88 1C A4 [09:14:44]Write i2c OK [09:14:44]MH_I2C_Read... [09:14:44]Read from MH i2c: 01 [09:14:44]MH_I2C_Read... [09:14:44]Read from MH i2c: 01 07 00 [09:14:44]MH_I2C_Read... [09:14:44]Read from MH i2c: 01 07 00 88 1C 00 00 00 00 00 9A 0C 51 [09:14:44]RasterBufferAndPrint [09:14:44]line [09:14:44]line [09:14:44]line [09:14:44]line [09:14:44]line [09:14:44]written 0, free lines is 3233 [09:14:44]MH_Cut [09:14:44]Write to MH i2c: D1 01 00 8F 1C 01 7D [09:14:44]Write i2c OK [09:14:44]MH_I2C_Read... [09:14:44]Read from MH i2c: D1 [09:14:44]MH_I2C_Read... [09:14:44]Read from MH i2c: D1 01 00 [09:14:44]MH_I2C_Read... [09:14:44]Read from MH i2c: D1 01 00 8F 1C 00 7C [09:14:44]Write to MH i2c: 01 00 00 90 1C AC [09:14:44]Write i2c OK [09:14:44]MH_I2C_Read... [09:14:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 41 E4 47 00 2E 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 34 36 35 32 10 04 04 00 F5 2B 01 00 F4 03 04 00 8B 80 24 66 B6 04 01 00 00 7E 44 F4 87 FB 15 FF B4 [09:14:44]CommunicateWithHost err = 0 [09:14:44]CheckOFDResponse [09:14:44]1017 (14) - 77093643461234 [09:14:44]1041 (16) - 0000000000874652 [09:14:44]1040 (4) - 76789 [09:14:44]1012 (4) - 21.04.2024 02:57 [09:14:44]1206 (1) - 0 [09:14:44]OFD Sender: Remove packet 76789 [09:14:44]ProducePacketName [09:14:44]name=ofd_packets/00076789 [09:14:44]NVStorageDeleteData [09:14:44]OFD Sender: No OFD packet to send [09:14:45]*** Cut start [09:14:45]*** Partial cut [09:14:45]*** CUTSNS_PIN = 1 [09:14:45]*** CUTSNS_PIN = 0 [09:14:45]*** Brake cut motor [09:14:45]Read from MH i2c: 01 [09:14:45]MH_I2C_Read... [09:14:45]*** Stop cut motor [09:14:45]*** Cut end [09:14:45]Read from MH i2c: 01 07 00 [09:14:45]MH_I2C_Read... [09:14:45]Read from MH i2c: 01 07 00 90 1C 00 00 00 00 00 FF 0F C1 [09:14:45]process_action close_receipt done [09:14:45]requested_data is exist [09:14:45]produce_requested_data [09:14:45]requested_item fm.sn is exist - process it [09:14:45]wFMCommunicate request_size=4 [09:14:45]MH_SAM_APDU [09:14:45]CAPDU: 80 11 00 00 [09:14:45]Write to MH i2c: E2 08 00 91 1C 80 11 00 00 00 00 00 00 27 [09:14:45]Write i2c OK [09:14:45]MH_I2C_Read... [09:14:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:45]Read from MH i2c: E2 [09:14:45]MH_I2C_Read... [09:14:45]Read from MH i2c: E2 17 00 [09:14:45]MH_I2C_Read... [09:14:45]Read from MH i2c: E2 17 00 91 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 7A [09:14:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:14:45]wFMCommunicate OK [09:14:45]requested_item fd.num is exist - process it [09:14:45]SAM_PROTO_GetFieldsCounters [09:14:45]wFMCommunicate request_size=4 [09:14:45]MH_SAM_APDU [09:14:45]CAPDU: 80 13 00 00 [09:14:45]Write to MH i2c: E2 08 00 92 1C 80 13 00 00 00 00 00 00 2A [09:14:45]Write i2c OK [09:14:45]MH_I2C_Read... [09:14:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:14:45]Read from MH i2c: E2 [09:14:45]MH_I2C_Read... [09:14:45]Read from MH i2c: E2 62 00 [09:14:45]MH_I2C_Read... [09:14:45]Read from MH i2c: E2 62 00 92 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F5 2B 01 00 0E 04 04 00 74 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 68 [09:14: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F5 2B 01 00 0E 04 04 00 74 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 [09:14:45]wFMCommunicate OK [09:14:45]SAM_PROTO_GetFieldsCounters done [09:14:45]requested_item shift.num is exist - process it [09:14:45]requested_item shift.opened is exist - process it [09:14:45]req_shift_opened [09:14:45]FM_GetShiftState [09:14:45]SAM_PROTO_GetShiftState [09:14:45]wFMCommunicate request_size=4 [09:14:45]MH_SAM_APDU [09:14:45]CAPDU: 80 13 01 00 [09:14:45]Write to MH i2c: E2 08 00 93 1C 80 13 01 00 00 00 00 00 2C [09:14:45]Write i2c OK [09:14:45]MH_I2C_Read... [09:14:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:45]Read from MH i2c: E2 [09:14:45]MH_I2C_Read... [09:14:45]Read from MH i2c: E2 0E 00 [09:14:45]MH_I2C_Read... [09:14:45]Read from MH i2c: E2 0E 00 93 1C 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 73 [09:14:45]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [09:14:45]wFMCommunicate OK [09:14:45]SAM_PROTO_GetShiftState done [09:14:45]FM_GetShiftState done [09:14:45]req_shift_opened done [09:14:45]requested_item shift.open_date is exist - process it [09:14:45]req_shift_open_date [09:14:45]req_shift_open_date done [09:14:45]produce_requested_data done [09:14:45]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76789,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [09:14:45]process_action_free close_receipt [09:14:45]json_value_free [09:14:45]json_value_free done [09:14:45]process_json_proto returns [09:14:45]Send response to host [09:14:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76789,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [09:14:45]free response buf [09:14:45]execute_script done [09:14:45]execute_script returns [09:14:45]free content buf [09:14:45]Sock 10.Close socket [09:14:45]Sock 10.Thread stoped [09:14:49]OFD Sender: No OFD packet to send [09:14:54]OFD Sender: No OFD packet to send [09:14:59]OFD Sender: No OFD packet to send [09:15:04]OFD Sender: No OFD packet to send [09:15:09]OFD Sender: No OFD packet to send [09:15:14]OFD Sender: No OFD packet to send [09:15:19]OFD Sender: No OFD packet to send [09:15:24]OFD Sender: No OFD packet to send [09:15:29]OFD Sender: No OFD packet to send [09:15:34]OFD Sender: No OFD packet to send [09:15:39]OFD Sender: No OFD packet to send [09:15:44]OFD Sender: No OFD packet to send [09:15:49]OFD Sender: No OFD packet to send [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:10]OFD Sender: No OFD packet to send [09:16:15]OFD Sender: No OFD packet to send [09:16:20]OFD Sender: No OFD packet to send [09:16:25]OFD Sender: No OFD packet to send [09:16:30]OFD Sender: No OFD packet to send [09:16:35]OFD Sender: No OFD packet to send [09:16:40]OFD Sender: No OFD packet to send [09:16:45]OFD Sender: No OFD packet to send [09:16:50]OFD Sender: No OFD packet to send [09:16:55]OFD Sender: No OFD packet to send [09:17:00]OFD Sender: No OFD packet to send [09:17:05]OFD Sender: No OFD packet to send [09:17:10]OFD Sender: No OFD packet to send [09:17:15]OFD Sender: No OFD packet to send [09:17:20]OFD Sender: No OFD packet to send [09:17:25]OFD Sender: No OFD packet to send [09:17:30]OFD Sender: No OFD packet to send [09:17:35]OFD Sender: No OFD packet to send [09:17:40]OFD Sender: No OFD packet to send [09:17:45]OFD Sender: No OFD packet to send [09:17:50]OFD Sender: No OFD packet to send [09:17:55]OFD Sender: No OFD packet to send [09:18:00]OFD Sender: No OFD packet to send [09:18:05]OFD Sender: No OFD packet to send [09:18:10]OFD Sender: No OFD packet to send [09:18:15]OFD Sender: No OFD packet to send [09:18:20]OFD Sender: No OFD packet to send [09:18:25]OFD Sender: No OFD packet to send [09:18:30]OFD Sender: No OFD packet to send [09:18:35]OFD Sender: No OFD packet to send [09:18:40]OFD Sender: No OFD packet to send [09:18:45]OFD Sender: No OFD packet to send [09:18:50]OFD Sender: No OFD packet to send [09:18:55]OFD Sender: No OFD packet to send [09:19:00]OFD Sender: No OFD packet to send [09:19:05]OFD Sender: No OFD packet to send [09:19:10]OFD Sender: No OFD packet to send [09:19:15]OFD Sender: No OFD packet to send [09:19:20]OFD Sender: No OFD packet to send [09:19:25]OFD Sender: No OFD packet to send [09:19:30]OFD Sender: No OFD packet to send [09:19:35]OFD Sender: No OFD packet to send [09:19:40]OFD Sender: No OFD packet to send [09:19:45]OFD Sender: No OFD packet to send [09:19:50]OFD Sender: No OFD packet to send [09:19:55]OFD Sender: No OFD packet to send [09:20:00]OFD Sender: No OFD packet to send [09:20:05]OFD Sender: No OFD packet to send [09:20:10]OFD Sender: No OFD packet to send [09:20:15]OFD Sender: No OFD packet to send [09:20:20]OFD Sender: No OFD packet to send [09:20:25]OFD Sender: No OFD packet to send [09:20:30]OFD Sender: No OFD packet to send [09:20:35]OFD Sender: No OFD packet to send [09:20:40]OFD Sender: No OFD packet to send [09:20: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]OFD Sender: No OFD packet to send [09:25:10]OFD Sender: No OFD packet to send [09:25:15]OFD Sender: No OFD packet to send [09:25:20]OFD Sender: No OFD packet to send [09:25:25]OFD Sender: No OFD packet to send [09:25:26]accept exits with 7 [09:25:26]New connection [09:25:26]New thread 3067338084 created [09:25:26]Thread 3067481444 joined [09:25:26]Waiting for new connection... [09:25:26] Sock 7.Parse request [09:25:26]Sock 7.Check first char [09:25:26]Sock 7.First char is OK [09:25:26]request: POST /json_proto HTTP/1.0 [09:25:26]Method: POST [09:25:26]URL: /json_proto [09:25:26]Method is POST - this is cgi request [09:25:26]url: /json_proto [09:25:26]query_string will be loaded in cgi processing [09:25:26]execute_cgi json_proto POST (null) [09:25:26]execute_cgi path=json_proto method=POST [09:25:26]POST find Content-Length [09:25:26]Host: 172.17.62.5:8080 [09:25:26]Content-Length: 1195 [09:25:26]Content-Type: application/json [09:25:26] [09:25:26]POST finish read [09:25:26]Found Content-Length = 1195 [09:25:26]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041B\u044B\u043C\u0430\u0440\u0435\u0432\u0430 \u0412. \u000A\u0421\u0447\u0435\u0442 N : (1)191320\u000A21.04.2024 09:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 1288.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\u000A74644\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:26]execute_script... [09:25:26]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041B\u044B\u043C\u0430\u0440\u0435\u0432\u0430 \u0412. \u000A\u0421\u0447\u0435\u0442 N : (1)191320\u000A21.04.2024 09:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 1288.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\u000A74644\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:26]POST & json_proto [09:25:26]process_json_proto [09:25:26]json parsed OK: [09:25:26]protocol is kg_v1.0 [09:25:26]action value=print_text [09:25:26]process_action print_text [09:25:26]cmd_print_text [09:25:26]ExternCall_PrintAddStr [09:25:26]wPrintStart [09:25:26]Write to MH i2c: 01 00 00 94 1C B0 [09:25:26]Write i2c OK [09:25:26]MH_I2C_Read... [09:25:26]Read from MH i2c: 01 [09:25:26]MH_I2C_Read... [09:25:26]Read from MH i2c: 01 07 00 [09:25:26]MH_I2C_Read... [09:25:26]Read from MH i2c: 01 07 00 94 1C 00 00 00 00 00 FF 0F C5 [09:25:26]RasterBufferAndPrint [09:25:26]line *****ТОВАРНЫЙ ЧЕК***** [09:25:26]line АЗС 106 [09:25:26]line Партнер нефть [09:25:26]line 02508201610067 [09:25:26]line Кассир : Лымарева В. [09:25:26]line Счет N : (1)191320 [09:25:26]line 21.04.2024 09:06 [09:25:26]line ПРОДАЖА [09:25:26]line ТРК (МРК, ГНК): 22 [09:25:26]line Вид ГСМ : 2710124130 [09:25:26]line Аи-92-К-5 [09:25:26]line 20.000 x 64.40 [09:25:26]line ИТОГ: 1288.00 [09:25:26]line Тип оплаты: Талоны: Топливная Карта [09:25:26]line 74644 [09:25:26]line ______________________ [09:25:26]line (подпись) [09:25:26]written 0, free lines is 4095 [09:25:26]Write to MH i2c: 01 00 00 A8 1C C4 [09:25:26]Write i2c OK [09:25:26]MH_I2C_Read... [09:25:26]Read from MH i2c: 01 [09:25:26]MH_I2C_Read... [09:25:26]Read from MH i2c: 01 07 00 [09:25:26]MH_I2C_Read... [09:25:26]Read from MH i2c: 01 07 00 A8 1C 00 00 00 00 00 10 0E E9 [09:25:26]RasterBufferAndPrint [09:25:26]line [09:25:26]line [09:25:26]line [09:25:26]line [09:25:26]line [09:25:26]written 0, free lines is 3601 [09:25:26]MH_Cut [09:25:26]Write to MH i2c: D1 01 00 AF 1C 01 9D [09:25:26]Write i2c OK [09:25:26]MH_I2C_Read... [09:25:26]Read from MH i2c: D1 [09:25:26]MH_I2C_Read... [09:25:26]Read from MH i2c: D1 01 00 [09:25:26]MH_I2C_Read... [09:25:26]Read from MH i2c: D1 01 00 AF 1C 00 9C [09:25:26]Write to MH i2c: 01 00 00 B0 1C CC [09:25:26]Write i2c OK [09:25:26]MH_I2C_Read... [09:25:27]*** Cut start [09:25:27]*** Partial cut [09:25:27]*** CUTSNS_PIN = 1 [09:25:27]*** CUTSNS_PIN = 0 [09:25:27]*** Brake cut motor [09:25:27]Read from MH i2c: 01 [09:25:27]MH_I2C_Read... [09:25:27]Read from MH i2c: 01 07 00 [09:25:27]MH_I2C_Read... [09:25:27]*** Stop cut motor [09:25:27]*** Cut end [09:25:27]Read from MH i2c: 01 07 00 B0 1C 00 00 00 00 00 FF 0F E1 [09:25:27]process_action print_text done [09:25:27]requested_data is exist [09:25:27]produce_requested_data [09:25:27]requested_item fm.sn is exist - process it [09:25:27]wFMCommunicate request_size=4 [09:25:27]MH_SAM_APDU [09:25:27]CAPDU: 80 11 00 00 [09:25:27]Write to MH i2c: E2 08 00 B1 1C 80 11 00 00 00 00 00 00 47 [09:25:27]Write i2c OK [09:25:27]MH_I2C_Read... [09:25:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:27]Read from MH i2c: E2 [09:25:27]MH_I2C_Read... [09:25:27]Read from MH i2c: E2 17 00 [09:25:27]MH_I2C_Read... [09:25:27]Read from MH i2c: E2 17 00 B1 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 9A [09:25:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:25:27]wFMCommunicate OK [09:25:27]requested_item fd.num is exist - process it [09:25:27]SAM_PROTO_GetFieldsCounters [09:25:27]wFMCommunicate request_size=4 [09:25:27]MH_SAM_APDU [09:25:27]CAPDU: 80 13 00 00 [09:25:27]Write to MH i2c: E2 08 00 B2 1C 80 13 00 00 00 00 00 00 4A [09:25:27]Write i2c OK [09:25:27]MH_I2C_Read... [09:25:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:28]Read from MH i2c: E2 [09:25:28]MH_I2C_Read... [09:25:28]Read from MH i2c: E2 62 00 [09:25:28]MH_I2C_Read... [09:25:28]Read from MH i2c: E2 62 00 B2 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F5 2B 01 00 0E 04 04 00 74 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 88 [09:25:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F5 2B 01 00 0E 04 04 00 74 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 [09:25:28]wFMCommunicate OK [09:25:28]SAM_PROTO_GetFieldsCounters done [09:25:28]requested_item shift.num is exist - process it [09:25:28]requested_item shift.opened is exist - process it [09:25:28]req_shift_opened [09:25:28]FM_GetShiftState [09:25:28]SAM_PROTO_GetShiftState [09:25:28]wFMCommunicate request_size=4 [09:25:28]MH_SAM_APDU [09:25:28]CAPDU: 80 13 01 00 [09:25:28]Write to MH i2c: E2 08 00 B3 1C 80 13 01 00 00 00 00 00 4C [09:25:28]Write i2c OK [09:25:28]MH_I2C_Read... [09:25:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:28]Read from MH i2c: E2 [09:25:28]MH_I2C_Read... [09:25:28]Read from MH i2c: E2 0E 00 [09:25:28]MH_I2C_Read... [09:25:28]Read from MH i2c: E2 0E 00 B3 1C 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 93 [09:25:28]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [09:25:28]wFMCommunicate OK [09:25:28]SAM_PROTO_GetShiftState done [09:25:28]FM_GetShiftState done [09:25:28]req_shift_opened done [09:25:28]requested_item shift.open_date is exist - process it [09:25:28]req_shift_open_date [09:25:28]req_shift_open_date done [09:25:28]produce_requested_data done [09:25:28]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76789,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [09:25:28]process_action_free print_text [09:25:28]json_value_free [09:25:28]json_value_free done [09:25:28]process_json_proto returns [09:25:28]Send response to host [09:25:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76789,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [09:25:28]free response buf [09:25:28]execute_script done [09:25:28]execute_script returns [09:25:28]free content buf [09:25:28]Sock 7.Close socket [09:25:28]Sock 7.Thread stoped [09:25:30]OFD Sender: No OFD packet to send [09:25:35]OFD Sender: No OFD packet to send [09:25:40]OFD Sender: No OFD packet to send [09:25:45]OFD Sender: No OFD packet to send [09:25:50]OFD Sender: No OFD packet to send [09:25:55]OFD Sender: No OFD packet to send [09:26:00]OFD Sender: No OFD packet to send [09:26:05]OFD Sender: No OFD packet to send [09:26:10]OFD Sender: No OFD packet to send [09:26:15]OFD Sender: No OFD packet to send [09:26:20]OFD Sender: No OFD packet to send [09:26:21]accept exits with 9 [09:26:21]New connection [09:26:21]New thread 3067481444 created [09:26:21]Thread 3067338084 joined [09:26:21]Waiting for new connection... [09:26:21] Sock 9.Parse request [09:26:21]Sock 9.Check first char [09:26:21]Sock 9.First char is OK [09:26:21]request: POST /json_proto HTTP/1.0 [09:26:21]Method: POST [09:26:21]URL: /json_proto [09:26:21]Method is POST - this is cgi request [09:26:21]url: /json_proto [09:26:21]query_string will be loaded in cgi processing [09:26:21]execute_cgi json_proto POST (null) [09:26:21]execute_cgi path=json_proto method=POST [09:26:21]POST find Content-Length [09:26:21]Host: 172.17.62.5:8080 [09:26:21]Content-Length: 677 [09:26:21]Content-Type: application/json [09:26:21] [09:26:21]POST finish read [09:26:21]Found Content-Length = 677 [09:26:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:26:21]execute_script... [09:26:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:26:21]POST & json_proto [09:26:21]process_json_proto [09:26:21]json parsed OK: [09:26:21]protocol is kg_v1.0 [09:26:21]action value=close_receipt [09:26:21]process_action close_receipt [09:26:21]cmd_close_receipt [09:26:21]MH_GetDate [09:26:21]Write to MH i2c: F0 00 00 B4 1C BF [09:26:21]Write i2c OK [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: F0 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: F0 09 00 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: F0 09 00 B4 1C 00 C1 DB 24 66 F4 E9 65 64 94 [09:26:21]GetLastDocTimeStamp 1713690885 [09:26:21]current date 1713691585 [09:26:21]FM_GetShiftState [09:26:21]SAM_PROTO_GetShiftState [09:26:21]wFMCommunicate request_size=4 [09:26:21]MH_SAM_APDU [09:26:21]CAPDU: 80 13 01 00 [09:26:21]Write to MH i2c: E2 08 00 B5 1C 80 13 01 00 00 00 00 00 4E [09:26:21]Write i2c OK [09:26:21]MH_I2C_Read... [09:26:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:21]Read from MH i2c: E2 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: E2 0E 00 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: E2 0E 00 B5 1C 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 95 [09:26:21]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [09:26:21]wFMCommunicate OK [09:26:21]SAM_PROTO_GetShiftState done [09:26:21]FM_GetShiftState done [09:26:21]opened in 1713658965 [09:26:21]opened+sec_in_day 1713745365 [09:26:21]quantity*price = 50038 [09:26:21]sum+1 = 50040 [09:26:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 46 21.04.2024 09:26 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76790 ФПД: 44733336139362 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T092625&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76790&fm=44733336139362&tin=02508201610067®Number=0000000000091573&sum=50000 [09:26:22]StoreToDocumentArchive [09:26:22]shift 372 fd 76790 [09:26:22]save to /storage/0372/doc_00076790 [09:26:22]save last doc name /storage/0372/doc_00076790 to /storage/kkm_last_doc_name [09:26:22]save OK [09:26:22]Clear old archive folders... [09:26:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:26:22]tlvbuf is 01888150 [09:26:22]SAM_PROTO_ClearQueue [09:26:22]wFMCommunicate request_size=4 [09:26:22]MH_SAM_APDU [09:26:22]CAPDU: 80 09 00 00 [09:26:22]Write to MH i2c: E2 08 00 C2 1C 80 09 00 00 00 00 00 00 50 [09:26:22]Write i2c OK [09:26:22]MH_I2C_Read... [09:26:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:22]Read from MH i2c: E2 [09:26:22]MH_I2C_Read... [09:26:22]Read from MH i2c: E2 03 00 [09:26:22]MH_I2C_Read... [09:26:22]Read from MH i2c: E2 03 00 C2 1C 00 90 00 52 [09:26:22]RAPDU: 90 00 [09:26:22]wFMCommunicate OK [09:26:22]SAM_PROTO_ClearQueue done [09:26:22]KKMCreateOFDPacket [09:26:22]OFDProtocolAddRootSTLVToBuf [09:26:22]FM_MakeSignedData [09:26:22]FM_MakeSignedData [09:26:22]SAM_PROTO_SignData [09:26:22]wFMCommunicate request_size=4 [09:26:22]MH_SAM_APDU [09:26:22]CAPDU: 80 0D 01 02 [09:26:22]Write to MH i2c: E2 08 00 C3 1C 80 0D 01 02 00 00 00 00 58 [09:26:22]Write i2c OK [09:26:22]MH_I2C_Read... [09:26:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:22]Read from MH i2c: E2 [09:26:22]MH_I2C_Read... [09:26:22]Read from MH i2c: E2 03 00 [09:26:22]MH_I2C_Read... [09:26:22]Read from MH i2c: E2 03 00 C3 1C 00 90 00 53 [09:26:22]RAPDU: 90 00 [09:26:22]wFMCommunicate OK [09:26:22]wFMCommunicate request_size=255 [09:26:22]MH_SAM_APDU [09:26: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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 C1 DB 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F6 2B 01 00 35 04 06 00 28 [09:26:22]Write to MH i2c: E2 02 01 C4 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 C1 DB 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F6 2B 01 00 35 04 06 00 28 00 00 20 [09:26:22]Write i2c OK [09:26:22]MH_I2C_Read... [09:26:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:23]Read from MH i2c: E2 [09:26:23]MH_I2C_Read... [09:26:23]Read from MH i2c: E2 03 00 [09:26:23]MH_I2C_Read... [09:26:23]Read from MH i2c: E2 03 00 C4 1C 00 90 00 54 [09:26:23]RAPDU: 90 00 [09:26:23]wFMCommunicate OK [09:26:23]wFMCommunicate request_size=10 [09:26:23]MH_SAM_APDU [09:26:23]CAPDU: 80 0D 02 02 05 AF 4A 9C 36 62 [09:26:23]Write to MH i2c: E2 0D 00 C5 1C 80 0D 02 02 05 00 AF 4A 9C 36 62 00 00 92 [09:26:23]Write i2c OK [09:26:23]MH_I2C_Read... [09:26:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:23]Read from MH i2c: E2 [09:26:23]MH_I2C_Read... [09:26:23]Read from MH i2c: E2 03 00 [09:26:23]MH_I2C_Read... [09:26:23]Read from MH i2c: E2 03 00 C5 1C 00 90 00 55 [09:26:23]RAPDU: 90 00 [09:26:23]wFMCommunicate OK [09:26:23]wFMCommunicate request_size=4 [09:26:23]MH_SAM_APDU [09:26:23]CAPDU: 80 0D 03 02 [09:26:23]Write to MH i2c: E2 08 00 C6 1C 80 0D 03 02 00 00 00 00 5D [09:26:23]Write i2c OK [09:26:23]MH_I2C_Read... [09:26:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:23]Read from MH i2c: E2 [09:26:23]MH_I2C_Read... [09:26:23]Read from MH i2c: E2 0B 00 [09:26:23]MH_I2C_Read... [09:26:23]Read from MH i2c: E2 0B 00 C6 1C 00 5B 97 0E F7 3C 3F 62 8E 90 00 C0 [09:26:23]RAPDU: 5B 97 0E F7 3C 3F 62 8E 90 00 [09:26:23]wFMCommunicate OK [09:26:23]SAM_PROTO_SignData done [09:26:23]FM_MakeSignedData done [09:26:23]CreateOFDProtocolMessage [09:26:23]wFMCommunicate request_size=4 [09:26:23]MH_SAM_APDU [09:26:23]CAPDU: 80 11 00 00 [09:26:23]Write to MH i2c: E2 08 00 C7 1C 80 11 00 00 00 00 00 00 5D [09:26:23]Write i2c OK [09:26:23]MH_I2C_Read... [09:26:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:23]Read from MH i2c: E2 [09:26:23]MH_I2C_Read... [09:26:23]Read from MH i2c: E2 17 00 [09:26:23]MH_I2C_Read... [09:26:23]Read from MH i2c: E2 17 00 C7 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 B0 [09:26:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:26:23]wFMCommunicate OK [09:26:23]CreateOFDProtocolMessage done [09:26:23]OFDSenderStorePacket 76790 [09:26:23]StoreOFDPacket docnum=76790 [09:26:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 C5 35 07 01 D6 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 C1 DB 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F6 2B 01 00 35 04 06 00 28 AF 4A 9C 36 62 5B 97 0E F7 3C 3F 62 8E [09:26:23]CheckFolder [09:26:23]dirname=/storage/ofd_packets [09:26:23]CheckFolder done [09:26:23]ProducePacketName [09:26:23]name=ofd_packets/00076790 [09:26:23]NVStorageSaveData ofd_packets/00076790 [09:26:23]File name is /storage/ofd_packets/00076790 [09:26:23]Write 301 bytes [09:26:23]NVStorageSaveData done [09:26:23]OFDSenderStorePacket done [09:26:23]KKMCreateOFDPacket done [09:26:23]NVStorageSaveData kkm_last_timestamp [09:26:23]File name is /storage/kkm_last_timestamp [09:26:23]Write 4 bytes [09:26:23]NVStorageSaveData done [09:26:23]ExternCall_PrintAddStr [09:26:23]wPrintStart [09:26:23]Write to MH i2c: 01 00 00 C8 1C E4 [09:26:23]Write i2c OK [09:26:23]MH_I2C_Read... [09:26:23]Read from MH i2c: 01 [09:26:23]MH_I2C_Read... [09:26:23]Read from MH i2c: 01 07 00 [09:26:23]MH_I2C_Read... [09:26:23]Read from MH i2c: 01 07 00 C8 1C 00 00 00 00 00 FF 0F F9 [09:26:23]RasterBufferAndPrint [09:26:23]line Счет N : (1)191321 [09:26:23]line ИНН: 02508201610067 [09:26:23]line Контрольно-Кассовый Чек [09:26:23]line ПРОДАЖА [09:26:23]line ТРК (МРК, ГНК) : 43 [09:26:23]line Товар: 2710124130 [09:26:23]line Аи-92-К-5 [09:26:23]line 7.770 * 64.40 [09:26:23]line = 500.39 [09:26:23]line НДС 12% НСП 1% [09:26:23]line > о реализуемом товаре [09:26:23]line ОКРУГЛЕНИЕ: -0.39 [09:26:23]line ИТОГО: 500.00 [09:26:23]line Внесено: 500.00 [09:26:23]line СДАЧА: 0.00 [09:26:23]line НСП 1% : 4.43 [09:26:23]line НДС 12% : 53.14 [09:26:23]line Наличными: 500.00 [09:26:23]line Безнал.: 0.00 [09:26:23]line Место: АЗС № 106 "Партнер Нефть" [09:26:23]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [09:26:23]line СНО: Общий режим [09:26:23]line Чек 46 21.04.2024 09:26 [09:26:23]line Смена: 372 ФФД: 1.0 [09:26:23]line ЗНМ: 0300000141 [09:26:23]line РНМ: 0000000000091573 [09:26:23]line Версия ККМ: 001 [09:26:23]line ФМ: 0000000000874652 [09:26:23]line ФД: 76790 [09:26:23]line ФПД: 44733336139362 [09:26:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T092625&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76790&fm=44733336139362&tin=02508201610067®Number=0000000000091573&sum=50000 [09:26:23]written 0, free lines is 4095 [09:26:23]OFD Sender: Processing packet 76790 [packets to send 129, broken 128] [09:26:23]ProducePacketName [09:26:23]name=ofd_packets/00076790 [09:26:23]OFD Sender: To server: pG, [09:26:23]CommunicateWithHost lk.salyk.kg:30040 [09:26:23]ConnectInit lk.salyk.kg [09:26:23]Connected sock=10 [09:26:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 C5 35 07 01 D6 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 C1 DB 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F6 2B 01 00 35 04 06 00 28 AF 4A 9C 36 62 5B 97 0E F7 3C 3F 62 8E [09:26:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 50 B7 47 00 FA 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 34 36 35 32 10 04 04 00 F6 2B 01 00 F4 03 04 00 47 83 24 66 B6 04 01 00 00 5B 1F 61 7A DD F8 06 61 [09:26:24]CommunicateWithHost err = 0 [09:26:24]CheckOFDResponse [09:26:24]1017 (14) - 77093643461234 [09:26:24]1041 (16) - 0000000000874652 [09:26:24]1040 (4) - 76790 [09:26:24]1012 (4) - 21.04.2024 03:08 [09:26:24]1206 (1) - 0 [09:26:24]OFD Sender: Remove packet 76790 [09:26:24]ProducePacketName [09:26:24]name=ofd_packets/00076790 [09:26:24]NVStorageDeleteData [09:26:24]Write to MH i2c: 01 00 00 F2 1C 0E [09:26:24]Write i2c OK [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: 01 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: 01 07 00 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: 01 07 00 F2 1C 00 00 00 00 00 E3 0C 04 [09:26:24]RasterBufferAndPrint [09:26:24]line [09:26:24]line [09:26:24]line [09:26:24]line [09:26:24]line [09:26:24]written 0, free lines is 3305 [09:26:24]MH_Cut [09:26:24]Write to MH i2c: D1 01 00 F9 1C 01 E7 [09:26:24]Write i2c OK [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: D1 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: D1 01 00 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: D1 01 00 F9 1C 00 E6 [09:26:24]Write to MH i2c: 01 00 00 FA 1C 16 [09:26:24]Write i2c OK [09:26:24]MH_I2C_Read... [09:26:24]OFD Sender: No OFD packet to send [09:26:24]*** Cut start [09:26:24]*** Partial cut [09:26:24]*** CUTSNS_PIN = 1 [09:26:24]*** CUTSNS_PIN = 0 [09:26:25]*** Brake cut motor [09:26:25]Read from MH i2c: 01 [09:26:25]MH_I2C_Read... [09:26:25]*** Stop cut motor [09:26:25]*** Cut end [09:26:25]Read from MH i2c: 01 07 00 [09:26:25]MH_I2C_Read... [09:26:25]Read from MH i2c: 01 07 00 FA 1C 00 00 00 00 00 FF 0F 2B [09:26:25]process_action close_receipt done [09:26:25]requested_data is exist [09:26:25]produce_requested_data [09:26:25]requested_item fm.sn is exist - process it [09:26:25]wFMCommunicate request_size=4 [09:26:25]MH_SAM_APDU [09:26:25]CAPDU: 80 11 00 00 [09:26:25]Write to MH i2c: E2 08 00 FB 1C 80 11 00 00 00 00 00 00 91 [09:26:25]Write i2c OK [09:26:25]MH_I2C_Read... [09:26:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:25]Read from MH i2c: E2 [09:26:25]MH_I2C_Read... [09:26:25]Read from MH i2c: E2 17 00 [09:26:25]MH_I2C_Read... [09:26:25]Read from MH i2c: E2 17 00 FB 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 E4 [09:26:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:26:25]wFMCommunicate OK [09:26:25]requested_item fd.num is exist - process it [09:26:25]SAM_PROTO_GetFieldsCounters [09:26:25]wFMCommunicate request_size=4 [09:26:25]MH_SAM_APDU [09:26:25]CAPDU: 80 13 00 00 [09:26:25]Write to MH i2c: E2 08 00 FC 1C 80 13 00 00 00 00 00 00 94 [09:26:25]Write i2c OK [09:26:25]MH_I2C_Read... [09:26:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:25]Read from MH i2c: E2 [09:26:25]MH_I2C_Read... [09:26:25]Read from MH i2c: E2 62 00 [09:26:25]MH_I2C_Read... [09:26:25]Read from MH i2c: E2 62 00 FC 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F6 2B 01 00 0E 04 04 00 74 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 D6 [09:26:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F6 2B 01 00 0E 04 04 00 74 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 [09:26:25]wFMCommunicate OK [09:26:25]SAM_PROTO_GetFieldsCounters done [09:26:25]requested_item shift.num is exist - process it [09:26:25]requested_item shift.opened is exist - process it [09:26:25]req_shift_opened [09:26:25]FM_GetShiftState [09:26:25]SAM_PROTO_GetShiftState [09:26:25]wFMCommunicate request_size=4 [09:26:25]MH_SAM_APDU [09:26:25]CAPDU: 80 13 01 00 [09:26:25]Write to MH i2c: E2 08 00 FD 1C 80 13 01 00 00 00 00 00 96 [09:26:25]Write i2c OK [09:26:25]MH_I2C_Read... [09:26:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:25]Read from MH i2c: E2 [09:26:25]MH_I2C_Read... [09:26:25]Read from MH i2c: E2 0E 00 [09:26:25]MH_I2C_Read... [09:26:25]Read from MH i2c: E2 0E 00 FD 1C 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 DD [09:26:25]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [09:26:25]wFMCommunicate OK [09:26:25]SAM_PROTO_GetShiftState done [09:26:25]FM_GetShiftState done [09:26:25]req_shift_opened done [09:26:25]requested_item shift.open_date is exist - process it [09:26:25]req_shift_open_date [09:26:25]req_shift_open_date done [09:26:25]produce_requested_data done [09:26:25]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76790,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [09:26:25]process_action_free close_receipt [09:26:25]json_value_free [09:26:25]json_value_free done [09:26:25]process_json_proto returns [09:26:25]Send response to host [09:26:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76790,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [09:26:25]free response buf [09:26:25]execute_script done [09:26:25]execute_script returns [09:26:25]free content buf [09:26:25]Sock 9.Close socket [09:26:25]Sock 9.Thread stoped [09:26:25]accept exits with 7 [09:26:25]New connection [09:26:25]New thread 3067338084 created [09:26:25]Thread 3067481444 joined [09:26:25]Waiting for new connection... [09:26:25] Sock 7.Parse request [09:26:25]Sock 7.Check first char [09:26:25]Sock 7.First char is OK [09:26:25]request: POST /json_proto HTTP/1.0 [09:26:25]Method: POST [09:26:25]URL: /json_proto [09:26:25]Method is POST - this is cgi request [09:26:25]url: /json_proto [09:26:25]query_string will be loaded in cgi processing [09:26:25]execute_cgi json_proto POST (null) [09:26:25]execute_cgi path=json_proto method=POST [09:26:25]POST find Content-Length [09:26:25]Host: 172.17.62.5:8080 [09:26:25]Content-Length: 677 [09:26:25]Content-Type: application/json [09:26:25] [09:26:25]POST finish read [09:26:25]Found Content-Length = 677 [09:26:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191322", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:26:25]execute_script... [09:26: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)191322", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:26:25]POST & json_proto [09:26:25]process_json_proto [09:26:25]json parsed OK: [09:26:25]protocol is kg_v1.0 [09:26:25]action value=close_receipt [09:26:25]process_action close_receipt [09:26:25]cmd_close_receipt [09:26:25]MH_GetDate [09:26:25]Write to MH i2c: F0 00 00 FE 1C 09 [09:26:25]Write i2c OK [09:26:25]MH_I2C_Read... [09:26:25]Read from MH i2c: F0 [09:26:25]MH_I2C_Read... [09:26:25]Read from MH i2c: F0 09 00 [09:26:25]MH_I2C_Read... [09:26:25]Read from MH i2c: F0 09 00 FE 1C 00 C5 DB 24 66 F4 E9 65 64 E2 [09:26:25]GetLastDocTimeStamp 1713691585 [09:26:25]current date 1713691589 [09:26:25]FM_GetShiftState [09:26:25]SAM_PROTO_GetShiftState [09:26:25]wFMCommunicate request_size=4 [09:26:25]MH_SAM_APDU [09:26:25]CAPDU: 80 13 01 00 [09:26:25]Write to MH i2c: E2 08 00 FF 1C 80 13 01 00 00 00 00 00 98 [09:26:25]Write i2c OK [09:26:25]MH_I2C_Read... [09:26:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:26]Read from MH i2c: E2 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: E2 0E 00 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: E2 0E 00 FF 1C 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 DF [09:26:26]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [09:26:26]wFMCommunicate OK [09:26:26]SAM_PROTO_GetShiftState done [09:26:26]FM_GetShiftState done [09:26:26]opened in 1713658965 [09:26:26]opened+sec_in_day 1713745365 [09:26:26]quantity*price = 50038 [09:26:26]sum+1 = 50040 [09:26:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 47 21.04.2024 09:26 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76791 ФПД: 245181359893016 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T092629&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76791&fm=245181359893016&tin=02508201610067®Number=0000000000091573&sum=50000 [09:26:27]StoreToDocumentArchive [09:26:27]shift 372 fd 76791 [09:26:27]save to /storage/0372/doc_00076791 [09:26:27]save last doc name /storage/0372/doc_00076791 to /storage/kkm_last_doc_name [09:26:27]save OK [09:26:27]Clear old archive folders... [09:26:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:26:27]tlvbuf is 01913C10 [09:26:27]SAM_PROTO_ClearQueue [09:26:27]wFMCommunicate request_size=4 [09:26:27]MH_SAM_APDU [09:26:27]CAPDU: 80 09 00 00 [09:26:27]Write to MH i2c: E2 08 00 0C 1D 80 09 00 00 00 00 00 00 9B [09:26:27]Write i2c OK [09:26:27]MH_I2C_Read... [09:26:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:27]Read from MH i2c: E2 [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: E2 03 00 [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: E2 03 00 0C 1D 00 90 00 9D [09:26:27]RAPDU: 90 00 [09:26:27]wFMCommunicate OK [09:26:27]SAM_PROTO_ClearQueue done [09:26:27]KKMCreateOFDPacket [09:26:27]OFDProtocolAddRootSTLVToBuf [09:26:27]FM_MakeSignedData [09:26:27]FM_MakeSignedData [09:26:27]SAM_PROTO_SignData [09:26:27]wFMCommunicate request_size=4 [09:26:27]MH_SAM_APDU [09:26:27]CAPDU: 80 0D 01 02 [09:26:27]Write to MH i2c: E2 08 00 0D 1D 80 0D 01 02 00 00 00 00 A3 [09:26:27]Write i2c OK [09:26:27]MH_I2C_Read... [09:26:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:27]Read from MH i2c: E2 [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: E2 03 00 [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: E2 03 00 0D 1D 00 90 00 9E [09:26:27]RAPDU: 90 00 [09:26:27]wFMCommunicate OK [09:26:27]wFMCommunicate request_size=255 [09:26:27]MH_SAM_APDU [09:26:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 C5 DB 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F7 2B 01 00 35 04 06 00 DE [09:26:27]Write to MH i2c: E2 02 01 0E 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 C5 DB 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F7 2B 01 00 35 04 06 00 DE 00 00 27 [09:26:27]Write i2c OK [09:26:27]MH_I2C_Read... [09:26:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:27]Read from MH i2c: E2 [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: E2 03 00 [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: E2 03 00 0E 1D 00 90 00 9F [09:26:27]RAPDU: 90 00 [09:26:27]wFMCommunicate OK [09:26:27]wFMCommunicate request_size=10 [09:26:27]MH_SAM_APDU [09:26:27]CAPDU: 80 0D 02 02 05 FD BB DC AA 18 [09:26:27]Write to MH i2c: E2 0D 00 0F 1D 80 0D 02 02 05 00 FD BB DC AA 18 00 00 06 [09:26:27]Write i2c OK [09:26:27]MH_I2C_Read... [09:26:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:27]Read from MH i2c: E2 [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: E2 03 00 [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: E2 03 00 0F 1D 00 90 00 A0 [09:26:27]RAPDU: 90 00 [09:26:27]wFMCommunicate OK [09:26:27]wFMCommunicate request_size=4 [09:26:27]MH_SAM_APDU [09:26:27]CAPDU: 80 0D 03 02 [09:26:27]Write to MH i2c: E2 08 00 10 1D 80 0D 03 02 00 00 00 00 A8 [09:26:27]Write i2c OK [09:26:27]MH_I2C_Read... [09:26:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:28]Read from MH i2c: E2 [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: E2 0B 00 [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: E2 0B 00 10 1D 00 CC 35 11 FE 2F 80 FF 25 90 00 8C [09:26:28]RAPDU: CC 35 11 FE 2F 80 FF 25 90 00 [09:26:28]wFMCommunicate OK [09:26:28]SAM_PROTO_SignData done [09:26:28]FM_MakeSignedData done [09:26:28]CreateOFDProtocolMessage [09:26:28]wFMCommunicate request_size=4 [09:26:28]MH_SAM_APDU [09:26:28]CAPDU: 80 11 00 00 [09:26:28]Write to MH i2c: E2 08 00 11 1D 80 11 00 00 00 00 00 00 A8 [09:26:28]Write i2c OK [09:26:28]MH_I2C_Read... [09:26:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:28]Read from MH i2c: E2 [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: E2 17 00 [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: E2 17 00 11 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 FB [09:26:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:26:28]wFMCommunicate OK [09:26:28]CreateOFDProtocolMessage done [09:26:28]OFDSenderStorePacket 76791 [09:26:28]StoreOFDPacket docnum=76791 [09:26:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 13 70 07 01 88 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 C5 DB 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F7 2B 01 00 35 04 06 00 DE FD BB DC AA 18 CC 35 11 FE 2F 80 FF 25 [09:26:28]CheckFolder [09:26:28]dirname=/storage/ofd_packets [09:26:28]CheckFolder done [09:26:28]ProducePacketName [09:26:28]name=ofd_packets/00076791 [09:26:28]NVStorageSaveData ofd_packets/00076791 [09:26:28]File name is /storage/ofd_packets/00076791 [09:26:28]Write 301 bytes [09:26:28]NVStorageSaveData done [09:26:28]OFDSenderStorePacket done [09:26:28]KKMCreateOFDPacket done [09:26:28]NVStorageSaveData kkm_last_timestamp [09:26:28]File name is /storage/kkm_last_timestamp [09:26:28]Write 4 bytes [09:26:28]NVStorageSaveData done [09:26:28]ExternCall_PrintAddStr [09:26:28]wPrintStart [09:26:28]Write to MH i2c: 01 00 00 12 1D 2F [09:26:28]Write i2c OK [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: 01 [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: 01 07 00 [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: 01 07 00 12 1D 00 00 00 00 00 FF 0F 44 [09:26:28]RasterBufferAndPrint [09:26:28]line Счет N : (1)191322 [09:26:28]line ИНН: 02508201610067 [09:26:28]line Контрольно-Кассовый Чек [09:26:28]line ПРОДАЖА [09:26:28]line ТРК (МРК, ГНК) : 33 [09:26:28]line Товар: 2710124130 [09:26:28]line Аи-92-К-5 [09:26:28]line 7.770 * 64.40 [09:26:28]line = 500.39 [09:26:28]line НДС 12% НСП 1% [09:26:28]line > о реализуемом товаре [09:26:28]line ОКРУГЛЕНИЕ: -0.39 [09:26:28]line ИТОГО: 500.00 [09:26:28]line Внесено: 500.00 [09:26:28]line СДАЧА: 0.00 [09:26:28]line НСП 1% : 4.43 [09:26:28]line НДС 12% : 53.14 [09:26:28]line Наличными: 500.00 [09:26:28]line Безнал.: 0.00 [09:26:28]line Место: АЗС № 106 "Партнер Нефть" [09:26:28]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [09:26:28]line СНО: Общий режим [09:26:28]line Чек 47 21.04.2024 09:26 [09:26:28]line Смена: 372 ФФД: 1.0 [09:26:28]line ЗНМ: 0300000141 [09:26:28]line РНМ: 0000000000091573 [09:26:28]line Версия ККМ: 001 [09:26:28]line ФМ: 0000000000874652 [09:26:28]line ФД: 76791 [09:26:28]line ФПД: 245181359893016 [09:26:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T092629&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76791&fm=245181359893016&tin=02508201610067®Number=0000000000091573&sum=50000 [09:26:28]OFD Sender: Processing packet 76791 [packets to send 129, broken 128] [09:26:28]ProducePacketName [09:26:28]name=ofd_packets/00076791 [09:26:28]OFD Sender: To server: pG, [09:26:28]CommunicateWithHost lk.salyk.kg:30040 [09:26:28]ConnectInit lk.salyk.kg [09:26:28]written 0, free lines is 4095 [09:26:28]Connected sock=10 [09:26:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 13 70 07 01 88 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 C5 DB 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F7 2B 01 00 35 04 06 00 DE FD BB DC AA 18 CC 35 11 FE 2F 80 FF 25 [09:26:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 5F DD 47 00 A2 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 34 36 35 32 10 04 04 00 F7 2B 01 00 F4 03 04 00 4B 83 24 66 B6 04 01 00 00 31 60 20 72 FE D1 47 5F [09:26:28]CommunicateWithHost err = 0 [09:26:28]CheckOFDResponse [09:26:28]1017 (14) - 77093643461234 [09:26:28]1041 (16) - 0000000000874652 [09:26:28]1040 (4) - 76791 [09:26:28]1012 (4) - 21.04.2024 03:08 [09:26:28]1206 (1) - 0 [09:26:28]OFD Sender: Remove packet 76791 [09:26:28]ProducePacketName [09:26:28]name=ofd_packets/00076791 [09:26:28]NVStorageDeleteData [09:26:28]Write to MH i2c: 01 00 00 3C 1D 59 [09:26:28]Write i2c OK [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: 01 [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: 01 07 00 [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: 01 07 00 3C 1D 00 00 00 00 00 2B 0D 98 [09:26:28]RasterBufferAndPrint [09:26:28]line [09:26:28]line [09:26:28]line [09:26:28]line [09:26:28]line [09:26:28]written 0, free lines is 3380 [09:26:28]MH_Cut [09:26:28]Write to MH i2c: D1 01 00 43 1D 01 32 [09:26:28]Write i2c OK [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: D1 [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: D1 01 00 [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: D1 01 00 43 1D 00 31 [09:26:28]Write to MH i2c: 01 00 00 44 1D 61 [09:26:28]Write i2c OK [09:26:28]MH_I2C_Read... [09:26:29]OFD Sender: No OFD packet to send [09:26:29]*** Cut start [09:26:29]*** Partial cut [09:26:29]*** CUTSNS_PIN = 1 [09:26:29]*** CUTSNS_PIN = 0 [09:26:29]*** Brake cut motor [09:26:30]Read from MH i2c: 01 [09:26:30]MH_I2C_Read... [09:26:30]*** Stop cut motor [09:26:30]*** Cut end [09:26:30]Read from MH i2c: 01 07 00 [09:26:30]MH_I2C_Read... [09:26:30]Read from MH i2c: 01 07 00 44 1D 00 00 00 00 00 FF 0F 76 [09:26:30]process_action close_receipt done [09:26:30]requested_data is exist [09:26:30]produce_requested_data [09:26:30]requested_item fm.sn is exist - process it [09:26:30]wFMCommunicate request_size=4 [09:26:30]MH_SAM_APDU [09:26:30]CAPDU: 80 11 00 00 [09:26:30]Write to MH i2c: E2 08 00 45 1D 80 11 00 00 00 00 00 00 DC [09:26:30]Write i2c OK [09:26:30]MH_I2C_Read... [09:26:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:30]Read from MH i2c: E2 [09:26:30]MH_I2C_Read... [09:26:30]Read from MH i2c: E2 17 00 [09:26:30]MH_I2C_Read... [09:26:30]Read from MH i2c: E2 17 00 45 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 2F [09:26:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:26:30]wFMCommunicate OK [09:26:30]requested_item fd.num is exist - process it [09:26:30]SAM_PROTO_GetFieldsCounters [09:26:30]wFMCommunicate request_size=4 [09:26:30]MH_SAM_APDU [09:26:30]CAPDU: 80 13 00 00 [09:26:30]Write to MH i2c: E2 08 00 46 1D 80 13 00 00 00 00 00 00 DF [09:26:30]Write i2c OK [09:26:30]MH_I2C_Read... [09:26:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:30]Read from MH i2c: E2 [09:26:30]MH_I2C_Read... [09:26:30]Read from MH i2c: E2 62 00 [09:26:30]MH_I2C_Read... [09:26:30]Read from MH i2c: E2 62 00 46 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F7 2B 01 00 0E 04 04 00 74 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 25 [09:26:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F7 2B 01 00 0E 04 04 00 74 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 [09:26:30]wFMCommunicate OK [09:26:30]SAM_PROTO_GetFieldsCounters done [09:26:30]requested_item shift.num is exist - process it [09:26:30]requested_item shift.opened is exist - process it [09:26:30]req_shift_opened [09:26:30]FM_GetShiftState [09:26:30]SAM_PROTO_GetShiftState [09:26:30]wFMCommunicate request_size=4 [09:26:30]MH_SAM_APDU [09:26:30]CAPDU: 80 13 01 00 [09:26:30]Write to MH i2c: E2 08 00 47 1D 80 13 01 00 00 00 00 00 E1 [09:26:30]Write i2c OK [09:26:30]MH_I2C_Read... [09:26:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:30]Read from MH i2c: E2 [09:26:30]MH_I2C_Read... [09:26:30]Read from MH i2c: E2 0E 00 [09:26:30]MH_I2C_Read... [09:26:30]Read from MH i2c: E2 0E 00 47 1D 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 28 [09:26:30]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [09:26:30]wFMCommunicate OK [09:26:30]SAM_PROTO_GetShiftState done [09:26:30]FM_GetShiftState done [09:26:30]req_shift_opened done [09:26:30]requested_item shift.open_date is exist - process it [09:26:30]req_shift_open_date [09:26:30]req_shift_open_date done [09:26:30]produce_requested_data done [09:26:30]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76791,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [09:26:30]process_action_free close_receipt [09:26:30]json_value_free [09:26:30]json_value_free done [09:26:30]process_json_proto returns [09:26:30]Send response to host [09:26:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76791,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [09:26:30]free response buf [09:26:30]execute_script done [09:26:30]execute_script returns [09:26:30]free content buf [09:26:30]Sock 7.Close socket [09:26:30]Sock 7.Thread stoped [09:26:34]OFD Sender: No OFD packet to send [09:26:39]OFD Sender: No OFD packet to send [09:26:44]OFD Sender: No OFD packet to send [09:26:49]OFD Sender: No OFD packet to send [09:26:53]accept exits with 9 [09:26:53]New connection [09:26:53]New thread 3067481444 created [09:26:53]Thread 3067338084 joined [09:26:53]Waiting for new connection... [09:26:53] Sock 9.Parse request [09:26:53]Sock 9.Check first char [09:26:53]Sock 9.First char is OK [09:26:53]request: POST /json_proto HTTP/1.0 [09:26:53]Method: POST [09:26:53]URL: /json_proto [09:26:53]Method is POST - this is cgi request [09:26:53]url: /json_proto [09:26:53]query_string will be loaded in cgi processing [09:26:53]execute_cgi json_proto POST (null) [09:26:53]execute_cgi path=json_proto method=POST [09:26:53]POST find Content-Length [09:26:53]Host: 172.17.62.5:8080 [09:26:53]Content-Length: 215 [09:26:53]Content-Type: application/json [09:26:53] [09:26:53]POST finish read [09:26:53]Found Content-Length = 215 [09:26:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:53]execute_script... [09:26:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:53]POST & json_proto [09:26:53]process_json_proto [09:26:53]json parsed OK: [09:26:53]protocol is kg_v1.0 [09:26:53]action value=get_value [09:26:53]process_action get_value [09:26:53]cmd_get_value [09:26:53]process_action get_value done [09:26:53]requested_data is exist [09:26:53]produce_requested_data [09:26:53]requested_item kkm.sn is exist - process it [09:26:53]requested_item kkm.ver is exist - process it [09:26:53]requested_item fm.sn is exist - process it [09:26:53]wFMCommunicate request_size=4 [09:26:53]MH_SAM_APDU [09:26:53]CAPDU: 80 11 00 00 [09:26:53]Write to MH i2c: E2 08 00 48 1D 80 11 00 00 00 00 00 00 DF [09:26:53]Write i2c OK [09:26:53]MH_I2C_Read... [09:26:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:53]Read from MH i2c: E2 [09:26:53]MH_I2C_Read... [09:26:53]Read from MH i2c: E2 17 00 [09:26:53]MH_I2C_Read... [09:26:53]Read from MH i2c: E2 17 00 48 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 32 [09:26:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:26:53]wFMCommunicate OK [09:26:53]requested_item fd.num is exist - process it [09:26:53]SAM_PROTO_GetFieldsCounters [09:26:53]wFMCommunicate request_size=4 [09:26:53]MH_SAM_APDU [09:26:53]CAPDU: 80 13 00 00 [09:26:53]Write to MH i2c: E2 08 00 49 1D 80 13 00 00 00 00 00 00 E2 [09:26:53]Write i2c OK [09:26:53]MH_I2C_Read... [09:26:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:53]Read from MH i2c: E2 [09:26:53]MH_I2C_Read... [09:26:53]Read from MH i2c: E2 62 00 [09:26:53]MH_I2C_Read... [09:26:53]Read from MH i2c: E2 62 00 49 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F7 2B 01 00 0E 04 04 00 74 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 28 [09:26: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F7 2B 01 00 0E 04 04 00 74 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 [09:26:53]wFMCommunicate OK [09:26:53]SAM_PROTO_GetFieldsCounters done [09:26:53]requested_item shift.num is exist - process it [09:26:53]requested_item shift.opened is exist - process it [09:26:53]req_shift_opened [09:26:53]FM_GetShiftState [09:26:53]SAM_PROTO_GetShiftState [09:26:53]wFMCommunicate request_size=4 [09:26:53]MH_SAM_APDU [09:26:53]CAPDU: 80 13 01 00 [09:26:53]Write to MH i2c: E2 08 00 4A 1D 80 13 01 00 00 00 00 00 E4 [09:26:53]Write i2c OK [09:26:53]MH_I2C_Read... [09:26:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:53]Read from MH i2c: E2 [09:26:53]MH_I2C_Read... [09:26:53]Read from MH i2c: E2 0E 00 [09:26:53]MH_I2C_Read... [09:26:53]Read from MH i2c: E2 0E 00 4A 1D 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 2B [09:26:53]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [09:26:53]wFMCommunicate OK [09:26:53]SAM_PROTO_GetShiftState done [09:26:53]FM_GetShiftState done [09:26:53]req_shift_opened done [09:26:53]requested_item shift.open_date is exist - process it [09:26:53]req_shift_open_date [09:26:53]req_shift_open_date done [09:26:53]produce_requested_data done [09:26:53]produce_requested_data return {"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76791,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [09:26:53]process_action_free get_value [09:26:53]json_value_free [09:26:53]json_value_free done [09:26:53]process_json_proto returns [09:26:53]Send response to host [09:26:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76791,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [09:26:53]free response buf [09:26:53]execute_script done [09:26:53]execute_script returns [09:26:53]free content buf [09:26:53]Sock 9.Close socket [09:26:53]Sock 9.Thread stoped [09:26:53]accept exits with 7 [09:26:53]New connection [09:26:53]New thread 3067338084 created [09:26:53]Thread 3067481444 joined [09:26:53]Waiting for new connection... [09:26:53] Sock 7.Parse request [09:26:53]Sock 7.Check first char [09:26:53]Sock 7.First char is OK [09:26:53]request: POST /json_proto HTTP/1.0 [09:26:53]Method: POST [09:26:53]URL: /json_proto [09:26:53]Method is POST - this is cgi request [09:26:53]url: /json_proto [09:26:53]query_string will be loaded in cgi processing [09:26:53]execute_cgi json_proto POST (null) [09:26:53]execute_cgi path=json_proto method=POST [09:26:53]POST find Content-Length [09:26:53]Host: 172.17.62.5:8080 [09:26:53]Content-Length: 331 [09:26:53]Content-Type: application/json [09:26:53] [09:26:53]POST finish read [09:26:53]Found Content-Length = 331 [09:26:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:26:53]execute_script... [09:26:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:26:53]POST & json_proto [09:26:53]process_json_proto [09:26:53]json parsed OK: [09:26:53]protocol is kg_v1.0 [09:26:53]action value=get_value [09:26:53]process_action get_value [09:26:53]cmd_get_value [09:26:53]process_action get_value done [09:26:53]requested_data is exist [09:26:53]produce_requested_data [09:26:53]requested_item fm.sale.total is exist - process it [09:26:53]SAM_PROTO_GetFMData [09:26:53]wFMCommunicate request_size=4 [09:26:53]MH_SAM_APDU [09:26:53]CAPDU: 80 13 03 00 [09:26:53]Write to MH i2c: E2 08 00 4B 1D 80 13 03 00 00 00 00 00 E7 [09:26:53]Write i2c OK [09:26:53]MH_I2C_Read... [09:26:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [09:26:54]Read from MH i2c: E2 [09:26:54]MH_I2C_Read... [09:26:54]Read from MH i2c: E2 FD 00 [09:26:54]MH_I2C_Read... [09:26:54]Read from MH i2c: E2 FD 00 4B 1D 00 C8 04 85 04 C4 04 6E 04 04 00 0F 29 01 00 69 04 A3 00 6F 04 04 00 1F 27 01 00 B1 04 05 00 E4 77 0A BA 02 70 04 05 00 40 ED 45 76 02 72 04 04 00 A4 8A C4 43 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 53 80 23 4A 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 30 8F 2D 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F0 01 00 00 B1 04 05 00 F4 E2 DA 15 01 70 04 05 00 F4 E2 DA 15 01 72 04 00 00 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 1F BE 81 1D EF 90 00 F5 [09:26:54]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 0F 29 01 00 69 04 A3 00 6F 04 04 00 1F 27 01 00 B1 04 05 00 E4 77 0A BA 02 70 04 05 00 40 ED 45 76 02 72 04 04 00 A4 8A C4 43 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 53 80 23 4A 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 30 8F 2D 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F0 01 00 00 B1 04 05 00 F4 E2 DA 15 01 70 04 05 00 F4 E2 DA 15 01 72 04 00 00 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 1F BE 81 1D EF 90 00 [09:26:54]wFMCommunicate OK [09:26:54]wFMCommunicate request_size=4 [09:26:54]MH_SAM_APDU [09:26:54]CAPDU: 80 17 00 00 [09:26:54]Write to MH i2c: E2 08 00 4C 1D 80 17 00 00 00 00 00 00 E9 [09:26:54]Write i2c OK [09:26:54]MH_I2C_Read... [09:26:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:26:54]Read from MH i2c: E2 [09:26:54]MH_I2C_Read... [09:26:54]Read from MH i2c: E2 FD 00 [09:26:54]MH_I2C_Read... [09:26:54]Read from MH i2c: E2 FD 00 4C 1D 00 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 66 7A 75 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 90 00 4F [09:26:54]RAPDU: 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 66 7A 75 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 90 00 [09:26:54]wFMCommunicate OK [09:26:54]wFMCommunicate request_size=4 [09:26:54]MH_SAM_APDU [09:26:54]CAPDU: 80 17 00 00 [09:26:54]Write to MH i2c: E2 08 00 4D 1D 80 17 00 00 00 00 00 00 EA [09:26:54]Write i2c OK [09:26:54]MH_I2C_Read... [09:26:54]OFD Sender: No OFD packet to send [09:26:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:26:54]Read from MH i2c: E2 [09:26:54]MH_I2C_Read... [09:26:54]Read from MH i2c: E2 FD 00 [09:26:54]MH_I2C_Read... [09:26:54]Read from MH i2c: E2 FD 00 4D 1D 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 C2 [09:26:54]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [09:26:54]wFMCommunicate OK [09:26:54]wFMCommunicate request_size=4 [09:26:54]MH_SAM_APDU [09:26:54]CAPDU: 80 17 00 00 [09:26:54]Write to MH i2c: E2 08 00 4E 1D 80 17 00 00 00 00 00 00 EB [09:26:54]Write i2c OK [09:26:54]MH_I2C_Read... [09:26:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:26:54]Read from MH i2c: E2 [09:26:54]MH_I2C_Read... [09:26:54]Read from MH i2c: E2 FD 00 [09:26:54]MH_I2C_Read... [09:26:54]Read from MH i2c: E2 FD 00 4E 1D 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 63 [09:26:54]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [09:26:54]wFMCommunicate OK [09:26:54]wFMCommunicate request_size=4 [09:26:54]MH_SAM_APDU [09:26:54]CAPDU: 80 17 00 00 [09:26:54]Write to MH i2c: E2 08 00 4F 1D 80 17 00 00 00 00 00 00 EC [09:26:54]Write i2c OK [09:26:54]MH_I2C_Read... [09:26:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [09:26:55]Read from MH i2c: E2 [09:26:55]MH_I2C_Read... [09:26:55]Read from MH i2c: E2 E5 00 [09:26:55]MH_I2C_Read... [09:26:55]Read from MH i2c: E2 E5 00 4F 1D 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D0 [09:26:55]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:26:55]wFMCommunicate OK [09:26:55]SAM_PROTO_GetFMData done [09:26:55]requested_item fm.sale_refund.total is exist - process it [09:26:55]requested_item fm.buy.total is exist - process it [09:26:55]requested_item shift.sale.total is exist - process it [09:26:55]SAM_PROTO_GetShiftData [09:26:55]wFMCommunicate request_size=4 [09:26:55]MH_SAM_APDU [09:26:55]CAPDU: 80 13 02 00 [09:26:55]Write to MH i2c: E2 08 00 50 1D 80 13 02 00 00 00 00 00 EB [09:26:55]Write i2c OK [09:26:55]MH_I2C_Read... [09:26:55]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [09:26:55]Read from MH i2c: E2 [09:26:55]MH_I2C_Read... [09:26:55]Read from MH i2c: E2 FD 00 [09:26:55]MH_I2C_Read... [09:26:55]Read from MH i2c: E2 FD 00 50 1D 00 AE 04 AA 04 AA 04 6E 04 04 00 2F 00 00 00 69 04 9B 00 6F 04 04 00 2F 00 00 00 B1 04 03 00 95 59 4E 70 04 03 00 B4 7E 4A 72 04 03 00 E1 DA 03 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 85 52 08 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 8D B1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 9D [09:26:55]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 2F 00 00 00 69 04 9B 00 6F 04 04 00 2F 00 00 00 B1 04 03 00 95 59 4E 70 04 03 00 B4 7E 4A 72 04 03 00 E1 DA 03 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 85 52 08 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 8D B1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [09:26:55]wFMCommunicate OK [09:26:55]wFMCommunicate request_size=4 [09:26:55]MH_SAM_APDU [09:26:55]CAPDU: 80 17 00 00 [09:26:55]Write to MH i2c: E2 08 00 51 1D 80 17 00 00 00 00 00 00 EE [09:26:55]Write i2c OK [09:26:55]MH_I2C_Read... [09:26:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:26:55]Read from MH i2c: E2 [09:26:55]MH_I2C_Read... [09:26:55]Read from MH i2c: E2 FD 00 [09:26:55]MH_I2C_Read... [09:26:55]Read from MH i2c: E2 FD 00 51 1D 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 10 [09:26:55]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [09:26:55]wFMCommunicate OK [09:26:55]wFMCommunicate request_size=4 [09:26:55]MH_SAM_APDU [09:26:55]CAPDU: 80 17 00 00 [09:26:55]Write to MH i2c: E2 08 00 52 1D 80 17 00 00 00 00 00 00 EF [09:26:55]Write i2c OK [09:26:55]MH_I2C_Read... [09:26:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:26:56]Read from MH i2c: E2 [09:26:56]MH_I2C_Read... [09:26:56]Read from MH i2c: E2 FD 00 [09:26:56]MH_I2C_Read... [09:26:56]Read from MH i2c: E2 FD 00 52 1D 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 A6 [09:26:56]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [09:26:56]wFMCommunicate OK [09:26:56]wFMCommunicate request_size=4 [09:26:56]MH_SAM_APDU [09:26:56]CAPDU: 80 17 00 00 [09:26:56]Write to MH i2c: E2 08 00 53 1D 80 17 00 00 00 00 00 00 F0 [09:26:56]Write i2c OK [09:26:56]MH_I2C_Read... [09:26:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:26:56]Read from MH i2c: E2 [09:26:56]MH_I2C_Read... [09:26:56]Read from MH i2c: E2 FD 00 [09:26:56]MH_I2C_Read... [09:26:56]Read from MH i2c: E2 FD 00 53 1D 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 62 [09:26:56]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [09:26:56]wFMCommunicate OK [09:26:56]wFMCommunicate request_size=4 [09:26:56]MH_SAM_APDU [09:26:56]CAPDU: 80 17 00 00 [09:26:56]Write to MH i2c: E2 08 00 54 1D 80 17 00 00 00 00 00 00 F1 [09:26:56]Write i2c OK [09:26:56]MH_I2C_Read... [09:26:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [09:26:56]Read from MH i2c: E2 [09:26:56]MH_I2C_Read... [09:26:56]Read from MH i2c: E2 CB 00 [09:26:56]MH_I2C_Read... [09:26:56]Read from MH i2c: E2 CB 00 54 1D 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 DA [09:26:56]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:26:56]wFMCommunicate OK [09:26:56]SAM_PROTO_GetShiftData done [09:26:56]requested_item shift.sale.total_cash is exist - process it [09:26:56]requested_item shift.sale_refund.total is exist - process it [09:26:56]requested_item shift.sale_refund.total_cash is exist - process it [09:26:56]requested_item shift.buy.total is exist - process it [09:26:56]requested_item shift.buy.total_cash is exist - process it [09:26:56]produce_requested_data done [09:26:56]produce_requested_data return {"fm.sale.total":117111828.20,"fm.sale_refund.total":46616337.80,"fm.buy.total":0.00,"shift.sale.total":51347.41,"shift.sale.total_cash":48821.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [09:26:56]process_action_free get_value [09:26:56]json_value_free [09:26:56]json_value_free done [09:26:56]process_json_proto returns [09:26:56]Send response to host [09:26:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":117111828.20,"fm.sale_refund.total":46616337.80,"fm.buy.total":0.00,"shift.sale.total":51347.41,"shift.sale.total_cash":48821.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [09:26:56]free response buf [09:26:56]execute_script done [09:26:56]execute_script returns [09:26:56]free content buf [09:26:56]Sock 7.Close socket [09:26:56]Sock 7.Thread stoped [09:26:59]OFD Sender: No OFD packet to send [09:27:04]OFD Sender: No OFD packet to send [09:27:09]OFD Sender: No OFD packet to send [09:27:14]OFD Sender: No OFD packet to send [09:27:19]OFD Sender: No OFD packet to send [09:27:24]OFD Sender: No OFD packet to send [09:27:29]OFD Sender: No OFD packet to send [09:27:34]OFD Sender: No OFD packet to send [09:27:39]OFD Sender: No OFD packet to send [09:27:44]OFD Sender: No OFD packet to send [09:27:49]OFD Sender: No OFD packet to send [09:27:54]OFD Sender: No OFD packet to send [09:27:59]OFD Sender: No OFD packet to send [09:28:04]OFD Sender: No OFD packet to send [09:28:09]OFD Sender: No OFD packet to send [09:28:09]accept exits with 9 [09:28:09]New connection [09:28:09]New thread 3067481444 created [09:28:09]Thread 3067338084 joined [09:28:09]Waiting for new connection... [09:28:09] Sock 9.Parse request [09:28:09]Sock 9.Check first char [09:28:09]Sock 9.First char is OK [09:28:09]request: POST /json_proto HTTP/1.0 [09:28:09]Method: POST [09:28:09]URL: /json_proto [09:28:09]Method is POST - this is cgi request [09:28:09]url: /json_proto [09:28:09]query_string will be loaded in cgi processing [09:28:09]execute_cgi json_proto POST (null) [09:28:09]execute_cgi path=json_proto method=POST [09:28:09]POST find Content-Length [09:28:09]Host: 172.17.62.5:8080 [09:28:09]Content-Length: 679 [09:28:09]Content-Type: application/json [09:28:09] [09:28:09]POST finish read [09:28:09]Found Content-Length = 679 [09:28:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:09]execute_script... [09:28: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)191323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:09]POST & json_proto [09:28:09]process_json_proto [09:28:09]json parsed OK: [09:28:09]protocol is kg_v1.0 [09:28:09]action value=close_receipt [09:28:09]process_action close_receipt [09:28:09]cmd_close_receipt [09:28:09]MH_GetDate [09:28:09]Write to MH i2c: F0 00 00 55 1D 61 [09:28:09]Write i2c OK [09:28:09]MH_I2C_Read... [09:28:09]Read from MH i2c: F0 [09:28:09]MH_I2C_Read... [09:28:09]Read from MH i2c: F0 09 00 [09:28:09]MH_I2C_Read... [09:28:09]Read from MH i2c: F0 09 00 55 1D 00 2D DC 24 66 F4 E9 65 64 A3 [09:28:09]GetLastDocTimeStamp 1713691589 [09:28:09]current date 1713691693 [09:28:09]FM_GetShiftState [09:28:09]SAM_PROTO_GetShiftState [09:28:09]wFMCommunicate request_size=4 [09:28:09]MH_SAM_APDU [09:28:09]CAPDU: 80 13 01 00 [09:28:09]Write to MH i2c: E2 08 00 56 1D 80 13 01 00 00 00 00 00 F0 [09:28:09]Write i2c OK [09:28:09]MH_I2C_Read... [09:28:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:09]Read from MH i2c: E2 [09:28:09]MH_I2C_Read... [09:28:09]Read from MH i2c: E2 0E 00 [09:28:09]MH_I2C_Read... [09:28:09]Read from MH i2c: E2 0E 00 56 1D 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 37 [09:28:09]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [09:28:09]wFMCommunicate OK [09:28:09]SAM_PROTO_GetShiftState done [09:28:09]FM_GetShiftState done [09:28:09]opened in 1713658965 [09:28:09]opened+sec_in_day 1713745365 [09:28:09]quantity*price = 100018 [09:28:09]sum+1 = 100020 [09:28:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 48 21.04.2024 09:28 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76792 ФПД: 62504858922653 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T092813&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76792&fm=62504858922653&tin=02508201610067®Number=0000000000091573&sum=100000 [09:28:10]StoreToDocumentArchive [09:28:10]shift 372 fd 76792 [09:28:10]save to /storage/0372/doc_00076792 [09:28:10]save last doc name /storage/0372/doc_00076792 to /storage/kkm_last_doc_name [09:28:10]save OK [09:28:10]Clear old archive folders... [09:28:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:28:10]tlvbuf is 018B5470 [09:28:10]SAM_PROTO_ClearQueue [09:28:10]wFMCommunicate request_size=4 [09:28:10]MH_SAM_APDU [09:28:10]CAPDU: 80 09 00 00 [09:28:10]Write to MH i2c: E2 08 00 63 1D 80 09 00 00 00 00 00 00 F2 [09:28:10]Write i2c OK [09:28:10]MH_I2C_Read... [09:28:10]Read from MH i2c: E2 [09:28:10]MH_I2C_Read... [09:28:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:10]Read from MH i2c: E2 03 00 [09:28:10]MH_I2C_Read... [09:28:10]Read from MH i2c: E2 03 00 63 1D 00 90 00 F4 [09:28:10]RAPDU: 90 00 [09:28:10]wFMCommunicate OK [09:28:10]SAM_PROTO_ClearQueue done [09:28:10]KKMCreateOFDPacket [09:28:10]OFDProtocolAddRootSTLVToBuf [09:28:10]FM_MakeSignedData [09:28:10]FM_MakeSignedData [09:28:10]SAM_PROTO_SignData [09:28:10]wFMCommunicate request_size=4 [09:28:10]MH_SAM_APDU [09:28:10]CAPDU: 80 0D 01 02 [09:28:10]Write to MH i2c: E2 08 00 64 1D 80 0D 01 02 00 00 00 00 FA [09:28:10]Write i2c OK [09:28:10]MH_I2C_Read... [09:28:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:10]Read from MH i2c: E2 [09:28:10]MH_I2C_Read... [09:28:10]Read from MH i2c: E2 03 00 [09:28:10]MH_I2C_Read... [09:28:10]Read from MH i2c: E2 03 00 64 1D 00 90 00 F5 [09:28:10]RAPDU: 90 00 [09:28:10]wFMCommunicate OK [09:28:10]wFMCommunicate request_size=255 [09:28:10]MH_SAM_APDU [09:28:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 30 00 00 00 F4 03 04 00 2D DC 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F8 2B 01 00 35 04 06 00 38 D9 0B E9 [09:28:10]Write to MH i2c: E2 02 01 65 1D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 30 00 00 00 F4 03 04 00 2D DC 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F8 2B 01 00 35 04 06 00 38 D9 0B E9 00 00 C1 [09:28:10]Write i2c OK [09:28:10]MH_I2C_Read... [09:28:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:11]Read from MH i2c: E2 [09:28:11]MH_I2C_Read... [09:28:11]Read from MH i2c: E2 03 00 [09:28:11]MH_I2C_Read... [09:28:11]Read from MH i2c: E2 03 00 65 1D 00 90 00 F6 [09:28:11]RAPDU: 90 00 [09:28:11]wFMCommunicate OK [09:28:11]wFMCommunicate request_size=7 [09:28:11]MH_SAM_APDU [09:28:11]CAPDU: 80 0D 02 02 02 AE 9D [09:28:11]Write to MH i2c: E2 0A 00 66 1D 80 0D 02 02 02 00 AE 9D 00 00 4C [09:28:11]Write i2c OK [09:28:11]MH_I2C_Read... [09:28:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:11]Read from MH i2c: E2 [09:28:11]MH_I2C_Read... [09:28:11]Read from MH i2c: E2 03 00 [09:28:11]MH_I2C_Read... [09:28:11]Read from MH i2c: E2 03 00 66 1D 00 90 00 F7 [09:28:11]RAPDU: 90 00 [09:28:11]wFMCommunicate OK [09:28:11]wFMCommunicate request_size=4 [09:28:11]MH_SAM_APDU [09:28:11]CAPDU: 80 0D 03 02 [09:28:11]Write to MH i2c: E2 08 00 67 1D 80 0D 03 02 00 00 00 00 FF [09:28:11]Write i2c OK [09:28:11]MH_I2C_Read... [09:28:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:11]Read from MH i2c: E2 [09:28:11]MH_I2C_Read... [09:28:11]Read from MH i2c: E2 0B 00 [09:28:11]MH_I2C_Read... [09:28:11]Read from MH i2c: E2 0B 00 67 1D 00 9A B8 31 10 C2 BF DD FD 90 00 EE [09:28:11]RAPDU: 9A B8 31 10 C2 BF DD FD 90 00 [09:28:11]wFMCommunicate OK [09:28:11]SAM_PROTO_SignData done [09:28:11]FM_MakeSignedData done [09:28:11]CreateOFDProtocolMessage [09:28:11]wFMCommunicate request_size=4 [09:28:11]MH_SAM_APDU [09:28:11]CAPDU: 80 11 00 00 [09:28:11]Write to MH i2c: E2 08 00 68 1D 80 11 00 00 00 00 00 00 FF [09:28:11]Write i2c OK [09:28:11]MH_I2C_Read... [09:28:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:11]Read from MH i2c: E2 [09:28:11]MH_I2C_Read... [09:28:11]Read from MH i2c: E2 17 00 [09:28:11]MH_I2C_Read... [09:28:11]Read from MH i2c: E2 17 00 68 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 52 [09:28:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:28:11]wFMCommunicate OK [09:28:11]CreateOFDProtocolMessage done [09:28:11]OFDSenderStorePacket 76792 [09:28:11]StoreOFDPacket docnum=76792 [09:28:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 D3 45 04 01 B0 D2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 2D DC 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F8 2B 01 00 35 04 06 00 38 D9 0B E9 AE 9D 9A B8 31 10 C2 BF DD FD [09:28:11]CheckFolder [09:28:11]dirname=/storage/ofd_packets [09:28:11]CheckFolder done [09:28:11]ProducePacketName [09:28:11]name=ofd_packets/00076792 [09:28:11]NVStorageSaveData ofd_packets/00076792 [09:28:11]File name is /storage/ofd_packets/00076792 [09:28:11]Write 298 bytes [09:28:11]NVStorageSaveData done [09:28:11]OFDSenderStorePacket done [09:28:11]KKMCreateOFDPacket done [09:28:11]NVStorageSaveData kkm_last_timestamp [09:28:11]File name is /storage/kkm_last_timestamp [09:28:11]Write 4 bytes [09:28:11]NVStorageSaveData done [09:28:11]ExternCall_PrintAddStr [09:28:11]wPrintStart [09:28:11]Write to MH i2c: 01 00 00 69 1D 86 [09:28:11]Write i2c OK [09:28:11]MH_I2C_Read... [09:28:11]Read from MH i2c: 01 [09:28:11]MH_I2C_Read... [09:28:11]Read from MH i2c: 01 07 00 [09:28:11]MH_I2C_Read... [09:28:11]Read from MH i2c: 01 07 00 69 1D 00 00 00 00 00 FF 0F 9B [09:28:11]RasterBufferAndPrint [09:28:11]line Счет N : (1)191323 [09:28:11]line ИНН: 02508201610067 [09:28:11]line Контрольно-Кассовый Чек [09:28:11]line ПРОДАЖА [09:28:11]line ТРК (МРК, ГНК) : 23 [09:28:11]line Товар: 2710194210 [09:28:11]line ДТ-К-5 [09:28:11]line 13.720 * 72.90 [09:28:11]line = 1000.19 [09:28:11]line НДС 12% НСП 1% [09:28:11]line > о реализуемом товаре [09:28:11]line ОКРУГЛЕНИЕ: -0.19 [09:28:11]line ИТОГО: 1000.00 [09:28:11]line Внесено: 1000.00 [09:28:11]line СДАЧА: 0.00 [09:28:11]line НСП 1% : 8.85 [09:28:11]line НДС 12% : 106.21 [09:28:11]line Наличными: 1000.00 [09:28:11]line Безнал.: 0.00 [09:28:11]line Место: АЗС № 106 "Партнер Нефть" [09:28:11]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [09:28:11]line СНО: Общий режим [09:28:11]line Чек 48 21.04.2024 09:28 [09:28:11]line Смена: 372 ФФД: 1.0 [09:28:11]line ЗНМ: 0300000141 [09:28:11]line РНМ: 0000000000091573 [09:28:11]line Версия ККМ: 001 [09:28:11]line ФМ: 0000000000874652 [09:28:11]line ФД: 76792 [09:28:11]line ФПД: 62504858922653 [09:28:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T092813&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76792&fm=62504858922653&tin=02508201610067®Number=0000000000091573&sum=100000 [09:28:11]OFD Sender: Processing packet 76792 [packets to send 129, broken 128] [09:28:11]ProducePacketName [09:28:11]name=ofd_packets/00076792 [09:28:11]OFD Sender: To server: pG, [09:28:11]CommunicateWithHost lk.salyk.kg:30040 [09:28:11]ConnectInit lk.salyk.kg [09:28:11]written 0, free lines is 4095 [09:28:11]Connected sock=10 [09:28:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 D3 45 04 01 B0 D2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 2D DC 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F8 2B 01 00 35 04 06 00 38 D9 0B E9 AE 9D 9A B8 31 10 C2 BF DD FD [09:28:12]Write to MH i2c: 01 00 00 93 1D B0 [09:28:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 8B 9C 47 00 41 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 34 36 35 32 10 04 04 00 F8 2B 01 00 F4 03 04 00 B3 83 24 66 B6 04 01 00 00 79 6A C6 B1 C7 64 48 54 [09:28:12]CommunicateWithHost err = 0 [09:28:12]CheckOFDResponse [09:28:12]1017 (14) - 77093643461234 [09:28:12]1041 (16) - 0000000000874652 [09:28:12]1040 (4) - 76792 [09:28:12]1012 (4) - 21.04.2024 03:10 [09:28:12]1206 (1) - 0 [09:28:12]OFD Sender: Remove packet 76792 [09:28:12]ProducePacketName [09:28:12]name=ofd_packets/00076792 [09:28:12]NVStorageDeleteData [09:28:12]Write i2c OK [09:28:12]MH_I2C_Read... [09:28:12]Read from MH i2c: 01 [09:28:12]MH_I2C_Read... [09:28:12]Read from MH i2c: 01 07 00 [09:28:12]MH_I2C_Read... [09:28:12]Read from MH i2c: 01 07 00 93 1D 00 00 00 00 00 ED 0C B0 [09:28:12]RasterBufferAndPrint [09:28:12]line [09:28:12]line [09:28:12]line [09:28:12]line [09:28:12]line [09:28:12]written 0, free lines is 3322 [09:28:12]MH_Cut [09:28:12]Write to MH i2c: D1 01 00 9A 1D 01 89 [09:28:12]Write i2c OK [09:28:12]MH_I2C_Read... [09:28:12]Read from MH i2c: D1 [09:28:12]MH_I2C_Read... [09:28:12]Read from MH i2c: D1 01 00 [09:28:12]MH_I2C_Read... [09:28:12]Read from MH i2c: D1 01 00 9A 1D 00 88 [09:28:12]Write to MH i2c: 01 00 00 9B 1D B8 [09:28:12]Write i2c OK [09:28:12]MH_I2C_Read... [09:28:12]OFD Sender: No OFD packet to send [09:28:12]*** Cut start [09:28:12]*** Partial cut [09:28:12]*** CUTSNS_PIN = 1 [09:28:12]*** CUTSNS_PIN = 0 [09:28:13]*** Brake cut motor [09:28:13]Read from MH i2c: 01 [09:28:13]MH_I2C_Read... [09:28:13]*** Stop cut motor [09:28:13]*** Cut end [09:28:13]Read from MH i2c: 01 07 00 [09:28:13]MH_I2C_Read... [09:28:13]Read from MH i2c: 01 07 00 9B 1D 00 00 00 00 00 FF 0F CD [09:28:13]process_action close_receipt done [09:28:13]requested_data is exist [09:28:13]produce_requested_data [09:28:13]requested_item fm.sn is exist - process it [09:28:13]wFMCommunicate request_size=4 [09:28:13]MH_SAM_APDU [09:28:13]CAPDU: 80 11 00 00 [09:28:13]Write to MH i2c: E2 08 00 9C 1D 80 11 00 00 00 00 00 00 33 [09:28:13]Write i2c OK [09:28:13]MH_I2C_Read... [09:28:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:13]Read from MH i2c: E2 [09:28:13]MH_I2C_Read... [09:28:13]Read from MH i2c: E2 17 00 [09:28:13]MH_I2C_Read... [09:28:13]Read from MH i2c: E2 17 00 9C 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 86 [09:28:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:28:13]wFMCommunicate OK [09:28:13]requested_item fd.num is exist - process it [09:28:13]SAM_PROTO_GetFieldsCounters [09:28:13]wFMCommunicate request_size=4 [09:28:13]MH_SAM_APDU [09:28:13]CAPDU: 80 13 00 00 [09:28:13]Write to MH i2c: E2 08 00 9D 1D 80 13 00 00 00 00 00 00 36 [09:28:13]Write i2c OK [09:28:13]MH_I2C_Read... [09:28:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:13]Read from MH i2c: E2 [09:28:13]MH_I2C_Read... [09:28:13]Read from MH i2c: E2 62 00 [09:28:13]MH_I2C_Read... [09:28:13]Read from MH i2c: E2 62 00 9D 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F8 2B 01 00 0E 04 04 00 74 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 80 [09:28: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F8 2B 01 00 0E 04 04 00 74 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 [09:28:13]wFMCommunicate OK [09:28:13]SAM_PROTO_GetFieldsCounters done [09:28:13]requested_item shift.num is exist - process it [09:28:13]requested_item shift.opened is exist - process it [09:28:13]req_shift_opened [09:28:13]FM_GetShiftState [09:28:13]SAM_PROTO_GetShiftState [09:28:13]wFMCommunicate request_size=4 [09:28:13]MH_SAM_APDU [09:28:13]CAPDU: 80 13 01 00 [09:28:13]Write to MH i2c: E2 08 00 9E 1D 80 13 01 00 00 00 00 00 38 [09:28:13]Write i2c OK [09:28:13]MH_I2C_Read... [09:28:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:13]Read from MH i2c: E2 [09:28:13]MH_I2C_Read... [09:28:13]Read from MH i2c: E2 0E 00 [09:28:13]MH_I2C_Read... [09:28:13]Read from MH i2c: E2 0E 00 9E 1D 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 7F [09:28:13]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [09:28:13]wFMCommunicate OK [09:28:13]SAM_PROTO_GetShiftState done [09:28:13]FM_GetShiftState done [09:28:13]req_shift_opened done [09:28:13]requested_item shift.open_date is exist - process it [09:28:13]req_shift_open_date [09:28:13]req_shift_open_date done [09:28:13]produce_requested_data done [09:28:13]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76792,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [09:28:13]process_action_free close_receipt [09:28:13]json_value_free [09:28:13]json_value_free done [09:28:13]process_json_proto returns [09:28:13]Send response to host [09:28:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76792,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [09:28:13]free response buf [09:28:13]execute_script done [09:28:13]execute_script returns [09:28:13]free content buf [09:28:13]Sock 9.Close socket [09:28:13]Sock 9.Thread stoped [09:28:17]OFD Sender: No OFD packet to send [09:28:22]OFD Sender: No OFD packet to send [09:28:27]OFD Sender: No OFD packet to send [09:28:32]OFD Sender: No OFD packet to send [09:28:37]OFD Sender: No OFD packet to send [09:28:42]OFD Sender: No OFD packet to send [09:28:47]OFD Sender: No OFD packet to send [09:28:52]OFD Sender: No OFD packet to send [09:28:57]OFD Sender: No OFD packet to send [09:29:02]OFD Sender: No OFD packet to send [09:29:07]OFD Sender: No OFD packet to send [09:29:12]OFD Sender: No OFD packet to send [09:29:17]OFD Sender: No OFD packet to send [09:29:22]OFD Sender: No OFD packet to send [09:29:27]OFD Sender: No OFD packet to send [09:29:32]OFD Sender: No OFD packet to send [09:29:37]OFD Sender: No OFD packet to send [09:29:42]OFD Sender: No OFD packet to send [09:29:47]OFD Sender: No OFD packet to send [09:29:52]OFD Sender: No OFD packet to send [09:29:57]OFD Sender: No OFD packet to send [09:30:02]accept exits with 7 [09:30:02]New connection [09:30:02]New thread 3067338084 created [09:30:02]Thread 3067481444 joined [09:30:02]Waiting for new connection... [09:30:02] Sock 7.Parse request [09:30:02]Sock 7.Check first char [09:30:02]Sock 7.First char is OK [09:30:02]request: POST /json_proto HTTP/1.0 [09:30:02]Method: POST [09:30:02]URL: /json_proto [09:30:02]Method is POST - this is cgi request [09:30:02]url: /json_proto [09:30:02]query_string will be loaded in cgi processing [09:30:02]execute_cgi json_proto POST (null) [09:30:02]execute_cgi path=json_proto method=POST [09:30:02]POST find Content-Length [09:30:02]Host: 172.17.62.5:8080 [09:30:02]Content-Length: 978 [09:30:02]Content-Type: application/json [09:30:02] [09:30:02]POST finish read [09:30:02]Found Content-Length = 978 [09:30:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.670, "sum" : 1989.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 27.67 \u0441\u043E\u043C", "deposit" : 1989.00, "total" : 1989.00, "payments": [ { "type": 0, "sum" : 1989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:02]execute_script... [09:30: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)191324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.670, "sum" : 1989.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 27.67 \u0441\u043E\u043C", "deposit" : 1989.00, "total" : 1989.00, "payments": [ { "type": 0, "sum" : 1989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:02]POST & json_proto [09:30:02]process_json_proto [09:30:02]json parsed OK: [09:30:02]protocol is kg_v1.0 [09:30:02]action value=close_receipt [09:30:02]process_action close_receipt [09:30:02]cmd_close_receipt [09:30:02]MH_GetDate [09:30:02]Write to MH i2c: F0 00 00 9F 1D AB [09:30:02]Write i2c OK [09:30:02]MH_I2C_Read... [09:30:02]Read from MH i2c: F0 [09:30:02]MH_I2C_Read... [09:30:02]Read from MH i2c: F0 09 00 [09:30:02]MH_I2C_Read... [09:30:02]Read from MH i2c: F0 09 00 9F 1D 00 9E DC 24 66 F4 E9 65 64 5E [09:30:02]GetLastDocTimeStamp 1713691693 [09:30:02]current date 1713691806 [09:30:02]FM_GetShiftState [09:30:02]SAM_PROTO_GetShiftState [09:30:02]wFMCommunicate request_size=4 [09:30:02]MH_SAM_APDU [09:30:02]CAPDU: 80 13 01 00 [09:30:02]Write to MH i2c: E2 08 00 A0 1D 80 13 01 00 00 00 00 00 3A [09:30:02]Write i2c OK [09:30:02]MH_I2C_Read... [09:30:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:02]Read from MH i2c: E2 [09:30:02]MH_I2C_Read... [09:30:02]Read from MH i2c: E2 0E 00 [09:30:02]MH_I2C_Read... [09:30:02]Read from MH i2c: E2 0E 00 A0 1D 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 81 [09:30:02]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [09:30:02]wFMCommunicate OK [09:30:02]SAM_PROTO_GetShiftState done [09:30:02]FM_GetShiftState done [09:30:02]opened in 1713658965 [09:30:02]opened+sec_in_day 1713745365 [09:30:02]quantity*price = 198947 [09:30:02]sum+1 = 198948 [09:30:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1989.00 Внесено: 1989.00 СДАЧА: 0.00 НСП 1% : 17.61 НДС 12% : 211.27 Наличными: 1989.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 49 21.04.2024 09:30 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 27.67 сом ФМ: 0000000000874652 ФД: 76793 ФПД: 241306364942276 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T093006&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76793&fm=241306364942276&tin=02508201610067®Number=0000000000091573&sum=198900 [09:30:03]StoreToDocumentArchive [09:30:03]shift 372 fd 76793 [09:30:03]save to /storage/0372/doc_00076793 [09:30:03]save last doc name /storage/0372/doc_00076793 to /storage/kkm_last_doc_name [09:30:03]save OK [09:30:03]Clear old archive folders... [09:30:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:30:03]tlvbuf is 018EFF00 [09:30:03]SAM_PROTO_ClearQueue [09:30:03]wFMCommunicate request_size=4 [09:30:03]MH_SAM_APDU [09:30:03]CAPDU: 80 09 00 00 [09:30:03]Write to MH i2c: E2 08 00 AD 1D 80 09 00 00 00 00 00 00 3C [09:30:03]Write i2c OK [09:30:03]MH_I2C_Read... [09:30:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:30:03]Read from MH i2c: E2 [09:30:03]MH_I2C_Read... [09:30:03]Read from MH i2c: E2 03 00 [09:30:03]MH_I2C_Read... [09:30:03]Read from MH i2c: E2 03 00 AD 1D 00 90 00 3E [09:30:03]RAPDU: 90 00 [09:30:03]wFMCommunicate OK [09:30:03]SAM_PROTO_ClearQueue done [09:30:03]KKMCreateOFDPacket [09:30:03]OFDProtocolAddRootSTLVToBuf [09:30:03]FM_MakeSignedData [09:30:03]FM_MakeSignedData [09:30:03]SAM_PROTO_SignData [09:30:03]wFMCommunicate request_size=4 [09:30:03]MH_SAM_APDU [09:30:03]CAPDU: 80 0D 01 02 [09:30:03]Write to MH i2c: E2 08 00 AE 1D 80 0D 01 02 00 00 00 00 44 [09:30:03]Write i2c OK [09:30:03]MH_I2C_Read... [09:30:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:30:03]Read from MH i2c: E2 [09:30:03]MH_I2C_Read... [09:30:03]Read from MH i2c: E2 03 00 [09:30:03]MH_I2C_Read... [09:30:03]Read from MH i2c: E2 03 00 AE 1D 00 90 00 3F [09:30:03]RAPDU: 90 00 [09:30:03]wFMCommunicate OK [09:30:03]wFMCommunicate request_size=255 [09:30:03]MH_SAM_APDU [09:30:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 16 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 23 09 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 08 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 87 52 00 00 00 00 07 04 06 00 F4 08 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 9E DC 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F9 2B 01 00 35 04 06 00 DB 77 84 2A [09:30:03]Write to MH i2c: E2 02 01 AF 1D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 16 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 23 09 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 08 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 87 52 00 00 00 00 07 04 06 00 F4 08 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 9E DC 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F9 2B 01 00 35 04 06 00 DB 77 84 2A 00 00 11 [09:30:03]Write i2c OK [09:30:03]MH_I2C_Read... [09:30:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:04]Read from MH i2c: E2 [09:30:04]MH_I2C_Read... [09:30:04]Read from MH i2c: E2 03 00 [09:30:04]MH_I2C_Read... [09:30:04]Read from MH i2c: E2 03 00 AF 1D 00 90 00 40 [09:30:04]RAPDU: 90 00 [09:30:04]wFMCommunicate OK [09:30:04]wFMCommunicate request_size=7 [09:30:04]MH_SAM_APDU [09:30:04]CAPDU: 80 0D 02 02 02 17 C4 [09:30:04]Write to MH i2c: E2 0A 00 B0 1D 80 0D 02 02 02 00 17 C4 00 00 26 [09:30:04]Write i2c OK [09:30:04]MH_I2C_Read... [09:30:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:04]Read from MH i2c: E2 [09:30:04]MH_I2C_Read... [09:30:04]Read from MH i2c: E2 03 00 [09:30:04]MH_I2C_Read... [09:30:04]Read from MH i2c: E2 03 00 B0 1D 00 90 00 41 [09:30:04]RAPDU: 90 00 [09:30:04]wFMCommunicate OK [09:30:04]wFMCommunicate request_size=4 [09:30:04]MH_SAM_APDU [09:30:04]CAPDU: 80 0D 03 02 [09:30:04]Write to MH i2c: E2 08 00 B1 1D 80 0D 03 02 00 00 00 00 49 [09:30:04]Write i2c OK [09:30:04]MH_I2C_Read... [09:30:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:30:04]Read from MH i2c: E2 [09:30:04]MH_I2C_Read... [09:30:04]Read from MH i2c: E2 0B 00 [09:30:04]MH_I2C_Read... [09:30:04]Read from MH i2c: E2 0B 00 B1 1D 00 9D 4B 08 1D 13 0D 87 14 90 00 12 [09:30:04]RAPDU: 9D 4B 08 1D 13 0D 87 14 90 00 [09:30:04]wFMCommunicate OK [09:30:04]SAM_PROTO_SignData done [09:30:04]FM_MakeSignedData done [09:30:04]CreateOFDProtocolMessage [09:30:04]wFMCommunicate request_size=4 [09:30:04]MH_SAM_APDU [09:30:04]CAPDU: 80 11 00 00 [09:30:04]Write to MH i2c: E2 08 00 B2 1D 80 11 00 00 00 00 00 00 49 [09:30:04]Write i2c OK [09:30:04]MH_I2C_Read... [09:30:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:04]Read from MH i2c: E2 [09:30:04]MH_I2C_Read... [09:30:04]Read from MH i2c: E2 17 00 [09:30:04]MH_I2C_Read... [09:30:04]Read from MH i2c: E2 17 00 B2 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 9C [09:30:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:30:04]wFMCommunicate OK [09:30:04]CreateOFDProtocolMessage done [09:30:04]OFDSenderStorePacket 76793 [09:30:04]StoreOFDPacket docnum=76793 [09:30:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 BE 63 04 01 D5 29 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 16 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 23 09 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 08 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 87 52 00 00 00 00 07 04 06 00 F4 08 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 9E DC 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F9 2B 01 00 35 04 06 00 DB 77 84 2A 17 C4 9D 4B 08 1D 13 0D 87 14 [09:30:04]CheckFolder [09:30:04]dirname=/storage/ofd_packets [09:30:04]CheckFolder done [09:30:04]ProducePacketName [09:30:04]name=ofd_packets/00076793 [09:30:04]NVStorageSaveData ofd_packets/00076793 [09:30:04]File name is /storage/ofd_packets/00076793 [09:30:04]Write 298 bytes [09:30:04]NVStorageSaveData done [09:30:04]OFDSenderStorePacket done [09:30:04]KKMCreateOFDPacket done [09:30:04]NVStorageSaveData kkm_last_timestamp [09:30:04]File name is /storage/kkm_last_timestamp [09:30:04]Write 4 bytes [09:30:04]NVStorageSaveData done [09:30:04]ExternCall_PrintAddStr [09:30:04]wPrintStart [09:30:04]Write to MH i2c: 01 00 00 B3 1D D0 [09:30:04]Write i2c OK [09:30:04]MH_I2C_Read... [09:30:04]Read from MH i2c: 01 [09:30:04]MH_I2C_Read... [09:30:04]Read from MH i2c: 01 07 00 [09:30:04]MH_I2C_Read... [09:30:04]Read from MH i2c: 01 07 00 B3 1D 00 00 00 00 00 FF 0F E5 [09:30:04]RasterBufferAndPrint [09:30:04]line Счет N : (1)191324 [09:30:04]line ИНН: 02508201610067 [09:30:04]line Контрольно-Кассовый Чек [09:30:04]line ПРОДАЖА [09:30:04]line ТРК (МРК, ГНК) : 51 [09:30:04]line Товар: 2710194210 [09:30:04]line ДТ-К-5 [09:30:04]line 27.670 * 71.90 [09:30:04]line = 1989.47 [09:30:04]line НДС 12% НСП 1% [09:30:04]line > о реализуемом товаре [09:30:04]line ОКРУГЛЕНИЕ: -0.47 [09:30:04]line ИТОГО: 1989.00 [09:30:04]line Внесено: 1989.00 [09:30:04]line СДАЧА: 0.00 [09:30:04]line НСП 1% : 17.61 [09:30:04]line НДС 12% : 211.27 [09:30:04]line Наличными: 1989.00 [09:30:04]line Безнал.: 0.00 [09:30:04]line Место: АЗС № 106 "Партнер Нефть" [09:30:04]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [09:30:04]line СНО: Общий режим [09:30:04]line Чек 49 21.04.2024 09:30 [09:30:04]line Смена: 372 ФФД: 1.0 [09:30:04]line ЗНМ: 0300000141 [09:30:04]line РНМ: 0000000000091573 [09:30:04]line Версия ККМ: 001 [09:30:04]line [09:30:04]line Дисконтная программа [09:30:04]line ДТ [09:30:04]line номер 106 [09:30:04]line сэкономлено 27.67 сом [09:30:04]line ФМ: 0000000000874652 [09:30:04]line ФД: 76793 [09:30:04]line ФПД: 241306364942276 [09:30:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T093006&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76793&fm=241306364942276&tin=02508201610067®Number=0000000000091573&sum=198900 [09:30:04]written 0, free lines is 4095 [09:30:04]OFD Sender: Processing packet 76793 [packets to send 129, broken 128] [09:30:04]ProducePacketName [09:30:04]name=ofd_packets/00076793 [09:30:04]OFD Sender: To server: pG, [09:30:04]CommunicateWithHost lk.salyk.kg:30040 [09:30:04]ConnectInit lk.salyk.kg [09:30:04]Write to MH i2c: 01 00 00 E2 1D FF [09:30:04]Write i2c OK [09:30:04]MH_I2C_Read... [09:30:04]Read from MH i2c: 01 [09:30:04]MH_I2C_Read... [09:30:04]Read from MH i2c: 01 07 00 [09:30:04]MH_I2C_Read... [09:30:04]Read from MH i2c: 01 07 00 E2 1D 00 00 00 00 00 92 0C A4 [09:30:04]RasterBufferAndPrint [09:30:04]line [09:30:04]line [09:30:04]line [09:30:04]line [09:30:04]line [09:30:04]written 0, free lines is 3224 [09:30:04]MH_Cut [09:30:04]Write to MH i2c: D1 01 00 E9 1D 01 D8 [09:30:04]Write i2c OK [09:30:04]MH_I2C_Read... [09:30:04]Read from MH i2c: D1 [09:30:04]MH_I2C_Read... [09:30:04]Read from MH i2c: D1 01 00 [09:30:04]MH_I2C_Read... [09:30:04]Read from MH i2c: D1 01 00 E9 1D 00 D7 [09:30:04]Write to MH i2c: 01 00 00 EA 1D 07 [09:30:04]Write i2c OK [09:30:04]MH_I2C_Read... [09:30:05]*** Cut start [09:30:05]*** Partial cut [09:30:05]*** CUTSNS_PIN = 1 [09:30:05]*** CUTSNS_PIN = 0 [09:30:05]*** Brake cut motor [09:30:06]Read from MH i2c: 01 [09:30:06]MH_I2C_Read... [09:30:06]*** Stop cut motor [09:30:06]*** Cut end [09:30:06]Read from MH i2c: 01 07 00 [09:30:06]MH_I2C_Read... [09:30:06]Read from MH i2c: 01 07 00 EA 1D 00 00 00 00 00 FF 0F 1C [09:30:06]process_action close_receipt done [09:30:06]requested_data is exist [09:30:06]produce_requested_data [09:30:06]requested_item fm.sn is exist - process it [09:30:06]wFMCommunicate request_size=4 [09:30:06]MH_SAM_APDU [09:30:06]CAPDU: 80 11 00 00 [09:30:06]Write to MH i2c: E2 08 00 EB 1D 80 11 00 00 00 00 00 00 82 [09:30:06]Write i2c OK [09:30:06]MH_I2C_Read... [09:30:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:06]Read from MH i2c: E2 [09:30:06]MH_I2C_Read... [09:30:06]Read from MH i2c: E2 17 00 [09:30:06]MH_I2C_Read... [09:30:06]Read from MH i2c: E2 17 00 EB 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 D5 [09:30:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:30:06]wFMCommunicate OK [09:30:06]requested_item fd.num is exist - process it [09:30:06]SAM_PROTO_GetFieldsCounters [09:30:06]wFMCommunicate request_size=4 [09:30:06]MH_SAM_APDU [09:30:06]CAPDU: 80 13 00 00 [09:30:06]Write to MH i2c: E2 08 00 EC 1D 80 13 00 00 00 00 00 00 85 [09:30:06]Write i2c OK [09:30:06]MH_I2C_Read... [09:30:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:30:06]Read from MH i2c: E2 [09:30:06]MH_I2C_Read... [09:30:06]Read from MH i2c: E2 62 00 [09:30:06]MH_I2C_Read... [09:30:06]Read from MH i2c: E2 62 00 EC 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F9 2B 01 00 0E 04 04 00 74 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 D3 [09:30: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F9 2B 01 00 0E 04 04 00 74 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 [09:30:06]wFMCommunicate OK [09:30:06]SAM_PROTO_GetFieldsCounters done [09:30:06]requested_item shift.num is exist - process it [09:30:06]requested_item shift.opened is exist - process it [09:30:06]req_shift_opened [09:30:06]FM_GetShiftState [09:30:06]SAM_PROTO_GetShiftState [09:30:06]wFMCommunicate request_size=4 [09:30:06]MH_SAM_APDU [09:30:06]CAPDU: 80 13 01 00 [09:30:06]Write to MH i2c: E2 08 00 ED 1D 80 13 01 00 00 00 00 00 87 [09:30:06]Write i2c OK [09:30:06]MH_I2C_Read... [09:30:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:06]Read from MH i2c: E2 [09:30:06]MH_I2C_Read... [09:30:06]Read from MH i2c: E2 0E 00 [09:30:06]MH_I2C_Read... [09:30:06]Read from MH i2c: E2 0E 00 ED 1D 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 CE [09:30:06]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [09:30:06]wFMCommunicate OK [09:30:06]SAM_PROTO_GetShiftState done [09:30:06]FM_GetShiftState done [09:30:06]req_shift_opened done [09:30:06]requested_item shift.open_date is exist - process it [09:30:06]req_shift_open_date [09:30:06]req_shift_open_date done [09:30:06]produce_requested_data done [09:30:06]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76793,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [09:30:06]process_action_free close_receipt [09:30:06]json_value_free [09:30:06]json_value_free done [09:30:06]process_json_proto returns [09:30:06]Send response to host [09:30:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76793,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [09:30:06]free response buf [09:30:06]execute_script done [09:30:06]execute_script returns [09:30:06]free content buf [09:30:06]Sock 7.Close socket [09:30:06]Sock 7.Thread stoped [09:30:07]Connected sock=11 [09:30:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 BE 63 04 01 D5 29 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 16 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 23 09 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 08 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 87 52 00 00 00 00 07 04 06 00 F4 08 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 9E DC 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F9 2B 01 00 35 04 06 00 DB 77 84 2A 17 C4 9D 4B 08 1D 13 0D 87 14 [09:30:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 AF 59 47 00 E8 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 34 36 35 32 10 04 04 00 F9 2B 01 00 F4 03 04 00 26 84 24 66 B6 04 01 00 00 21 B1 26 48 72 9E 48 39 [09:30:07]CommunicateWithHost err = 0 [09:30:07]CheckOFDResponse [09:30:07]1017 (14) - 77093643461234 [09:30:07]1041 (16) - 0000000000874652 [09:30:07]1040 (4) - 76793 [09:30:07]1012 (4) - 21.04.2024 03:12 [09:30:07]1206 (1) - 0 [09:30:07]OFD Sender: Remove packet 76793 [09:30:07]ProducePacketName [09:30:07]name=ofd_packets/00076793 [09:30:07]NVStorageDeleteData [09:30:08]OFD Sender: No OFD packet to send [09:30:13]OFD Sender: No OFD packet to send [09:30:18]OFD Sender: No OFD packet to send [09:30:23]OFD Sender: No OFD packet to send [09:30:28]OFD Sender: No OFD packet to send [09:30:33]OFD Sender: No OFD packet to send [09:30:38]OFD Sender: No OFD packet to send [09:30:43]OFD Sender: No OFD packet to send [09:30:48]OFD Sender: No OFD packet to send [09:30:53]OFD Sender: No OFD packet to send [09:30:58]OFD Sender: No OFD packet to send [09:31:03]OFD Sender: No OFD packet to send [09:31:08]OFD Sender: No OFD packet to send [09:31:13]OFD Sender: No OFD packet to send [09:31:18]OFD Sender: No OFD packet to send [09:31:23]OFD Sender: No OFD packet to send [09:31:28]OFD Sender: No OFD packet to send [09:31:33]OFD Sender: No OFD packet to send [09:31:38]OFD Sender: No OFD packet to send [09:31:43]OFD Sender: No OFD packet to send [09:31:48]OFD Sender: No OFD packet to send [09:31:53]OFD Sender: No OFD packet to send [09:31:58]OFD Sender: No OFD packet to send [09:32:03]OFD Sender: No OFD packet to send [09:32:08]OFD Sender: No OFD packet to send [09:32:13]OFD Sender: No OFD packet to send [09:32:18]OFD Sender: No OFD packet to send [09:32:23]OFD Sender: No OFD packet to send [09:32:28]OFD Sender: No OFD packet to send [09:32:33]OFD Sender: No OFD packet to send [09:32:38]OFD Sender: No OFD packet to send [09:32:43]OFD Sender: No OFD packet to send [09:32:48]OFD Sender: No OFD packet to send [09:32:53]OFD Sender: No OFD packet to send [09:32:58]OFD Sender: No OFD packet to send [09:33:03]OFD Sender: No OFD packet to send [09:33:08]OFD Sender: No OFD packet to send [09:33:13]OFD Sender: No OFD packet to send [09:33:18]OFD Sender: No OFD packet to send [09:33:23]OFD Sender: No OFD packet to send [09:33:28]OFD Sender: No OFD packet to send [09:33:33]OFD Sender: No OFD packet to send [09:33:38]OFD Sender: No OFD packet to send [09:33:43]OFD Sender: No OFD packet to send [09:33:48]OFD Sender: No OFD packet to send [09:33:53]OFD Sender: No OFD packet to send [09:33:58]OFD Sender: No OFD packet to send [09:34:03]OFD Sender: No OFD packet to send [09:34:08]OFD Sender: No OFD packet to send [09:34:13]OFD Sender: No OFD packet to send [09:34:18]OFD Sender: No OFD packet to send [09:34:23]OFD Sender: No OFD packet to send [09:34:28]OFD Sender: No OFD packet to send [09:34:33]OFD Sender: No OFD packet to send [09:34:38]OFD Sender: No OFD packet to send [09:34:43]OFD Sender: No OFD packet to send [09:34:48]OFD Sender: No OFD packet to send [09:34:53]OFD Sender: No OFD packet to send [09:34:58]OFD Sender: No OFD packet to send [09:35:03]OFD Sender: No OFD packet to send [09:35:08]OFD Sender: No OFD packet to send [09:35:13]OFD Sender: No OFD packet to send [09:35:18]OFD Sender: No OFD packet to send [09:35:23]OFD Sender: No OFD packet to send [09:35:28]OFD Sender: No OFD packet to send [09:35:33]OFD Sender: No OFD packet to send [09:35:38]OFD Sender: No OFD packet to send [09:35:43]OFD Sender: No OFD packet to send [09:35:48]OFD Sender: No OFD packet to send [09:35:53]OFD Sender: No OFD packet to send [09:35:58]OFD Sender: No OFD packet to send [09:36:03]OFD Sender: No OFD packet to send [09:36:08]OFD Sender: No OFD packet to send [09:36:13]OFD Sender: No OFD packet to send [09:36:18]OFD Sender: No OFD packet to send [09:36:23]OFD Sender: No OFD packet to send [09:36:28]OFD Sender: No OFD packet to send [09:36:33]OFD Sender: No OFD packet to send [09:36:38]OFD Sender: No OFD packet to send [09:36:43]OFD Sender: No OFD packet to send [09:36:48]OFD Sender: No OFD packet to send [09:36:53]OFD Sender: No OFD packet to send [09:36:58]OFD Sender: No OFD packet to send [09:37:03]OFD Sender: No OFD packet to send [09:37:08]OFD Sender: No OFD packet to send [09:37:13]OFD Sender: No OFD packet to send [09:37:18]OFD Sender: No OFD packet to send [09:37:23]OFD Sender: No OFD packet to send [09:37:28]OFD Sender: No OFD packet to send [09:37:33]OFD Sender: No OFD packet to send [09:37:38]OFD Sender: No OFD packet to send [09:37:43]OFD Sender: No OFD packet to send [09:37:48]OFD Sender: No OFD packet to send [09:37:53]OFD Sender: No OFD packet to send [09:37:58]OFD Sender: No OFD packet to send [09:38:03]OFD Sender: No OFD packet to send [09:38:08]OFD Sender: No OFD packet to send [09:38:13]OFD Sender: No OFD packet to send [09:38:18]OFD Sender: No OFD packet to send [09:38:23]OFD Sender: No OFD packet to send [09:38:28]OFD Sender: No OFD packet to send [09:38:33]OFD Sender: No OFD packet to send [09:38:38]OFD Sender: No OFD packet to send [09:38:43]OFD Sender: No OFD packet to send [09:38:48]OFD Sender: No OFD packet to send [09:38:53]OFD Sender: No OFD packet to send [09:38:58]OFD Sender: No OFD packet to send [09:39:03]OFD Sender: No OFD packet to send [09:39:09]OFD Sender: No OFD packet to send [09:39:14]OFD Sender: No OFD packet to send [09:39:19]OFD Sender: No OFD packet to send [09:39:24]OFD Sender: No OFD packet to send [09:39:29]OFD Sender: No OFD packet to send [09:39:34]OFD Sender: No OFD packet to send [09:39:39]OFD Sender: No OFD packet to send [09:39:44]OFD Sender: No OFD packet to send [09:39:49]OFD Sender: No OFD packet to send [09:39:54]OFD Sender: No OFD packet to send [09:39:59]OFD Sender: No OFD packet to send [09:40:04]OFD Sender: No OFD packet to send [09:40:09]OFD Sender: No OFD packet to send [09:40:14]OFD Sender: No OFD packet to send [09:40:15]accept exits with 9 [09:40:15]New connection [09:40:15]New thread 3067481444 created [09:40:15]Thread 3067338084 joined [09:40:15]Waiting for new connection... [09:40:15] Sock 9.Parse request [09:40:15]Sock 9.Check first char [09:40:15]Sock 9.First char is OK [09:40:15]request: POST /json_proto HTTP/1.0 [09:40:15]Method: POST [09:40:15]URL: /json_proto [09:40:15]Method is POST - this is cgi request [09:40:15]url: /json_proto [09:40:15]query_string will be loaded in cgi processing [09:40:15]execute_cgi json_proto POST (null) [09:40:15]execute_cgi path=json_proto method=POST [09:40:15]POST find Content-Length [09:40:15]Host: 172.17.62.5:8080 [09:40:15]Content-Length: 674 [09:40:15]Content-Type: application/json [09:40:15] [09:40:15]POST finish read [09:40:15]Found Content-Length = 674 [09:40:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:15]execute_script... [09:40: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)191325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:15]POST & json_proto [09:40:15]process_json_proto [09:40:15]json parsed OK: [09:40:15]protocol is kg_v1.0 [09:40:15]action value=close_receipt [09:40:15]process_action close_receipt [09:40:15]cmd_close_receipt [09:40:15]MH_GetDate [09:40:15]Write to MH i2c: F0 00 00 EE 1D FA [09:40:15]Write i2c OK [09:40:15]MH_I2C_Read... [09:40:15]Read from MH i2c: F0 [09:40:15]MH_I2C_Read... [09:40:15]Read from MH i2c: F0 09 00 [09:40:15]MH_I2C_Read... [09:40:15]Read from MH i2c: F0 09 00 EE 1D 00 02 DF 24 66 F4 E9 65 64 14 [09:40:15]GetLastDocTimeStamp 1713691806 [09:40:15]current date 1713692418 [09:40:15]FM_GetShiftState [09:40:15]SAM_PROTO_GetShiftState [09:40:15]wFMCommunicate request_size=4 [09:40:15]MH_SAM_APDU [09:40:15]CAPDU: 80 13 01 00 [09:40:15]Write to MH i2c: E2 08 00 EF 1D 80 13 01 00 00 00 00 00 89 [09:40:15]Write i2c OK [09:40:15]MH_I2C_Read... [09:40:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:15]Read from MH i2c: E2 [09:40:15]MH_I2C_Read... [09:40:15]Read from MH i2c: E2 0E 00 [09:40:15]MH_I2C_Read... [09:40:15]Read from MH i2c: E2 0E 00 EF 1D 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 D0 [09:40:15]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [09:40:15]wFMCommunicate OK [09:40:15]SAM_PROTO_GetShiftState done [09:40:15]FM_GetShiftState done [09:40:15]opened in 1713658965 [09:40:15]opened+sec_in_day 1713745365 [09:40:15]quantity*price = 50009 [09:40:15]sum+1 = 50010 [09:40:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 50 21.04.2024 09:40 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76794 ФПД: 205018199537469 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T094018&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76794&fm=205018199537469&tin=02508201610067®Number=0000000000091573&sum=50000 [09:40:16]StoreToDocumentArchive [09:40:16]shift 372 fd 76794 [09:40:16]save to /storage/0372/doc_00076794 [09:40:16]save last doc name /storage/0372/doc_00076794 to /storage/kkm_last_doc_name [09:40:16]save OK [09:40:16]Clear old archive folders... [09:40:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:40:16]tlvbuf is 018735E0 [09:40:16]SAM_PROTO_ClearQueue [09:40:16]wFMCommunicate request_size=4 [09:40:16]MH_SAM_APDU [09:40:16]CAPDU: 80 09 00 00 [09:40:16]Write to MH i2c: E2 08 00 FC 1D 80 09 00 00 00 00 00 00 8B [09:40:16]Write i2c OK [09:40:16]MH_I2C_Read... [09:40:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:40:16]Read from MH i2c: E2 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: E2 03 00 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: E2 03 00 FC 1D 00 90 00 8D [09:40:16]RAPDU: 90 00 [09:40:16]wFMCommunicate OK [09:40:16]SAM_PROTO_ClearQueue done [09:40:16]KKMCreateOFDPacket [09:40:16]OFDProtocolAddRootSTLVToBuf [09:40:16]FM_MakeSignedData [09:40:16]FM_MakeSignedData [09:40:16]SAM_PROTO_SignData [09:40:16]wFMCommunicate request_size=4 [09:40:16]MH_SAM_APDU [09:40:16]CAPDU: 80 0D 01 02 [09:40:16]Write to MH i2c: E2 08 00 FD 1D 80 0D 01 02 00 00 00 00 93 [09:40:16]Write i2c OK [09:40:16]MH_I2C_Read... [09:40:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:40:16]Read from MH i2c: E2 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: E2 03 00 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: E2 03 00 FD 1D 00 90 00 8E [09:40:16]RAPDU: 90 00 [09:40:16]wFMCommunicate OK [09:40:16]wFMCommunicate request_size=255 [09:40:16]MH_SAM_APDU [09:40:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 32 00 00 00 F4 03 04 00 02 DF 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FA 2B 01 00 35 04 06 00 BA 76 84 F4 [09:40:16]Write to MH i2c: E2 02 01 FE 1D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 32 00 00 00 F4 03 04 00 02 DF 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FA 2B 01 00 35 04 06 00 BA 76 84 F4 00 00 1D [09:40:16]Write i2c OK [09:40:16]MH_I2C_Read... [09:40:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:16]Read from MH i2c: E2 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: E2 03 00 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: E2 03 00 FE 1D 00 90 00 8F [09:40:16]RAPDU: 90 00 [09:40:16]wFMCommunicate OK [09:40:16]wFMCommunicate request_size=7 [09:40:16]MH_SAM_APDU [09:40:16]CAPDU: 80 0D 02 02 02 B7 3D [09:40:16]Write to MH i2c: E2 0A 00 FF 1D 80 0D 02 02 02 00 B7 3D 00 00 8E [09:40:16]Write i2c OK [09:40:16]MH_I2C_Read... [09:40:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:16]Read from MH i2c: E2 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: E2 03 00 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: E2 03 00 FF 1D 00 90 00 90 [09:40:16]RAPDU: 90 00 [09:40:16]wFMCommunicate OK [09:40:16]wFMCommunicate request_size=4 [09:40:16]MH_SAM_APDU [09:40:16]CAPDU: 80 0D 03 02 [09:40:16]Write to MH i2c: E2 08 00 00 1E 80 0D 03 02 00 00 00 00 99 [09:40:16]Write i2c OK [09:40:16]MH_I2C_Read... [09:40:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:40:16]Read from MH i2c: E2 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: E2 0B 00 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: E2 0B 00 00 1E 00 47 B4 2B 42 4D B0 E0 3A 90 00 19 [09:40:16]RAPDU: 47 B4 2B 42 4D B0 E0 3A 90 00 [09:40:16]wFMCommunicate OK [09:40:16]SAM_PROTO_SignData done [09:40:16]FM_MakeSignedData done [09:40:16]CreateOFDProtocolMessage [09:40:16]wFMCommunicate request_size=4 [09:40:16]MH_SAM_APDU [09:40:16]CAPDU: 80 11 00 00 [09:40:16]Write to MH i2c: E2 08 00 01 1E 80 11 00 00 00 00 00 00 99 [09:40:16]Write i2c OK [09:40:16]MH_I2C_Read... [09:40:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:16]Read from MH i2c: E2 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: E2 17 00 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: E2 17 00 01 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 EC [09:40:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:40:16]wFMCommunicate OK [09:40:16]CreateOFDProtocolMessage done [09:40:16]OFDSenderStorePacket 76794 [09:40:16]StoreOFDPacket docnum=76794 [09:40:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 C5 D1 04 01 23 1C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 02 DF 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FA 2B 01 00 35 04 06 00 BA 76 84 F4 B7 3D 47 B4 2B 42 4D B0 E0 3A [09:40:16]CheckFolder [09:40:16]dirname=/storage/ofd_packets [09:40:16]CheckFolder done [09:40:16]ProducePacketName [09:40:16]name=ofd_packets/00076794 [09:40:16]NVStorageSaveData ofd_packets/00076794 [09:40:16]File name is /storage/ofd_packets/00076794 [09:40:16]Write 298 bytes [09:40:16]NVStorageSaveData done [09:40:16]OFDSenderStorePacket done [09:40:16]KKMCreateOFDPacket done [09:40:16]NVStorageSaveData kkm_last_timestamp [09:40:16]File name is /storage/kkm_last_timestamp [09:40:16]Write 4 bytes [09:40:16]NVStorageSaveData done [09:40:16]ExternCall_PrintAddStr [09:40:16]wPrintStart [09:40:16]Write to MH i2c: 01 00 00 02 1E 20 [09:40:16]Write i2c OK [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: 01 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: 01 07 00 [09:40:16]MH_I2C_Read... [09:40:16]Read from MH i2c: 01 07 00 02 1E 00 00 00 00 00 FF 0F 35 [09:40:16]RasterBufferAndPrint [09:40:16]line Счет N : (1)191325 [09:40:16]line ИНН: 02508201610067 [09:40:16]line Контрольно-Кассовый Чек [09:40:16]line ПРОДАЖА [09:40:16]line ТРК (МРК, ГНК) : 51 [09:40:16]line Товар: 2710194210 [09:40:16]line ДТ-К-5 [09:40:16]line 6.860 * 72.90 [09:40:16]line = 500.09 [09:40:16]line НДС 12% НСП 1% [09:40:16]line > о реализуемом товаре [09:40:16]line ОКРУГЛЕНИЕ: -0.09 [09:40:16]line ИТОГО: 500.00 [09:40:16]line Внесено: 500.00 [09:40:16]line СДАЧА: 0.00 [09:40:16]line НСП 1% : 4.43 [09:40:16]line НДС 12% : 53.11 [09:40:16]line Наличными: 500.00 [09:40:16]line Безнал.: 0.00 [09:40:16]line Место: АЗС № 106 "Партнер Нефть" [09:40:16]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [09:40:16]line СНО: Общий режим [09:40:16]line Чек 50 21.04.2024 09:40 [09:40:16]line Смена: 372 ФФД: 1.0 [09:40:16]line ЗНМ: 0300000141 [09:40:16]line РНМ: 0000000000091573 [09:40:16]line Версия ККМ: 001 [09:40:16]line ФМ: 0000000000874652 [09:40:16]line ФД: 76794 [09:40:16]line ФПД: 205018199537469 [09:40:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T094018&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76794&fm=205018199537469&tin=02508201610067®Number=0000000000091573&sum=50000 [09:40:17]OFD Sender: Processing packet 76794 [packets to send 129, broken 128] [09:40:17]ProducePacketName [09:40:17]name=ofd_packets/00076794 [09:40:17]OFD Sender: To server: pG, [09:40:17]CommunicateWithHost lk.salyk.kg:30040 [09:40:17]ConnectInit lk.salyk.kg [09:40:17]written 0, free lines is 4095 [09:40:17]Write to MH i2c: 01 00 00 2C 1E 4A [09:40:17]Write i2c OK [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: 01 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: 01 07 00 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: 01 07 00 2C 1E 00 00 00 00 00 DC 0C 39 [09:40:17]RasterBufferAndPrint [09:40:17]line [09:40:17]line [09:40:17]line [09:40:17]line [09:40:17]line [09:40:17]written 0, free lines is 3298 [09:40:17]MH_Cut [09:40:17]Write to MH i2c: D1 01 00 33 1E 01 23 [09:40:17]Write i2c OK [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: D1 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: D1 01 00 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: D1 01 00 33 1E 00 22 [09:40:17]Write to MH i2c: 01 00 00 34 1E 52 [09:40:17]Write i2c OK [09:40:17]MH_I2C_Read... [09:40:18]*** Cut start [09:40:18]*** Partial cut [09:40:18]*** CUTSNS_PIN = 1 [09:40:18]*** CUTSNS_PIN = 0 [09:40:18]*** Brake cut motor [09:40:18]Read from MH i2c: 01 [09:40:18]MH_I2C_Read... [09:40:19]*** Stop cut motor [09:40:19]*** Cut end [09:40:19]Read from MH i2c: 01 07 00 [09:40:19]MH_I2C_Read... [09:40:19]Read from MH i2c: 01 07 00 34 1E 00 00 00 00 00 FF 0F 67 [09:40:19]process_action close_receipt done [09:40:19]requested_data is exist [09:40:19]produce_requested_data [09:40:19]requested_item fm.sn is exist - process it [09:40:19]wFMCommunicate request_size=4 [09:40:19]MH_SAM_APDU [09:40:19]CAPDU: 80 11 00 00 [09:40:19]Write to MH i2c: E2 08 00 35 1E 80 11 00 00 00 00 00 00 CD [09:40:19]Write i2c OK [09:40:19]MH_I2C_Read... [09:40:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:19]Read from MH i2c: E2 [09:40:19]MH_I2C_Read... [09:40:19]Read from MH i2c: E2 17 00 [09:40:19]MH_I2C_Read... [09:40:19]Read from MH i2c: E2 17 00 35 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 20 [09:40:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:40:19]wFMCommunicate OK [09:40:19]requested_item fd.num is exist - process it [09:40:19]SAM_PROTO_GetFieldsCounters [09:40:19]wFMCommunicate request_size=4 [09:40:19]MH_SAM_APDU [09:40:19]CAPDU: 80 13 00 00 [09:40:19]Write to MH i2c: E2 08 00 36 1E 80 13 00 00 00 00 00 00 D0 [09:40:19]Write i2c OK [09:40:19]MH_I2C_Read... [09:40:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:19]Read from MH i2c: E2 [09:40:19]MH_I2C_Read... [09:40:19]Read from MH i2c: E2 62 00 [09:40:19]MH_I2C_Read... [09:40:19]Read from MH i2c: E2 62 00 36 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 FA 2B 01 00 0E 04 04 00 74 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 22 [09:40: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 FA 2B 01 00 0E 04 04 00 74 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 [09:40:19]wFMCommunicate OK [09:40:19]SAM_PROTO_GetFieldsCounters done [09:40:19]requested_item shift.num is exist - process it [09:40:19]requested_item shift.opened is exist - process it [09:40:19]req_shift_opened [09:40:19]FM_GetShiftState [09:40:19]SAM_PROTO_GetShiftState [09:40:19]wFMCommunicate request_size=4 [09:40:19]MH_SAM_APDU [09:40:19]CAPDU: 80 13 01 00 [09:40:19]Write to MH i2c: E2 08 00 37 1E 80 13 01 00 00 00 00 00 D2 [09:40:19]Write i2c OK [09:40:19]MH_I2C_Read... [09:40:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:19]Read from MH i2c: E2 [09:40:19]MH_I2C_Read... [09:40:19]Read from MH i2c: E2 0E 00 [09:40:19]MH_I2C_Read... [09:40:19]Read from MH i2c: E2 0E 00 37 1E 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 19 [09:40:19]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [09:40:19]wFMCommunicate OK [09:40:19]SAM_PROTO_GetShiftState done [09:40:19]FM_GetShiftState done [09:40:19]req_shift_opened done [09:40:19]requested_item shift.open_date is exist - process it [09:40:19]req_shift_open_date [09:40:19]req_shift_open_date done [09:40:19]produce_requested_data done [09:40:19]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76794,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [09:40:19]process_action_free close_receipt [09:40:19]json_value_free [09:40:19]json_value_free done [09:40:19]process_json_proto returns [09:40:19]Send response to host [09:40:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76794,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [09:40:19]free response buf [09:40:19]execute_script done [09:40:19]execute_script returns [09:40:19]free content buf [09:40:19]Sock 9.Close socket [09:40:19]Sock 9.Thread stoped [09:40:19]Connected sock=11 [09:40:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 C5 D1 04 01 23 1C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 02 DF 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FA 2B 01 00 35 04 06 00 BA 76 84 F4 B7 3D 47 B4 2B 42 4D B0 E0 3A [09:40:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 5F 53 47 00 1D 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 34 36 35 32 10 04 04 00 FA 2B 01 00 F4 03 04 00 8A 86 24 66 B6 04 01 00 00 5B F1 01 DE 45 07 04 5A [09:40:19]CommunicateWithHost err = 0 [09:40:19]CheckOFDResponse [09:40:19]1017 (14) - 77093643461234 [09:40:19]1041 (16) - 0000000000874652 [09:40:19]1040 (4) - 76794 [09:40:19]1012 (4) - 21.04.2024 03:22 [09:40:19]1206 (1) - 0 [09:40:19]OFD Sender: Remove packet 76794 [09:40:19]ProducePacketName [09:40:19]name=ofd_packets/00076794 [09:40:19]NVStorageDeleteData [09:40:20]OFD Sender: No OFD packet to send [09:40:25]OFD Sender: No OFD packet to send [09:40:30]OFD Sender: No OFD packet to send [09:40:35]OFD Sender: No OFD packet to send [09:40:40]OFD Sender: No OFD packet to send [09:40:45]OFD Sender: No OFD packet to send [09:40:50]OFD Sender: No OFD packet to send [09:40:55]OFD Sender: No OFD packet to send [09:41:00]OFD Sender: No OFD packet to send [09:41:05]OFD Sender: No OFD packet to send [09:41:10]OFD Sender: No OFD packet to send [09:41:15]OFD Sender: No OFD packet to send [09:41:20]OFD Sender: No OFD packet to send [09:41:25]OFD Sender: No OFD packet to send [09:41:30]OFD Sender: No OFD packet to send [09:41:35]OFD Sender: No OFD packet to send [09:41:40]OFD Sender: No OFD packet to send [09:41:45]OFD Sender: No OFD packet to send [09:41:50]OFD Sender: No OFD packet to send [09:41:55]OFD Sender: No OFD packet to send [09:42:00]OFD Sender: No OFD packet to send [09:42:05]OFD Sender: No OFD packet to send [09:42:10]OFD Sender: No OFD packet to send [09:42:15]OFD Sender: No OFD packet to send [09:42:20]OFD Sender: No OFD packet to send [09:42:25]OFD Sender: No OFD packet to send [09:42:30]OFD Sender: No OFD packet to send [09:42:35]OFD Sender: No OFD packet to send [09:42:40]OFD Sender: No OFD packet to send [09:42:45]OFD Sender: No OFD packet to send [09:42:50]OFD Sender: No OFD packet to send [09:42:55]OFD Sender: No OFD packet to send [09:43:00]OFD Sender: No OFD packet to send [09:43:05]OFD Sender: No OFD packet to send [09:43:10]OFD Sender: No OFD packet to send [09:43:15]OFD Sender: No OFD packet to send [09:43:16]recv_with_timeout no data received [09:43:20]OFD Sender: No OFD packet to send [09:43:25]OFD Sender: No OFD packet to send [09:43:30]OFD Sender: No OFD packet to send [09:43:35]OFD Sender: No OFD packet to send [09:43:40]OFD Sender: No OFD packet to send [09:43:45]OFD Sender: No OFD packet to send [09:43:50]OFD Sender: No OFD packet to send [09:43:55]OFD Sender: No OFD packet to send [09:44:00]OFD Sender: No OFD packet to send [09:44:05]OFD Sender: No OFD packet to send [09:44:10]OFD Sender: No OFD packet to send [09:44:15]OFD Sender: No OFD packet to send [09:44:20]OFD Sender: No OFD packet to send [09:44:25]OFD Sender: No OFD packet to send [09:44:30]OFD Sender: No OFD packet to send [09:44:35]OFD Sender: No OFD packet to send [09:44:40]OFD Sender: No OFD packet to send [09:44:45]OFD Sender: No OFD packet to send [09:44:50]OFD Sender: No OFD packet to send [09:44:55]OFD Sender: No OFD packet to send [09:45:00]OFD Sender: No OFD packet to send [09:45:05]OFD Sender: No OFD packet to send [09:45:10]OFD Sender: No OFD packet to send [09:45:15]OFD Sender: No OFD packet to send [09:45:20]OFD Sender: No OFD packet to send [09:45:25]OFD Sender: No OFD packet to send [09:45:30]OFD Sender: No OFD packet to send [09:45:35]OFD Sender: No OFD packet to send [09:45:40]OFD Sender: No OFD packet to send [09:45:45]OFD Sender: No OFD packet to send [09:45:50]OFD Sender: No OFD packet to send [09:45:55]OFD Sender: No OFD packet to send [09:46:00]OFD Sender: No OFD packet to send [09:46:05]OFD Sender: No OFD packet to send [09:46:10]OFD Sender: No OFD packet to send [09:46:15]OFD Sender: No OFD packet to send [09:46:20]OFD Sender: No OFD packet to send [09:46:25]OFD Sender: No OFD packet to send [09:46:30]OFD Sender: No OFD packet to send [09:46:35]OFD Sender: No OFD packet to send [09:46:40]OFD Sender: No OFD packet to send [09:46:45]OFD Sender: No OFD packet to send [09:46:50]OFD Sender: No OFD packet to send [09:46:55]OFD Sender: No OFD packet to send [09:47:00]OFD Sender: No OFD packet to send [09:47:05]OFD Sender: No OFD packet to send [09:47:10]OFD Sender: No OFD packet to send [09:47:15]OFD Sender: No OFD packet to send [09:47:20]OFD Sender: No OFD packet to send [09:47:25]OFD Sender: No OFD packet to send [09:47:30]OFD Sender: No OFD packet to send [09:47:35]OFD Sender: No OFD packet to send [09:47:40]OFD Sender: No OFD packet to send [09:47:45]OFD Sender: No OFD packet to send [09:47:50]OFD Sender: No OFD packet to send [09:47:55]OFD Sender: No OFD packet to send [09:48:00]OFD Sender: No OFD packet to send [09:48:05]OFD Sender: No OFD packet to send [09:48:10]OFD Sender: No OFD packet to send [09:48:15]OFD Sender: No OFD packet to send [09:48:20]OFD Sender: No OFD packet to send [09:48:25]OFD Sender: No OFD packet to send [09:48:30]OFD Sender: No OFD packet to send [09:48:35]OFD Sender: No OFD packet to send [09:48:40]OFD Sender: No OFD packet to send [09:48:45]OFD Sender: No OFD packet to send [09:48:50]OFD Sender: No OFD packet to send [09:48:55]OFD Sender: No OFD packet to send [09:49:00]OFD Sender: No OFD packet to send [09:49:05]OFD Sender: No OFD packet to send [09:49:10]OFD Sender: No OFD packet to send [09:49:15]OFD Sender: No OFD packet to send [09:49:20]OFD Sender: No OFD packet to send [09:49:25]OFD Sender: No OFD packet to send [09:49:30]OFD Sender: No OFD packet to send [09:49:35]OFD Sender: No OFD packet to send [09:49:38]accept exits with 7 [09:49:38]New connection [09:49:38]New thread 3067338084 created [09:49:38]Thread 3067481444 joined [09:49:38]Waiting for new connection... [09:49:38] Sock 7.Parse request [09:49:38]Sock 7.Check first char [09:49:38]Sock 7.First char is OK [09:49:38]request: POST /json_proto HTTP/1.0 [09:49:38]Method: POST [09:49:38]URL: /json_proto [09:49:38]Method is POST - this is cgi request [09:49:38]url: /json_proto [09:49:38]query_string will be loaded in cgi processing [09:49:38]execute_cgi json_proto POST (null) [09:49:38]execute_cgi path=json_proto method=POST [09:49:38]POST find Content-Length [09:49:38]Host: 172.17.62.5:8080 [09:49:38]Content-Length: 682 [09:49:38]Content-Type: application/json [09:49:38] [09:49:38]POST finish read [09:49:38]Found Content-Length = 682 [09:49:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 18.640, "sum" : 1200.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:38]execute_script... [09:49: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)191327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 18.640, "sum" : 1200.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:38]POST & json_proto [09:49:38]process_json_proto [09:49:38]json parsed OK: [09:49:38]protocol is kg_v1.0 [09:49:38]action value=close_receipt [09:49:38]process_action close_receipt [09:49:38]cmd_close_receipt [09:49:38]MH_GetDate [09:49:38]Write to MH i2c: F0 00 00 38 1E 45 [09:49:38]Write i2c OK [09:49:38]MH_I2C_Read... [09:49:38]Read from MH i2c: F0 [09:49:38]MH_I2C_Read... [09:49:38]Read from MH i2c: F0 09 00 [09:49:38]MH_I2C_Read... [09:49:38]Read from MH i2c: F0 09 00 38 1E 00 35 E1 24 66 F4 E9 65 64 94 [09:49:38]GetLastDocTimeStamp 1713692418 [09:49:38]current date 1713692981 [09:49:38]FM_GetShiftState [09:49:38]SAM_PROTO_GetShiftState [09:49:38]wFMCommunicate request_size=4 [09:49:38]MH_SAM_APDU [09:49:38]CAPDU: 80 13 01 00 [09:49:38]Write to MH i2c: E2 08 00 39 1E 80 13 01 00 00 00 00 00 D4 [09:49:38]Write i2c OK [09:49:38]MH_I2C_Read... [09:49:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:38]Read from MH i2c: E2 [09:49:38]MH_I2C_Read... [09:49:38]Read from MH i2c: E2 0E 00 [09:49:38]MH_I2C_Read... [09:49:38]Read from MH i2c: E2 0E 00 39 1E 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 1B [09:49:38]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [09:49:38]wFMCommunicate OK [09:49:38]SAM_PROTO_GetShiftState done [09:49:38]FM_GetShiftState done [09:49:38]opened in 1713658965 [09:49:38]opened+sec_in_day 1713745365 [09:49:38]quantity*price = 120041 [09:49:38]sum+1 = 120043 [09:49:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.48 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 51 21.04.2024 09:49 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76795 ФПД: 258898500646831 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T094941&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76795&fm=258898500646831&tin=02508201610067®Number=0000000000091573&sum=120000 [09:49:39]StoreToDocumentArchive [09:49:39]shift 372 fd 76795 [09:49:39]save to /storage/0372/doc_00076795 [09:49:39]save last doc name /storage/0372/doc_00076795 to /storage/kkm_last_doc_name [09:49:39]save OK [09:49:39]Clear old archive folders... [09:49:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:49:39]tlvbuf is B6F42C10 [09:49:39]SAM_PROTO_ClearQueue [09:49:39]wFMCommunicate request_size=4 [09:49:39]MH_SAM_APDU [09:49:39]CAPDU: 80 09 00 00 [09:49:39]Write to MH i2c: E2 08 00 46 1E 80 09 00 00 00 00 00 00 D6 [09:49:39]Write i2c OK [09:49:39]MH_I2C_Read... [09:49:39]Read from MH i2c: E2 [09:49:39]MH_I2C_Read... [09:49:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:49:39]Read from MH i2c: E2 03 00 [09:49:39]MH_I2C_Read... [09:49:39]Read from MH i2c: E2 03 00 46 1E 00 90 00 D8 [09:49:39]RAPDU: 90 00 [09:49:39]wFMCommunicate OK [09:49:39]SAM_PROTO_ClearQueue done [09:49:39]KKMCreateOFDPacket [09:49:39]OFDProtocolAddRootSTLVToBuf [09:49:39]FM_MakeSignedData [09:49:39]FM_MakeSignedData [09:49:39]SAM_PROTO_SignData [09:49:39]wFMCommunicate request_size=4 [09:49:39]MH_SAM_APDU [09:49:39]CAPDU: 80 0D 01 02 [09:49:39]Write to MH i2c: E2 08 00 47 1E 80 0D 01 02 00 00 00 00 DE [09:49:39]Write i2c OK [09:49:39]MH_I2C_Read... [09:49:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:49:39]Read from MH i2c: E2 [09:49:39]MH_I2C_Read... [09:49:39]Read from MH i2c: E2 03 00 [09:49:39]MH_I2C_Read... [09:49:39]Read from MH i2c: E2 03 00 47 1E 00 90 00 D9 [09:49:39]RAPDU: 90 00 [09:49:39]wFMCommunicate OK [09:49:39]wFMCommunicate request_size=255 [09:49:39]MH_SAM_APDU [09:49:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 48 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 EA 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 CC 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 35 E1 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FB 2B 01 00 35 04 06 00 EB [09:49:39]Write to MH i2c: E2 02 01 48 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 48 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 EA 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 CC 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 35 E1 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FB 2B 01 00 35 04 06 00 EB 00 00 AB [09:49:39]Write i2c OK [09:49:39]MH_I2C_Read... [09:49:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:39]Read from MH i2c: E2 [09:49:39]MH_I2C_Read... [09:49:39]Read from MH i2c: E2 03 00 [09:49:39]MH_I2C_Read... [09:49:39]Read from MH i2c: E2 03 00 48 1E 00 90 00 DA [09:49:39]RAPDU: 90 00 [09:49:39]wFMCommunicate OK [09:49:39]wFMCommunicate request_size=10 [09:49:39]MH_SAM_APDU [09:49:39]CAPDU: 80 0D 02 02 05 77 81 29 F7 AF [09:49:39]Write to MH i2c: E2 0D 00 49 1E 80 0D 02 02 05 00 77 81 29 F7 AF 00 00 B2 [09:49:39]Write i2c OK [09:49:39]MH_I2C_Read... [09:49:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:39]Read from MH i2c: E2 [09:49:39]MH_I2C_Read... [09:49:39]Read from MH i2c: E2 03 00 [09:49:39]MH_I2C_Read... [09:49:39]Read from MH i2c: E2 03 00 49 1E 00 90 00 DB [09:49:39]RAPDU: 90 00 [09:49:39]wFMCommunicate OK [09:49:39]wFMCommunicate request_size=4 [09:49:39]MH_SAM_APDU [09:49:39]CAPDU: 80 0D 03 02 [09:49:39]Write to MH i2c: E2 08 00 4A 1E 80 0D 03 02 00 00 00 00 E3 [09:49:39]Write i2c OK [09:49:39]MH_I2C_Read... [09:49:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:49:39]Read from MH i2c: E2 [09:49:39]MH_I2C_Read... [09:49:39]Read from MH i2c: E2 0B 00 [09:49:39]MH_I2C_Read... [09:49:39]Read from MH i2c: E2 0B 00 4A 1E 00 E6 CF 36 5E 2A 44 62 39 90 00 36 [09:49:39]RAPDU: E6 CF 36 5E 2A 44 62 39 90 00 [09:49:39]wFMCommunicate OK [09:49:39]SAM_PROTO_SignData done [09:49:39]FM_MakeSignedData done [09:49:39]CreateOFDProtocolMessage [09:49:39]wFMCommunicate request_size=4 [09:49:39]MH_SAM_APDU [09:49:39]CAPDU: 80 11 00 00 [09:49:39]Write to MH i2c: E2 08 00 4B 1E 80 11 00 00 00 00 00 00 E3 [09:49:39]Write i2c OK [09:49:39]MH_I2C_Read... [09:49:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:39]Read from MH i2c: E2 [09:49:39]MH_I2C_Read... [09:49:39]Read from MH i2c: E2 17 00 [09:49:39]MH_I2C_Read... [09:49:39]Read from MH i2c: E2 17 00 4B 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 36 [09:49:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:49:39]wFMCommunicate OK [09:49:39]CreateOFDProtocolMessage done [09:49:39]OFDSenderStorePacket 76795 [09:49:39]StoreOFDPacket docnum=76795 [09:49:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 E1 9A 07 01 AB 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 D0 48 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 EA 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 CC 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 35 E1 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FB 2B 01 00 35 04 06 00 EB 77 81 29 F7 AF E6 CF 36 5E 2A 44 62 39 [09:49:39]CheckFolder [09:49:39]dirname=/storage/ofd_packets [09:49:39]CheckFolder done [09:49:39]ProducePacketName [09:49:39]name=ofd_packets/00076795 [09:49:39]NVStorageSaveData ofd_packets/00076795 [09:49:39]File name is /storage/ofd_packets/00076795 [09:49:39]Write 301 bytes [09:49:39]NVStorageSaveData done [09:49:39]OFDSenderStorePacket done [09:49:39]KKMCreateOFDPacket done [09:49:39]NVStorageSaveData kkm_last_timestamp [09:49:39]File name is /storage/kkm_last_timestamp [09:49:39]Write 4 bytes [09:49:39]NVStorageSaveData done [09:49:39]ExternCall_PrintAddStr [09:49:39]wPrintStart [09:49:39]Write to MH i2c: 01 00 00 4C 1E 6A [09:49:39]Write i2c OK [09:49:39]MH_I2C_Read... [09:49:39]Read from MH i2c: 01 [09:49:39]MH_I2C_Read... [09:49:39]Read from MH i2c: 01 07 00 [09:49:39]MH_I2C_Read... [09:49:39]Read from MH i2c: 01 07 00 4C 1E 00 00 00 00 00 FF 0F 7F [09:49:39]RasterBufferAndPrint [09:49:39]line Счет N : (1)191327 [09:49:39]line ИНН: 02508201610067 [09:49:39]line Контрольно-Кассовый Чек [09:49:39]line ПРОДАЖА [09:49:39]line ТРК (МРК, ГНК) : 12 [09:49:39]line Товар: 2710124130 [09:49:39]line Аи-92-К-5 [09:49:39]line 18.640 * 64.40 [09:49:39]line = 1200.42 [09:49:39]line НДС 12% НСП 1% [09:49:39]line > о реализуемом товаре [09:49:39]line ОКРУГЛЕНИЕ: -0.42 [09:49:39]line ИТОГО: 1200.00 [09:49:39]line Внесено: 1200.00 [09:49:39]line СДАЧА: 0.00 [09:49:39]line НСП 1% : 10.62 [09:49:39]line НДС 12% : 127.48 [09:49:39]line Наличными: 1200.00 [09:49:39]line Безнал.: 0.00 [09:49:39]line Место: АЗС № 106 "Партнер Нефть" [09:49:39]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [09:49:39]line СНО: Общий режим [09:49:39]line Чек 51 21.04.2024 09:49 [09:49:39]line Смена: 372 ФФД: 1.0 [09:49:39]line ЗНМ: 0300000141 [09:49:39]line РНМ: 0000000000091573 [09:49:39]line Версия ККМ: 001 [09:49:39]line ФМ: 0000000000874652 [09:49:39]line ФД: 76795 [09:49:39]line ФПД: 258898500646831 [09:49:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T094941&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76795&fm=258898500646831&tin=02508201610067®Number=0000000000091573&sum=120000 [09:49:40]OFD Sender: Processing packet 76795 [packets to send 129, broken 128] [09:49:40]ProducePacketName [09:49:40]name=ofd_packets/00076795 [09:49:40]OFD Sender: To server: pG, [09:49:40]CommunicateWithHost lk.salyk.kg:30040 [09:49:40]ConnectInit lk.salyk.kg [09:49:40]written 0, free lines is 4095 [09:49:40]Connected sock=10 [09:49:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 E1 9A 07 01 AB 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 D0 48 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 EA 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 CC 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 35 E1 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FB 2B 01 00 35 04 06 00 EB 77 81 29 F7 AF E6 CF 36 5E 2A 44 62 39 [09:49:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 EB 82 47 00 01 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 34 36 35 32 10 04 04 00 FB 2B 01 00 F4 03 04 00 BB 88 24 66 B6 04 01 00 00 88 31 EE F9 1A 71 72 15 [09:49:40]CommunicateWithHost err = 0 [09:49:40]CheckOFDResponse [09:49:40]1017 (14) - 77093643461234 [09:49:40]1041 (16) - 0000000000874652 [09:49:40]1040 (4) - 76795 [09:49:40]1012 (4) - 21.04.2024 03:32 [09:49:40]1206 (1) - 0 [09:49:40]OFD Sender: Remove packet 76795 [09:49:40]ProducePacketName [09:49:40]name=ofd_packets/00076795 [09:49:40]NVStorageDeleteData [09:49:40]Write to MH i2c: 01 00 00 76 1E 94 [09:49:40]Write i2c OK [09:49:40]MH_I2C_Read... [09:49:40]Read from MH i2c: 01 [09:49:40]MH_I2C_Read... [09:49:40]Read from MH i2c: 01 07 00 [09:49:40]MH_I2C_Read... [09:49:40]Read from MH i2c: 01 07 00 76 1E 00 00 00 00 00 F2 0C 99 [09:49:40]RasterBufferAndPrint [09:49:40]line [09:49:40]line [09:49:40]line [09:49:40]line [09:49:40]line [09:49:40]written 0, free lines is 3320 [09:49:40]MH_Cut [09:49:40]Write to MH i2c: D1 01 00 7D 1E 01 6D [09:49:40]Write i2c OK [09:49:40]MH_I2C_Read... [09:49:40]Read from MH i2c: D1 [09:49:40]MH_I2C_Read... [09:49:40]Read from MH i2c: D1 01 00 [09:49:40]MH_I2C_Read... [09:49:40]Read from MH i2c: D1 01 00 7D 1E 00 6C [09:49:40]Write to MH i2c: 01 00 00 7E 1E 9C [09:49:40]Write i2c OK [09:49:40]MH_I2C_Read... [09:49:40]OFD Sender: No OFD packet to send [09:49:41]*** Cut start [09:49:41]*** Partial cut [09:49:41]*** CUTSNS_PIN = 1 [09:49:41]*** CUTSNS_PIN = 0 [09:49:41]*** Brake cut motor [09:49:41]Read from MH i2c: 01 [09:49:41]MH_I2C_Read... [09:49:41]*** Stop cut motor [09:49:41]*** Cut end [09:49:41]Read from MH i2c: 01 07 00 [09:49:41]MH_I2C_Read... [09:49:41]Read from MH i2c: 01 07 00 7E 1E 00 00 00 00 00 FF 0F B1 [09:49:41]process_action close_receipt done [09:49:41]requested_data is exist [09:49:41]produce_requested_data [09:49:41]requested_item fm.sn is exist - process it [09:49:41]wFMCommunicate request_size=4 [09:49:41]MH_SAM_APDU [09:49:41]CAPDU: 80 11 00 00 [09:49:41]Write to MH i2c: E2 08 00 7F 1E 80 11 00 00 00 00 00 00 17 [09:49:41]Write i2c OK [09:49:41]MH_I2C_Read... [09:49:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:42]Read from MH i2c: E2 [09:49:42]MH_I2C_Read... [09:49:42]Read from MH i2c: E2 17 00 [09:49:42]MH_I2C_Read... [09:49:42]Read from MH i2c: E2 17 00 7F 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 6A [09:49:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:49:42]wFMCommunicate OK [09:49:42]requested_item fd.num is exist - process it [09:49:42]SAM_PROTO_GetFieldsCounters [09:49:42]wFMCommunicate request_size=4 [09:49:42]MH_SAM_APDU [09:49:42]CAPDU: 80 13 00 00 [09:49:42]Write to MH i2c: E2 08 00 80 1E 80 13 00 00 00 00 00 00 1A [09:49:42]Write i2c OK [09:49:42]MH_I2C_Read... [09:49:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:49:42]Read from MH i2c: E2 [09:49:42]MH_I2C_Read... [09:49:42]Read from MH i2c: E2 62 00 [09:49:42]MH_I2C_Read... [09:49:42]Read from MH i2c: E2 62 00 80 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 FB 2B 01 00 0E 04 04 00 74 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 70 [09:49: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 FB 2B 01 00 0E 04 04 00 74 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 [09:49:42]wFMCommunicate OK [09:49:42]SAM_PROTO_GetFieldsCounters done [09:49:42]requested_item shift.num is exist - process it [09:49:42]requested_item shift.opened is exist - process it [09:49:42]req_shift_opened [09:49:42]FM_GetShiftState [09:49:42]SAM_PROTO_GetShiftState [09:49:42]wFMCommunicate request_size=4 [09:49:42]MH_SAM_APDU [09:49:42]CAPDU: 80 13 01 00 [09:49:42]Write to MH i2c: E2 08 00 81 1E 80 13 01 00 00 00 00 00 1C [09:49:42]Write i2c OK [09:49:42]MH_I2C_Read... [09:49:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:42]Read from MH i2c: E2 [09:49:42]MH_I2C_Read... [09:49:42]Read from MH i2c: E2 0E 00 [09:49:42]MH_I2C_Read... [09:49:42]Read from MH i2c: E2 0E 00 81 1E 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 63 [09:49:42]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [09:49:42]wFMCommunicate OK [09:49:42]SAM_PROTO_GetShiftState done [09:49:42]FM_GetShiftState done [09:49:42]req_shift_opened done [09:49:42]requested_item shift.open_date is exist - process it [09:49:42]req_shift_open_date [09:49:42]req_shift_open_date done [09:49:42]produce_requested_data done [09:49:42]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76795,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [09:49:42]process_action_free close_receipt [09:49:42]json_value_free [09:49:42]json_value_free done [09:49:42]process_json_proto returns [09:49:42]Send response to host [09:49:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76795,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [09:49:42]free response buf [09:49:42]execute_script done [09:49:42]execute_script returns [09:49:42]free content buf [09:49:42]Sock 7.Close socket [09:49:42]Sock 7.Thread stoped [09:49:45]OFD Sender: No OFD packet to send [09:49:51]OFD Sender: No OFD packet to send [09:49:56]OFD Sender: No OFD packet to send [09:50:01]OFD Sender: No OFD packet to send [09:50:06]OFD Sender: No OFD packet to send [09:50:11]OFD Sender: No OFD packet to send [09:50:16]OFD Sender: No OFD packet to send [09:50:21]OFD Sender: No OFD packet to send [09:50:26]OFD Sender: No OFD packet to send [09:50:30]accept exits with 9 [09:50:30]New connection [09:50:30]New thread 3067481444 created [09:50:30]Thread 3067338084 joined [09:50:30]Waiting for new connection... [09:50:30] Sock 9.Parse request [09:50:30]Sock 9.Check first char [09:50:30]Sock 9.First char is OK [09:50:30]request: POST /json_proto HTTP/1.0 [09:50:30]Method: POST [09:50:30]URL: /json_proto [09:50:30]Method is POST - this is cgi request [09:50:30]url: /json_proto [09:50:30]query_string will be loaded in cgi processing [09:50:30]execute_cgi json_proto POST (null) [09:50:30]execute_cgi path=json_proto method=POST [09:50:30]POST find Content-Length [09:50:30]Host: 172.17.62.5:8080 [09:50:30]Content-Length: 811 [09:50:30]Content-Type: application/json [09:50:30] [09:50:30]POST finish read [09:50:30]Found Content-Length = 811 [09:50:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 33.640, "sum" : 1100.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1100.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:30]execute_script... [09:50: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)191326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 33.640, "sum" : 1100.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1100.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:30]POST & json_proto [09:50:30]process_json_proto [09:50:30]json parsed OK: [09:50:30]protocol is kg_v1.0 [09:50:30]action value=close_receipt [09:50:30]process_action close_receipt [09:50:30]cmd_close_receipt [09:50:30]MH_GetDate [09:50:30]Write to MH i2c: F0 00 00 82 1E 8F [09:50:30]Write i2c OK [09:50:30]MH_I2C_Read... [09:50:30]Read from MH i2c: F0 [09:50:30]MH_I2C_Read... [09:50:30]Read from MH i2c: F0 09 00 [09:50:30]MH_I2C_Read... [09:50:30]Read from MH i2c: F0 09 00 82 1E 00 6A E1 24 66 F4 E9 65 64 13 [09:50:30]GetLastDocTimeStamp 1713692981 [09:50:30]current date 1713693034 [09:50:30]FM_GetShiftState [09:50:30]SAM_PROTO_GetShiftState [09:50:30]wFMCommunicate request_size=4 [09:50:30]MH_SAM_APDU [09:50:30]CAPDU: 80 13 01 00 [09:50:30]Write to MH i2c: E2 08 00 83 1E 80 13 01 00 00 00 00 00 1E [09:50:30]Write i2c OK [09:50:30]MH_I2C_Read... [09:50:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:30]Read from MH i2c: E2 [09:50:30]MH_I2C_Read... [09:50:30]Read from MH i2c: E2 0E 00 [09:50:30]MH_I2C_Read... [09:50:30]Read from MH i2c: E2 0E 00 83 1E 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 65 [09:50:30]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [09:50:30]wFMCommunicate OK [09:50:30]SAM_PROTO_GetShiftState done [09:50:30]FM_GetShiftState done [09:50:30]opened in 1713658965 [09:50:30]opened+sec_in_day 1713745365 [09:50:30]quantity*price = 110002 [09:50:30]sum+1 = 110004 [09:50:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1100.03 НСП 1% : 9.73 НДС 12% : 116.82 Наличными: 0.00 Безнал.: 1100.03 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 52 21.04.2024 09:50 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 76796 ФПД: 75526318786720 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T095034&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76796&fm=75526318786720&tin=02508201610067®Number=0000000000091573&sum=110003 [09:50:31]StoreToDocumentArchive [09:50:31]shift 372 fd 76796 [09:50:31]save to /storage/0372/doc_00076796 [09:50:31]save last doc name /storage/0372/doc_00076796 to /storage/kkm_last_doc_name [09:50:31]save OK [09:50:31]Clear old archive folders... [09:50:32]ProcessDocumentItem done err = 0, tmpTLVsize=250 [09:50:32]tlvbuf is 01873E30 [09:50:32]SAM_PROTO_ClearQueue [09:50:32]wFMCommunicate request_size=4 [09:50:32]MH_SAM_APDU [09:50:32]CAPDU: 80 09 00 00 [09:50:32]Write to MH i2c: E2 08 00 90 1E 80 09 00 00 00 00 00 00 20 [09:50:32]Write i2c OK [09:50:32]MH_I2C_Read... [09:50:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:50:32]Read from MH i2c: E2 [09:50:32]MH_I2C_Read... [09:50:32]Read from MH i2c: E2 03 00 [09:50:32]MH_I2C_Read... [09:50:32]Read from MH i2c: E2 03 00 90 1E 00 90 00 22 [09:50:32]RAPDU: 90 00 [09:50:32]wFMCommunicate OK [09:50:32]SAM_PROTO_ClearQueue done [09:50:32]KKMCreateOFDPacket [09:50:32]OFDProtocolAddRootSTLVToBuf [09:50:32]FM_MakeSignedData [09:50:32]FM_MakeSignedData [09:50:32]SAM_PROTO_SignData [09:50:32]wFMCommunicate request_size=4 [09:50:32]MH_SAM_APDU [09:50:32]CAPDU: 80 0D 01 02 [09:50:32]Write to MH i2c: E2 08 00 91 1E 80 0D 01 02 00 00 00 00 28 [09:50:32]Write i2c OK [09:50:32]MH_I2C_Read... [09:50:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:50:32]Read from MH i2c: E2 [09:50:32]MH_I2C_Read... [09:50:32]Read from MH i2c: E2 03 00 [09:50:32]MH_I2C_Read... [09:50:32]Read from MH i2c: E2 03 00 91 1E 00 90 00 23 [09:50:32]RAPDU: 90 00 [09:50:32]wFMCommunicate OK [09:50:32]wFMCommunicate request_size=255 [09:50:32]MH_SAM_APDU [09:50:32]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 68 83 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 B3 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 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 00 00 00 00 00 00 39 04 06 00 B3 AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 6A E1 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FC 2B 01 00 35 04 06 00 44 B0 [09:50:32]Write to MH i2c: E2 02 01 92 1E 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 68 83 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 B3 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 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 00 00 00 00 00 00 39 04 06 00 B3 AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 6A E1 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FC 2B 01 00 35 04 06 00 44 B0 00 00 F2 [09:50:32]Write i2c OK [09:50:32]MH_I2C_Read... [09:50:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:32]Read from MH i2c: E2 [09:50:32]MH_I2C_Read... [09:50:32]Read from MH i2c: E2 03 00 [09:50:32]MH_I2C_Read... [09:50:32]Read from MH i2c: E2 03 00 92 1E 00 90 00 24 [09:50:32]RAPDU: 90 00 [09:50:32]wFMCommunicate OK [09:50:32]wFMCommunicate request_size=9 [09:50:32]MH_SAM_APDU [09:50:32]CAPDU: 80 0D 02 02 04 D7 67 08 A0 [09:50:32]Write to MH i2c: E2 0C 00 93 1E 80 0D 02 02 04 00 D7 67 08 A0 00 00 19 [09:50:32]Write i2c OK [09:50:32]MH_I2C_Read... [09:50:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:32]Read from MH i2c: E2 [09:50:32]MH_I2C_Read... [09:50:32]Read from MH i2c: E2 03 00 [09:50:32]MH_I2C_Read... [09:50:32]Read from MH i2c: E2 03 00 93 1E 00 90 00 25 [09:50:32]RAPDU: 90 00 [09:50:32]wFMCommunicate OK [09:50:32]wFMCommunicate request_size=4 [09:50:32]MH_SAM_APDU [09:50:32]CAPDU: 80 0D 03 02 [09:50:32]Write to MH i2c: E2 08 00 94 1E 80 0D 03 02 00 00 00 00 2D [09:50:32]Write i2c OK [09:50:32]MH_I2C_Read... [09:50:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:50:32]Read from MH i2c: E2 [09:50:32]MH_I2C_Read... [09:50:32]Read from MH i2c: E2 0B 00 [09:50:32]MH_I2C_Read... [09:50:32]Read from MH i2c: E2 0B 00 94 1E 00 A7 48 9D 3B 4F 98 CE 7E 90 00 28 [09:50:32]RAPDU: A7 48 9D 3B 4F 98 CE 7E 90 00 [09:50:32]wFMCommunicate OK [09:50:32]SAM_PROTO_SignData done [09:50:32]FM_MakeSignedData done [09:50:32]CreateOFDProtocolMessage [09:50:32]wFMCommunicate request_size=4 [09:50:32]MH_SAM_APDU [09:50:32]CAPDU: 80 11 00 00 [09:50:32]Write to MH i2c: E2 08 00 95 1E 80 11 00 00 00 00 00 00 2D [09:50:32]Write i2c OK [09:50:32]MH_I2C_Read... [09:50:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:32]Read from MH i2c: E2 [09:50:32]MH_I2C_Read... [09:50:32]Read from MH i2c: E2 17 00 [09:50:32]MH_I2C_Read... [09:50:32]Read from MH i2c: E2 17 00 95 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 80 [09:50:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:50:32]wFMCommunicate OK [09:50:32]CreateOFDProtocolMessage done [09:50:32]OFDSenderStorePacket 76796 [09:50:32]StoreOFDPacket docnum=76796 [09:50:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 3A 4F 06 01 F1 6E 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 68 83 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 B3 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 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 00 00 00 00 00 00 39 04 06 00 B3 AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 6A E1 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FC 2B 01 00 35 04 06 00 44 B0 D7 67 08 A0 A7 48 9D 3B 4F 98 CE 7E [09:50:32]CheckFolder [09:50:32]dirname=/storage/ofd_packets [09:50:32]CheckFolder done [09:50:32]ProducePacketName [09:50:32]name=ofd_packets/00076796 [09:50:32]NVStorageSaveData ofd_packets/00076796 [09:50:32]File name is /storage/ofd_packets/00076796 [09:50:32]Write 300 bytes [09:50:32]NVStorageSaveData done [09:50:32]OFDSenderStorePacket done [09:50:32]KKMCreateOFDPacket done [09:50:32]NVStorageSaveData kkm_last_timestamp [09:50:32]File name is /storage/kkm_last_timestamp [09:50:32]Write 4 bytes [09:50:32]NVStorageSaveData done [09:50:32]ExternCall_PrintAddStr [09:50:32]wPrintStart [09:50:32]Write to MH i2c: 01 00 00 96 1E B4 [09:50:32]Write i2c OK [09:50:32]MH_I2C_Read... [09:50:32]Read from MH i2c: 01 [09:50:32]MH_I2C_Read... [09:50:32]Read from MH i2c: 01 07 00 [09:50:32]MH_I2C_Read... [09:50:32]Read from MH i2c: 01 07 00 96 1E 00 00 00 00 00 FF 0F C9 [09:50:32]RasterBufferAndPrint [09:50:32]line Счет N : (1)191326 [09:50:32]line ИНН: 02508201610067 [09:50:32]line Контрольно-Кассовый Чек [09:50:32]line ПРОДАЖА [09:50:32]line ТРК (МРК, ГНК) : 71 [09:50:32]line Товар: 2711190000 [09:50:32]line ГАЗ-К-5 [09:50:32]line 33.640 * 32.70 [09:50:32]line = 1100.03 [09:50:32]line НДС 12% НСП 1% [09:50:32]line > о реализуемом товаре [09:50:32]line ИТОГО: 1100.03 [09:50:32]line НСП 1% : 9.73 [09:50:32]line НДС 12% : 116.82 [09:50:32]line Наличными: 0.00 [09:50:32]line Безнал.: 1100.03 [09:50:32]line Место: АЗС № 106 "Партнер Нефть" [09:50:32]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [09:50:32]line СНО: Общий режим [09:50:32]line Чек 52 21.04.2024 09:50 [09:50:32]line Смена: 372 ФФД: 1.0 [09:50:32]line ЗНМ: 0300000141 [09:50:32]line РНМ: 0000000000091573 [09:50:32]line Версия ККМ: 001 [09:50:32]line Платежная система: О! деньги [09:50:32]line ФМ: 0000000000874652 [09:50:32]line ФД: 76796 [09:50:32]line ФПД: 75526318786720 [09:50:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T095034&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76796&fm=75526318786720&tin=02508201610067®Number=0000000000091573&sum=110003 [09:50:32]OFD Sender: Processing packet 76796 [packets to send 129, broken 128] [09:50:32]ProducePacketName [09:50:32]name=ofd_packets/00076796 [09:50:32]OFD Sender: To server: pG, [09:50:32]CommunicateWithHost lk.salyk.kg:30040 [09:50:32]ConnectInit lk.salyk.kg [09:50:32]written 0, free lines is 4095 [09:50:33]Connected sock=10 [09:50:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 3A 4F 06 01 F1 6E 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 68 83 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 B3 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 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 00 00 00 00 00 00 39 04 06 00 B3 AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 6A E1 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FC 2B 01 00 35 04 06 00 44 B0 D7 67 08 A0 A7 48 9D 3B 4F 98 CE 7E [09:50:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 6E 2F 47 00 81 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FC 2B 01 00 F4 03 04 00 F0 88 24 66 B6 04 01 00 00 68 0E 87 01 60 83 4A E9 [09:50:33]CommunicateWithHost err = 0 [09:50:33]CheckOFDResponse [09:50:33]1017 (14) - 77093643461234 [09:50:33]1041 (16) - 0000000000874652 [09:50:33]1040 (4) - 76796 [09:50:33]1012 (4) - 21.04.2024 03:33 [09:50:33]1206 (1) - 0 [09:50:33]OFD Sender: Remove packet 76796 [09:50:33]ProducePacketName [09:50:33]name=ofd_packets/00076796 [09:50:33]NVStorageDeleteData [09:50:33]Write to MH i2c: 01 00 00 BF 1E DD [09:50:33]Write i2c OK [09:50:33]MH_I2C_Read... [09:50:33]Read from MH i2c: 01 [09:50:33]MH_I2C_Read... [09:50:33]Read from MH i2c: 01 07 00 [09:50:33]MH_I2C_Read... [09:50:33]Read from MH i2c: 01 07 00 BF 1E 00 00 00 00 00 01 0D F2 [09:50:33]RasterBufferAndPrint [09:50:33]line [09:50:33]line [09:50:33]line [09:50:33]line [09:50:33]line [09:50:33]written 0, free lines is 3336 [09:50:33]MH_Cut [09:50:33]Write to MH i2c: D1 01 00 C6 1E 01 B6 [09:50:33]Write i2c OK [09:50:33]MH_I2C_Read... [09:50:33]Read from MH i2c: D1 [09:50:33]MH_I2C_Read... [09:50:33]Read from MH i2c: D1 01 00 [09:50:33]MH_I2C_Read... [09:50:33]Read from MH i2c: D1 01 00 C6 1E 00 B5 [09:50:33]Write to MH i2c: 01 00 00 C7 1E E5 [09:50:33]Write i2c OK [09:50:33]MH_I2C_Read... [09:50:33]OFD Sender: No OFD packet to send [09:50:34]*** Cut start [09:50:34]*** Partial cut [09:50:34]*** CUTSNS_PIN = 1 [09:50:34]*** CUTSNS_PIN = 0 [09:50:34]*** Brake cut motor [09:50:34]Read from MH i2c: 01 [09:50:34]MH_I2C_Read... [09:50:34]*** Stop cut motor [09:50:34]*** Cut end [09:50:34]Read from MH i2c: 01 07 00 [09:50:34]MH_I2C_Read... [09:50:34]Read from MH i2c: 01 07 00 C7 1E 00 00 00 00 00 FF 0F FA [09:50:34]process_action close_receipt done [09:50:34]requested_data is exist [09:50:34]produce_requested_data [09:50:34]requested_item fm.sn is exist - process it [09:50:34]wFMCommunicate request_size=4 [09:50:34]MH_SAM_APDU [09:50:34]CAPDU: 80 11 00 00 [09:50:34]Write to MH i2c: E2 08 00 C8 1E 80 11 00 00 00 00 00 00 60 [09:50:34]Write i2c OK [09:50:34]MH_I2C_Read... [09:50:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:34]Read from MH i2c: E2 [09:50:34]MH_I2C_Read... [09:50:34]Read from MH i2c: E2 17 00 [09:50:34]MH_I2C_Read... [09:50:34]Read from MH i2c: E2 17 00 C8 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 B3 [09:50:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:50:34]wFMCommunicate OK [09:50:34]requested_item fd.num is exist - process it [09:50:34]SAM_PROTO_GetFieldsCounters [09:50:34]wFMCommunicate request_size=4 [09:50:34]MH_SAM_APDU [09:50:34]CAPDU: 80 13 00 00 [09:50:34]Write to MH i2c: E2 08 00 C9 1E 80 13 00 00 00 00 00 00 63 [09:50:34]Write i2c OK [09:50:34]MH_I2C_Read... [09:50:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:50:34]Read from MH i2c: E2 [09:50:34]MH_I2C_Read... [09:50:34]Read from MH i2c: E2 62 00 [09:50:34]MH_I2C_Read... [09:50:34]Read from MH i2c: E2 62 00 C9 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 FC 2B 01 00 0E 04 04 00 74 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 BD [09:50: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 FC 2B 01 00 0E 04 04 00 74 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 [09:50:34]wFMCommunicate OK [09:50:34]SAM_PROTO_GetFieldsCounters done [09:50:34]requested_item shift.num is exist - process it [09:50:34]requested_item shift.opened is exist - process it [09:50:34]req_shift_opened [09:50:34]FM_GetShiftState [09:50:34]SAM_PROTO_GetShiftState [09:50:34]wFMCommunicate request_size=4 [09:50:34]MH_SAM_APDU [09:50:34]CAPDU: 80 13 01 00 [09:50:34]Write to MH i2c: E2 08 00 CA 1E 80 13 01 00 00 00 00 00 65 [09:50:34]Write i2c OK [09:50:34]MH_I2C_Read... [09:50:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:34]Read from MH i2c: E2 [09:50:34]MH_I2C_Read... [09:50:34]Read from MH i2c: E2 0E 00 [09:50:34]MH_I2C_Read... [09:50:34]Read from MH i2c: E2 0E 00 CA 1E 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 AC [09:50:34]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [09:50:34]wFMCommunicate OK [09:50:34]SAM_PROTO_GetShiftState done [09:50:34]FM_GetShiftState done [09:50:34]req_shift_opened done [09:50:34]requested_item shift.open_date is exist - process it [09:50:34]req_shift_open_date [09:50:34]req_shift_open_date done [09:50:34]produce_requested_data done [09:50:34]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76796,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [09:50:34]process_action_free close_receipt [09:50:34]json_value_free [09:50:34]json_value_free done [09:50:34]process_json_proto returns [09:50:34]Send response to host [09:50:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76796,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [09:50:34]free response buf [09:50:34]execute_script done [09:50:34]execute_script returns [09:50:34]free content buf [09:50:34]Sock 9.Close socket [09:50:34]Sock 9.Thread stoped [09:50:38]OFD Sender: No OFD packet to send [09:50:43]OFD Sender: No OFD packet to send [09:50:48]OFD Sender: No OFD packet to send [09:50:53]OFD Sender: No OFD packet to send [09:50:58]OFD Sender: No OFD packet to send [09:51:03]OFD Sender: No OFD packet to send [09:51:08]OFD Sender: No OFD packet to send [09:51:13]OFD Sender: No OFD packet to send [09:51:18]OFD Sender: No OFD packet to send [09:51:23]OFD Sender: No OFD packet to send [09:51:28]OFD Sender: No OFD packet to send [09:51:33]OFD Sender: No OFD packet to send [09:51:38]OFD Sender: No OFD packet to send [09:51:43]OFD Sender: No OFD packet to send [09:51:48]OFD Sender: No OFD packet to send [09:51:53]OFD Sender: No OFD packet to send [09:51:58]OFD Sender: No OFD packet to send [09:52:03]OFD Sender: No OFD packet to send [09:52:08]OFD Sender: No OFD packet to send [09:52:13]OFD Sender: No OFD packet to send [09:52:18]OFD Sender: No OFD packet to send [09:52:23]OFD Sender: No OFD packet to send [09:52:28]OFD Sender: No OFD packet to send [09:52:33]OFD Sender: No OFD packet to send [09:52:38]OFD Sender: No OFD packet to send [09:52:43]OFD Sender: No OFD packet to send [09:52:48]OFD Sender: No OFD packet to send [09:52:53]OFD Sender: No OFD packet to send [09:52:58]OFD Sender: No OFD packet to send [09:53:03]OFD Sender: No OFD packet to send [09:53:08]OFD Sender: No OFD packet to send [09:53:13]OFD Sender: No OFD packet to send [09:53:18]OFD Sender: No OFD packet to send [09:53:23]OFD Sender: No OFD packet to send [09:53:28]OFD Sender: No OFD packet to send [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:59]OFD Sender: No OFD packet to send [09:54:03]accept exits with 7 [09:54:03]New connection [09:54:03]New thread 3067338084 created [09:54:03]Thread 3067481444 joined [09:54:03]Waiting for new connection... [09:54:03] Sock 7.Parse request [09:54:03]Sock 7.Check first char [09:54:03]Sock 7.First char is OK [09:54:03]request: POST /json_proto HTTP/1.0 [09:54:03]Method: POST [09:54:03]URL: /json_proto [09:54:03]Method is POST - this is cgi request [09:54:03]url: /json_proto [09:54:03]query_string will be loaded in cgi processing [09:54:03]execute_cgi json_proto POST (null) [09:54:03]execute_cgi path=json_proto method=POST [09:54:03]POST find Content-Length [09:54:03]Host: 172.17.62.5:8080 [09:54:03]Content-Length: 677 [09:54:03]Content-Type: application/json [09:54:03] [09:54:03]POST finish read [09:54:03]Found Content-Length = 677 [09:54:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 6.220, "sum" : 400.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:03]execute_script... [09:54: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)191328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 6.220, "sum" : 400.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:03]POST & json_proto [09:54:03]process_json_proto [09:54:03]json parsed OK: [09:54:03]protocol is kg_v1.0 [09:54:03]action value=close_receipt [09:54:03]process_action close_receipt [09:54:03]cmd_close_receipt [09:54:03]MH_GetDate [09:54:03]Write to MH i2c: F0 00 00 CB 1E D8 [09:54:03]Write i2c OK [09:54:03]MH_I2C_Read... [09:54:03]Read from MH i2c: F0 [09:54:03]MH_I2C_Read... [09:54:03]Read from MH i2c: F0 09 00 [09:54:03]MH_I2C_Read... [09:54:03]Read from MH i2c: F0 09 00 CB 1E 00 3F E2 24 66 F4 E9 65 64 32 [09:54:03]GetLastDocTimeStamp 1713693034 [09:54:03]current date 1713693247 [09:54:03]FM_GetShiftState [09:54:03]SAM_PROTO_GetShiftState [09:54:03]wFMCommunicate request_size=4 [09:54:03]MH_SAM_APDU [09:54:03]CAPDU: 80 13 01 00 [09:54:03]Write to MH i2c: E2 08 00 CC 1E 80 13 01 00 00 00 00 00 67 [09:54:03]Write i2c OK [09:54:03]MH_I2C_Read... [09:54:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:03]Read from MH i2c: E2 [09:54:03]MH_I2C_Read... [09:54:03]Read from MH i2c: E2 0E 00 [09:54:03]MH_I2C_Read... [09:54:03]Read from MH i2c: E2 0E 00 CC 1E 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 AE [09:54:03]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [09:54:03]wFMCommunicate OK [09:54:03]SAM_PROTO_GetShiftState done [09:54:03]FM_GetShiftState done [09:54:03]opened in 1713658965 [09:54:03]opened+sec_in_day 1713745365 [09:54:03]quantity*price = 40056 [09:54:03]sum+1 = 40058 [09:54:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 53 21.04.2024 09:54 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76797 ФПД: 18958796437112 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T095407&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76797&fm=18958796437112&tin=02508201610067®Number=0000000000091573&sum=40000 [09:54:04]StoreToDocumentArchive [09:54:04]shift 372 fd 76797 [09:54:04]save to /storage/0372/doc_00076797 [09:54:04]save last doc name /storage/0372/doc_00076797 to /storage/kkm_last_doc_name [09:54:04]save OK [09:54:04]Clear old archive folders... [09:54:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:54:04]tlvbuf is B6F423D0 [09:54:04]SAM_PROTO_ClearQueue [09:54:04]wFMCommunicate request_size=4 [09:54:04]MH_SAM_APDU [09:54:04]CAPDU: 80 09 00 00 [09:54:04]Write to MH i2c: E2 08 00 D9 1E 80 09 00 00 00 00 00 00 69 [09:54:04]Write i2c OK [09:54:04]MH_I2C_Read... [09:54:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:54:04]Read from MH i2c: E2 [09:54:04]MH_I2C_Read... [09:54:04]Read from MH i2c: E2 03 00 [09:54:04]MH_I2C_Read... [09:54:04]Read from MH i2c: E2 03 00 D9 1E 00 90 00 6B [09:54:04]RAPDU: 90 00 [09:54:04]wFMCommunicate OK [09:54:04]SAM_PROTO_ClearQueue done [09:54:04]KKMCreateOFDPacket [09:54:04]OFDProtocolAddRootSTLVToBuf [09:54:04]FM_MakeSignedData [09:54:04]FM_MakeSignedData [09:54:04]SAM_PROTO_SignData [09:54:04]wFMCommunicate request_size=4 [09:54:04]MH_SAM_APDU [09:54:04]CAPDU: 80 0D 01 02 [09:54:04]Write to MH i2c: E2 08 00 DA 1E 80 0D 01 02 00 00 00 00 71 [09:54:04]Write i2c OK [09:54:04]MH_I2C_Read... [09:54:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:54:04]Read from MH i2c: E2 [09:54:04]MH_I2C_Read... [09:54:04]Read from MH i2c: E2 03 00 [09:54:04]MH_I2C_Read... [09:54:04]Read from MH i2c: E2 03 00 DA 1E 00 90 00 6C [09:54:04]RAPDU: 90 00 [09:54:04]wFMCommunicate OK [09:54:04]wFMCommunicate request_size=255 [09:54:04]MH_SAM_APDU [09:54:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 18 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 79 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 9E 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 35 00 00 00 F4 03 04 00 3F E2 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FD 2B 01 00 35 04 06 00 11 [09:54:04]Write to MH i2c: E2 02 01 DB 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 18 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 79 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 9E 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 35 00 00 00 F4 03 04 00 3F E2 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FD 2B 01 00 35 04 06 00 11 00 00 8D [09:54:04]Write i2c OK [09:54:04]MH_I2C_Read... [09:54:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:04]Read from MH i2c: E2 [09:54:04]MH_I2C_Read... [09:54:04]Read from MH i2c: E2 03 00 [09:54:04]MH_I2C_Read... [09:54:04]Read from MH i2c: E2 03 00 DB 1E 00 90 00 6D [09:54:04]RAPDU: 90 00 [09:54:04]wFMCommunicate OK [09:54:04]wFMCommunicate request_size=10 [09:54:04]MH_SAM_APDU [09:54:04]CAPDU: 80 0D 02 02 05 3E 30 53 B6 78 [09:54:04]Write to MH i2c: E2 0D 00 DC 1E 80 0D 02 02 05 00 3E 30 53 B6 78 00 00 6D [09:54:04]Write i2c OK [09:54:04]MH_I2C_Read... [09:54:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:05]Read from MH i2c: E2 [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: E2 03 00 [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: E2 03 00 DC 1E 00 90 00 6E [09:54:05]RAPDU: 90 00 [09:54:05]wFMCommunicate OK [09:54:05]wFMCommunicate request_size=4 [09:54:05]MH_SAM_APDU [09:54:05]CAPDU: 80 0D 03 02 [09:54:05]Write to MH i2c: E2 08 00 DD 1E 80 0D 03 02 00 00 00 00 76 [09:54:05]Write i2c OK [09:54:05]MH_I2C_Read... [09:54:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:54:05]Read from MH i2c: E2 [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: E2 0B 00 [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: E2 0B 00 DD 1E 00 03 6C 65 7A F4 46 20 B6 90 00 D5 [09:54:05]RAPDU: 03 6C 65 7A F4 46 20 B6 90 00 [09:54:05]wFMCommunicate OK [09:54:05]SAM_PROTO_SignData done [09:54:05]FM_MakeSignedData done [09:54:05]CreateOFDProtocolMessage [09:54:05]wFMCommunicate request_size=4 [09:54:05]MH_SAM_APDU [09:54:05]CAPDU: 80 11 00 00 [09:54:05]Write to MH i2c: E2 08 00 DE 1E 80 11 00 00 00 00 00 00 76 [09:54:05]Write i2c OK [09:54:05]MH_I2C_Read... [09:54:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:05]Read from MH i2c: E2 [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: E2 17 00 [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: E2 17 00 DE 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 C9 [09:54:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:54:05]wFMCommunicate OK [09:54:05]CreateOFDProtocolMessage done [09:54:05]OFDSenderStorePacket 76797 [09:54:05]StoreOFDPacket docnum=76797 [09:54:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 3F 0C 07 01 40 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 18 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 79 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 9E 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 35 00 00 00 F4 03 04 00 3F E2 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FD 2B 01 00 35 04 06 00 11 3E 30 53 B6 78 03 6C 65 7A F4 46 20 B6 [09:54:05]CheckFolder [09:54:05]dirname=/storage/ofd_packets [09:54:05]CheckFolder done [09:54:05]ProducePacketName [09:54:05]name=ofd_packets/00076797 [09:54:05]NVStorageSaveData ofd_packets/00076797 [09:54:05]File name is /storage/ofd_packets/00076797 [09:54:05]Write 301 bytes [09:54:05]NVStorageSaveData done [09:54:05]OFDSenderStorePacket done [09:54:05]KKMCreateOFDPacket done [09:54:05]NVStorageSaveData kkm_last_timestamp [09:54:05]File name is /storage/kkm_last_timestamp [09:54:05]Write 4 bytes [09:54:05]NVStorageSaveData done [09:54:05]ExternCall_PrintAddStr [09:54:05]wPrintStart [09:54:05]Write to MH i2c: 01 00 00 DF 1E FD [09:54:05]Write i2c OK [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: 01 [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: 01 07 00 [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: 01 07 00 DF 1E 00 00 00 00 00 FF 0F 12 [09:54:05]RasterBufferAndPrint [09:54:05]line Счет N : (1)191328 [09:54:05]line ИНН: 02508201610067 [09:54:05]line Контрольно-Кассовый Чек [09:54:05]line ПРОДАЖА [09:54:05]line ТРК (МРК, ГНК) : 33 [09:54:05]line Товар: 2710124130 [09:54:05]line Аи-92-К-5 [09:54:05]line 6.220 * 64.40 [09:54:05]line = 400.57 [09:54:05]line НДС 12% НСП 1% [09:54:05]line > о реализуемом товаре [09:54:05]line ОКРУГЛЕНИЕ: -0.57 [09:54:05]line ИТОГО: 400.00 [09:54:05]line Внесено: 400.00 [09:54:05]line СДАЧА: 0.00 [09:54:05]line НСП 1% : 3.54 [09:54:05]line НДС 12% : 42.54 [09:54:05]line Наличными: 400.00 [09:54:05]line Безнал.: 0.00 [09:54:05]line Место: АЗС № 106 "Партнер Нефть" [09:54:05]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [09:54:05]line СНО: Общий режим [09:54:05]line Чек 53 21.04.2024 09:54 [09:54:05]line Смена: 372 ФФД: 1.0 [09:54:05]line ЗНМ: 0300000141 [09:54:05]line РНМ: 0000000000091573 [09:54:05]line Версия ККМ: 001 [09:54:05]line ФМ: 0000000000874652 [09:54:05]line ФД: 76797 [09:54:05]line ФПД: 18958796437112 [09:54:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T095407&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76797&fm=18958796437112&tin=02508201610067®Number=0000000000091573&sum=40000 [09:54:05]OFD Sender: Processing packet 76797 [packets to send 129, broken 128] [09:54:05]ProducePacketName [09:54:05]name=ofd_packets/00076797 [09:54:05]OFD Sender: To server: pG, [09:54:05]CommunicateWithHost lk.salyk.kg:30040 [09:54:05]ConnectInit lk.salyk.kg [09:54:05]written 0, free lines is 4095 [09:54:05]Connected sock=10 [09:54:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 3F 0C 07 01 40 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 18 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 79 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 9E 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 35 00 00 00 F4 03 04 00 3F E2 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FD 2B 01 00 35 04 06 00 11 3E 30 53 B6 78 03 6C 65 7A F4 46 20 B6 [09:54:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 8E BD 47 00 F0 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 34 36 35 32 10 04 04 00 FD 2B 01 00 F4 03 04 00 C4 89 24 66 B6 04 01 00 00 2A 8C E6 58 78 65 DE 85 [09:54:05]CommunicateWithHost err = 0 [09:54:05]CheckOFDResponse [09:54:05]1017 (14) - 77093643461234 [09:54:05]1041 (16) - 0000000000874652 [09:54:05]1040 (4) - 76797 [09:54:05]1012 (4) - 21.04.2024 03:36 [09:54:05]1206 (1) - 0 [09:54:05]OFD Sender: Remove packet 76797 [09:54:05]ProducePacketName [09:54:05]name=ofd_packets/00076797 [09:54:05]NVStorageDeleteData [09:54:05]Write to MH i2c: 01 00 00 09 1F 28 [09:54:05]Write i2c OK [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: 01 [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: 01 07 00 [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: 01 07 00 09 1F 00 00 00 00 00 F2 0C 2D [09:54:05]RasterBufferAndPrint [09:54:05]line [09:54:05]line [09:54:05]line [09:54:05]line [09:54:05]line [09:54:05]written 0, free lines is 3322 [09:54:05]MH_Cut [09:54:05]Write to MH i2c: D1 01 00 10 1F 01 01 [09:54:05]Write i2c OK [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: D1 [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: D1 01 00 [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: D1 01 00 10 1F 00 00 [09:54:05]Write to MH i2c: 01 00 00 11 1F 30 [09:54:05]Write i2c OK [09:54:05]MH_I2C_Read... [09:54:06]OFD Sender: No OFD packet to send [09:54:06]*** Cut start [09:54:06]*** Partial cut [09:54:06]*** CUTSNS_PIN = 1 [09:54:06]*** CUTSNS_PIN = 0 [09:54:06]*** Brake cut motor [09:54:07]Read from MH i2c: 01 [09:54:07]MH_I2C_Read... [09:54:07]*** Stop cut motor [09:54:07]*** Cut end [09:54:07]Read from MH i2c: 01 07 00 [09:54:07]MH_I2C_Read... [09:54:07]Read from MH i2c: 01 07 00 11 1F 00 00 00 00 00 FF 0F 45 [09:54:07]process_action close_receipt done [09:54:07]requested_data is exist [09:54:07]produce_requested_data [09:54:07]requested_item fm.sn is exist - process it [09:54:07]wFMCommunicate request_size=4 [09:54:07]MH_SAM_APDU [09:54:07]CAPDU: 80 11 00 00 [09:54:07]Write to MH i2c: E2 08 00 12 1F 80 11 00 00 00 00 00 00 AB [09:54:07]Write i2c OK [09:54:07]MH_I2C_Read... [09:54:07]Read from MH i2c: E2 [09:54:07]MH_I2C_Read... [09:54:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:07]Read from MH i2c: E2 17 00 [09:54:07]MH_I2C_Read... [09:54:07]Read from MH i2c: E2 17 00 12 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 FE [09:54:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:54:07]wFMCommunicate OK [09:54:07]requested_item fd.num is exist - process it [09:54:07]SAM_PROTO_GetFieldsCounters [09:54:07]wFMCommunicate request_size=4 [09:54:07]MH_SAM_APDU [09:54:07]CAPDU: 80 13 00 00 [09:54:07]Write to MH i2c: E2 08 00 13 1F 80 13 00 00 00 00 00 00 AE [09:54:07]Write i2c OK [09:54:07]MH_I2C_Read... [09:54:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:54:07]Read from MH i2c: E2 [09:54:07]MH_I2C_Read... [09:54:07]Read from MH i2c: E2 62 00 [09:54:07]MH_I2C_Read... [09:54:07]Read from MH i2c: E2 62 00 13 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 FD 2B 01 00 0E 04 04 00 74 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 0C [09:54: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 FD 2B 01 00 0E 04 04 00 74 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 [09:54:07]wFMCommunicate OK [09:54:07]SAM_PROTO_GetFieldsCounters done [09:54:07]requested_item shift.num is exist - process it [09:54:07]requested_item shift.opened is exist - process it [09:54:07]req_shift_opened [09:54:07]FM_GetShiftState [09:54:07]SAM_PROTO_GetShiftState [09:54:07]wFMCommunicate request_size=4 [09:54:07]MH_SAM_APDU [09:54:07]CAPDU: 80 13 01 00 [09:54:07]Write to MH i2c: E2 08 00 14 1F 80 13 01 00 00 00 00 00 B0 [09:54:07]Write i2c OK [09:54:07]MH_I2C_Read... [09:54:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:07]Read from MH i2c: E2 [09:54:07]MH_I2C_Read... [09:54:07]Read from MH i2c: E2 0E 00 [09:54:07]MH_I2C_Read... [09:54:07]Read from MH i2c: E2 0E 00 14 1F 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 F7 [09:54:07]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [09:54:07]wFMCommunicate OK [09:54:07]SAM_PROTO_GetShiftState done [09:54:07]FM_GetShiftState done [09:54:07]req_shift_opened done [09:54:07]requested_item shift.open_date is exist - process it [09:54:07]req_shift_open_date [09:54:07]req_shift_open_date done [09:54:07]produce_requested_data done [09:54:07]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76797,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [09:54:07]process_action_free close_receipt [09:54:07]json_value_free [09:54:07]json_value_free done [09:54:07]process_json_proto returns [09:54:07]Send response to host [09:54:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76797,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [09:54:07]free response buf [09:54:07]execute_script done [09:54:07]execute_script returns [09:54:07]free content buf [09:54:07]Sock 7.Close socket [09:54:07]Sock 7.Thread stoped [09:54:11]OFD Sender: No OFD packet to send [09:54:16]OFD Sender: No OFD packet to send [09:54:21]OFD Sender: No OFD packet to send [09:54:26]OFD Sender: No OFD packet to send [09:54:31]OFD Sender: No OFD packet to send [09:54:36]OFD Sender: No OFD packet to send [09:54:41]OFD Sender: No OFD packet to send [09:54:46]OFD Sender: No OFD packet to send [09:54:51]OFD Sender: No OFD packet to send [09:54:56]OFD Sender: No OFD packet to send [09:55:01]OFD Sender: No OFD packet to send [09:55:06]OFD Sender: No OFD packet to send [09:55:11]OFD Sender: No OFD packet to send [09:55:16]OFD Sender: No OFD packet to send [09:55:21]OFD Sender: No OFD packet to send [09:55:26]OFD Sender: No OFD packet to send [09:55:31]OFD Sender: No OFD packet to send [09:55:36]OFD Sender: No OFD packet to send [09:55:41]OFD Sender: No OFD packet to send [09:55:46]OFD Sender: No OFD packet to send [09:55:51]OFD Sender: No OFD packet to send [09:55:56]OFD Sender: No OFD packet to send [09:56:01]OFD Sender: No OFD packet to send [09:56:06]OFD Sender: No OFD packet to send [09:56:11]OFD Sender: No OFD packet to send [09:56:16]OFD Sender: No OFD packet to send [09:56:21]OFD Sender: No OFD packet to send [09:56:26]OFD Sender: No OFD packet to send [09:56:31]OFD Sender: No OFD packet to send [09:56:36]OFD Sender: No OFD packet to send [09:56:41]OFD Sender: No OFD packet to send [09:56:46]OFD Sender: No OFD packet to send [09:56:51]OFD Sender: No OFD packet to send [09:56:56]OFD Sender: No OFD packet to send [09:57:01]OFD Sender: No OFD packet to send [09:57:06]OFD Sender: No OFD packet to send [09:57:11]OFD Sender: No OFD packet to send [09:57:16]OFD Sender: No OFD packet to send [09:57:21]OFD Sender: No OFD packet to send [09:57:26]OFD Sender: No OFD packet to send [09:57:31]OFD Sender: No OFD packet to send [09:57:36]OFD Sender: No OFD packet to send [09:57:41]OFD Sender: No OFD packet to send [09:57:46]OFD Sender: No OFD packet to send [09:57:51]OFD Sender: No OFD packet to send [09:57:56]OFD Sender: No OFD packet to send [09:58:01]OFD Sender: No OFD packet to send [09:58:06]OFD Sender: No OFD packet to send [09:58:11]OFD Sender: No OFD packet to send [09:58:16]OFD Sender: No OFD packet to send [09:58:21]OFD Sender: No OFD packet to send [09:58:26]OFD Sender: No OFD packet to send [09:58:31]OFD Sender: No OFD packet to send [09:58:36]OFD Sender: No OFD packet to send [09:58:41]OFD Sender: No OFD packet to send [09:58:46]OFD Sender: No OFD packet to send [09:58:51]OFD Sender: No OFD packet to send [09:58:56]OFD Sender: No OFD packet to send [09:59:01]OFD Sender: No OFD packet to send [09:59:06]OFD Sender: No OFD packet to send [09:59:11]OFD Sender: No OFD packet to send [09:59:16]OFD Sender: No OFD packet to send [09:59:21]OFD Sender: No OFD packet to send [09:59:26]OFD Sender: No OFD packet to send [09:59:31]OFD Sender: No OFD packet to send [09:59:36]OFD Sender: No OFD packet to send [09:59:41]OFD Sender: No OFD packet to send [09:59:46]OFD Sender: No OFD packet to send [09:59:51]OFD Sender: No OFD packet to send [09:59:56]OFD Sender: No OFD packet to send [10:00:01]OFD Sender: No OFD packet to send [10:00:06]OFD Sender: No OFD packet to send [10:00:11]OFD Sender: No OFD packet to send [10:00:16]OFD Sender: No OFD packet to send [10:00:21]OFD Sender: No OFD packet to send [10:00:26]OFD Sender: No OFD packet to send [10:00:29]accept exits with 9 [10:00:29]New connection [10:00:29]New thread 3067481444 created [10:00:29]Thread 3067338084 joined [10:00:29]Waiting for new connection... [10:00:29] Sock 9.Parse request [10:00:29]Sock 9.Check first char [10:00:29]Sock 9.First char is OK [10:00:29]request: POST /json_proto HTTP/1.0 [10:00:29]Method: POST [10:00:29]URL: /json_proto [10:00:29]Method is POST - this is cgi request [10:00:29]url: /json_proto [10:00:29]query_string will be loaded in cgi processing [10:00:29]execute_cgi json_proto POST (null) [10:00:29]execute_cgi path=json_proto method=POST [10:00:29]POST find Content-Length [10:00:29]Host: 172.17.62.5:8080 [10:00:29]Content-Length: 816 [10:00:29]Content-Type: application/json [10:00:29] [10:00:29]POST finish read [10:00:29]Found Content-Length = 816 [10:00:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:29]execute_script... [10:00: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)191330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:29]POST & json_proto [10:00:29]process_json_proto [10:00:29]json parsed OK: [10:00:29]protocol is kg_v1.0 [10:00:29]action value=close_receipt [10:00:29]process_action close_receipt [10:00:29]cmd_close_receipt [10:00:29]MH_GetDate [10:00:29]Write to MH i2c: F0 00 00 15 1F 23 [10:00:29]Write i2c OK [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: F0 [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: F0 09 00 [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: F0 09 00 15 1F 00 C0 E3 24 66 F4 E9 65 64 FF [10:00:29]GetLastDocTimeStamp 1713693247 [10:00:29]current date 1713693632 [10:00:29]FM_GetShiftState [10:00:29]SAM_PROTO_GetShiftState [10:00:29]wFMCommunicate request_size=4 [10:00:29]MH_SAM_APDU [10:00:29]CAPDU: 80 13 01 00 [10:00:29]Write to MH i2c: E2 08 00 16 1F 80 13 01 00 00 00 00 00 B2 [10:00:29]Write i2c OK [10:00:29]MH_I2C_Read... [10:00:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:29]Read from MH i2c: E2 [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: E2 0E 00 [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: E2 0E 00 16 1F 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 F9 [10:00:29]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [10:00:29]wFMCommunicate OK [10:00:29]SAM_PROTO_GetShiftState done [10:00:29]FM_GetShiftState done [10:00:29]opened in 1713658965 [10:00:29]opened+sec_in_day 1713745365 [10:00:29]quantity*price = 100018 [10:00:29]sum+1 = 100020 [10:00:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.19 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.19 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 54 21.04.2024 10:00 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 76798 ФПД: 231475971121502 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T100033&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76798&fm=231475971121502&tin=02508201610067®Number=0000000000091573&sum=100019 [10:00:30]StoreToDocumentArchive [10:00:30]shift 372 fd 76798 [10:00:30]save to /storage/0372/doc_00076798 [10:00:30]save last doc name /storage/0372/doc_00076798 to /storage/kkm_last_doc_name [10:00:30]save OK [10:00:30]Clear old archive folders... [10:00:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:00:30]tlvbuf is 01915C90 [10:00:30]SAM_PROTO_ClearQueue [10:00:30]wFMCommunicate request_size=4 [10:00:30]MH_SAM_APDU [10:00:30]CAPDU: 80 09 00 00 [10:00:30]Write to MH i2c: E2 08 00 23 1F 80 09 00 00 00 00 00 00 B4 [10:00:30]Write i2c OK [10:00:30]MH_I2C_Read... [10:00:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:30]Read from MH i2c: E2 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: E2 03 00 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: E2 03 00 23 1F 00 90 00 B6 [10:00:30]RAPDU: 90 00 [10:00:30]wFMCommunicate OK [10:00:30]SAM_PROTO_ClearQueue done [10:00:30]KKMCreateOFDPacket [10:00:30]OFDProtocolAddRootSTLVToBuf [10:00:30]FM_MakeSignedData [10:00:30]FM_MakeSignedData [10:00:30]SAM_PROTO_SignData [10:00:30]wFMCommunicate request_size=4 [10:00:30]MH_SAM_APDU [10:00:30]CAPDU: 80 0D 01 02 [10:00:30]Write to MH i2c: E2 08 00 24 1F 80 0D 01 02 00 00 00 00 BC [10:00:30]Write i2c OK [10:00:30]MH_I2C_Read... [10:00:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:30]Read from MH i2c: E2 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: E2 03 00 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: E2 03 00 24 1F 00 90 00 B7 [10:00:30]RAPDU: 90 00 [10:00:30]wFMCommunicate OK [10:00:30]wFMCommunicate request_size=255 [10:00:30]MH_SAM_APDU [10:00:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 36 00 00 00 F4 03 04 00 C1 E3 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FE 2B 01 00 35 04 06 00 D2 86 B3 08 [10:00:30]Write to MH i2c: E2 02 01 25 1F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 C1 E3 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FE 2B 01 00 35 04 06 00 D2 86 B3 08 00 00 5E [10:00:30]Write i2c OK [10:00:30]MH_I2C_Read... [10:00:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:30]Read from MH i2c: E2 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: E2 03 00 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: E2 03 00 25 1F 00 90 00 B8 [10:00:30]RAPDU: 90 00 [10:00:30]wFMCommunicate OK [10:00:30]wFMCommunicate request_size=7 [10:00:30]MH_SAM_APDU [10:00:30]CAPDU: 80 0D 02 02 02 61 5E [10:00:30]Write to MH i2c: E2 0A 00 26 1F 80 0D 02 02 02 00 61 5E 00 00 82 [10:00:30]Write i2c OK [10:00:30]MH_I2C_Read... [10:00:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:30]Read from MH i2c: E2 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: E2 03 00 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: E2 03 00 26 1F 00 90 00 B9 [10:00:30]RAPDU: 90 00 [10:00:30]wFMCommunicate OK [10:00:30]wFMCommunicate request_size=4 [10:00:30]MH_SAM_APDU [10:00:30]CAPDU: 80 0D 03 02 [10:00:30]Write to MH i2c: E2 08 00 27 1F 80 0D 03 02 00 00 00 00 C1 [10:00:30]Write i2c OK [10:00:30]MH_I2C_Read... [10:00:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:30]Read from MH i2c: E2 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: E2 0B 00 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: E2 0B 00 27 1F 00 F6 FF AA FB 9E 5D 65 43 90 00 FF [10:00:30]RAPDU: F6 FF AA FB 9E 5D 65 43 90 00 [10:00:30]wFMCommunicate OK [10:00:30]SAM_PROTO_SignData done [10:00:30]FM_MakeSignedData done [10:00:30]CreateOFDProtocolMessage [10:00:30]wFMCommunicate request_size=4 [10:00:30]MH_SAM_APDU [10:00:30]CAPDU: 80 11 00 00 [10:00:30]Write to MH i2c: E2 08 00 28 1F 80 11 00 00 00 00 00 00 C1 [10:00:30]Write i2c OK [10:00:30]MH_I2C_Read... [10:00:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:30]Read from MH i2c: E2 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: E2 17 00 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: E2 17 00 28 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 14 [10:00:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:00:30]wFMCommunicate OK [10:00:30]CreateOFDProtocolMessage done [10:00:30]OFDSenderStorePacket 76798 [10:00:30]StoreOFDPacket docnum=76798 [10:00:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 FD 94 04 01 11 35 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 36 00 00 00 F4 03 04 00 C1 E3 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FE 2B 01 00 35 04 06 00 D2 86 B3 08 61 5E F6 FF AA FB 9E 5D 65 43 [10:00:30]CheckFolder [10:00:30]dirname=/storage/ofd_packets [10:00:30]CheckFolder done [10:00:30]ProducePacketName [10:00:30]name=ofd_packets/00076798 [10:00:30]NVStorageSaveData ofd_packets/00076798 [10:00:30]File name is /storage/ofd_packets/00076798 [10:00:30]Write 298 bytes [10:00:30]NVStorageSaveData done [10:00:30]OFDSenderStorePacket done [10:00:30]KKMCreateOFDPacket done [10:00:30]NVStorageSaveData kkm_last_timestamp [10:00:30]File name is /storage/kkm_last_timestamp [10:00:30]Write 4 bytes [10:00:30]NVStorageSaveData done [10:00:30]ExternCall_PrintAddStr [10:00:30]wPrintStart [10:00:30]Write to MH i2c: 01 00 00 29 1F 48 [10:00:30]Write i2c OK [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: 01 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: 01 07 00 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: 01 07 00 29 1F 00 00 00 00 00 FF 0F 5D [10:00:30]RasterBufferAndPrint [10:00:30]line Счет N : (1)191330 [10:00:30]line ИНН: 02508201610067 [10:00:30]line Контрольно-Кассовый Чек [10:00:30]line ПРОДАЖА [10:00:30]line ТРК (МРК, ГНК) : 51 [10:00:30]line Товар: 2710194210 [10:00:30]line ДТ-К-5 [10:00:30]line 13.720 * 72.90 [10:00:30]line = 1000.19 [10:00:30]line НДС 12% НСП 1% [10:00:30]line > о реализуемом товаре [10:00:30]line ИТОГО: 1000.19 [10:00:30]line НСП 1% : 8.85 [10:00:30]line НДС 12% : 106.21 [10:00:30]line Наличными: 0.00 [10:00:30]line Безнал.: 1000.19 [10:00:30]line Место: АЗС № 106 "Партнер Нефть" [10:00:30]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [10:00:30]line СНО: Общий режим [10:00:30]line Чек 54 21.04.2024 10:00 [10:00:30]line Смена: 372 ФФД: 1.0 [10:00:30]line ЗНМ: 0300000141 [10:00:30]line РНМ: 0000000000091573 [10:00:30]line Версия ККМ: 001 [10:00:30]line Платежная система: Бакай Банк [10:00:30]line ФМ: 0000000000874652 [10:00:30]line ФД: 76798 [10:00:30]line ФПД: 231475971121502 [10:00:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T100033&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76798&fm=231475971121502&tin=02508201610067®Number=0000000000091573&sum=100019 [10:00:31]OFD Sender: Processing packet 76798 [packets to send 129, broken 128] [10:00:31]ProducePacketName [10:00:31]name=ofd_packets/00076798 [10:00:31]OFD Sender: To server: pG, [10:00:31]CommunicateWithHost lk.salyk.kg:30040 [10:00:31]ConnectInit lk.salyk.kg [10:00:31]written 0, free lines is 4095 [10:00:31]Connected sock=10 [10:00:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 FD 94 04 01 11 35 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 36 00 00 00 F4 03 04 00 C1 E3 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FE 2B 01 00 35 04 06 00 D2 86 B3 08 61 5E F6 FF AA FB 9E 5D 65 43 [10:00:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 88 9C 47 00 E5 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 34 36 35 32 10 04 04 00 FE 2B 01 00 F4 03 04 00 46 8B 24 66 B6 04 01 00 00 C0 8A 8D EE D7 AA DA F5 [10:00:31]CommunicateWithHost err = 0 [10:00:31]CheckOFDResponse [10:00:31]1017 (14) - 77093643461234 [10:00:31]1041 (16) - 0000000000874652 [10:00:31]1040 (4) - 76798 [10:00:31]1012 (4) - 21.04.2024 03:43 [10:00:31]1206 (1) - 0 [10:00:31]OFD Sender: Remove packet 76798 [10:00:31]ProducePacketName [10:00:31]name=ofd_packets/00076798 [10:00:31]NVStorageDeleteData [10:00:31]Write to MH i2c: 01 00 00 52 1F 71 [10:00:31]Write i2c OK [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: 01 [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: 01 07 00 [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: 01 07 00 52 1F 00 00 00 00 00 04 0D 89 [10:00:31]RasterBufferAndPrint [10:00:31]line [10:00:31]line [10:00:31]line [10:00:31]line [10:00:31]line [10:00:31]written 0, free lines is 3339 [10:00:31]MH_Cut [10:00:31]Write to MH i2c: D1 01 00 59 1F 01 4A [10:00:31]Write i2c OK [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: D1 [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: D1 01 00 [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: D1 01 00 59 1F 00 49 [10:00:31]Write to MH i2c: 01 00 00 5A 1F 79 [10:00:31]Write i2c OK [10:00:31]MH_I2C_Read... [10:00:32]OFD Sender: No OFD packet to send [10:00:32]*** Cut start [10:00:32]*** Partial cut [10:00:32]*** CUTSNS_PIN = 1 [10:00:32]*** CUTSNS_PIN = 0 [10:00:32]*** Brake cut motor [10:00:33]Read from MH i2c: 01 [10:00:33]MH_I2C_Read... [10:00:33]*** Stop cut motor [10:00:33]*** Cut end [10:00:33]Read from MH i2c: 01 07 00 [10:00:33]MH_I2C_Read... [10:00:33]Read from MH i2c: 01 07 00 5A 1F 00 00 00 00 00 FF 0F 8E [10:00:33]process_action close_receipt done [10:00:33]requested_data is exist [10:00:33]produce_requested_data [10:00:33]requested_item fm.sn is exist - process it [10:00:33]wFMCommunicate request_size=4 [10:00:33]MH_SAM_APDU [10:00:33]CAPDU: 80 11 00 00 [10:00:33]Write to MH i2c: E2 08 00 5B 1F 80 11 00 00 00 00 00 00 F4 [10:00:33]Write i2c OK [10:00:33]MH_I2C_Read... [10:00:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:33]Read from MH i2c: E2 [10:00:33]MH_I2C_Read... [10:00:33]Read from MH i2c: E2 17 00 [10:00:33]MH_I2C_Read... [10:00:33]Read from MH i2c: E2 17 00 5B 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 47 [10:00:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:00:33]wFMCommunicate OK [10:00:33]requested_item fd.num is exist - process it [10:00:33]SAM_PROTO_GetFieldsCounters [10:00:33]wFMCommunicate request_size=4 [10:00:33]MH_SAM_APDU [10:00:33]CAPDU: 80 13 00 00 [10:00:33]Write to MH i2c: E2 08 00 5C 1F 80 13 00 00 00 00 00 00 F7 [10:00:33]Write i2c OK [10:00:33]MH_I2C_Read... [10:00:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:33]Read from MH i2c: E2 [10:00:33]MH_I2C_Read... [10:00:33]Read from MH i2c: E2 62 00 [10:00:33]MH_I2C_Read... [10:00:33]Read from MH i2c: E2 62 00 5C 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 FE 2B 01 00 0E 04 04 00 74 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 59 [10:00:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 FE 2B 01 00 0E 04 04 00 74 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:00:33]wFMCommunicate OK [10:00:33]SAM_PROTO_GetFieldsCounters done [10:00:33]requested_item shift.num is exist - process it [10:00:33]requested_item shift.opened is exist - process it [10:00:33]req_shift_opened [10:00:33]FM_GetShiftState [10:00:33]SAM_PROTO_GetShiftState [10:00:33]wFMCommunicate request_size=4 [10:00:33]MH_SAM_APDU [10:00:33]CAPDU: 80 13 01 00 [10:00:33]Write to MH i2c: E2 08 00 5D 1F 80 13 01 00 00 00 00 00 F9 [10:00:33]Write i2c OK [10:00:33]MH_I2C_Read... [10:00:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:33]Read from MH i2c: E2 [10:00:33]MH_I2C_Read... [10:00:33]Read from MH i2c: E2 0E 00 [10:00:33]MH_I2C_Read... [10:00:33]Read from MH i2c: E2 0E 00 5D 1F 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 40 [10:00:33]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [10:00:33]wFMCommunicate OK [10:00:33]SAM_PROTO_GetShiftState done [10:00:33]FM_GetShiftState done [10:00:33]req_shift_opened done [10:00:33]requested_item shift.open_date is exist - process it [10:00:33]req_shift_open_date [10:00:33]req_shift_open_date done [10:00:33]produce_requested_data done [10:00:33]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76798,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [10:00:33]process_action_free close_receipt [10:00:33]json_value_free [10:00:33]json_value_free done [10:00:33]process_json_proto returns [10:00:33]Send response to host [10:00:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76798,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [10:00:33]free response buf [10:00:33]execute_script done [10:00:33]execute_script returns [10:00:33]free content buf [10:00:33]Sock 9.Close socket [10:00:33]Sock 9.Thread stoped [10:00:37]OFD Sender: No OFD packet to send [10:00:42]OFD Sender: No OFD packet to send [10:00:47]OFD Sender: No OFD packet to send [10:00:52]OFD Sender: No OFD packet to send [10:00:57]OFD Sender: No OFD packet to send [10:01:02]OFD Sender: No OFD packet to send [10:01:02]accept exits with 7 [10:01:02]New connection [10:01:02]New thread 3067338084 created [10:01:02]Thread 3067481444 joined [10:01:02]Waiting for new connection... [10:01:02] Sock 7.Parse request [10:01:02]Sock 7.Check first char [10:01:02]Sock 7.First char is OK [10:01:02]request: POST /json_proto HTTP/1.0 [10:01:02]Method: POST [10:01:02]URL: /json_proto [10:01:02]Method is POST - this is cgi request [10:01:02]url: /json_proto [10:01:02]query_string will be loaded in cgi processing [10:01:02]execute_cgi json_proto POST (null) [10:01:02]execute_cgi path=json_proto method=POST [10:01:02]POST find Content-Length [10:01:02]Host: 172.17.62.5:8080 [10:01:02]Content-Length: 670 [10:01:02]Content-Type: application/json [10:01:02] [10:01:02]POST finish read [10:01:02]Found Content-Length = 670 [10:01:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 5.430, "sum" : 355.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 355.00, "total" : 355.00, "payments": [ { "type": 0, "sum" : 355.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:02]execute_script... [10:01: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)191331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 5.430, "sum" : 355.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 355.00, "total" : 355.00, "payments": [ { "type": 0, "sum" : 355.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:02]POST & json_proto [10:01:02]process_json_proto [10:01:02]json parsed OK: [10:01:02]protocol is kg_v1.0 [10:01:02]action value=close_receipt [10:01:02]process_action close_receipt [10:01:02]cmd_close_receipt [10:01:02]MH_GetDate [10:01:02]Write to MH i2c: F0 00 00 5E 1F 6C [10:01:02]Write i2c OK [10:01:02]MH_I2C_Read... [10:01:02]Read from MH i2c: F0 [10:01:02]MH_I2C_Read... [10:01:02]Read from MH i2c: F0 09 00 [10:01:02]MH_I2C_Read... [10:01:02]Read from MH i2c: F0 09 00 5E 1F 00 E2 E3 24 66 F4 E9 65 64 6A [10:01:02]GetLastDocTimeStamp 1713693633 [10:01:02]current date 1713693666 [10:01:02]FM_GetShiftState [10:01:02]SAM_PROTO_GetShiftState [10:01:02]wFMCommunicate request_size=4 [10:01:02]MH_SAM_APDU [10:01:02]CAPDU: 80 13 01 00 [10:01:02]Write to MH i2c: E2 08 00 5F 1F 80 13 01 00 00 00 00 00 FB [10:01:02]Write i2c OK [10:01:02]MH_I2C_Read... [10:01:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:02]Read from MH i2c: E2 [10:01:02]MH_I2C_Read... [10:01:02]Read from MH i2c: E2 0E 00 [10:01:02]MH_I2C_Read... [10:01:02]Read from MH i2c: E2 0E 00 5F 1F 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 42 [10:01:02]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [10:01:02]wFMCommunicate OK [10:01:02]SAM_PROTO_GetShiftState done [10:01:02]FM_GetShiftState done [10:01:02]opened in 1713658965 [10:01:02]opened+sec_in_day 1713745365 [10:01:02]quantity*price = 35512 [10:01:02]sum+1 = 35513 [10:01:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 355.00 Внесено: 355.00 СДАЧА: 0.00 НСП 1% : 3.14 НДС 12% : 37.71 Наличными: 355.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 55 21.04.2024 10:01 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76799 ФПД: 40018387539253 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T100106&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76799&fm=40018387539253&tin=02508201610067®Number=0000000000091573&sum=35500 [10:01:03]StoreToDocumentArchive [10:01:03]shift 372 fd 76799 [10:01:03]save to /storage/0372/doc_00076799 [10:01:03]save last doc name /storage/0372/doc_00076799 to /storage/kkm_last_doc_name [10:01:03]save OK [10:01:03]Clear old archive folders... [10:01:03]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:01:03]tlvbuf is B6F42240 [10:01:03]SAM_PROTO_ClearQueue [10:01:03]wFMCommunicate request_size=4 [10:01:03]MH_SAM_APDU [10:01:03]CAPDU: 80 09 00 00 [10:01:03]Write to MH i2c: E2 08 00 6C 1F 80 09 00 00 00 00 00 00 FD [10:01:03]Write i2c OK [10:01:03]MH_I2C_Read... [10:01:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:03]Read from MH i2c: E2 [10:01:03]MH_I2C_Read... [10:01:03]Read from MH i2c: E2 03 00 [10:01:03]MH_I2C_Read... [10:01:03]Read from MH i2c: E2 03 00 6C 1F 00 90 00 FF [10:01:03]RAPDU: 90 00 [10:01:03]wFMCommunicate OK [10:01:03]SAM_PROTO_ClearQueue done [10:01:03]KKMCreateOFDPacket [10:01:03]OFDProtocolAddRootSTLVToBuf [10:01:03]FM_MakeSignedData [10:01:03]FM_MakeSignedData [10:01:03]SAM_PROTO_SignData [10:01:03]wFMCommunicate request_size=4 [10:01:03]MH_SAM_APDU [10:01:03]CAPDU: 80 0D 01 02 [10:01:03]Write to MH i2c: E2 08 00 6D 1F 80 0D 01 02 00 00 00 00 05 [10:01:03]Write i2c OK [10:01:03]MH_I2C_Read... [10:01:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:03]Read from MH i2c: E2 [10:01:03]MH_I2C_Read... [10:01:03]Read from MH i2c: E2 03 00 [10:01:03]MH_I2C_Read... [10:01:03]Read from MH i2c: E2 03 00 6D 1F 00 90 00 00 [10:01:03]RAPDU: 90 00 [10:01:03]wFMCommunicate OK [10:01:03]wFMCommunicate request_size=255 [10:01:03]MH_SAM_APDU [10:01:03]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 15 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 B8 8A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 8A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 0E 00 00 00 00 07 04 06 00 AC 8A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 E2 E3 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FF 2B 01 00 35 04 06 00 [10:01:03]Write to MH i2c: E2 02 01 6E 1F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 15 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 B8 8A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 8A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 0E 00 00 00 00 07 04 06 00 AC 8A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 E2 E3 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FF 2B 01 00 35 04 06 00 00 00 74 [10:01:03]Write i2c OK [10:01:03]MH_I2C_Read... [10:01:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:04]Read from MH i2c: E2 [10:01:04]MH_I2C_Read... [10:01:04]Read from MH i2c: E2 03 00 [10:01:04]MH_I2C_Read... [10:01:04]Read from MH i2c: E2 03 00 6E 1F 00 90 00 01 [10:01:04]RAPDU: 90 00 [10:01:04]wFMCommunicate OK [10:01:04]wFMCommunicate request_size=11 [10:01:04]MH_SAM_APDU [10:01:04]CAPDU: 80 0D 02 02 06 24 65 81 C6 15 35 [10:01:04]Write to MH i2c: E2 0E 00 6F 1F 80 0D 02 02 06 00 24 65 81 C6 15 35 00 00 2E [10:01:04]Write i2c OK [10:01:04]MH_I2C_Read... [10:01:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:04]Read from MH i2c: E2 [10:01:04]MH_I2C_Read... [10:01:04]Read from MH i2c: E2 03 00 [10:01:04]MH_I2C_Read... [10:01:04]Read from MH i2c: E2 03 00 6F 1F 00 90 00 02 [10:01:04]RAPDU: 90 00 [10:01:04]wFMCommunicate OK [10:01:04]wFMCommunicate request_size=4 [10:01:04]MH_SAM_APDU [10:01:04]CAPDU: 80 0D 03 02 [10:01:04]Write to MH i2c: E2 08 00 70 1F 80 0D 03 02 00 00 00 00 0A [10:01:04]Write i2c OK [10:01:04]MH_I2C_Read... [10:01:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:04]Read from MH i2c: E2 [10:01:04]MH_I2C_Read... [10:01:04]Read from MH i2c: E2 0B 00 [10:01:04]MH_I2C_Read... [10:01:04]Read from MH i2c: E2 0B 00 70 1F 00 9B A5 C5 8F 67 4C 4E 23 90 00 C3 [10:01:04]RAPDU: 9B A5 C5 8F 67 4C 4E 23 90 00 [10:01:04]wFMCommunicate OK [10:01:04]SAM_PROTO_SignData done [10:01:04]FM_MakeSignedData done [10:01:04]CreateOFDProtocolMessage [10:01:04]wFMCommunicate request_size=4 [10:01:04]MH_SAM_APDU [10:01:04]CAPDU: 80 11 00 00 [10:01:04]Write to MH i2c: E2 08 00 71 1F 80 11 00 00 00 00 00 00 0A [10:01:04]Write i2c OK [10:01:04]MH_I2C_Read... [10:01:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:04]Read from MH i2c: E2 [10:01:04]MH_I2C_Read... [10:01:04]Read from MH i2c: E2 17 00 [10:01:04]MH_I2C_Read... [10:01:04]Read from MH i2c: E2 17 00 71 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 5D [10:01:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:01:04]wFMCommunicate OK [10:01:04]CreateOFDProtocolMessage done [10:01:04]OFDSenderStorePacket 76799 [10:01:04]StoreOFDPacket docnum=76799 [10:01:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 7D 4F 08 01 76 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 15 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 B8 8A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 8A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 0E 00 00 00 00 07 04 06 00 AC 8A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 E2 E3 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FF 2B 01 00 35 04 06 00 24 65 81 C6 15 35 9B A5 C5 8F 67 4C 4E 23 [10:01:04]CheckFolder [10:01:04]dirname=/storage/ofd_packets [10:01:04]CheckFolder done [10:01:04]ProducePacketName [10:01:04]name=ofd_packets/00076799 [10:01:04]NVStorageSaveData ofd_packets/00076799 [10:01:04]File name is /storage/ofd_packets/00076799 [10:01:04]Write 302 bytes [10:01:04]NVStorageSaveData done [10:01:04]OFDSenderStorePacket done [10:01:04]KKMCreateOFDPacket done [10:01:04]NVStorageSaveData kkm_last_timestamp [10:01:04]File name is /storage/kkm_last_timestamp [10:01:04]Write 4 bytes [10:01:04]NVStorageSaveData done [10:01:04]ExternCall_PrintAddStr [10:01:04]wPrintStart [10:01:04]Write to MH i2c: 01 00 00 72 1F 91 [10:01:04]Write i2c OK [10:01:04]MH_I2C_Read... [10:01:04]Read from MH i2c: 01 [10:01:04]MH_I2C_Read... [10:01:04]Read from MH i2c: 01 07 00 [10:01:04]MH_I2C_Read... [10:01:04]Read from MH i2c: 01 07 00 72 1F 00 00 00 00 00 FF 0F A6 [10:01:04]RasterBufferAndPrint [10:01:04]line Счет N : (1)191331 [10:01:04]line ИНН: 02508201610067 [10:01:04]line Контрольно-Кассовый Чек [10:01:04]line ПРОДАЖА [10:01:04]line ТРК (МРК, ГНК) : 41 [10:01:04]line Товар: 2710124130 [10:01:04]line SUPER 92-К-5 [10:01:04]line 5.430 * 65.40 [10:01:04]line = 355.12 [10:01:04]line НДС 12% НСП 1% [10:01:04]line > о реализуемом товаре [10:01:04]line ОКРУГЛЕНИЕ: -0.12 [10:01:04]line ИТОГО: 355.00 [10:01:04]line Внесено: 355.00 [10:01:04]line СДАЧА: 0.00 [10:01:04]line НСП 1% : 3.14 [10:01:04]line НДС 12% : 37.71 [10:01:04]line Наличными: 355.00 [10:01:04]line Безнал.: 0.00 [10:01:04]line Место: АЗС № 106 "Партнер Нефть" [10:01:04]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [10:01:04]line СНО: Общий режим [10:01:04]line Чек 55 21.04.2024 10:01 [10:01:04]line Смена: 372 ФФД: 1.0 [10:01:04]line ЗНМ: 0300000141 [10:01:04]line РНМ: 0000000000091573 [10:01:04]line Версия ККМ: 001 [10:01:04]line ФМ: 0000000000874652 [10:01:04]line ФД: 76799 [10:01:04]line ФПД: 40018387539253 [10:01:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T100106&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76799&fm=40018387539253&tin=02508201610067®Number=0000000000091573&sum=35500 [10:01:04]written 0, free lines is 4095 [10:01:04]OFD Sender: Processing packet 76799 [packets to send 129, broken 128] [10:01:04]ProducePacketName [10:01:04]name=ofd_packets/00076799 [10:01:04]OFD Sender: To server: pG, [10:01:04]CommunicateWithHost lk.salyk.kg:30040 [10:01:04]ConnectInit lk.salyk.kg [10:01:04]Connected sock=9 [10:01:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 7D 4F 08 01 76 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 15 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 B8 8A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 8A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 0E 00 00 00 00 07 04 06 00 AC 8A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 E2 E3 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FF 2B 01 00 35 04 06 00 24 65 81 C6 15 35 9B A5 C5 8F 67 4C 4E 23 [10:01:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 6D D9 47 00 32 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 34 36 35 32 10 04 04 00 FF 2B 01 00 F4 03 04 00 67 8B 24 66 B6 04 01 00 00 CA F2 DE C2 1A 33 07 FC [10:01:04]CommunicateWithHost err = 0 [10:01:04]CheckOFDResponse [10:01:04]1017 (14) - 77093643461234 [10:01:04]1041 (16) - 0000000000874652 [10:01:04]1040 (4) - 76799 [10:01:04]1012 (4) - 21.04.2024 03:43 [10:01:04]1206 (1) - 0 [10:01:04]OFD Sender: Remove packet 76799 [10:01:04]ProducePacketName [10:01:04]name=ofd_packets/00076799 [10:01:04]NVStorageDeleteData [10:01:04]Write to MH i2c: 01 00 00 9C 1F BB [10:01:04]Write i2c OK [10:01:04]MH_I2C_Read... [10:01:04]Read from MH i2c: 01 [10:01:04]MH_I2C_Read... [10:01:04]Read from MH i2c: 01 07 00 [10:01:04]MH_I2C_Read... [10:01:04]Read from MH i2c: 01 07 00 9C 1F 00 00 00 00 00 EC 0C BA [10:01:04]RasterBufferAndPrint [10:01:04]line [10:01:04]line [10:01:04]line [10:01:04]line [10:01:04]line [10:01:04]written 0, free lines is 3318 [10:01:04]MH_Cut [10:01:04]Write to MH i2c: D1 01 00 A3 1F 01 94 [10:01:04]Write i2c OK [10:01:04]MH_I2C_Read... [10:01:04]Read from MH i2c: D1 [10:01:04]MH_I2C_Read... [10:01:04]Read from MH i2c: D1 01 00 [10:01:04]MH_I2C_Read... [10:01:04]Read from MH i2c: D1 01 00 A3 1F 00 93 [10:01:04]Write to MH i2c: 01 00 00 A4 1F C3 [10:01:04]Write i2c OK [10:01:04]MH_I2C_Read... [10:01:05]OFD Sender: No OFD packet to send [10:01:05]*** Cut start [10:01:05]*** Partial cut [10:01:05]*** CUTSNS_PIN = 1 [10:01:05]*** CUTSNS_PIN = 0 [10:01:05]*** Brake cut motor [10:01:06]Read from MH i2c: 01 [10:01:06]MH_I2C_Read... [10:01:06]*** Stop cut motor [10:01:06]*** Cut end [10:01:06]Read from MH i2c: 01 07 00 [10:01:06]MH_I2C_Read... [10:01:06]Read from MH i2c: 01 07 00 A4 1F 00 00 00 00 00 FF 0F D8 [10:01:06]process_action close_receipt done [10:01:06]requested_data is exist [10:01:06]produce_requested_data [10:01:06]requested_item fm.sn is exist - process it [10:01:06]wFMCommunicate request_size=4 [10:01:06]MH_SAM_APDU [10:01:06]CAPDU: 80 11 00 00 [10:01:06]Write to MH i2c: E2 08 00 A5 1F 80 11 00 00 00 00 00 00 3E [10:01:06]Write i2c OK [10:01:06]MH_I2C_Read... [10:01:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:06]Read from MH i2c: E2 [10:01:06]MH_I2C_Read... [10:01:06]Read from MH i2c: E2 17 00 [10:01:06]MH_I2C_Read... [10:01:06]Read from MH i2c: E2 17 00 A5 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 91 [10:01:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:01:06]wFMCommunicate OK [10:01:06]requested_item fd.num is exist - process it [10:01:06]SAM_PROTO_GetFieldsCounters [10:01:06]wFMCommunicate request_size=4 [10:01:06]MH_SAM_APDU [10:01:06]CAPDU: 80 13 00 00 [10:01:06]Write to MH i2c: E2 08 00 A6 1F 80 13 00 00 00 00 00 00 41 [10:01:06]Write i2c OK [10:01:06]MH_I2C_Read... [10:01:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:06]Read from MH i2c: E2 [10:01:06]MH_I2C_Read... [10:01:06]Read from MH i2c: E2 62 00 [10:01:06]MH_I2C_Read... [10:01:06]Read from MH i2c: E2 62 00 A6 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 FF 2B 01 00 0E 04 04 00 74 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 A7 [10:01: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 FF 2B 01 00 0E 04 04 00 74 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:01:06]wFMCommunicate OK [10:01:06]SAM_PROTO_GetFieldsCounters done [10:01:06]requested_item shift.num is exist - process it [10:01:06]requested_item shift.opened is exist - process it [10:01:06]req_shift_opened [10:01:06]FM_GetShiftState [10:01:06]SAM_PROTO_GetShiftState [10:01:06]wFMCommunicate request_size=4 [10:01:06]MH_SAM_APDU [10:01:06]CAPDU: 80 13 01 00 [10:01:06]Write to MH i2c: E2 08 00 A7 1F 80 13 01 00 00 00 00 00 43 [10:01:06]Write i2c OK [10:01:06]MH_I2C_Read... [10:01:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:06]Read from MH i2c: E2 [10:01:06]MH_I2C_Read... [10:01:06]Read from MH i2c: E2 0E 00 [10:01:06]MH_I2C_Read... [10:01:06]Read from MH i2c: E2 0E 00 A7 1F 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 8A [10:01:06]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [10:01:06]wFMCommunicate OK [10:01:06]SAM_PROTO_GetShiftState done [10:01:06]FM_GetShiftState done [10:01:06]req_shift_opened done [10:01:06]requested_item shift.open_date is exist - process it [10:01:06]req_shift_open_date [10:01:06]req_shift_open_date done [10:01:06]produce_requested_data done [10:01:06]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76799,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [10:01:06]process_action_free close_receipt [10:01:06]json_value_free [10:01:06]json_value_free done [10:01:06]process_json_proto returns [10:01:06]Send response to host [10:01:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76799,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [10:01:06]free response buf [10:01:06]execute_script done [10:01:06]execute_script returns [10:01:06]free content buf [10:01:06]Sock 7.Close socket [10:01:06]Sock 7.Thread stoped [10:01:10]OFD Sender: No OFD packet to send [10:01:15]OFD Sender: No OFD packet to send [10:01:20]OFD Sender: No OFD packet to send [10:01:25]OFD Sender: No OFD packet to send [10:01:30]OFD Sender: No OFD packet to send [10:01:35]OFD Sender: No OFD packet to send [10:01:40]OFD Sender: No OFD packet to send [10:01:45]OFD Sender: No OFD packet to send [10:01:50]OFD Sender: No OFD packet to send [10:01:55]OFD Sender: No OFD packet to send [10:02:00]OFD Sender: No OFD packet to send [10:02:05]OFD Sender: No OFD packet to send [10:02:10]OFD Sender: No OFD packet to send [10:02:15]OFD Sender: No OFD packet to send [10:02:20]OFD Sender: No OFD packet to send [10:02:25]OFD Sender: No OFD packet to send [10:02:30]OFD Sender: No OFD packet to send [10:02:35]OFD Sender: No OFD packet to send [10:02:40]OFD Sender: No OFD packet to send [10:02:45]OFD Sender: No OFD packet to send [10:02:50]OFD Sender: No OFD packet to send [10:02:55]OFD Sender: No OFD packet to send [10:03:00]OFD Sender: No OFD packet to send [10:03:05]OFD Sender: No OFD packet to send [10:03:10]OFD Sender: No OFD packet to send [10:03:15]OFD Sender: No OFD packet to send [10:03:20]OFD Sender: No OFD packet to send [10:03:25]OFD Sender: No OFD packet to send [10:03:30]OFD Sender: No OFD packet to send [10:03:35]OFD Sender: No OFD packet to send [10:03:40]OFD Sender: No OFD packet to send [10:03:45]OFD Sender: No OFD packet to send [10:03:50]OFD Sender: No OFD packet to send [10:03:55]OFD Sender: No OFD packet to send [10:04:00]OFD Sender: No OFD packet to send [10:04:05]OFD Sender: No OFD packet to send [10:04:10]OFD Sender: No OFD packet to send [10:04:15]OFD Sender: No OFD packet to send [10:04:20]OFD Sender: No OFD packet to send [10:04:22]accept exits with 10 [10:04:22]New connection [10:04:22]New thread 3067481444 created [10:04:22]Thread 3067338084 joined [10:04:22]Waiting for new connection... [10:04:22] Sock 10.Parse request [10:04:22]Sock 10.Check first char [10:04:22]Sock 10.First char is OK [10:04:22]request: POST /json_proto HTTP/1.0 [10:04:22]Method: POST [10:04:22]URL: /json_proto [10:04:22]Method is POST - this is cgi request [10:04:22]url: /json_proto [10:04:22]query_string will be loaded in cgi processing [10:04:22]execute_cgi json_proto POST (null) [10:04:22]execute_cgi path=json_proto method=POST [10:04:22]POST find Content-Length [10:04:22]Host: 172.17.62.5:8080 [10:04:22]Content-Length: 990 [10:04:22]Content-Type: application/json [10:04:22] [10:04:22]POST finish read [10:04:22]Found Content-Length = 990 [10:04:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 33.130, "sum" : 1050.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 33.13 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 1050.00, "payments": [ { "type": 0, "sum" : 1050.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:22]execute_script... [10:04: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)191329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 33.130, "sum" : 1050.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 33.13 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 1050.00, "payments": [ { "type": 0, "sum" : 1050.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:22]POST & json_proto [10:04:22]process_json_proto [10:04:22]json parsed OK: [10:04:22]protocol is kg_v1.0 [10:04:22]action value=close_receipt [10:04:22]process_action close_receipt [10:04:22]cmd_close_receipt [10:04:22]MH_GetDate [10:04:22]Write to MH i2c: F0 00 00 A8 1F B6 [10:04:22]Write i2c OK [10:04:22]MH_I2C_Read... [10:04:22]Read from MH i2c: F0 [10:04:22]MH_I2C_Read... [10:04:22]Read from MH i2c: F0 09 00 [10:04:22]MH_I2C_Read... [10:04:22]Read from MH i2c: F0 09 00 A8 1F 00 AA E4 24 66 F4 E9 65 64 7D [10:04:22]GetLastDocTimeStamp 1713693666 [10:04:22]current date 1713693866 [10:04:22]FM_GetShiftState [10:04:22]SAM_PROTO_GetShiftState [10:04:22]wFMCommunicate request_size=4 [10:04:22]MH_SAM_APDU [10:04:22]CAPDU: 80 13 01 00 [10:04:22]Write to MH i2c: E2 08 00 A9 1F 80 13 01 00 00 00 00 00 45 [10:04:22]Write i2c OK [10:04:22]MH_I2C_Read... [10:04:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:23]Read from MH i2c: E2 [10:04:23]MH_I2C_Read... [10:04:23]Read from MH i2c: E2 0E 00 [10:04:23]MH_I2C_Read... [10:04:23]Read from MH i2c: E2 0E 00 A9 1F 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 8C [10:04:23]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [10:04:23]wFMCommunicate OK [10:04:23]SAM_PROTO_GetShiftState done [10:04:23]FM_GetShiftState done [10:04:23]opened in 1713658965 [10:04:23]opened+sec_in_day 1713745365 [10:04:23]quantity*price = 105022 [10:04:23]sum+1 = 105023 [10:04:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1050.00 Внесено: 2000.00 СДАЧА: 950.00 НСП 1% : 9.29 НДС 12% : 111.53 Наличными: 1050.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 56 21.04.2024 10:04 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 33.13 сом ФМ: 0000000000874652 ФД: 76800 ФПД: 267749674252865 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T100426&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76800&fm=267749674252865&tin=02508201610067®Number=0000000000091573&sum=105000 [10:04:24]StoreToDocumentArchive [10:04:24]shift 372 fd 76800 [10:04:24]save to /storage/0372/doc_00076800 [10:04:24]save last doc name /storage/0372/doc_00076800 to /storage/kkm_last_doc_name [10:04:24]save OK [10:04:24]Clear old archive folders... [10:04:24]ProcessDocumentItem done err = 0, tmpTLVsize=250 [10:04:24]tlvbuf is B6F42490 [10:04:24]SAM_PROTO_ClearQueue [10:04:24]wFMCommunicate request_size=4 [10:04:24]MH_SAM_APDU [10:04:24]CAPDU: 80 09 00 00 [10:04:24]Write to MH i2c: E2 08 00 B6 1F 80 09 00 00 00 00 00 00 47 [10:04:24]Write i2c OK [10:04:24]MH_I2C_Read... [10:04:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:24]Read from MH i2c: E2 [10:04:24]MH_I2C_Read... [10:04:24]Read from MH i2c: E2 03 00 [10:04:24]MH_I2C_Read... [10:04:24]Read from MH i2c: E2 03 00 B6 1F 00 90 00 49 [10:04:24]RAPDU: 90 00 [10:04:24]wFMCommunicate OK [10:04:24]SAM_PROTO_ClearQueue done [10:04:24]KKMCreateOFDPacket [10:04:24]OFDProtocolAddRootSTLVToBuf [10:04:24]FM_MakeSignedData [10:04:24]FM_MakeSignedData [10:04:24]SAM_PROTO_SignData [10:04:24]wFMCommunicate request_size=4 [10:04:24]MH_SAM_APDU [10:04:24]CAPDU: 80 0D 01 02 [10:04:24]Write to MH i2c: E2 08 00 B7 1F 80 0D 01 02 00 00 00 00 4F [10:04:24]Write i2c OK [10:04:24]MH_I2C_Read... [10:04:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:24]Read from MH i2c: E2 [10:04:24]MH_I2C_Read... [10:04:24]Read from MH i2c: E2 03 00 [10:04:24]MH_I2C_Read... [10:04:24]Read from MH i2c: E2 03 00 B7 1F 00 90 00 4A [10:04:24]RAPDU: 90 00 [10:04:24]wFMCommunicate OK [10:04:24]wFMCommunicate request_size=255 [10:04:24]MH_SAM_APDU [10:04:24]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 6A 81 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 3E 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 2B 00 00 00 00 07 04 06 00 28 9A 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 AA E4 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 00 2C 01 00 35 04 06 00 F3 84 [10:04:24]Write to MH i2c: E2 02 01 B8 1F 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 6A 81 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 3E 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 2B 00 00 00 00 07 04 06 00 28 9A 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 AA E4 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 00 2C 01 00 35 04 06 00 F3 84 00 00 81 [10:04:24]Write i2c OK [10:04:24]MH_I2C_Read... [10:04:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:24]Read from MH i2c: E2 [10:04:24]MH_I2C_Read... [10:04:24]Read from MH i2c: E2 03 00 [10:04:24]MH_I2C_Read... [10:04:24]Read from MH i2c: E2 03 00 B8 1F 00 90 00 4B [10:04:24]RAPDU: 90 00 [10:04:24]wFMCommunicate OK [10:04:24]wFMCommunicate request_size=9 [10:04:24]MH_SAM_APDU [10:04:24]CAPDU: 80 0D 02 02 04 54 38 FA 41 [10:04:24]Write to MH i2c: E2 0C 00 B9 1F 80 0D 02 02 04 00 54 38 FA 41 00 00 21 [10:04:24]Write i2c OK [10:04:24]MH_I2C_Read... [10:04:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:24]Read from MH i2c: E2 [10:04:24]MH_I2C_Read... [10:04:24]Read from MH i2c: E2 03 00 [10:04:24]MH_I2C_Read... [10:04:24]Read from MH i2c: E2 03 00 B9 1F 00 90 00 4C [10:04:24]RAPDU: 90 00 [10:04:24]wFMCommunicate OK [10:04:24]wFMCommunicate request_size=4 [10:04:24]MH_SAM_APDU [10:04:24]CAPDU: 80 0D 03 02 [10:04:24]Write to MH i2c: E2 08 00 BA 1F 80 0D 03 02 00 00 00 00 54 [10:04:24]Write i2c OK [10:04:24]MH_I2C_Read... [10:04:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:24]Read from MH i2c: E2 [10:04:24]MH_I2C_Read... [10:04:24]Read from MH i2c: E2 0B 00 [10:04:24]MH_I2C_Read... [10:04:24]Read from MH i2c: E2 0B 00 BA 1F 00 18 FC 8F 1B 54 79 06 DD 90 00 C3 [10:04:24]RAPDU: 18 FC 8F 1B 54 79 06 DD 90 00 [10:04:24]wFMCommunicate OK [10:04:24]SAM_PROTO_SignData done [10:04:24]FM_MakeSignedData done [10:04:24]CreateOFDProtocolMessage [10:04:24]wFMCommunicate request_size=4 [10:04:24]MH_SAM_APDU [10:04:24]CAPDU: 80 11 00 00 [10:04:24]Write to MH i2c: E2 08 00 BB 1F 80 11 00 00 00 00 00 00 54 [10:04:24]Write i2c OK [10:04:24]MH_I2C_Read... [10:04:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:24]Read from MH i2c: E2 [10:04:24]MH_I2C_Read... [10:04:24]Read from MH i2c: E2 17 00 [10:04:24]MH_I2C_Read... [10:04:24]Read from MH i2c: E2 17 00 BB 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 A7 [10:04:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:04:24]wFMCommunicate OK [10:04:24]CreateOFDProtocolMessage done [10:04:24]OFDSenderStorePacket 76800 [10:04:24]StoreOFDPacket docnum=76800 [10:04:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 AC 34 06 01 F2 B1 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 6A 81 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 3E 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 2B 00 00 00 00 07 04 06 00 28 9A 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 AA E4 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 00 2C 01 00 35 04 06 00 F3 84 54 38 FA 41 18 FC 8F 1B 54 79 06 DD [10:04:24]CheckFolder [10:04:24]dirname=/storage/ofd_packets [10:04:24]CheckFolder done [10:04:24]ProducePacketName [10:04:24]name=ofd_packets/00076800 [10:04:24]NVStorageSaveData ofd_packets/00076800 [10:04:24]File name is /storage/ofd_packets/00076800 [10:04:24]Write 300 bytes [10:04:24]NVStorageSaveData done [10:04:24]OFDSenderStorePacket done [10:04:24]KKMCreateOFDPacket done [10:04:24]NVStorageSaveData kkm_last_timestamp [10:04:24]File name is /storage/kkm_last_timestamp [10:04:24]Write 4 bytes [10:04:24]NVStorageSaveData done [10:04:24]ExternCall_PrintAddStr [10:04:24]wPrintStart [10:04:24]Write to MH i2c: 01 00 00 BC 1F DB [10:04:24]Write i2c OK [10:04:24]MH_I2C_Read... [10:04:24]Read from MH i2c: 01 [10:04:24]MH_I2C_Read... [10:04:24]Read from MH i2c: 01 07 00 [10:04:24]MH_I2C_Read... [10:04:24]Read from MH i2c: 01 07 00 BC 1F 00 00 00 00 00 FF 0F F0 [10:04:24]RasterBufferAndPrint [10:04:24]line Счет N : (1)191329 [10:04:24]line ИНН: 02508201610067 [10:04:24]line Контрольно-Кассовый Чек [10:04:24]line ПРОДАЖА [10:04:24]line ТРК (МРК, ГНК) : 71 [10:04:24]line Товар: 2711190000 [10:04:24]line ГАЗ-К-5 [10:04:24]line 33.130 * 31.70 [10:04:24]line = 1050.22 [10:04:24]line НДС 12% НСП 1% [10:04:24]line > о реализуемом товаре [10:04:24]line ОКРУГЛЕНИЕ: -0.22 [10:04:24]line ИТОГО: 1050.00 [10:04:24]line Внесено: 2000.00 [10:04:24]line СДАЧА: 950.00 [10:04:24]line НСП 1% : 9.29 [10:04:24]line НДС 12% : 111.53 [10:04:24]line Наличными: 1050.00 [10:04:24]line Безнал.: 0.00 [10:04:24]line Место: АЗС № 106 "Партнер Нефть" [10:04:24]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [10:04:24]line СНО: Общий режим [10:04:24]line Чек 56 21.04.2024 10:04 [10:04:24]line Смена: 372 ФФД: 1.0 [10:04:24]line ЗНМ: 0300000141 [10:04:24]line РНМ: 0000000000091573 [10:04:24]line Версия ККМ: 001 [10:04:24]line [10:04:24]line Дисконтная программа [10:04:24]line СУГ [10:04:24]line номер 106 [10:04:24]line сэкономлено 33.13 сом [10:04:24]line ФМ: 0000000000874652 [10:04:24]line ФД: 76800 [10:04:24]line ФПД: 267749674252865 [10:04:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T100426&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76800&fm=267749674252865&tin=02508201610067®Number=0000000000091573&sum=105000 [10:04:25]OFD Sender: Processing packet 76800 [packets to send 129, broken 128] [10:04:25]ProducePacketName [10:04:25]name=ofd_packets/00076800 [10:04:25]OFD Sender: To server: pG, [10:04:25]CommunicateWithHost lk.salyk.kg:30040 [10:04:25]ConnectInit lk.salyk.kg [10:04:25]written 0, free lines is 4095 [10:04:25]Connected sock=9 [10:04:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 AC 34 06 01 F2 B1 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 6A 81 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 3E 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 2B 00 00 00 00 07 04 06 00 28 9A 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 AA E4 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 00 2C 01 00 35 04 06 00 F3 84 54 38 FA 41 18 FC 8F 1B 54 79 06 DD [10:04:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 A4 91 47 00 D3 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 00 2C 01 00 F4 03 04 00 30 8C 24 66 B6 04 01 00 00 2C 50 3E 8C B9 C6 10 35 [10:04:25]CommunicateWithHost err = 0 [10:04:25]CheckOFDResponse [10:04:25]1017 (14) - 77093643461234 [10:04:25]1041 (16) - 0000000000874652 [10:04:25]1040 (4) - 76800 [10:04:25]1012 (4) - 21.04.2024 03:46 [10:04:25]1206 (1) - 0 [10:04:25]OFD Sender: Remove packet 76800 [10:04:25]ProducePacketName [10:04:25]name=ofd_packets/00076800 [10:04:25]NVStorageDeleteData [10:04:25]Write to MH i2c: 01 00 00 EB 1F 0A [10:04:25]Write i2c OK [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: 01 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: 01 07 00 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: 01 07 00 EB 1F 00 00 00 00 00 A0 0C BD [10:04:25]RasterBufferAndPrint [10:04:25]line [10:04:25]line [10:04:25]line [10:04:25]line [10:04:25]line [10:04:25]written 0, free lines is 3239 [10:04:25]MH_Cut [10:04:25]Write to MH i2c: D1 01 00 F2 1F 01 E3 [10:04:25]Write i2c OK [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: D1 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: D1 01 00 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: D1 01 00 F2 1F 00 E2 [10:04:25]Write to MH i2c: 01 00 00 F3 1F 12 [10:04:25]Write i2c OK [10:04:25]MH_I2C_Read... [10:04:25]int [10:04:25]*** FLAG_PRN_PAP1 set [10:04:25]*** FLAG_PRN_PAP1 reset [10:04:25]*** Cut start [10:04:25]*** Partial cut [10:04:25]*** CUTSNS_PIN = 1 [10:04:25]*** CUTSNS_PIN = 0 [10:04:25]OFD Sender: No OFD packet to send [10:04:25]*** Brake cut motor [10:04:26]Read from MH i2c: 01 [10:04:26]MH_I2C_Read... [10:04:26]*** Stop cut motor [10:04:26]Read from MH i2c: 01 *** Cut end [10:04:26]07 00 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: 01 07 00 F3 1F 00 00 00 00 00 FF 0F 27 [10:04:26]process_action close_receipt done [10:04:26]requested_data is exist [10:04:26]produce_requested_data [10:04:26]requested_item fm.sn is exist - process it [10:04:26]wFMCommunicate request_size=4 [10:04:26]MH_SAM_APDU [10:04:26]CAPDU: 80 11 00 00 [10:04:26]Write to MH i2c: E2 08 00 F4 1F 80 11 00 00 00 00 00 00 8D [10:04:26]Write i2c OK [10:04:26]MH_I2C_Read... [10:04:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:26]Read from MH i2c: E2 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 17 00 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 17 00 F4 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 E0 [10:04:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:04:26]wFMCommunicate OK [10:04:26]requested_item fd.num is exist - process it [10:04:26]SAM_PROTO_GetFieldsCounters [10:04:26]wFMCommunicate request_size=4 [10:04:26]MH_SAM_APDU [10:04:26]CAPDU: 80 13 00 00 [10:04:26]Write to MH i2c: E2 08 00 F5 1F 80 13 00 00 00 00 00 00 90 [10:04:26]Write i2c OK [10:04:26]MH_I2C_Read... [10:04:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:26]Read from MH i2c: E2 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 62 00 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 62 00 F5 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 00 2C 01 00 0E 04 04 00 74 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 FB [10: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 00 2C 01 00 0E 04 04 00 74 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:04:26]wFMCommunicate OK [10:04:26]SAM_PROTO_GetFieldsCounters done [10:04:26]requested_item shift.num is exist - process it [10:04:26]requested_item shift.opened is exist - process it [10:04:26]req_shift_opened [10:04:26]FM_GetShiftState [10:04:26]SAM_PROTO_GetShiftState [10:04:26]wFMCommunicate request_size=4 [10:04:26]MH_SAM_APDU [10:04:26]CAPDU: 80 13 01 00 [10:04:26]Write to MH i2c: 01 00 00 F6 1F 15 [10:04:26]Write i2c OK [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: 01 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: 01 07 00 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: 01 07 00 F6 1F 00 00 00 00 00 FF 0F 2A [10:04:26]state=0 [10:04:26]Write to MH i2c: E2 08 00 F7 1F 80 13 01 00 00 00 00 00 93 [10:04:26]Write i2c OK [10:04:26]MH_I2C_Read... [10:04:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:26]Read from MH i2c: E2 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 0E 00 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 0E 00 F7 1F 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 DA [10:04:26]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [10:04:26]wFMCommunicate OK [10:04:26]SAM_PROTO_GetShiftState done [10:04:26]FM_GetShiftState done [10:04:26]req_shift_opened done [10:04:26]requested_item shift.open_date is exist - process it [10:04:26]req_shift_open_date [10:04:26]req_shift_open_date done [10:04:26]produce_requested_data done [10:04:26]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76800,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [10:04:26]process_action_free close_receipt [10:04:26]json_value_free [10:04:26]json_value_free done [10:04:26]process_json_proto returns [10:04:26]Send response to host [10:04:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76800,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [10:04:26]free response buf [10:04:26]execute_script done [10:04:26]execute_script returns [10:04:26]free content buf [10:04:26]Sock 10.Close socket [10:04:26]Sock 10.Thread stoped [10:04:30]OFD Sender: No OFD packet to send [10:04:35]OFD Sender: No OFD packet to send [10:04:40]OFD Sender: No OFD packet to send [10:04:45]OFD Sender: No OFD packet to send [10:04:50]OFD Sender: No OFD packet to send [10:04:55]OFD Sender: No OFD packet to send [10:05:00]OFD Sender: No OFD packet to send [10:05:05]OFD Sender: No OFD packet to send [10:05:10]OFD Sender: No OFD packet to send [10:05:15]OFD Sender: No OFD packet to send [10:05:20]OFD Sender: No OFD packet to send [10:05:25]OFD Sender: No OFD packet to send [10:05:30]OFD Sender: No OFD packet to send [10:05:35]OFD Sender: No OFD packet to send [10:05:40]OFD Sender: No OFD packet to send [10:05:45]OFD Sender: No OFD packet to send [10:05:50]OFD Sender: No OFD packet to send [10:05:55]OFD Sender: No OFD packet to send [10:06:00]OFD Sender: No OFD packet to send [10:06:05]OFD Sender: No OFD packet to send [10:06:10]OFD Sender: No OFD packet to send [10:06:15]OFD Sender: No OFD packet to send [10:06:20]OFD Sender: No OFD packet to send [10:06:25]OFD Sender: No OFD packet to send [10:06:30]OFD Sender: No OFD packet to send [10:06:35]OFD Sender: No OFD packet to send [10:06:40]OFD Sender: No OFD packet to send [10:06:46]OFD Sender: No OFD packet to send [10:06:51]OFD Sender: No OFD packet to send [10:06:56]OFD Sender: No OFD packet to send [10:07:01]OFD Sender: No OFD packet to send [10:07:06]OFD Sender: No OFD packet to send [10:07:11]OFD Sender: No OFD packet to send [10:07:16]OFD Sender: No OFD packet to send [10:07:21]OFD Sender: No OFD packet to send [10:07:26]OFD Sender: No OFD packet to send [10:07:31]OFD Sender: No OFD packet to send [10:07:36]OFD Sender: No OFD packet to send [10:07:41]OFD Sender: No OFD packet to send [10:07:46]OFD Sender: No OFD packet to send [10:07:51]OFD Sender: No OFD packet to send [10:07:56]OFD Sender: No OFD packet to send [10:08:01]OFD Sender: No OFD packet to send [10:08:06]OFD Sender: No OFD packet to send [10:08:11]OFD Sender: No OFD packet to send [10:08:16]OFD Sender: No OFD packet to send [10:08:21]OFD Sender: No OFD packet to send [10:08:26]OFD Sender: No OFD packet to send [10:08:31]OFD Sender: No OFD packet to send [10:08:36]OFD Sender: No OFD packet to send [10:08:41]OFD Sender: No OFD packet to send [10:08:46]OFD Sender: No OFD packet to send [10:08:51]OFD Sender: No OFD packet to send [10:08:56]OFD Sender: No OFD packet to send [10:09:01]OFD Sender: No OFD packet to send [10:09:06]OFD Sender: No OFD packet to send [10:09:11]OFD Sender: No OFD packet to send [10:09:16]OFD Sender: No OFD packet to send [10:09:21]OFD Sender: No OFD packet to send [10:09:26]OFD Sender: No OFD packet to send [10:09:27]accept exits with 7 [10:09:27]New connection [10:09:27]New thread 3067338084 created [10:09:27]Thread 3067481444 joined [10:09:27]Waiting for new connection... [10:09:27] Sock 7.Parse request [10:09:27]Sock 7.Check first char [10:09:27]Sock 7.First char is OK [10:09:27]request: POST /json_proto HTTP/1.0 [10:09:27]Method: POST [10:09:27]URL: /json_proto [10:09:27]Method is POST - this is cgi request [10:09:27]url: /json_proto [10:09:27]query_string will be loaded in cgi processing [10:09:27]execute_cgi json_proto POST (null) [10:09:27]execute_cgi path=json_proto method=POST [10:09:27]POST find Content-Length [10:09:27]Host: 172.17.62.5:8080 [10:09:27]Content-Length: 681 [10:09:27]Content-Type: application/json [10:09:27] [10:09:27]POST finish read [10:09:27]Found Content-Length = 681 [10:09:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 15.300, "sum" : 500.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:27]execute_script... [10:09:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 15.300, "sum" : 500.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:27]POST & json_proto [10:09:27]process_json_proto [10:09:27]json parsed OK: [10:09:27]protocol is kg_v1.0 [10:09:27]action value=close_receipt [10:09:27]process_action close_receipt [10:09:27]cmd_close_receipt [10:09:27]MH_GetDate [10:09:27]Write to MH i2c: F0 00 00 F8 1F 06 [10:09:27]Write i2c OK [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: F0 [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: F0 09 00 [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: F0 09 00 F8 1F 00 DA E5 24 66 F4 E9 65 64 FE [10:09:27]GetLastDocTimeStamp 1713693866 [10:09:27]current date 1713694170 [10:09:27]FM_GetShiftState [10:09:27]SAM_PROTO_GetShiftState [10:09:27]wFMCommunicate request_size=4 [10:09:27]MH_SAM_APDU [10:09:27]CAPDU: 80 13 01 00 [10:09:27]Write to MH i2c: E2 08 00 F9 1F 80 13 01 00 00 00 00 00 95 [10:09:27]Write i2c OK [10:09:27]MH_I2C_Read... [10:09:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:27]Read from MH i2c: E2 [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: E2 0E 00 [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: E2 0E 00 F9 1F 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 DC [10:09:27]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [10:09:27]wFMCommunicate OK [10:09:27]SAM_PROTO_GetShiftState done [10:09:27]FM_GetShiftState done [10:09:27]opened in 1713658965 [10:09:27]opened+sec_in_day 1713745365 [10:09:27]quantity*price = 50031 [10:09:27]sum+1 = 50032 [10:09:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 57 21.04.2024 10:09 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76801 ФПД: 231795677640476 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T100931&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76801&fm=231795677640476&tin=02508201610067®Number=0000000000091573&sum=50000 [10:09:28]StoreToDocumentArchive [10:09:28]shift 372 fd 76801 [10:09:28]save to /storage/0372/doc_00076801 [10:09:28]save last doc name /storage/0372/doc_00076801 to /storage/kkm_last_doc_name [10:09:28]save OK [10:09:28]Clear old archive folders... [10:09:28]ProcessDocumentItem done err = 0, tmpTLVsize=250 [10:09:28]tlvbuf is 01887370 [10:09:28]SAM_PROTO_ClearQueue [10:09:28]wFMCommunicate request_size=4 [10:09:28]MH_SAM_APDU [10:09:28]CAPDU: 80 09 00 00 [10:09:28]Write to MH i2c: E2 08 00 06 20 80 09 00 00 00 00 00 00 98 [10:09:28]Write i2c OK [10:09:28]MH_I2C_Read... [10:09:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:28]Read from MH i2c: E2 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: E2 03 00 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: E2 03 00 06 20 00 90 00 9A [10:09:28]RAPDU: 90 00 [10:09:28]wFMCommunicate OK [10:09:28]SAM_PROTO_ClearQueue done [10:09:28]KKMCreateOFDPacket [10:09:28]OFDProtocolAddRootSTLVToBuf [10:09:28]FM_MakeSignedData [10:09:28]FM_MakeSignedData [10:09:28]SAM_PROTO_SignData [10:09:28]wFMCommunicate request_size=4 [10:09:28]MH_SAM_APDU [10:09:28]CAPDU: 80 0D 01 02 [10:09:28]Write to MH i2c: E2 08 00 07 20 80 0D 01 02 00 00 00 00 A0 [10:09:28]Write i2c OK [10:09:28]MH_I2C_Read... [10:09:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:28]Read from MH i2c: E2 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: E2 03 00 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: E2 03 00 07 20 00 90 00 9B [10:09:28]RAPDU: 90 00 [10:09:28]wFMCommunicate OK [10:09:28]wFMCommunicate request_size=255 [10:09:28]MH_SAM_APDU [10:09:28]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 39 00 00 00 F4 03 04 00 DB E5 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 01 2C 01 00 35 04 06 00 D2 D1 [10:09:28]Write to MH i2c: E2 02 01 08 20 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 39 00 00 00 F4 03 04 00 DB E5 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 01 2C 01 00 35 04 06 00 D2 D1 00 00 D4 [10:09:28]Write i2c OK [10:09:28]MH_I2C_Read... [10:09:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:28]Read from MH i2c: E2 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: E2 03 00 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: E2 03 00 08 20 00 90 00 9C [10:09:28]RAPDU: 90 00 [10:09:28]wFMCommunicate OK [10:09:28]wFMCommunicate request_size=9 [10:09:28]MH_SAM_APDU [10:09:28]CAPDU: 80 0D 02 02 04 23 06 B7 1C [10:09:28]Write to MH i2c: E2 0C 00 09 20 80 0D 02 02 04 00 23 06 B7 1C 00 00 A7 [10:09:28]Write i2c OK [10:09:28]MH_I2C_Read... [10:09:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:28]Read from MH i2c: E2 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: E2 03 00 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: E2 03 00 09 20 00 90 00 9D [10:09:28]RAPDU: 90 00 [10:09:28]wFMCommunicate OK [10:09:28]wFMCommunicate request_size=4 [10:09:28]MH_SAM_APDU [10:09:28]CAPDU: 80 0D 03 02 [10:09:28]Write to MH i2c: E2 08 00 0A 20 80 0D 03 02 00 00 00 00 A5 [10:09:28]Write i2c OK [10:09:28]MH_I2C_Read... [10:09:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:28]Read from MH i2c: E2 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: E2 0B 00 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: E2 0B 00 0A 20 00 4D 33 37 9F 37 09 E2 B5 90 00 D3 [10:09:28]RAPDU: 4D 33 37 9F 37 09 E2 B5 90 00 [10:09:28]wFMCommunicate OK [10:09:28]SAM_PROTO_SignData done [10:09:28]FM_MakeSignedData done [10:09:28]CreateOFDProtocolMessage [10:09:28]wFMCommunicate request_size=4 [10:09:28]MH_SAM_APDU [10:09:28]CAPDU: 80 11 00 00 [10:09:28]Write to MH i2c: E2 08 00 0B 20 80 11 00 00 00 00 00 00 A5 [10:09:28]Write i2c OK [10:09:28]MH_I2C_Read... [10:09:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:28]Read from MH i2c: E2 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: E2 17 00 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: E2 17 00 0B 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F8 [10:09:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:09:28]wFMCommunicate OK [10:09:28]CreateOFDProtocolMessage done [10:09:28]OFDSenderStorePacket 76801 [10:09:28]StoreOFDPacket docnum=76801 [10:09:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 3B 60 06 01 55 75 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 39 00 00 00 F4 03 04 00 DB E5 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 01 2C 01 00 35 04 06 00 D2 D1 23 06 B7 1C 4D 33 37 9F 37 09 E2 B5 [10:09:28]CheckFolder [10:09:28]dirname=/storage/ofd_packets [10:09:28]CheckFolder done [10:09:28]ProducePacketName [10:09:28]name=ofd_packets/00076801 [10:09:28]NVStorageSaveData ofd_packets/00076801 [10:09:28]File name is /storage/ofd_packets/00076801 [10:09:28]Write 300 bytes [10:09:28]NVStorageSaveData done [10:09:28]OFDSenderStorePacket done [10:09:28]KKMCreateOFDPacket done [10:09:28]NVStorageSaveData kkm_last_timestamp [10:09:28]File name is /storage/kkm_last_timestamp [10:09:28]Write 4 bytes [10:09:28]NVStorageSaveData done [10:09:28]ExternCall_PrintAddStr [10:09:28]wPrintStart [10:09:28]Write to MH i2c: 01 00 00 0C 20 2C [10:09:28]Write i2c OK [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: 01 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: 01 07 00 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: 01 07 00 0C 20 00 00 00 00 00 FF 0F 41 [10:09:28]RasterBufferAndPrint [10:09:28]line Счет N : (1)191332 [10:09:28]line ИНН: 02508201610067 [10:09:28]line Контрольно-Кассовый Чек [10:09:28]line ПРОДАЖА [10:09:28]line ТРК (МРК, ГНК) : 71 [10:09:28]line Товар: 2711190000 [10:09:28]line ГАЗ-К-5 [10:09:28]line 15.300 * 32.70 [10:09:28]line = 500.31 [10:09:28]line НДС 12% НСП 1% [10:09:28]line > о реализуемом товаре [10:09:28]line ОКРУГЛЕНИЕ: -0.31 [10:09:28]line ИТОГО: 500.00 [10:09:28]line Внесено: 500.00 [10:09:28]line СДАЧА: 0.00 [10:09:28]line НСП 1% : 4.43 [10:09:28]line НДС 12% : 53.13 [10:09:28]line Наличными: 500.00 [10:09:28]line Безнал.: 0.00 [10:09:28]line Место: АЗС № 106 "Партнер Нефть" [10:09:28]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [10:09:28]line СНО: Общий режим [10:09:28]line Чек 57 21.04.2024 10:09 [10:09:28]line Смена: 372 ФФД: 1.0 [10:09:28]line ЗНМ: 0300000141 [10:09:28]line РНМ: 0000000000091573 [10:09:28]line Версия ККМ: 001 [10:09:28]line ФМ: 0000000000874652 [10:09:28]line ФД: 76801 [10:09:28]line ФПД: 231795677640476 [10:09:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T100931&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76801&fm=231795677640476&tin=02508201610067®Number=0000000000091573&sum=50000 [10:09:28]written 0, free lines is 4095 [10:09:29]OFD Sender: Processing packet 76801 [packets to send 129, broken 128] [10:09:29]ProducePacketName [10:09:29]name=ofd_packets/00076801 [10:09:29]OFD Sender: To server: pG, [10:09:29]CommunicateWithHost lk.salyk.kg:30040 [10:09:29]ConnectInit lk.salyk.kg [10:09:29]Connected sock=9 [10:09:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 3B 60 06 01 55 75 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 39 00 00 00 F4 03 04 00 DB E5 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 01 2C 01 00 35 04 06 00 D2 D1 23 06 B7 1C 4D 33 37 9F 37 09 E2 B5 [10:09:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 48 CF 47 00 FD 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 34 36 35 32 10 04 04 00 01 2C 01 00 F4 03 04 00 60 8D 24 66 B6 04 01 00 00 EC 31 43 23 11 E8 27 FA [10:09:29]CommunicateWithHost err = 0 [10:09:29]CheckOFDResponse [10:09:29]1017 (14) - 77093643461234 [10:09:29]1041 (16) - 0000000000874652 [10:09:29]1040 (4) - 76801 [10:09:29]1012 (4) - 21.04.2024 03:52 [10:09:29]1206 (1) - 0 [10:09:29]OFD Sender: Remove packet 76801 [10:09:29]ProducePacketName [10:09:29]name=ofd_packets/00076801 [10:09:29]NVStorageDeleteData [10:09:29]Write to MH i2c: 01 00 00 36 20 56 [10:09:29]Write i2c OK [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: 01 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: 01 07 00 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: 01 07 00 36 20 00 00 00 00 00 FA 0C 63 [10:09:29]RasterBufferAndPrint [10:09:29]line [10:09:29]line [10:09:29]line [10:09:29]line [10:09:29]line [10:09:29]written 0, free lines is 3328 [10:09:29]MH_Cut [10:09:29]Write to MH i2c: D1 01 00 3D 20 01 2F [10:09:29]Write i2c OK [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: D1 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: D1 01 00 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: D1 01 00 3D 20 00 2E [10:09:29]Write to MH i2c: 01 00 00 3E 20 5E [10:09:29]Write i2c OK [10:09:29]MH_I2C_Read... [10:09:29]OFD Sender: No OFD packet to send [10:09:30]*** Cut start [10:09:30]*** Partial cut [10:09:30]*** CUTSNS_PIN = 1 [10:09:30]*** CUTSNS_PIN = 0 [10:09:30]*** Brake cut motor [10:09:30]Read from MH i2c: 01 [10:09:30]MH_I2C_Read... [10:09:30]*** Stop cut motor [10:09:30]*** Cut end [10:09:30]Read from MH i2c: 01 07 00 [10:09:30]MH_I2C_Read... [10:09:30]Read from MH i2c: 01 07 00 3E 20 00 00 00 00 00 FF 0F 73 [10:09:30]process_action close_receipt done [10:09:30]requested_data is exist [10:09:30]produce_requested_data [10:09:30]requested_item fm.sn is exist - process it [10:09:30]wFMCommunicate request_size=4 [10:09:30]MH_SAM_APDU [10:09:30]CAPDU: 80 11 00 00 [10:09:30]Write to MH i2c: E2 08 00 3F 20 80 11 00 00 00 00 00 00 D9 [10:09:30]Write i2c OK [10:09:30]MH_I2C_Read... [10:09:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:30]Read from MH i2c: E2 [10:09:30]MH_I2C_Read... [10:09:30]Read from MH i2c: E2 17 00 [10:09:30]MH_I2C_Read... [10:09:30]Read from MH i2c: E2 17 00 3F 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 2C [10:09:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:09:30]wFMCommunicate OK [10:09:30]requested_item fd.num is exist - process it [10:09:30]SAM_PROTO_GetFieldsCounters [10:09:30]wFMCommunicate request_size=4 [10:09:30]MH_SAM_APDU [10:09:30]CAPDU: 80 13 00 00 [10:09:30]Write to MH i2c: E2 08 00 40 20 80 13 00 00 00 00 00 00 DC [10:09:30]Write i2c OK [10:09:30]MH_I2C_Read... [10:09:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:30]Read from MH i2c: E2 [10:09:30]MH_I2C_Read... [10:09:30]Read from MH i2c: E2 62 00 [10:09:30]MH_I2C_Read... [10:09:30]Read from MH i2c: E2 62 00 40 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 01 2C 01 00 0E 04 04 00 74 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 4B [10:09: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 01 2C 01 00 0E 04 04 00 74 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:09:30]wFMCommunicate OK [10:09:30]SAM_PROTO_GetFieldsCounters done [10:09:30]requested_item shift.num is exist - process it [10:09:30]requested_item shift.opened is exist - process it [10:09:30]req_shift_opened [10:09:30]FM_GetShiftState [10:09:30]SAM_PROTO_GetShiftState [10:09:30]wFMCommunicate request_size=4 [10:09:30]MH_SAM_APDU [10:09:30]CAPDU: 80 13 01 00 [10:09:30]Write to MH i2c: E2 08 00 41 20 80 13 01 00 00 00 00 00 DE [10:09:30]Write i2c OK [10:09:30]MH_I2C_Read... [10:09:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:31]Read from MH i2c: E2 [10:09:31]MH_I2C_Read... [10:09:31]Read from MH i2c: E2 0E 00 [10:09:31]MH_I2C_Read... [10:09:31]Read from MH i2c: E2 0E 00 41 20 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 25 [10:09:31]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [10:09:31]wFMCommunicate OK [10:09:31]SAM_PROTO_GetShiftState done [10:09:31]FM_GetShiftState done [10:09:31]req_shift_opened done [10:09:31]requested_item shift.open_date is exist - process it [10:09:31]req_shift_open_date [10:09:31]req_shift_open_date done [10:09:31]produce_requested_data done [10:09:31]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76801,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [10:09:31]process_action_free close_receipt [10:09:31]json_value_free [10:09:31]json_value_free done [10:09:31]process_json_proto returns [10:09:31]Send response to host [10:09:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76801,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [10:09:31]free response buf [10:09:31]execute_script done [10:09:31]execute_script returns [10:09:31]free content buf [10:09:31]Sock 7.Close socket [10:09:31]Sock 7.Thread stoped [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]accept exits with 10 [10:09:54]New connection [10:09:54]New thread 3067481444 created [10:09:54]Thread 3067338084 joined [10:09:54]Waiting for new connection... [10:09:54] Sock 10.Parse request [10:09:54]Sock 10.Check first char [10:09:54]Sock 10.First char is OK [10:09:54]request: POST /json_proto HTTP/1.0 [10:09:54]Method: POST [10:09:54]URL: /json_proto [10:09:54]Method is POST - this is cgi request [10:09:54]url: /json_proto [10:09:54]query_string will be loaded in cgi processing [10:09:54]execute_cgi json_proto POST (null) [10:09:54]execute_cgi path=json_proto method=POST [10:09:54]POST find Content-Length [10:09:54]Host: 172.17.62.5:8080 [10:09:54]Content-Length: 679 [10:09:54]Content-Type: application/json [10:09:54] [10:09:54]POST finish read [10:09:54]Found Content-Length = 679 [10:09:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191333", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:54]execute_script... [10:09:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191333", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:54]POST & json_proto [10:09:54]process_json_proto [10:09:54]json parsed OK: [10:09:54]protocol is kg_v1.0 [10:09:54]action value=close_receipt [10:09:54]process_action close_receipt [10:09:54]cmd_close_receipt [10:09:54]MH_GetDate [10:09:54]Write to MH i2c: F0 00 00 42 20 51 [10:09:54]Write i2c OK [10:09:54]MH_I2C_Read... [10:09:54]Read from MH i2c: F0 [10:09:54]MH_I2C_Read... [10:09:54]Read from MH i2c: F0 09 00 [10:09:54]MH_I2C_Read... [10:09:54]Read from MH i2c: F0 09 00 42 20 00 F6 E5 24 66 F4 E9 65 64 65 [10:09:54]GetLastDocTimeStamp 1713694171 [10:09:54]current date 1713694198 [10:09:54]FM_GetShiftState [10:09:54]SAM_PROTO_GetShiftState [10:09:54]wFMCommunicate request_size=4 [10:09:54]MH_SAM_APDU [10:09:54]CAPDU: 80 13 01 00 [10:09:54]Write to MH i2c: E2 08 00 43 20 80 13 01 00 00 00 00 00 E0 [10:09:54]Write i2c OK [10:09:54]MH_I2C_Read... [10:09:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:54]Read from MH i2c: E2 [10:09:54]MH_I2C_Read... [10:09:54]Read from MH i2c: E2 0E 00 [10:09:54]MH_I2C_Read... [10:09:54]Read from MH i2c: E2 0E 00 43 20 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 27 [10:09:54]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [10:09:54]wFMCommunicate OK [10:09:54]SAM_PROTO_GetShiftState done [10:09:54]FM_GetShiftState done [10:09:54]opened in 1713658965 [10:09:54]opened+sec_in_day 1713745365 [10:09:54]quantity*price = 100018 [10:09:54]sum+1 = 100020 [10:09:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 58 21.04.2024 10:09 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76802 ФПД: 39417508414032 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T100958&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76802&fm=39417508414032&tin=02508201610067®Number=0000000000091573&sum=100000 [10:09:55]StoreToDocumentArchive [10:09:55]shift 372 fd 76802 [10:09:55]save to /storage/0372/doc_00076802 [10:09:55]save last doc name /storage/0372/doc_00076802 to /storage/kkm_last_doc_name [10:09:55]save OK [10:09:55]Clear old archive folders... [10:09:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:09:55]tlvbuf is 018760A0 [10:09:55]SAM_PROTO_ClearQueue [10:09:55]wFMCommunicate request_size=4 [10:09:55]MH_SAM_APDU [10:09:55]CAPDU: 80 09 00 00 [10:09:55]Write to MH i2c: E2 08 00 50 20 80 09 00 00 00 00 00 00 E2 [10:09:55]Write i2c OK [10:09:55]MH_I2C_Read... [10:09:55]Read from MH i2c: E2 [10:09:55]MH_I2C_Read... [10:09:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:55]Read from MH i2c: E2 03 00 [10:09:55]MH_I2C_Read... [10:09:55]Read from MH i2c: E2 03 00 50 20 00 90 00 E4 [10:09:55]RAPDU: 90 00 [10:09:55]wFMCommunicate OK [10:09:55]SAM_PROTO_ClearQueue done [10:09:55]KKMCreateOFDPacket [10:09:55]OFDProtocolAddRootSTLVToBuf [10:09:55]FM_MakeSignedData [10:09:55]FM_MakeSignedData [10:09:55]SAM_PROTO_SignData [10:09:55]wFMCommunicate request_size=4 [10:09:55]MH_SAM_APDU [10:09:55]CAPDU: 80 0D 01 02 [10:09:55]Write to MH i2c: E2 08 00 51 20 80 0D 01 02 00 00 00 00 EA [10:09:55]Write i2c OK [10:09:55]MH_I2C_Read... [10:09:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:55]Read from MH i2c: E2 [10:09:55]MH_I2C_Read... [10:09:55]Read from MH i2c: E2 03 00 [10:09:55]MH_I2C_Read... [10:09:55]Read from MH i2c: E2 03 00 51 20 00 90 00 E5 [10:09:55]RAPDU: 90 00 [10:09:55]wFMCommunicate OK [10:09:55]wFMCommunicate request_size=255 [10:09:55]MH_SAM_APDU [10:09:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 3A 00 00 00 F4 03 04 00 F6 E5 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 02 2C 01 00 35 04 06 00 23 D9 9A 96 [10:09:55]Write to MH i2c: E2 02 01 52 20 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 F6 E5 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 02 2C 01 00 35 04 06 00 23 D9 9A 96 00 00 BF [10:09:55]Write i2c OK [10:09:55]MH_I2C_Read... [10:09:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:55]Read from MH i2c: E2 [10:09:55]MH_I2C_Read... [10:09:55]Read from MH i2c: E2 03 00 [10:09:55]MH_I2C_Read... [10:09:55]Read from MH i2c: E2 03 00 52 20 00 90 00 E6 [10:09:55]RAPDU: 90 00 [10:09:55]wFMCommunicate OK [10:09:55]wFMCommunicate request_size=7 [10:09:55]MH_SAM_APDU [10:09:55]CAPDU: 80 0D 02 02 02 42 50 [10:09:55]Write to MH i2c: E2 0A 00 53 20 80 0D 02 02 02 00 42 50 00 00 83 [10:09:55]Write i2c OK [10:09:55]MH_I2C_Read... [10:09:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:55]Read from MH i2c: E2 [10:09:55]MH_I2C_Read... [10:09:55]Read from MH i2c: E2 03 00 [10:09:55]MH_I2C_Read... [10:09:55]Read from MH i2c: E2 03 00 53 20 00 90 00 E7 [10:09:55]RAPDU: 90 00 [10:09:55]wFMCommunicate OK [10:09:55]wFMCommunicate request_size=4 [10:09:55]MH_SAM_APDU [10:09:55]CAPDU: 80 0D 03 02 [10:09:55]Write to MH i2c: E2 08 00 54 20 80 0D 03 02 00 00 00 00 EF [10:09:55]Write i2c OK [10:09:55]MH_I2C_Read... [10:09:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:55]Read from MH i2c: E2 [10:09:55]MH_I2C_Read... [10:09:55]Read from MH i2c: E2 0B 00 [10:09:55]MH_I2C_Read... [10:09:55]Read from MH i2c: E2 0B 00 54 20 00 C3 FF CD 31 33 F6 D5 7E 90 00 2C [10:09:55]RAPDU: C3 FF CD 31 33 F6 D5 7E 90 00 [10:09:55]wFMCommunicate OK [10:09:55]SAM_PROTO_SignData done [10:09:55]FM_MakeSignedData done [10:09:55]CreateOFDProtocolMessage [10:09:55]wFMCommunicate request_size=4 [10:09:55]MH_SAM_APDU [10:09:55]CAPDU: 80 11 00 00 [10:09:55]Write to MH i2c: E2 08 00 55 20 80 11 00 00 00 00 00 00 EF [10:09:55]Write i2c OK [10:09:55]MH_I2C_Read... [10:09:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:55]Read from MH i2c: E2 [10:09:55]MH_I2C_Read... [10:09:55]Read from MH i2c: E2 17 00 [10:09:55]MH_I2C_Read... [10:09:55]Read from MH i2c: E2 17 00 55 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 42 [10:09:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:09:55]wFMCommunicate OK [10:09:55]CreateOFDProtocolMessage done [10:09:55]OFDSenderStorePacket 76802 [10:09:55]StoreOFDPacket docnum=76802 [10:09:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 98 D3 04 01 3B 97 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 3A 00 00 00 F4 03 04 00 F6 E5 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 02 2C 01 00 35 04 06 00 23 D9 9A 96 42 50 C3 FF CD 31 33 F6 D5 7E [10:09:55]CheckFolder [10:09:55]dirname=/storage/ofd_packets [10:09:55]CheckFolder done [10:09:55]ProducePacketName [10:09:55]name=ofd_packets/00076802 [10:09:55]NVStorageSaveData ofd_packets/00076802 [10:09:55]File name is /storage/ofd_packets/00076802 [10:09:55]Write 298 bytes [10:09:55]NVStorageSaveData done [10:09:55]OFDSenderStorePacket done [10:09:55]KKMCreateOFDPacket done [10:09:55]NVStorageSaveData kkm_last_timestamp [10:09:55]File name is /storage/kkm_last_timestamp [10:09:55]Write 4 bytes [10:09:55]NVStorageSaveData done [10:09:56]ExternCall_PrintAddStr [10:09:56]wPrintStart [10:09:56]Write to MH i2c: 01 00 00 56 20 76 [10:09:56]Write i2c OK [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: 01 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: 01 07 00 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: 01 07 00 56 20 00 00 00 00 00 FF 0F 8B [10:09:56]RasterBufferAndPrint [10:09:56]line Счет N : (1)191333 [10:09:56]line ИНН: 02508201610067 [10:09:56]line Контрольно-Кассовый Чек [10:09:56]line ПРОДАЖА [10:09:56]line ТРК (МРК, ГНК) : 23 [10:09:56]line Товар: 2710194210 [10:09:56]line ДТ-К-5 [10:09:56]line 13.720 * 72.90 [10:09:56]line = 1000.19 [10:09:56]line НДС 12% НСП 1% [10:09:56]line > о реализуемом товаре [10:09:56]line ОКРУГЛЕНИЕ: -0.19 [10:09:56]line ИТОГО: 1000.00 [10:09:56]line Внесено: 1000.00 [10:09:56]line СДАЧА: 0.00 [10:09:56]line НСП 1% : 8.85 [10:09:56]line НДС 12% : 106.21 [10:09:56]line Наличными: 1000.00 [10:09:56]line Безнал.: 0.00 [10:09:56]line Место: АЗС № 106 "Партнер Нефть" [10:09:56]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [10:09:56]line СНО: Общий режим [10:09:56]line Чек 58 21.04.2024 10:09 [10:09:56]line Смена: 372 ФФД: 1.0 [10:09:56]line ЗНМ: 0300000141 [10:09:56]line РНМ: 0000000000091573 [10:09:56]line Версия ККМ: 001 [10:09:56]line ФМ: 0000000000874652 [10:09:56]line ФД: 76802 [10:09:56]line ФПД: 39417508414032 [10:09:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T100958&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76802&fm=39417508414032&tin=02508201610067®Number=0000000000091573&sum=100000 [10:09:56]OFD Sender: Processing packet 76802 [packets to send 129, broken 128] [10:09:56]ProducePacketName [10:09:56]name=ofd_packets/00076802 [10:09:56]OFD Sender: To server: pG, [10:09:56]CommunicateWithHost lk.salyk.kg:30040 [10:09:56]ConnectInit lk.salyk.kg [10:09:56]written 0, free lines is 4095 [10:09:56]Connected sock=9 [10:09:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 98 D3 04 01 3B 97 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 3A 00 00 00 F4 03 04 00 F6 E5 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 02 2C 01 00 35 04 06 00 23 D9 9A 96 42 50 C3 FF CD 31 33 F6 D5 7E [10:09:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 2F 23 47 00 ED 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 34 36 35 32 10 04 04 00 02 2C 01 00 F4 03 04 00 7B 8D 24 66 B6 04 01 00 00 E2 7F 73 49 56 24 48 DB [10:09:56]CommunicateWithHost err = 0 [10:09:56]CheckOFDResponse [10:09:56]1017 (14) - 77093643461234 [10:09:56]1041 (16) - 0000000000874652 [10:09:56]1040 (4) - 76802 [10:09:56]1012 (4) - 21.04.2024 03:52 [10:09:56]1206 (1) - 0 [10:09:56]OFD Sender: Remove packet 76802 [10:09:56]ProducePacketName [10:09:56]name=ofd_packets/00076802 [10:09:56]NVStorageDeleteData [10:09:56]Write to MH i2c: 01 00 00 80 20 A0 [10:09:56]Write i2c OK [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: 01 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: 01 07 00 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: 01 07 00 80 20 00 00 00 00 00 F2 0C A5 [10:09:56]RasterBufferAndPrint [10:09:56]line [10:09:56]line [10:09:56]line [10:09:56]line [10:09:56]line [10:09:56]written 0, free lines is 3322 [10:09:56]MH_Cut [10:09:56]Write to MH i2c: D1 01 00 87 20 01 79 [10:09:56]Write i2c OK [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: D1 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: D1 01 00 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: D1 01 00 87 20 00 78 [10:09:56]Write to MH i2c: 01 00 00 88 20 A8 [10:09:56]Write i2c OK [10:09:56]MH_I2C_Read... [10:09:57]OFD Sender: No OFD packet to send [10:09:57]*** Cut start [10:09:57]*** Partial cut [10:09:57]*** CUTSNS_PIN = 1 [10:09:57]*** CUTSNS_PIN = 0 [10:09:57]*** Brake cut motor [10:09:58]Read from MH i2c: 01 [10:09:58]MH_I2C_Read... [10:09:58]*** Stop cut motor [10:09:58]*** Cut end [10:09:58]Read from MH i2c: 01 07 00 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: 01 07 00 88 20 00 00 00 00 00 FF 0F BD [10:09:58]process_action close_receipt done [10:09:58]requested_data is exist [10:09:58]produce_requested_data [10:09:58]requested_item fm.sn is exist - process it [10:09:58]wFMCommunicate request_size=4 [10:09:58]MH_SAM_APDU [10:09:58]CAPDU: 80 11 00 00 [10:09:58]Write to MH i2c: E2 08 00 89 20 80 11 00 00 00 00 00 00 23 [10:09:58]Write i2c OK [10:09:58]MH_I2C_Read... [10:09:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:58]Read from MH i2c: E2 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: E2 17 00 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: E2 17 00 89 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 76 [10:09:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:09:58]wFMCommunicate OK [10:09:58]requested_item fd.num is exist - process it [10:09:58]SAM_PROTO_GetFieldsCounters [10:09:58]wFMCommunicate request_size=4 [10:09:58]MH_SAM_APDU [10:09:58]CAPDU: 80 13 00 00 [10:09:58]Write to MH i2c: E2 08 00 8A 20 80 13 00 00 00 00 00 00 26 [10:09:58]Write i2c OK [10:09:58]MH_I2C_Read... [10:09:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:58]Read from MH i2c: E2 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: E2 62 00 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: E2 62 00 8A 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 02 2C 01 00 0E 04 04 00 74 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 99 [10:09:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 02 2C 01 00 0E 04 04 00 74 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:09:58]wFMCommunicate OK [10:09:58]SAM_PROTO_GetFieldsCounters done [10:09:58]requested_item shift.num is exist - process it [10:09:58]requested_item shift.opened is exist - process it [10:09:58]req_shift_opened [10:09:58]FM_GetShiftState [10:09:58]SAM_PROTO_GetShiftState [10:09:58]wFMCommunicate request_size=4 [10:09:58]MH_SAM_APDU [10:09:58]CAPDU: 80 13 01 00 [10:09:58]Write to MH i2c: E2 08 00 8B 20 80 13 01 00 00 00 00 00 28 [10:09:58]Write i2c OK [10:09:58]MH_I2C_Read... [10:09:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:58]Read from MH i2c: E2 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: E2 0E 00 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: E2 0E 00 8B 20 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 6F [10:09:58]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [10:09:58]wFMCommunicate OK [10:09:58]SAM_PROTO_GetShiftState done [10:09:58]FM_GetShiftState done [10:09:58]req_shift_opened done [10:09:58]requested_item shift.open_date is exist - process it [10:09:58]req_shift_open_date [10:09:58]req_shift_open_date done [10:09:58]produce_requested_data done [10:09:58]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76802,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [10:09:58]process_action_free close_receipt [10:09:58]json_value_free [10:09:58]json_value_free done [10:09:58]process_json_proto returns [10:09:58]Send response to host [10:09:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76802,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [10:09:58]free response buf [10:09:58]execute_script done [10:09:58]execute_script returns [10:09:58]free content buf [10:09:58]Sock 10.Close socket [10:09:58]Sock 10.Thread stoped [10:10:02]OFD Sender: No OFD packet to send [10:10:07]OFD Sender: No OFD packet to send [10:10:12]OFD Sender: No OFD packet to send [10:10:17]OFD Sender: No OFD packet to send [10:10:22]OFD Sender: No OFD packet to send [10:10:27]OFD Sender: No OFD packet to send [10:10:32]OFD Sender: No OFD packet to send [10:10:37]OFD Sender: No OFD packet to send [10:10:42]OFD Sender: No OFD packet to send [10:10:47]OFD Sender: No OFD packet to send [10:10:52]OFD Sender: No OFD packet to send [10:10:57]OFD Sender: No OFD packet to send [10:11:02]OFD Sender: No OFD packet to send [10:11:07]OFD Sender: No OFD packet to send [10:11:12]OFD Sender: No OFD packet to send [10:11:17]OFD Sender: No OFD packet to send [10:11:22]OFD Sender: No OFD packet to send [10:11:27]OFD Sender: No OFD packet to send [10:11:32]OFD Sender: No OFD packet to send [10:11:37]OFD Sender: No OFD packet to send [10:11:42]OFD Sender: No OFD packet to send [10:11:47]OFD Sender: No OFD packet to send [10:11:52]OFD Sender: No OFD packet to send [10:11:57]OFD Sender: No OFD packet to send [10:12:02]OFD Sender: No OFD packet to send [10:12:07]OFD Sender: No OFD packet to send [10:12:12]OFD Sender: No OFD packet to send [10:12:17]OFD Sender: No OFD packet to send [10:12:22]OFD Sender: No OFD packet to send [10:12:27]OFD Sender: No OFD packet to send [10:12:32]OFD Sender: No OFD packet to send [10:12:37]OFD Sender: No OFD packet to send [10:12:42]OFD Sender: No OFD packet to send [10:12:47]OFD Sender: No OFD packet to send [10:12:52]OFD Sender: No OFD packet to send [10:12:57]OFD Sender: No OFD packet to send [10:13:02]OFD Sender: No OFD packet to send [10:13:07]OFD Sender: No OFD packet to send [10:13:12]OFD Sender: No OFD packet to send [10:13:17]OFD Sender: No OFD packet to send [10:13:22]OFD Sender: No OFD packet to send [10:13:27]OFD Sender: No OFD packet to send [10:13:32]OFD Sender: No OFD packet to send [10:13:37]OFD Sender: No OFD packet to send [10:13:42]OFD Sender: No OFD packet to send [10:13:47]OFD Sender: No OFD packet to send [10:13:52]OFD Sender: No OFD packet to send [10:13:57]OFD Sender: No OFD packet to send [10:14:02]OFD Sender: No OFD packet to send [10:14:07]OFD Sender: No OFD packet to send [10:14:12]OFD Sender: No OFD packet to send [10:14:17]OFD Sender: No OFD packet to send [10:14:22]OFD Sender: No OFD packet to send [10:14:27]OFD Sender: No OFD packet to send [10:14:32]OFD Sender: No OFD packet to send [10:14:37]OFD Sender: No OFD packet to send [10:14:39]accept exits with 7 [10:14:39]New connection [10:14:39]New thread 3067338084 created [10:14:39]Thread 3067481444 joined [10:14:39]Waiting for new connection... [10:14:39] Sock 7.Parse request [10:14:39]Sock 7.Check first char [10:14:39]Sock 7.First char is OK [10:14:39]request: POST /json_proto HTTP/1.0 [10:14:39]Method: POST [10:14:39]URL: /json_proto [10:14:39]Method is POST - this is cgi request [10:14:39]url: /json_proto [10:14:39]query_string will be loaded in cgi processing [10:14:39]execute_cgi json_proto POST (null) [10:14:39]execute_cgi path=json_proto method=POST [10:14:39]POST find Content-Length [10:14:39]Host: 172.17.62.5:8080 [10:14:39]Content-Length: 681 [10:14:39]Content-Type: application/json [10:14:39] [10:14:39]POST finish read [10:14:39]Found Content-Length = 681 [10:14:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 15.300, "sum" : 500.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:14:39]execute_script... [10:14:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 15.300, "sum" : 500.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:14:39]POST & json_proto [10:14:39]process_json_proto [10:14:39]json parsed OK: [10:14:39]protocol is kg_v1.0 [10:14:39]action value=close_receipt [10:14:39]process_action close_receipt [10:14:39]cmd_close_receipt [10:14:39]MH_GetDate [10:14:39]Write to MH i2c: F0 00 00 8C 20 9B [10:14:39]Write i2c OK [10:14:39]MH_I2C_Read... [10:14:39]Read from MH i2c: F0 [10:14:39]MH_I2C_Read... [10:14:39]Read from MH i2c: F0 09 00 [10:14:39]MH_I2C_Read... [10:14:39]Read from MH i2c: F0 09 00 8C 20 00 13 E7 24 66 F4 E9 65 64 CE [10:14:39]GetLastDocTimeStamp 1713694198 [10:14:39]current date 1713694483 [10:14:39]FM_GetShiftState [10:14:39]SAM_PROTO_GetShiftState [10:14:39]wFMCommunicate request_size=4 [10:14:39]MH_SAM_APDU [10:14:39]CAPDU: 80 13 01 00 [10:14:39]Write to MH i2c: E2 08 00 8D 20 80 13 01 00 00 00 00 00 2A [10:14:39]Write i2c OK [10:14:39]MH_I2C_Read... [10:14:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:39]Read from MH i2c: E2 [10:14:39]MH_I2C_Read... [10:14:39]Read from MH i2c: E2 0E 00 [10:14:39]MH_I2C_Read... [10:14:39]Read from MH i2c: E2 0E 00 8D 20 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 71 [10:14:39]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [10:14:39]wFMCommunicate OK [10:14:39]SAM_PROTO_GetShiftState done [10:14:39]FM_GetShiftState done [10:14:39]opened in 1713658965 [10:14:39]opened+sec_in_day 1713745365 [10:14:39]quantity*price = 50031 [10:14:39]sum+1 = 50032 [10:14:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 59 21.04.2024 10:14 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76803 ФПД: 169008132028741 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T101443&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76803&fm=169008132028741&tin=02508201610067®Number=0000000000091573&sum=50000 [10:14:40]StoreToDocumentArchive [10:14:40]shift 372 fd 76803 [10:14:40]save to /storage/0372/doc_00076803 [10:14:40]save last doc name /storage/0372/doc_00076803 to /storage/kkm_last_doc_name [10:14:40]save OK [10:14:40]Clear old archive folders... [10:14:40]ProcessDocumentItem done err = 0, tmpTLVsize=250 [10:14:40]tlvbuf is 018DDF80 [10:14:40]SAM_PROTO_ClearQueue [10:14:40]wFMCommunicate request_size=4 [10:14:40]MH_SAM_APDU [10:14:40]CAPDU: 80 09 00 00 [10:14:40]Write to MH i2c: E2 08 00 9A 20 80 09 00 00 00 00 00 00 2C [10:14:40]Write i2c OK [10:14:40]MH_I2C_Read... [10:14:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:40]Read from MH i2c: E2 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: E2 03 00 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: E2 03 00 9A 20 00 90 00 2E [10:14:40]RAPDU: 90 00 [10:14:40]wFMCommunicate OK [10:14:40]SAM_PROTO_ClearQueue done [10:14:40]KKMCreateOFDPacket [10:14:40]OFDProtocolAddRootSTLVToBuf [10:14:40]FM_MakeSignedData [10:14:40]FM_MakeSignedData [10:14:40]SAM_PROTO_SignData [10:14:40]wFMCommunicate request_size=4 [10:14:40]MH_SAM_APDU [10:14:40]CAPDU: 80 0D 01 02 [10:14:40]Write to MH i2c: E2 08 00 9B 20 80 0D 01 02 00 00 00 00 34 [10:14:40]Write i2c OK [10:14:40]MH_I2C_Read... [10:14:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:40]Read from MH i2c: E2 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: E2 03 00 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: E2 03 00 9B 20 00 90 00 2F [10:14:40]RAPDU: 90 00 [10:14:40]wFMCommunicate OK [10:14:40]wFMCommunicate request_size=255 [10:14:40]MH_SAM_APDU [10:14:40]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3B 00 00 00 F4 03 04 00 13 E7 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 03 2C 01 00 35 04 06 00 99 B6 [10:14:40]Write to MH i2c: E2 02 01 9C 20 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3B 00 00 00 F4 03 04 00 13 E7 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 03 2C 01 00 35 04 06 00 99 B6 00 00 52 [10:14:40]Write i2c OK [10:14:40]MH_I2C_Read... [10:14:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:41]Read from MH i2c: E2 [10:14:41]MH_I2C_Read... [10:14:41]Read from MH i2c: E2 03 00 [10:14:41]MH_I2C_Read... [10:14:41]Read from MH i2c: E2 03 00 9C 20 00 90 00 30 [10:14:41]RAPDU: 90 00 [10:14:41]wFMCommunicate OK [10:14:41]wFMCommunicate request_size=9 [10:14:41]MH_SAM_APDU [10:14:41]CAPDU: 80 0D 02 02 04 45 AC 79 45 [10:14:41]Write to MH i2c: E2 0C 00 9D 20 80 0D 02 02 04 00 45 AC 79 45 00 00 EE [10:14:41]Write i2c OK [10:14:41]MH_I2C_Read... [10:14:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:41]Read from MH i2c: E2 [10:14:41]MH_I2C_Read... [10:14:41]Read from MH i2c: E2 03 00 [10:14:41]MH_I2C_Read... [10:14:41]Read from MH i2c: E2 03 00 9D 20 00 90 00 31 [10:14:41]RAPDU: 90 00 [10:14:41]wFMCommunicate OK [10:14:41]wFMCommunicate request_size=4 [10:14:41]MH_SAM_APDU [10:14:41]CAPDU: 80 0D 03 02 [10:14:41]Write to MH i2c: E2 08 00 9E 20 80 0D 03 02 00 00 00 00 39 [10:14:41]Write i2c OK [10:14:41]MH_I2C_Read... [10:14:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:41]Read from MH i2c: E2 [10:14:41]MH_I2C_Read... [10:14:41]Read from MH i2c: E2 0B 00 [10:14:41]MH_I2C_Read... [10:14:41]Read from MH i2c: E2 0B 00 9E 20 00 AE 58 FB D3 C9 31 64 34 90 00 A0 [10:14:41]RAPDU: AE 58 FB D3 C9 31 64 34 90 00 [10:14:41]wFMCommunicate OK [10:14:41]SAM_PROTO_SignData done [10:14:41]FM_MakeSignedData done [10:14:41]CreateOFDProtocolMessage [10:14:41]wFMCommunicate request_size=4 [10:14:41]MH_SAM_APDU [10:14:41]CAPDU: 80 11 00 00 [10:14:41]Write to MH i2c: E2 08 00 9F 20 80 11 00 00 00 00 00 00 39 [10:14:41]Write i2c OK [10:14:41]MH_I2C_Read... [10:14:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:41]Read from MH i2c: E2 [10:14:41]MH_I2C_Read... [10:14:41]Read from MH i2c: E2 17 00 [10:14:41]MH_I2C_Read... [10:14:41]Read from MH i2c: E2 17 00 9F 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 8C [10:14:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:14:41]wFMCommunicate OK [10:14:41]CreateOFDProtocolMessage done [10:14:41]OFDSenderStorePacket 76803 [10:14:41]StoreOFDPacket docnum=76803 [10:14:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 61 5C 06 01 C4 00 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3B 00 00 00 F4 03 04 00 13 E7 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 03 2C 01 00 35 04 06 00 99 B6 45 AC 79 45 AE 58 FB D3 C9 31 64 34 [10:14:41]CheckFolder [10:14:41]dirname=/storage/ofd_packets [10:14:41]CheckFolder done [10:14:41]ProducePacketName [10:14:41]name=ofd_packets/00076803 [10:14:41]NVStorageSaveData ofd_packets/00076803 [10:14:41]File name is /storage/ofd_packets/00076803 [10:14:41]Write 300 bytes [10:14:41]NVStorageSaveData done [10:14:41]OFDSenderStorePacket done [10:14:41]KKMCreateOFDPacket done [10:14:41]NVStorageSaveData kkm_last_timestamp [10:14:41]File name is /storage/kkm_last_timestamp [10:14:41]Write 4 bytes [10:14:41]NVStorageSaveData done [10:14:41]ExternCall_PrintAddStr [10:14:41]wPrintStart [10:14:41]Write to MH i2c: 01 00 00 A0 20 C0 [10:14:41]Write i2c OK [10:14:41]MH_I2C_Read... [10:14:41]Read from MH i2c: 01 [10:14:41]MH_I2C_Read... [10:14:41]Read from MH i2c: 01 07 00 [10:14:41]MH_I2C_Read... [10:14:41]Read from MH i2c: 01 07 00 A0 20 00 00 00 00 00 FF 0F D5 [10:14:41]RasterBufferAndPrint [10:14:41]line Счет N : (1)191334 [10:14:41]line ИНН: 02508201610067 [10:14:41]line Контрольно-Кассовый Чек [10:14:41]line ПРОДАЖА [10:14:41]line ТРК (МРК, ГНК) : 71 [10:14:41]line Товар: 2711190000 [10:14:41]line ГАЗ-К-5 [10:14:41]line 15.300 * 32.70 [10:14:41]line = 500.31 [10:14:41]line НДС 12% НСП 1% [10:14:41]line > о реализуемом товаре [10:14:41]line ОКРУГЛЕНИЕ: -0.31 [10:14:41]line ИТОГО: 500.00 [10:14:41]line Внесено: 500.00 [10:14:41]line СДАЧА: 0.00 [10:14:41]line НСП 1% : 4.43 [10:14:41]line НДС 12% : 53.13 [10:14:41]line Наличными: 500.00 [10:14:41]line Безнал.: 0.00 [10:14:41]line Место: АЗС № 106 "Партнер Нефть" [10:14:41]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [10:14:41]line СНО: Общий режим [10:14:41]line Чек 59 21.04.2024 10:14 [10:14:41]line Смена: 372 ФФД: 1.0 [10:14:41]line ЗНМ: 0300000141 [10:14:41]line РНМ: 0000000000091573 [10:14:41]line Версия ККМ: 001 [10:14:41]line ФМ: 0000000000874652 [10:14:41]line ФД: 76803 [10:14:41]line ФПД: 169008132028741 [10:14:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T101443&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76803&fm=169008132028741&tin=02508201610067®Number=0000000000091573&sum=50000 [10:14:41]OFD Sender: Processing packet 76803 [packets to send 129, broken 128] [10:14:41]ProducePacketName [10:14:41]name=ofd_packets/00076803 [10:14:41]OFD Sender: To server: pG, [10:14:41]CommunicateWithHost lk.salyk.kg:30040 [10:14:41]ConnectInit lk.salyk.kg [10:14:41]written 0, free lines is 4095 [10:14:41]Connected sock=10 [10:14:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 61 5C 06 01 C4 00 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3B 00 00 00 F4 03 04 00 13 E7 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 03 2C 01 00 35 04 06 00 99 B6 45 AC 79 45 AE 58 FB D3 C9 31 64 34 [10:14:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 4E BD 47 00 8B 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 34 36 35 32 10 04 04 00 03 2C 01 00 F4 03 04 00 99 8E 24 66 B6 04 01 00 00 50 13 03 55 42 2A 71 B5 [10:14:41]CommunicateWithHost err = 0 [10:14:41]CheckOFDResponse [10:14:41]1017 (14) - 77093643461234 [10:14:41]1041 (16) - 0000000000874652 [10:14:41]1040 (4) - 76803 [10:14:41]1012 (4) - 21.04.2024 03:57 [10:14:41]1206 (1) - 0 [10:14:41]OFD Sender: Remove packet 76803 [10:14:41]ProducePacketName [10:14:41]name=ofd_packets/00076803 [10:14:41]NVStorageDeleteData [10:14:41]Write to MH i2c: 01 00 00 CA 20 EA [10:14:41]Write i2c OK [10:14:41]MH_I2C_Read... [10:14:41]Read from MH i2c: 01 [10:14:41]MH_I2C_Read... [10:14:41]Read from MH i2c: 01 07 00 [10:14:41]MH_I2C_Read... [10:14:41]Read from MH i2c: 01 07 00 CA 20 00 00 00 00 00 EE 0C EB [10:14:41]RasterBufferAndPrint [10:14:41]line [10:14:41]line [10:14:41]line [10:14:41]line [10:14:42]line [10:14:42]written 0, free lines is 3317 [10:14:42]MH_Cut [10:14:42]Write to MH i2c: D1 01 00 D1 20 01 C3 [10:14:42]Write i2c OK [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: D1 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: D1 01 00 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: D1 01 00 D1 20 00 C2 [10:14:42]Write to MH i2c: 01 00 00 D2 20 F2 [10:14:42]Write i2c OK [10:14:42]MH_I2C_Read... [10:14:42]OFD Sender: No OFD packet to send [10:14:42]*** Cut start [10:14:42]*** Partial cut [10:14:42]*** CUTSNS_PIN = 1 [10:14:42]*** CUTSNS_PIN = 0 [10:14:43]*** Brake cut motor [10:14:43]Read from MH i2c: 01 [10:14:43]MH_I2C_Read... [10:14:43]*** Stop cut motor [10:14:43]*** Cut end [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 D2 20 00 00 00 00 00 FF 0F 07 [10:14:43]process_action close_receipt done [10:14:43]requested_data is exist [10:14:43]produce_requested_data [10:14:43]requested_item fm.sn is exist - process it [10:14:43]wFMCommunicate request_size=4 [10:14:43]MH_SAM_APDU [10:14:43]CAPDU: 80 11 00 00 [10:14:43]Write to MH i2c: E2 08 00 D3 20 80 11 00 00 00 00 00 00 6D [10:14:43]Write i2c OK [10:14:43]MH_I2C_Read... [10:14:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:43]Read from MH i2c: E2 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: E2 17 00 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: E2 17 00 D3 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 C0 [10:14:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:14:43]wFMCommunicate OK [10:14:43]requested_item fd.num is exist - process it [10:14:43]SAM_PROTO_GetFieldsCounters [10:14:43]wFMCommunicate request_size=4 [10:14:43]MH_SAM_APDU [10:14:43]CAPDU: 80 13 00 00 [10:14:43]Write to MH i2c: E2 08 00 D4 20 80 13 00 00 00 00 00 00 70 [10:14:43]Write i2c OK [10:14:43]MH_I2C_Read... [10:14:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:43]Read from MH i2c: E2 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: E2 62 00 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: E2 62 00 D4 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 03 2C 01 00 0E 04 04 00 74 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 E7 [10:14:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 03 2C 01 00 0E 04 04 00 74 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:14:43]wFMCommunicate OK [10:14:43]SAM_PROTO_GetFieldsCounters done [10:14:43]requested_item shift.num is exist - process it [10:14:43]requested_item shift.opened is exist - process it [10:14:43]req_shift_opened [10:14:43]FM_GetShiftState [10:14:43]SAM_PROTO_GetShiftState [10:14:43]wFMCommunicate request_size=4 [10:14:43]MH_SAM_APDU [10:14:43]CAPDU: 80 13 01 00 [10:14:43]Write to MH i2c: E2 08 00 D5 20 80 13 01 00 00 00 00 00 72 [10:14:43]Write i2c OK [10:14:43]MH_I2C_Read... [10:14:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:43]Read from MH i2c: E2 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: E2 0E 00 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: E2 0E 00 D5 20 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 B9 [10:14:43]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [10:14:43]wFMCommunicate OK [10:14:43]SAM_PROTO_GetShiftState done [10:14:43]FM_GetShiftState done [10:14:43]req_shift_opened done [10:14:43]requested_item shift.open_date is exist - process it [10:14:43]req_shift_open_date [10:14:43]req_shift_open_date done [10:14:43]produce_requested_data done [10:14:43]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76803,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [10:14:43]process_action_free close_receipt [10:14:43]json_value_free [10:14:43]json_value_free done [10:14:43]process_json_proto returns [10:14:43]Send response to host [10:14:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76803,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [10:14:43]free response buf [10:14:43]execute_script done [10:14:43]execute_script returns [10:14:43]free content buf [10:14:43]Sock 7.Close socket [10:14:43]Sock 7.Thread stoped [10:14:47]OFD Sender: No OFD packet to send [10:14:52]OFD Sender: No OFD packet to send [10:14:57]OFD Sender: No OFD packet to send [10:15:02]OFD Sender: No OFD packet to send [10:15:07]OFD Sender: No OFD packet to send [10:15:12]OFD Sender: No OFD packet to send [10:15:17]OFD Sender: No OFD packet to send [10:15:22]OFD Sender: No OFD packet to send [10:15:27]OFD Sender: No OFD packet to send [10:15:32]OFD Sender: No OFD packet to send [10:15:37]OFD Sender: No OFD packet to send [10:15:42]OFD Sender: No OFD packet to send [10:15:44]accept exits with 9 [10:15:44]New connection [10:15:44]New thread 3067481444 created [10:15:44]Thread 3067338084 joined [10:15:44]Waiting for new connection... [10:15:44] Sock 9.Parse request [10:15:44]Sock 9.Check first char [10:15:44]Sock 9.First char is OK [10:15:44]request: POST /json_proto HTTP/1.0 [10:15:44]Method: POST [10:15:44]URL: /json_proto [10:15:44]Method is POST - this is cgi request [10:15:44]url: /json_proto [10:15:44]query_string will be loaded in cgi processing [10:15:44]execute_cgi json_proto POST (null) [10:15:44]execute_cgi path=json_proto method=POST [10:15:44]POST find Content-Length [10:15:44]Host: 172.17.62.5:8080 [10:15:44]Content-Length: 808 [10:15:44]Content-Type: application/json [10:15:44] [10:15:44]POST finish read [10:15:44]Found Content-Length = 808 [10:15:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:44]execute_script... [10:15: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)191336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:44]POST & json_proto [10:15:44]process_json_proto [10:15:44]json parsed OK: [10:15:44]protocol is kg_v1.0 [10:15:44]action value=close_receipt [10:15:44]process_action close_receipt [10:15:44]cmd_close_receipt [10:15:44]MH_GetDate [10:15:44]Write to MH i2c: F0 00 00 D6 20 E5 [10:15:44]Write i2c OK [10:15:44]MH_I2C_Read... [10:15:44]Read from MH i2c: F0 [10:15:44]MH_I2C_Read... [10:15:44]Read from MH i2c: F0 09 00 [10:15:44]MH_I2C_Read... [10:15:44]Read from MH i2c: F0 09 00 D6 20 00 54 E7 24 66 F4 E9 65 64 59 [10:15:44]GetLastDocTimeStamp 1713694483 [10:15:44]current date 1713694548 [10:15:44]FM_GetShiftState [10:15:44]SAM_PROTO_GetShiftState [10:15:44]wFMCommunicate request_size=4 [10:15:44]MH_SAM_APDU [10:15:44]CAPDU: 80 13 01 00 [10:15:44]Write to MH i2c: E2 08 00 D7 20 80 13 01 00 00 00 00 00 74 [10:15:44]Write i2c OK [10:15:44]MH_I2C_Read... [10:15:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:45]Read from MH i2c: E2 [10:15:45]MH_I2C_Read... [10:15:45]Read from MH i2c: E2 0E 00 [10:15:45]MH_I2C_Read... [10:15:45]Read from MH i2c: E2 0E 00 D7 20 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 BB [10:15:45]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [10:15:45]wFMCommunicate OK [10:15:45]SAM_PROTO_GetShiftState done [10:15:45]FM_GetShiftState done [10:15:45]opened in 1713658965 [10:15:45]opened+sec_in_day 1713745365 [10:15:45]quantity*price = 100013 [10:15:45]sum+1 = 100014 [10:15:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.13 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.13 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 60 21.04.2024 10:15 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 76804 ФПД: 111673210350974 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T101548&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76804&fm=111673210350974&tin=02508201610067®Number=0000000000091573&sum=100013 [10:15:46]StoreToDocumentArchive [10:15:46]shift 372 fd 76804 [10:15:46]save to /storage/0372/doc_00076804 [10:15:46]save last doc name /storage/0372/doc_00076804 to /storage/kkm_last_doc_name [10:15:46]save OK [10:15:46]Clear old archive folders... [10:15:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:15:46]tlvbuf is 018C2110 [10:15:46]SAM_PROTO_ClearQueue [10:15:46]wFMCommunicate request_size=4 [10:15:46]MH_SAM_APDU [10:15:46]CAPDU: 80 09 00 00 [10:15:46]Write to MH i2c: E2 08 00 E4 20 80 09 00 00 00 00 00 00 76 [10:15:46]Write i2c OK [10:15:46]MH_I2C_Read... [10:15:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:15:46]Read from MH i2c: E2 [10:15:46]MH_I2C_Read... [10:15:46]Read from MH i2c: E2 03 00 [10:15:46]MH_I2C_Read... [10:15:46]Read from MH i2c: E2 03 00 E4 20 00 90 00 78 [10:15:46]RAPDU: 90 00 [10:15:46]wFMCommunicate OK [10:15:46]SAM_PROTO_ClearQueue done [10:15:46]KKMCreateOFDPacket [10:15:46]OFDProtocolAddRootSTLVToBuf [10:15:46]FM_MakeSignedData [10:15:46]FM_MakeSignedData [10:15:46]SAM_PROTO_SignData [10:15:46]wFMCommunicate request_size=4 [10:15:46]MH_SAM_APDU [10:15:46]CAPDU: 80 0D 01 02 [10:15:46]Write to MH i2c: E2 08 00 E5 20 80 0D 01 02 00 00 00 00 7E [10:15:46]Write i2c OK [10:15:46]MH_I2C_Read... [10:15:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:15:46]Read from MH i2c: E2 [10:15:46]MH_I2C_Read... [10:15:46]Read from MH i2c: E2 03 00 [10:15:46]MH_I2C_Read... [10:15:46]Read from MH i2c: E2 03 00 E5 20 00 90 00 79 [10:15:46]RAPDU: 90 00 [10:15:46]wFMCommunicate OK [10:15:46]wFMCommunicate request_size=255 [10:15:46]MH_SAM_APDU [10:15: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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 54 E7 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 04 2C 01 00 35 04 06 00 65 [10:15:46]Write to MH i2c: E2 02 01 E6 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 54 E7 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 04 2C 01 00 35 04 06 00 65 00 00 75 [10:15:46]Write i2c OK [10:15:46]MH_I2C_Read... [10:15:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:46]Read from MH i2c: E2 [10:15:46]MH_I2C_Read... [10:15:46]Read from MH i2c: E2 03 00 [10:15:46]MH_I2C_Read... [10:15:46]Read from MH i2c: E2 03 00 E6 20 00 90 00 7A [10:15:46]RAPDU: 90 00 [10:15:46]wFMCommunicate OK [10:15:46]wFMCommunicate request_size=10 [10:15:46]MH_SAM_APDU [10:15:46]CAPDU: 80 0D 02 02 05 90 F2 08 AD 7E [10:15:46]Write to MH i2c: E2 0D 00 E7 20 80 0D 02 02 05 00 90 F2 08 AD 7E 00 00 40 [10:15:46]Write i2c OK [10:15:46]MH_I2C_Read... [10:15:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:46]Read from MH i2c: E2 [10:15:46]MH_I2C_Read... [10:15:46]Read from MH i2c: E2 03 00 [10:15:46]MH_I2C_Read... [10:15:46]Read from MH i2c: E2 03 00 E7 20 00 90 00 7B [10:15:46]RAPDU: 90 00 [10:15:46]wFMCommunicate OK [10:15:46]wFMCommunicate request_size=4 [10:15:46]MH_SAM_APDU [10:15:46]CAPDU: 80 0D 03 02 [10:15:46]Write to MH i2c: E2 08 00 E8 20 80 0D 03 02 00 00 00 00 83 [10:15:46]Write i2c OK [10:15:46]MH_I2C_Read... [10:15:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:46]Read from MH i2c: E2 [10:15:46]MH_I2C_Read... [10:15:46]Read from MH i2c: E2 0B 00 [10:15:46]MH_I2C_Read... [10:15:46]Read from MH i2c: E2 0B 00 E8 20 00 9E 18 AC 84 52 B3 2A AE 90 00 47 [10:15:46]RAPDU: 9E 18 AC 84 52 B3 2A AE 90 00 [10:15:46]wFMCommunicate OK [10:15:46]SAM_PROTO_SignData done [10:15:46]FM_MakeSignedData done [10:15:46]CreateOFDProtocolMessage [10:15:46]wFMCommunicate request_size=4 [10:15:46]MH_SAM_APDU [10:15:46]CAPDU: 80 11 00 00 [10:15:46]Write to MH i2c: E2 08 00 E9 20 80 11 00 00 00 00 00 00 83 [10:15:46]Write i2c OK [10:15:46]MH_I2C_Read... [10:15:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:46]Read from MH i2c: E2 [10:15:46]MH_I2C_Read... [10:15:46]Read from MH i2c: E2 17 00 [10:15:46]MH_I2C_Read... [10:15:46]Read from MH i2c: E2 17 00 E9 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 D6 [10:15:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:15:46]wFMCommunicate OK [10:15:46]CreateOFDProtocolMessage done [10:15:46]OFDSenderStorePacket 76804 [10:15:46]StoreOFDPacket docnum=76804 [10:15:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 FE AE 07 01 4C 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 54 E7 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 04 2C 01 00 35 04 06 00 65 90 F2 08 AD 7E 9E 18 AC 84 52 B3 2A AE [10:15:46]CheckFolder [10:15:46]dirname=/storage/ofd_packets [10:15:46]CheckFolder done [10:15:46]ProducePacketName [10:15:46]name=ofd_packets/00076804 [10:15:46]NVStorageSaveData ofd_packets/00076804 [10:15:46]File name is /storage/ofd_packets/00076804 [10:15:46]Write 301 bytes [10:15:46]NVStorageSaveData done [10:15:46]OFDSenderStorePacket done [10:15:46]KKMCreateOFDPacket done [10:15:46]NVStorageSaveData kkm_last_timestamp [10:15:46]File name is /storage/kkm_last_timestamp [10:15:46]Write 4 bytes [10:15:46]NVStorageSaveData done [10:15:46]ExternCall_PrintAddStr [10:15:46]wPrintStart [10:15:46]Write to MH i2c: 01 00 00 EA 20 0A [10:15:46]Write i2c OK [10:15:46]MH_I2C_Read... [10:15:46]Read from MH i2c: 01 [10:15:46]MH_I2C_Read... [10:15:46]Read from MH i2c: 01 07 00 [10:15:46]MH_I2C_Read... [10:15:46]Read from MH i2c: 01 07 00 EA 20 00 00 00 00 00 FF 0F 1F [10:15:46]RasterBufferAndPrint [10:15:46]line Счет N : (1)191336 [10:15:46]line ИНН: 02508201610067 [10:15:46]line Контрольно-Кассовый Чек [10:15:46]line ПРОДАЖА [10:15:46]line ТРК (МРК, ГНК) : 22 [10:15:46]line Товар: 2710124130 [10:15:46]line Аи-92-К-5 [10:15:46]line 15.530 * 64.40 [10:15:46]line = 1000.13 [10:15:46]line НДС 12% НСП 1% [10:15:46]line > о реализуемом товаре [10:15:46]line ИТОГО: 1000.13 [10:15:46]line НСП 1% : 8.85 [10:15:46]line НДС 12% : 106.21 [10:15:46]line Наличными: 0.00 [10:15:46]line Безнал.: 1000.13 [10:15:46]line Место: АЗС № 106 "Партнер Нефть" [10:15:46]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [10:15:46]line СНО: Общий режим [10:15:46]line Чек 60 21.04.2024 10:15 [10:15:46]line Смена: 372 ФФД: 1.0 [10:15:46]line ЗНМ: 0300000141 [10:15:46]line РНМ: 0000000000091573 [10:15:46]line Версия ККМ: 001 [10:15:46]line Платежная система: О! деньги [10:15:46]line ФМ: 0000000000874652 [10:15:46]line ФД: 76804 [10:15:46]line ФПД: 111673210350974 [10:15:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T101548&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76804&fm=111673210350974&tin=02508201610067®Number=0000000000091573&sum=100013 [10:15:46]OFD Sender: Processing packet 76804 [packets to send 129, broken 128] [10:15:46]ProducePacketName [10:15:46]name=ofd_packets/00076804 [10:15:46]OFD Sender: To server: pG, [10:15:46]CommunicateWithHost lk.salyk.kg:30040 [10:15:46]ConnectInit lk.salyk.kg [10:15:46]written 0, free lines is 4095 [10:15:47]Write to MH i2c: 01 00 00 13 21 34 [10:15:47]Write i2c OK [10:15:47]MH_I2C_Read... [10:15:47]Read from MH i2c: 01 [10:15:47]MH_I2C_Read... [10:15:47]Read from MH i2c: 01 07 00 [10:15:47]MH_I2C_Read... [10:15:47]Read from MH i2c: 01 07 00 13 21 00 00 00 00 00 ED 0C 34 [10:15:47]RasterBufferAndPrint [10:15:47]line [10:15:47]line [10:15:47]line [10:15:47]line [10:15:47]line [10:15:47]written 0, free lines is 3315 [10:15:47]MH_Cut [10:15:47]Write to MH i2c: D1 01 00 1A 21 01 0D [10:15:47]Write i2c OK [10:15:47]MH_I2C_Read... [10:15:47]Read from MH i2c: D1 [10:15:47]MH_I2C_Read... [10:15:47]Read from MH i2c: D1 01 00 [10:15:47]MH_I2C_Read... [10:15:47]Read from MH i2c: D1 01 00 1A 21 00 0C [10:15:47]Write to MH i2c: 01 00 00 1B 21 3C [10:15:47]Write i2c OK [10:15:47]MH_I2C_Read... [10:15:48]*** Cut start [10:15:48]*** Partial cut [10:15:48]*** CUTSNS_PIN = 1 [10:15:48]*** CUTSNS_PIN = 0 [10:15:48]*** Brake cut motor [10:15:48]Connected sock=11 [10: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 34 36 35 32 0F 01 00 00 FE AE 07 01 4C 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 54 E7 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 04 2C 01 00 35 04 06 00 65 90 F2 08 AD 7E 9E 18 AC 84 52 B3 2A AE [10:15:48]Read from MH i2c: 01 [10:15:48]MH_I2C_Read... [10:15:48]*** Stop cut motor [10:15:48]*** Cut end [10:15:48]Read from MH i2c: 01 07 00 [10:15:48]MH_I2C_Read... [10:15:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 B5 E6 47 00 23 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 34 36 35 32 10 04 04 00 04 2C 01 00 F4 03 04 00 DB 8E 24 66 B6 04 01 00 00 9C AA 5D 57 E5 8C 30 29 [10:15:48]CommunicateWithHost err = 0 [10:15:48]CheckOFDResponse [10:15:48]1017 (14) - 77093643461234 [10:15:48]1041 (16) - 0000000000874652 [10:15:48]1040 (4) - 76804 [10:15:48]1012 (4) - 21.04.2024 03:58 [10:15:48]1206 (1) - 0 [10:15:48]OFD Sender: Remove packet 76804 [10:15:48]ProducePacketName [10:15:48]name=ofd_packets/00076804 [10:15:48]NVStorageDeleteData [10:15:48]Read from MH i2c: 01 07 00 1B 21 00 00 00 00 00 FF 0F 51 [10:15:48]process_action close_receipt done [10:15:48]requested_data is exist [10:15:48]produce_requested_data [10:15:48]requested_item fm.sn is exist - process it [10:15:48]wFMCommunicate request_size=4 [10:15:48]MH_SAM_APDU [10:15:48]CAPDU: 80 11 00 00 [10:15:48]Write to MH i2c: E2 08 00 1C 21 80 11 00 00 00 00 00 00 B7 [10:15:48]Write i2c OK [10:15:48]MH_I2C_Read... [10:15:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:48]Read from MH i2c: E2 [10:15:48]MH_I2C_Read... [10:15:48]Read from MH i2c: E2 17 00 [10:15:48]MH_I2C_Read... [10:15:48]Read from MH i2c: E2 17 00 1C 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 0A [10:15:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:15:48]wFMCommunicate OK [10:15:48]requested_item fd.num is exist - process it [10:15:48]SAM_PROTO_GetFieldsCounters [10:15:48]wFMCommunicate request_size=4 [10:15:48]MH_SAM_APDU [10:15:48]CAPDU: 80 13 00 00 [10:15:48]Write to MH i2c: E2 08 00 1D 21 80 13 00 00 00 00 00 00 BA [10:15:48]Write i2c OK [10:15:48]MH_I2C_Read... [10:15:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:49]Read from MH i2c: E2 [10:15:49]MH_I2C_Read... [10:15:49]Read from MH i2c: E2 62 00 [10:15:49]MH_I2C_Read... [10:15:49]Read from MH i2c: E2 62 00 1D 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 04 2C 01 00 0E 04 04 00 74 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 35 [10:15: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 04 2C 01 00 0E 04 04 00 74 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:15:49]wFMCommunicate OK [10:15:49]SAM_PROTO_GetFieldsCounters done [10:15:49]requested_item shift.num is exist - process it [10:15:49]requested_item shift.opened is exist - process it [10:15:49]req_shift_opened [10:15:49]FM_GetShiftState [10:15:49]SAM_PROTO_GetShiftState [10:15:49]wFMCommunicate request_size=4 [10:15:49]MH_SAM_APDU [10:15:49]CAPDU: 80 13 01 00 [10:15:49]Write to MH i2c: E2 08 00 1E 21 80 13 01 00 00 00 00 00 BC [10:15:49]Write i2c OK [10:15:49]MH_I2C_Read... [10:15:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:49]Read from MH i2c: E2 [10:15:49]MH_I2C_Read... [10:15:49]Read from MH i2c: E2 0E 00 [10:15:49]MH_I2C_Read... [10:15:49]Read from MH i2c: E2 0E 00 1E 21 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 03 [10:15:49]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [10:15:49]wFMCommunicate OK [10:15:49]SAM_PROTO_GetShiftState done [10:15:49]FM_GetShiftState done [10:15:49]req_shift_opened done [10:15:49]requested_item shift.open_date is exist - process it [10:15:49]req_shift_open_date [10:15:49]req_shift_open_date done [10:15:49]produce_requested_data done [10:15:49]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76804,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [10:15:49]process_action_free close_receipt [10:15:49]json_value_free [10:15:49]json_value_free done [10:15:49]process_json_proto returns [10:15:49]Send response to host [10:15:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76804,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [10:15:49]free response buf [10:15:49]execute_script done [10:15:49]execute_script returns [10:15:49]free content buf [10:15:49]Sock 9.Close socket [10:15:49]Sock 9.Thread stoped [10:15:49]OFD Sender: No OFD packet to send [10:15:54]OFD Sender: No OFD packet to send [10:15:59]OFD Sender: No OFD packet to send [10:16:04]OFD Sender: No OFD packet to send [10:16:09]OFD Sender: No OFD packet to send [10:16:14]OFD Sender: No OFD packet to send [10:16:14]accept exits with 7 [10:16:14]New connection [10:16:14]New thread 3067338084 created [10:16:14]Thread 3067481444 joined [10:16:14]Waiting for new connection... [10:16:14] Sock 7.Parse request [10:16:14]Sock 7.Check first char [10:16:14]Sock 7.First char is OK [10:16:14]request: POST /json_proto HTTP/1.0 [10:16:14]Method: POST [10:16:14]URL: /json_proto [10:16:14]Method is POST - this is cgi request [10:16:14]url: /json_proto [10:16:14]query_string will be loaded in cgi processing [10:16:14]execute_cgi json_proto POST (null) [10:16:14]execute_cgi path=json_proto method=POST [10:16:14]POST find Content-Length [10:16:14]Host: 172.17.62.5:8080 [10:16:14]Content-Length: 813 [10:16:14]Content-Type: application/json [10:16:14] [10:16:14]POST finish read [10:16:14]Found Content-Length = 813 [10:16:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:14]execute_script... [10:16: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)191337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:14]POST & json_proto [10:16:14]process_json_proto [10:16:14]json parsed OK: [10:16:14]protocol is kg_v1.0 [10:16:14]action value=close_receipt [10:16:14]process_action close_receipt [10:16:14]cmd_close_receipt [10:16:14]MH_GetDate [10:16:14]Write to MH i2c: F0 00 00 1F 21 2F [10:16:14]Write i2c OK [10:16:14]MH_I2C_Read... [10:16:14]Read from MH i2c: F0 [10:16:14]MH_I2C_Read... [10:16:14]Read from MH i2c: F0 09 00 [10:16:14]MH_I2C_Read... [10:16:14]Read from MH i2c: F0 09 00 1F 21 00 72 E7 24 66 F4 E9 65 64 C1 [10:16:14]GetLastDocTimeStamp 1713694548 [10:16:14]current date 1713694578 [10:16:14]FM_GetShiftState [10:16:14]SAM_PROTO_GetShiftState [10:16:14]wFMCommunicate request_size=4 [10:16:14]MH_SAM_APDU [10:16:14]CAPDU: 80 13 01 00 [10:16:14]Write to MH i2c: E2 08 00 20 21 80 13 01 00 00 00 00 00 BE [10:16:14]Write i2c OK [10:16:14]MH_I2C_Read... [10:16:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:14]Read from MH i2c: E2 [10:16:14]MH_I2C_Read... [10:16:14]Read from MH i2c: E2 0E 00 [10:16:14]MH_I2C_Read... [10:16:14]Read from MH i2c: E2 0E 00 20 21 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 05 [10:16:14]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [10:16:14]wFMCommunicate OK [10:16:14]SAM_PROTO_GetShiftState done [10:16:14]FM_GetShiftState done [10:16:14]opened in 1713658965 [10:16:14]opened+sec_in_day 1713745365 [10:16:14]quantity*price = 50009 [10:16:14]sum+1 = 50010 [10:16:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.09 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.09 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 61 21.04.2024 10:16 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 76805 ФПД: 240000177846937 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T101618&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76805&fm=240000177846937&tin=02508201610067®Number=0000000000091573&sum=50009 [10:16:15]StoreToDocumentArchive [10:16:15]shift 372 fd 76805 [10:16:15]save to /storage/0372/doc_00076805 [10:16:15]save last doc name /storage/0372/doc_00076805 to /storage/kkm_last_doc_name [10:16:15]save OK [10:16:15]Clear old archive folders... [10:16:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:16:15]tlvbuf is 01876090 [10:16:15]SAM_PROTO_ClearQueue [10:16:15]wFMCommunicate request_size=4 [10:16:15]MH_SAM_APDU [10:16:15]CAPDU: 80 09 00 00 [10:16:15]Write to MH i2c: E2 08 00 2D 21 80 09 00 00 00 00 00 00 C0 [10:16:15]Write i2c OK [10:16:15]MH_I2C_Read... [10:16:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:16:16]Read from MH i2c: E2 [10:16:16]MH_I2C_Read... [10:16:16]Read from MH i2c: E2 03 00 [10:16:16]MH_I2C_Read... [10:16:16]Read from MH i2c: E2 03 00 2D 21 00 90 00 C2 [10:16:16]RAPDU: 90 00 [10:16:16]wFMCommunicate OK [10:16:16]SAM_PROTO_ClearQueue done [10:16:16]KKMCreateOFDPacket [10:16:16]OFDProtocolAddRootSTLVToBuf [10:16:16]FM_MakeSignedData [10:16:16]FM_MakeSignedData [10:16:16]SAM_PROTO_SignData [10:16:16]wFMCommunicate request_size=4 [10:16:16]MH_SAM_APDU [10:16:16]CAPDU: 80 0D 01 02 [10:16:16]Write to MH i2c: E2 08 00 2E 21 80 0D 01 02 00 00 00 00 C8 [10:16:16]Write i2c OK [10:16:16]MH_I2C_Read... [10:16:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:16:16]Read from MH i2c: E2 [10:16:16]MH_I2C_Read... [10:16:16]Read from MH i2c: E2 03 00 [10:16:16]MH_I2C_Read... [10:16:16]Read from MH i2c: E2 03 00 2E 21 00 90 00 C3 [10:16:16]RAPDU: 90 00 [10:16:16]wFMCommunicate OK [10:16:16]wFMCommunicate request_size=255 [10:16:16]MH_SAM_APDU [10:16:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 72 E7 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 05 2C 01 00 35 04 06 00 DA 47 65 58 [10:16:16]Write to MH i2c: E2 02 01 2F 21 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 72 E7 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 05 2C 01 00 35 04 06 00 DA 47 65 58 00 00 29 [10:16:16]Write i2c OK [10:16:16]MH_I2C_Read... [10:16:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:16]Read from MH i2c: E2 [10:16:16]MH_I2C_Read... [10:16:16]Read from MH i2c: E2 03 00 [10:16:16]MH_I2C_Read... [10:16:16]Read from MH i2c: E2 03 00 2F 21 00 90 00 C4 [10:16:16]RAPDU: 90 00 [10:16:16]wFMCommunicate OK [10:16:16]wFMCommunicate request_size=7 [10:16:16]MH_SAM_APDU [10:16:16]CAPDU: 80 0D 02 02 02 BA 99 [10:16:16]Write to MH i2c: E2 0A 00 30 21 80 0D 02 02 02 00 BA 99 00 00 22 [10:16:16]Write i2c OK [10:16:16]MH_I2C_Read... [10:16:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:16]Read from MH i2c: E2 [10:16:16]MH_I2C_Read... [10:16:16]Read from MH i2c: E2 03 00 [10:16:16]MH_I2C_Read... [10:16:16]Read from MH i2c: E2 03 00 30 21 00 90 00 C5 [10:16:16]RAPDU: 90 00 [10:16:16]wFMCommunicate OK [10:16:16]wFMCommunicate request_size=4 [10:16:16]MH_SAM_APDU [10:16:16]CAPDU: 80 0D 03 02 [10:16:16]Write to MH i2c: E2 08 00 31 21 80 0D 03 02 00 00 00 00 CD [10:16:16]Write i2c OK [10:16:16]MH_I2C_Read... [10:16:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:16:16]Read from MH i2c: E2 [10:16:16]MH_I2C_Read... [10:16:16]Read from MH i2c: E2 0B 00 [10:16:16]MH_I2C_Read... [10:16:16]Read from MH i2c: E2 0B 00 31 21 00 CF D5 C7 0C 61 67 0A AF 90 00 C6 [10:16:16]RAPDU: CF D5 C7 0C 61 67 0A AF 90 00 [10:16:16]wFMCommunicate OK [10:16:16]SAM_PROTO_SignData done [10:16:16]FM_MakeSignedData done [10:16:16]CreateOFDProtocolMessage [10:16:16]wFMCommunicate request_size=4 [10:16:16]MH_SAM_APDU [10:16:16]CAPDU: 80 11 00 00 [10:16:16]Write to MH i2c: E2 08 00 32 21 80 11 00 00 00 00 00 00 CD [10:16:16]Write i2c OK [10:16:16]MH_I2C_Read... [10:16:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:16]Read from MH i2c: E2 [10:16:16]MH_I2C_Read... [10:16:16]Read from MH i2c: E2 17 00 [10:16:16]MH_I2C_Read... [10:16:16]Read from MH i2c: E2 17 00 32 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 20 [10:16:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:16:16]wFMCommunicate OK [10:16:16]CreateOFDProtocolMessage done [10:16:16]OFDSenderStorePacket 76805 [10:16:16]StoreOFDPacket docnum=76805 [10:16:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 3B 45 04 01 7C 7C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 72 E7 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 05 2C 01 00 35 04 06 00 DA 47 65 58 BA 99 CF D5 C7 0C 61 67 0A AF [10:16:16]CheckFolder [10:16:16]dirname=/storage/ofd_packets [10:16:16]CheckFolder done [10:16:16]ProducePacketName [10:16:16]name=ofd_packets/00076805 [10:16:16]NVStorageSaveData ofd_packets/00076805 [10:16:16]File name is /storage/ofd_packets/00076805 [10:16:16]Write 298 bytes [10:16:16]NVStorageSaveData done [10:16:16]OFDSenderStorePacket done [10:16:16]KKMCreateOFDPacket done [10:16:16]NVStorageSaveData kkm_last_timestamp [10:16:16]File name is /storage/kkm_last_timestamp [10:16:16]Write 4 bytes [10:16:16]NVStorageSaveData done [10:16:16]ExternCall_PrintAddStr [10:16:16]wPrintStart [10:16:16]Write to MH i2c: 01 00 00 33 21 54 [10:16:16]Write i2c OK [10:16:16]MH_I2C_Read... [10:16:16]Read from MH i2c: 01 [10:16:16]MH_I2C_Read... [10:16:16]Read from MH i2c: 01 07 00 [10:16:16]MH_I2C_Read... [10:16:16]Read from MH i2c: 01 07 00 33 21 00 00 00 00 00 FF 0F 69 [10:16:16]RasterBufferAndPrint [10:16:16]line Счет N : (1)191337 [10:16:16]line ИНН: 02508201610067 [10:16:16]line Контрольно-Кассовый Чек [10:16:16]line ПРОДАЖА [10:16:16]line ТРК (МРК, ГНК) : 61 [10:16:16]line Товар: 2710194210 [10:16:16]line ДТ-К-5 [10:16:16]line 6.860 * 72.90 [10:16:16]line = 500.09 [10:16:16]line НДС 12% НСП 1% [10:16:16]line > о реализуемом товаре [10:16:16]line ИТОГО: 500.09 [10:16:16]line НСП 1% : 4.43 [10:16:16]line НДС 12% : 53.11 [10:16:16]line Наличными: 0.00 [10:16:16]line Безнал.: 500.09 [10:16:16]line Место: АЗС № 106 "Партнер Нефть" [10:16:16]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [10:16:16]line СНО: Общий режим [10:16:16]line Чек 61 21.04.2024 10:16 [10:16:16]line Смена: 372 ФФД: 1.0 [10:16:16]line ЗНМ: 0300000141 [10:16:16]line РНМ: 0000000000091573 [10:16:16]line Версия ККМ: 001 [10:16:16]line Платежная система: Бакай Банк [10:16:16]line ФМ: 0000000000874652 [10:16:16]line ФД: 76805 [10:16:16]line ФПД: 240000177846937 [10:16:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T101618&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76805&fm=240000177846937&tin=02508201610067®Number=0000000000091573&sum=50009 [10:16:16]OFD Sender: Processing packet 76805 [packets to send 129, broken 128] [10:16:16]ProducePacketName [10:16:16]name=ofd_packets/00076805 [10:16:16]OFD Sender: To server: pG, [10:16:16]CommunicateWithHost lk.salyk.kg:30040 [10:16:16]ConnectInit lk.salyk.kg [10:16:16]written 0, free lines is 4095 [10:16:17]Connected sock=10 [10:16:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 3B 45 04 01 7C 7C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 72 E7 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 05 2C 01 00 35 04 06 00 DA 47 65 58 BA 99 CF D5 C7 0C 61 67 0A AF [10:16:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 30 A6 47 00 76 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 34 36 35 32 10 04 04 00 05 2C 01 00 F4 03 04 00 F8 8E 24 66 B6 04 01 00 00 31 AD 5D 99 A2 F6 8D B5 [10:16:17]CommunicateWithHost err = 0 [10:16:17]CheckOFDResponse [10:16:17]1017 (14) - 77093643461234 [10:16:17]1041 (16) - 0000000000874652 [10:16:17]1040 (4) - 76805 [10:16:17]1012 (4) - 21.04.2024 03:58 [10:16:17]1206 (1) - 0 [10:16:17]OFD Sender: Remove packet 76805 [10:16:17]ProducePacketName [10:16:17]name=ofd_packets/00076805 [10:16:17]NVStorageDeleteData [10:16:17]Write to MH i2c: 01 00 00 5C 21 7D [10:16:17]Write i2c OK [10:16:17]MH_I2C_Read... [10:16:17]Read from MH i2c: 01 [10:16:17]MH_I2C_Read... [10:16:17]Read from MH i2c: 01 07 00 [10:16:17]MH_I2C_Read... [10:16:17]Read from MH i2c: 01 07 00 5C 21 00 00 00 00 00 F7 0C 87 [10:16:17]RasterBufferAndPrint [10:16:17]line [10:16:17]line [10:16:17]line [10:16:17]line [10:16:17]line [10:16:17]written 0, free lines is 3325 [10:16:17]MH_Cut [10:16:17]Write to MH i2c: D1 01 00 63 21 01 56 [10:16:17]Write i2c OK [10:16:17]MH_I2C_Read... [10:16:17]Read from MH i2c: D1 [10:16:17]MH_I2C_Read... [10:16:17]Read from MH i2c: D1 01 00 [10:16:17]MH_I2C_Read... [10:16:17]Read from MH i2c: D1 01 00 63 21 00 55 [10:16:17]Write to MH i2c: 01 00 00 64 21 85 [10:16:17]Write i2c OK [10:16:17]MH_I2C_Read... [10:16:17]OFD Sender: No OFD packet to send [10:16:17]*** Cut start [10:16:17]*** Partial cut [10:16:17]*** CUTSNS_PIN = 1 [10:16:18]*** CUTSNS_PIN = 0 [10:16:18]*** Brake cut motor [10:16:18]Read from MH i2c: 01 [10:16:18]MH_I2C_Read... [10:16:18]*** Stop cut motor [10:16:18]*** Cut end [10:16:18]Read from MH i2c: 01 07 00 [10:16:18]MH_I2C_Read... [10:16:18]Read from MH i2c: 01 07 00 64 21 00 00 00 00 00 FF 0F 9A [10:16:18]process_action close_receipt done [10:16:18]requested_data is exist [10:16:18]produce_requested_data [10:16:18]requested_item fm.sn is exist - process it [10:16:18]wFMCommunicate request_size=4 [10:16:18]MH_SAM_APDU [10:16:18]CAPDU: 80 11 00 00 [10:16:18]Write to MH i2c: E2 08 00 65 21 80 11 00 00 00 00 00 00 00 [10:16:18]Write i2c OK [10:16:18]MH_I2C_Read... [10:16:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:18]Read from MH i2c: E2 [10:16:18]MH_I2C_Read... [10:16:18]Read from MH i2c: E2 17 00 [10:16:18]MH_I2C_Read... [10:16:18]Read from MH i2c: E2 17 00 65 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 53 [10:16:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:16:18]wFMCommunicate OK [10:16:18]requested_item fd.num is exist - process it [10:16:18]SAM_PROTO_GetFieldsCounters [10:16:18]wFMCommunicate request_size=4 [10:16:18]MH_SAM_APDU [10:16:18]CAPDU: 80 13 00 00 [10:16:18]Write to MH i2c: E2 08 00 66 21 80 13 00 00 00 00 00 00 03 [10:16:18]Write i2c OK [10:16:18]MH_I2C_Read... [10:16:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:18]Read from MH i2c: E2 [10:16:18]MH_I2C_Read... [10:16:18]Read from MH i2c: E2 62 00 [10:16:18]MH_I2C_Read... [10:16:18]Read from MH i2c: E2 62 00 66 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 05 2C 01 00 0E 04 04 00 74 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 82 [10:16: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 05 2C 01 00 0E 04 04 00 74 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:16:18]wFMCommunicate OK [10:16:18]SAM_PROTO_GetFieldsCounters done [10:16:18]requested_item shift.num is exist - process it [10:16:18]requested_item shift.opened is exist - process it [10:16:18]req_shift_opened [10:16:18]FM_GetShiftState [10:16:18]SAM_PROTO_GetShiftState [10:16:18]wFMCommunicate request_size=4 [10:16:18]MH_SAM_APDU [10:16:18]CAPDU: 80 13 01 00 [10:16:18]Write to MH i2c: E2 08 00 67 21 80 13 01 00 00 00 00 00 05 [10:16:18]Write i2c OK [10:16:18]MH_I2C_Read... [10:16:18]Read from MH i2c: E2 [10:16:18]MH_I2C_Read... [10:16:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:18]Read from MH i2c: E2 0E 00 [10:16:18]MH_I2C_Read... [10:16:18]Read from MH i2c: E2 0E 00 67 21 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 4C [10:16:18]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [10:16:18]wFMCommunicate OK [10:16:18]SAM_PROTO_GetShiftState done [10:16:18]FM_GetShiftState done [10:16:18]req_shift_opened done [10:16:18]requested_item shift.open_date is exist - process it [10:16:18]req_shift_open_date [10:16:18]req_shift_open_date done [10:16:18]produce_requested_data done [10:16:18]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76805,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [10:16:18]process_action_free close_receipt [10:16:18]json_value_free [10:16:18]json_value_free done [10:16:18]process_json_proto returns [10:16:18]Send response to host [10:16:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76805,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [10:16:18]free response buf [10:16:18]execute_script done [10:16:18]execute_script returns [10:16:18]free content buf [10:16:18]Sock 7.Close socket [10:16:18]Sock 7.Thread stoped [10:16:22]OFD Sender: No OFD packet to send [10:16:27]OFD Sender: No OFD packet to send [10:16:32]OFD Sender: No OFD packet to send [10:16:37]OFD Sender: No OFD packet to send [10:16:42]OFD Sender: No OFD packet to send [10:16:47]OFD Sender: No OFD packet to send [10:16:52]OFD Sender: No OFD packet to send [10:16:57]OFD Sender: No OFD packet to send [10:17:02]OFD Sender: No OFD packet to send [10:17:07]OFD Sender: No OFD packet to send [10:17:12]OFD Sender: No OFD packet to send [10:17:17]OFD Sender: No OFD packet to send [10:17:22]OFD Sender: No OFD packet to send [10:17:27]OFD Sender: No OFD packet to send [10:17:32]OFD Sender: No OFD packet to send [10:17:37]OFD Sender: No OFD packet to send [10:17:42]OFD Sender: No OFD packet to send [10:17:47]OFD Sender: No OFD packet to send [10:17:52]OFD Sender: No OFD packet to send [10:17:57]OFD Sender: No OFD packet to send [10:18:02]OFD Sender: No OFD packet to send [10:18:07]OFD Sender: No OFD packet to send [10:18:12]OFD Sender: No OFD packet to send [10:18:17]OFD Sender: No OFD packet to send [10:18:22]OFD Sender: No OFD packet to send [10:18:27]OFD Sender: No OFD packet to send [10:18:32]OFD Sender: No OFD packet to send [10:18:37]OFD Sender: No OFD packet to send [10:18:42]OFD Sender: No OFD packet to send [10:18:47]OFD Sender: No OFD packet to send [10:18:51]accept exits with 9 [10:18:51]New connection [10:18:51]New thread 3067481444 created [10:18:51]Thread 3067338084 joined [10:18:51]Waiting for new connection... [10:18:51] Sock 9.Parse request [10:18:51]Sock 9.Check first char [10:18:51]Sock 9.First char is OK [10:18:51]request: POST /json_proto HTTP/1.0 [10:18:51]Method: POST [10:18:51]URL: /json_proto [10:18:51]Method is POST - this is cgi request [10:18:51]url: /json_proto [10:18:51]query_string will be loaded in cgi processing [10:18:51]execute_cgi json_proto POST (null) [10:18:51]execute_cgi path=json_proto method=POST [10:18:51]POST find Content-Length [10:18:51]Host: 172.17.62.5:8080 [10:18:51]Content-Length: 987 [10:18:51]Content-Type: application/json [10:18:51] [10:18:51]POST finish read [10:18:51]Found Content-Length = 987 [10:18:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 20.520, "sum" : 650.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 20.52 \u0441\u043E\u043C", "deposit" : 3000.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:51]execute_script... [10:18: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)191335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 20.520, "sum" : 650.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 20.52 \u0441\u043E\u043C", "deposit" : 3000.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:51]POST & json_proto [10:18:51]process_json_proto [10:18:51]json parsed OK: [10:18:51]protocol is kg_v1.0 [10:18:51]action value=close_receipt [10:18:51]process_action close_receipt [10:18:51]cmd_close_receipt [10:18:51]MH_GetDate [10:18:51]Write to MH i2c: F0 00 00 68 21 78 [10:18:51]Write i2c OK [10:18:51]MH_I2C_Read... [10:18:51]Read from MH i2c: F0 [10:18:51]MH_I2C_Read... [10:18:51]Read from MH i2c: F0 09 00 [10:18:51]MH_I2C_Read... [10:18:51]Read from MH i2c: F0 09 00 68 21 00 0E E8 24 66 F4 E9 65 64 A7 [10:18:51]GetLastDocTimeStamp 1713694578 [10:18:51]current date 1713694734 [10:18:51]FM_GetShiftState [10:18:51]SAM_PROTO_GetShiftState [10:18:51]wFMCommunicate request_size=4 [10:18:51]MH_SAM_APDU [10:18:51]CAPDU: 80 13 01 00 [10:18:51]Write to MH i2c: E2 08 00 69 21 80 13 01 00 00 00 00 00 07 [10:18:51]Write i2c OK [10:18:51]MH_I2C_Read... [10:18:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:51]Read from MH i2c: E2 [10:18:51]MH_I2C_Read... [10:18:51]Read from MH i2c: E2 0E 00 [10:18:51]MH_I2C_Read... [10:18:51]Read from MH i2c: E2 0E 00 69 21 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 4E [10:18:51]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [10:18:51]wFMCommunicate OK [10:18:51]SAM_PROTO_GetShiftState done [10:18:51]FM_GetShiftState done [10:18:51]opened in 1713658965 [10:18:51]opened+sec_in_day 1713745365 [10:18:51]quantity*price = 65048 [10:18:51]sum+1 = 65049 [10:18:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 650.00 Внесено: 3000.00 СДАЧА: 2350.00 НСП 1% : 5.76 НДС 12% : 69.08 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 62 21.04.2024 10:18 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 20.52 сом ФМ: 0000000000874652 ФД: 76806 ФПД: 18791613949244 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T101854&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76806&fm=18791613949244&tin=02508201610067®Number=0000000000091573&sum=65000 [10:18:52]StoreToDocumentArchive [10:18:52]shift 372 fd 76806 [10:18:52]save to /storage/0372/doc_00076806 [10:18:52]save last doc name /storage/0372/doc_00076806 to /storage/kkm_last_doc_name [10:18:52]save OK [10:18:52]Clear old archive folders... [10:18:52]ProcessDocumentItem done err = 0, tmpTLVsize=250 [10:18:52]tlvbuf is B6FD6630 [10:18:52]SAM_PROTO_ClearQueue [10:18:52]wFMCommunicate request_size=4 [10:18:52]MH_SAM_APDU [10:18:52]CAPDU: 80 09 00 00 [10:18:52]Write to MH i2c: E2 08 00 76 21 80 09 00 00 00 00 00 00 09 [10:18:52]Write i2c OK [10:18:52]MH_I2C_Read... [10:18:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:18:52]Read from MH i2c: E2 [10:18:52]MH_I2C_Read... [10:18:52]Read from MH i2c: E2 03 00 [10:18:52]MH_I2C_Read... [10:18:52]Read from MH i2c: E2 03 00 76 21 00 90 00 0B [10:18:52]RAPDU: 90 00 [10:18:52]wFMCommunicate OK [10:18:52]SAM_PROTO_ClearQueue done [10:18:52]KKMCreateOFDPacket [10:18:52]OFDProtocolAddRootSTLVToBuf [10:18:52]FM_MakeSignedData [10:18:52]FM_MakeSignedData [10:18:52]SAM_PROTO_SignData [10:18:52]wFMCommunicate request_size=4 [10:18:52]MH_SAM_APDU [10:18:52]CAPDU: 80 0D 01 02 [10:18:52]Write to MH i2c: E2 08 00 77 21 80 0D 01 02 00 00 00 00 11 [10:18:52]Write i2c OK [10:18:52]MH_I2C_Read... [10:18:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:18:52]Read from MH i2c: E2 [10:18:52]MH_I2C_Read... [10:18:52]Read from MH i2c: E2 03 00 [10:18:52]MH_I2C_Read... [10:18:52]Read from MH i2c: E2 03 00 77 21 00 90 00 0C [10:18:52]RAPDU: 90 00 [10:18:52]wFMCommunicate OK [10:18:52]wFMCommunicate request_size=255 [10:18:52]MH_SAM_APDU [10:18:52]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 28 50 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 18 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 0E E8 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 06 2C 01 00 35 04 06 00 11 17 [10:18:52]Write to MH i2c: E2 02 01 78 21 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 28 50 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 18 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 0E E8 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 06 2C 01 00 35 04 06 00 11 17 00 00 6E [10:18:52]Write i2c OK [10:18:52]MH_I2C_Read... [10:18:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:52]Read from MH i2c: E2 [10:18:52]MH_I2C_Read... [10:18:52]Read from MH i2c: E2 03 00 [10:18:52]MH_I2C_Read... [10:18:52]Read from MH i2c: E2 03 00 78 21 00 90 00 0D [10:18:52]RAPDU: 90 00 [10:18:52]wFMCommunicate OK [10:18:52]wFMCommunicate request_size=9 [10:18:52]MH_SAM_APDU [10:18:52]CAPDU: 80 0D 02 02 04 43 79 65 3C [10:18:52]Write to MH i2c: E2 0C 00 79 21 80 0D 02 02 04 00 43 79 65 3C 00 00 79 [10:18:52]Write i2c OK [10:18:52]MH_I2C_Read... [10:18:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:52]Read from MH i2c: E2 [10:18:52]MH_I2C_Read... [10:18:52]Read from MH i2c: E2 03 00 [10:18:52]MH_I2C_Read... [10:18:52]Read from MH i2c: E2 03 00 79 21 00 90 00 0E [10:18:52]RAPDU: 90 00 [10:18:52]wFMCommunicate OK [10:18:52]wFMCommunicate request_size=4 [10:18:52]MH_SAM_APDU [10:18:52]CAPDU: 80 0D 03 02 [10:18:52]Write to MH i2c: E2 08 00 7A 21 80 0D 03 02 00 00 00 00 16 [10:18:52]Write i2c OK [10:18:52]MH_I2C_Read... [10:18:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:18:52]Read from MH i2c: E2 [10:18:52]MH_I2C_Read... [10:18:52]Read from MH i2c: E2 0B 00 [10:18:52]MH_I2C_Read... [10:18:52]Read from MH i2c: E2 0B 00 7A 21 00 E7 BD AC 5C 8C 41 84 A0 90 00 B4 [10:18:52]RAPDU: E7 BD AC 5C 8C 41 84 A0 90 00 [10:18:52]wFMCommunicate OK [10:18:52]SAM_PROTO_SignData done [10:18:52]FM_MakeSignedData done [10:18:52]CreateOFDProtocolMessage [10:18:52]wFMCommunicate request_size=4 [10:18:52]MH_SAM_APDU [10:18:52]CAPDU: 80 11 00 00 [10:18:52]Write to MH i2c: E2 08 00 7B 21 80 11 00 00 00 00 00 00 16 [10:18:52]Write i2c OK [10:18:52]MH_I2C_Read... [10:18:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:52]Read from MH i2c: E2 [10:18:52]MH_I2C_Read... [10:18:52]Read from MH i2c: E2 17 00 [10:18:52]MH_I2C_Read... [10:18:52]Read from MH i2c: E2 17 00 7B 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 69 [10:18:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:18:52]wFMCommunicate OK [10:18:52]CreateOFDProtocolMessage done [10:18:52]OFDSenderStorePacket 76806 [10:18:52]StoreOFDPacket docnum=76806 [10:18:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 9A 5D 06 01 F4 16 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 28 50 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 18 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 0E E8 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 06 2C 01 00 35 04 06 00 11 17 43 79 65 3C E7 BD AC 5C 8C 41 84 A0 [10:18:52]CheckFolder [10:18:52]dirname=/storage/ofd_packets [10:18:52]CheckFolder done [10:18:52]ProducePacketName [10:18:52]name=ofd_packets/00076806 [10:18:52]NVStorageSaveData ofd_packets/00076806 [10:18:52]File name is /storage/ofd_packets/00076806 [10:18:52]Write 300 bytes [10:18:52]NVStorageSaveData done [10:18:52]OFDSenderStorePacket done [10:18:52]KKMCreateOFDPacket done [10:18:52]NVStorageSaveData kkm_last_timestamp [10:18:52]File name is /storage/kkm_last_timestamp [10:18:52]Write 4 bytes [10:18:52]NVStorageSaveData done [10:18:52]ExternCall_PrintAddStr [10:18:52]wPrintStart [10:18:52]Write to MH i2c: 01 00 00 7C 21 9D [10:18:52]Write i2c OK [10:18:52]MH_I2C_Read... [10:18:52]Read from MH i2c: 01 [10:18:52]MH_I2C_Read... [10:18:52]Read from MH i2c: 01 07 00 [10:18:52]MH_I2C_Read... [10:18:52]Read from MH i2c: 01 07 00 7C 21 00 00 00 00 00 FF 0F B2 [10:18:52]RasterBufferAndPrint [10:18:52]line Счет N : (1)191335 [10:18:52]line ИНН: 02508201610067 [10:18:52]line Контрольно-Кассовый Чек [10:18:52]line ПРОДАЖА [10:18:52]line ТРК (МРК, ГНК) : 71 [10:18:52]line Товар: 2711190000 [10:18:52]line ГАЗ-К-5 [10:18:52]line 20.520 * 31.70 [10:18:52]line = 650.48 [10:18:52]line НДС 12% НСП 1% [10:18:52]line > о реализуемом товаре [10:18:52]line ОКРУГЛЕНИЕ: -0.48 [10:18:52]line ИТОГО: 650.00 [10:18:52]line Внесено: 3000.00 [10:18:52]line СДАЧА: 2350.00 [10:18:52]line НСП 1% : 5.76 [10:18:52]line НДС 12% : 69.08 [10:18:52]line Наличными: 650.00 [10:18:52]line Безнал.: 0.00 [10:18:52]line Место: АЗС № 106 "Партнер Нефть" [10:18:52]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [10:18:52]line СНО: Общий режим [10:18:52]line Чек 62 21.04.2024 10:18 [10:18:52]line Смена: 372 ФФД: 1.0 [10:18:52]line ЗНМ: 0300000141 [10:18:52]line РНМ: 0000000000091573 [10:18:52]line Версия ККМ: 001 [10:18:52]line [10:18:52]line Дисконтная программа [10:18:52]line СУГ [10:18:52]line номер 106 [10:18:52]line сэкономлено 20.52 сом [10:18:52]line ФМ: 0000000000874652 [10:18:52]line ФД: 76806 [10:18:52]line ФПД: 18791613949244 [10:18:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T101854&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76806&fm=18791613949244&tin=02508201610067®Number=0000000000091573&sum=65000 [10:18:53]OFD Sender: Processing packet 76806 [packets to send 129, broken 128] [10:18:53]ProducePacketName [10:18:53]name=ofd_packets/00076806 [10:18:53]OFD Sender: To server: pG, [10:18:53]CommunicateWithHost lk.salyk.kg:30040 [10:18:53]ConnectInit lk.salyk.kg [10:18:53]written 0, free lines is 4095 [10:18:53]Connected sock=10 [10:18:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 9A 5D 06 01 F4 16 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 28 50 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 18 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 0E E8 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 06 2C 01 00 35 04 06 00 11 17 43 79 65 3C E7 BD AC 5C 8C 41 84 A0 [10:18:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 A0 77 47 00 6F A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 06 2C 01 00 F4 03 04 00 94 8F 24 66 B6 04 01 00 00 A2 7A B2 9B 1B 2E 11 06 [10:18:53]CommunicateWithHost err = 0 [10:18:53]CheckOFDResponse [10:18:53]1017 (14) - 77093643461234 [10:18:53]1041 (16) - 0000000000874652 [10:18:53]1040 (4) - 76806 [10:18:53]1012 (4) - 21.04.2024 04:01 [10:18:53]1206 (1) - 0 [10:18:53]OFD Sender: Remove packet 76806 [10:18:53]ProducePacketName [10:18:53]name=ofd_packets/00076806 [10:18:53]NVStorageDeleteData [10:18:53]Write to MH i2c: 01 00 00 AB 21 CC [10:18:53]Write i2c OK [10:18:53]MH_I2C_Read... [10:18:53]Read from MH i2c: 01 [10:18:53]MH_I2C_Read... [10:18:53]Read from MH i2c: 01 07 00 [10:18:53]MH_I2C_Read... [10:18:53]Read from MH i2c: 01 07 00 AB 21 00 00 00 00 00 90 0C 6F [10:18:53]RasterBufferAndPrint [10:18:53]line [10:18:53]line [10:18:53]line [10:18:53]line [10:18:53]line [10:18:53]written 0, free lines is 3225 [10:18:53]MH_Cut [10:18:53]Write to MH i2c: D1 01 00 B2 21 01 A5 [10:18:53]Write i2c OK [10:18:53]MH_I2C_Read... [10:18:53]Read from MH i2c: D1 [10:18:53]MH_I2C_Read... [10:18:53]Read from MH i2c: D1 01 00 [10:18:53]MH_I2C_Read... [10:18:53]Read from MH i2c: D1 01 00 B2 21 00 A4 [10:18:53]Write to MH i2c: 01 00 00 B3 21 D4 [10:18:53]Write i2c OK [10:18:53]MH_I2C_Read... [10:18:53]OFD Sender: No OFD packet to send [10:18:54]*** Cut start [10:18:54]*** Partial cut [10:18:54]*** CUTSNS_PIN = 1 [10:18:54]*** CUTSNS_PIN = 0 [10:18:54]*** Brake cut motor [10:18:54]Read from MH i2c: 01 [10:18:54]MH_I2C_Read... [10:18:54]*** Stop cut motor [10:18:54]*** Cut end [10:18:54]Read from MH i2c: 01 07 00 [10:18:54]MH_I2C_Read... [10:18:54]Read from MH i2c: 01 07 00 B3 21 00 00 00 00 00 FF 0F E9 [10:18:54]process_action close_receipt done [10:18:54]requested_data is exist [10:18:54]produce_requested_data [10:18:54]requested_item fm.sn is exist - process it [10:18:54]wFMCommunicate request_size=4 [10:18:54]MH_SAM_APDU [10:18:54]CAPDU: 80 11 00 00 [10:18:54]Write to MH i2c: E2 08 00 B4 21 80 11 00 00 00 00 00 00 4F [10:18:54]Write i2c OK [10:18:54]MH_I2C_Read... [10:18:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:55]Read from MH i2c: E2 [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: E2 17 00 [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: E2 17 00 B4 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 A2 [10:18:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:18:55]wFMCommunicate OK [10:18:55]requested_item fd.num is exist - process it [10:18:55]SAM_PROTO_GetFieldsCounters [10:18:55]wFMCommunicate request_size=4 [10:18:55]MH_SAM_APDU [10:18:55]CAPDU: 80 13 00 00 [10:18:55]Write to MH i2c: E2 08 00 B5 21 80 13 00 00 00 00 00 00 52 [10:18:55]Write i2c OK [10:18:55]MH_I2C_Read... [10:18:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:18:55]Read from MH i2c: E2 [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: E2 62 00 [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: E2 62 00 B5 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 06 2C 01 00 0E 04 04 00 74 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 D5 [10:18: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 06 2C 01 00 0E 04 04 00 74 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:18:55]wFMCommunicate OK [10:18:55]SAM_PROTO_GetFieldsCounters done [10:18:55]requested_item shift.num is exist - process it [10:18:55]requested_item shift.opened is exist - process it [10:18:55]req_shift_opened [10:18:55]FM_GetShiftState [10:18:55]SAM_PROTO_GetShiftState [10:18:55]wFMCommunicate request_size=4 [10:18:55]MH_SAM_APDU [10:18:55]CAPDU: 80 13 01 00 [10:18:55]Write to MH i2c: E2 08 00 B6 21 80 13 01 00 00 00 00 00 54 [10:18:55]Write i2c OK [10:18:55]MH_I2C_Read... [10:18:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:55]Read from MH i2c: E2 [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: E2 0E 00 [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: E2 0E 00 B6 21 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 9B [10:18:55]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [10:18:55]wFMCommunicate OK [10:18:55]SAM_PROTO_GetShiftState done [10:18:55]FM_GetShiftState done [10:18:55]req_shift_opened done [10:18:55]requested_item shift.open_date is exist - process it [10:18:55]req_shift_open_date [10:18:55]req_shift_open_date done [10:18:55]produce_requested_data done [10:18:55]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76806,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [10:18:55]process_action_free close_receipt [10:18:55]json_value_free [10:18:55]json_value_free done [10:18:55]process_json_proto returns [10:18:55]Send response to host [10:18:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76806,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [10:18:55]free response buf [10:18:55]execute_script done [10:18:55]execute_script returns [10:18:55]free content buf [10:18:55]Sock 9.Close socket [10:18:55]Sock 9.Thread stoped [10:18:58]OFD Sender: No OFD packet to send [10:19:03]OFD Sender: No OFD packet to send [10:19:08]OFD Sender: No OFD packet to send [10:19:13]OFD Sender: No OFD packet to send [10:19:18]OFD Sender: No OFD packet to send [10:19:23]OFD Sender: No OFD packet to send [10:19:28]OFD Sender: No OFD packet to send [10:19:33]OFD Sender: No OFD packet to send [10:19:38]OFD Sender: No OFD packet to send [10:19:43]OFD Sender: No OFD packet to send [10:19:48]OFD Sender: No OFD packet to send [10:19:53]OFD Sender: No OFD packet to send [10:19:58]OFD Sender: No OFD packet to send [10:20:03]OFD Sender: No OFD packet to send [10:20:08]OFD Sender: No OFD packet to send [10:20:13]OFD Sender: No OFD packet to send [10:20:19]OFD Sender: No OFD packet to send [10:20:24]OFD Sender: No OFD packet to send [10:20:29]OFD Sender: No OFD packet to send [10:20:34]OFD Sender: No OFD packet to send [10:20:39]OFD Sender: No OFD packet to send [10:20:44]OFD Sender: No OFD packet to send [10:20:49]OFD Sender: No OFD packet to send [10:20:54]OFD Sender: No OFD packet to send [10:20:59]OFD Sender: No OFD packet to send [10:21:04]OFD Sender: No OFD packet to send [10:21:09]OFD Sender: No OFD packet to send [10:21:14]OFD Sender: No OFD packet to send [10:21:19]OFD Sender: No OFD packet to send [10:21:24]OFD Sender: No OFD packet to send [10:21:29]OFD Sender: No OFD packet to send [10:21:34]OFD Sender: No OFD packet to send [10:21:39]OFD Sender: No OFD packet to send [10:21:44]OFD Sender: No OFD packet to send [10:21:49]OFD Sender: No OFD packet to send [10:21:54]OFD Sender: No OFD packet to send [10:21:59]OFD Sender: No OFD packet to send [10:22:04]OFD Sender: No OFD packet to send [10:22:09]OFD Sender: No OFD packet to send [10:22:14]OFD Sender: No OFD packet to send [10:22:19]OFD Sender: No OFD packet to send [10:22:24]OFD Sender: No OFD packet to send [10:22:29]OFD Sender: No OFD packet to send [10:22:34]OFD Sender: No OFD packet to send [10:22:39]OFD Sender: No OFD packet to send [10:22:44]OFD Sender: No OFD packet to send [10:22:49]OFD Sender: No OFD packet to send [10:22:54]OFD Sender: No OFD packet to send [10:22:59]OFD Sender: No OFD packet to send [10:23:04]OFD Sender: No OFD packet to send [10:23:09]OFD Sender: No OFD packet to send [10:23:14]OFD Sender: No OFD packet to send [10:23:19]OFD Sender: No OFD packet to send [10:23:24]OFD Sender: No OFD packet to send [10:23:29]OFD Sender: No OFD packet to send [10:23:34]OFD Sender: No OFD packet to send [10:23:39]OFD Sender: No OFD packet to send [10:23:44]OFD Sender: No OFD packet to send [10:23:49]OFD Sender: No OFD packet to send [10:23:52]accept exits with 7 [10:23:52]New connection [10:23:52]New thread 3067338084 created [10:23:52]Thread 3067481444 joined [10:23:52]Waiting for new connection... [10:23:52] Sock 7.Parse request [10:23:52]Sock 7.Check first char [10:23:52]Sock 7.First char is OK [10:23:52]request: POST /json_proto HTTP/1.0 [10:23:52]Method: POST [10:23:52]URL: /json_proto [10:23:52]Method is POST - this is cgi request [10:23:52]url: /json_proto [10:23:52]query_string will be loaded in cgi processing [10:23:52]execute_cgi json_proto POST (null) [10:23:52]execute_cgi path=json_proto method=POST [10:23:52]POST find Content-Length [10:23:52]Host: 172.17.62.5:8080 [10:23:52]Content-Length: 678 [10:23:52]Content-Type: application/json [10:23:52] [10:23:52]POST finish read [10:23:52]Found Content-Length = 678 [10:23:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 10.100, "sum" : 650.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:52]execute_script... [10:23: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)191338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 10.100, "sum" : 650.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:52]POST & json_proto [10:23:52]process_json_proto [10:23:52]json parsed OK: [10:23:52]protocol is kg_v1.0 [10:23:52]action value=close_receipt [10:23:52]process_action close_receipt [10:23:52]cmd_close_receipt [10:23:52]MH_GetDate [10:23:52]Write to MH i2c: F0 00 00 B7 21 C7 [10:23:52]Write i2c OK [10:23:52]MH_I2C_Read... [10:23:52]Read from MH i2c: F0 [10:23:52]MH_I2C_Read... [10:23:52]Read from MH i2c: F0 09 00 [10:23:52]MH_I2C_Read... [10:23:52]Read from MH i2c: F0 09 00 B7 21 00 3C E9 24 66 F4 E9 65 64 25 [10:23:52]GetLastDocTimeStamp 1713694734 [10:23:52]current date 1713695036 [10:23:52]FM_GetShiftState [10:23:52]SAM_PROTO_GetShiftState [10:23:52]wFMCommunicate request_size=4 [10:23:52]MH_SAM_APDU [10:23:52]CAPDU: 80 13 01 00 [10:23:52]Write to MH i2c: E2 08 00 B8 21 80 13 01 00 00 00 00 00 56 [10:23:52]Write i2c OK [10:23:52]MH_I2C_Read... [10:23:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:53]Read from MH i2c: E2 [10:23:53]MH_I2C_Read... [10:23:53]Read from MH i2c: E2 0E 00 [10:23:53]MH_I2C_Read... [10:23:53]Read from MH i2c: E2 0E 00 B8 21 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 9D [10:23:53]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [10:23:53]wFMCommunicate OK [10:23:53]SAM_PROTO_GetShiftState done [10:23:53]FM_GetShiftState done [10:23:53]opened in 1713658965 [10:23:53]opened+sec_in_day 1713745365 [10:23:53]quantity*price = 65044 [10:23:53]sum+1 = 65045 [10:23:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.76 НДС 12% : 69.07 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 63 21.04.2024 10:23 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76807 ФПД: 259092599332118 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T102356&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76807&fm=259092599332118&tin=02508201610067®Number=0000000000091573&sum=65000 [10:23:54]StoreToDocumentArchive [10:23:54]shift 372 fd 76807 [10:23:54]save to /storage/0372/doc_00076807 [10:23:54]save last doc name /storage/0372/doc_00076807 to /storage/kkm_last_doc_name [10:23:54]save OK [10:23:54]Clear old archive folders... [10:23:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:23:54]tlvbuf is 018AC030 [10:23:54]SAM_PROTO_ClearQueue [10:23:54]wFMCommunicate request_size=4 [10:23:54]MH_SAM_APDU [10:23:54]CAPDU: 80 09 00 00 [10:23:54]Write to MH i2c: E2 08 00 C5 21 80 09 00 00 00 00 00 00 58 [10:23:54]Write i2c OK [10:23:54]MH_I2C_Read... [10:23:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:23:54]Read from MH i2c: E2 [10:23:54]MH_I2C_Read... [10:23:54]Read from MH i2c: E2 03 00 [10:23:54]MH_I2C_Read... [10:23:54]Read from MH i2c: E2 03 00 C5 21 00 90 00 5A [10:23:54]RAPDU: 90 00 [10:23:54]wFMCommunicate OK [10:23:54]SAM_PROTO_ClearQueue done [10:23:54]KKMCreateOFDPacket [10:23:54]OFDProtocolAddRootSTLVToBuf [10:23:54]FM_MakeSignedData [10:23:54]FM_MakeSignedData [10:23:54]SAM_PROTO_SignData [10:23:54]wFMCommunicate request_size=4 [10:23:54]MH_SAM_APDU [10:23:54]CAPDU: 80 0D 01 02 [10:23:54]Write to MH i2c: E2 08 00 C6 21 80 0D 01 02 00 00 00 00 60 [10:23:54]Write i2c OK [10:23:54]MH_I2C_Read... [10:23:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:54]Read from MH i2c: E2 [10:23:54]MH_I2C_Read... [10:23:54]Read from MH i2c: E2 03 00 [10:23:54]MH_I2C_Read... [10:23:54]Read from MH i2c: E2 03 00 C6 21 00 90 00 5B [10:23:54]RAPDU: 90 00 [10:23:54]wFMCommunicate OK [10:23:54]wFMCommunicate request_size=255 [10:23:54]MH_SAM_APDU [10:23: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 27 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 14 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 3C E9 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 07 2C 01 00 35 04 06 00 EB [10:23:54]Write to MH i2c: E2 02 01 C7 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 14 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 3C E9 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 07 2C 01 00 35 04 06 00 EB 00 00 FB [10:23:54]Write i2c OK [10:23:54]MH_I2C_Read... [10:23:54]OFD Sender: No OFD packet to send [10:23:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:54]Read from MH i2c: E2 [10:23:54]MH_I2C_Read... [10:23:54]Read from MH i2c: E2 03 00 [10:23:54]MH_I2C_Read... [10:23:54]Read from MH i2c: E2 03 00 C7 21 00 90 00 5C [10:23:54]RAPDU: 90 00 [10:23:54]wFMCommunicate OK [10:23:54]wFMCommunicate request_size=10 [10:23:54]MH_SAM_APDU [10:23:54]CAPDU: 80 0D 02 02 05 A4 B2 58 DD 16 [10:23:54]Write to MH i2c: E2 0D 00 C8 21 80 0D 02 02 05 00 A4 B2 58 DD 16 00 00 0E [10:23:54]Write i2c OK [10:23:54]MH_I2C_Read... [10:23:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:54]Read from MH i2c: E2 [10:23:54]MH_I2C_Read... [10:23:54]Read from MH i2c: E2 03 00 [10:23:54]MH_I2C_Read... [10:23:54]Read from MH i2c: E2 03 00 C8 21 00 90 00 5D [10:23:54]RAPDU: 90 00 [10:23:54]wFMCommunicate OK [10:23:54]wFMCommunicate request_size=4 [10:23:54]MH_SAM_APDU [10:23:54]CAPDU: 80 0D 03 02 [10:23:54]Write to MH i2c: E2 08 00 C9 21 80 0D 03 02 00 00 00 00 65 [10:23:54]Write i2c OK [10:23:54]MH_I2C_Read... [10:23:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:54]Read from MH i2c: E2 [10:23:54]MH_I2C_Read... [10:23:54]Read from MH i2c: E2 0B 00 [10:23:54]MH_I2C_Read... [10:23:54]Read from MH i2c: E2 0B 00 C9 21 00 3B C0 B1 2B 11 F4 13 A7 90 00 FC [10:23:54]RAPDU: 3B C0 B1 2B 11 F4 13 A7 90 00 [10:23:54]wFMCommunicate OK [10:23:54]SAM_PROTO_SignData done [10:23:54]FM_MakeSignedData done [10:23:54]CreateOFDProtocolMessage [10:23:54]wFMCommunicate request_size=4 [10:23:54]MH_SAM_APDU [10:23:54]CAPDU: 80 11 00 00 [10:23:54]Write to MH i2c: E2 08 00 CA 21 80 11 00 00 00 00 00 00 65 [10:23:54]Write i2c OK [10:23:54]MH_I2C_Read... [10:23:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:54]Read from MH i2c: E2 [10:23:54]MH_I2C_Read... [10:23:54]Read from MH i2c: E2 17 00 [10:23:54]MH_I2C_Read... [10:23:54]Read from MH i2c: E2 17 00 CA 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 B8 [10:23:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:23:54]wFMCommunicate OK [10:23:54]CreateOFDProtocolMessage done [10:23:54]OFDSenderStorePacket 76807 [10:23:54]StoreOFDPacket docnum=76807 [10:23:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 56 F0 07 01 00 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 14 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 3C E9 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 07 2C 01 00 35 04 06 00 EB A4 B2 58 DD 16 3B C0 B1 2B 11 F4 13 A7 [10:23:54]CheckFolder [10:23:54]dirname=/storage/ofd_packets [10:23:54]CheckFolder done [10:23:54]ProducePacketName [10:23:54]name=ofd_packets/00076807 [10:23:54]NVStorageSaveData ofd_packets/00076807 [10:23:54]File name is /storage/ofd_packets/00076807 [10:23:54]Write 301 bytes [10:23:54]NVStorageSaveData done [10:23:54]OFDSenderStorePacket done [10:23:54]KKMCreateOFDPacket done [10:23:54]NVStorageSaveData kkm_last_timestamp [10:23:54]File name is /storage/kkm_last_timestamp [10:23:54]Write 4 bytes [10:23:54]NVStorageSaveData done [10:23:54]ExternCall_PrintAddStr [10:23:54]wPrintStart [10:23:54]Write to MH i2c: 01 00 00 CB 21 EC [10:23:54]Write i2c OK [10:23:54]MH_I2C_Read... [10:23:54]Read from MH i2c: 01 [10:23:54]MH_I2C_Read... [10:23:54]Read from MH i2c: 01 07 00 [10:23:54]MH_I2C_Read... [10:23:54]Read from MH i2c: 01 07 00 CB 21 00 00 00 00 00 FF 0F 01 [10:23:54]RasterBufferAndPrint [10:23:54]line Счет N : (1)191338 [10:23:54]line ИНН: 02508201610067 [10:23:54]line Контрольно-Кассовый Чек [10:23:54]line ПРОДАЖА [10:23:54]line ТРК (МРК, ГНК) : 43 [10:23:54]line Товар: 2710124130 [10:23:54]line Аи-92-К-5 [10:23:54]line 10.100 * 64.40 [10:23:54]line = 650.44 [10:23:54]line НДС 12% НСП 1% [10:23:54]line > о реализуемом товаре [10:23:54]line ОКРУГЛЕНИЕ: -0.44 [10:23:54]line ИТОГО: 650.00 [10:23:54]line Внесено: 650.00 [10:23:54]line СДАЧА: 0.00 [10:23:54]line НСП 1% : 5.76 [10:23:54]line НДС 12% : 69.07 [10:23:54]line Наличными: 650.00 [10:23:54]line Безнал.: 0.00 [10:23:54]line Место: АЗС № 106 "Партнер Нефть" [10:23:54]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [10:23:54]line СНО: Общий режим [10:23:54]line Чек 63 21.04.2024 10:23 [10:23:54]line Смена: 372 ФФД: 1.0 [10:23:54]line ЗНМ: 0300000141 [10:23:54]line РНМ: 0000000000091573 [10:23:54]line Версия ККМ: 001 [10:23:54]line ФМ: 0000000000874652 [10:23:54]line ФД: 76807 [10:23:54]line ФПД: 259092599332118 [10:23:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T102356&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76807&fm=259092599332118&tin=02508201610067®Number=0000000000091573&sum=65000 [10:23:55]OFD Sender: Processing packet 76807 [packets to send 129, broken 128] [10:23:55]ProducePacketName [10:23:55]name=ofd_packets/00076807 [10:23:55]OFD Sender: To server: pG, [10:23:55]CommunicateWithHost lk.salyk.kg:30040 [10:23:55]ConnectInit lk.salyk.kg [10:23:55]written 0, free lines is 4095 [10:23:55]Connected sock=10 [10:23:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 56 F0 07 01 00 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 14 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 3C E9 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 07 2C 01 00 35 04 06 00 EB A4 B2 58 DD 16 3B C0 B1 2B 11 F4 13 A7 [10:23:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 4D 96 47 00 A2 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 34 36 35 32 10 04 04 00 07 2C 01 00 F4 03 04 00 C2 90 24 66 B6 04 01 00 00 1F F8 53 FB 83 C1 C1 B1 [10:23:55]CommunicateWithHost err = 0 [10:23:55]CheckOFDResponse [10:23:55]1017 (14) - 77093643461234 [10:23:55]1041 (16) - 0000000000874652 [10:23:55]1040 (4) - 76807 [10:23:55]1012 (4) - 21.04.2024 04:06 [10:23:55]1206 (1) - 0 [10:23:55]OFD Sender: Remove packet 76807 [10:23:55]ProducePacketName [10:23:55]name=ofd_packets/00076807 [10:23:55]NVStorageDeleteData [10:23:55]Write to MH i2c: 01 00 00 F5 21 16 [10:23:55]Write i2c OK [10:23:55]MH_I2C_Read... [10:23:55]Read from MH i2c: 01 [10:23:55]MH_I2C_Read... [10:23:55]Read from MH i2c: 01 07 00 [10:23:55]MH_I2C_Read... [10:23:55]Read from MH i2c: 01 07 00 F5 21 00 00 00 00 00 E3 0C 0C [10:23:55]RasterBufferAndPrint [10:23:55]line [10:23:55]line [10:23:55]line [10:23:55]line [10:23:55]line [10:23:55]written 0, free lines is 3305 [10:23:55]MH_Cut [10:23:55]Write to MH i2c: D1 01 00 FC 21 01 EF [10:23:55]Write i2c OK [10:23:55]MH_I2C_Read... [10:23:55]Read from MH i2c: D1 [10:23:55]MH_I2C_Read... [10:23:55]Read from MH i2c: D1 01 00 [10:23:55]MH_I2C_Read... [10:23:55]Read from MH i2c: D1 01 00 FC 21 00 EE [10:23:55]Write to MH i2c: 01 00 00 FD 21 1E [10:23:55]Write i2c OK [10:23:55]MH_I2C_Read... [10:23:55]OFD Sender: No OFD packet to send [10:23:56]*** Cut start [10:23:56]*** Partial cut [10:23:56]*** CUTSNS_PIN = 1 [10:23:56]*** CUTSNS_PIN = 0 [10:23:56]*** Brake cut motor [10:23:56]Read from MH i2c: 01 [10:23:56]MH_I2C_Read... [10:23:56]*** Stop cut motor [10:23:56]*** Cut end [10:23:56]Read from MH i2c: 01 07 00 [10:23:56]MH_I2C_Read... [10:23:56]Read from MH i2c: 01 07 00 FD 21 00 00 00 00 00 FF 0F 33 [10:23:56]process_action close_receipt done [10:23:56]requested_data is exist [10:23:56]produce_requested_data [10:23:56]requested_item fm.sn is exist - process it [10:23:56]wFMCommunicate request_size=4 [10:23:56]MH_SAM_APDU [10:23:56]CAPDU: 80 11 00 00 [10:23:56]Write to MH i2c: E2 08 00 FE 21 80 11 00 00 00 00 00 00 99 [10:23:56]Write i2c OK [10:23:56]MH_I2C_Read... [10:23:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:56]Read from MH i2c: E2 [10:23:56]MH_I2C_Read... [10:23:56]Read from MH i2c: E2 17 00 [10:23:56]MH_I2C_Read... [10:23:56]Read from MH i2c: E2 17 00 FE 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 EC [10:23:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:23:56]wFMCommunicate OK [10:23:56]requested_item fd.num is exist - process it [10:23:56]SAM_PROTO_GetFieldsCounters [10:23:56]wFMCommunicate request_size=4 [10:23:56]MH_SAM_APDU [10:23:56]CAPDU: 80 13 00 00 [10:23:56]Write to MH i2c: E2 08 00 FF 21 80 13 00 00 00 00 00 00 9C [10:23:56]Write i2c OK [10:23:56]MH_I2C_Read... [10:23:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:57]Read from MH i2c: E2 [10:23:57]MH_I2C_Read... [10:23:57]Read from MH i2c: E2 62 00 [10:23:57]MH_I2C_Read... [10:23:57]Read from MH i2c: E2 62 00 FF 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 07 2C 01 00 0E 04 04 00 74 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 23 [10:23: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 07 2C 01 00 0E 04 04 00 74 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 [10:23:57]wFMCommunicate OK [10:23:57]SAM_PROTO_GetFieldsCounters done [10:23:57]requested_item shift.num is exist - process it [10:23:57]requested_item shift.opened is exist - process it [10:23:57]req_shift_opened [10:23:57]FM_GetShiftState [10:23:57]SAM_PROTO_GetShiftState [10:23:57]wFMCommunicate request_size=4 [10:23:57]MH_SAM_APDU [10:23:57]CAPDU: 80 13 01 00 [10:23:57]Write to MH i2c: E2 08 00 00 22 80 13 01 00 00 00 00 00 9F [10:23:57]Write i2c OK [10:23:57]MH_I2C_Read... [10:23:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:57]Read from MH i2c: E2 [10:23:57]MH_I2C_Read... [10:23:57]Read from MH i2c: E2 0E 00 [10:23:57]MH_I2C_Read... [10:23:57]Read from MH i2c: E2 0E 00 00 22 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 E6 [10:23:57]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [10:23:57]wFMCommunicate OK [10:23:57]SAM_PROTO_GetShiftState done [10:23:57]FM_GetShiftState done [10:23:57]req_shift_opened done [10:23:57]requested_item shift.open_date is exist - process it [10:23:57]req_shift_open_date [10:23:57]req_shift_open_date done [10:23:57]produce_requested_data done [10:23:57]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76807,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [10:23:57]process_action_free close_receipt [10:23:57]json_value_free [10:23:57]json_value_free done [10:23:57]process_json_proto returns [10:23:57]Send response to host [10:23:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76807,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [10:23:57]free response buf [10:23:57]execute_script done [10:23:57]execute_script returns [10:23:57]free content buf [10:23:57]Sock 7.Close socket [10:23:57]Sock 7.Thread stoped [10:24:00]OFD Sender: No OFD packet to send [10:24:05]OFD Sender: No OFD packet to send [10:24:10]OFD Sender: No OFD packet to send [10:24:15]OFD Sender: No OFD packet to send [10:24:20]OFD Sender: No OFD packet to send [10:24:25]OFD Sender: No OFD packet to send [10:24:30]OFD Sender: No OFD packet to send [10:24:35]OFD Sender: No OFD packet to send [10:24:40]OFD Sender: No OFD packet to send [10:24:45]OFD Sender: No OFD packet to send [10:24:50]OFD Sender: No OFD packet to send [10:24:55]OFD Sender: No OFD packet to send [10:25:00]OFD Sender: No OFD packet to send [10:25:05]OFD Sender: No OFD packet to send [10:25:10]OFD Sender: No OFD packet to send [10:25:15]OFD Sender: No OFD packet to send [10:25:20]OFD Sender: No OFD packet to send [10:25:25]OFD Sender: No OFD packet to send [10:25:30]OFD Sender: No OFD packet to send [10:25:35]OFD Sender: No OFD packet to send [10:25:40]OFD Sender: No OFD packet to send [10:25:45]OFD Sender: No OFD packet to send [10:25:50]OFD Sender: No OFD packet to send [10:25:56]OFD Sender: No OFD packet to send [10:26:01]OFD Sender: No OFD packet to send [10:26:06]OFD Sender: No OFD packet to send [10:26:11]OFD Sender: No OFD packet to send [10:26:16]OFD Sender: No OFD packet to send [10:26:21]OFD Sender: No OFD packet to send [10:26:26]OFD Sender: No OFD packet to send [10:26:31]OFD Sender: No OFD packet to send [10:26:36]OFD Sender: No OFD packet to send [10:26:41]OFD Sender: No OFD packet to send [10:26:46]OFD Sender: No OFD packet to send [10:26:51]OFD Sender: No OFD packet to send [10:26:56]OFD Sender: No OFD packet to send [10:27:01]OFD Sender: No OFD packet to send [10:27:06]OFD Sender: No OFD packet to send [10:27:11]OFD Sender: No OFD packet to send [10:27:16]OFD Sender: No OFD packet to send [10:27:21]OFD Sender: No OFD packet to send [10:27:26]OFD Sender: No OFD packet to send [10:27:31]OFD Sender: No OFD packet to send [10:27:36]OFD Sender: No OFD packet to send [10:27:41]OFD Sender: No OFD packet to send [10:27:46]OFD Sender: No OFD packet to send [10:27:51]OFD Sender: No OFD packet to send [10:27:56]OFD Sender: No OFD packet to send [10:28:01]OFD Sender: No OFD packet to send [10:28:06]OFD Sender: No OFD packet to send [10:28:11]OFD Sender: No OFD packet to send [10:28:16]OFD Sender: No OFD packet to send [10:28:21]OFD Sender: No OFD packet to send [10:28:26]OFD Sender: No OFD packet to send [10:28:31]OFD Sender: No OFD packet to send [10:28:36]OFD Sender: No OFD packet to send [10:28:41]OFD Sender: No OFD packet to send [10:28:46]OFD Sender: No OFD packet to send [10:28:51]OFD Sender: No OFD packet to send [10:28:56]OFD Sender: No OFD packet to send [10:29:01]OFD Sender: No OFD packet to send [10:29:06]OFD Sender: No OFD packet to send [10:29:11]OFD Sender: No OFD packet to send [10:29:16]OFD Sender: No OFD packet to send [10:29:21]OFD Sender: No OFD packet to send [10:29:26]OFD Sender: No OFD packet to send [10:29:31]OFD Sender: No OFD packet to send [10:29:36]OFD Sender: No OFD packet to send [10:29:41]OFD Sender: No OFD packet to send [10:29:46]OFD Sender: No OFD packet to send [10:29:51]OFD Sender: No OFD packet to send [10:29:56]OFD Sender: No OFD packet to send [10:30:01]OFD Sender: No OFD packet to send [10:30:06]OFD Sender: No OFD packet to send [10:30:11]OFD Sender: No OFD packet to send [10:30:12]accept exits with 9 [10:30:12]New connection [10:30:12]New thread 3067481444 created [10:30:12]Thread 3067338084 joined [10:30:12]Waiting for new connection... [10:30:12] Sock 9.Parse request [10:30:12]Sock 9.Check first char [10:30:12]Sock 9.First char is OK [10:30:12]request: POST /json_proto HTTP/1.0 [10:30:12]Method: POST [10:30:12]URL: /json_proto [10:30:12]Method is POST - this is cgi request [10:30:12]url: /json_proto [10:30:12]query_string will be loaded in cgi processing [10:30:12]execute_cgi json_proto POST (null) [10:30:12]execute_cgi path=json_proto method=POST [10:30:12]POST find Content-Length [10:30:12]Host: 172.17.62.5:8080 [10:30:12]Content-Length: 798 [10:30:12]Content-Type: application/json [10:30:12] [10:30:12]POST finish read [10:30:12]Found Content-Length = 798 [10:30:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 9.180, "sum" : 600.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:12]execute_script... [10:30: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)191339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 9.180, "sum" : 600.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:12]POST & json_proto [10:30:12]process_json_proto [10:30:12]json parsed OK: [10:30:12]protocol is kg_v1.0 [10:30:12]action value=close_receipt [10:30:12]process_action close_receipt [10:30:12]cmd_close_receipt [10:30:12]MH_GetDate [10:30:12]Write to MH i2c: F0 00 00 01 22 12 [10:30:12]Write i2c OK [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: F0 [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: F0 09 00 [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: F0 09 00 01 22 00 B8 EA 24 66 F4 E9 65 64 ED [10:30:12]GetLastDocTimeStamp 1713695036 [10:30:12]current date 1713695416 [10:30:12]FM_GetShiftState [10:30:12]SAM_PROTO_GetShiftState [10:30:12]wFMCommunicate request_size=4 [10:30:12]MH_SAM_APDU [10:30:12]CAPDU: 80 13 01 00 [10:30:12]Write to MH i2c: E2 08 00 02 22 80 13 01 00 00 00 00 00 A1 [10:30:12]Write i2c OK [10:30:12]MH_I2C_Read... [10:30:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:12]Read from MH i2c: E2 [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: E2 0E 00 [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: E2 0E 00 02 22 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 E8 [10:30:12]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [10:30:12]wFMCommunicate OK [10:30:12]SAM_PROTO_GetShiftState done [10:30:12]FM_GetShiftState done [10:30:12]opened in 1713658965 [10:30:12]opened+sec_in_day 1713745365 [10:30:12]quantity*price = 60037 [10:30:12]sum+1 = 60038 [10:30:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.37 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 0.00 Безнал.: 600.37 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 64 21.04.2024 10:30 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 76808 ФПД: 116568109846845 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T103016&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76808&fm=116568109846845&tin=02508201610067®Number=0000000000091573&sum=60037 [10:30:13]StoreToDocumentArchive [10:30:13]shift 372 fd 76808 [10:30:13]save to /storage/0372/doc_00076808 [10:30:13]save last doc name /storage/0372/doc_00076808 to /storage/kkm_last_doc_name [10:30:13]save OK [10:30:13]Clear old archive folders... [10:30:13]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:30:13]tlvbuf is 018BD0D0 [10:30:13]SAM_PROTO_ClearQueue [10:30:13]wFMCommunicate request_size=4 [10:30:13]MH_SAM_APDU [10:30:13]CAPDU: 80 09 00 00 [10:30:13]Write to MH i2c: E2 08 00 0F 22 80 09 00 00 00 00 00 00 A3 [10:30:13]Write i2c OK [10:30:13]MH_I2C_Read... [10:30:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:30:13]Read from MH i2c: E2 [10:30:13]MH_I2C_Read... [10:30:13]Read from MH i2c: E2 03 00 [10:30:13]MH_I2C_Read... [10:30:13]Read from MH i2c: E2 03 00 0F 22 00 90 00 A5 [10:30:13]RAPDU: 90 00 [10:30:13]wFMCommunicate OK [10:30:13]SAM_PROTO_ClearQueue done [10:30:13]KKMCreateOFDPacket [10:30:13]OFDProtocolAddRootSTLVToBuf [10:30:13]FM_MakeSignedData [10:30:13]FM_MakeSignedData [10:30:13]SAM_PROTO_SignData [10:30:13]wFMCommunicate request_size=4 [10:30:13]MH_SAM_APDU [10:30:13]CAPDU: 80 0D 01 02 [10:30:13]Write to MH i2c: E2 08 00 10 22 80 0D 01 02 00 00 00 00 AB [10:30:13]Write i2c OK [10:30:13]MH_I2C_Read... [10:30:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:30:13]Read from MH i2c: E2 [10:30:13]MH_I2C_Read... [10:30:13]Read from MH i2c: E2 03 00 [10:30:13]MH_I2C_Read... [10:30:13]Read from MH i2c: E2 03 00 10 22 00 90 00 A6 [10:30:13]RAPDU: 90 00 [10:30:13]wFMCommunicate OK [10:30:13]wFMCommunicate request_size=255 [10:30:13]MH_SAM_APDU [10:30: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 23 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 85 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 85 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 E8 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 85 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 B8 EA 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 08 2C 01 00 35 04 06 00 [10:30:13]Write to MH i2c: E2 02 01 11 22 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 23 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 85 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 85 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 E8 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 85 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 B8 EA 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 08 2C 01 00 35 04 06 00 00 00 6E [10:30:13]Write i2c OK [10:30:13]MH_I2C_Read... [10:30:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:14]Read from MH i2c: E2 [10:30:14]MH_I2C_Read... [10:30:14]Read from MH i2c: E2 03 00 [10:30:14]MH_I2C_Read... [10:30:14]Read from MH i2c: E2 03 00 11 22 00 90 00 A7 [10:30:14]RAPDU: 90 00 [10:30:14]wFMCommunicate OK [10:30:14]wFMCommunicate request_size=11 [10:30:14]MH_SAM_APDU [10:30:14]CAPDU: 80 0D 02 02 06 6A 04 A0 C7 91 3D [10:30:14]Write to MH i2c: E2 0E 00 12 22 80 0D 02 02 06 00 6A 04 A0 C7 91 3D 00 00 5D [10:30:14]Write i2c OK [10:30:14]MH_I2C_Read... [10:30:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:14]Read from MH i2c: E2 [10:30:14]MH_I2C_Read... [10:30:14]Read from MH i2c: E2 03 00 [10:30:14]MH_I2C_Read... [10:30:14]Read from MH i2c: E2 03 00 12 22 00 90 00 A8 [10:30:14]RAPDU: 90 00 [10:30:14]wFMCommunicate OK [10:30:14]wFMCommunicate request_size=4 [10:30:14]MH_SAM_APDU [10:30:14]CAPDU: 80 0D 03 02 [10:30:14]Write to MH i2c: E2 08 00 13 22 80 0D 03 02 00 00 00 00 B0 [10:30:14]Write i2c OK [10:30:14]MH_I2C_Read... [10:30:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:30:14]Read from MH i2c: E2 [10:30:14]MH_I2C_Read... [10:30:14]Read from MH i2c: E2 0B 00 [10:30:14]MH_I2C_Read... [10:30:14]Read from MH i2c: E2 0B 00 13 22 00 31 7C 53 6E 32 04 39 A9 90 00 37 [10:30:14]RAPDU: 31 7C 53 6E 32 04 39 A9 90 00 [10:30:14]wFMCommunicate OK [10:30:14]SAM_PROTO_SignData done [10:30:14]FM_MakeSignedData done [10:30:14]CreateOFDProtocolMessage [10:30:14]wFMCommunicate request_size=4 [10:30:14]MH_SAM_APDU [10:30:14]CAPDU: 80 11 00 00 [10:30:14]Write to MH i2c: E2 08 00 14 22 80 11 00 00 00 00 00 00 B0 [10:30:14]Write i2c OK [10:30:14]MH_I2C_Read... [10:30:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:14]Read from MH i2c: E2 [10:30:14]MH_I2C_Read... [10:30:14]Read from MH i2c: E2 17 00 [10:30:14]MH_I2C_Read... [10:30:14]Read from MH i2c: E2 17 00 14 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 03 [10:30:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:30:14]wFMCommunicate OK [10:30:14]CreateOFDProtocolMessage done [10:30:14]OFDSenderStorePacket 76808 [10:30:14]StoreOFDPacket docnum=76808 [10:30:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 ED 01 08 01 21 7E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 23 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 85 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 85 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 E8 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 85 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 B8 EA 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 08 2C 01 00 35 04 06 00 6A 04 A0 C7 91 3D 31 7C 53 6E 32 04 39 A9 [10:30:14]CheckFolder [10:30:14]dirname=/storage/ofd_packets [10:30:14]CheckFolder done [10:30:14]ProducePacketName [10:30:14]name=ofd_packets/00076808 [10:30:14]NVStorageSaveData ofd_packets/00076808 [10:30:14]File name is /storage/ofd_packets/00076808 [10:30:14]Write 302 bytes [10:30:14]NVStorageSaveData done [10:30:14]OFDSenderStorePacket done [10:30:14]KKMCreateOFDPacket done [10:30:14]NVStorageSaveData kkm_last_timestamp [10:30:14]File name is /storage/kkm_last_timestamp [10:30:14]Write 4 bytes [10:30:14]NVStorageSaveData done [10:30:14]OFD Sender: Processing packet 76808 [packets to send 129, broken 128] [10:30:14]ProducePacketName [10:30:14]name=ofd_packets/00076808 [10:30:14]OFD Sender: To server: pG, [10:30:14]CommunicateWithHost lk.salyk.kg:30040 [10:30:14]ConnectInit lk.salyk.kg [10:30:14]ExternCall_PrintAddStr [10:30:14]wPrintStart [10:30:14]Write to MH i2c: 01 00 00 15 22 37 [10:30:14]Write i2c OK [10:30:14]MH_I2C_Read... [10:30:14]Read from MH i2c: 01 [10:30:14]MH_I2C_Read... [10:30:14]Read from MH i2c: 01 07 00 [10:30:14]MH_I2C_Read... [10:30:14]Read from MH i2c: 01 07 00 15 22 00 00 00 00 00 FF 0F 4C [10:30:14]RasterBufferAndPrint [10:30:14]line Счет N : (1)191339 [10:30:14]line ИНН: 02508201610067 [10:30:14]line Контрольно-Кассовый Чек [10:30:14]line ПРОДАЖА [10:30:14]line ТРК (МРК, ГНК) : 31 [10:30:14]line Товар: 2710124130 [10:30:14]line SUPER 92-К-5 [10:30:14]line 9.180 * 65.40 [10:30:14]line = 600.37 [10:30:14]line НДС 12% НСП 1% [10:30:14]line > о реализуемом товаре [10:30:14]line ИТОГО: 600.37 [10:30:14]line НСП 1% : 5.31 [10:30:14]line НДС 12% : 63.76 [10:30:14]line Наличными: 0.00 [10:30:14]line Безнал.: 600.37 [10:30:14]line Место: АЗС № 106 "Партнер Нефть" [10:30:14]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [10:30:14]line СНО: Общий режим [10:30:14]line Чек 64 21.04.2024 10:30 [10:30:14]line Смена: 372 ФФД: 1.0 [10:30:14]line ЗНМ: 0300000141 [10:30:14]line РНМ: 0000000000091573 [10:30:14]line Версия ККМ: 001 [10:30:14]line Платежная система: О! деньги [10:30:14]line ФМ: 0000000000874652 [10:30:14]line ФД: 76808 [10:30:14]line ФПД: 116568109846845 [10:30:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T103016&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76808&fm=116568109846845&tin=02508201610067®Number=0000000000091573&sum=60037 [10:30:14]Connected sock=11 [10:30:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 ED 01 08 01 21 7E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 23 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 85 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 85 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 E8 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 85 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 B8 EA 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 08 2C 01 00 35 04 06 00 6A 04 A0 C7 91 3D 31 7C 53 6E 32 04 39 A9 [10:30:14]written 0, free lines is 4095 [10:30:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 72 33 47 00 BD F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 08 2C 01 00 F4 03 04 00 3E 92 24 66 B6 04 01 00 00 28 30 F4 53 E7 1D BA 58 [10:30:14]CommunicateWithHost err = 0 [10:30:14]CheckOFDResponse [10:30:14]1017 (14) - 77093643461234 [10:30:14]1041 (16) - 0000000000874652 [10:30:14]1040 (4) - 76808 [10:30:14]1012 (4) - 21.04.2024 04:12 [10:30:14]1206 (1) - 0 [10:30:14]OFD Sender: Remove packet 76808 [10:30:14]ProducePacketName [10:30:14]name=ofd_packets/00076808 [10:30:14]NVStorageDeleteData [10:30:15]Write to MH i2c: 01 00 00 3E 22 60 [10:30:15]Write i2c OK [10:30:15]MH_I2C_Read... [10:30:15]Read from MH i2c: 01 [10:30:15]MH_I2C_Read... [10:30:15]Read from MH i2c: 01 07 00 [10:30:15]MH_I2C_Read... [10:30:15]Read from MH i2c: 01 07 00 3E 22 00 00 00 00 00 F7 0C 6A [10:30:15]RasterBufferAndPrint [10:30:15]line [10:30:15]line [10:30:15]line [10:30:15]line [10:30:15]line [10:30:15]written 0, free lines is 3326 [10:30:15]MH_Cut [10:30:15]Write to MH i2c: D1 01 00 45 22 01 39 [10:30:15]Write i2c OK [10:30:15]MH_I2C_Read... [10:30:15]Read from MH i2c: D1 [10:30:15]MH_I2C_Read... [10:30:15]Read from MH i2c: D1 01 00 [10:30:15]MH_I2C_Read... [10:30:15]Read from MH i2c: D1 01 00 45 22 00 38 [10:30:15]Write to MH i2c: 01 00 00 46 22 68 [10:30:15]Write i2c OK [10:30:15]MH_I2C_Read... [10:30:15]OFD Sender: No OFD packet to send [10:30:15]*** Cut start [10:30:15]*** Partial cut [10:30:15]*** CUTSNS_PIN = 1 [10:30:15]*** CUTSNS_PIN = 0 [10:30:16]*** Brake cut motor [10:30:16]Read from MH i2c: 01 [10:30:16]MH_I2C_Read... [10:30:16]*** Stop cut motor [10:30:16]*** Cut end [10:30:16]Read from MH i2c: 01 07 00 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: 01 07 00 46 22 00 00 00 00 00 FF 0F 7D [10:30:16]process_action close_receipt done [10:30:16]requested_data is exist [10:30:16]produce_requested_data [10:30:16]requested_item fm.sn is exist - process it [10:30:16]wFMCommunicate request_size=4 [10:30:16]MH_SAM_APDU [10:30:16]CAPDU: 80 11 00 00 [10:30:16]Write to MH i2c: E2 08 00 47 22 80 11 00 00 00 00 00 00 E3 [10:30:16]Write i2c OK [10:30:16]MH_I2C_Read... [10:30:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:16]Read from MH i2c: E2 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: E2 17 00 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: E2 17 00 47 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 36 [10:30:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:30:16]wFMCommunicate OK [10:30:16]requested_item fd.num is exist - process it [10:30:16]SAM_PROTO_GetFieldsCounters [10:30:16]wFMCommunicate request_size=4 [10:30:16]MH_SAM_APDU [10:30:16]CAPDU: 80 13 00 00 [10:30:16]Write to MH i2c: E2 08 00 48 22 80 13 00 00 00 00 00 00 E6 [10:30:16]Write i2c OK [10:30:16]MH_I2C_Read... [10:30:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:16]Read from MH i2c: E2 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: E2 62 00 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: E2 62 00 48 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 08 2C 01 00 0E 04 04 00 74 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 71 [10:30: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 08 2C 01 00 0E 04 04 00 74 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 [10:30:16]wFMCommunicate OK [10:30:16]SAM_PROTO_GetFieldsCounters done [10:30:16]requested_item shift.num is exist - process it [10:30:16]requested_item shift.opened is exist - process it [10:30:16]req_shift_opened [10:30:16]FM_GetShiftState [10:30:16]SAM_PROTO_GetShiftState [10:30:16]wFMCommunicate request_size=4 [10:30:16]MH_SAM_APDU [10:30:16]CAPDU: 80 13 01 00 [10:30:16]Write to MH i2c: E2 08 00 49 22 80 13 01 00 00 00 00 00 E8 [10:30:16]Write i2c OK [10:30:16]MH_I2C_Read... [10:30:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:16]Read from MH i2c: E2 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: E2 0E 00 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: E2 0E 00 49 22 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 2F [10:30:16]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [10:30:16]wFMCommunicate OK [10:30:16]SAM_PROTO_GetShiftState done [10:30:16]FM_GetShiftState done [10:30:16]req_shift_opened done [10:30:16]requested_item shift.open_date is exist - process it [10:30:16]req_shift_open_date [10:30:16]req_shift_open_date done [10:30:16]produce_requested_data done [10:30:16]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76808,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [10:30:16]process_action_free close_receipt [10:30:16]json_value_free [10:30:16]json_value_free done [10:30:16]process_json_proto returns [10:30:16]Send response to host [10:30:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76808,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [10:30:16]free response buf [10:30:16]execute_script done [10:30:16]execute_script returns [10:30:16]free content buf [10:30:16]Sock 9.Close socket [10:30:16]Sock 9.Thread stoped [10:30:20]OFD Sender: No OFD packet to send [10:30:25]OFD Sender: No OFD packet to send [10:30:30]OFD Sender: No OFD packet to send [10:30:35]OFD Sender: No OFD packet to send [10:30:40]OFD Sender: No OFD packet to send [10:30:45]OFD Sender: No OFD packet to send [10:30:50]OFD Sender: No OFD packet to send [10:30:55]OFD Sender: No OFD packet to send [10:31:00]OFD Sender: No OFD packet to send [10:31:05]OFD Sender: No OFD packet to send [10:31:10]OFD Sender: No OFD packet to send [10:31:11]accept exits with 7 [10:31:11]New connection [10:31:11]New thread 3067338084 created [10:31:11]Thread 3067481444 joined [10:31:11]Waiting for new connection... [10:31:11] Sock 7.Parse request [10:31:11]Sock 7.Check first char [10:31:11]Sock 7.First char is OK [10:31:11]request: POST /json_proto HTTP/1.0 [10:31:11]Method: POST [10:31:11]URL: /json_proto [10:31:11]Method is POST - this is cgi request [10:31:11]url: /json_proto [10:31:11]query_string will be loaded in cgi processing [10:31:11]execute_cgi json_proto POST (null) [10:31:11]execute_cgi path=json_proto method=POST [10:31:11]POST find Content-Length [10:31:11]Host: 172.17.62.5:8080 [10:31:11]Content-Length: 679 [10:31:11]Content-Type: application/json [10:31:11] [10:31:11]POST finish read [10:31:11]Found Content-Length = 679 [10:31:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:11]execute_script... [10:31: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)191341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:11]POST & json_proto [10:31:11]process_json_proto [10:31:11]json parsed OK: [10:31:11]protocol is kg_v1.0 [10:31:11]action value=close_receipt [10:31:11]process_action close_receipt [10:31:11]cmd_close_receipt [10:31:11]MH_GetDate [10:31:11]Write to MH i2c: F0 00 00 4A 22 5B [10:31:11]Write i2c OK [10:31:11]MH_I2C_Read... [10:31:11]Read from MH i2c: F0 [10:31:11]MH_I2C_Read... [10:31:11]Read from MH i2c: F0 09 00 [10:31:11]MH_I2C_Read... [10:31:11]Read from MH i2c: F0 09 00 4A 22 00 F3 EA 24 66 F4 E9 65 64 71 [10:31:11]GetLastDocTimeStamp 1713695416 [10:31:11]current date 1713695475 [10:31:11]FM_GetShiftState [10:31:11]SAM_PROTO_GetShiftState [10:31:11]wFMCommunicate request_size=4 [10:31:11]MH_SAM_APDU [10:31:11]CAPDU: 80 13 01 00 [10:31:11]Write to MH i2c: E2 08 00 4B 22 80 13 01 00 00 00 00 00 EA [10:31:11]Write i2c OK [10:31:11]MH_I2C_Read... [10:31:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:11]Read from MH i2c: E2 [10:31:11]MH_I2C_Read... [10:31:11]Read from MH i2c: E2 0E 00 [10:31:11]MH_I2C_Read... [10:31:11]Read from MH i2c: E2 0E 00 4B 22 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 31 [10:31:11]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [10:31:11]wFMCommunicate OK [10:31:11]SAM_PROTO_GetShiftState done [10:31:11]FM_GetShiftState done [10:31:11]opened in 1713658965 [10:31:11]opened+sec_in_day 1713745365 [10:31:11]quantity*price = 100018 [10:31:11]sum+1 = 100020 [10:31:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 65 21.04.2024 10:31 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76809 ФПД: 212849071126332 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T103115&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76809&fm=212849071126332&tin=02508201610067®Number=0000000000091573&sum=100000 [10:31:12]StoreToDocumentArchive [10:31:12]shift 372 fd 76809 [10:31:12]save to /storage/0372/doc_00076809 [10:31:12]save last doc name /storage/0372/doc_00076809 to /storage/kkm_last_doc_name [10:31:12]save OK [10:31:12]Clear old archive folders... [10:31:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:31:13]tlvbuf is B6F42CC0 [10:31:13]SAM_PROTO_ClearQueue [10:31:13]wFMCommunicate request_size=4 [10:31:13]MH_SAM_APDU [10:31:13]CAPDU: 80 09 00 00 [10:31:13]Write to MH i2c: E2 08 00 58 22 80 09 00 00 00 00 00 00 EC [10:31:13]Write i2c OK [10:31:13]MH_I2C_Read... [10:31:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:31:13]Read from MH i2c: E2 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: E2 03 00 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: E2 03 00 58 22 00 90 00 EE [10:31:13]RAPDU: 90 00 [10:31:13]wFMCommunicate OK [10:31:13]SAM_PROTO_ClearQueue done [10:31:13]KKMCreateOFDPacket [10:31:13]OFDProtocolAddRootSTLVToBuf [10:31:13]FM_MakeSignedData [10:31:13]FM_MakeSignedData [10:31:13]SAM_PROTO_SignData [10:31:13]wFMCommunicate request_size=4 [10:31:13]MH_SAM_APDU [10:31:13]CAPDU: 80 0D 01 02 [10:31:13]Write to MH i2c: E2 08 00 59 22 80 0D 01 02 00 00 00 00 F4 [10:31:13]Write i2c OK [10:31:13]MH_I2C_Read... [10:31:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:31:13]Read from MH i2c: E2 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: E2 03 00 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: E2 03 00 59 22 00 90 00 EF [10:31:13]RAPDU: 90 00 [10:31:13]wFMCommunicate OK [10:31:13]wFMCommunicate request_size=255 [10:31:13]MH_SAM_APDU [10:31:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 41 00 00 00 F4 03 04 00 F3 EA 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 09 2C 01 00 35 04 06 00 C1 95 C9 46 [10:31:13]Write to MH i2c: E2 02 01 5A 22 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 41 00 00 00 F4 03 04 00 F3 EA 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 09 2C 01 00 35 04 06 00 C1 95 C9 46 00 00 12 [10:31:13]Write i2c OK [10:31:13]MH_I2C_Read... [10:31:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:13]Read from MH i2c: E2 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: E2 03 00 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: E2 03 00 5A 22 00 90 00 F0 [10:31:13]RAPDU: 90 00 [10:31:13]wFMCommunicate OK [10:31:13]wFMCommunicate request_size=7 [10:31:13]MH_SAM_APDU [10:31:13]CAPDU: 80 0D 02 02 02 77 3C [10:31:13]Write to MH i2c: E2 0A 00 5B 22 80 0D 02 02 02 00 77 3C 00 00 AE [10:31:13]Write i2c OK [10:31:13]MH_I2C_Read... [10:31:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:13]Read from MH i2c: E2 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: E2 03 00 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: E2 03 00 5B 22 00 90 00 F1 [10:31:13]RAPDU: 90 00 [10:31:13]wFMCommunicate OK [10:31:13]wFMCommunicate request_size=4 [10:31:13]MH_SAM_APDU [10:31:13]CAPDU: 80 0D 03 02 [10:31:13]Write to MH i2c: E2 08 00 5C 22 80 0D 03 02 00 00 00 00 F9 [10:31:13]Write i2c OK [10:31:13]MH_I2C_Read... [10:31:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:31:13]Read from MH i2c: E2 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: E2 0B 00 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: E2 0B 00 5C 22 00 FC 81 4D C2 A6 6C 96 7A 90 00 A8 [10:31:13]RAPDU: FC 81 4D C2 A6 6C 96 7A 90 00 [10:31:13]wFMCommunicate OK [10:31:13]SAM_PROTO_SignData done [10:31:13]FM_MakeSignedData done [10:31:13]CreateOFDProtocolMessage [10:31:13]wFMCommunicate request_size=4 [10:31:13]MH_SAM_APDU [10:31:13]CAPDU: 80 11 00 00 [10:31:13]Write to MH i2c: E2 08 00 5D 22 80 11 00 00 00 00 00 00 F9 [10:31:13]Write i2c OK [10:31:13]MH_I2C_Read... [10:31:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:13]Read from MH i2c: E2 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: E2 17 00 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: E2 17 00 5D 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 4C [10:31:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:31:13]wFMCommunicate OK [10:31:13]CreateOFDProtocolMessage done [10:31:13]OFDSenderStorePacket 76809 [10:31:13]StoreOFDPacket docnum=76809 [10:31:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 50 5C 04 01 BA 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 F3 EA 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 09 2C 01 00 35 04 06 00 C1 95 C9 46 77 3C FC 81 4D C2 A6 6C 96 7A [10:31:13]CheckFolder [10:31:13]dirname=/storage/ofd_packets [10:31:13]CheckFolder done [10:31:13]ProducePacketName [10:31:13]name=ofd_packets/00076809 [10:31:13]NVStorageSaveData ofd_packets/00076809 [10:31:13]File name is /storage/ofd_packets/00076809 [10:31:13]Write 298 bytes [10:31:13]NVStorageSaveData done [10:31:13]OFDSenderStorePacket done [10:31:13]KKMCreateOFDPacket done [10:31:13]NVStorageSaveData kkm_last_timestamp [10:31:13]File name is /storage/kkm_last_timestamp [10:31:13]Write 4 bytes [10:31:13]NVStorageSaveData done [10:31:13]ExternCall_PrintAddStr [10:31:13]wPrintStart [10:31:13]Write to MH i2c: 01 00 00 5E 22 80 [10:31:13]Write i2c OK [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: 01 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: 01 07 00 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: 01 07 00 5E 22 00 00 00 00 00 FF 0F 95 [10:31:13]RasterBufferAndPrint [10:31:13]line Счет N : (1)191341 [10:31:13]line ИНН: 02508201610067 [10:31:13]line Контрольно-Кассовый Чек [10:31:13]line ПРОДАЖА [10:31:13]line ТРК (МРК, ГНК) : 51 [10:31:13]line Товар: 2710194210 [10:31:13]line ДТ-К-5 [10:31:13]line 13.720 * 72.90 [10:31:13]line = 1000.19 [10:31:13]line НДС 12% НСП 1% [10:31:13]line > о реализуемом товаре [10:31:13]line ОКРУГЛЕНИЕ: -0.19 [10:31:13]line ИТОГО: 1000.00 [10:31:13]line Внесено: 1000.00 [10:31:13]line СДАЧА: 0.00 [10:31:13]line НСП 1% : 8.85 [10:31:13]line НДС 12% : 106.21 [10:31:13]line Наличными: 1000.00 [10:31:13]line Безнал.: 0.00 [10:31:13]line Место: АЗС № 106 "Партнер Нефть" [10:31:13]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [10:31:13]line СНО: Общий режим [10:31:13]line Чек 65 21.04.2024 10:31 [10:31:13]line Смена: 372 ФФД: 1.0 [10:31:13]line ЗНМ: 0300000141 [10:31:13]line РНМ: 0000000000091573 [10:31:13]line Версия ККМ: 001 [10:31:13]line ФМ: 0000000000874652 [10:31:13]line ФД: 76809 [10:31:13]line ФПД: 212849071126332 [10:31:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T103115&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76809&fm=212849071126332&tin=02508201610067®Number=0000000000091573&sum=100000 [10:31:13]OFD Sender: Processing packet 76809 [packets to send 129, broken 128] [10:31:13]ProducePacketName [10:31:13]name=ofd_packets/00076809 [10:31:13]OFD Sender: To server: pG, [10:31:13]CommunicateWithHost lk.salyk.kg:30040 [10:31:13]ConnectInit lk.salyk.kg [10:31:13]written 0, free lines is 4095 [10:31:14]Connected sock=10 [10:31:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 50 5C 04 01 BA 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 F3 EA 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 09 2C 01 00 35 04 06 00 C1 95 C9 46 77 3C FC 81 4D C2 A6 6C 96 7A [10:31:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 34 70 47 00 A6 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 09 2C 01 00 F4 03 04 00 79 92 24 66 B6 04 01 00 00 69 03 3C BD 96 5A 8C 49 [10:31:14]CommunicateWithHost err = 0 [10:31:14]CheckOFDResponse [10:31:14]1017 (14) - 77093643461234 [10:31:14]1041 (16) - 0000000000874652 [10:31:14]1040 (4) - 76809 [10:31:14]1012 (4) - 21.04.2024 04:13 [10:31:14]1206 (1) - 0 [10:31:14]OFD Sender: Remove packet 76809 [10:31:14]ProducePacketName [10:31:14]name=ofd_packets/00076809 [10:31:14]NVStorageDeleteData [10:31:14]Write to MH i2c: 01 00 00 88 22 AA [10:31:14]Write i2c OK [10:31:14]MH_I2C_Read... [10:31:14]Read from MH i2c: 01 [10:31:14]MH_I2C_Read... [10:31:14]Read from MH i2c: 01 07 00 [10:31:14]MH_I2C_Read... [10:31:14]Read from MH i2c: 01 07 00 88 22 00 00 00 00 00 FE 0C BB [10:31:14]RasterBufferAndPrint [10:31:14]line [10:31:14]line [10:31:14]line [10:31:14]line [10:31:14]line [10:31:14]written 0, free lines is 3332 [10:31:14]MH_Cut [10:31:14]Write to MH i2c: D1 01 00 8F 22 01 83 [10:31:14]Write i2c OK [10:31:14]MH_I2C_Read... [10:31:14]Read from MH i2c: D1 [10:31:14]MH_I2C_Read... [10:31:14]Read from MH i2c: D1 01 00 [10:31:14]MH_I2C_Read... [10:31:14]Read from MH i2c: D1 01 00 8F 22 00 82 [10:31:14]Write to MH i2c: 01 00 00 90 22 B2 [10:31:14]Write i2c OK [10:31:14]MH_I2C_Read... [10:31:14]OFD Sender: No OFD packet to send [10:31:15]*** Cut start [10:31:15]*** Partial cut [10:31:15]*** CUTSNS_PIN = 1 [10:31:15]*** CUTSNS_PIN = 0 [10:31:15]*** Brake cut motor [10:31:15]Read from MH i2c: 01 [10:31:15]MH_I2C_Read... [10:31:15]*** Stop cut motor [10:31:15]*** Cut end [10:31:15]Read from MH i2c: 01 07 00 [10:31:15]MH_I2C_Read... [10:31:15]Read from MH i2c: 01 07 00 90 22 00 00 00 00 00 FF 0F C7 [10:31:15]process_action close_receipt done [10:31:15]requested_data is exist [10:31:15]produce_requested_data [10:31:15]requested_item fm.sn is exist - process it [10:31:15]wFMCommunicate request_size=4 [10:31:15]MH_SAM_APDU [10:31:15]CAPDU: 80 11 00 00 [10:31:15]Write to MH i2c: E2 08 00 91 22 80 11 00 00 00 00 00 00 2D [10:31:15]Write i2c OK [10:31:15]MH_I2C_Read... [10:31:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:15]Read from MH i2c: E2 [10:31:15]MH_I2C_Read... [10:31:15]Read from MH i2c: E2 17 00 [10:31:15]MH_I2C_Read... [10:31:15]Read from MH i2c: E2 17 00 91 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 80 [10:31:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:31:15]wFMCommunicate OK [10:31:15]requested_item fd.num is exist - process it [10:31:15]SAM_PROTO_GetFieldsCounters [10:31:15]wFMCommunicate request_size=4 [10:31:15]MH_SAM_APDU [10:31:15]CAPDU: 80 13 00 00 [10:31:15]Write to MH i2c: E2 08 00 92 22 80 13 00 00 00 00 00 00 30 [10:31:15]Write i2c OK [10:31:15]MH_I2C_Read... [10:31:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:31:15]Read from MH i2c: E2 [10:31:15]MH_I2C_Read... [10:31:15]Read from MH i2c: E2 62 00 [10:31:15]MH_I2C_Read... [10:31:15]Read from MH i2c: E2 62 00 92 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 09 2C 01 00 0E 04 04 00 74 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 BF [10:31: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 09 2C 01 00 0E 04 04 00 74 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 [10:31:15]wFMCommunicate OK [10:31:15]SAM_PROTO_GetFieldsCounters done [10:31:15]requested_item shift.num is exist - process it [10:31:15]requested_item shift.opened is exist - process it [10:31:15]req_shift_opened [10:31:15]FM_GetShiftState [10:31:15]SAM_PROTO_GetShiftState [10:31:15]wFMCommunicate request_size=4 [10:31:15]MH_SAM_APDU [10:31:15]CAPDU: 80 13 01 00 [10:31:15]Write to MH i2c: E2 08 00 93 22 80 13 01 00 00 00 00 00 32 [10:31:15]Write i2c OK [10:31:15]MH_I2C_Read... [10:31:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:15]Read from MH i2c: E2 [10:31:15]MH_I2C_Read... [10:31:15]Read from MH i2c: E2 0E 00 [10:31:15]MH_I2C_Read... [10:31:15]Read from MH i2c: E2 0E 00 93 22 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 79 [10:31:15]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [10:31:15]wFMCommunicate OK [10:31:15]SAM_PROTO_GetShiftState done [10:31:15]FM_GetShiftState done [10:31:15]req_shift_opened done [10:31:15]requested_item shift.open_date is exist - process it [10:31:15]req_shift_open_date [10:31:15]req_shift_open_date done [10:31:15]produce_requested_data done [10:31:15]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76809,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [10:31:15]process_action_free close_receipt [10:31:15]json_value_free [10:31:15]json_value_free done [10:31:15]process_json_proto returns [10:31:15]Send response to host [10:31:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76809,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [10:31:15]free response buf [10:31:15]execute_script done [10:31:15]execute_script returns [10:31:15]free content buf [10:31:15]Sock 7.Close socket [10:31:15]Sock 7.Thread stoped [10:31:16]accept exits with 9 [10:31:16]New connection [10:31:16]New thread 3067481444 created [10:31:16]Thread 3067338084 joined [10:31:16]Waiting for new connection... [10:31:16] Sock 9.Parse request [10:31:16]Sock 9.Check first char [10:31:16]Sock 9.First char is OK [10:31:16]request: POST /json_proto HTTP/1.0 [10:31:16]Method: POST [10:31:16]URL: /json_proto [10:31:16]Method is POST - this is cgi request [10:31:16]url: /json_proto [10:31:16]query_string will be loaded in cgi processing [10:31:16]execute_cgi json_proto POST (null) [10:31:16]execute_cgi path=json_proto method=POST [10:31:16]POST find Content-Length [10:31:16]Host: 172.17.62.5:8080 [10:31:16]Content-Length: 1181 [10:31:16]Content-Type: application/json [10:31:16] [10:31:16]POST finish read [10:31:16]Found Content-Length = 1181 [10:31:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041B\u044B\u043C\u0430\u0440\u0435\u0432\u0430 \u0412. \u000A\u0421\u0447\u0435\u0442 N : (1)191340\u000A21.04.2024 10:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\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: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3731070\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:16]execute_script... [10:31:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041B\u044B\u043C\u0430\u0440\u0435\u0432\u0430 \u0412. \u000A\u0421\u0447\u0435\u0442 N : (1)191340\u000A21.04.2024 10:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\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: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3731070\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:16]POST & json_proto [10:31:16]process_json_proto [10:31:16]json parsed OK: [10:31:16]protocol is kg_v1.0 [10:31:16]action value=print_text [10:31:16]process_action print_text [10:31:16]cmd_print_text [10:31:16]ExternCall_PrintAddStr [10:31:16]wPrintStart [10:31:16]Write to MH i2c: 01 00 00 94 22 B6 [10:31:16]Write i2c OK [10:31:16]MH_I2C_Read... [10:31:16]Read from MH i2c: 01 [10:31:16]MH_I2C_Read... [10:31:16]Read from MH i2c: 01 07 00 [10:31:16]MH_I2C_Read... [10:31:16]Read from MH i2c: 01 07 00 94 22 00 00 00 00 00 FF 0F CB [10:31:16]RasterBufferAndPrint [10:31:16]line *****ТОВАРНЫЙ ЧЕК***** [10:31:16]line АЗС 106 [10:31:16]line Партнер нефть [10:31:16]line 02508201610067 [10:31:16]line Кассир : Лымарева В. [10:31:16]line Счет N : (1)191340 [10:31:16]line 21.04.2024 10:12 [10:31:16]line ПРОДАЖА [10:31:16]line ТРК (МРК, ГНК): 23 [10:31:16]line Вид ГСМ : 2710194210 [10:31:16]line ДТ-К-5 [10:31:16]line 10.000 x 72.90 [10:31:16]line ИТОГ: 729.00 [10:31:16]line Тип оплаты: Талоны: Партнер нефть [10:31:16]line 3731070 [10:31:16]line ______________________ [10:31:16]line (подпись) [10:31:16]written 0, free lines is 4095 [10:31:16]Write to MH i2c: 01 00 00 A8 22 CA [10:31:16]Write i2c OK [10:31:16]MH_I2C_Read... [10:31:16]Read from MH i2c: 01 [10:31:16]MH_I2C_Read... [10:31:16]Read from MH i2c: 01 07 00 [10:31:16]MH_I2C_Read... [10:31:16]Read from MH i2c: 01 07 00 A8 22 00 00 00 00 00 0E 0E ED [10:31:16]RasterBufferAndPrint [10:31:16]line [10:31:16]line [10:31:16]line [10:31:16]line [10:31:16]line [10:31:16]written 0, free lines is 3601 [10:31:16]MH_Cut [10:31:16]Write to MH i2c: D1 01 00 AF 22 01 A3 [10:31:16]Write i2c OK [10:31:16]MH_I2C_Read... [10:31:16]Read from MH i2c: D1 [10:31:16]MH_I2C_Read... [10:31:16]Read from MH i2c: D1 01 00 [10:31:16]MH_I2C_Read... [10:31:16]Read from MH i2c: D1 01 00 AF 22 00 A2 [10:31:16]Write to MH i2c: 01 00 00 B0 22 D2 [10:31:16]Write i2c OK [10:31:16]MH_I2C_Read... [10:31:16]*** Cut start [10:31:16]*** Partial cut [10:31:16]*** CUTSNS_PIN = 1 [10:31:17]*** CUTSNS_PIN = 0 [10:31:17]*** Brake cut motor [10:31:17]Read from MH i2c: 01 [10:31:17]MH_I2C_Read... [10:31:17]*** Stop cut motor [10:31:17]*** Cut end [10:31:17]Read from MH i2c: 01 07 00 [10:31:17]MH_I2C_Read... [10:31:17]Read from MH i2c: 01 07 00 B0 22 00 00 00 00 00 FF 0F E7 [10:31:17]process_action print_text done [10:31:17]requested_data is exist [10:31:17]produce_requested_data [10:31:17]requested_item fm.sn is exist - process it [10:31:17]wFMCommunicate request_size=4 [10:31:17]MH_SAM_APDU [10:31:17]CAPDU: 80 11 00 00 [10:31:17]Write to MH i2c: E2 08 00 B1 22 80 11 00 00 00 00 00 00 4D [10:31:17]Write i2c OK [10:31:17]MH_I2C_Read... [10:31:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:17]Read from MH i2c: E2 [10:31:17]MH_I2C_Read... [10:31:17]Read from MH i2c: E2 17 00 [10:31:17]MH_I2C_Read... [10:31:17]Read from MH i2c: E2 17 00 B1 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 A0 [10:31:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:31:17]wFMCommunicate OK [10:31:17]requested_item fd.num is exist - process it [10:31:17]SAM_PROTO_GetFieldsCounters [10:31:17]wFMCommunicate request_size=4 [10:31:17]MH_SAM_APDU [10:31:17]CAPDU: 80 13 00 00 [10:31:17]Write to MH i2c: E2 08 00 B2 22 80 13 00 00 00 00 00 00 50 [10:31:17]Write i2c OK [10:31:17]MH_I2C_Read... [10:31:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:31:17]Read from MH i2c: E2 [10:31:17]MH_I2C_Read... [10:31:17]Read from MH i2c: E2 62 00 [10:31:17]MH_I2C_Read... [10:31:17]Read from MH i2c: E2 62 00 B2 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 09 2C 01 00 0E 04 04 00 74 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 DF [10:31: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 09 2C 01 00 0E 04 04 00 74 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 [10:31:17]wFMCommunicate OK [10:31:17]SAM_PROTO_GetFieldsCounters done [10:31:17]requested_item shift.num is exist - process it [10:31:17]requested_item shift.opened is exist - process it [10:31:17]req_shift_opened [10:31:17]FM_GetShiftState [10:31:17]SAM_PROTO_GetShiftState [10:31:17]wFMCommunicate request_size=4 [10:31:17]MH_SAM_APDU [10:31:17]CAPDU: 80 13 01 00 [10:31:17]Write to MH i2c: E2 08 00 B3 22 80 13 01 00 00 00 00 00 52 [10:31:17]Write i2c OK [10:31:17]MH_I2C_Read... [10:31:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:17]Read from MH i2c: E2 [10:31:17]MH_I2C_Read... [10:31:17]Read from MH i2c: E2 0E 00 [10:31:17]MH_I2C_Read... [10:31:17]Read from MH i2c: E2 0E 00 B3 22 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 99 [10:31:17]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [10:31:17]wFMCommunicate OK [10:31:17]SAM_PROTO_GetShiftState done [10:31:17]FM_GetShiftState done [10:31:17]req_shift_opened done [10:31:17]requested_item shift.open_date is exist - process it [10:31:17]req_shift_open_date [10:31:17]req_shift_open_date done [10:31:17]produce_requested_data done [10:31:17]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76809,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [10:31:17]process_action_free print_text [10:31:17]json_value_free [10:31:17]json_value_free done [10:31:17]process_json_proto returns [10:31:17]Send response to host [10:31:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76809,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [10:31:17]free response buf [10:31:17]execute_script done [10:31:17]execute_script returns [10:31:17]free content buf [10:31:17]Sock 9.Close socket [10:31:17]Sock 9.Thread stoped [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: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:24]OFD Sender: No OFD packet to send [10:33:29]OFD Sender: No OFD packet to send [10:33:34]OFD Sender: No OFD packet to send [10:33:39]OFD Sender: No OFD packet to send [10:33:44]OFD Sender: No OFD packet to send [10:33:49]OFD Sender: No OFD packet to send [10:33:54]OFD Sender: No OFD packet to send [10:33:59]OFD Sender: No OFD packet to send [10:34:04]OFD Sender: No OFD packet to send [10:34:09]OFD Sender: No OFD packet to send [10:34:14]OFD Sender: No OFD packet to send [10:34:19]OFD Sender: No OFD packet to send [10:34:24]OFD Sender: No OFD packet to send [10:34:29]OFD Sender: No OFD packet to send [10:34:34]OFD Sender: No OFD packet to send [10:34:39]OFD Sender: No OFD packet to send [10:34:44]OFD Sender: No OFD packet to send [10:34:49]OFD Sender: No OFD packet to send [10:34:54]OFD Sender: No OFD packet to send [10:34:55]accept exits with 10 [10:34:55]New connection [10:34:55]New thread 3067338084 created [10:34:55]Thread 3067481444 joined [10:34:55]Waiting for new connection... [10:34:55] Sock 10.Parse request [10:34:55]Sock 10.Check first char [10:34:55]Sock 10.First char is OK [10:34:55]request: POST /json_proto HTTP/1.0 [10:34:55]Method: POST [10:34:55]URL: /json_proto [10:34:55]Method is POST - this is cgi request [10:34:55]url: /json_proto [10:34:55]query_string will be loaded in cgi processing [10:34:55]execute_cgi json_proto POST (null) [10:34:55]execute_cgi path=json_proto method=POST [10:34:55]POST find Content-Length [10:34:55]Host: 172.17.62.5:8080 [10:34:55]Content-Length: 677 [10:34:55]Content-Type: application/json [10:34:55] [10:34:55]POST finish read [10:34:55]Found Content-Length = 677 [10:34:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 4.660, "sum" : 300.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:55]execute_script... [10:34: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)191342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 4.660, "sum" : 300.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:55]POST & json_proto [10:34:55]process_json_proto [10:34:55]json parsed OK: [10:34:55]protocol is kg_v1.0 [10:34:55]action value=close_receipt [10:34:55]process_action close_receipt [10:34:55]cmd_close_receipt [10:34:55]MH_GetDate [10:34:55]Write to MH i2c: F0 00 00 B4 22 C5 [10:34:55]Write i2c OK [10:34:55]MH_I2C_Read... [10:34:55]Read from MH i2c: F0 [10:34:55]MH_I2C_Read... [10:34:55]Read from MH i2c: F0 09 00 [10:34:55]MH_I2C_Read... [10:34:55]Read from MH i2c: F0 09 00 B4 22 00 D3 EB 24 66 F4 E9 65 64 BC [10:34:55]GetLastDocTimeStamp 1713695475 [10:34:55]current date 1713695699 [10:34:55]FM_GetShiftState [10:34:55]SAM_PROTO_GetShiftState [10:34:55]wFMCommunicate request_size=4 [10:34:55]MH_SAM_APDU [10:34:55]CAPDU: 80 13 01 00 [10:34:55]Write to MH i2c: E2 08 00 B5 22 80 13 01 00 00 00 00 00 54 [10:34:55]Write i2c OK [10:34:55]MH_I2C_Read... [10:34:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:55]Read from MH i2c: E2 [10:34:55]MH_I2C_Read... [10:34:55]Read from MH i2c: E2 0E 00 [10:34:55]MH_I2C_Read... [10:34:55]Read from MH i2c: E2 0E 00 B5 22 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 9B [10:34:55]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [10:34:55]wFMCommunicate OK [10:34:55]SAM_PROTO_GetShiftState done [10:34:55]FM_GetShiftState done [10:34:55]opened in 1713658965 [10:34:55]opened+sec_in_day 1713745365 [10:34:55]quantity*price = 30010 [10:34:55]sum+1 = 30011 [10:34:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 66 21.04.2024 10:34 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76810 ФПД: 107057309437102 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T103459&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76810&fm=107057309437102&tin=02508201610067®Number=0000000000091573&sum=30000 [10:34:56]StoreToDocumentArchive [10:34:56]shift 372 fd 76810 [10:34:56]save to /storage/0372/doc_00076810 [10:34:56]save last doc name /storage/0372/doc_00076810 to /storage/kkm_last_doc_name [10:34:56]save OK [10:34:56]Clear old archive folders... [10:34:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:34:56]tlvbuf is 018E41E0 [10:34:56]SAM_PROTO_ClearQueue [10:34:56]wFMCommunicate request_size=4 [10:34:56]MH_SAM_APDU [10:34:56]CAPDU: 80 09 00 00 [10:34:56]Write to MH i2c: E2 08 00 C2 22 80 09 00 00 00 00 00 00 56 [10:34:56]Write i2c OK [10:34:56]MH_I2C_Read... [10:34:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:34:56]Read from MH i2c: E2 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: E2 03 00 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: E2 03 00 C2 22 00 90 00 58 [10:34:56]RAPDU: 90 00 [10:34:56]wFMCommunicate OK [10:34:56]SAM_PROTO_ClearQueue done [10:34:56]KKMCreateOFDPacket [10:34:56]OFDProtocolAddRootSTLVToBuf [10:34:56]FM_MakeSignedData [10:34:56]FM_MakeSignedData [10:34:56]SAM_PROTO_SignData [10:34:56]wFMCommunicate request_size=4 [10:34:56]MH_SAM_APDU [10:34:56]CAPDU: 80 0D 01 02 [10:34:56]Write to MH i2c: E2 08 00 C3 22 80 0D 01 02 00 00 00 00 5E [10:34:56]Write i2c OK [10:34:56]MH_I2C_Read... [10:34:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:34:56]Read from MH i2c: E2 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: E2 03 00 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: E2 03 00 C3 22 00 90 00 59 [10:34:56]RAPDU: 90 00 [10:34:56]wFMCommunicate OK [10:34:56]wFMCommunicate request_size=255 [10:34:56]MH_SAM_APDU [10:34: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 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 42 00 00 00 F4 03 04 00 D3 EB 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0A 2C 01 00 35 04 06 00 61 [10:34:56]Write to MH i2c: E2 02 01 C4 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 42 00 00 00 F4 03 04 00 D3 EB 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0A 2C 01 00 35 04 06 00 61 00 00 09 [10:34:56]Write i2c OK [10:34:56]MH_I2C_Read... [10:34:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:56]Read from MH i2c: E2 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: E2 03 00 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: E2 03 00 C4 22 00 90 00 5A [10:34:56]RAPDU: 90 00 [10:34:56]wFMCommunicate OK [10:34:56]wFMCommunicate request_size=10 [10:34:56]MH_SAM_APDU [10:34:56]CAPDU: 80 0D 02 02 05 5E 38 E6 4C AE [10:34:56]Write to MH i2c: E2 0D 00 C5 22 80 0D 02 02 05 00 5E 38 E6 4C AE 00 00 E1 [10:34:56]Write i2c OK [10:34:56]MH_I2C_Read... [10:34:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:56]Read from MH i2c: E2 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: E2 03 00 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: E2 03 00 C5 22 00 90 00 5B [10:34:56]RAPDU: 90 00 [10:34:56]wFMCommunicate OK [10:34:56]wFMCommunicate request_size=4 [10:34:56]MH_SAM_APDU [10:34:56]CAPDU: 80 0D 03 02 [10:34:56]Write to MH i2c: E2 08 00 C6 22 80 0D 03 02 00 00 00 00 63 [10:34:56]Write i2c OK [10:34:56]MH_I2C_Read... [10:34:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:34:56]Read from MH i2c: E2 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: E2 0B 00 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: E2 0B 00 C6 22 00 38 71 EC AE A5 91 1A AF 90 00 A6 [10:34:56]RAPDU: 38 71 EC AE A5 91 1A AF 90 00 [10:34:56]wFMCommunicate OK [10:34:56]SAM_PROTO_SignData done [10:34:56]FM_MakeSignedData done [10:34:56]CreateOFDProtocolMessage [10:34:56]wFMCommunicate request_size=4 [10:34:56]MH_SAM_APDU [10:34:56]CAPDU: 80 11 00 00 [10:34:56]Write to MH i2c: E2 08 00 C7 22 80 11 00 00 00 00 00 00 63 [10:34:56]Write i2c OK [10:34:56]MH_I2C_Read... [10:34:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:56]Read from MH i2c: E2 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: E2 17 00 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: E2 17 00 C7 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 B6 [10:34:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:34:56]wFMCommunicate OK [10:34:56]CreateOFDProtocolMessage done [10:34:56]OFDSenderStorePacket 76810 [10:34:56]StoreOFDPacket docnum=76810 [10:34:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 79 89 07 01 11 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 42 00 00 00 F4 03 04 00 D3 EB 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0A 2C 01 00 35 04 06 00 61 5E 38 E6 4C AE 38 71 EC AE A5 91 1A AF [10:34:56]CheckFolder [10:34:56]dirname=/storage/ofd_packets [10:34:56]CheckFolder done [10:34:56]ProducePacketName [10:34:56]name=ofd_packets/00076810 [10:34:56]NVStorageSaveData ofd_packets/00076810 [10:34:56]File name is /storage/ofd_packets/00076810 [10:34:56]Write 301 bytes [10:34:56]NVStorageSaveData done [10:34:56]OFDSenderStorePacket done [10:34:56]KKMCreateOFDPacket done [10:34:56]NVStorageSaveData kkm_last_timestamp [10:34:56]File name is /storage/kkm_last_timestamp [10:34:56]Write 4 bytes [10:34:56]NVStorageSaveData done [10:34:56]ExternCall_PrintAddStr [10:34:56]wPrintStart [10:34:56]Write to MH i2c: 01 00 00 C8 22 EA [10:34:56]Write i2c OK [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: 01 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: 01 07 00 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: 01 07 00 C8 22 00 00 00 00 00 FF 0F FF [10:34:56]RasterBufferAndPrint [10:34:56]line Счет N : (1)191342 [10:34:56]line ИНН: 02508201610067 [10:34:56]line Контрольно-Кассовый Чек [10:34:56]line ПРОДАЖА [10:34:56]line ТРК (МРК, ГНК) : 43 [10:34:56]line Товар: 2710124130 [10:34:56]line Аи-92-К-5 [10:34:56]line 4.660 * 64.40 [10:34:56]line = 300.10 [10:34:56]line НДС 12% НСП 1% [10:34:56]line > о реализуемом товаре [10:34:56]line ОКРУГЛЕНИЕ: -0.10 [10:34:56]line ИТОГО: 300.00 [10:34:56]line Внесено: 300.00 [10:34:56]line СДАЧА: 0.00 [10:34:56]line НСП 1% : 2.66 [10:34:56]line НДС 12% : 31.87 [10:34:56]line Наличными: 300.00 [10:34:56]line Безнал.: 0.00 [10:34:56]line Место: АЗС № 106 "Партнер Нефть" [10:34:56]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [10:34:56]line СНО: Общий режим [10:34:56]line Чек 66 21.04.2024 10:34 [10:34:56]line Смена: 372 ФФД: 1.0 [10:34:56]line ЗНМ: 0300000141 [10:34:56]line РНМ: 0000000000091573 [10:34:56]line Версия ККМ: 001 [10:34:56]line ФМ: 0000000000874652 [10:34:56]line ФД: 76810 [10:34:56]line ФПД: 107057309437102 [10:34:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T103459&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76810&fm=107057309437102&tin=02508201610067®Number=0000000000091573&sum=30000 [10:34:57]written 0, free lines is 4095 [10:34:57]OFD Sender: Processing packet 76810 [packets to send 129, broken 128] [10:34:57]ProducePacketName [10:34:57]name=ofd_packets/00076810 [10:34:57]OFD Sender: To server: pG, [10:34:57]CommunicateWithHost lk.salyk.kg:30040 [10:34:57]ConnectInit lk.salyk.kg [10:34:57]Connected sock=9 [10:34:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 79 89 07 01 11 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 42 00 00 00 F4 03 04 00 D3 EB 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0A 2C 01 00 35 04 06 00 61 5E 38 E6 4C AE 38 71 EC AE A5 91 1A AF [10:34:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 44 ED 47 00 C5 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 34 36 35 32 10 04 04 00 0A 2C 01 00 F4 03 04 00 58 93 24 66 B6 04 01 00 00 60 58 AE 68 66 B1 45 DA [10:34:57]CommunicateWithHost err = 0 [10:34:57]CheckOFDResponse [10:34:57]1017 (14) - 77093643461234 [10:34:57]1041 (16) - 0000000000874652 [10:34:57]1040 (4) - 76810 [10:34:57]1012 (4) - 21.04.2024 04:17 [10:34:57]1206 (1) - 0 [10:34:57]OFD Sender: Remove packet 76810 [10:34:57]ProducePacketName [10:34:57]name=ofd_packets/00076810 [10:34:57]NVStorageDeleteData [10:34:57]Write to MH i2c: 01 00 00 F2 22 14 [10:34:57]Write i2c OK [10:34:57]MH_I2C_Read... [10:34:57]Read from MH i2c: 01 [10:34:57]MH_I2C_Read... [10:34:57]Read from MH i2c: 01 07 00 [10:34:57]MH_I2C_Read... [10:34:57]Read from MH i2c: 01 07 00 F2 22 00 00 00 00 00 E3 0C 0A [10:34:57]RasterBufferAndPrint [10:34:57]line [10:34:57]line [10:34:57]line [10:34:57]line [10:34:57]line [10:34:57]written 0, free lines is 3305 [10:34:57]MH_Cut [10:34:57]Write to MH i2c: D1 01 00 F9 22 01 ED [10:34:57]Write i2c OK [10:34:57]MH_I2C_Read... [10:34:57]Read from MH i2c: D1 [10:34:57]MH_I2C_Read... [10:34:57]Read from MH i2c: D1 01 00 [10:34:57]MH_I2C_Read... [10:34:57]Read from MH i2c: D1 01 00 F9 22 00 EC [10:34:57]Write to MH i2c: 01 00 00 FA 22 1C [10:34:57]Write i2c OK [10:34:57]MH_I2C_Read... [10:34:58]OFD Sender: No OFD packet to send [10:34:58]*** Cut start [10:34:58]*** Partial cut [10:34:58]*** CUTSNS_PIN = 1 [10:34:58]*** CUTSNS_PIN = 0 [10:34:58]*** Brake cut motor [10:34:59]Read from MH i2c: 01 [10:34:59]MH_I2C_Read... [10:34:59]*** Stop cut motor [10:34:59]*** Cut end [10:34:59]Read from MH i2c: 01 07 00 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: 01 07 00 FA 22 00 00 00 00 00 FF 0F 31 [10:34:59]process_action close_receipt done [10:34:59]requested_data is exist [10:34:59]produce_requested_data [10:34:59]requested_item fm.sn is exist - process it [10:34:59]wFMCommunicate request_size=4 [10:34:59]MH_SAM_APDU [10:34:59]CAPDU: 80 11 00 00 [10:34:59]Write to MH i2c: E2 08 00 FB 22 80 11 00 00 00 00 00 00 97 [10:34:59]Write i2c OK [10:34:59]MH_I2C_Read... [10:34:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:59]Read from MH i2c: E2 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: E2 17 00 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: E2 17 00 FB 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 EA [10:34:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:34:59]wFMCommunicate OK [10:34:59]requested_item fd.num is exist - process it [10:34:59]SAM_PROTO_GetFieldsCounters [10:34:59]wFMCommunicate request_size=4 [10:34:59]MH_SAM_APDU [10:34:59]CAPDU: 80 13 00 00 [10:34:59]Write to MH i2c: E2 08 00 FC 22 80 13 00 00 00 00 00 00 9A [10:34:59]Write i2c OK [10:34:59]MH_I2C_Read... [10:34:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:59]Read from MH i2c: E2 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: E2 62 00 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: E2 62 00 FC 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0A 2C 01 00 0E 04 04 00 74 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 2D [10:34: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0A 2C 01 00 0E 04 04 00 74 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 [10:34:59]wFMCommunicate OK [10:34:59]SAM_PROTO_GetFieldsCounters done [10:34:59]requested_item shift.num is exist - process it [10:34:59]requested_item shift.opened is exist - process it [10:34:59]req_shift_opened [10:34:59]FM_GetShiftState [10:34:59]SAM_PROTO_GetShiftState [10:34:59]wFMCommunicate request_size=4 [10:34:59]MH_SAM_APDU [10:34:59]CAPDU: 80 13 01 00 [10:34:59]Write to MH i2c: E2 08 00 FD 22 80 13 01 00 00 00 00 00 9C [10:34:59]Write i2c OK [10:34:59]MH_I2C_Read... [10:34:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:59]Read from MH i2c: E2 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: E2 0E 00 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: E2 0E 00 FD 22 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 E3 [10:34:59]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [10:34:59]wFMCommunicate OK [10:34:59]SAM_PROTO_GetShiftState done [10:34:59]FM_GetShiftState done [10:34:59]req_shift_opened done [10:34:59]requested_item shift.open_date is exist - process it [10:34:59]req_shift_open_date [10:34:59]req_shift_open_date done [10:34:59]produce_requested_data done [10:34:59]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76810,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [10:34:59]process_action_free close_receipt [10:34:59]json_value_free [10:34:59]json_value_free done [10:34:59]process_json_proto returns [10:34:59]Send response to host [10:34:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76810,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [10:34:59]free response buf [10:34:59]execute_script done [10:34:59]execute_script returns [10:34:59]free content buf [10:34:59]Sock 10.Close socket [10:34:59]Sock 10.Thread stoped [10:35:03]OFD Sender: No OFD packet to send [10:35:08]OFD Sender: No OFD packet to send [10:35:13]OFD Sender: No OFD packet to send [10:35:18]OFD Sender: No OFD packet to send [10:35:23]OFD Sender: No OFD packet to send [10:35:23]accept exits with 7 [10:35:23]New connection [10:35:23]New thread 3067481444 created [10:35:23]Thread 3067338084 joined [10:35:23]Waiting for new connection... [10:35:23] Sock 7.Parse request [10:35:23]Sock 7.Check first char [10:35:23]Sock 7.First char is OK [10:35:23]request: POST /json_proto HTTP/1.0 [10:35:23]Method: POST [10:35:23]URL: /json_proto [10:35:23]Method is POST - this is cgi request [10:35:23]url: /json_proto [10:35:23]query_string will be loaded in cgi processing [10:35:23]execute_cgi json_proto POST (null) [10:35:23]execute_cgi path=json_proto method=POST [10:35:23]POST find Content-Length [10:35:23]Host: 172.17.62.5:8080 [10:35:23]Content-Length: 677 [10:35:23]Content-Type: application/json [10:35:23] [10:35:23]POST finish read [10:35:23]Found Content-Length = 677 [10:35:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 5.440, "sum" : 350.34, "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:35:23]execute_script... [10:35: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)191343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 5.440, "sum" : 350.34, "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:35:23]POST & json_proto [10:35:23]process_json_proto [10:35:23]json parsed OK: [10:35:23]protocol is kg_v1.0 [10:35:23]action value=close_receipt [10:35:23]process_action close_receipt [10:35:23]cmd_close_receipt [10:35:23]MH_GetDate [10:35:23]Write to MH i2c: F0 00 00 FE 22 0F [10:35:23]Write i2c OK [10:35:23]MH_I2C_Read... [10:35:23]Read from MH i2c: F0 [10:35:23]MH_I2C_Read... [10:35:23]Read from MH i2c: F0 09 00 [10:35:23]MH_I2C_Read... [10:35:23]Read from MH i2c: F0 09 00 FE 22 00 EF EB 24 66 F4 E9 65 64 22 [10:35:23]GetLastDocTimeStamp 1713695699 [10:35:23]current date 1713695727 [10:35:23]FM_GetShiftState [10:35:23]SAM_PROTO_GetShiftState [10:35:23]wFMCommunicate request_size=4 [10:35:23]MH_SAM_APDU [10:35:23]CAPDU: 80 13 01 00 [10:35:23]Write to MH i2c: E2 08 00 FF 22 80 13 01 00 00 00 00 00 9E [10:35:23]Write i2c OK [10:35:23]MH_I2C_Read... [10:35:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:23]Read from MH i2c: E2 [10:35:23]MH_I2C_Read... [10:35:23]Read from MH i2c: E2 0E 00 [10:35:23]MH_I2C_Read... [10:35:23]Read from MH i2c: E2 0E 00 FF 22 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 E5 [10:35:23]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [10:35:23]wFMCommunicate OK [10:35:23]SAM_PROTO_GetShiftState done [10:35:23]FM_GetShiftState done [10:35:23]opened in 1713658965 [10:35:23]opened+sec_in_day 1713745365 [10:35:23]quantity*price = 35033 [10:35:23]sum+1 = 35035 [10:35:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.20 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 67 21.04.2024 10:35 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76811 ФПД: 38050922710482 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T103527&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76811&fm=38050922710482&tin=02508201610067®Number=0000000000091573&sum=35000 [10:35:24]StoreToDocumentArchive [10:35:24]shift 372 fd 76811 [10:35:24]save to /storage/0372/doc_00076811 [10:35:24]save last doc name /storage/0372/doc_00076811 to /storage/kkm_last_doc_name [10:35:24]save OK [10:35:24]Clear old archive folders... [10:35:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:35:24]tlvbuf is 01887E90 [10:35:24]SAM_PROTO_ClearQueue [10:35:24]wFMCommunicate request_size=4 [10:35:24]MH_SAM_APDU [10:35:24]CAPDU: 80 09 00 00 [10:35:24]Write to MH i2c: E2 08 00 0C 23 80 09 00 00 00 00 00 00 A1 [10:35:24]Write i2c OK [10:35:24]MH_I2C_Read... [10:35:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:35:25]Read from MH i2c: E2 [10:35:25]MH_I2C_Read... [10:35:25]Read from MH i2c: E2 03 00 [10:35:25]MH_I2C_Read... [10:35:25]Read from MH i2c: E2 03 00 0C 23 00 90 00 A3 [10:35:25]RAPDU: 90 00 [10:35:25]wFMCommunicate OK [10:35:25]SAM_PROTO_ClearQueue done [10:35:25]KKMCreateOFDPacket [10:35:25]OFDProtocolAddRootSTLVToBuf [10:35:25]FM_MakeSignedData [10:35:25]FM_MakeSignedData [10:35:25]SAM_PROTO_SignData [10:35:25]wFMCommunicate request_size=4 [10:35:25]MH_SAM_APDU [10:35:25]CAPDU: 80 0D 01 02 [10:35:25]Write to MH i2c: E2 08 00 0D 23 80 0D 01 02 00 00 00 00 A9 [10:35:25]Write i2c OK [10:35:25]MH_I2C_Read... [10:35:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:35:25]Read from MH i2c: E2 [10:35:25]MH_I2C_Read... [10:35:25]Read from MH i2c: E2 03 00 [10:35:25]MH_I2C_Read... [10:35:25]Read from MH i2c: E2 03 00 0D 23 00 90 00 A4 [10:35:25]RAPDU: 90 00 [10:35:25]wFMCommunicate OK [10:35:25]wFMCommunicate request_size=255 [10:35:25]MH_SAM_APDU [10:35: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 40 15 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 DA 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 88 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 43 00 00 00 F4 03 04 00 EF EB 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0B 2C 01 00 35 04 06 00 22 [10:35:25]Write to MH i2c: E2 02 01 0E 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 15 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 DA 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 88 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 43 00 00 00 F4 03 04 00 EF EB 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0B 2C 01 00 35 04 06 00 22 00 00 6E [10:35:25]Write i2c OK [10:35:25]MH_I2C_Read... [10:35:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:25]Read from MH i2c: E2 [10:35:25]MH_I2C_Read... [10:35:25]Read from MH i2c: E2 03 00 [10:35:25]MH_I2C_Read... [10:35:25]Read from MH i2c: E2 03 00 0E 23 00 90 00 A5 [10:35:25]RAPDU: 90 00 [10:35:25]wFMCommunicate OK [10:35:25]wFMCommunicate request_size=10 [10:35:25]MH_SAM_APDU [10:35:25]CAPDU: 80 0D 02 02 05 9B 6B BB 45 D2 [10:35:25]Write to MH i2c: E2 0D 00 0F 23 80 0D 02 02 05 00 9B 6B BB 45 D2 00 00 8E [10:35:25]Write i2c OK [10:35:25]MH_I2C_Read... [10:35:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:25]Read from MH i2c: E2 [10:35:25]MH_I2C_Read... [10:35:25]Read from MH i2c: E2 03 00 [10:35:25]MH_I2C_Read... [10:35:25]Read from MH i2c: E2 03 00 0F 23 00 90 00 A6 [10:35:25]RAPDU: 90 00 [10:35:25]wFMCommunicate OK [10:35:25]wFMCommunicate request_size=4 [10:35:25]MH_SAM_APDU [10:35:25]CAPDU: 80 0D 03 02 [10:35:25]Write to MH i2c: E2 08 00 10 23 80 0D 03 02 00 00 00 00 AE [10:35:25]Write i2c OK [10:35:25]MH_I2C_Read... [10:35:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:35:25]Read from MH i2c: E2 [10:35:25]MH_I2C_Read... [10:35:25]Read from MH i2c: E2 0B 00 [10:35:25]MH_I2C_Read... [10:35:25]Read from MH i2c: E2 0B 00 10 23 00 C1 B4 D7 40 7C 76 A9 9D 90 00 73 [10:35:25]RAPDU: C1 B4 D7 40 7C 76 A9 9D 90 00 [10:35:25]wFMCommunicate OK [10:35:25]SAM_PROTO_SignData done [10:35:25]FM_MakeSignedData done [10:35:25]CreateOFDProtocolMessage [10:35:25]wFMCommunicate request_size=4 [10:35:25]MH_SAM_APDU [10:35:25]CAPDU: 80 11 00 00 [10:35:25]Write to MH i2c: E2 08 00 11 23 80 11 00 00 00 00 00 00 AE [10:35:25]Write i2c OK [10:35:25]MH_I2C_Read... [10:35:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:25]Read from MH i2c: E2 [10:35:25]MH_I2C_Read... [10:35:25]Read from MH i2c: E2 17 00 [10:35:25]MH_I2C_Read... [10:35:25]Read from MH i2c: E2 17 00 11 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 01 [10:35:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:35:25]wFMCommunicate OK [10:35:25]CreateOFDProtocolMessage done [10:35:25]OFDSenderStorePacket 76811 [10:35:25]StoreOFDPacket docnum=76811 [10:35:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 A0 1E 07 01 38 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 15 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 DA 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 88 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 43 00 00 00 F4 03 04 00 EF EB 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0B 2C 01 00 35 04 06 00 22 9B 6B BB 45 D2 C1 B4 D7 40 7C 76 A9 9D [10:35:25]CheckFolder [10:35:25]dirname=/storage/ofd_packets [10:35:25]CheckFolder done [10:35:25]ProducePacketName [10:35:25]name=ofd_packets/00076811 [10:35:25]NVStorageSaveData ofd_packets/00076811 [10:35:25]File name is /storage/ofd_packets/00076811 [10:35:25]Write 301 bytes [10:35:25]NVStorageSaveData done [10:35:25]OFDSenderStorePacket done [10:35:25]KKMCreateOFDPacket done [10:35:25]NVStorageSaveData kkm_last_timestamp [10:35:25]File name is /storage/kkm_last_timestamp [10:35:25]Write 4 bytes [10:35:25]NVStorageSaveData done [10:35:25]ExternCall_PrintAddStr [10:35:25]wPrintStart [10:35:25]Write to MH i2c: 01 00 00 12 23 35 [10:35:25]Write i2c OK [10:35:25]MH_I2C_Read... [10:35:25]Read from MH i2c: 01 [10:35:25]MH_I2C_Read... [10:35:25]Read from MH i2c: 01 07 00 [10:35:25]MH_I2C_Read... [10:35:25]Read from MH i2c: 01 07 00 12 23 00 00 00 00 00 FF 0F 4A [10:35:25]RasterBufferAndPrint [10:35:25]line Счет N : (1)191343 [10:35:25]line ИНН: 02508201610067 [10:35:25]line Контрольно-Кассовый Чек [10:35:25]line ПРОДАЖА [10:35:25]line ТРК (МРК, ГНК) : 22 [10:35:25]line Товар: 2710124130 [10:35:25]line Аи-92-К-5 [10:35:25]line 5.440 * 64.40 [10:35:25]line = 350.34 [10:35:25]line НДС 12% НСП 1% [10:35:25]line > о реализуемом товаре [10:35:25]line ОКРУГЛЕНИЕ: -0.34 [10:35:25]line ИТОГО: 350.00 [10:35:25]line Внесено: 350.00 [10:35:25]line СДАЧА: 0.00 [10:35:25]line НСП 1% : 3.10 [10:35:25]line НДС 12% : 37.20 [10:35:25]line Наличными: 350.00 [10:35:25]line Безнал.: 0.00 [10:35:25]line Место: АЗС № 106 "Партнер Нефть" [10:35:25]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [10:35:25]line СНО: Общий режим [10:35:25]line Чек 67 21.04.2024 10:35 [10:35:25]line Смена: 372 ФФД: 1.0 [10:35:25]line ЗНМ: 0300000141 [10:35:25]line РНМ: 0000000000091573 [10:35:25]line Версия ККМ: 001 [10:35:25]line ФМ: 0000000000874652 [10:35:25]line ФД: 76811 [10:35:25]line ФПД: 38050922710482 [10:35:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T103527&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76811&fm=38050922710482&tin=02508201610067®Number=0000000000091573&sum=35000 [10:35:25]written 0, free lines is 4095 [10:35:25]OFD Sender: Processing packet 76811 [packets to send 129, broken 128] [10:35:25]ProducePacketName [10:35:25]name=ofd_packets/00076811 [10:35:25]OFD Sender: To server: pG, [10:35:25]CommunicateWithHost lk.salyk.kg:30040 [10:35:25]ConnectInit lk.salyk.kg [10:35:26]Connected sock=11 [10:35:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 A0 1E 07 01 38 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 15 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 DA 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 88 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 43 00 00 00 F4 03 04 00 EF EB 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0B 2C 01 00 35 04 06 00 22 9B 6B BB 45 D2 C1 B4 D7 40 7C 76 A9 9D [10:35:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 53 8B 47 00 6F 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0B 2C 01 00 F4 03 04 00 75 93 24 66 B6 04 01 00 00 B7 34 C9 2A 8A BE F3 85 [10:35:26]CommunicateWithHost err = 0 [10:35:26]CheckOFDResponse [10:35:26]1017 (14) - 77093643461234 [10:35:26]1041 (16) - 0000000000874652 [10:35:26]1040 (4) - 76811 [10:35:26]1012 (4) - 21.04.2024 04:17 [10:35:26]1206 (1) - 0 [10:35:26]OFD Sender: Remove packet 76811 [10:35:26]ProducePacketName [10:35:26]name=ofd_packets/00076811 [10:35:26]NVStorageDeleteData [10:35:26]Write to MH i2c: 01 00 00 3C 23 5F [10:35:26]Write i2c OK [10:35:26]MH_I2C_Read... [10:35:26]Read from MH i2c: 01 [10:35:26]MH_I2C_Read... [10:35:26]Read from MH i2c: 01 07 00 [10:35:26]MH_I2C_Read... [10:35:26]Read from MH i2c: 01 07 00 3C 23 00 00 00 00 00 E3 0C 55 [10:35:26]RasterBufferAndPrint [10:35:26]line [10:35:26]line [10:35:26]line [10:35:26]line [10:35:26]line [10:35:26]written 0, free lines is 3305 [10:35:26]MH_Cut [10:35:26]Write to MH i2c: D1 01 00 43 23 01 38 [10:35:26]Write i2c OK [10:35:26]MH_I2C_Read... [10:35:26]Read from MH i2c: D1 [10:35:26]MH_I2C_Read... [10:35:26]Read from MH i2c: D1 01 00 [10:35:26]MH_I2C_Read... [10:35:26]Read from MH i2c: D1 01 00 43 23 00 37 [10:35:26]Write to MH i2c: 01 00 00 44 23 67 [10:35:26]Write i2c OK [10:35:26]MH_I2C_Read... [10:35:26]OFD Sender: No OFD packet to send [10:35:27]*** Cut start [10:35:27]*** Partial cut [10:35:27]*** CUTSNS_PIN = 1 [10:35:27]*** CUTSNS_PIN = 0 [10:35:27]*** Brake cut motor [10:35:27]Read from MH i2c: 01 [10:35:27]MH_I2C_Read... [10:35:27]*** Stop cut motor [10:35:27]*** Cut end [10:35:27]Read from MH i2c: 01 07 00 [10:35:27]MH_I2C_Read... [10:35:27]Read from MH i2c: 01 07 00 44 23 00 00 00 00 00 FF 0F 7C [10:35:27]process_action close_receipt done [10:35:27]requested_data is exist [10:35:27]produce_requested_data [10:35:27]requested_item fm.sn is exist - process it [10:35:27]wFMCommunicate request_size=4 [10:35:27]MH_SAM_APDU [10:35:27]CAPDU: 80 11 00 00 [10:35:27]Write to MH i2c: E2 08 00 45 23 80 11 00 00 00 00 00 00 E2 [10:35:27]Write i2c OK [10:35:27]MH_I2C_Read... [10:35:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:27]Read from MH i2c: E2 [10:35:27]MH_I2C_Read... [10:35:27]Read from MH i2c: E2 17 00 [10:35:27]MH_I2C_Read... [10:35:27]Read from MH i2c: E2 17 00 45 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 35 [10:35:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:35:27]wFMCommunicate OK [10:35:27]requested_item fd.num is exist - process it [10:35:27]SAM_PROTO_GetFieldsCounters [10:35:27]wFMCommunicate request_size=4 [10:35:27]MH_SAM_APDU [10:35:27]CAPDU: 80 13 00 00 [10:35:27]Write to MH i2c: E2 08 00 46 23 80 13 00 00 00 00 00 00 E5 [10:35:27]Write i2c OK [10:35:27]MH_I2C_Read... [10:35:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:27]Read from MH i2c: E2 [10:35:27]MH_I2C_Read... [10:35:27]Read from MH i2c: E2 62 00 [10:35:27]MH_I2C_Read... [10:35:27]Read from MH i2c: E2 62 00 46 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0B 2C 01 00 0E 04 04 00 74 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 7C [10:35: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0B 2C 01 00 0E 04 04 00 74 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 [10:35:27]wFMCommunicate OK [10:35:27]SAM_PROTO_GetFieldsCounters done [10:35:27]requested_item shift.num is exist - process it [10:35:27]requested_item shift.opened is exist - process it [10:35:27]req_shift_opened [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 47 23 80 13 01 00 00 00 00 00 E7 [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 47 23 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 2E [10:35:27]RAPDU: 09 00 01 55 5C 24 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]req_shift_opened done [10:35:27]requested_item shift.open_date is exist - process it [10:35:27]req_shift_open_date [10:35:27]req_shift_open_date done [10:35:27]produce_requested_data done [10:35:27]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76811,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [10:35:27]process_action_free close_receipt [10:35:27]json_value_free [10:35:27]json_value_free done [10:35:27]process_json_proto returns [10:35:27]Send response to host [10:35:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76811,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [10:35:27]free response buf [10:35:27]execute_script done [10:35:27]execute_script returns [10:35:27]free content buf [10:35:27]Sock 7.Close socket [10:35:27]Sock 7.Thread stoped [10:35:31]OFD Sender: No OFD packet to send [10:35:36]OFD Sender: No OFD packet to send [10:35:41]OFD Sender: No OFD packet to send [10:35:46]OFD Sender: No OFD packet to send [10:35:51]OFD Sender: No OFD packet to send [10:35:56]OFD Sender: No OFD packet to send [10:36:01]OFD Sender: No OFD packet to send [10:36:06]OFD Sender: No OFD packet to send [10:36:11]OFD Sender: No OFD packet to send [10:36:16]OFD Sender: No OFD packet to send [10:36:21]OFD Sender: No OFD packet to send [10:36:26]OFD Sender: No OFD packet to send [10:36:31]OFD Sender: No OFD packet to send [10:36:36]OFD Sender: No OFD packet to send [10:36:41]OFD Sender: No OFD packet to send [10:36:46]OFD Sender: No OFD packet to send [10:36:51]OFD Sender: No OFD packet to send [10:36:56]OFD Sender: No OFD packet to send [10:37:01]OFD Sender: No OFD packet to send [10:37:06]OFD Sender: No OFD packet to send [10:37:11]OFD Sender: No OFD packet to send [10:37:16]OFD Sender: No OFD packet to send [10:37:21]OFD Sender: No OFD packet to send [10:37:24]accept exits with 9 [10:37:24]New connection [10:37:24]New thread 3067338084 created [10:37:24]Thread 3067481444 joined [10:37:24]Waiting for new connection... [10:37:24] Sock 9.Parse request [10:37:24]Sock 9.Check first char [10:37:24]Sock 9.First char is OK [10:37:24]request: POST /json_proto HTTP/1.0 [10:37:24]Method: POST [10:37:24]URL: /json_proto [10:37:24]Method is POST - this is cgi request [10:37:24]url: /json_proto [10:37:24]query_string will be loaded in cgi processing [10:37:24]execute_cgi json_proto POST (null) [10:37:24]execute_cgi path=json_proto method=POST [10:37:24]POST find Content-Length [10:37:24]Host: 172.17.62.5:8080 [10:37:24]Content-Length: 1156 [10:37:24]Content-Type: application/json [10:37:24] [10:37:24]POST finish read [10:37:24]Found Content-Length = 1156 [10:37: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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041B\u044B\u043C\u0430\u0440\u0435\u0432\u0430 \u0412. \u000A\u0421\u0447\u0435\u0442 N : (1)191344\u000A21.04.2024 10:18\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 : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 644.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102984\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:24]execute_script... [10:37: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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041B\u044B\u043C\u0430\u0440\u0435\u0432\u0430 \u0412. \u000A\u0421\u0447\u0435\u0442 N : (1)191344\u000A21.04.2024 10:18\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 : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 644.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102984\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:24]POST & json_proto [10:37:24]process_json_proto [10:37:24]json parsed OK: [10:37:24]protocol is kg_v1.0 [10:37:24]action value=print_text [10:37:24]process_action print_text [10:37:24]cmd_print_text [10:37:24]ExternCall_PrintAddStr [10:37:24]wPrintStart [10:37:24]Write to MH i2c: 01 00 00 48 23 6B [10:37:24]Write i2c OK [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: 01 [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: 01 07 00 [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: 01 07 00 48 23 00 00 00 00 00 FF 0F 80 [10:37:24]RasterBufferAndPrint [10:37:24]line *****ТОВАРНЫЙ ЧЕК***** [10:37:24]line АЗС 106 [10:37:24]line Партнер нефть [10:37:24]line 02508201610067 [10:37:24]line Кассир : Лымарева В. [10:37:24]line Счет N : (1)191344 [10:37:24]line 21.04.2024 10:18 [10:37:24]line ПРОДАЖА [10:37:24]line ТРК (МРК, ГНК): 33 [10:37:24]line Вид ГСМ : 2710124130 [10:37:24]line Аи-92-К-5 [10:37:24]line 10.000 x 64.40 [10:37:24]line ИТОГ: 644.00 [10:37:24]line Тип оплаты: Талоны: ТК ГПНА Online [10:37:24]line 30102984 [10:37:24]line ______________________ [10:37:24]line (подпись) [10:37:24]written 0, free lines is 4095 [10:37:24]Write to MH i2c: 01 00 00 5C 23 7F [10:37:24]Write i2c OK [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: 01 [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: 01 07 00 [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: 01 07 00 5C 23 00 00 00 00 00 0F 0E A3 [10:37:24]RasterBufferAndPrint [10:37:24]line [10:37:24]line [10:37:24]line [10:37:24]line [10:37:24]line [10:37:24]written 0, free lines is 3600 [10:37:24]MH_Cut [10:37:24]Write to MH i2c: D1 01 00 63 23 01 58 [10:37:24]Write i2c OK [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: D1 [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: D1 01 00 [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: D1 01 00 63 23 00 57 [10:37:24]Write to MH i2c: 01 00 00 64 23 87 [10:37:24]Write i2c OK [10:37:24]MH_I2C_Read... [10:37:25]*** Cut start [10:37:25]*** Partial cut [10:37:25]*** CUTSNS_PIN = 1 [10:37:25]*** CUTSNS_PIN = 0 [10:37:25]*** Brake cut motor [10:37:25]Read from MH i2c: 01 [10:37:25]MH_I2C_Read... [10:37:25]*** Stop cut motor [10:37:25]*** Cut end [10:37:25]Read from MH i2c: 01 07 00 [10:37:25]MH_I2C_Read... [10:37:25]Read from MH i2c: 01 07 00 64 23 00 00 00 00 00 FF 0F 9C [10:37:25]process_action print_text done [10:37:25]requested_data is exist [10:37:25]produce_requested_data [10:37:25]requested_item fm.sn is exist - process it [10:37:25]wFMCommunicate request_size=4 [10:37:25]MH_SAM_APDU [10:37:25]CAPDU: 80 11 00 00 [10:37:25]Write to MH i2c: E2 08 00 65 23 80 11 00 00 00 00 00 00 02 [10:37:25]Write i2c OK [10:37:25]MH_I2C_Read... [10:37:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:25]Read from MH i2c: E2 [10:37:25]MH_I2C_Read... [10:37:25]Read from MH i2c: E2 17 00 [10:37:25]MH_I2C_Read... [10:37:25]Read from MH i2c: E2 17 00 65 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 55 [10:37:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:37:25]wFMCommunicate OK [10:37:25]requested_item fd.num is exist - process it [10:37:25]SAM_PROTO_GetFieldsCounters [10:37:25]wFMCommunicate request_size=4 [10:37:25]MH_SAM_APDU [10:37:25]CAPDU: 80 13 00 00 [10:37:25]Write to MH i2c: E2 08 00 66 23 80 13 00 00 00 00 00 00 05 [10:37:25]Write i2c OK [10:37:25]MH_I2C_Read... [10:37:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:26]Read from MH i2c: E2 [10:37:26]MH_I2C_Read... [10:37:26]Read from MH i2c: E2 62 00 [10:37:26]MH_I2C_Read... [10:37:26]Read from MH i2c: E2 62 00 66 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0B 2C 01 00 0E 04 04 00 74 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 9C [10:37: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0B 2C 01 00 0E 04 04 00 74 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 [10:37:26]wFMCommunicate OK [10:37:26]SAM_PROTO_GetFieldsCounters done [10:37:26]requested_item shift.num is exist - process it [10:37:26]requested_item shift.opened is exist - process it [10:37:26]req_shift_opened [10:37:26]FM_GetShiftState [10:37:26]SAM_PROTO_GetShiftState [10:37:26]wFMCommunicate request_size=4 [10:37:26]MH_SAM_APDU [10:37:26]CAPDU: 80 13 01 00 [10:37:26]Write to MH i2c: E2 08 00 67 23 80 13 01 00 00 00 00 00 07 [10:37:26]Write i2c OK [10:37:26]MH_I2C_Read... [10:37:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:26]Read from MH i2c: E2 [10:37:26]MH_I2C_Read... [10:37:26]Read from MH i2c: E2 0E 00 [10:37:26]MH_I2C_Read... [10:37:26]Read from MH i2c: E2 0E 00 67 23 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 4E [10:37:26]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [10:37:26]wFMCommunicate OK [10:37:26]SAM_PROTO_GetShiftState done [10:37:26]FM_GetShiftState done [10:37:26]req_shift_opened done [10:37:26]requested_item shift.open_date is exist - process it [10:37:26]req_shift_open_date [10:37:26]req_shift_open_date done [10:37:26]produce_requested_data done [10:37:26]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76811,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [10:37:26]process_action_free print_text [10:37:26]json_value_free [10:37:26]json_value_free done [10:37:26]process_json_proto returns [10:37:26]Send response to host [10:37:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76811,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [10:37:26]free response buf [10:37:26]execute_script done [10:37:26]execute_script returns [10:37:26]free content buf [10:37:26]Sock 9.Close socket [10:37:26]Sock 9.Thread stoped [10:37:26]OFD Sender: No OFD packet to send [10:37:31]OFD Sender: No OFD packet to send [10:37:36]OFD Sender: No OFD packet to send [10:37:41]OFD Sender: No OFD packet to send [10:37:46]OFD Sender: No OFD packet to send [10:37:51]OFD Sender: No OFD packet to send [10:37:56]OFD Sender: No OFD packet to send [10:38:01]OFD Sender: No OFD packet to send [10:38:06]OFD Sender: No OFD packet to send [10:38:11]OFD Sender: No OFD packet to send [10:38:16]OFD Sender: No OFD packet to send [10:38:21]OFD Sender: No OFD packet to send [10:38:26]OFD Sender: No OFD packet to send [10:38:31]OFD Sender: No OFD packet to send [10:38:34]accept exits with 7 [10:38:34]New connection [10:38:34]New thread 3067481444 created [10:38:34]Thread 3067338084 joined [10:38:34]Waiting for new connection... [10:38:34] Sock 7.Parse request [10:38:34]Sock 7.Check first char [10:38:34]Sock 7.First char is OK [10:38:34]request: POST /json_proto HTTP/1.0 [10:38:34]Method: POST [10:38:34]URL: /json_proto [10:38:34]Method is POST - this is cgi request [10:38:34]url: /json_proto [10:38:34]query_string will be loaded in cgi processing [10:38:34]execute_cgi json_proto POST (null) [10:38:34]execute_cgi path=json_proto method=POST [10:38:34]POST find Content-Length [10:38:34]Host: 172.17.62.5:8080 [10:38:34]Content-Length: 819 [10:38:34]Content-Type: application/json [10:38:34] [10:38:34]POST finish read [10:38:34]Found Content-Length = 819 [10:38:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.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" : 1000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:34]execute_script... [10:38: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)191345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.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" : 1000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:34]POST & json_proto [10:38:34]process_json_proto [10:38:34]json parsed OK: [10:38:34]protocol is kg_v1.0 [10:38:34]action value=close_receipt [10:38:34]process_action close_receipt [10:38:34]cmd_close_receipt [10:38:34]MH_GetDate [10:38:34]Write to MH i2c: F0 00 00 68 23 7A [10:38:34]Write i2c OK [10:38:34]MH_I2C_Read... [10:38:34]Read from MH i2c: F0 [10:38:34]MH_I2C_Read... [10:38:34]Read from MH i2c: F0 09 00 [10:38:34]MH_I2C_Read... [10:38:34]Read from MH i2c: F0 09 00 68 23 00 AE EC 24 66 F4 E9 65 64 4D [10:38:34]GetLastDocTimeStamp 1713695727 [10:38:34]current date 1713695918 [10:38:34]FM_GetShiftState [10:38:34]SAM_PROTO_GetShiftState [10:38:34]wFMCommunicate request_size=4 [10:38:34]MH_SAM_APDU [10:38:34]CAPDU: 80 13 01 00 [10:38:34]Write to MH i2c: E2 08 00 69 23 80 13 01 00 00 00 00 00 09 [10:38:34]Write i2c OK [10:38:34]MH_I2C_Read... [10:38:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:34]Read from MH i2c: E2 [10:38:34]MH_I2C_Read... [10:38:34]Read from MH i2c: E2 0E 00 [10:38:34]MH_I2C_Read... [10:38:34]Read from MH i2c: E2 0E 00 69 23 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 50 [10:38:34]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [10:38:34]wFMCommunicate OK [10:38:34]SAM_PROTO_GetShiftState done [10:38:34]FM_GetShiftState done [10:38:34]opened in 1713658965 [10:38:34]opened+sec_in_day 1713745365 [10:38:34]quantity*price = 100013 [10:38:34]sum+1 = 100014 [10:38:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.13 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.13 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 68 21.04.2024 10:38 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 76812 ФПД: 196528326018203 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T103838&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76812&fm=196528326018203&tin=02508201610067®Number=0000000000091573&sum=100013 [10:38:35]StoreToDocumentArchive [10:38:35]shift 372 fd 76812 [10:38:35]save to /storage/0372/doc_00076812 [10:38:35]save last doc name /storage/0372/doc_00076812 to /storage/kkm_last_doc_name [10:38:35]save OK [10:38:35]Clear old archive folders... [10:38:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:38:35]tlvbuf is B6F428B0 [10:38:35]SAM_PROTO_ClearQueue [10:38:35]wFMCommunicate request_size=4 [10:38:35]MH_SAM_APDU [10:38:35]CAPDU: 80 09 00 00 [10:38:35]Write to MH i2c: E2 08 00 76 23 80 09 00 00 00 00 00 00 0B [10:38:35]Write i2c OK [10:38:35]MH_I2C_Read... [10:38:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:35]Read from MH i2c: E2 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: E2 03 00 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: E2 03 00 76 23 00 90 00 0D [10:38:35]RAPDU: 90 00 [10:38:35]wFMCommunicate OK [10:38:35]SAM_PROTO_ClearQueue done [10:38:35]KKMCreateOFDPacket [10:38:35]OFDProtocolAddRootSTLVToBuf [10:38:35]FM_MakeSignedData [10:38:35]FM_MakeSignedData [10:38:35]SAM_PROTO_SignData [10:38:35]wFMCommunicate request_size=4 [10:38:35]MH_SAM_APDU [10:38:35]CAPDU: 80 0D 01 02 [10:38:35]Write to MH i2c: E2 08 00 77 23 80 0D 01 02 00 00 00 00 13 [10:38:35]Write i2c OK [10:38:35]MH_I2C_Read... [10:38:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:35]Read from MH i2c: E2 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: E2 03 00 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: E2 03 00 77 23 00 90 00 0E [10:38:35]RAPDU: 90 00 [10:38:35]wFMCommunicate OK [10:38:35]wFMCommunicate request_size=255 [10:38:35]MH_SAM_APDU [10:38: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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 AE EC 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0C 2C 01 00 35 04 06 00 B2 [10:38:35]Write to MH i2c: E2 02 01 78 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 AE EC 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0C 2C 01 00 35 04 06 00 B2 00 00 C6 [10:38:35]Write i2c OK [10:38:35]MH_I2C_Read... [10:38:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:36]Read from MH i2c: E2 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 03 00 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 03 00 78 23 00 90 00 0F [10:38:36]RAPDU: 90 00 [10:38:36]wFMCommunicate OK [10:38:36]wFMCommunicate request_size=10 [10:38:36]MH_SAM_APDU [10:38:36]CAPDU: 80 0D 02 02 05 BD D1 0F 84 9B [10:38:36]Write to MH i2c: E2 0D 00 79 23 80 0D 02 02 05 00 BD D1 0F 84 9B 00 00 DC [10:38:36]Write i2c OK [10:38:36]MH_I2C_Read... [10:38:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:36]Read from MH i2c: E2 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 03 00 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 03 00 79 23 00 90 00 10 [10:38:36]RAPDU: 90 00 [10:38:36]wFMCommunicate OK [10:38:36]wFMCommunicate request_size=4 [10:38:36]MH_SAM_APDU [10:38:36]CAPDU: 80 0D 03 02 [10:38:36]Write to MH i2c: E2 08 00 7A 23 80 0D 03 02 00 00 00 00 18 [10:38:36]Write i2c OK [10:38:36]MH_I2C_Read... [10:38:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:36]Read from MH i2c: E2 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 0B 00 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 0B 00 7A 23 00 9D F9 D0 7D 19 50 CE F1 90 00 24 [10:38:36]RAPDU: 9D F9 D0 7D 19 50 CE F1 90 00 [10:38:36]wFMCommunicate OK [10:38:36]SAM_PROTO_SignData done [10:38:36]FM_MakeSignedData done [10:38:36]CreateOFDProtocolMessage [10:38:36]wFMCommunicate request_size=4 [10:38:36]MH_SAM_APDU [10:38:36]CAPDU: 80 11 00 00 [10:38:36]Write to MH i2c: E2 08 00 7B 23 80 11 00 00 00 00 00 00 18 [10:38:36]Write i2c OK [10:38:36]MH_I2C_Read... [10:38:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:36]Read from MH i2c: E2 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 17 00 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 17 00 7B 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 6B [10:38:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:38:36]wFMCommunicate OK [10:38:36]CreateOFDProtocolMessage done [10:38:36]OFDSenderStorePacket 76812 [10:38:36]StoreOFDPacket docnum=76812 [10:38:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 E0 0D 07 01 22 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 AE EC 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0C 2C 01 00 35 04 06 00 B2 BD D1 0F 84 9B 9D F9 D0 7D 19 50 CE F1 [10:38:36]CheckFolder [10:38:36]dirname=/storage/ofd_packets [10:38:36]CheckFolder done [10:38:36]ProducePacketName [10:38:36]name=ofd_packets/00076812 [10:38:36]NVStorageSaveData ofd_packets/00076812 [10:38:36]File name is /storage/ofd_packets/00076812 [10:38:36]Write 301 bytes [10:38:36]NVStorageSaveData done [10:38:36]OFDSenderStorePacket done [10:38:36]KKMCreateOFDPacket done [10:38:36]NVStorageSaveData kkm_last_timestamp [10:38:36]File name is /storage/kkm_last_timestamp [10:38:36]Write 4 bytes [10:38:36]NVStorageSaveData done [10:38:36]ExternCall_PrintAddStr [10:38:36]wPrintStart [10:38:36]Write to MH i2c: 01 00 00 7C 23 9F [10:38:36]Write i2c OK [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: 01 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: 01 07 00 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: 01 07 00 7C 23 00 00 00 00 00 FF 0F B4 [10:38:36]RasterBufferAndPrint [10:38:36]line Счет N : (1)191345 [10:38:36]line ИНН: 02508201610067 [10:38:36]line Контрольно-Кассовый Чек [10:38:36]line ПРОДАЖА [10:38:36]line ТРК (МРК, ГНК) : 22 [10:38:36]line Товар: 2710124130 [10:38:36]line Аи-92-К-5 [10:38:36]line 15.530 * 64.40 [10:38:36]line = 1000.13 [10:38:36]line НДС 12% НСП 1% [10:38:36]line > о реализуемом товаре [10:38:36]line ИТОГО: 1000.13 [10:38:36]line НСП 1% : 8.85 [10:38:36]line НДС 12% : 106.21 [10:38:36]line Наличными: 0.00 [10:38:36]line Безнал.: 1000.13 [10:38:36]line Место: АЗС № 106 "Партнер Нефть" [10:38:36]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [10:38:36]line СНО: Общий режим [10:38:36]line Чек 68 21.04.2024 10:38 [10:38:36]line Смена: 372 ФФД: 1.0 [10:38:36]line ЗНМ: 0300000141 [10:38:36]line РНМ: 0000000000091573 [10:38:36]line Версия ККМ: 001 [10:38:36]line Платежная система: Бакай Банк [10:38:36]line ФМ: 0000000000874652 [10:38:36]line ФД: 76812 [10:38:36]line ФПД: 196528326018203 [10:38:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T103838&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76812&fm=196528326018203&tin=02508201610067®Number=0000000000091573&sum=100013 [10:38:36]written 0, free lines is 4095 [10:38:36]OFD Sender: Processing packet 76812 [packets to send 129, broken 128] [10:38:36]ProducePacketName [10:38:36]name=ofd_packets/00076812 [10:38:36]OFD Sender: To server: pG, [10:38:36]CommunicateWithHost lk.salyk.kg:30040 [10:38:36]ConnectInit lk.salyk.kg [10:38:36]Connected sock=10 [10:38:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 E0 0D 07 01 22 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 AE EC 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0C 2C 01 00 35 04 06 00 B2 BD D1 0F 84 9B 9D F9 D0 7D 19 50 CE F1 [10:38:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 D8 D7 47 00 36 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 34 36 35 32 10 04 04 00 0C 2C 01 00 F4 03 04 00 33 94 24 66 B6 04 01 00 00 C3 7A 9D 09 78 67 B0 8F [10:38:36]CommunicateWithHost err = 0 [10:38:36]CheckOFDResponse [10:38:36]1017 (14) - 77093643461234 [10:38:36]1041 (16) - 0000000000874652 [10:38:36]1040 (4) - 76812 [10:38:36]1012 (4) - 21.04.2024 04:21 [10:38:36]1206 (1) - 0 [10:38:36]OFD Sender: Remove packet 76812 [10:38:36]ProducePacketName [10:38:36]name=ofd_packets/00076812 [10:38:36]NVStorageDeleteData [10:38:36]Write to MH i2c: 01 00 00 A5 23 C8 [10:38:36]Write i2c OK [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: 01 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: 01 07 00 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: 01 07 00 A5 23 00 00 00 00 00 10 0D EC [10:38:36]RasterBufferAndPrint [10:38:36]line [10:38:36]line [10:38:36]line [10:38:36]line [10:38:36]line [10:38:36]written 0, free lines is 3350 [10:38:36]MH_Cut [10:38:36]Write to MH i2c: D1 01 00 AC 23 01 A1 [10:38:36]Write i2c OK [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: D1 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: D1 01 00 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: D1 01 00 AC 23 00 A0 [10:38:36]Write to MH i2c: 01 00 00 AD 23 D0 [10:38:36]Write i2c OK [10:38:36]MH_I2C_Read... [10:38:37]OFD Sender: No OFD packet to send [10:38:37]*** Cut start [10:38:37]*** Partial cut [10:38:37]*** CUTSNS_PIN = 1 [10:38:37]*** CUTSNS_PIN = 0 [10:38:37]*** Brake cut motor [10:38:37]Read from MH i2c: 01 [10:38:37]MH_I2C_Read... [10:38:37]*** Stop cut motor [10:38:38]*** Cut end [10:38:38]Read from MH i2c: 01 07 00 [10:38:38]MH_I2C_Read... [10:38:38]Read from MH i2c: 01 07 00 AD 23 00 00 00 00 00 FF 0F E5 [10:38:38]process_action close_receipt done [10:38:38]requested_data is exist [10:38:38]produce_requested_data [10:38:38]requested_item fm.sn is exist - process it [10:38:38]wFMCommunicate request_size=4 [10:38:38]MH_SAM_APDU [10:38:38]CAPDU: 80 11 00 00 [10:38:38]Write to MH i2c: E2 08 00 AE 23 80 11 00 00 00 00 00 00 4B [10:38:38]Write i2c OK [10:38:38]MH_I2C_Read... [10:38:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:38]Read from MH i2c: E2 [10:38:38]MH_I2C_Read... [10:38:38]Read from MH i2c: E2 17 00 [10:38:38]MH_I2C_Read... [10:38:38]Read from MH i2c: E2 17 00 AE 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 9E [10:38:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:38:38]wFMCommunicate OK [10:38:38]requested_item fd.num is exist - process it [10:38:38]SAM_PROTO_GetFieldsCounters [10:38:38]wFMCommunicate request_size=4 [10:38:38]MH_SAM_APDU [10:38:38]CAPDU: 80 13 00 00 [10:38:38]Write to MH i2c: E2 08 00 AF 23 80 13 00 00 00 00 00 00 4E [10:38:38]Write i2c OK [10:38:38]MH_I2C_Read... [10:38:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:38]Read from MH i2c: E2 [10:38:38]MH_I2C_Read... [10:38:38]Read from MH i2c: E2 62 00 [10:38:38]MH_I2C_Read... [10:38:38]Read from MH i2c: E2 62 00 AF 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0C 2C 01 00 0E 04 04 00 74 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [10:38: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0C 2C 01 00 0E 04 04 00 74 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 [10:38:38]wFMCommunicate OK [10:38:38]SAM_PROTO_GetFieldsCounters done [10:38:38]requested_item shift.num is exist - process it [10:38:38]requested_item shift.opened is exist - process it [10:38:38]req_shift_opened [10:38:38]FM_GetShiftState [10:38:38]SAM_PROTO_GetShiftState [10:38:38]wFMCommunicate request_size=4 [10:38:38]MH_SAM_APDU [10:38:38]CAPDU: 80 13 01 00 [10:38:38]Write to MH i2c: E2 08 00 B0 23 80 13 01 00 00 00 00 00 50 [10:38:38]Write i2c OK [10:38:38]MH_I2C_Read... [10:38:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:38]Read from MH i2c: E2 [10:38:38]MH_I2C_Read... [10:38:38]Read from MH i2c: E2 0E 00 [10:38:38]MH_I2C_Read... [10:38:38]Read from MH i2c: E2 0E 00 B0 23 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 97 [10:38:38]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [10:38:38]wFMCommunicate OK [10:38:38]SAM_PROTO_GetShiftState done [10:38:38]FM_GetShiftState done [10:38:38]req_shift_opened done [10:38:38]requested_item shift.open_date is exist - process it [10:38:38]req_shift_open_date [10:38:38]req_shift_open_date done [10:38:38]produce_requested_data done [10:38:38]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76812,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [10:38:38]process_action_free close_receipt [10:38:38]json_value_free [10:38:38]json_value_free done [10:38:38]process_json_proto returns [10:38:38]Send response to host [10:38:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76812,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [10:38:38]free response buf [10:38:38]execute_script done [10:38:38]execute_script returns [10:38:38]free content buf [10:38:38]Sock 7.Close socket [10:38:38]Sock 7.Thread stoped [10:38:42]OFD Sender: No OFD packet to send [10:38:47]OFD Sender: No OFD packet to send [10:38:52]OFD Sender: No OFD packet to send [10:38:57]OFD Sender: No OFD packet to send [10:39:02]OFD Sender: No OFD packet to send [10:39:07]OFD Sender: No OFD packet to send [10:39:12]OFD Sender: No OFD packet to send [10:39:17]OFD Sender: No OFD packet to send [10:39:22]OFD Sender: No OFD packet to send [10:39:27]OFD Sender: No OFD packet to send [10:39:32]OFD Sender: No OFD packet to send [10:39:37]OFD Sender: No OFD packet to send [10:39:42]OFD Sender: No OFD packet to send [10:39:47]OFD Sender: No OFD packet to send [10:39:52]OFD Sender: No OFD packet to send [10:39:57]OFD Sender: No OFD packet to send [10:40:02]OFD Sender: No OFD packet to send [10:40:07]OFD Sender: No OFD packet to send [10:40:12]OFD Sender: No OFD packet to send [10:40:17]OFD Sender: No OFD packet to send [10:40:22]OFD Sender: No OFD packet to send [10:40:27]OFD Sender: No OFD packet to send [10:40:32]OFD Sender: No OFD packet to send [10:40:37]OFD Sender: No OFD packet to send [10:40:42]OFD Sender: No OFD packet to send [10:40:47]OFD Sender: No OFD packet to send [10:40:52]OFD Sender: No OFD packet to send [10:40:57]OFD Sender: No OFD packet to send [10:41:02]OFD Sender: No OFD packet to send [10:41:07]OFD Sender: No OFD packet to send [10:41:12]OFD Sender: No OFD packet to send [10:41:17]OFD Sender: No OFD packet to send [10:41:22]OFD Sender: No OFD packet to send [10:41:27]OFD Sender: No OFD packet to send [10:41:32]OFD Sender: No OFD packet to send [10:41:37]OFD Sender: No OFD packet to send [10:41:42]OFD Sender: No OFD packet to send [10:41:47]OFD Sender: No OFD packet to send [10:41:52]OFD Sender: No OFD packet to send [10:41:57]OFD Sender: No OFD packet to send [10:42:02]OFD Sender: No OFD packet to send [10:42:07]OFD Sender: No OFD packet to send [10:42:12]OFD Sender: No OFD packet to send [10:42:17]OFD Sender: No OFD packet to send [10:42:22]OFD Sender: No OFD packet to send [10:42:27]OFD Sender: No OFD packet to send [10:42:32]OFD Sender: No OFD packet to send [10:42:37]OFD Sender: No OFD packet to send [10:42:42]OFD Sender: No OFD packet to send [10:42:47]OFD Sender: No OFD packet to send [10:42:52]OFD Sender: No OFD packet to send [10:42:57]OFD Sender: No OFD packet to send [10:43:02]OFD Sender: No OFD packet to send [10:43:07]OFD Sender: No OFD packet to send [10:43:12]OFD Sender: No OFD packet to send [10:43:17]OFD Sender: No OFD packet to send [10:43:22]OFD Sender: No OFD packet to send [10:43:27]OFD Sender: No OFD packet to send [10:43:32]OFD Sender: No OFD packet to send [10:43:37]OFD Sender: No OFD packet to send [10:43:42]OFD Sender: No OFD packet to send [10:43:47]OFD Sender: No OFD packet to send [10:43:52]OFD Sender: No OFD packet to send [10:43:57]OFD Sender: No OFD packet to send [10:44:02]OFD Sender: No OFD packet to send [10:44:07]OFD Sender: No OFD packet to send [10:44:12]OFD Sender: No OFD packet to send [10:44:17]OFD Sender: No OFD packet to send [10:44:22]OFD Sender: No OFD packet to send [10:44:27]OFD Sender: No OFD packet to send [10:44:32]OFD Sender: No OFD packet to send [10:44:37]OFD Sender: No OFD packet to send [10:44:42]OFD Sender: No OFD packet to send [10:44:47]OFD Sender: No OFD packet to send [10:44:52]OFD Sender: No OFD packet to send [10:44:57]OFD Sender: No OFD packet to send [10:45:02]OFD Sender: No OFD packet to send [10:45:07]OFD Sender: No OFD packet to send [10:45:12]OFD Sender: No OFD packet to send [10:45:17]OFD Sender: No OFD packet to send [10:45:22]OFD Sender: No OFD packet to send [10:45:27]OFD Sender: No OFD packet to send [10:45:32]OFD Sender: No OFD packet to send [10:45:37]OFD Sender: No OFD packet to send [10:45:42]OFD Sender: No OFD packet to send [10:45:47]OFD Sender: No OFD packet to send [10:45:52]OFD Sender: No OFD packet to send [10:45:57]OFD Sender: No OFD packet to send [10:46:02]OFD Sender: No OFD packet to send [10:46:07]OFD Sender: No OFD packet to send [10:46:12]OFD Sender: No OFD packet to send [10:46:17]OFD Sender: No OFD packet to send [10:46:22]OFD Sender: No OFD packet to send [10:46:27]OFD Sender: No OFD packet to send [10:46:32]OFD Sender: No OFD packet to send [10:46:37]OFD Sender: No OFD packet to send [10:46:42]OFD Sender: No OFD packet to send [10:46:47]OFD Sender: No OFD packet to send [10:46:52]OFD Sender: No OFD packet to send [10:46:57]OFD Sender: No OFD packet to send [10:47:02]OFD Sender: No OFD packet to send [10:47:07]OFD Sender: No OFD packet to send [10:47:12]OFD Sender: No OFD packet to send [10:47:17]OFD Sender: No OFD packet to send [10:47:22]OFD Sender: No OFD packet to send [10:47:27]OFD Sender: No OFD packet to send [10:47:32]OFD Sender: No OFD packet to send [10:47:37]OFD Sender: No OFD packet to send [10:47:42]OFD Sender: No OFD packet to send [10:47:47]OFD Sender: No OFD packet to send [10:47:52]OFD Sender: No OFD packet to send [10:47:57]OFD Sender: No OFD packet to send [10:48:02]OFD Sender: No OFD packet to send [10:48:07]OFD Sender: No OFD packet to send [10:48:12]OFD Sender: No OFD packet to send [10:48:17]OFD Sender: No OFD packet to send [10:48:22]OFD Sender: No OFD packet to send [10:48:27]OFD Sender: No OFD packet to send [10:48:32]OFD Sender: No OFD packet to send [10:48:37]OFD Sender: No OFD packet to send [10:48:42]OFD Sender: No OFD packet to send [10:48:47]OFD Sender: No OFD packet to send [10:48:52]OFD Sender: No OFD packet to send [10:48:57]OFD Sender: No OFD packet to send [10:49:02]OFD Sender: No OFD packet to send [10:49:07]OFD Sender: No OFD packet to send [10:49:12]OFD Sender: No OFD packet to send [10:49:17]OFD Sender: No OFD packet to send [10:49:22]OFD Sender: No OFD packet to send [10:49:27]OFD Sender: No OFD packet to send [10:49:32]OFD Sender: No OFD packet to send [10:49:37]OFD Sender: No OFD packet to send [10:49:42]OFD Sender: No OFD packet to send [10:49:47]OFD Sender: No OFD packet to send [10:49:52]OFD Sender: No OFD packet to send [10:49:57]OFD Sender: No OFD packet to send [10:50:02]OFD Sender: No OFD packet to send [10:50:07]OFD Sender: No OFD packet to send [10:50:12]OFD Sender: No OFD packet to send [10:50:17]OFD Sender: No OFD packet to send [10:50:22]OFD Sender: No OFD packet to send [10:50:27]OFD Sender: No OFD packet to send [10:50:32]OFD Sender: No OFD packet to send [10:50:37]OFD Sender: No OFD packet to send [10:50:42]OFD Sender: No OFD packet to send [10:50:47]OFD Sender: No OFD packet to send [10:50:52]OFD Sender: No OFD packet to send [10:50:57]OFD Sender: No OFD packet to send [10:51:02]OFD Sender: No OFD packet to send [10:51:07]OFD Sender: No OFD packet to send [10:51:12]OFD Sender: No OFD packet to send [10:51:17]OFD Sender: No OFD packet to send [10:51:22]OFD Sender: No OFD packet to send [10:51:28]OFD Sender: No OFD packet to send [10:51:33]OFD Sender: No OFD packet to send [10:51:38]OFD Sender: No OFD packet to send [10:51:43]OFD Sender: No OFD packet to send [10:51:48]OFD Sender: No OFD packet to send [10:51:53]OFD Sender: No OFD packet to send [10:51:58]OFD Sender: No OFD packet to send [10:52:03]OFD Sender: No OFD packet to send [10:52:08]OFD Sender: No OFD packet to send [10:52:13]OFD Sender: No OFD packet to send [10:52:18]OFD Sender: No OFD packet to send [10:52:23]OFD Sender: No OFD packet to send [10:52:28]OFD Sender: No OFD packet to send [10:52:33]OFD Sender: No OFD packet to send [10:52:38]OFD Sender: No OFD packet to send [10:52:43]OFD Sender: No OFD packet to send [10:52:48]OFD Sender: No OFD packet to send [10:52:53]OFD Sender: No OFD packet to send [10:52:58]OFD Sender: No OFD packet to send [10:53:03]OFD Sender: No OFD packet to send [10:53:08]OFD Sender: No OFD packet to send [10:53:13]OFD Sender: No OFD packet to send [10:53:18]OFD Sender: No OFD packet to send [10:53:23]OFD Sender: No OFD packet to send [10:53:28]OFD Sender: No OFD packet to send [10:53:33]OFD Sender: No OFD packet to send [10:53:38]OFD Sender: No OFD packet to send [10:53:43]OFD Sender: No OFD packet to send [10:53:48]OFD Sender: No OFD packet to send [10:53:53]OFD Sender: No OFD packet to send [10:53:58]OFD Sender: No OFD packet to send [10:54:03]OFD Sender: No OFD packet to send [10:54:08]OFD Sender: No OFD packet to send [10:54:13]OFD Sender: No OFD packet to send [10:54:18]OFD Sender: No OFD packet to send [10:54:23]OFD Sender: No OFD packet to send [10:54:28]OFD Sender: No OFD packet to send [10:54:33]OFD Sender: No OFD packet to send [10:54:38]OFD Sender: No OFD packet to send [10:54:43]OFD Sender: No OFD packet to send [10:54:48]OFD Sender: No OFD packet to send [10:54:53]OFD Sender: No OFD packet to send [10:54:58]OFD Sender: No OFD packet to send [10:55:03]OFD Sender: No OFD packet to send [10:55:08]OFD Sender: No OFD packet to send [10:55:13]OFD Sender: No OFD packet to send [10:55:18]OFD Sender: No OFD packet to send [10:55:23]OFD Sender: No OFD packet to send [10:55:28]OFD Sender: No OFD packet to send [10:55:33]OFD Sender: No OFD packet to send [10:55:38]OFD Sender: No OFD packet to send [10:55:43]OFD Sender: No OFD packet to send [10:55:48]OFD Sender: No OFD packet to send [10:55:53]OFD Sender: No OFD packet to send [10:55:58]OFD Sender: No OFD packet to send [10:56:03]OFD Sender: No OFD packet to send [10:56:08]OFD Sender: No OFD packet to send [10:56:13]OFD Sender: No OFD packet to send [10:56:18]OFD Sender: No OFD packet to send [10:56:23]OFD Sender: No OFD packet to send [10:56:28]OFD Sender: No OFD packet to send [10:56:33]OFD Sender: No OFD packet to send [10:56:38]OFD Sender: No OFD packet to send [10:56:43]OFD Sender: No OFD packet to send [10:56:48]OFD Sender: No OFD packet to send [10:56:53]OFD Sender: No OFD packet to send [10:56:58]OFD Sender: No OFD packet to send [10:57:03]OFD Sender: No OFD packet to send [10:57:08]OFD Sender: No OFD packet to send [10:57:13]OFD Sender: No OFD packet to send [10:57:18]OFD Sender: No OFD packet to send [10:57:23]OFD Sender: No OFD packet to send [10:57:28]OFD Sender: No OFD packet to send [10:57:33]OFD Sender: No OFD packet to send [10:57:38]OFD Sender: No OFD packet to send [10:57:43]OFD Sender: No OFD packet to send [10:57:48]OFD Sender: No OFD packet to send [10:57:53]OFD Sender: No OFD packet to send [10:57:58]OFD Sender: No OFD packet to send [10:58:03]OFD Sender: No OFD packet to send [10:58:08]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [10:58:48]OFD Sender: No OFD packet to send [10:58:53]OFD Sender: No OFD packet to send [10:58:58]OFD Sender: No OFD packet to send [10:59:03]OFD Sender: No OFD packet to send [10:59:08]OFD Sender: No OFD packet to send [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:23]OFD Sender: No OFD packet to send [11:01:25]accept exits with 9 [11:01:25]New connection [11:01:25]New thread 3067338084 created [11:01:25]Thread 3067481444 joined [11:01:25]Waiting for new connection... [11:01:25] Sock 9.Parse request [11:01:25]Sock 9.Check first char [11:01:25]Sock 9.First char is OK [11:01:25]request: POST /json_proto HTTP/1.0 [11:01:25]Method: POST [11:01:25]URL: /json_proto [11:01:25]Method is POST - this is cgi request [11:01:25]url: /json_proto [11:01:25]query_string will be loaded in cgi processing [11:01:25]execute_cgi json_proto POST (null) [11:01:25]execute_cgi path=json_proto method=POST [11:01:25]POST find Content-Length [11:01:25]Host: 172.17.62.5:8080 [11:01:25]Content-Length: 1190 [11:01:25]Content-Type: application/json [11:01:25] [11:01:25]POST finish read [11:01:25]Found Content-Length = 1190 [11:01: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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041B\u044B\u043C\u0430\u0440\u0435\u0432\u0430 \u0412. \u000A\u0421\u0447\u0435\u0442 N : (1)191346\u000A21.04.2024 10:42\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\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: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3731608;609;610\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:25]execute_script... [11:01: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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041B\u044B\u043C\u0430\u0440\u0435\u0432\u0430 \u0412. \u000A\u0421\u0447\u0435\u0442 N : (1)191346\u000A21.04.2024 10:42\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\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: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3731608;609;610\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:25]POST & json_proto [11:01:25]process_json_proto [11:01:25]json parsed OK: [11:01:25]protocol is kg_v1.0 [11:01:25]action value=print_text [11:01:25]process_action print_text [11:01:25]cmd_print_text [11:01:25]ExternCall_PrintAddStr [11:01:25]wPrintStart [11:01:25]Write to MH i2c: 01 00 00 B1 23 D4 [11:01:25]Write i2c OK [11:01:25]MH_I2C_Read... [11:01:25]Read from MH i2c: 01 [11:01:25]MH_I2C_Read... [11:01:25]Read from MH i2c: 01 07 00 [11:01:25]MH_I2C_Read... [11:01:25]Read from MH i2c: 01 07 00 B1 23 00 00 00 00 00 FF 0F E9 [11:01:25]RasterBufferAndPrint [11:01:25]line *****ТОВАРНЫЙ ЧЕК***** [11:01:25]line АЗС 106 [11:01:25]line Партнер нефть [11:01:25]line 02508201610067 [11:01:25]line Кассир : Лымарева В. [11:01:25]line Счет N : (1)191346 [11:01:25]line 21.04.2024 10:42 [11:01:25]line ПРОДАЖА [11:01:25]line ТРК (МРК, ГНК): 13 [11:01:25]line Вид ГСМ : 2710194210 [11:01:25]line ДТ-К-5 [11:01:25]line 30.000 x 72.90 [11:01:25]line ИТОГ: 2187.00 [11:01:25]line Тип оплаты: Талоны: Партнер нефть [11:01:25]line 3731608;609;610 [11:01:25]line ______________________ [11:01:25]line (подпись) [11:01:25]written 0, free lines is 4095 [11:01:26]Write to MH i2c: 01 00 00 C5 23 E8 [11:01:26]Write i2c OK [11:01:26]MH_I2C_Read... [11:01:26]Read from MH i2c: 01 [11:01:26]MH_I2C_Read... [11:01:26]Read from MH i2c: 01 07 00 [11:01:26]MH_I2C_Read... [11:01:26]Read from MH i2c: 01 07 00 C5 23 00 00 00 00 00 12 0E 0F [11:01:26]RasterBufferAndPrint [11:01:26]line [11:01:26]line [11:01:26]line [11:01:26]line [11:01:26]line [11:01:26]written 0, free lines is 3604 [11:01:26]MH_Cut [11:01:26]Write to MH i2c: D1 01 00 CC 23 01 C1 [11:01:26]Write i2c OK [11:01:26]MH_I2C_Read... [11:01:26]Read from MH i2c: D1 [11:01:26]MH_I2C_Read... [11:01:26]Read from MH i2c: D1 01 00 [11:01:26]MH_I2C_Read... [11:01:26]Read from MH i2c: D1 01 00 CC 23 00 C0 [11:01:26]Write to MH i2c: 01 00 00 CD 23 F0 [11:01:26]Write i2c OK [11:01:26]MH_I2C_Read... [11:01:26]*** Cut start [11:01:26]*** Partial cut [11:01:26]*** CUTSNS_PIN = 1 [11:01:26]*** CUTSNS_PIN = 0 [11:01:26]*** Brake cut motor [11:01:27]Read from MH i2c: 01 [11:01:27]MH_I2C_Read... [11:01:27]*** Stop cut motor [11:01:27]*** Cut end [11:01:27]Read from MH i2c: 01 07 00 [11:01:27]MH_I2C_Read... [11:01:27]Read from MH i2c: 01 07 00 CD 23 00 00 00 00 00 FF 0F 05 [11:01:27]process_action print_text done [11:01:27]requested_data is exist [11:01:27]produce_requested_data [11:01:27]requested_item fm.sn is exist - process it [11:01:27]wFMCommunicate request_size=4 [11:01:27]MH_SAM_APDU [11:01:27]CAPDU: 80 11 00 00 [11:01:27]Write to MH i2c: E2 08 00 CE 23 80 11 00 00 00 00 00 00 6B [11:01:27]Write i2c OK [11:01:27]MH_I2C_Read... [11:01:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:27]Read from MH i2c: E2 [11:01:27]MH_I2C_Read... [11:01:27]Read from MH i2c: E2 17 00 [11:01:27]MH_I2C_Read... [11:01:27]Read from MH i2c: E2 17 00 CE 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 BE [11:01:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:01:27]wFMCommunicate OK [11:01:27]requested_item fd.num is exist - process it [11:01:27]SAM_PROTO_GetFieldsCounters [11:01:27]wFMCommunicate request_size=4 [11:01:27]MH_SAM_APDU [11:01:27]CAPDU: 80 13 00 00 [11:01:27]Write to MH i2c: E2 08 00 CF 23 80 13 00 00 00 00 00 00 6E [11:01:27]Write i2c OK [11:01:27]MH_I2C_Read... [11:01:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:01:27]Read from MH i2c: E2 [11:01:27]MH_I2C_Read... [11:01:27]Read from MH i2c: E2 62 00 [11:01:27]MH_I2C_Read... [11:01:27]Read from MH i2c: E2 62 00 CF 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0C 2C 01 00 0E 04 04 00 74 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 09 [11:01: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0C 2C 01 00 0E 04 04 00 74 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:01:27]wFMCommunicate OK [11:01:27]SAM_PROTO_GetFieldsCounters done [11:01:27]requested_item shift.num is exist - process it [11:01:27]requested_item shift.opened is exist - process it [11:01:27]req_shift_opened [11:01:27]FM_GetShiftState [11:01:27]SAM_PROTO_GetShiftState [11:01:27]wFMCommunicate request_size=4 [11:01:27]MH_SAM_APDU [11:01:27]CAPDU: 80 13 01 00 [11:01:27]Write to MH i2c: E2 08 00 D0 23 80 13 01 00 00 00 00 00 70 [11:01:27]Write i2c OK [11:01:27]MH_I2C_Read... [11:01:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:27]Read from MH i2c: E2 [11:01:27]MH_I2C_Read... [11:01:27]Read from MH i2c: E2 0E 00 [11:01:27]MH_I2C_Read... [11:01:27]Read from MH i2c: E2 0E 00 D0 23 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 B7 [11:01:27]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [11:01:27]wFMCommunicate OK [11:01:27]SAM_PROTO_GetShiftState done [11:01:27]FM_GetShiftState done [11:01:27]req_shift_opened done [11:01:27]requested_item shift.open_date is exist - process it [11:01:27]req_shift_open_date [11:01:27]req_shift_open_date done [11:01:27]produce_requested_data done [11:01:27]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76812,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [11:01:27]process_action_free print_text [11:01:27]json_value_free [11:01:27]json_value_free done [11:01:27]process_json_proto returns [11:01:27]Send response to host [11:01:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76812,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [11:01:27]free response buf [11:01:27]execute_script done [11:01:27]execute_script returns [11:01:27]free content buf [11:01:27]Sock 9.Close socket [11:01:27]Sock 9.Thread stoped [11:01:28]OFD Sender: No OFD packet to send [11:01:33]OFD Sender: No OFD packet to send [11:01:38]OFD Sender: No OFD packet to send [11:01:43]OFD Sender: No OFD packet to send [11:01:48]OFD Sender: No OFD packet to send [11:01:53]OFD Sender: No OFD packet to send [11:01:58]OFD Sender: No OFD packet to send [11:02:03]OFD Sender: No OFD packet to send [11:02:08]OFD Sender: No OFD packet to send [11:02:13]OFD Sender: No OFD packet to send [11:02:18]OFD Sender: No OFD packet to send [11:02:23]OFD Sender: No OFD packet to send [11:02:28]OFD Sender: No OFD packet to send [11:02:33]OFD Sender: No OFD packet to send [11:02:38]OFD Sender: No OFD packet to send [11:02:43]OFD Sender: No OFD packet to send [11:02:48]OFD Sender: No OFD packet to send [11:02:53]OFD Sender: No OFD packet to send [11:02:58]OFD Sender: No OFD packet to send [11:03:03]OFD Sender: No OFD packet to send [11:03:08]OFD Sender: No OFD packet to send [11:03:13]OFD Sender: No OFD packet to send [11:03:18]OFD Sender: No OFD packet to send [11:03:23]OFD Sender: No OFD packet to send [11:03:28]OFD Sender: No OFD packet to send [11:03:33]OFD Sender: No OFD packet to send [11:03:38]OFD Sender: No OFD packet to send [11:03:43]OFD Sender: No OFD packet to send [11:03:48]OFD Sender: No OFD packet to send [11:03:53]OFD Sender: No OFD packet to send [11:03:58]OFD Sender: No OFD packet to send [11:04:03]OFD Sender: No OFD packet to send [11:04:08]OFD Sender: No OFD packet to send [11:04:13]OFD Sender: No OFD packet to send [11:04:18]OFD Sender: No OFD packet to send [11:04:23]OFD Sender: No OFD packet to send [11:04:28]OFD Sender: No OFD packet to send [11:04:33]OFD Sender: No OFD packet to send [11:04:38]OFD Sender: No OFD packet to send [11:04:43]OFD Sender: No OFD packet to send [11:04:48]OFD Sender: No OFD packet to send [11:04:53]OFD Sender: No OFD packet to send [11:04:58]OFD Sender: No OFD packet to send [11:05:03]OFD Sender: No OFD packet to send [11:05:08]OFD Sender: No OFD packet to send [11:05:13]OFD Sender: No OFD packet to send [11:05: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:59]OFD Sender: No OFD packet to send [11:07:04]OFD Sender: No OFD packet to send [11:07:09]OFD Sender: No OFD packet to send [11:07:14]OFD Sender: No OFD packet to send [11:07:19]OFD Sender: No OFD packet to send [11:07:24]OFD Sender: No OFD packet to send [11:07:29]OFD Sender: No OFD packet to send [11:07:34]OFD Sender: No OFD packet to send [11:07:39]OFD Sender: No OFD packet to send [11:07:44]OFD Sender: No OFD packet to send [11:07:49]OFD Sender: No OFD packet to send [11:07:54]OFD Sender: No OFD packet to send [11:07:59]OFD Sender: No OFD packet to send [11:08:04]OFD Sender: No OFD packet to send [11:08:09]OFD Sender: No OFD packet to send [11:08:14]OFD Sender: No OFD packet to send [11:08:19]OFD Sender: No OFD packet to send [11:08:24]OFD Sender: No OFD packet to send [11:08:29]OFD Sender: No OFD packet to send [11:08:34]OFD Sender: No OFD packet to send [11:08:39]OFD Sender: No OFD packet to send [11:08:44]OFD Sender: No OFD packet to send [11:08:49]OFD Sender: No OFD packet to send [11:08:54]OFD Sender: No OFD packet to send [11:08:59]OFD Sender: No OFD packet to send [11:09:04]OFD Sender: No OFD packet to send [11:09:09]OFD Sender: No OFD packet to send [11:09:14]OFD Sender: No OFD packet to send [11:09:19]OFD Sender: No OFD packet to send [11:09:24]OFD Sender: No OFD packet to send [11:09:29]OFD Sender: No OFD packet to send [11:09:34]OFD Sender: No OFD packet to send [11:09:39]OFD Sender: No OFD packet to send [11:09:44]OFD Sender: No OFD packet to send [11:09:49]OFD Sender: No OFD packet to send [11:09:54]OFD Sender: No OFD packet to send [11:09:59]OFD Sender: No OFD packet to send [11:10:04]OFD Sender: No OFD packet to send [11:10:09]OFD Sender: No OFD packet to send [11:10:14]OFD Sender: No OFD packet to send [11:10:19]OFD Sender: No OFD packet to send [11:10:24]OFD Sender: No OFD packet to send [11:10:29]OFD Sender: No OFD packet to send [11:10:34]OFD Sender: No OFD packet to send [11:10:39]OFD Sender: No OFD packet to send [11:10:44]OFD Sender: No OFD packet to send [11:10:49]OFD Sender: No OFD packet to send [11:10:54]OFD Sender: No OFD packet to send [11:10:59]OFD Sender: No OFD packet to send [11:11:04]OFD Sender: No OFD packet to send [11:11:09]OFD Sender: No OFD packet to send [11:11:14]OFD Sender: No OFD packet to send [11:11:19]OFD Sender: No OFD packet to send [11:11:24]OFD Sender: No OFD packet to send [11:11:29]OFD Sender: No OFD packet to send [11:11:34]OFD Sender: No OFD packet to send [11:11:39]OFD Sender: No OFD packet to send [11:11:44]OFD Sender: No OFD packet to send [11:11:49]OFD Sender: No OFD packet to send [11:11:54]OFD Sender: No OFD packet to send [11:11:59]OFD Sender: No OFD packet to send [11:12:04]OFD Sender: No OFD packet to send [11:12:09]OFD Sender: No OFD packet to send [11:12:14]OFD Sender: No OFD packet to send [11:12:19]OFD Sender: No OFD packet to send [11:12:24]OFD Sender: No OFD packet to send [11:12:29]OFD Sender: No OFD packet to send [11:12:34]OFD Sender: No OFD packet to send [11:12:39]OFD Sender: No OFD packet to send [11:12:44]OFD Sender: No OFD packet to send [11:12:49]OFD Sender: No OFD packet to send [11:12:54]OFD Sender: No OFD packet to send [11:12:59]OFD Sender: No OFD packet to send [11:13:04]OFD Sender: No OFD packet to send [11:13:09]OFD Sender: No OFD packet to send [11:13:14]OFD Sender: No OFD packet to send [11:13:16]accept exits with 7 [11:13:16]New connection [11:13:16]New thread 3067481444 created [11:13:16]Thread 3067338084 joined [11:13:16]Waiting for new connection... [11:13:16] Sock 7.Parse request [11:13:16]Sock 7.Check first char [11:13:16]Sock 7.First char is OK [11:13:16]request: POST /json_proto HTTP/1.0 [11:13:16]Method: POST [11:13:16]URL: /json_proto [11:13:16]Method is POST - this is cgi request [11:13:16]url: /json_proto [11:13:16]query_string will be loaded in cgi processing [11:13:16]execute_cgi json_proto POST (null) [11:13:16]execute_cgi path=json_proto method=POST [11:13:16]POST find Content-Length [11:13:16]Host: 172.17.62.5:8080 [11:13:16]Content-Length: 990 [11:13:16]Content-Type: application/json [11:13:16] [11:13:16]POST finish read [11:13:16]Found Content-Length = 990 [11:13:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 31.550, "sum" : 1000.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 31.55 \u0441\u043E\u043C", "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:16]execute_script... [11:13: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)191347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 31.550, "sum" : 1000.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 31.55 \u0441\u043E\u043C", "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:16]POST & json_proto [11:13:16]process_json_proto [11:13:16]json parsed OK: [11:13:16]protocol is kg_v1.0 [11:13:16]action value=close_receipt [11:13:16]process_action close_receipt [11:13:16]cmd_close_receipt [11:13:16]MH_GetDate [11:13:16]Write to MH i2c: F0 00 00 D1 23 E3 [11:13:16]Write i2c OK [11:13:16]MH_I2C_Read... [11:13:16]Read from MH i2c: F0 [11:13:16]MH_I2C_Read... [11:13:16]Read from MH i2c: F0 09 00 [11:13:16]MH_I2C_Read... [11:13:16]Read from MH i2c: F0 09 00 D1 23 00 D0 F4 24 66 F4 E9 65 64 E0 [11:13:16]GetLastDocTimeStamp 1713695918 [11:13:16]current date 1713698000 [11:13:16]FM_GetShiftState [11:13:16]SAM_PROTO_GetShiftState [11:13:16]wFMCommunicate request_size=4 [11:13:16]MH_SAM_APDU [11:13:16]CAPDU: 80 13 01 00 [11:13:16]Write to MH i2c: E2 08 00 D2 23 80 13 01 00 00 00 00 00 72 [11:13:16]Write i2c OK [11:13:16]MH_I2C_Read... [11:13:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:16]Read from MH i2c: E2 [11:13:16]MH_I2C_Read... [11:13:16]Read from MH i2c: E2 0E 00 [11:13:16]MH_I2C_Read... [11:13:16]Read from MH i2c: E2 0E 00 D2 23 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 B9 [11:13:16]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [11:13:16]wFMCommunicate OK [11:13:16]SAM_PROTO_GetShiftState done [11:13:16]FM_GetShiftState done [11:13:16]opened in 1713658965 [11:13:16]opened+sec_in_day 1713745365 [11:13:16]quantity*price = 100013 [11:13:16]sum+1 = 100015 [11:13:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 69 21.04.2024 11:13 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 31.55 сом ФМ: 0000000000874652 ФД: 76813 ФПД: 134280754697358 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T111320&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76813&fm=134280754697358&tin=02508201610067®Number=0000000000091573&sum=100000 [11:13:17]StoreToDocumentArchive [11:13:17]shift 372 fd 76813 [11:13:17]save to /storage/0372/doc_00076813 [11:13:17]save last doc name /storage/0372/doc_00076813 to /storage/kkm_last_doc_name [11:13:17]save OK [11:13:17]Clear old archive folders... [11:13:17]ProcessDocumentItem done err = 0, tmpTLVsize=250 [11:13:17]tlvbuf is B6F422D0 [11:13:17]SAM_PROTO_ClearQueue [11:13:17]wFMCommunicate request_size=4 [11:13:17]MH_SAM_APDU [11:13:17]CAPDU: 80 09 00 00 [11:13:17]Write to MH i2c: E2 08 00 DF 23 80 09 00 00 00 00 00 00 74 [11:13:17]Write i2c OK [11:13:17]MH_I2C_Read... [11:13:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:18]Read from MH i2c: E2 [11:13:18]MH_I2C_Read... [11:13:18]Read from MH i2c: E2 03 00 [11:13:18]MH_I2C_Read... [11:13:18]Read from MH i2c: E2 03 00 DF 23 00 90 00 76 [11:13:18]RAPDU: 90 00 [11:13:18]wFMCommunicate OK [11:13:18]SAM_PROTO_ClearQueue done [11:13:18]KKMCreateOFDPacket [11:13:18]OFDProtocolAddRootSTLVToBuf [11:13:18]FM_MakeSignedData [11:13:18]FM_MakeSignedData [11:13:18]SAM_PROTO_SignData [11:13:18]wFMCommunicate request_size=4 [11:13:18]MH_SAM_APDU [11:13:18]CAPDU: 80 0D 01 02 [11:13:18]Write to MH i2c: E2 08 00 E0 23 80 0D 01 02 00 00 00 00 7C [11:13:18]Write i2c OK [11:13:18]MH_I2C_Read... [11:13:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:18]Read from MH i2c: E2 [11:13:18]MH_I2C_Read... [11:13:18]Read from MH i2c: E2 03 00 [11:13:18]MH_I2C_Read... [11:13:18]Read from MH i2c: E2 03 00 E0 23 00 90 00 77 [11:13:18]RAPDU: 90 00 [11:13:18]wFMCommunicate OK [11:13:18]wFMCommunicate request_size=255 [11:13:18]MH_SAM_APDU [11:13:18]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 D0 F4 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0D 2C 01 00 35 04 06 00 7A 20 [11:13:18]Write to MH i2c: E2 02 01 E1 23 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 D0 F4 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0D 2C 01 00 35 04 06 00 7A 20 00 00 D1 [11:13:18]Write i2c OK [11:13:18]MH_I2C_Read... [11:13:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:18]Read from MH i2c: E2 [11:13:18]MH_I2C_Read... [11:13:18]Read from MH i2c: E2 03 00 [11:13:18]MH_I2C_Read... [11:13:18]Read from MH i2c: E2 03 00 E1 23 00 90 00 78 [11:13:18]RAPDU: 90 00 [11:13:18]wFMCommunicate OK [11:13:18]wFMCommunicate request_size=9 [11:13:18]MH_SAM_APDU [11:13:18]CAPDU: 80 0D 02 02 04 AC AF 14 8E [11:13:18]Write to MH i2c: E2 0C 00 E2 23 80 0D 02 02 04 00 AC AF 14 8E 00 00 84 [11:13:18]Write i2c OK [11:13:18]MH_I2C_Read... [11:13:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:18]Read from MH i2c: E2 [11:13:18]MH_I2C_Read... [11:13:18]Read from MH i2c: E2 03 00 [11:13:18]MH_I2C_Read... [11:13:18]Read from MH i2c: E2 03 00 E2 23 00 90 00 79 [11:13:18]RAPDU: 90 00 [11:13:18]wFMCommunicate OK [11:13:18]wFMCommunicate request_size=4 [11:13:18]MH_SAM_APDU [11:13:18]CAPDU: 80 0D 03 02 [11:13:18]Write to MH i2c: E2 08 00 E3 23 80 0D 03 02 00 00 00 00 81 [11:13:18]Write i2c OK [11:13:18]MH_I2C_Read... [11:13:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:18]Read from MH i2c: E2 [11:13:18]MH_I2C_Read... [11:13:18]Read from MH i2c: E2 0B 00 [11:13:18]MH_I2C_Read... [11:13:18]Read from MH i2c: E2 0B 00 E3 23 00 DD AC 99 57 AF 08 C4 05 90 00 7B [11:13:18]RAPDU: DD AC 99 57 AF 08 C4 05 90 00 [11:13:18]wFMCommunicate OK [11:13:18]SAM_PROTO_SignData done [11:13:18]FM_MakeSignedData done [11:13:18]CreateOFDProtocolMessage [11:13:18]wFMCommunicate request_size=4 [11:13:18]MH_SAM_APDU [11:13:18]CAPDU: 80 11 00 00 [11:13:18]Write to MH i2c: E2 08 00 E4 23 80 11 00 00 00 00 00 00 81 [11:13:18]Write i2c OK [11:13:18]MH_I2C_Read... [11:13:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:18]Read from MH i2c: E2 [11:13:18]MH_I2C_Read... [11:13:18]Read from MH i2c: E2 17 00 [11:13:18]MH_I2C_Read... [11:13:18]Read from MH i2c: E2 17 00 E4 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 D4 [11:13:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:13:18]wFMCommunicate OK [11:13:18]CreateOFDProtocolMessage done [11:13:18]OFDSenderStorePacket 76813 [11:13:18]StoreOFDPacket docnum=76813 [11:13:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 D7 AE 06 01 E4 FC 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 D0 F4 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0D 2C 01 00 35 04 06 00 7A 20 AC AF 14 8E DD AC 99 57 AF 08 C4 05 [11:13:18]CheckFolder [11:13:18]dirname=/storage/ofd_packets [11:13:18]CheckFolder done [11:13:18]ProducePacketName [11:13:18]name=ofd_packets/00076813 [11:13:18]NVStorageSaveData ofd_packets/00076813 [11:13:18]File name is /storage/ofd_packets/00076813 [11:13:18]Write 300 bytes [11:13:18]NVStorageSaveData done [11:13:18]OFDSenderStorePacket done [11:13:18]KKMCreateOFDPacket done [11:13:18]NVStorageSaveData kkm_last_timestamp [11:13:18]File name is /storage/kkm_last_timestamp [11:13:18]Write 4 bytes [11:13:18]NVStorageSaveData done [11:13:18]ExternCall_PrintAddStr [11:13:18]wPrintStart [11:13:18]Write to MH i2c: 01 00 00 E5 23 08 [11:13:18]Write i2c OK [11:13:18]MH_I2C_Read... [11:13:18]Read from MH i2c: 01 [11:13:18]MH_I2C_Read... [11:13:18]Read from MH i2c: 01 07 00 [11:13:18]MH_I2C_Read... [11:13:18]Read from MH i2c: 01 07 00 E5 23 00 00 00 00 00 FF 0F 1D [11:13:18]RasterBufferAndPrint [11:13:18]line Счет N : (1)191347 [11:13:18]line ИНН: 02508201610067 [11:13:18]line Контрольно-Кассовый Чек [11:13:18]line ПРОДАЖА [11:13:18]line ТРК (МРК, ГНК) : 71 [11:13:18]line Товар: 2711190000 [11:13:18]line ГАЗ-К-5 [11:13:18]line 31.550 * 31.70 [11:13:18]line = 1000.14 [11:13:18]line НДС 12% НСП 1% [11:13:18]line > о реализуемом товаре [11:13:18]line ОКРУГЛЕНИЕ: -0.14 [11:13:18]line ИТОГО: 1000.00 [11:13:18]line Внесено: 1000.00 [11:13:18]line СДАЧА: 0.00 [11:13:18]line НСП 1% : 8.85 [11:13:18]line НДС 12% : 106.21 [11:13:18]line Наличными: 1000.00 [11:13:18]line Безнал.: 0.00 [11:13:18]line Место: АЗС № 106 "Партнер Нефть" [11:13:18]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [11:13:18]line СНО: Общий режим [11:13:18]line Чек 69 21.04.2024 11:13 [11:13:18]line Смена: 372 ФФД: 1.0 [11:13:18]line ЗНМ: 0300000141 [11:13:18]line РНМ: 0000000000091573 [11:13:18]line Версия ККМ: 001 [11:13:18]line [11:13:18]line Дисконтная программа [11:13:18]line СУГ [11:13:18]line номер 106 [11:13:18]line сэкономлено 31.55 сом [11:13:18]line ФМ: 0000000000874652 [11:13:18]line ФД: 76813 [11:13:18]line ФПД: 134280754697358 [11:13:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T111320&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76813&fm=134280754697358&tin=02508201610067®Number=0000000000091573&sum=100000 [11:13:18]OFD Sender: Processing packet 76813 [packets to send 129, broken 128] [11:13:18]ProducePacketName [11:13:18]name=ofd_packets/00076813 [11:13:18]OFD Sender: To server: pG, [11:13:18]CommunicateWithHost lk.salyk.kg:30040 [11:13:18]ConnectInit lk.salyk.kg [11:13:18]written 0, free lines is 4095 [11:13:19]Connected sock=10 [11: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 34 36 35 32 0E 01 00 00 D7 AE 06 01 E4 FC 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 D0 F4 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0D 2C 01 00 35 04 06 00 7A 20 AC AF 14 8E DD AC 99 57 AF 08 C4 05 [11:13:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 BB 81 47 00 50 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0D 2C 01 00 F4 03 04 00 56 9C 24 66 B6 04 01 00 00 80 7D B7 29 0A 89 C1 8E [11:13:19]CommunicateWithHost err = 0 [11:13:19]CheckOFDResponse [11:13:19]1017 (14) - 77093643461234 [11:13:19]1041 (16) - 0000000000874652 [11:13:19]1040 (4) - 76813 [11:13:19]1012 (4) - 21.04.2024 04:55 [11:13:19]1206 (1) - 0 [11:13:19]OFD Sender: Remove packet 76813 [11:13:19]ProducePacketName [11:13:19]name=ofd_packets/00076813 [11:13:19]NVStorageDeleteData [11:13:19]Write to MH i2c: 01 00 00 14 24 38 [11:13:19]Write i2c OK [11:13:19]MH_I2C_Read... [11:13:19]Read from MH i2c: 01 [11:13:19]MH_I2C_Read... [11:13:19]Read from MH i2c: 01 07 00 [11:13:19]MH_I2C_Read... [11:13:19]Read from MH i2c: 01 07 00 14 24 00 00 00 00 00 92 0C DD [11:13:19]RasterBufferAndPrint [11:13:19]line [11:13:19]line [11:13:19]line [11:13:19]line [11:13:19]line [11:13:19]written 0, free lines is 3224 [11:13:19]MH_Cut [11:13:19]Write to MH i2c: D1 01 00 1B 24 01 11 [11:13:19]Write i2c OK [11:13:19]MH_I2C_Read... [11:13:19]Read from MH i2c: D1 [11:13:19]MH_I2C_Read... [11:13:19]Read from MH i2c: D1 01 00 [11:13:19]MH_I2C_Read... [11:13:19]Read from MH i2c: D1 01 00 1B 24 00 10 [11:13:19]Write to MH i2c: 01 00 00 1C 24 40 [11:13:19]Write i2c OK [11:13:19]MH_I2C_Read... [11:13:19]OFD Sender: No OFD packet to send [11:13:20]*** Cut start [11:13:20]*** Partial cut [11:13:20]*** CUTSNS_PIN = 1 [11:13:20]*** CUTSNS_PIN = 0 [11:13:20]*** Brake cut motor [11:13:20]Read from MH i2c: 01 [11:13:20]MH_I2C_Read... [11:13:20]*** Stop cut motor [11:13:20]*** Cut end [11:13:20]Read from MH i2c: 01 07 00 [11:13:20]MH_I2C_Read... [11:13:20]Read from MH i2c: 01 07 00 1C 24 00 00 00 00 00 FF 0F 55 [11:13:20]process_action close_receipt done [11:13:20]requested_data is exist [11:13:20]produce_requested_data [11:13:20]requested_item fm.sn is exist - process it [11:13:20]wFMCommunicate request_size=4 [11:13:20]MH_SAM_APDU [11:13:20]CAPDU: 80 11 00 00 [11:13:20]Write to MH i2c: E2 08 00 1D 24 80 11 00 00 00 00 00 00 BB [11:13:20]Write i2c OK [11:13:20]MH_I2C_Read... [11:13:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:20]Read from MH i2c: E2 [11:13:20]MH_I2C_Read... [11:13:20]Read from MH i2c: E2 17 00 [11:13:20]MH_I2C_Read... [11:13:20]Read from MH i2c: E2 17 00 1D 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 0E [11:13:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:13:20]wFMCommunicate OK [11:13:20]requested_item fd.num is exist - process it [11:13:20]SAM_PROTO_GetFieldsCounters [11:13:20]wFMCommunicate request_size=4 [11:13:20]MH_SAM_APDU [11:13:20]CAPDU: 80 13 00 00 [11:13:20]Write to MH i2c: E2 08 00 1E 24 80 13 00 00 00 00 00 00 BE [11:13:20]Write i2c OK [11:13:20]MH_I2C_Read... [11:13:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:20]Read from MH i2c: E2 [11:13:20]MH_I2C_Read... [11:13:20]Read from MH i2c: E2 62 00 [11:13:20]MH_I2C_Read... [11:13:20]Read from MH i2c: E2 62 00 1E 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0D 2C 01 00 0E 04 04 00 74 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 5D [11:13: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0D 2C 01 00 0E 04 04 00 74 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:13:20]wFMCommunicate OK [11:13:20]SAM_PROTO_GetFieldsCounters done [11:13:20]requested_item shift.num is exist - process it [11:13:20]requested_item shift.opened is exist - process it [11:13:20]req_shift_opened [11:13:20]FM_GetShiftState [11:13:20]SAM_PROTO_GetShiftState [11:13:20]wFMCommunicate request_size=4 [11:13:20]MH_SAM_APDU [11:13:20]CAPDU: 80 13 01 00 [11:13:20]Write to MH i2c: E2 08 00 1F 24 80 13 01 00 00 00 00 00 C0 [11:13:20]Write i2c OK [11:13:20]MH_I2C_Read... [11:13:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:21]Read from MH i2c: E2 [11:13:21]MH_I2C_Read... [11:13:21]Read from MH i2c: E2 0E 00 [11:13:21]MH_I2C_Read... [11:13:21]Read from MH i2c: E2 0E 00 1F 24 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 07 [11:13:21]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [11:13:21]wFMCommunicate OK [11:13:21]SAM_PROTO_GetShiftState done [11:13:21]FM_GetShiftState done [11:13:21]req_shift_opened done [11:13:21]requested_item shift.open_date is exist - process it [11:13:21]req_shift_open_date [11:13:21]req_shift_open_date done [11:13:21]produce_requested_data done [11:13:21]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76813,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [11:13:21]process_action_free close_receipt [11:13:21]json_value_free [11:13:21]json_value_free done [11:13:21]process_json_proto returns [11:13:21]Send response to host [11:13:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76813,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [11:13:21]free response buf [11:13:21]execute_script done [11:13:21]execute_script returns [11:13:21]free content buf [11:13:21]Sock 7.Close socket [11:13:21]Sock 7.Thread stoped [11:13:24]OFD Sender: No OFD packet to send [11:13:29]OFD Sender: No OFD packet to send [11:13:34]OFD Sender: No OFD packet to send [11:13:39]OFD Sender: No OFD packet to send [11:13:44]OFD Sender: No OFD packet to send [11:13:49]OFD Sender: No OFD packet to send [11:13:54]OFD Sender: No OFD packet to send [11:13:59]OFD Sender: No OFD packet to send [11:14:04]OFD Sender: No OFD packet to send [11:14:09]OFD Sender: No OFD packet to send [11:14:14]OFD Sender: No OFD packet to send [11:14:19]OFD Sender: No OFD packet to send [11:14:24]OFD Sender: No OFD packet to send [11:14:29]OFD Sender: No OFD packet to send [11:14:34]OFD Sender: No OFD packet to send [11:14:39]OFD Sender: No OFD packet to send [11:14:44]OFD Sender: No OFD packet to send [11:14:49]OFD Sender: No OFD packet to send [11:14:54]OFD Sender: No OFD packet to send [11:14:55]accept exits with 9 [11:14:55]New connection [11:14:55]New thread 3067338084 created [11:14:55]Thread 3067481444 joined [11:14:55]Waiting for new connection... [11:14:55] Sock 9.Parse request [11:14:55]Sock 9.Check first char [11:14:55]Sock 9.First char is OK [11:14:55]request: POST /json_proto HTTP/1.0 [11:14:55]Method: POST [11:14:55]URL: /json_proto [11:14:55]Method is POST - this is cgi request [11:14:55]url: /json_proto [11:14:55]query_string will be loaded in cgi processing [11:14:55]execute_cgi json_proto POST (null) [11:14:55]execute_cgi path=json_proto method=POST [11:14:55]POST find Content-Length [11:14:55]Host: 172.17.62.5:8080 [11:14:55]Content-Length: 984 [11:14:55]Content-Type: application/json [11:14:55] [11:14:55]POST finish read [11:14:55]Found Content-Length = 984 [11:14:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 139.090, "sum" : 10000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 139.09 \u0441\u043E\u043C", "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" ] } } [11:14:55]execute_script... [11:14:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 139.090, "sum" : 10000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 139.09 \u0441\u043E\u043C", "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" ] } } [11:14:55]POST & json_proto [11:14:55]process_json_proto [11:14:55]json parsed OK: [11:14:55]protocol is kg_v1.0 [11:14:55]action value=close_receipt [11:14:55]process_action close_receipt [11:14:55]cmd_close_receipt [11:14:55]MH_GetDate [11:14:55]Write to MH i2c: F0 00 00 20 24 33 [11:14:55]Write i2c OK [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: F0 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: F0 09 00 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: F0 09 00 20 24 00 33 F5 24 66 F4 E9 65 64 94 [11:14:55]GetLastDocTimeStamp 1713698000 [11:14:55]current date 1713698099 [11:14:55]FM_GetShiftState [11:14:55]SAM_PROTO_GetShiftState [11:14:55]wFMCommunicate request_size=4 [11:14:55]MH_SAM_APDU [11:14:55]CAPDU: 80 13 01 00 [11:14:55]Write to MH i2c: E2 08 00 21 24 80 13 01 00 00 00 00 00 C2 [11:14:55]Write i2c OK [11:14:55]MH_I2C_Read... [11:14:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:55]Read from MH i2c: E2 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: E2 0E 00 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: E2 0E 00 21 24 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 09 [11:14:55]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [11:14:55]wFMCommunicate OK [11:14:55]SAM_PROTO_GetShiftState done [11:14:55]FM_GetShiftState done [11:14:55]opened in 1713658965 [11:14:55]opened+sec_in_day 1713745365 [11:14:55]quantity*price = 1000057 [11:14:55]sum+1 = 1000058 [11:14:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 10000.00 Внесено: 10000.00 СДАЧА: 0.00 НСП 1% : 88.50 НДС 12% : 1062.01 Наличными: 10000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 70 21.04.2024 11:14 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 139.09 сом ФМ: 0000000000874652 ФД: 76814 ФПД: 144180849456384 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T111459&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76814&fm=144180849456384&tin=02508201610067®Number=0000000000091573&sum=1000000 [11:14:56]StoreToDocumentArchive [11:14:56]shift 372 fd 76814 [11:14:56]save to /storage/0372/doc_00076814 [11:14:56]save last doc name /storage/0372/doc_00076814 to /storage/kkm_last_doc_name [11:14:56]save OK [11:14:56]Clear old archive folders... [11:14:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:14:56]tlvbuf is B6F424E0 [11:14:56]SAM_PROTO_ClearQueue [11:14:56]wFMCommunicate request_size=4 [11:14:56]MH_SAM_APDU [11:14:56]CAPDU: 80 09 00 00 [11:14:56]Write to MH i2c: E2 08 00 2E 24 80 09 00 00 00 00 00 00 C4 [11:14:56]Write i2c OK [11:14:56]MH_I2C_Read... [11:14:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:56]Read from MH i2c: E2 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: E2 03 00 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: E2 03 00 2E 24 00 90 00 C6 [11:14:56]RAPDU: 90 00 [11:14:56]wFMCommunicate OK [11:14:56]SAM_PROTO_ClearQueue done [11:14:56]KKMCreateOFDPacket [11:14:56]OFDProtocolAddRootSTLVToBuf [11:14:56]FM_MakeSignedData [11:14:56]FM_MakeSignedData [11:14:56]SAM_PROTO_SignData [11:14:56]wFMCommunicate request_size=4 [11:14:56]MH_SAM_APDU [11:14:56]CAPDU: 80 0D 01 02 [11:14:56]Write to MH i2c: E2 08 00 2F 24 80 0D 01 02 00 00 00 00 CC [11:14:56]Write i2c OK [11:14:56]MH_I2C_Read... [11:14:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:56]Read from MH i2c: E2 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: E2 03 00 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: E2 03 00 2F 24 00 90 00 C7 [11:14:56]RAPDU: 90 00 [11:14:56]wFMCommunicate OK [11:14:56]wFMCommunicate request_size=255 [11:14:56]MH_SAM_APDU [11:14:56]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 52 1F 02 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 79 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 D9 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 46 00 00 00 F4 03 04 00 33 F5 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0E 2C 01 00 35 04 06 00 83 21 B8 50 [11:14:56]Write to MH i2c: E2 02 01 30 24 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 52 1F 02 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 79 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 D9 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 46 00 00 00 F4 03 04 00 33 F5 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0E 2C 01 00 35 04 06 00 83 21 B8 50 00 00 3A [11:14:56]Write i2c OK [11:14:56]MH_I2C_Read... [11:14:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:56]Read from MH i2c: E2 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: E2 03 00 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: E2 03 00 30 24 00 90 00 C8 [11:14:56]RAPDU: 90 00 [11:14:56]wFMCommunicate OK [11:14:56]wFMCommunicate request_size=7 [11:14:56]MH_SAM_APDU [11:14:56]CAPDU: 80 0D 02 02 02 B5 00 [11:14:56]Write to MH i2c: E2 0A 00 31 24 80 0D 02 02 02 00 B5 00 00 00 88 [11:14:56]Write i2c OK [11:14:56]MH_I2C_Read... [11:14:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:56]Read from MH i2c: E2 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: E2 03 00 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: E2 03 00 31 24 00 90 00 C9 [11:14:56]RAPDU: 90 00 [11:14:56]wFMCommunicate OK [11:14:56]wFMCommunicate request_size=4 [11:14:56]MH_SAM_APDU [11:14:56]CAPDU: 80 0D 03 02 [11:14:56]Write to MH i2c: E2 08 00 32 24 80 0D 03 02 00 00 00 00 D1 [11:14:56]Write i2c OK [11:14:56]MH_I2C_Read... [11:14:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:56]Read from MH i2c: E2 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: E2 0B 00 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: E2 0B 00 32 24 00 7A 4A 6B 42 D3 68 4B 75 90 00 3E [11:14:56]RAPDU: 7A 4A 6B 42 D3 68 4B 75 90 00 [11:14:56]wFMCommunicate OK [11:14:56]SAM_PROTO_SignData done [11:14:56]FM_MakeSignedData done [11:14:56]CreateOFDProtocolMessage [11:14:56]wFMCommunicate request_size=4 [11:14:56]MH_SAM_APDU [11:14:56]CAPDU: 80 11 00 00 [11:14:56]Write to MH i2c: E2 08 00 33 24 80 11 00 00 00 00 00 00 D1 [11:14:56]Write i2c OK [11:14:56]MH_I2C_Read... [11:14:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:56]Read from MH i2c: E2 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: E2 17 00 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: E2 17 00 33 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 24 [11:14:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:14:56]wFMCommunicate OK [11:14:56]CreateOFDProtocolMessage done [11:14:56]OFDSenderStorePacket 76814 [11:14:56]StoreOFDPacket docnum=76814 [11:14:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 E0 7C 04 01 7A 53 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 52 1F 02 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 79 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 D9 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 46 00 00 00 F4 03 04 00 33 F5 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0E 2C 01 00 35 04 06 00 83 21 B8 50 B5 00 7A 4A 6B 42 D3 68 4B 75 [11:14:56]CheckFolder [11:14:56]dirname=/storage/ofd_packets [11:14:56]CheckFolder done [11:14:56]ProducePacketName [11:14:56]name=ofd_packets/00076814 [11:14:56]NVStorageSaveData ofd_packets/00076814 [11:14:56]File name is /storage/ofd_packets/00076814 [11:14:56]Write 298 bytes [11:14:56]NVStorageSaveData done [11:14:56]OFDSenderStorePacket done [11:14:56]KKMCreateOFDPacket done [11:14:56]NVStorageSaveData kkm_last_timestamp [11:14:56]File name is /storage/kkm_last_timestamp [11:14:56]Write 4 bytes [11:14:56]NVStorageSaveData done [11:14:56]ExternCall_PrintAddStr [11:14:56]wPrintStart [11:14:56]Write to MH i2c: 01 00 00 34 24 58 [11:14:56]Write i2c OK [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: 01 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: 01 07 00 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: 01 07 00 34 24 00 00 00 00 00 FF 0F 6D [11:14:56]RasterBufferAndPrint [11:14:56]line Счет N : (1)191348 [11:14:56]line ИНН: 02508201610067 [11:14:56]line Контрольно-Кассовый Чек [11:14:56]line ПРОДАЖА [11:14:56]line ТРК (МРК, ГНК) : 61 [11:14:56]line Товар: 2710194210 [11:14:56]line ДТ-К-5 [11:14:56]line 139.090 * 71.90 [11:14:56]line = 10000.57 [11:14:56]line НДС 12% НСП 1% [11:14:56]line > о реализуемом товаре [11:14:56]line ОКРУГЛЕНИЕ: -0.57 [11:14:56]line ИТОГО: 10000.00 [11:14:56]line Внесено: 10000.00 [11:14:56]line СДАЧА: 0.00 [11:14:56]line НСП 1% : 88.50 [11:14:56]line НДС 12% : 1062.01 [11:14:56]line Наличными: 10000.00 [11:14:56]line Безнал.: 0.00 [11:14:56]line Место: АЗС № 106 "Партнер Нефть" [11:14:56]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [11:14:56]line СНО: Общий режим [11:14:56]line Чек 70 21.04.2024 11:14 [11:14:56]line Смена: 372 ФФД: 1.0 [11:14:56]line ЗНМ: 0300000141 [11:14:56]line РНМ: 0000000000091573 [11:14:56]line Версия ККМ: 001 [11:14:56]line [11:14:56]line Дисконтная программа [11:14:56]line ДТ [11:14:56]line номер 106 [11:14:56]line сэкономлено 139.09 сом [11:14:56]line ФМ: 0000000000874652 [11:14:56]line ФД: 76814 [11:14:56]line ФПД: 144180849456384 [11:14:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T111459&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76814&fm=144180849456384&tin=02508201610067®Number=0000000000091573&sum=1000000 [11:14:57]OFD Sender: Processing packet 76814 [packets to send 129, broken 128] [11:14:57]ProducePacketName [11:14:57]name=ofd_packets/00076814 [11:14:57]OFD Sender: To server: pG, [11:14:57]CommunicateWithHost lk.salyk.kg:30040 [11:14:57]ConnectInit lk.salyk.kg [11:14:57]written 0, free lines is 4095 [11:14:57]Connected sock=11 [11:14:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 E0 7C 04 01 7A 53 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 52 1F 02 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 79 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 D9 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 46 00 00 00 F4 03 04 00 33 F5 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0E 2C 01 00 35 04 06 00 83 21 B8 50 B5 00 7A 4A 6B 42 D3 68 4B 75 [11:14:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 6C 9C 47 00 9B C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0E 2C 01 00 F4 03 04 00 B8 9C 24 66 B6 04 01 00 00 3B B7 87 D7 12 6E 1D BC [11:14:57]CommunicateWithHost err = 0 [11:14:57]CheckOFDResponse [11:14:57]1017 (14) - 77093643461234 [11:14:57]1041 (16) - 0000000000874652 [11:14:57]1040 (4) - 76814 [11:14:57]1012 (4) - 21.04.2024 04:57 [11:14:57]1206 (1) - 0 [11:14:57]OFD Sender: Remove packet 76814 [11:14:57]ProducePacketName [11:14:57]name=ofd_packets/00076814 [11:14:57]NVStorageDeleteData [11:14:57]Write to MH i2c: 01 00 00 63 24 87 [11:14:57]Write i2c OK [11:14:57]MH_I2C_Read... [11:14:57]Read from MH i2c: 01 [11:14:57]MH_I2C_Read... [11:14:57]Read from MH i2c: 01 07 00 [11:14:57]MH_I2C_Read... [11:14:57]Read from MH i2c: 01 07 00 63 24 00 00 00 00 00 8A 0C 24 [11:14:57]RasterBufferAndPrint [11:14:57]line [11:14:57]line [11:14:57]line [11:14:57]line [11:14:57]line [11:14:57]written 0, free lines is 3217 [11:14:57]MH_Cut [11:14:57]Write to MH i2c: D1 01 00 6A 24 01 60 [11:14:57]Write i2c OK [11:14:57]MH_I2C_Read... [11:14:57]Read from MH i2c: D1 [11:14:57]MH_I2C_Read... [11:14:57]Read from MH i2c: D1 01 00 [11:14:57]MH_I2C_Read... [11:14:57]Read from MH i2c: D1 01 00 6A 24 00 5F [11:14:57]Write to MH i2c: 01 00 00 6B 24 8F [11:14:57]Write i2c OK [11:14:57]MH_I2C_Read... [11:14:58]OFD Sender: No OFD packet to send [11:14:58]*** Cut start [11:14:58]*** Partial cut [11:14:58]*** CUTSNS_PIN = 1 [11:14:58]*** CUTSNS_PIN = 0 [11:14:58]*** Brake cut motor [11:14:59]Read from MH i2c: 01 [11:14:59]MH_I2C_Read... [11:14:59]*** Stop cut motor [11:14:59]*** Cut end [11:14:59]Read from MH i2c: 01 07 00 [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: 01 07 00 6B 24 00 00 00 00 00 FF 0F A4 [11:14:59]process_action close_receipt done [11:14:59]requested_data is exist [11:14:59]produce_requested_data [11:14:59]requested_item fm.sn is exist - process it [11:14:59]wFMCommunicate request_size=4 [11:14:59]MH_SAM_APDU [11:14:59]CAPDU: 80 11 00 00 [11:14:59]Write to MH i2c: E2 08 00 6C 24 80 11 00 00 00 00 00 00 0A [11:14:59]Write i2c OK [11:14:59]MH_I2C_Read... [11:14:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:59]Read from MH i2c: E2 [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: E2 17 00 [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: E2 17 00 6C 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 5D [11:14:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:14:59]wFMCommunicate OK [11:14:59]requested_item fd.num is exist - process it [11:14:59]SAM_PROTO_GetFieldsCounters [11:14:59]wFMCommunicate request_size=4 [11:14:59]MH_SAM_APDU [11:14:59]CAPDU: 80 13 00 00 [11:14:59]Write to MH i2c: E2 08 00 6D 24 80 13 00 00 00 00 00 00 0D [11:14:59]Write i2c OK [11:14:59]MH_I2C_Read... [11:14:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:59]Read from MH i2c: E2 [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: E2 62 00 [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: E2 62 00 6D 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0E 2C 01 00 0E 04 04 00 74 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 B0 [11:14:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0E 2C 01 00 0E 04 04 00 74 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:14:59]wFMCommunicate OK [11:14:59]SAM_PROTO_GetFieldsCounters done [11:14:59]requested_item shift.num is exist - process it [11:14:59]requested_item shift.opened is exist - process it [11:14:59]req_shift_opened [11:14:59]FM_GetShiftState [11:14:59]SAM_PROTO_GetShiftState [11:14:59]wFMCommunicate request_size=4 [11:14:59]MH_SAM_APDU [11:14:59]CAPDU: 80 13 01 00 [11:14:59]Write to MH i2c: E2 08 00 6E 24 80 13 01 00 00 00 00 00 0F [11:14:59]Write i2c OK [11:14:59]MH_I2C_Read... [11:14:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:59]Read from MH i2c: E2 [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: E2 0E 00 [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: E2 0E 00 6E 24 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 56 [11:14:59]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [11:14:59]wFMCommunicate OK [11:14:59]SAM_PROTO_GetShiftState done [11:14:59]FM_GetShiftState done [11:14:59]req_shift_opened done [11:14:59]requested_item shift.open_date is exist - process it [11:14:59]req_shift_open_date [11:14:59]req_shift_open_date done [11:14:59]produce_requested_data done [11:14:59]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76814,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [11:14:59]process_action_free close_receipt [11:14:59]json_value_free [11:14:59]json_value_free done [11:14:59]process_json_proto returns [11:14:59]Send response to host [11:14:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76814,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [11:14:59]free response buf [11:14:59]execute_script done [11:14:59]execute_script returns [11:14:59]free content buf [11:14:59]Sock 9.Close socket [11:14:59]Sock 9.Thread stoped [11:15:03]OFD Sender: No OFD packet to send [11:15:08]OFD Sender: No OFD packet to send [11:15:13]OFD Sender: No OFD packet to send [11:15:18]OFD Sender: No OFD packet to send [11:15:23]OFD Sender: No OFD packet to send [11:15:28]OFD Sender: No OFD packet to send [11:15: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:13]OFD Sender: No OFD packet to send [11:16:18]OFD Sender: No OFD packet to send [11:16:23]OFD Sender: No OFD packet to send [11:16:28]OFD Sender: No OFD packet to send [11:16:33]OFD Sender: No OFD packet to send [11:16:38]OFD Sender: No OFD packet to send [11:16:43]OFD Sender: No OFD packet to send [11:16:48]OFD Sender: No OFD packet to send [11:16:53]OFD Sender: No OFD packet to send [11:16:58]OFD Sender: No OFD packet to send [11:17:03]OFD Sender: No OFD packet to send [11:17:08]OFD Sender: No OFD packet to send [11:17:13]OFD Sender: No OFD packet to send [11:17:18]OFD Sender: No OFD packet to send [11:17:23]OFD Sender: No OFD packet to send [11:17:28]OFD Sender: No OFD packet to send [11:17:33]OFD Sender: No OFD packet to send [11:17:38]OFD Sender: No OFD packet to send [11:17:43]OFD Sender: No OFD packet to send [11:17:48]OFD Sender: No OFD packet to send [11:17:53]OFD Sender: No OFD packet to send [11:17:58]OFD Sender: No OFD packet to send [11:18:03]OFD Sender: No OFD packet to send [11:18:08]OFD Sender: No OFD packet to send [11:18:13]OFD Sender: No OFD packet to send [11:18:18]OFD Sender: No OFD packet to send [11:18:23]OFD Sender: No OFD packet to send [11:18:28]OFD Sender: No OFD packet to send [11:18:33]OFD Sender: No OFD packet to send [11:18:38]OFD Sender: No OFD packet to send [11:18:43]OFD Sender: No OFD packet to send [11:18:48]OFD Sender: No OFD packet to send [11:18:53]OFD Sender: No OFD packet to send [11:18:58]OFD Sender: No OFD packet to send [11:19:03]OFD Sender: No OFD packet to send [11:19:08]OFD Sender: No OFD packet to send [11:19:13]OFD Sender: No OFD packet to send [11:19:18]OFD Sender: No OFD packet to send [11:19:23]OFD Sender: No OFD packet to send [11:19:28]OFD Sender: No OFD packet to send [11:19:33]OFD Sender: No OFD packet to send [11:19:38]OFD Sender: No OFD packet to send [11:19:43]OFD Sender: No OFD packet to send [11:19:48]OFD Sender: No OFD packet to send [11:19:53]OFD Sender: No OFD packet to send [11:19:58]OFD Sender: No OFD packet to send [11:20:03]OFD Sender: No OFD packet to send [11:20:08]OFD Sender: No OFD packet to send [11:20:13]OFD Sender: No OFD packet to send [11:20:18]OFD Sender: No OFD packet to send [11:20:23]OFD Sender: No OFD packet to send [11:20:28]OFD Sender: No OFD packet to send [11:20:33]OFD Sender: No OFD packet to send [11:20:38]OFD Sender: No OFD packet to send [11:20:43]OFD Sender: No OFD packet to send [11:20:48]OFD Sender: No OFD packet to send [11:20:53]OFD Sender: No OFD packet to send [11:20:58]OFD Sender: No OFD packet to send [11:21:03]OFD Sender: No OFD packet to send [11:21:08]OFD Sender: No OFD packet to send [11:21:13]OFD Sender: No OFD packet to send [11:21:18]OFD Sender: No OFD packet to send [11:21:23]OFD Sender: No OFD packet to send [11:21:28]OFD Sender: No OFD packet to send [11:21:33]OFD Sender: No OFD packet to send [11:21:38]OFD Sender: No OFD packet to send [11:21:43]OFD Sender: No OFD packet to send [11:21:48]OFD Sender: No OFD packet to send [11:21:53]OFD Sender: No OFD packet to send [11:21:58]OFD Sender: No OFD packet to send [11:22:03]OFD Sender: No OFD packet to send [11:22:08]OFD Sender: No OFD packet to send [11:22:13]OFD Sender: No OFD packet to send [11:22:18]OFD Sender: No OFD packet to send [11:22:23]OFD Sender: No OFD packet to send [11:22:28]OFD Sender: No OFD packet to send [11:22:33]OFD Sender: No OFD packet to send [11:22:38]OFD Sender: No OFD packet to send [11:22:43]OFD Sender: No OFD packet to send [11:22:48]OFD Sender: No OFD packet to send [11:22:53]OFD Sender: No OFD packet to send [11:22:58]OFD Sender: No OFD packet to send [11:23:03]OFD Sender: No OFD packet to send [11:23:08]OFD Sender: No OFD packet to send [11:23:13]OFD Sender: No OFD packet to send [11:23:18]OFD Sender: No OFD packet to send [11:23:23]OFD Sender: No OFD packet to send [11:23:28]OFD Sender: No OFD packet to send [11:23:33]OFD Sender: No OFD packet to send [11:23:38]OFD Sender: No OFD packet to send [11:23:43]OFD Sender: No OFD packet to send [11:23:48]OFD Sender: No OFD packet to send [11:23:53]OFD Sender: No OFD packet to send [11:23:58]OFD Sender: No OFD packet to send [11:24:03]OFD Sender: No OFD packet to send [11:24:08]OFD Sender: No OFD packet to send [11:24:13]OFD Sender: No OFD packet to send [11:24:18]OFD Sender: No OFD packet to send [11:24:23]OFD Sender: No OFD packet to send [11:24:28]OFD Sender: No OFD packet to send [11:24:33]OFD Sender: No OFD packet to send [11:24:38]accept exits with 7 [11:24:38]New connection [11:24:38]New thread 3067481444 created [11:24:38]Thread 3067338084 joined [11:24:38]Waiting for new connection... [11:24:38] Sock 7.Parse request [11:24:38]Sock 7.Check first char [11:24:38]Sock 7.First char is OK [11:24:38]request: POST /json_proto HTTP/1.0 [11:24:38]Method: POST [11:24:38]URL: /json_proto [11:24:38]Method is POST - this is cgi request [11:24:38]url: /json_proto [11:24:38]query_string will be loaded in cgi processing [11:24:38]execute_cgi json_proto POST (null) [11:24:38]execute_cgi path=json_proto method=POST [11:24:38]POST find Content-Length [11:24:38]Host: 172.17.62.5:8080 [11:24:38]Content-Length: 677 [11:24:38]Content-Type: application/json [11:24:38] [11:24:38]POST finish read [11:24:38]Found Content-Length = 677 [11:24:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 4.660, "sum" : 300.10, "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:24:38]execute_script... [11:24: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)191349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 4.660, "sum" : 300.10, "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:24:38]POST & json_proto [11:24:38]process_json_proto [11:24:38]json parsed OK: [11:24:38]protocol is kg_v1.0 [11:24:38]action value=close_receipt [11:24:38]process_action close_receipt [11:24:38]cmd_close_receipt [11:24:38]MH_GetDate [11:24:38]Write to MH i2c: F0 00 00 6F 24 82 [11:24:38]Write i2c OK [11:24:38]MH_I2C_Read... [11:24:38]Read from MH i2c: F0 [11:24:38]MH_I2C_Read... [11:24:38]Read from MH i2c: F0 09 00 [11:24:38]MH_I2C_Read... [11:24:38]Read from MH i2c: F0 09 00 6F 24 00 7A F7 24 66 F4 E9 65 64 2C [11:24:38]GetLastDocTimeStamp 1713698099 [11:24:38]current date 1713698682 [11:24:38]FM_GetShiftState [11:24:38]SAM_PROTO_GetShiftState [11:24:38]wFMCommunicate request_size=4 [11:24:38]MH_SAM_APDU [11:24:38]CAPDU: 80 13 01 00 [11:24:38]Write to MH i2c: E2 08 00 70 24 80 13 01 00 00 00 00 00 11 [11:24:38]Write i2c OK [11:24:38]MH_I2C_Read... [11:24:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:38]Read from MH i2c: E2 [11:24:38]MH_I2C_Read... [11:24:38]Read from MH i2c: E2 0E 00 [11:24:38]MH_I2C_Read... [11:24:38]Read from MH i2c: E2 0E 00 70 24 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 58 [11:24:38]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [11:24:38]wFMCommunicate OK [11:24:38]SAM_PROTO_GetShiftState done [11:24:38]FM_GetShiftState done [11:24:38]opened in 1713658965 [11:24:38]opened+sec_in_day 1713745365 [11:24:38]quantity*price = 30010 [11:24:38]sum+1 = 30011 [11:24:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 71 21.04.2024 11:24 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76815 ФПД: 92002085674042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T112442&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76815&fm=92002085674042&tin=02508201610067®Number=0000000000091573&sum=30000 [11:24:39]StoreToDocumentArchive [11:24:39]shift 372 fd 76815 [11:24:39]save to /storage/0372/doc_00076815 [11:24:39]save last doc name /storage/0372/doc_00076815 to /storage/kkm_last_doc_name [11:24:39]save OK [11:24:39]Clear old archive folders... [11:24:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:24:39]tlvbuf is 0186F120 [11:24:39]SAM_PROTO_ClearQueue [11:24:39]wFMCommunicate request_size=4 [11:24:39]MH_SAM_APDU [11:24:39]CAPDU: 80 09 00 00 [11:24:39]Write to MH i2c: E2 08 00 7D 24 80 09 00 00 00 00 00 00 13 [11:24:39]Write i2c OK [11:24:39]MH_I2C_Read... [11:24:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:24:39]Read from MH i2c: E2 [11:24:39]MH_I2C_Read... [11:24:39]Read from MH i2c: E2 03 00 [11:24:39]MH_I2C_Read... [11:24:39]Read from MH i2c: E2 03 00 7D 24 00 90 00 15 [11:24:39]RAPDU: 90 00 [11:24:39]wFMCommunicate OK [11:24:39]SAM_PROTO_ClearQueue done [11:24:39]KKMCreateOFDPacket [11:24:39]OFDProtocolAddRootSTLVToBuf [11:24:39]FM_MakeSignedData [11:24:39]FM_MakeSignedData [11:24:39]SAM_PROTO_SignData [11:24:39]wFMCommunicate request_size=4 [11:24:39]MH_SAM_APDU [11:24:39]CAPDU: 80 0D 01 02 [11:24:39]Write to MH i2c: E2 08 00 7E 24 80 0D 01 02 00 00 00 00 1B [11:24:39]Write i2c OK [11:24:39]MH_I2C_Read... [11:24:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:24:39]Read from MH i2c: E2 [11:24:39]MH_I2C_Read... [11:24:39]Read from MH i2c: E2 03 00 [11:24:39]MH_I2C_Read... [11:24:39]Read from MH i2c: E2 03 00 7E 24 00 90 00 16 [11:24:39]RAPDU: 90 00 [11:24:39]wFMCommunicate OK [11:24:39]wFMCommunicate request_size=255 [11:24:39]MH_SAM_APDU [11:24: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 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 47 00 00 00 F4 03 04 00 7A F7 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0F 2C 01 00 35 04 06 00 53 [11:24:39]Write to MH i2c: E2 02 01 7F 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 47 00 00 00 F4 03 04 00 7A F7 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0F 2C 01 00 35 04 06 00 53 00 00 75 [11:24:39]Write i2c OK [11:24:39]MH_I2C_Read... [11:24:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:40]Read from MH i2c: E2 [11:24:40]MH_I2C_Read... [11:24:40]Read from MH i2c: E2 03 00 [11:24:40]MH_I2C_Read... [11:24:40]Read from MH i2c: E2 03 00 7F 24 00 90 00 17 [11:24:40]RAPDU: 90 00 [11:24:40]wFMCommunicate OK [11:24:40]wFMCommunicate request_size=10 [11:24:40]MH_SAM_APDU [11:24:40]CAPDU: 80 0D 02 02 05 AC E7 A2 9C 3A [11:24:40]Write to MH i2c: E2 0D 00 80 24 80 0D 02 02 05 00 AC E7 A2 9C 3A 00 00 33 [11:24:40]Write i2c OK [11:24:40]MH_I2C_Read... [11:24:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:40]Read from MH i2c: E2 [11:24:40]MH_I2C_Read... [11:24:40]Read from MH i2c: E2 03 00 [11:24:40]MH_I2C_Read... [11:24:40]Read from MH i2c: E2 03 00 80 24 00 90 00 18 [11:24:40]RAPDU: 90 00 [11:24:40]wFMCommunicate OK [11:24:40]wFMCommunicate request_size=4 [11:24:40]MH_SAM_APDU [11:24:40]CAPDU: 80 0D 03 02 [11:24:40]Write to MH i2c: E2 08 00 81 24 80 0D 03 02 00 00 00 00 20 [11:24:40]Write i2c OK [11:24:40]MH_I2C_Read... [11:24:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:24:40]Read from MH i2c: E2 [11:24:40]MH_I2C_Read... [11:24:40]Read from MH i2c: E2 0B 00 [11:24:40]MH_I2C_Read... [11:24:40]Read from MH i2c: E2 0B 00 81 24 00 00 91 39 42 84 D0 4C 0B 90 00 D8 [11:24:40]RAPDU: 00 91 39 42 84 D0 4C 0B 90 00 [11:24:40]wFMCommunicate OK [11:24:40]SAM_PROTO_SignData done [11:24:40]FM_MakeSignedData done [11:24:40]CreateOFDProtocolMessage [11:24:40]wFMCommunicate request_size=4 [11:24:40]MH_SAM_APDU [11:24:40]CAPDU: 80 11 00 00 [11:24:40]Write to MH i2c: E2 08 00 82 24 80 11 00 00 00 00 00 00 20 [11:24:40]Write i2c OK [11:24:40]MH_I2C_Read... [11:24:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:40]Read from MH i2c: E2 [11:24:40]MH_I2C_Read... [11:24:40]Read from MH i2c: E2 17 00 [11:24:40]MH_I2C_Read... [11:24:40]Read from MH i2c: E2 17 00 82 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 73 [11:24:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:24:40]wFMCommunicate OK [11:24:40]CreateOFDProtocolMessage done [11:24:40]OFDSenderStorePacket 76815 [11:24:40]StoreOFDPacket docnum=76815 [11:24:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 7E 63 07 01 22 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 47 00 00 00 F4 03 04 00 7A F7 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0F 2C 01 00 35 04 06 00 53 AC E7 A2 9C 3A 00 91 39 42 84 D0 4C 0B [11:24:40]CheckFolder [11:24:40]dirname=/storage/ofd_packets [11:24:40]CheckFolder done [11:24:40]ProducePacketName [11:24:40]name=ofd_packets/00076815 [11:24:40]NVStorageSaveData ofd_packets/00076815 [11:24:40]File name is /storage/ofd_packets/00076815 [11:24:40]Write 301 bytes [11:24:40]NVStorageSaveData done [11:24:40]OFDSenderStorePacket done [11:24:40]KKMCreateOFDPacket done [11:24:40]NVStorageSaveData kkm_last_timestamp [11:24:40]File name is /storage/kkm_last_timestamp [11:24:40]Write 4 bytes [11:24:40]NVStorageSaveData done [11:24:40]ExternCall_PrintAddStr [11:24:40]wPrintStart [11:24:40]Write to MH i2c: 01 00 00 83 24 A7 [11:24:40]Write i2c OK [11:24:40]MH_I2C_Read... [11:24:40]Read from MH i2c: 01 [11:24:40]MH_I2C_Read... [11:24:40]Read from MH i2c: 01 07 00 [11:24:40]MH_I2C_Read... [11:24:40]Read from MH i2c: 01 07 00 83 24 00 00 00 00 00 FF 0F BC [11:24:40]RasterBufferAndPrint [11:24:40]line Счет N : (1)191349 [11:24:40]line ИНН: 02508201610067 [11:24:40]line Контрольно-Кассовый Чек [11:24:40]line ПРОДАЖА [11:24:40]line ТРК (МРК, ГНК) : 12 [11:24:40]line Товар: 2710124130 [11:24:40]line Аи-92-К-5 [11:24:40]line 4.660 * 64.40 [11:24:40]line = 300.10 [11:24:40]line НДС 12% НСП 1% [11:24:40]line > о реализуемом товаре [11:24:40]line ОКРУГЛЕНИЕ: -0.10 [11:24:40]line ИТОГО: 300.00 [11:24:40]line Внесено: 300.00 [11:24:40]line СДАЧА: 0.00 [11:24:40]line НСП 1% : 2.66 [11:24:40]line НДС 12% : 31.87 [11:24:40]line Наличными: 300.00 [11:24:40]line Безнал.: 0.00 [11:24:40]line Место: АЗС № 106 "Партнер Нефть" [11:24:40]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [11:24:40]line СНО: Общий режим [11:24:40]line Чек 71 21.04.2024 11:24 [11:24:40]line Смена: 372 ФФД: 1.0 [11:24:40]line ЗНМ: 0300000141 [11:24:40]line РНМ: 0000000000091573 [11:24:40]line Версия ККМ: 001 [11:24:40]line ФМ: 0000000000874652 [11:24:40]line ФД: 76815 [11:24:40]line ФПД: 92002085674042 [11:24:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T112442&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76815&fm=92002085674042&tin=02508201610067®Number=0000000000091573&sum=30000 [11:24:40]OFD Sender: Processing packet 76815 [packets to send 129, broken 128] [11:24:40]ProducePacketName [11:24:40]name=ofd_packets/00076815 [11:24:40]OFD Sender: To server: pG, [11:24:40]CommunicateWithHost lk.salyk.kg:30040 [11:24:40]ConnectInit lk.salyk.kg [11:24:40]written 0, free lines is 4095 [11:24:40]Connected sock=10 [11:24:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 7E 63 07 01 22 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 47 00 00 00 F4 03 04 00 7A F7 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0F 2C 01 00 35 04 06 00 53 AC E7 A2 9C 3A 00 91 39 42 84 D0 4C 0B [11:24:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 59 21 47 00 48 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 34 36 35 32 10 04 04 00 0F 2C 01 00 F4 03 04 00 00 9F 24 66 B6 04 01 00 00 9D 89 CB AF 55 4A D8 E1 [11:24:41]CommunicateWithHost err = 0 [11:24:41]CheckOFDResponse [11:24:41]1017 (14) - 77093643461234 [11:24:41]1041 (16) - 0000000000874652 [11:24:41]1040 (4) - 76815 [11:24:41]1012 (4) - 21.04.2024 05:07 [11:24:41]1206 (1) - 0 [11:24:41]OFD Sender: Remove packet 76815 [11:24:41]ProducePacketName [11:24:41]name=ofd_packets/00076815 [11:24:41]NVStorageDeleteData [11:24:41]Write to MH i2c: 01 00 00 AD 24 D1 [11:24:41]Write i2c OK [11:24:41]MH_I2C_Read... [11:24:41]Read from MH i2c: 01 [11:24:41]MH_I2C_Read... [11:24:41]Read from MH i2c: 01 07 00 [11:24:41]MH_I2C_Read... [11:24:41]Read from MH i2c: 01 07 00 AD 24 00 00 00 00 00 F2 0C D6 [11:24:41]RasterBufferAndPrint [11:24:41]line [11:24:41]line [11:24:41]line [11:24:41]line [11:24:41]line [11:24:41]written 0, free lines is 3322 [11:24:41]MH_Cut [11:24:41]Write to MH i2c: D1 01 00 B4 24 01 AA [11:24:41]Write i2c OK [11:24:41]MH_I2C_Read... [11:24:41]Read from MH i2c: D1 [11:24:41]MH_I2C_Read... [11:24:41]Read from MH i2c: D1 01 00 [11:24:41]MH_I2C_Read... [11:24:41]Read from MH i2c: D1 01 00 B4 24 00 A9 [11:24:41]Write to MH i2c: 01 00 00 B5 24 D9 [11:24:41]Write i2c OK [11:24:41]MH_I2C_Read... [11:24:41]OFD Sender: No OFD packet to send [11:24:41]*** Cut start [11:24:41]*** Partial cut [11:24:41]*** CUTSNS_PIN = 1 [11:24:41]*** CUTSNS_PIN = 0 [11:24:42]*** Brake cut motor [11:24:42]Read from MH i2c: 01 [11:24:42]MH_I2C_Read... [11:24:42]*** Stop cut motor [11:24:42]*** Cut end [11:24:42]Read from MH i2c: 01 07 00 [11:24:42]MH_I2C_Read... [11:24:42]Read from MH i2c: 01 07 00 B5 24 00 00 00 00 00 FF 0F EE [11:24:42]process_action close_receipt done [11:24:42]requested_data is exist [11:24:42]produce_requested_data [11:24:42]requested_item fm.sn is exist - process it [11:24:42]wFMCommunicate request_size=4 [11:24:42]MH_SAM_APDU [11:24:42]CAPDU: 80 11 00 00 [11:24:42]Write to MH i2c: E2 08 00 B6 24 80 11 00 00 00 00 00 00 54 [11:24:42]Write i2c OK [11:24:42]MH_I2C_Read... [11:24:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:42]Read from MH i2c: E2 [11:24:42]MH_I2C_Read... [11:24:42]Read from MH i2c: E2 17 00 [11:24:42]MH_I2C_Read... [11:24:42]Read from MH i2c: E2 17 00 B6 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 A7 [11:24:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:24:42]wFMCommunicate OK [11:24:42]requested_item fd.num is exist - process it [11:24:42]SAM_PROTO_GetFieldsCounters [11:24:42]wFMCommunicate request_size=4 [11:24:42]MH_SAM_APDU [11:24:42]CAPDU: 80 13 00 00 [11:24:42]Write to MH i2c: E2 08 00 B7 24 80 13 00 00 00 00 00 00 57 [11:24:42]Write i2c OK [11:24:42]MH_I2C_Read... [11:24:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:24:42]Read from MH i2c: E2 [11:24:42]MH_I2C_Read... [11:24:42]Read from MH i2c: E2 62 00 [11:24:42]MH_I2C_Read... [11:24:42]Read from MH i2c: E2 62 00 B7 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0F 2C 01 00 0E 04 04 00 74 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 FE [11:24:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0F 2C 01 00 0E 04 04 00 74 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:24:42]wFMCommunicate OK [11:24:42]SAM_PROTO_GetFieldsCounters done [11:24:42]requested_item shift.num is exist - process it [11:24:42]requested_item shift.opened is exist - process it [11:24:42]req_shift_opened [11:24:42]FM_GetShiftState [11:24:42]SAM_PROTO_GetShiftState [11:24:42]wFMCommunicate request_size=4 [11:24:42]MH_SAM_APDU [11:24:42]CAPDU: 80 13 01 00 [11:24:42]Write to MH i2c: E2 08 00 B8 24 80 13 01 00 00 00 00 00 59 [11:24:42]Write i2c OK [11:24:42]MH_I2C_Read... [11:24:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:42]Read from MH i2c: E2 [11:24:42]MH_I2C_Read... [11:24:42]Read from MH i2c: E2 0E 00 [11:24:42]MH_I2C_Read... [11:24:42]Read from MH i2c: E2 0E 00 B8 24 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 A0 [11:24:42]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [11:24:42]wFMCommunicate OK [11:24:42]SAM_PROTO_GetShiftState done [11:24:42]FM_GetShiftState done [11:24:42]req_shift_opened done [11:24:42]requested_item shift.open_date is exist - process it [11:24:42]req_shift_open_date [11:24:42]req_shift_open_date done [11:24:42]produce_requested_data done [11:24:42]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76815,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [11:24:42]process_action_free close_receipt [11:24:42]json_value_free [11:24:42]json_value_free done [11:24:42]process_json_proto returns [11:24:42]Send response to host [11:24:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76815,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [11:24:42]free response buf [11:24:42]execute_script done [11:24:42]execute_script returns [11:24:42]free content buf [11:24:42]Sock 7.Close socket [11:24:42]Sock 7.Thread stoped [11:24:46]OFD Sender: No OFD packet to send [11:24:51]OFD Sender: No OFD packet to send [11:24:56]OFD Sender: No OFD packet to send [11:25:01]OFD Sender: No OFD packet to send [11:25:06]OFD Sender: No OFD packet to send [11:25:11]OFD Sender: No OFD packet to send [11:25:16]OFD Sender: No OFD packet to send [11:25:21]OFD Sender: No OFD packet to send [11:25:26]OFD Sender: No OFD packet to send [11:25:31]OFD Sender: No OFD packet to send [11:25:36]OFD Sender: No OFD packet to send [11:25:41]OFD Sender: No OFD packet to send [11:25:46]OFD Sender: No OFD packet to send [11:25:51]OFD Sender: No OFD packet to send [11:25:56]OFD Sender: No OFD packet to send [11:26:01]OFD Sender: No OFD packet to send [11:26:06]OFD Sender: No OFD packet to send [11:26:11]OFD Sender: No OFD packet to send [11:26:13]accept exits with 9 [11:26:13]New connection [11:26:13]New thread 3067338084 created [11:26:13]Thread 3067481444 joined [11:26:13]Waiting for new connection... [11:26:13] Sock 9.Parse request [11:26:13]Sock 9.Check first char [11:26:13]Sock 9.First char is OK [11:26:13]request: POST /json_proto HTTP/1.0 [11:26:13]Method: POST [11:26:13]URL: /json_proto [11:26:13]Method is POST - this is cgi request [11:26:13]url: /json_proto [11:26:13]query_string will be loaded in cgi processing [11:26:13]execute_cgi json_proto POST (null) [11:26:13]execute_cgi path=json_proto method=POST [11:26:13]POST find Content-Length [11:26:13]Host: 172.17.62.5:8080 [11:26:13]Content-Length: 677 [11:26:13]Content-Type: application/json [11:26:13] [11:26:13]POST finish read [11:26:13]Found Content-Length = 677 [11:26:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 3.890, "sum" : 250.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:13]execute_script... [11:26: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)191350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 3.890, "sum" : 250.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:13]POST & json_proto [11:26:13]process_json_proto [11:26:13]json parsed OK: [11:26:13]protocol is kg_v1.0 [11:26:13]action value=close_receipt [11:26:13]process_action close_receipt [11:26:13]cmd_close_receipt [11:26:13]MH_GetDate [11:26:13]Write to MH i2c: F0 00 00 B9 24 CC [11:26:13]Write i2c OK [11:26:13]MH_I2C_Read... [11:26:13]Read from MH i2c: F0 [11:26:13]MH_I2C_Read... [11:26:13]Read from MH i2c: F0 09 00 [11:26:13]MH_I2C_Read... [11:26:13]Read from MH i2c: F0 09 00 B9 24 00 D9 F7 24 66 F4 E9 65 64 D5 [11:26:13]GetLastDocTimeStamp 1713698682 [11:26:13]current date 1713698777 [11:26:13]FM_GetShiftState [11:26:13]SAM_PROTO_GetShiftState [11:26:13]wFMCommunicate request_size=4 [11:26:13]MH_SAM_APDU [11:26:13]CAPDU: 80 13 01 00 [11:26:13]Write to MH i2c: E2 08 00 BA 24 80 13 01 00 00 00 00 00 5B [11:26:13]Write i2c OK [11:26:13]MH_I2C_Read... [11:26:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:13]Read from MH i2c: E2 [11:26:13]MH_I2C_Read... [11:26:13]Read from MH i2c: E2 0E 00 [11:26:13]MH_I2C_Read... [11:26:13]Read from MH i2c: E2 0E 00 BA 24 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 A2 [11:26:13]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [11:26:13]wFMCommunicate OK [11:26:13]SAM_PROTO_GetShiftState done [11:26:13]FM_GetShiftState done [11:26:13]opened in 1713658965 [11:26:13]opened+sec_in_day 1713745365 [11:26:13]quantity*price = 25051 [11:26:13]sum+1 = 25053 [11:26:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.22 НДС 12% : 26.60 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 72 21.04.2024 11:26 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76816 ФПД: 281067238931743 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T112617&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76816&fm=281067238931743&tin=02508201610067®Number=0000000000091573&sum=25000 [11:26:14]StoreToDocumentArchive [11:26:14]shift 372 fd 76816 [11:26:14]save to /storage/0372/doc_00076816 [11:26:14]save last doc name /storage/0372/doc_00076816 to /storage/kkm_last_doc_name [11:26:14]save OK [11:26:14]Clear old archive folders... [11:26:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:26:14]tlvbuf is 01887FB0 [11:26:14]SAM_PROTO_ClearQueue [11:26:14]wFMCommunicate request_size=4 [11:26:14]MH_SAM_APDU [11:26:14]CAPDU: 80 09 00 00 [11:26:14]Write to MH i2c: E2 08 00 C7 24 80 09 00 00 00 00 00 00 5D [11:26:14]Write i2c OK [11:26:14]MH_I2C_Read... [11:26:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:14]Read from MH i2c: E2 [11:26:14]MH_I2C_Read... [11:26:14]Read from MH i2c: E2 03 00 [11:26:14]MH_I2C_Read... [11:26:14]Read from MH i2c: E2 03 00 C7 24 00 90 00 5F [11:26:14]RAPDU: 90 00 [11:26:14]wFMCommunicate OK [11:26:14]SAM_PROTO_ClearQueue done [11:26:14]KKMCreateOFDPacket [11:26:14]OFDProtocolAddRootSTLVToBuf [11:26:14]FM_MakeSignedData [11:26:14]FM_MakeSignedData [11:26:14]SAM_PROTO_SignData [11:26:14]wFMCommunicate request_size=4 [11:26:14]MH_SAM_APDU [11:26:14]CAPDU: 80 0D 01 02 [11:26:14]Write to MH i2c: E2 08 00 C8 24 80 0D 01 02 00 00 00 00 65 [11:26:14]Write i2c OK [11:26:14]MH_I2C_Read... [11:26:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:14]Read from MH i2c: E2 [11:26:14]MH_I2C_Read... [11:26:14]Read from MH i2c: E2 03 00 [11:26:14]MH_I2C_Read... [11:26:14]Read from MH i2c: E2 03 00 C8 24 00 90 00 60 [11:26:14]RAPDU: 90 00 [11:26:14]wFMCommunicate OK [11:26:14]wFMCommunicate request_size=255 [11:26:14]MH_SAM_APDU [11:26: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 32 0F 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 DC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 D9 F7 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 10 2C 01 00 35 04 06 00 FF [11:26:14]Write to MH i2c: E2 02 01 C9 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 DC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 D9 F7 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 10 2C 01 00 35 04 06 00 FF 00 00 DF [11:26:14]Write i2c OK [11:26:14]MH_I2C_Read... [11:26:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:15]Read from MH i2c: E2 [11:26:15]MH_I2C_Read... [11:26:15]Read from MH i2c: E2 03 00 [11:26:15]MH_I2C_Read... [11:26:15]Read from MH i2c: E2 03 00 C9 24 00 90 00 61 [11:26:15]RAPDU: 90 00 [11:26:15]wFMCommunicate OK [11:26:15]wFMCommunicate request_size=10 [11:26:15]MH_SAM_APDU [11:26:15]CAPDU: 80 0D 02 02 05 A1 10 EF 3D 1F [11:26:15]Write to MH i2c: E2 0D 00 CA 24 80 0D 02 02 05 00 A1 10 EF 3D 1F 00 00 6E [11:26:15]Write i2c OK [11:26:15]MH_I2C_Read... [11:26:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:15]Read from MH i2c: E2 [11:26:15]MH_I2C_Read... [11:26:15]Read from MH i2c: E2 03 00 [11:26:15]MH_I2C_Read... [11:26:15]Read from MH i2c: E2 03 00 CA 24 00 90 00 62 [11:26:15]RAPDU: 90 00 [11:26:15]wFMCommunicate OK [11:26:15]wFMCommunicate request_size=4 [11:26:15]MH_SAM_APDU [11:26:15]CAPDU: 80 0D 03 02 [11:26:15]Write to MH i2c: E2 08 00 CB 24 80 0D 03 02 00 00 00 00 6A [11:26:15]Write i2c OK [11:26:15]MH_I2C_Read... [11:26:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:15]Read from MH i2c: E2 [11:26:15]MH_I2C_Read... [11:26:15]Read from MH i2c: E2 0B 00 [11:26:15]MH_I2C_Read... [11:26:15]Read from MH i2c: E2 0B 00 CB 24 00 60 30 9B 88 87 68 1C 7C 90 00 A5 [11:26:15]RAPDU: 60 30 9B 88 87 68 1C 7C 90 00 [11:26:15]wFMCommunicate OK [11:26:15]SAM_PROTO_SignData done [11:26:15]FM_MakeSignedData done [11:26:15]CreateOFDProtocolMessage [11:26:15]wFMCommunicate request_size=4 [11:26:15]MH_SAM_APDU [11:26:15]CAPDU: 80 11 00 00 [11:26:15]Write to MH i2c: E2 08 00 CC 24 80 11 00 00 00 00 00 00 6A [11:26:15]Write i2c OK [11:26:15]MH_I2C_Read... [11:26:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:15]Read from MH i2c: E2 [11:26:15]MH_I2C_Read... [11:26:15]Read from MH i2c: E2 17 00 [11:26:15]MH_I2C_Read... [11:26:15]Read from MH i2c: E2 17 00 CC 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 BD [11:26:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:26:15]wFMCommunicate OK [11:26:15]CreateOFDProtocolMessage done [11:26:15]OFDSenderStorePacket 76816 [11:26:15]StoreOFDPacket docnum=76816 [11:26:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 BE 4D 07 01 11 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 DC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 D9 F7 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 10 2C 01 00 35 04 06 00 FF A1 10 EF 3D 1F 60 30 9B 88 87 68 1C 7C [11:26:15]CheckFolder [11:26:15]dirname=/storage/ofd_packets [11:26:15]CheckFolder done [11:26:15]ProducePacketName [11:26:15]name=ofd_packets/00076816 [11:26:15]NVStorageSaveData ofd_packets/00076816 [11:26:15]File name is /storage/ofd_packets/00076816 [11:26:15]Write 301 bytes [11:26:15]NVStorageSaveData done [11:26:15]OFDSenderStorePacket done [11:26:15]KKMCreateOFDPacket done [11:26:15]NVStorageSaveData kkm_last_timestamp [11:26:15]File name is /storage/kkm_last_timestamp [11:26:15]Write 4 bytes [11:26:15]NVStorageSaveData done [11:26:15]ExternCall_PrintAddStr [11:26:15]wPrintStart [11:26:15]Write to MH i2c: 01 00 00 CD 24 F1 [11:26:15]Write i2c OK [11:26:15]MH_I2C_Read... [11:26:15]Read from MH i2c: 01 [11:26:15]MH_I2C_Read... [11:26:15]Read from MH i2c: 01 07 00 [11:26:15]MH_I2C_Read... [11:26:15]Read from MH i2c: 01 07 00 CD 24 00 00 00 00 00 FF 0F 06 [11:26:15]RasterBufferAndPrint [11:26:15]line Счет N : (1)191350 [11:26:15]line ИНН: 02508201610067 [11:26:15]line Контрольно-Кассовый Чек [11:26:15]line ПРОДАЖА [11:26:15]line ТРК (МРК, ГНК) : 12 [11:26:15]line Товар: 2710124130 [11:26:15]line Аи-92-К-5 [11:26:15]line 3.890 * 64.40 [11:26:15]line = 250.52 [11:26:15]line НДС 12% НСП 1% [11:26:15]line > о реализуемом товаре [11:26:15]line ОКРУГЛЕНИЕ: -0.52 [11:26:15]line ИТОГО: 250.00 [11:26:15]line Внесено: 250.00 [11:26:15]line СДАЧА: 0.00 [11:26:15]line НСП 1% : 2.22 [11:26:15]line НДС 12% : 26.60 [11:26:15]line Наличными: 250.00 [11:26:15]line Безнал.: 0.00 [11:26:15]line Место: АЗС № 106 "Партнер Нефть" [11:26:15]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [11:26:15]line СНО: Общий режим [11:26:15]line Чек 72 21.04.2024 11:26 [11:26:15]line Смена: 372 ФФД: 1.0 [11:26:15]line ЗНМ: 0300000141 [11:26:15]line РНМ: 0000000000091573 [11:26:15]line Версия ККМ: 001 [11:26:15]line ФМ: 0000000000874652 [11:26:15]line ФД: 76816 [11:26:15]line ФПД: 281067238931743 [11:26:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T112617&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76816&fm=281067238931743&tin=02508201610067®Number=0000000000091573&sum=25000 [11:26:15]written 0, free lines is 4095 [11:26:15]OFD Sender: Processing packet 76816 [packets to send 129, broken 128] [11:26:15]ProducePacketName [11:26:15]name=ofd_packets/00076816 [11:26:15]OFD Sender: To server: pG, [11:26:15]CommunicateWithHost lk.salyk.kg:30040 [11:26:15]ConnectInit lk.salyk.kg [11:26:15]Connected sock=10 [11: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 34 36 35 32 0F 01 00 00 BE 4D 07 01 11 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 DC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 D9 F7 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 10 2C 01 00 35 04 06 00 FF A1 10 EF 3D 1F 60 30 9B 88 87 68 1C 7C [11:26:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 F0 0C 47 00 F3 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 10 2C 01 00 F4 03 04 00 5F 9F 24 66 B6 04 01 00 00 2D 8F 8F 2A D0 5D 7B C5 [11:26:16]CommunicateWithHost err = 0 [11:26:16]CheckOFDResponse [11:26:16]1017 (14) - 77093643461234 [11:26:16]1041 (16) - 0000000000874652 [11:26:16]1040 (4) - 76816 [11:26:16]1012 (4) - 21.04.2024 05:08 [11:26:16]1206 (1) - 0 [11:26:16]OFD Sender: Remove packet 76816 [11:26:16]ProducePacketName [11:26:16]name=ofd_packets/00076816 [11:26:16]NVStorageDeleteData [11:26:16]Write to MH i2c: 01 00 00 F7 24 1B [11:26:16]Write i2c OK [11:26:16]MH_I2C_Read... [11:26:16]Read from MH i2c: 01 [11:26:16]MH_I2C_Read... [11:26:16]Read from MH i2c: 01 07 00 [11:26:16]MH_I2C_Read... [11:26:16]Read from MH i2c: 01 07 00 F7 24 00 00 00 00 00 F4 0C 22 [11:26:16]RasterBufferAndPrint [11:26:16]line [11:26:16]line [11:26:16]line [11:26:16]line [11:26:16]line [11:26:16]written 0, free lines is 3319 [11:26:16]MH_Cut [11:26:16]Write to MH i2c: D1 01 00 FE 24 01 F4 [11:26:16]Write i2c OK [11:26:16]MH_I2C_Read... [11:26:16]Read from MH i2c: D1 [11:26:16]MH_I2C_Read... [11:26:16]Read from MH i2c: D1 01 00 [11:26:16]MH_I2C_Read... [11:26:16]Read from MH i2c: D1 01 00 FE 24 00 F3 [11:26:16]Write to MH i2c: 01 00 00 FF 24 23 [11:26:16]Write i2c OK [11:26:16]MH_I2C_Read... [11:26:16]OFD Sender: No OFD packet to send [11:26:16]*** Cut start [11:26:16]*** Partial cut [11:26:16]*** CUTSNS_PIN = 1 [11:26:16]*** CUTSNS_PIN = 0 [11:26:17]*** Brake cut motor [11:26:17]Read from MH i2c: 01 [11:26:17]MH_I2C_Read... [11:26:17]*** Stop cut motor [11:26:17]*** Cut end [11:26:17]Read from MH i2c: 01 07 00 [11:26:17]MH_I2C_Read... [11:26:17]Read from MH i2c: 01 07 00 FF 24 00 00 00 00 00 FF 0F 38 [11:26:17]process_action close_receipt done [11:26:17]requested_data is exist [11:26:17]produce_requested_data [11:26:17]requested_item fm.sn is exist - process it [11:26:17]wFMCommunicate request_size=4 [11:26:17]MH_SAM_APDU [11:26:17]CAPDU: 80 11 00 00 [11:26:17]Write to MH i2c: E2 08 00 00 25 80 11 00 00 00 00 00 00 9F [11:26:17]Write i2c OK [11:26:17]MH_I2C_Read... [11:26:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:17]Read from MH i2c: E2 [11:26:17]MH_I2C_Read... [11:26:17]Read from MH i2c: E2 17 00 [11:26:17]MH_I2C_Read... [11:26:17]Read from MH i2c: E2 17 00 00 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F2 [11:26:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:26:17]wFMCommunicate OK [11:26:17]requested_item fd.num is exist - process it [11:26:17]SAM_PROTO_GetFieldsCounters [11:26:17]wFMCommunicate request_size=4 [11:26:17]MH_SAM_APDU [11:26:17]CAPDU: 80 13 00 00 [11:26:17]Write to MH i2c: E2 08 00 01 25 80 13 00 00 00 00 00 00 A2 [11:26:17]Write i2c OK [11:26:17]MH_I2C_Read... [11:26:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:17]Read from MH i2c: E2 [11:26:17]MH_I2C_Read... [11:26:17]Read from MH i2c: E2 62 00 [11:26:17]MH_I2C_Read... [11:26:17]Read from MH i2c: E2 62 00 01 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 10 2C 01 00 0E 04 04 00 74 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 4D [11:26: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 10 2C 01 00 0E 04 04 00 74 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:26:17]wFMCommunicate OK [11:26:17]SAM_PROTO_GetFieldsCounters done [11:26:17]requested_item shift.num is exist - process it [11:26:17]requested_item shift.opened is exist - process it [11:26:17]req_shift_opened [11:26:17]FM_GetShiftState [11:26:17]SAM_PROTO_GetShiftState [11:26:17]wFMCommunicate request_size=4 [11:26:17]MH_SAM_APDU [11:26:17]CAPDU: 80 13 01 00 [11:26:17]Write to MH i2c: E2 08 00 02 25 80 13 01 00 00 00 00 00 A4 [11:26:17]Write i2c OK [11:26:17]MH_I2C_Read... [11:26:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:17]Read from MH i2c: E2 [11:26:17]MH_I2C_Read... [11:26:17]Read from MH i2c: E2 0E 00 [11:26:17]MH_I2C_Read... [11:26:17]Read from MH i2c: E2 0E 00 02 25 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 EB [11:26:17]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [11:26:17]wFMCommunicate OK [11:26:17]SAM_PROTO_GetShiftState done [11:26:17]FM_GetShiftState done [11:26:17]req_shift_opened done [11:26:17]requested_item shift.open_date is exist - process it [11:26:17]req_shift_open_date [11:26:17]req_shift_open_date done [11:26:17]produce_requested_data done [11:26:17]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76816,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [11:26:17]process_action_free close_receipt [11:26:17]json_value_free [11:26:17]json_value_free done [11:26:17]process_json_proto returns [11:26:17]Send response to host [11:26:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76816,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [11:26:17]free response buf [11:26:17]execute_script done [11:26:17]execute_script returns [11:26:17]free content buf [11:26:17]Sock 9.Close socket [11:26:17]Sock 9.Thread stoped [11:26:21]OFD Sender: No OFD packet to send [11:26:26]OFD Sender: No OFD packet to send [11:26:31]OFD Sender: No OFD packet to send [11:26:36]OFD Sender: No OFD packet to send [11:26:41]OFD Sender: No OFD packet to send [11:26:46]OFD Sender: No OFD packet to send [11:26:51]OFD Sender: No OFD packet to send [11:26:56]OFD Sender: No OFD packet to send [11:27:01]OFD Sender: No OFD packet to send [11:27:06]OFD Sender: No OFD packet to send [11:27:11]OFD Sender: No OFD packet to send [11:27:16]OFD Sender: No OFD packet to send [11:27:21]OFD Sender: No OFD packet to send [11:27:26]OFD Sender: No OFD packet to send [11:27:31]OFD Sender: No OFD packet to send [11:27:36]OFD Sender: No OFD packet to send [11:27:41]OFD Sender: No OFD packet to send [11:27:46]OFD Sender: No OFD packet to send [11:27:51]OFD Sender: No OFD packet to send [11:27:56]OFD Sender: No OFD packet to send [11:28:01]OFD Sender: No OFD packet to send [11:28:06]OFD Sender: No OFD packet to send [11:28:11]OFD Sender: No OFD packet to send [11:28:16]OFD Sender: No OFD packet to send [11:28:21]OFD Sender: No OFD packet to send [11:28:26]OFD Sender: No OFD packet to send [11:28:31]OFD Sender: No OFD packet to send [11:28:36]OFD Sender: No OFD packet to send [11:28:41]OFD Sender: No OFD packet to send [11:28:46]OFD Sender: No OFD packet to send [11:28:51]OFD Sender: No OFD packet to send [11:28:56]OFD Sender: No OFD packet to send [11:29:01]OFD Sender: No OFD packet to send [11:29:06]OFD Sender: No OFD packet to send [11:29:11]OFD Sender: No OFD packet to send [11:29:16]OFD Sender: No OFD packet to send [11:29:21]OFD Sender: No OFD packet to send [11:29:26]OFD Sender: No OFD packet to send [11:29:31]OFD Sender: No OFD packet to send [11:29:36]OFD Sender: No OFD packet to send [11:29:41]OFD Sender: No OFD packet to send [11:29:46]OFD Sender: No OFD packet to send [11:29:51]OFD Sender: No OFD packet to send [11:29:56]OFD Sender: No OFD packet to send [11:30:01]OFD Sender: No OFD packet to send [11:30:06]OFD Sender: No OFD packet to send [11:30:11]OFD Sender: No OFD packet to send [11:30:16]OFD Sender: No OFD packet to send [11:30:21]OFD Sender: No OFD packet to send [11:30:26]OFD Sender: No OFD packet to send [11:30:31]OFD Sender: No OFD packet to send [11:30:36]OFD Sender: No OFD packet to send [11:30:41]OFD Sender: No OFD packet to send [11:30:46]OFD Sender: No OFD packet to send [11:30:51]OFD Sender: No OFD packet to send [11:30:56]OFD Sender: No OFD packet to send [11:31:01]OFD Sender: No OFD packet to send [11:31:06]OFD Sender: No OFD packet to send [11:31:11]OFD Sender: No OFD packet to send [11:31:16]OFD Sender: No OFD packet to send [11:31:21]OFD Sender: No OFD packet to send [11:31:26]OFD Sender: No OFD packet to send [11:31:31]OFD Sender: No OFD packet to send [11:31:36]OFD Sender: No OFD packet to send [11:31:41]OFD Sender: No OFD packet to send [11:31:46]OFD Sender: No OFD packet to send [11:31:51]OFD Sender: No OFD packet to send [11:31:56]OFD Sender: No OFD packet to send [11:32:01]OFD Sender: No OFD packet to send [11:32:06]OFD Sender: No OFD packet to send [11:32:11]OFD Sender: No OFD packet to send [11:32:16]OFD Sender: No OFD packet to send [11:32:21]OFD Sender: No OFD packet to send [11:32:26]OFD Sender: No OFD packet to send [11:32:31]OFD Sender: No OFD packet to send [11:32:36]OFD Sender: No OFD packet to send [11:32:41]OFD Sender: No OFD packet to send [11:32:46]OFD Sender: No OFD packet to send [11:32:51]OFD Sender: No OFD packet to send [11:32:56]OFD Sender: No OFD packet to send [11:33:01]OFD Sender: No OFD packet to send [11:33:06]OFD Sender: No OFD packet to send [11:33:11]OFD Sender: No OFD packet to send [11:33:17]OFD Sender: No OFD packet to send [11:33:22]OFD Sender: No OFD packet to send [11:33:27]OFD Sender: No OFD packet to send [11:33:32]OFD Sender: No OFD packet to send [11:33:37]OFD Sender: No OFD packet to send [11:33:42]OFD Sender: No OFD packet to send [11:33:47]OFD Sender: No OFD packet to send [11:33:52]OFD Sender: No OFD packet to send [11:33:57]OFD Sender: No OFD packet to send [11:34:02]OFD Sender: No OFD packet to send [11:34:07]OFD Sender: No OFD packet to send [11:34:12]OFD Sender: No OFD packet to send [11:34:17]OFD Sender: No OFD packet to send [11:34:22]OFD Sender: No OFD packet to send [11:34:27]OFD Sender: No OFD packet to send [11:34:32]OFD Sender: No OFD packet to send [11:34:37]OFD Sender: No OFD packet to send [11:34:42]OFD Sender: No OFD packet to send [11:34:47]OFD Sender: No OFD packet to send [11:34:52]OFD Sender: No OFD packet to send [11:34:57]OFD Sender: No OFD packet to send [11:35:02]OFD Sender: No OFD packet to send [11:35:07]OFD Sender: No OFD packet to send [11:35:12]OFD Sender: No OFD packet to send [11:35:17]OFD Sender: No OFD packet to send [11:35:22]OFD Sender: No OFD packet to send [11:35:27]OFD Sender: No OFD packet to send [11:35:32]OFD Sender: No OFD packet to send [11:35:37]OFD Sender: No OFD packet to send [11:35:42]OFD Sender: No OFD packet to send [11:35:47]OFD Sender: No OFD packet to send [11:35:52]OFD Sender: No OFD packet to send [11:35:57]OFD Sender: No OFD packet to send [11:36:02]OFD Sender: No OFD packet to send [11:36:02]accept exits with 7 [11:36:02]New connection [11:36:02]New thread 3067481444 created [11:36:02]Thread 3067338084 joined [11:36:02]Waiting for new connection... [11:36:02] Sock 7.Parse request [11:36:02]Sock 7.Check first char [11:36:02]Sock 7.First char is OK [11:36:02]request: POST /json_proto HTTP/1.0 [11:36:02]Method: POST [11:36:02]URL: /json_proto [11:36:02]Method is POST - this is cgi request [11:36:02]url: /json_proto [11:36:02]query_string will be loaded in cgi processing [11:36:02]execute_cgi json_proto POST (null) [11:36:02]execute_cgi path=json_proto method=POST [11:36:02]POST find Content-Length [11:36:02]Host: 172.17.62.5:8080 [11:36:02]Content-Length: 978 [11:36:02]Content-Type: application/json [11:36:02] [11:36:02]POST finish read [11:36:02]Found Content-Length = 978 [11:36:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 48.680, "sum" : 3500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 48.68 \u0441\u043E\u043C", "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:02]execute_script... [11:36: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)191351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 48.680, "sum" : 3500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 48.68 \u0441\u043E\u043C", "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:02]POST & json_proto [11:36:02]process_json_proto [11:36:02]json parsed OK: [11:36:02]protocol is kg_v1.0 [11:36:02]action value=close_receipt [11:36:02]process_action close_receipt [11:36:02]cmd_close_receipt [11:36:02]MH_GetDate [11:36:02]Write to MH i2c: F0 00 00 03 25 17 [11:36:02]Write i2c OK [11:36:02]MH_I2C_Read... [11:36:02]Read from MH i2c: F0 [11:36:02]MH_I2C_Read... [11:36:02]Read from MH i2c: F0 09 00 [11:36:02]MH_I2C_Read... [11:36:02]Read from MH i2c: F0 09 00 03 25 00 26 FA 24 66 F4 E9 65 64 70 [11:36:02]GetLastDocTimeStamp 1713698777 [11:36:02]current date 1713699366 [11:36:02]FM_GetShiftState [11:36:02]SAM_PROTO_GetShiftState [11:36:02]wFMCommunicate request_size=4 [11:36:02]MH_SAM_APDU [11:36:02]CAPDU: 80 13 01 00 [11:36:02]Write to MH i2c: E2 08 00 04 25 80 13 01 00 00 00 00 00 A6 [11:36:02]Write i2c OK [11:36:02]MH_I2C_Read... [11:36:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:02]Read from MH i2c: E2 [11:36:02]MH_I2C_Read... [11:36:02]Read from MH i2c: E2 0E 00 [11:36:02]MH_I2C_Read... [11:36:02]Read from MH i2c: E2 0E 00 04 25 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 ED [11:36:02]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [11:36:02]wFMCommunicate OK [11:36:02]SAM_PROTO_GetShiftState done [11:36:02]FM_GetShiftState done [11:36:02]opened in 1713658965 [11:36:02]opened+sec_in_day 1713745365 [11:36:02]quantity*price = 350009 [11:36:02]sum+1 = 350010 [11:36:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 3500.00 Внесено: 3500.00 СДАЧА: 0.00 НСП 1% : 30.97 НДС 12% : 371.69 Наличными: 3500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 73 21.04.2024 11:36 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 48.68 сом ФМ: 0000000000874652 ФД: 76817 ФПД: 183614564923258 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T113606&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76817&fm=183614564923258&tin=02508201610067®Number=0000000000091573&sum=350000 [11:36:03]StoreToDocumentArchive [11:36:03]shift 372 fd 76817 [11:36:03]save to /storage/0372/doc_00076817 [11:36:03]save last doc name /storage/0372/doc_00076817 to /storage/kkm_last_doc_name [11:36:03]save OK [11:36:03]Clear old archive folders... [11:36:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:36:03]tlvbuf is 018C26C0 [11:36:03]SAM_PROTO_ClearQueue [11:36:03]wFMCommunicate request_size=4 [11:36:03]MH_SAM_APDU [11:36:03]CAPDU: 80 09 00 00 [11:36:03]Write to MH i2c: E2 08 00 11 25 80 09 00 00 00 00 00 00 A8 [11:36:03]Write i2c OK [11:36:03]MH_I2C_Read... [11:36:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:36:03]Read from MH i2c: E2 [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: E2 03 00 [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: E2 03 00 11 25 00 90 00 AA [11:36:03]RAPDU: 90 00 [11:36:03]wFMCommunicate OK [11:36:03]SAM_PROTO_ClearQueue done [11:36:03]KKMCreateOFDPacket [11:36:03]OFDProtocolAddRootSTLVToBuf [11:36:03]FM_MakeSignedData [11:36:03]FM_MakeSignedData [11:36:03]SAM_PROTO_SignData [11:36:03]wFMCommunicate request_size=4 [11:36:03]MH_SAM_APDU [11:36:03]CAPDU: 80 0D 01 02 [11:36:03]Write to MH i2c: E2 08 00 12 25 80 0D 01 02 00 00 00 00 B0 [11:36:03]Write i2c OK [11:36:03]MH_I2C_Read... [11:36:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:36:04]Read from MH i2c: E2 [11:36:04]MH_I2C_Read... [11:36:04]Read from MH i2c: E2 03 00 [11:36:04]MH_I2C_Read... [11:36:04]Read from MH i2c: E2 03 00 12 25 00 90 00 AB [11:36:04]RAPDU: 90 00 [11:36:04]wFMCommunicate OK [11:36:04]wFMCommunicate request_size=255 [11:36:04]MH_SAM_APDU [11:36:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 BE 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 39 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 91 00 00 00 00 07 04 06 00 30 57 05 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 26 FA 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 11 2C 01 00 35 04 06 00 A6 FF 18 EA [11:36:04]Write to MH i2c: E2 02 01 13 25 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 BE 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 39 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 91 00 00 00 00 07 04 06 00 30 57 05 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 26 FA 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 11 2C 01 00 35 04 06 00 A6 FF 18 EA 00 00 06 [11:36:04]Write i2c OK [11:36:04]MH_I2C_Read... [11:36:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:04]Read from MH i2c: E2 [11:36:04]MH_I2C_Read... [11:36:04]Read from MH i2c: E2 03 00 [11:36:04]MH_I2C_Read... [11:36:04]Read from MH i2c: E2 03 00 13 25 00 90 00 AC [11:36:04]RAPDU: 90 00 [11:36:04]wFMCommunicate OK [11:36:04]wFMCommunicate request_size=7 [11:36:04]MH_SAM_APDU [11:36:04]CAPDU: 80 0D 02 02 02 F7 7A [11:36:04]Write to MH i2c: E2 0A 00 14 25 80 0D 02 02 02 00 F7 7A 00 00 28 [11:36:04]Write i2c OK [11:36:04]MH_I2C_Read... [11:36:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:04]Read from MH i2c: E2 [11:36:04]MH_I2C_Read... [11:36:04]Read from MH i2c: E2 03 00 [11:36:04]MH_I2C_Read... [11:36:04]Read from MH i2c: E2 03 00 14 25 00 90 00 AD [11:36:04]RAPDU: 90 00 [11:36:04]wFMCommunicate OK [11:36:04]wFMCommunicate request_size=4 [11:36:04]MH_SAM_APDU [11:36:04]CAPDU: 80 0D 03 02 [11:36:04]Write to MH i2c: E2 08 00 15 25 80 0D 03 02 00 00 00 00 B5 [11:36:04]Write i2c OK [11:36:04]MH_I2C_Read... [11:36:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:36:04]Read from MH i2c: E2 [11:36:04]MH_I2C_Read... [11:36:04]Read from MH i2c: E2 0B 00 [11:36:04]MH_I2C_Read... [11:36:04]Read from MH i2c: E2 0B 00 15 25 00 8A 34 6E 8A FF 9B 1C A0 90 00 C2 [11:36:04]RAPDU: 8A 34 6E 8A FF 9B 1C A0 90 00 [11:36:04]wFMCommunicate OK [11:36:04]SAM_PROTO_SignData done [11:36:04]FM_MakeSignedData done [11:36:04]CreateOFDProtocolMessage [11:36:04]wFMCommunicate request_size=4 [11:36:04]MH_SAM_APDU [11:36:04]CAPDU: 80 11 00 00 [11:36:04]Write to MH i2c: E2 08 00 16 25 80 11 00 00 00 00 00 00 B5 [11:36:04]Write i2c OK [11:36:04]MH_I2C_Read... [11:36:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:04]Read from MH i2c: E2 [11:36:04]MH_I2C_Read... [11:36:04]Read from MH i2c: E2 17 00 [11:36:04]MH_I2C_Read... [11:36:04]Read from MH i2c: E2 17 00 16 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 08 [11:36:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:36:04]wFMCommunicate OK [11:36:04]CreateOFDProtocolMessage done [11:36:04]OFDSenderStorePacket 76817 [11:36:04]StoreOFDPacket docnum=76817 [11:36:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 2A 52 04 01 79 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 BE 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 39 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 91 00 00 00 00 07 04 06 00 30 57 05 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 26 FA 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 11 2C 01 00 35 04 06 00 A6 FF 18 EA F7 7A 8A 34 6E 8A FF 9B 1C A0 [11:36:04]CheckFolder [11:36:04]dirname=/storage/ofd_packets [11:36:04]CheckFolder done [11:36:04]ProducePacketName [11:36:04]name=ofd_packets/00076817 [11:36:04]NVStorageSaveData ofd_packets/00076817 [11:36:04]File name is /storage/ofd_packets/00076817 [11:36:04]Write 298 bytes [11:36:04]NVStorageSaveData done [11:36:04]OFDSenderStorePacket done [11:36:04]KKMCreateOFDPacket done [11:36:04]NVStorageSaveData kkm_last_timestamp [11:36:04]File name is /storage/kkm_last_timestamp [11:36:04]Write 4 bytes [11:36:04]NVStorageSaveData done [11:36:04]ExternCall_PrintAddStr [11:36:04]wPrintStart [11:36:04]Write to MH i2c: 01 00 00 17 25 3C [11:36:04]Write i2c OK [11:36:04]MH_I2C_Read... [11:36:04]Read from MH i2c: 01 [11:36:04]MH_I2C_Read... [11:36:04]Read from MH i2c: 01 07 00 [11:36:04]MH_I2C_Read... [11:36:04]Read from MH i2c: 01 07 00 17 25 00 00 00 00 00 FF 0F 51 [11:36:04]RasterBufferAndPrint [11:36:04]line Счет N : (1)191351 [11:36:04]line ИНН: 02508201610067 [11:36:04]line Контрольно-Кассовый Чек [11:36:04]line ПРОДАЖА [11:36:04]line ТРК (МРК, ГНК) : 51 [11:36:04]line Товар: 2710194210 [11:36:04]line ДТ-К-5 [11:36:04]line 48.680 * 71.90 [11:36:04]line = 3500.09 [11:36:04]line НДС 12% НСП 1% [11:36:04]line > о реализуемом товаре [11:36:04]line ОКРУГЛЕНИЕ: -0.09 [11:36:04]line ИТОГО: 3500.00 [11:36:04]line Внесено: 3500.00 [11:36:04]line СДАЧА: 0.00 [11:36:04]line НСП 1% : 30.97 [11:36:04]line НДС 12% : 371.69 [11:36:04]line Наличными: 3500.00 [11:36:04]line Безнал.: 0.00 [11:36:04]line Место: АЗС № 106 "Партнер Нефть" [11:36:04]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [11:36:04]line СНО: Общий режим [11:36:04]line Чек 73 21.04.2024 11:36 [11:36:04]line Смена: 372 ФФД: 1.0 [11:36:04]line ЗНМ: 0300000141 [11:36:04]line РНМ: 0000000000091573 [11:36:04]line Версия ККМ: 001 [11:36:04]line [11:36:04]line Дисконтная программа [11:36:04]line ДТ [11:36:04]line номер 106 [11:36:04]line сэкономлено 48.68 сом [11:36:04]line ФМ: 0000000000874652 [11:36:04]line ФД: 76817 [11:36:04]line ФПД: 183614564923258 [11:36:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T113606&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76817&fm=183614564923258&tin=02508201610067®Number=0000000000091573&sum=350000 [11:36:04]written 0, free lines is 4095 [11:36:04]OFD Sender: Processing packet 76817 [packets to send 129, broken 128] [11:36:04]ProducePacketName [11:36:04]name=ofd_packets/00076817 [11:36:04]OFD Sender: To server: pG, [11:36:04]CommunicateWithHost lk.salyk.kg:30040 [11:36:04]ConnectInit lk.salyk.kg [11:36:04]Connected sock=10 [11:36:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 2A 52 04 01 79 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 BE 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 39 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 91 00 00 00 00 07 04 06 00 30 57 05 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 26 FA 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 11 2C 01 00 35 04 06 00 A6 FF 18 EA F7 7A 8A 34 6E 8A FF 9B 1C A0 [11:36:04]Write to MH i2c: 01 00 00 46 25 6B [11:36:04]Write i2c OK [11:36:04]MH_I2C_Read... [11:36:04]Read from MH i2c: 01 [11:36:04]MH_I2C_Read... [11:36:04]Read from MH i2c: 01 07 00 [11:36:04]MH_I2C_Read... [11:36:04]Read from MH i2c: 01 07 00 46 25 00 00 00 00 00 98 0C 16 [11:36:04]RasterBufferAndPrint [11:36:04]line [11:36:04]line [11:36:04]line [11:36:04]line [11:36:04]line [11:36:04]written 0, free lines is 3230 [11:36:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 D0 40 47 00 97 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 11 2C 01 00 F4 03 04 00 AC A1 24 66 B6 04 01 00 00 4E 84 8F 93 2C 3C 12 CA [11:36:04]CommunicateWithHost err = 0 [11:36:04]CheckOFDResponse [11:36:04]1017 (14) - 77093643461234 [11:36:04]1041 (16) - 0000000000874652 [11:36:04]1040 (4) - 76817 [11:36:04]1012 (4) - 21.04.2024 05:18 [11:36:04]1206 (1) - 0 [11:36:04]OFD Sender: Remove packet 76817 [11:36:04]ProducePacketName [11:36:04]name=ofd_packets/00076817 [11:36:04]NVStorageDeleteData [11:36:04]MH_Cut [11:36:04]Write to MH i2c: D1 01 00 4D 25 01 44 [11:36:04]Write i2c OK [11:36:04]MH_I2C_Read... [11:36:04]Read from MH i2c: D1 [11:36:04]MH_I2C_Read... [11:36:04]Read from MH i2c: D1 01 00 [11:36:04]MH_I2C_Read... [11:36:04]Read from MH i2c: D1 01 00 4D 25 00 43 [11:36:04]Write to MH i2c: 01 00 00 4E 25 73 [11:36:04]Write i2c OK [11:36:04]MH_I2C_Read... [11:36:05]OFD Sender: No OFD packet to send [11:36:05]*** Cut start [11:36:05]*** Partial cut [11:36:05]*** CUTSNS_PIN = 1 [11:36:05]*** CUTSNS_PIN = 0 [11:36:06]*** Brake cut motor [11:36:06]Read from MH i2c: 01 [11:36:06]MH_I2C_Read... [11:36:06]*** Stop cut motor [11:36:06]*** Cut end [11:36:06]Read from MH i2c: 01 07 00 [11:36:06]MH_I2C_Read... [11:36:06]Read from MH i2c: 01 07 00 4E 25 00 00 00 00 00 FF 0F 88 [11:36:06]process_action close_receipt done [11:36:06]requested_data is exist [11:36:06]produce_requested_data [11:36:06]requested_item fm.sn is exist - process it [11:36:06]wFMCommunicate request_size=4 [11:36:06]MH_SAM_APDU [11:36:06]CAPDU: 80 11 00 00 [11:36:06]Write to MH i2c: E2 08 00 4F 25 80 11 00 00 00 00 00 00 EE [11:36:06]Write i2c OK [11:36:06]MH_I2C_Read... [11:36:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:06]Read from MH i2c: E2 [11:36:06]MH_I2C_Read... [11:36:06]Read from MH i2c: E2 17 00 [11:36:06]MH_I2C_Read... [11:36:06]Read from MH i2c: E2 17 00 4F 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 41 [11:36:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:36:06]wFMCommunicate OK [11:36:06]requested_item fd.num is exist - process it [11:36:06]SAM_PROTO_GetFieldsCounters [11:36:06]wFMCommunicate request_size=4 [11:36:06]MH_SAM_APDU [11:36:06]CAPDU: 80 13 00 00 [11:36:06]Write to MH i2c: E2 08 00 50 25 80 13 00 00 00 00 00 00 F1 [11:36:06]Write i2c OK [11:36:06]MH_I2C_Read... [11:36:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:36:06]Read from MH i2c: E2 [11:36:06]MH_I2C_Read... [11:36:06]Read from MH i2c: E2 62 00 [11:36:06]MH_I2C_Read... [11:36:06]Read from MH i2c: E2 62 00 50 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 11 2C 01 00 0E 04 04 00 74 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 A0 [11:36: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 11 2C 01 00 0E 04 04 00 74 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:06]wFMCommunicate OK [11:36:06]SAM_PROTO_GetFieldsCounters done [11:36:06]requested_item shift.num is exist - process it [11:36:06]requested_item shift.opened is exist - process it [11:36:06]req_shift_opened [11:36:06]FM_GetShiftState [11:36:06]SAM_PROTO_GetShiftState [11:36:06]wFMCommunicate request_size=4 [11:36:06]MH_SAM_APDU [11:36:06]CAPDU: 80 13 01 00 [11:36:06]Write to MH i2c: E2 08 00 51 25 80 13 01 00 00 00 00 00 F3 [11:36:06]Write i2c OK [11:36:06]MH_I2C_Read... [11:36:06]Read from MH i2c: E2 [11:36:06]MH_I2C_Read... [11:36:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:06]Read from MH i2c: E2 0E 00 [11:36:06]MH_I2C_Read... [11:36:06]Read from MH i2c: E2 0E 00 51 25 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 3A [11:36:06]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [11:36:06]wFMCommunicate OK [11:36:06]SAM_PROTO_GetShiftState done [11:36:06]FM_GetShiftState done [11:36:06]req_shift_opened done [11:36:06]requested_item shift.open_date is exist - process it [11:36:06]req_shift_open_date [11:36:06]req_shift_open_date done [11:36:06]produce_requested_data done [11:36:06]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76817,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [11:36:06]process_action_free close_receipt [11:36:06]json_value_free [11:36:06]json_value_free done [11:36:06]process_json_proto returns [11:36:06]Send response to host [11:36:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76817,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [11:36:06]free response buf [11:36:06]execute_script done [11:36:06]execute_script returns [11:36:06]free content buf [11:36:06]Sock 7.Close socket [11:36:06]Sock 7.Thread stoped [11:36:10]OFD Sender: No OFD packet to send [11:36:15]OFD Sender: No OFD packet to send [11:36:20]OFD Sender: No OFD packet to send [11:36:25]OFD Sender: No OFD packet to send [11:36:30]OFD Sender: No OFD packet to send [11:36:35]OFD Sender: No OFD packet to send [11:36:40]OFD Sender: No OFD packet to send [11:36:45]OFD Sender: No OFD packet to send [11:36:50]OFD Sender: No OFD packet to send [11:36:55]OFD Sender: No OFD packet to send [11:37:00]OFD Sender: No OFD packet to send [11:37:05]OFD Sender: No OFD packet to send [11:37:10]OFD Sender: No OFD packet to send [11:37:15]OFD Sender: No OFD packet to send [11:37:20]OFD Sender: No OFD packet to send [11:37:25]OFD Sender: No OFD packet to send [11:37:30]OFD Sender: No OFD packet to send [11:37:35]OFD Sender: No OFD packet to send [11:37:40]OFD Sender: No OFD packet to send [11:37:45]OFD Sender: No OFD packet to send [11:37:50]OFD Sender: No OFD packet to send [11:37:55]OFD Sender: No OFD packet to send [11:38:00]OFD Sender: No OFD packet to send [11:38:05]OFD Sender: No OFD packet to send [11:38:10]OFD Sender: No OFD packet to send [11:38:15]OFD Sender: No OFD packet to send [11:38:20]OFD Sender: No OFD packet to send [11:38:25]OFD Sender: No OFD packet to send [11:38:30]OFD Sender: No OFD packet to send [11:38:35]OFD Sender: No OFD packet to send [11:38:40]OFD Sender: No OFD packet to send [11:38:45]OFD Sender: No OFD packet to send [11:38:50]OFD Sender: No OFD packet to send [11:38:55]OFD Sender: No OFD packet to send [11:39:00]OFD Sender: No OFD packet to send [11:39:05]OFD Sender: No OFD packet to send [11:39:10]OFD Sender: No OFD packet to send [11:39:15]OFD Sender: No OFD packet to send [11:39:20]OFD Sender: No OFD packet to send [11:39:25]OFD Sender: No OFD packet to send [11:39:30]OFD Sender: No OFD packet to send [11:39:35]OFD Sender: No OFD packet to send [11:39:40]OFD Sender: No OFD packet to send [11:39:45]OFD Sender: No OFD packet to send [11:39:50]OFD Sender: No OFD packet to send [11:39:55]OFD Sender: No OFD packet to send [11:40:00]OFD Sender: No OFD packet to send [11:40:05]OFD Sender: No OFD packet to send [11:40:10]OFD Sender: No OFD packet to send [11:40:15]OFD Sender: No OFD packet to send [11:40:20]OFD Sender: No OFD packet to send [11:40:25]OFD Sender: No OFD packet to send [11:40:30]OFD Sender: No OFD packet to send [11:40:35]OFD Sender: No OFD packet to send [11:40:40]OFD Sender: No OFD packet to send [11:40:45]OFD Sender: No OFD packet to send [11:40:50]OFD Sender: No OFD packet to send [11:40:55]OFD Sender: No OFD packet to send [11:41:00]OFD Sender: No OFD packet to send [11:41:05]OFD Sender: No OFD packet to send [11:41:08]accept exits with 9 [11:41:08]New connection [11:41:08]New thread 3067338084 created [11:41:08]Thread 3067481444 joined [11:41:08]Waiting for new connection... [11:41:08] Sock 9.Parse request [11:41:08]Sock 9.Check first char [11:41:08]Sock 9.First char is OK [11:41:08]request: POST /json_proto HTTP/1.0 [11:41:08]Method: POST [11:41:08]URL: /json_proto [11:41:08]Method is POST - this is cgi request [11:41:08]url: /json_proto [11:41:08]query_string will be loaded in cgi processing [11:41:08]execute_cgi json_proto POST (null) [11:41:08]execute_cgi path=json_proto method=POST [11:41:08]POST find Content-Length [11:41:08]Host: 172.17.62.5:8080 [11:41:08]Content-Length: 819 [11:41:08]Content-Type: application/json [11:41:08] [11:41:08]POST finish read [11:41:08]Found Content-Length = 819 [11:41:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 31.060, "sum" : 2000.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" : 2000.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:08]execute_script... [11:41:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 31.060, "sum" : 2000.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" : 2000.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:08]POST & json_proto [11:41:08]process_json_proto [11:41:08]json parsed OK: [11:41:08]protocol is kg_v1.0 [11:41:08]action value=close_receipt [11:41:08]process_action close_receipt [11:41:08]cmd_close_receipt [11:41:08]MH_GetDate [11:41:08]Write to MH i2c: F0 00 00 52 25 66 [11:41:08]Write i2c OK [11:41:08]MH_I2C_Read... [11:41:08]Read from MH i2c: F0 [11:41:08]MH_I2C_Read... [11:41:08]Read from MH i2c: F0 09 00 [11:41:08]MH_I2C_Read... [11:41:08]Read from MH i2c: F0 09 00 52 25 00 58 FB 24 66 F4 E9 65 64 F2 [11:41:08]GetLastDocTimeStamp 1713699366 [11:41:08]current date 1713699672 [11:41:08]FM_GetShiftState [11:41:08]SAM_PROTO_GetShiftState [11:41:08]wFMCommunicate request_size=4 [11:41:08]MH_SAM_APDU [11:41:08]CAPDU: 80 13 01 00 [11:41:08]Write to MH i2c: E2 08 00 53 25 80 13 01 00 00 00 00 00 F5 [11:41:08]Write i2c OK [11:41:08]MH_I2C_Read... [11:41:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:08]Read from MH i2c: E2 [11:41:08]MH_I2C_Read... [11:41:08]Read from MH i2c: E2 0E 00 [11:41:08]MH_I2C_Read... [11:41:08]Read from MH i2c: E2 0E 00 53 25 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 3C [11:41:08]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [11:41:08]wFMCommunicate OK [11:41:08]SAM_PROTO_GetShiftState done [11:41:08]FM_GetShiftState done [11:41:08]opened in 1713658965 [11:41:08]opened+sec_in_day 1713745365 [11:41:08]quantity*price = 200026 [11:41:08]sum+1 = 200027 [11:41:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.26 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.26 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 74 21.04.2024 11:41 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 76818 ФПД: 236570919396212 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T114112&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76818&fm=236570919396212&tin=02508201610067®Number=0000000000091573&sum=200026 [11:41:10]StoreToDocumentArchive [11:41:10]shift 372 fd 76818 [11:41:10]save to /storage/0372/doc_00076818 [11:41:10]save last doc name /storage/0372/doc_00076818 to /storage/kkm_last_doc_name [11:41:10]save OK [11:41:10]Clear old archive folders... [11:41:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:41:10]tlvbuf is 018FBA80 [11:41:10]SAM_PROTO_ClearQueue [11:41:10]wFMCommunicate request_size=4 [11:41:10]MH_SAM_APDU [11:41:10]CAPDU: 80 09 00 00 [11:41:10]Write to MH i2c: E2 08 00 60 25 80 09 00 00 00 00 00 00 F7 [11:41:10]Write i2c OK [11:41:10]MH_I2C_Read... [11:41:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:41:10]Read from MH i2c: E2 [11:41:10]MH_I2C_Read... [11:41:10]Read from MH i2c: E2 03 00 [11:41:10]MH_I2C_Read... [11:41:10]Read from MH i2c: E2 03 00 60 25 00 90 00 F9 [11:41:10]RAPDU: 90 00 [11:41:10]wFMCommunicate OK [11:41:10]SAM_PROTO_ClearQueue done [11:41:10]KKMCreateOFDPacket [11:41:10]OFDProtocolAddRootSTLVToBuf [11:41:10]FM_MakeSignedData [11:41:10]FM_MakeSignedData [11:41:10]SAM_PROTO_SignData [11:41:10]wFMCommunicate request_size=4 [11:41:10]MH_SAM_APDU [11:41:10]CAPDU: 80 0D 01 02 [11:41:10]Write to MH i2c: E2 08 00 61 25 80 0D 01 02 00 00 00 00 FF [11:41:10]Write i2c OK [11:41:10]MH_I2C_Read... [11:41:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:41:10]Read from MH i2c: E2 [11:41:10]MH_I2C_Read... [11:41:10]Read from MH i2c: E2 03 00 [11:41:10]MH_I2C_Read... [11:41:10]Read from MH i2c: E2 03 00 61 25 00 90 00 FA [11:41:10]RAPDU: 90 00 [11:41:10]wFMCommunicate OK [11:41:10]wFMCommunicate request_size=255 [11:41:10]MH_SAM_APDU [11:41:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 54 79 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5A 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 58 FB 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 12 2C 01 00 35 04 06 00 D7 [11:41:10]Write to MH i2c: E2 02 01 62 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 54 79 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5A 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 58 FB 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 12 2C 01 00 35 04 06 00 D7 00 00 43 [11:41:10]Write i2c OK [11:41:10]MH_I2C_Read... [11:41:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:10]Read from MH i2c: E2 [11:41:10]MH_I2C_Read... [11:41:10]Read from MH i2c: E2 03 00 [11:41:10]MH_I2C_Read... [11:41:10]Read from MH i2c: E2 03 00 62 25 00 90 00 FB [11:41:10]RAPDU: 90 00 [11:41:10]wFMCommunicate OK [11:41:10]wFMCommunicate request_size=10 [11:41:10]MH_SAM_APDU [11:41:10]CAPDU: 80 0D 02 02 05 28 F5 9D 63 74 [11:41:10]Write to MH i2c: E2 0D 00 63 25 80 0D 02 02 05 00 28 F5 9D 63 74 00 00 9D [11:41:10]Write i2c OK [11:41:10]MH_I2C_Read... [11:41:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:10]Read from MH i2c: E2 [11:41:10]MH_I2C_Read... [11:41:10]Read from MH i2c: E2 03 00 [11:41:10]MH_I2C_Read... [11:41:10]Read from MH i2c: E2 03 00 63 25 00 90 00 FC [11:41:10]RAPDU: 90 00 [11:41:10]wFMCommunicate OK [11:41:10]wFMCommunicate request_size=4 [11:41:10]MH_SAM_APDU [11:41:10]CAPDU: 80 0D 03 02 [11:41:10]Write to MH i2c: E2 08 00 64 25 80 0D 03 02 00 00 00 00 04 [11:41:10]Write i2c OK [11:41:10]MH_I2C_Read... [11:41:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:41:10]Read from MH i2c: E2 [11:41:10]MH_I2C_Read... [11:41:10]Read from MH i2c: E2 0B 00 [11:41:10]MH_I2C_Read... [11:41:10]Read from MH i2c: E2 0B 00 64 25 00 25 32 07 8D 0C 93 32 67 90 00 28 [11:41:10]RAPDU: 25 32 07 8D 0C 93 32 67 90 00 [11:41:10]wFMCommunicate OK [11:41:10]SAM_PROTO_SignData done [11:41:10]FM_MakeSignedData done [11:41:10]CreateOFDProtocolMessage [11:41:10]wFMCommunicate request_size=4 [11:41:10]MH_SAM_APDU [11:41:10]CAPDU: 80 11 00 00 [11:41:10]Write to MH i2c: E2 08 00 65 25 80 11 00 00 00 00 00 00 04 [11:41:10]Write i2c OK [11:41:10]MH_I2C_Read... [11:41:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:10]Read from MH i2c: E2 [11:41:10]MH_I2C_Read... [11:41:10]Read from MH i2c: E2 17 00 [11:41:10]MH_I2C_Read... [11:41:10]Read from MH i2c: E2 17 00 65 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 57 [11:41:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:41:10]wFMCommunicate OK [11:41:10]CreateOFDProtocolMessage done [11:41:10]OFDSenderStorePacket 76818 [11:41:10]StoreOFDPacket docnum=76818 [11:41:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 C3 17 07 01 1B 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 54 79 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5A 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 58 FB 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 12 2C 01 00 35 04 06 00 D7 28 F5 9D 63 74 25 32 07 8D 0C 93 32 67 [11:41:10]CheckFolder [11:41:10]dirname=/storage/ofd_packets [11:41:10]CheckFolder done [11:41:10]ProducePacketName [11:41:10]name=ofd_packets/00076818 [11:41:10]NVStorageSaveData ofd_packets/00076818 [11:41:10]File name is /storage/ofd_packets/00076818 [11:41:10]Write 301 bytes [11:41:10]NVStorageSaveData done [11:41:10]OFDSenderStorePacket done [11:41:10]KKMCreateOFDPacket done [11:41:10]NVStorageSaveData kkm_last_timestamp [11:41:10]File name is /storage/kkm_last_timestamp [11:41:10]Write 4 bytes [11:41:10]NVStorageSaveData done [11:41:10]ExternCall_PrintAddStr [11:41:10]wPrintStart [11:41:10]Write to MH i2c: 01 00 00 66 25 8B [11:41:10]Write i2c OK [11:41:10]MH_I2C_Read... [11:41:10]Read from MH i2c: 01 [11:41:10]MH_I2C_Read... [11:41:10]Read from MH i2c: 01 07 00 [11:41:10]MH_I2C_Read... [11:41:10]Read from MH i2c: 01 07 00 66 25 00 00 00 00 00 FF 0F A0 [11:41:10]RasterBufferAndPrint [11:41:10]line Счет N : (1)191352 [11:41:10]line ИНН: 02508201610067 [11:41:10]line Контрольно-Кассовый Чек [11:41:10]line ПРОДАЖА [11:41:10]line ТРК (МРК, ГНК) : 12 [11:41:10]line Товар: 2710124130 [11:41:10]line Аи-92-К-5 [11:41:10]line 31.060 * 64.40 [11:41:10]line = 2000.26 [11:41:10]line НДС 12% НСП 1% [11:41:10]line > о реализуемом товаре [11:41:10]line ИТОГО: 2000.26 [11:41:10]line НСП 1% : 17.70 [11:41:10]line НДС 12% : 212.42 [11:41:10]line Наличными: 0.00 [11:41:10]line Безнал.: 2000.26 [11:41:10]line Место: АЗС № 106 "Партнер Нефть" [11:41:10]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [11:41:10]line СНО: Общий режим [11:41:10]line Чек 74 21.04.2024 11:41 [11:41:10]line Смена: 372 ФФД: 1.0 [11:41:10]line ЗНМ: 0300000141 [11:41:10]line РНМ: 0000000000091573 [11:41:10]line Версия ККМ: 001 [11:41:10]line Платежная система: Бакай Банк [11:41:10]line ФМ: 0000000000874652 [11:41:10]line ФД: 76818 [11:41:10]line ФПД: 236570919396212 [11:41:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T114112&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76818&fm=236570919396212&tin=02508201610067®Number=0000000000091573&sum=200026 [11:41:10]written 0, free lines is 4095 [11:41:10]OFD Sender: Processing packet 76818 [packets to send 129, broken 128] [11:41:10]ProducePacketName [11:41:10]name=ofd_packets/00076818 [11:41:10]OFD Sender: To server: pG, [11:41:10]CommunicateWithHost lk.salyk.kg:30040 [11:41:10]ConnectInit lk.salyk.kg [11:41:10]Connected sock=10 [11:41:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 C3 17 07 01 1B 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 54 79 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5A 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 58 FB 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 12 2C 01 00 35 04 06 00 D7 28 F5 9D 63 74 25 32 07 8D 0C 93 32 67 [11:41:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 01 40 47 00 78 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 34 36 35 32 10 04 04 00 12 2C 01 00 F4 03 04 00 DE A2 24 66 B6 04 01 00 00 BC CD 7B A9 47 F8 D8 80 [11:41:10]CommunicateWithHost err = 0 [11:41:10]CheckOFDResponse [11:41:10]1017 (14) - 77093643461234 [11:41:10]1041 (16) - 0000000000874652 [11:41:10]1040 (4) - 76818 [11:41:10]1012 (4) - 21.04.2024 05:23 [11:41:10]1206 (1) - 0 [11:41:10]OFD Sender: Remove packet 76818 [11:41:10]ProducePacketName [11:41:10]name=ofd_packets/00076818 [11:41:10]NVStorageDeleteData [11:41:11]Write to MH i2c: 01 00 00 8F 25 B4 [11:41:11]Write i2c OK [11:41:11]MH_I2C_Read... [11:41:11]Read from MH i2c: 01 [11:41:11]MH_I2C_Read... [11:41:11]Read from MH i2c: 01 07 00 [11:41:11]MH_I2C_Read... [11:41:11]Read from MH i2c: 01 07 00 8F 25 00 00 00 00 00 FF 0C C6 [11:41:11]RasterBufferAndPrint [11:41:11]line [11:41:11]line [11:41:11]line [11:41:11]line [11:41:11]line [11:41:11]written 0, free lines is 3333 [11:41:11]MH_Cut [11:41:11]Write to MH i2c: D1 01 00 96 25 01 8D [11:41:11]Write i2c OK [11:41:11]MH_I2C_Read... [11:41:11]Read from MH i2c: D1 [11:41:11]MH_I2C_Read... [11:41:11]Read from MH i2c: D1 01 00 [11:41:11]MH_I2C_Read... [11:41:11]Read from MH i2c: D1 01 00 96 25 00 8C [11:41:11]Write to MH i2c: 01 00 00 97 25 BC [11:41:11]Write i2c OK [11:41:11]MH_I2C_Read... [11:41:11]OFD Sender: No OFD packet to send [11:41:11]*** Cut start [11:41:11]*** Partial cut [11:41:11]*** CUTSNS_PIN = 1 [11:41:11]*** CUTSNS_PIN = 0 [11:41:12]*** Brake cut motor [11:41:12]Read from MH i2c: 01 [11:41:12]MH_I2C_Read... [11:41:12]*** Stop cut motor [11:41:12]*** Cut end [11:41:12]Read from MH i2c: 01 07 00 [11:41:12]MH_I2C_Read... [11:41:12]Read from MH i2c: 01 07 00 97 25 00 00 00 00 00 FF 0F D1 [11:41:12]process_action close_receipt done [11:41:12]requested_data is exist [11:41:12]produce_requested_data [11:41:12]requested_item fm.sn is exist - process it [11:41:12]wFMCommunicate request_size=4 [11:41:12]MH_SAM_APDU [11:41:12]CAPDU: 80 11 00 00 [11:41:12]Write to MH i2c: E2 08 00 98 25 80 11 00 00 00 00 00 00 37 [11:41:12]Write i2c OK [11:41:12]MH_I2C_Read... [11:41:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:12]Read from MH i2c: E2 [11:41:12]MH_I2C_Read... [11:41:12]Read from MH i2c: E2 17 00 [11:41:12]MH_I2C_Read... [11:41:12]Read from MH i2c: E2 17 00 98 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 8A [11:41:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:41:12]wFMCommunicate OK [11:41:12]requested_item fd.num is exist - process it [11:41:12]SAM_PROTO_GetFieldsCounters [11:41:12]wFMCommunicate request_size=4 [11:41:12]MH_SAM_APDU [11:41:12]CAPDU: 80 13 00 00 [11:41:12]Write to MH i2c: E2 08 00 99 25 80 13 00 00 00 00 00 00 3A [11:41:12]Write i2c OK [11:41:12]MH_I2C_Read... [11:41:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:41:12]Read from MH i2c: E2 [11:41:12]MH_I2C_Read... [11:41:12]Read from MH i2c: E2 62 00 [11:41:12]MH_I2C_Read... [11:41:12]Read from MH i2c: E2 62 00 99 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 12 2C 01 00 0E 04 04 00 74 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 ED [11:41:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 12 2C 01 00 0E 04 04 00 74 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:41:12]wFMCommunicate OK [11:41:12]SAM_PROTO_GetFieldsCounters done [11:41:12]requested_item shift.num is exist - process it [11:41:12]requested_item shift.opened is exist - process it [11:41:12]req_shift_opened [11:41:12]FM_GetShiftState [11:41:12]SAM_PROTO_GetShiftState [11:41:12]wFMCommunicate request_size=4 [11:41:12]MH_SAM_APDU [11:41:12]CAPDU: 80 13 01 00 [11:41:12]Write to MH i2c: E2 08 00 9A 25 80 13 01 00 00 00 00 00 3C [11:41:12]Write i2c OK [11:41:12]MH_I2C_Read... [11:41:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:12]Read from MH i2c: E2 [11:41:12]MH_I2C_Read... [11:41:12]Read from MH i2c: E2 0E 00 [11:41:12]MH_I2C_Read... [11:41:12]Read from MH i2c: E2 0E 00 9A 25 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 83 [11:41:12]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [11:41:12]wFMCommunicate OK [11:41:12]SAM_PROTO_GetShiftState done [11:41:12]FM_GetShiftState done [11:41:12]req_shift_opened done [11:41:12]requested_item shift.open_date is exist - process it [11:41:12]req_shift_open_date [11:41:12]req_shift_open_date done [11:41:12]produce_requested_data done [11:41:12]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76818,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [11:41:12]process_action_free close_receipt [11:41:12]json_value_free [11:41:12]json_value_free done [11:41:12]process_json_proto returns [11:41:12]Send response to host [11:41:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76818,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [11:41:12]free response buf [11:41:12]execute_script done [11:41:12]execute_script returns [11:41:12]free content buf [11:41:12]Sock 9.Close socket [11:41:12]Sock 9.Thread stoped [11:41:16]OFD Sender: No OFD packet to send [11:41:21]OFD Sender: No OFD packet to send [11:41:26]OFD Sender: No OFD packet to send [11:41:31]OFD Sender: No OFD packet to send [11:41:36]OFD Sender: No OFD packet to send [11:41:41]OFD Sender: No OFD packet to send [11:41:46]OFD Sender: No OFD packet to send [11:41:51]OFD Sender: No OFD packet to send [11:41:56]OFD Sender: No OFD packet to send [11:42:01]OFD Sender: No OFD packet to send [11:42:06]OFD Sender: No OFD packet to send [11:42:11]OFD Sender: No OFD packet to send [11:42:16]OFD Sender: No OFD packet to send [11:42:21]OFD Sender: No OFD packet to send [11:42:26]OFD Sender: No OFD packet to send [11:42:31]OFD Sender: No OFD packet to send [11:42:36]OFD Sender: No OFD packet to send [11:42:41]OFD Sender: No OFD packet to send [11:42:46]OFD Sender: No OFD packet to send [11:42:51]OFD Sender: No OFD packet to send [11:42:56]OFD Sender: No OFD packet to send [11:43:01]OFD Sender: No OFD packet to send [11:43:06]OFD Sender: No OFD packet to send [11:43:11]OFD Sender: No OFD packet to send [11:43:16]OFD Sender: No OFD packet to send [11:43:21]OFD Sender: No OFD packet to send [11:43:26]OFD Sender: No OFD packet to send [11:43:31]OFD Sender: No OFD packet to send [11:43:36]OFD Sender: No OFD packet to send [11:43:37]int [11:43:37]Write to MH i2c: 01 00 00 9B 25 C0 [11:43:37]*** FLAG_PRN_KEY set [11:43:37]Write i2c OK [11:43:37]MH_I2C_Read... [11:43:37]Read from MH i2c: 01 [11:43:37]MH_I2C_Read... [11:43:37]Read from MH i2c: 01 07 00 [11:43:37]MH_I2C_Read... [11:43:37]Read from MH i2c: 01 07 00 9B 25 00 08 00 00 00 FF 0F DD [11:43:37]state=0 [11:43:37]Key pressed [11:43:37]Feed [11:43:37]Write to MH i2c: D8 00 00 9C 25 98 [11:43:37]Write i2c OK [11:43:37]MH_I2C_Read... [11:43:37]Read from MH i2c: D8 [11:43:37]MH_I2C_Read... [11:43:37]Read from MH i2c: D8 01 00 [11:43:37]MH_I2C_Read... [11:43:37]Read from MH i2c: D8 01 00 9C 25 00 99 [11:43:37]int [11:43:37]Write to MH i2c: 01 00 00 9D 25 C2 [11:43:37]Write i2c OK [11:43:37]MH_I2C_Read... [11:43:37]Read from MH i2c: 01 [11:43:37]MH_I2C_Read... [11:43:37]Read from MH i2c: 01 07 00 [11:43:37]MH_I2C_Read... [11:43:37]Read from MH i2c: 01 07 00 9D 25 00 48 00 00 00 3C 00 4D [11:43:37]state=2 [11:43:37]Key pressed [11:43:37]int [11:43:37]Write to MH i2c: 01 00 00 9E 25 C3 [11:43:37]*** FLAG_PRN_KEY reset [11:43:37]Write i2c OK [11:43:37]MH_I2C_Read... [11:43:37]Read from MH i2c: 01 [11:43:37]MH_I2C_Read... [11:43:37]Read from MH i2c: 01 07 00 [11:43:37]MH_I2C_Read... [11:43:37]Read from MH i2c: 01 07 00 9E 25 00 00 00 00 00 F6 0F CF [11:43:37]state=2 [11:43:37]Stop feed [11:43:38]int [11:43:38]Write to MH i2c: 01 00 00 9F 25 C4 [11:43:38]*** FLAG_PRN_KEY set [11:43:38]Write i2c OK [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: 01 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: 01 07 00 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: 01 07 00 9F 25 00 08 00 00 00 FF 0F E1 [11:43:38]state=0 [11:43:38]Key pressed [11:43:38]Feed [11:43:38]Write to MH i2c: D8 00 00 A0 25 9C [11:43:38]Write i2c OK [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: D8 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: D8 01 00 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: D8 01 00 A0 25 00 9D [11:43:38]int [11:43:38]Write to MH i2c: 01 00 00 A1 25 C6 [11:43:38]Write i2c OK [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: 01 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: 01 07 00 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: 01 07 00 A1 25 00 48 00 00 00 3C 00 51 [11:43:38]state=2 [11:43:38]Key pressed [11:43:38]int [11:43:38]Write to MH i2c: 01 00 00 A2 25 C7 [11:43:38]*** FLAG_PRN_KEY reset [11:43:38]Write i2c OK [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: 01 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: 01 07 00 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: 01 07 00 A2 25 00 00 00 00 00 F5 0F D2 [11:43:38]state=2 [11:43:38]Stop feed [11:43:38]accept exits with 7 [11:43:38]New connection [11:43:38]New thread 3067481444 created [11:43:38]Thread 3067338084 joined [11:43:38]Waiting for new connection... [11:43:38] Sock 7.Parse request [11:43:38]Sock 7.Check first char [11:43:38]Sock 7.First char is OK [11:43:38]request: POST /json_proto HTTP/1.0 [11:43:38]Method: POST [11:43:38]URL: /json_proto [11:43:38]Method is POST - this is cgi request [11:43:38]url: /json_proto [11:43:38]query_string will be loaded in cgi processing [11:43:38]execute_cgi json_proto POST (null) [11:43:38]execute_cgi path=json_proto method=POST [11:43:38]POST find Content-Length [11:43:38]Host: 172.17.62.5:8080 [11:43:38]Content-Length: 1155 [11:43:38]Content-Type: application/json [11:43:38] [11:43:38]POST finish read [11:43:38]Found Content-Length = 1155 [11:43: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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041B\u044B\u043C\u0430\u0440\u0435\u0432\u0430 \u0412. \u000A\u0421\u0447\u0435\u0442 N : (1)191353\u000A21.04.2024 11:25\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 : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 7.990 x 72.90\u000A\u0418\u0422\u041E\u0413: 582.47\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30085122\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:38]execute_script... [11:43: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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041B\u044B\u043C\u0430\u0440\u0435\u0432\u0430 \u0412. \u000A\u0421\u0447\u0435\u0442 N : (1)191353\u000A21.04.2024 11:25\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 : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 7.990 x 72.90\u000A\u0418\u0422\u041E\u0413: 582.47\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30085122\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:38]POST & json_proto [11:43:38]process_json_proto [11:43:38]json parsed OK: [11:43:38]protocol is kg_v1.0 [11:43:38]action value=print_text [11:43:38]process_action print_text [11:43:38]cmd_print_text [11:43:38]ExternCall_PrintAddStr [11:43:38]wPrintStart [11:43:38]Write to MH i2c: 01 00 00 A3 25 C8 [11:43:38]Write i2c OK [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: 01 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: 01 07 00 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: 01 07 00 A3 25 00 00 00 00 00 FF 0F DD [11:43:38]RasterBufferAndPrint [11:43:38]line *****ТОВАРНЫЙ ЧЕК***** [11:43:38]line АЗС 106 [11:43:38]line Партнер нефть [11:43:38]line 02508201610067 [11:43:38]line Кассир : Лымарева В. [11:43:38]line Счет N : (1)191353 [11:43:38]line 21.04.2024 11:25 [11:43:38]line ПРОДАЖА [11:43:38]line ТРК (МРК, ГНК): 32 [11:43:38]line Вид ГСМ : 2710124500 [11:43:38]line Аи-95-К-5 [11:43:38]line 7.990 x 72.90 [11:43:38]line ИТОГ: 582.47 [11:43:38]line Тип оплаты: Талоны: ТК ГПНА Online [11:43:38]line 30085122 [11:43:38]line ______________________ [11:43:38]line (подпись) [11:43:38]written 0, free lines is 4095 [11:43:38]Write to MH i2c: 01 00 00 B7 25 DC [11:43:38]Write i2c OK [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: 01 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: 01 07 00 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: 01 07 00 B7 25 00 00 00 00 00 11 0E 02 [11:43:38]RasterBufferAndPrint [11:43:38]line [11:43:38]line [11:43:38]line [11:43:38]line [11:43:38]line [11:43:38]written 0, free lines is 3603 [11:43:38]MH_Cut [11:43:38]Write to MH i2c: D1 01 00 BE 25 01 B5 [11:43:38]Write i2c OK [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: D1 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: D1 01 00 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: D1 01 00 BE 25 00 B4 [11:43:38]Write to MH i2c: 01 00 00 BF 25 E4 [11:43:38]Write i2c OK [11:43:38]MH_I2C_Read... [11:43:39]*** Cut start [11:43:39]*** Partial cut [11:43:39]*** CUTSNS_PIN = 1 [11:43:39]*** CUTSNS_PIN = 0 [11:43:39]*** Brake cut motor [11:43:39]Read from MH i2c: 01 [11:43:39]MH_I2C_Read... [11:43:39]*** Stop cut motor [11:43:39]*** Cut end [11:43:39]Read from MH i2c: 01 07 00 [11:43:39]MH_I2C_Read... [11:43:39]Read from MH i2c: 01 07 00 BF 25 00 00 00 00 00 FF 0F F9 [11:43:39]process_action print_text done [11:43:39]requested_data is exist [11:43:39]produce_requested_data [11:43:39]requested_item fm.sn is exist - process it [11:43:39]wFMCommunicate request_size=4 [11:43:39]MH_SAM_APDU [11:43:39]CAPDU: 80 11 00 00 [11:43:39]Write to MH i2c: E2 08 00 C0 25 80 11 00 00 00 00 00 00 5F [11:43:39]Write i2c OK [11:43:39]MH_I2C_Read... [11:43:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:39]Read from MH i2c: E2 [11:43:39]MH_I2C_Read... [11:43:39]Read from MH i2c: E2 17 00 [11:43:39]MH_I2C_Read... [11:43:39]Read from MH i2c: E2 17 00 C0 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 B2 [11:43:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:43:39]wFMCommunicate OK [11:43:39]requested_item fd.num is exist - process it [11:43:39]SAM_PROTO_GetFieldsCounters [11:43:39]wFMCommunicate request_size=4 [11:43:39]MH_SAM_APDU [11:43:39]CAPDU: 80 13 00 00 [11:43:39]Write to MH i2c: E2 08 00 C1 25 80 13 00 00 00 00 00 00 62 [11:43:39]Write i2c OK [11:43:39]MH_I2C_Read... [11:43:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:40]Read from MH i2c: E2 [11:43:40]MH_I2C_Read... [11:43:40]Read from MH i2c: E2 62 00 [11:43:40]MH_I2C_Read... [11:43:40]Read from MH i2c: E2 62 00 C1 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 12 2C 01 00 0E 04 04 00 74 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 15 [11:43:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 12 2C 01 00 0E 04 04 00 74 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:43:40]wFMCommunicate OK [11:43:40]SAM_PROTO_GetFieldsCounters done [11:43:40]requested_item shift.num is exist - process it [11:43:40]requested_item shift.opened is exist - process it [11:43:40]req_shift_opened [11:43:40]FM_GetShiftState [11:43:40]SAM_PROTO_GetShiftState [11:43:40]wFMCommunicate request_size=4 [11:43:40]MH_SAM_APDU [11:43:40]CAPDU: 80 13 01 00 [11:43:40]Write to MH i2c: E2 08 00 C2 25 80 13 01 00 00 00 00 00 64 [11:43:40]Write i2c OK [11:43:40]MH_I2C_Read... [11:43:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:40]Read from MH i2c: E2 [11:43:40]MH_I2C_Read... [11:43:40]Read from MH i2c: E2 0E 00 [11:43:40]MH_I2C_Read... [11:43:40]Read from MH i2c: E2 0E 00 C2 25 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 AB [11:43:40]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [11:43:40]wFMCommunicate OK [11:43:40]SAM_PROTO_GetShiftState done [11:43:40]FM_GetShiftState done [11:43:40]req_shift_opened done [11:43:40]requested_item shift.open_date is exist - process it [11:43:40]req_shift_open_date [11:43:40]req_shift_open_date done [11:43:40]produce_requested_data done [11:43:40]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76818,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [11:43:40]process_action_free print_text [11:43:40]json_value_free [11:43:40]json_value_free done [11:43:40]process_json_proto returns [11:43:40]Send response to host [11:43:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76818,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [11:43:40]free response buf [11:43:40]execute_script done [11:43:40]execute_script returns [11:43:40]free content buf [11:43:40]Sock 7.Close socket [11:43:40]Sock 7.Thread stoped [11:43:41]OFD Sender: No OFD packet to send [11:43:46]OFD Sender: No OFD packet to send [11:43:51]OFD Sender: No OFD packet to send [11:43:56]OFD Sender: No OFD packet to send [11:44:01]OFD Sender: No OFD packet to send [11:44:06]OFD Sender: No OFD packet to send [11:44:11]OFD Sender: No OFD packet to send [11:44:16]OFD Sender: No OFD packet to send [11:44:21]OFD Sender: No OFD packet to send [11:44:26]OFD Sender: No OFD packet to send [11:44:31]OFD Sender: No OFD packet to send [11:44:36]OFD Sender: No OFD packet to send [11:44:41]OFD Sender: No OFD packet to send [11:44:46]OFD Sender: No OFD packet to send [11:44:51]OFD Sender: No OFD packet to send [11:44:56]OFD Sender: No OFD packet to send [11:45:01]OFD Sender: No OFD packet to send [11:45:06]OFD Sender: No OFD packet to send [11:45:11]OFD Sender: No OFD packet to send [11:45:16]OFD Sender: No OFD packet to send [11:45:21]OFD Sender: No OFD packet to send [11:45:26]OFD Sender: No OFD packet to send [11:45:31]OFD Sender: No OFD packet to send [11:45:36]OFD Sender: No OFD packet to send [11:45:41]OFD Sender: No OFD packet to send [11:45:46]OFD Sender: No OFD packet to send [11:45:51]OFD Sender: No OFD packet to send [11:45:52]accept exits with 9 [11:45:52]New connection [11:45:52]New thread 3067338084 created [11:45:52]Thread 3067481444 joined [11:45:52]Waiting for new connection... [11:45:52] Sock 9.Parse request [11:45:52]Sock 9.Check first char [11:45:52]Sock 9.First char is OK [11:45:52]request: POST /json_proto HTTP/1.0 [11:45:52]Method: POST [11:45:52]URL: /json_proto [11:45:52]Method is POST - this is cgi request [11:45:52]url: /json_proto [11:45:52]query_string will be loaded in cgi processing [11:45:52]execute_cgi json_proto POST (null) [11:45:52]execute_cgi path=json_proto method=POST [11:45:52]POST find Content-Length [11:45:52]Host: 172.17.62.5:8080 [11:45:52]Content-Length: 674 [11:45:52]Content-Type: application/json [11:45:52] [11:45:52]POST finish read [11:45:52]Found Content-Length = 674 [11:45:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:52]execute_script... [11:45: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)191354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:52]POST & json_proto [11:45:52]process_json_proto [11:45:52]json parsed OK: [11:45:52]protocol is kg_v1.0 [11:45:52]action value=close_receipt [11:45:52]process_action close_receipt [11:45:52]cmd_close_receipt [11:45:52]MH_GetDate [11:45:52]Write to MH i2c: F0 00 00 C3 25 D7 [11:45:52]Write i2c OK [11:45:52]MH_I2C_Read... [11:45:52]Read from MH i2c: F0 [11:45:52]MH_I2C_Read... [11:45:52]Read from MH i2c: F0 09 00 [11:45:52]MH_I2C_Read... [11:45:52]Read from MH i2c: F0 09 00 C3 25 00 74 FC 24 66 F4 E9 65 64 80 [11:45:52]GetLastDocTimeStamp 1713699672 [11:45:52]current date 1713699956 [11:45:52]FM_GetShiftState [11:45:52]SAM_PROTO_GetShiftState [11:45:52]wFMCommunicate request_size=4 [11:45:52]MH_SAM_APDU [11:45:52]CAPDU: 80 13 01 00 [11:45:52]Write to MH i2c: E2 08 00 C4 25 80 13 01 00 00 00 00 00 66 [11:45:52]Write i2c OK [11:45:52]MH_I2C_Read... [11:45:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:52]Read from MH i2c: E2 [11:45:52]MH_I2C_Read... [11:45:52]Read from MH i2c: E2 0E 00 [11:45:52]MH_I2C_Read... [11:45:52]Read from MH i2c: E2 0E 00 C4 25 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 AD [11:45:52]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [11:45:52]wFMCommunicate OK [11:45:52]SAM_PROTO_GetShiftState done [11:45:52]FM_GetShiftState done [11:45:52]opened in 1713658965 [11:45:52]opened+sec_in_day 1713745365 [11:45:52]quantity*price = 50009 [11:45:52]sum+1 = 50010 [11:45:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 75 21.04.2024 11:45 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76819 ФПД: 140349377956405 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T114556&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76819&fm=140349377956405&tin=02508201610067®Number=0000000000091573&sum=50000 [11:45:53]StoreToDocumentArchive [11:45:53]shift 372 fd 76819 [11:45:53]save to /storage/0372/doc_00076819 [11:45:53]save last doc name /storage/0372/doc_00076819 to /storage/kkm_last_doc_name [11:45:53]save OK [11:45:53]Clear old archive folders... [11:45:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:45:53]tlvbuf is 018F4660 [11:45:53]SAM_PROTO_ClearQueue [11:45:53]wFMCommunicate request_size=4 [11:45:53]MH_SAM_APDU [11:45:53]CAPDU: 80 09 00 00 [11:45:53]Write to MH i2c: E2 08 00 D1 25 80 09 00 00 00 00 00 00 68 [11:45:53]Write i2c OK [11:45:53]MH_I2C_Read... [11:45:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:45:53]Read from MH i2c: E2 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: E2 03 00 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: E2 03 00 D1 25 00 90 00 6A [11:45:53]RAPDU: 90 00 [11:45:53]wFMCommunicate OK [11:45:53]SAM_PROTO_ClearQueue done [11:45:53]KKMCreateOFDPacket [11:45:53]OFDProtocolAddRootSTLVToBuf [11:45:53]FM_MakeSignedData [11:45:53]FM_MakeSignedData [11:45:53]SAM_PROTO_SignData [11:45:53]wFMCommunicate request_size=4 [11:45:53]MH_SAM_APDU [11:45:53]CAPDU: 80 0D 01 02 [11:45:53]Write to MH i2c: E2 08 00 D2 25 80 0D 01 02 00 00 00 00 70 [11:45:53]Write i2c OK [11:45:53]MH_I2C_Read... [11:45:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:45:53]Read from MH i2c: E2 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: E2 03 00 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: E2 03 00 D2 25 00 90 00 6B [11:45:53]RAPDU: 90 00 [11:45:53]wFMCommunicate OK [11:45:53]wFMCommunicate request_size=255 [11:45:53]MH_SAM_APDU [11:45:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 4B 00 00 00 F4 03 04 00 74 FC 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 13 2C 01 00 35 04 06 00 7F A5 A2 D1 [11:45:53]Write to MH i2c: E2 02 01 D3 25 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 4B 00 00 00 F4 03 04 00 74 FC 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 13 2C 01 00 35 04 06 00 7F A5 A2 D1 00 00 AB [11:45:53]Write i2c OK [11:45:53]MH_I2C_Read... [11:45:54]Read from MH i2c: E2 [11:45:54]MH_I2C_Read... [11:45:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:54]Read from MH i2c: E2 03 00 [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: E2 03 00 D3 25 00 90 00 6C [11:45:54]RAPDU: 90 00 [11:45:54]wFMCommunicate OK [11:45:54]wFMCommunicate request_size=7 [11:45:54]MH_SAM_APDU [11:45:54]CAPDU: 80 0D 02 02 02 4A 35 [11:45:54]Write to MH i2c: E2 0A 00 D4 25 80 0D 02 02 02 00 4A 35 00 00 F6 [11:45:54]Write i2c OK [11:45:54]MH_I2C_Read... [11:45:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:54]Read from MH i2c: E2 [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: E2 03 00 [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: E2 03 00 D4 25 00 90 00 6D [11:45:54]RAPDU: 90 00 [11:45:54]wFMCommunicate OK [11:45:54]wFMCommunicate request_size=4 [11:45:54]MH_SAM_APDU [11:45:54]CAPDU: 80 0D 03 02 [11:45:54]Write to MH i2c: E2 08 00 D5 25 80 0D 03 02 00 00 00 00 75 [11:45:54]Write i2c OK [11:45:54]MH_I2C_Read... [11:45:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:45:54]Read from MH i2c: E2 [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: E2 0B 00 [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: E2 0B 00 D5 25 00 FE FA 60 BE 2C 8D 51 F0 90 00 86 [11:45:54]RAPDU: FE FA 60 BE 2C 8D 51 F0 90 00 [11:45:54]wFMCommunicate OK [11:45:54]SAM_PROTO_SignData done [11:45:54]FM_MakeSignedData done [11:45:54]CreateOFDProtocolMessage [11:45:54]wFMCommunicate request_size=4 [11:45:54]MH_SAM_APDU [11:45:54]CAPDU: 80 11 00 00 [11:45:54]Write to MH i2c: E2 08 00 D6 25 80 11 00 00 00 00 00 00 75 [11:45:54]Write i2c OK [11:45:54]MH_I2C_Read... [11:45:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:54]Read from MH i2c: E2 [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: E2 17 00 [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: E2 17 00 D6 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 C8 [11:45:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:45:54]wFMCommunicate OK [11:45:54]CreateOFDProtocolMessage done [11:45:54]OFDSenderStorePacket 76819 [11:45:54]StoreOFDPacket docnum=76819 [11:45:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 5B F7 04 01 16 78 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 4B 00 00 00 F4 03 04 00 74 FC 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 13 2C 01 00 35 04 06 00 7F A5 A2 D1 4A 35 FE FA 60 BE 2C 8D 51 F0 [11:45:54]CheckFolder [11:45:54]dirname=/storage/ofd_packets [11:45:54]CheckFolder done [11:45:54]ProducePacketName [11:45:54]name=ofd_packets/00076819 [11:45:54]NVStorageSaveData ofd_packets/00076819 [11:45:54]File name is /storage/ofd_packets/00076819 [11:45:54]Write 298 bytes [11:45:54]NVStorageSaveData done [11:45:54]OFDSenderStorePacket done [11:45:54]KKMCreateOFDPacket done [11:45:54]NVStorageSaveData kkm_last_timestamp [11:45:54]File name is /storage/kkm_last_timestamp [11:45:54]Write 4 bytes [11:45:54]NVStorageSaveData done [11:45:54]ExternCall_PrintAddStr [11:45:54]wPrintStart [11:45:54]Write to MH i2c: 01 00 00 D7 25 FC [11:45:54]Write i2c OK [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: 01 [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: 01 07 00 [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: 01 07 00 D7 25 00 00 00 00 00 FF 0F 11 [11:45:54]RasterBufferAndPrint [11:45:54]line Счет N : (1)191354 [11:45:54]line ИНН: 02508201610067 [11:45:54]line Контрольно-Кассовый Чек [11:45:54]line ПРОДАЖА [11:45:54]line ТРК (МРК, ГНК) : 51 [11:45:54]line Товар: 2710194210 [11:45:54]line ДТ-К-5 [11:45:54]line 6.860 * 72.90 [11:45:54]line = 500.09 [11:45:54]line НДС 12% НСП 1% [11:45:54]line > о реализуемом товаре [11:45:54]line ОКРУГЛЕНИЕ: -0.09 [11:45:54]line ИТОГО: 500.00 [11:45:54]line Внесено: 500.00 [11:45:54]line СДАЧА: 0.00 [11:45:54]line НСП 1% : 4.43 [11:45:54]line НДС 12% : 53.11 [11:45:54]line Наличными: 500.00 [11:45:54]line Безнал.: 0.00 [11:45:54]line Место: АЗС № 106 "Партнер Нефть" [11:45:54]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [11:45:54]line СНО: Общий режим [11:45:54]line Чек 75 21.04.2024 11:45 [11:45:54]line Смена: 372 ФФД: 1.0 [11:45:54]line ЗНМ: 0300000141 [11:45:54]line РНМ: 0000000000091573 [11:45:54]line Версия ККМ: 001 [11:45:54]line ФМ: 0000000000874652 [11:45:54]line ФД: 76819 [11:45:54]line ФПД: 140349377956405 [11:45:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T114556&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76819&fm=140349377956405&tin=02508201610067®Number=0000000000091573&sum=50000 [11:45:54]OFD Sender: Processing packet 76819 [packets to send 129, broken 128] [11:45:54]ProducePacketName [11:45:54]name=ofd_packets/00076819 [11:45:54]OFD Sender: To server: pG, [11:45:54]CommunicateWithHost lk.salyk.kg:30040 [11:45:54]ConnectInit lk.salyk.kg [11:45:54]written 0, free lines is 4095 [11:45:54]Connected sock=10 [11:45:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 5B F7 04 01 16 78 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 4B 00 00 00 F4 03 04 00 74 FC 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 13 2C 01 00 35 04 06 00 7F A5 A2 D1 4A 35 FE FA 60 BE 2C 8D 51 F0 [11:45:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 7B BD 47 00 1A 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 34 36 35 32 10 04 04 00 13 2C 01 00 F4 03 04 00 FA A3 24 66 B6 04 01 00 00 C0 D9 56 FD E4 00 55 9D [11:45:54]CommunicateWithHost err = 0 [11:45:54]CheckOFDResponse [11:45:54]1017 (14) - 77093643461234 [11:45:54]1041 (16) - 0000000000874652 [11:45:54]1040 (4) - 76819 [11:45:54]1012 (4) - 21.04.2024 05:28 [11:45:54]1206 (1) - 0 [11:45:54]OFD Sender: Remove packet 76819 [11:45:54]ProducePacketName [11:45:54]name=ofd_packets/00076819 [11:45:54]NVStorageDeleteData [11:45:55]Write to MH i2c: 01 00 00 01 26 27 [11:45:55]Write i2c OK [11:45:55]MH_I2C_Read... [11:45:55]Read from MH i2c: 01 [11:45:55]MH_I2C_Read... [11:45:55]Read from MH i2c: 01 07 00 [11:45:55]MH_I2C_Read... [11:45:55]Read from MH i2c: 01 07 00 01 26 00 00 00 00 00 E0 0C 1A [11:45:55]RasterBufferAndPrint [11:45:55]line [11:45:55]line [11:45:55]line [11:45:55]line [11:45:55]line [11:45:55]written 0, free lines is 3301 [11:45:55]MH_Cut [11:45:55]Write to MH i2c: D1 01 00 08 26 01 00 [11:45:55]Write i2c OK [11:45:55]MH_I2C_Read... [11:45:55]Read from MH i2c: D1 [11:45:55]MH_I2C_Read... [11:45:55]Read from MH i2c: D1 01 00 [11:45:55]MH_I2C_Read... [11:45:55]Read from MH i2c: D1 01 00 08 26 00 FF [11:45:55]Write to MH i2c: 01 00 00 09 26 2F [11:45:55]Write i2c OK [11:45:55]MH_I2C_Read... [11:45:55]OFD Sender: No OFD packet to send [11:45:55]*** Cut start [11:45:55]*** Partial cut [11:45:55]*** CUTSNS_PIN = 1 [11:45:55]*** CUTSNS_PIN = 0 [11:45:56]*** Brake cut motor [11:45:56]Read from MH i2c: 01 [11:45:56]MH_I2C_Read... [11:45:56]*** Stop cut motor [11:45:56]*** Cut end [11:45:56]Read from MH i2c: 01 07 00 [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: 01 07 00 09 26 00 00 00 00 00 FF 0F 44 [11:45:56]process_action close_receipt done [11:45:56]requested_data is exist [11:45:56]produce_requested_data [11:45:56]requested_item fm.sn is exist - process it [11:45:56]wFMCommunicate request_size=4 [11:45:56]MH_SAM_APDU [11:45:56]CAPDU: 80 11 00 00 [11:45:56]Write to MH i2c: E2 08 00 0A 26 80 11 00 00 00 00 00 00 AA [11:45:56]Write i2c OK [11:45:56]MH_I2C_Read... [11:45:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:56]Read from MH i2c: E2 [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: E2 17 00 [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: E2 17 00 0A 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 FD [11:45:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:45:56]wFMCommunicate OK [11:45:56]requested_item fd.num is exist - process it [11:45:56]SAM_PROTO_GetFieldsCounters [11:45:56]wFMCommunicate request_size=4 [11:45:56]MH_SAM_APDU [11:45:56]CAPDU: 80 13 00 00 [11:45:56]Write to MH i2c: E2 08 00 0B 26 80 13 00 00 00 00 00 00 AD [11:45:56]Write i2c OK [11:45:56]MH_I2C_Read... [11:45:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:45:56]Read from MH i2c: E2 [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: E2 62 00 [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: E2 62 00 0B 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 13 2C 01 00 0E 04 04 00 74 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 64 [11:45: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 13 2C 01 00 0E 04 04 00 74 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:45:56]wFMCommunicate OK [11:45:56]SAM_PROTO_GetFieldsCounters done [11:45:56]requested_item shift.num is exist - process it [11:45:56]requested_item shift.opened is exist - process it [11:45:56]req_shift_opened [11:45:56]FM_GetShiftState [11:45:56]SAM_PROTO_GetShiftState [11:45:56]wFMCommunicate request_size=4 [11:45:56]MH_SAM_APDU [11:45:56]CAPDU: 80 13 01 00 [11:45:56]Write to MH i2c: E2 08 00 0C 26 80 13 01 00 00 00 00 00 AF [11:45:56]Write i2c OK [11:45:56]MH_I2C_Read... [11:45:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:56]Read from MH i2c: E2 [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: E2 0E 00 [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: E2 0E 00 0C 26 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 F6 [11:45:56]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [11:45:56]wFMCommunicate OK [11:45:56]SAM_PROTO_GetShiftState done [11:45:56]FM_GetShiftState done [11:45:56]req_shift_opened done [11:45:56]requested_item shift.open_date is exist - process it [11:45:56]req_shift_open_date [11:45:56]req_shift_open_date done [11:45:56]produce_requested_data done [11:45:56]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76819,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [11:45:56]process_action_free close_receipt [11:45:56]json_value_free [11:45:56]json_value_free done [11:45:56]process_json_proto returns [11:45:56]Send response to host [11:45:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76819,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [11:45:56]free response buf [11:45:56]execute_script done [11:45:56]execute_script returns [11:45:56]free content buf [11:45:56]Sock 9.Close socket [11:45:56]Sock 9.Thread stoped [11:46:00]OFD Sender: No OFD packet to send [11:46:05]OFD Sender: No OFD packet to send [11:46:10]OFD Sender: No OFD packet to send [11:46:15]OFD Sender: No OFD packet to send [11:46:20]OFD Sender: No OFD packet to send [11:46:25]OFD Sender: No OFD packet to send [11:46:30]OFD Sender: No OFD packet to send [11:46:35]OFD Sender: No OFD packet to send [11:46:40]OFD Sender: No OFD packet to send [11:46:45]OFD Sender: No OFD packet to send [11:46:50]OFD Sender: No OFD packet to send [11:46:55]OFD Sender: No OFD packet to send [11:47:00]OFD Sender: No OFD packet to send [11:47:05]OFD Sender: No OFD packet to send [11:47:10]OFD Sender: No OFD packet to send [11:47:15]OFD Sender: No OFD packet to send [11:47:20]OFD Sender: No OFD packet to send [11:47:25]OFD Sender: No OFD packet to send [11:47:30]OFD Sender: No OFD packet to send [11:47:35]OFD Sender: No OFD packet to send [11:47:40]OFD Sender: No OFD packet to send [11:47:45]OFD Sender: No OFD packet to send [11:47:50]OFD Sender: No OFD packet to send [11:47:55]OFD Sender: No OFD packet to send [11:48:00]OFD Sender: No OFD packet to send [11:48:05]OFD Sender: No OFD packet to send [11:48:10]OFD Sender: No OFD packet to send [11:48:15]OFD Sender: No OFD packet to send [11:48:20]OFD Sender: No OFD packet to send [11:48:25]OFD Sender: No OFD packet to send [11:48:30]OFD Sender: No OFD packet to send [11:48:35]OFD Sender: No OFD packet to send [11:48:40]OFD Sender: No OFD packet to send [11:48:45]OFD Sender: No OFD packet to send [11:48:50]OFD Sender: No OFD packet to send [11:48:55]OFD Sender: No OFD packet to send [11:49:00]OFD Sender: No OFD packet to send [11:49:05]OFD Sender: No OFD packet to send [11:49:10]OFD Sender: No OFD packet to send [11:49:15]OFD Sender: No OFD packet to send [11:49:20]OFD Sender: No OFD packet to send [11:49:25]OFD Sender: No OFD packet to send [11:49:30]OFD Sender: No OFD packet to send [11:49:35]OFD Sender: No OFD packet to send [11:49:40]OFD Sender: No OFD packet to send [11:49: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:20]OFD Sender: No OFD packet to send [11:50:25]OFD Sender: No OFD packet to send [11:50:30]OFD Sender: No OFD packet to send [11:50:35]OFD Sender: No OFD packet to send [11:50:40]OFD Sender: No OFD packet to send [11:50:45]OFD Sender: No OFD packet to send [11:50:50]OFD Sender: No OFD packet to send [11:50:55]OFD Sender: No OFD packet to send [11:51:00]OFD Sender: No OFD packet to send [11:51:05]OFD Sender: No OFD packet to send [11:51:10]OFD Sender: No OFD packet to send [11:51:15]OFD Sender: No OFD packet to send [11:51:20]OFD Sender: No OFD packet to send [11:51:25]OFD Sender: No OFD packet to send [11:51:30]OFD Sender: No OFD packet to send [11:51:35]OFD Sender: No OFD packet to send [11:51:40]OFD Sender: No OFD packet to send [11:51:45]OFD Sender: No OFD packet to send [11:51:50]OFD Sender: No OFD packet to send [11:51:55]OFD Sender: No OFD packet to send [11:52:00]OFD Sender: No OFD packet to send [11:52:05]OFD Sender: No OFD packet to send [11:52:10]OFD Sender: No OFD packet to send [11:52:15]OFD Sender: No OFD packet to send [11:52:20]OFD Sender: No OFD packet to send [11:52:25]OFD Sender: No OFD packet to send [11:52:30]OFD Sender: No OFD packet to send [11:52:35]OFD Sender: No OFD packet to send [11:52:40]OFD Sender: No OFD packet to send [11:52:45]OFD Sender: No OFD packet to send [11:52:50]OFD Sender: No OFD packet to send [11:52:55]OFD Sender: No OFD packet to send [11:53:00]OFD Sender: No OFD packet to send [11:53:05]OFD Sender: No OFD packet to send [11:53:10]OFD Sender: No OFD packet to send [11:53:15]OFD Sender: No OFD packet to send [11:53:20]OFD Sender: No OFD packet to send [11:53:26]OFD Sender: No OFD packet to send [11:53:31]OFD Sender: No OFD packet to send [11:53:36]OFD Sender: No OFD packet to send [11:53:41]OFD Sender: No OFD packet to send [11:53:46]OFD Sender: No OFD packet to send [11:53:51]OFD Sender: No OFD packet to send [11:53:56]OFD Sender: No OFD packet to send [11:54:01]OFD Sender: No OFD packet to send [11:54:06]OFD Sender: No OFD packet to send [11:54:11]OFD Sender: No OFD packet to send [11:54:16]OFD Sender: No OFD packet to send [11:54:21]OFD Sender: No OFD packet to send [11:54:26]OFD Sender: No OFD packet to send [11:54:31]OFD Sender: No OFD packet to send [11:54:36]OFD Sender: No OFD packet to send [11:54:41]OFD Sender: No OFD packet to send [11:54:42]accept exits with 7 [11:54:42]New connection [11:54:42]New thread 3067481444 created [11:54:42]Thread 3067338084 joined [11:54:42]Waiting for new connection... [11:54:42] Sock 7.Parse request [11:54:42]Sock 7.Check first char [11:54:42]Sock 7.First char is OK [11:54:42]request: POST /json_proto HTTP/1.0 [11:54:42]Method: POST [11:54:42]URL: /json_proto [11:54:42]Method is POST - this is cgi request [11:54:42]url: /json_proto [11:54:42]query_string will be loaded in cgi processing [11:54:42]execute_cgi json_proto POST (null) [11:54:42]execute_cgi path=json_proto method=POST [11:54:42]POST find Content-Length [11:54:42]Host: 172.17.62.5:8080 [11:54:42]Content-Length: 990 [11:54:42]Content-Type: application/json [11:54:42] [11:54:42]POST finish read [11:54:42]Found Content-Length = 990 [11:54:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 52.700, "sum" : 1670.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 52.70 \u0441\u043E\u043C", "deposit" : 3000.00, "total" : 1670.00, "payments": [ { "type": 0, "sum" : 1670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:42]execute_script... [11:54: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)191355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 52.700, "sum" : 1670.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 52.70 \u0441\u043E\u043C", "deposit" : 3000.00, "total" : 1670.00, "payments": [ { "type": 0, "sum" : 1670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:42]POST & json_proto [11:54:42]process_json_proto [11:54:42]json parsed OK: [11:54:42]protocol is kg_v1.0 [11:54:42]action value=close_receipt [11:54:42]process_action close_receipt [11:54:42]cmd_close_receipt [11:54:42]MH_GetDate [11:54:42]Write to MH i2c: F0 00 00 0D 26 22 [11:54:42]Write i2c OK [11:54:42]MH_I2C_Read... [11:54:42]Read from MH i2c: F0 [11:54:42]MH_I2C_Read... [11:54:42]Read from MH i2c: F0 09 00 [11:54:42]MH_I2C_Read... [11:54:42]Read from MH i2c: F0 09 00 0D 26 00 86 FE 24 66 F4 E9 65 64 DF [11:54:42]GetLastDocTimeStamp 1713699956 [11:54:42]current date 1713700486 [11:54:42]FM_GetShiftState [11:54:42]SAM_PROTO_GetShiftState [11:54:42]wFMCommunicate request_size=4 [11:54:42]MH_SAM_APDU [11:54:42]CAPDU: 80 13 01 00 [11:54:42]Write to MH i2c: E2 08 00 0E 26 80 13 01 00 00 00 00 00 B1 [11:54:42]Write i2c OK [11:54:42]MH_I2C_Read... [11:54:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:42]Read from MH i2c: E2 [11:54:42]MH_I2C_Read... [11:54:42]Read from MH i2c: E2 0E 00 [11:54:42]MH_I2C_Read... [11:54:42]Read from MH i2c: E2 0E 00 0E 26 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 F8 [11:54:42]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [11:54:42]wFMCommunicate OK [11:54:42]SAM_PROTO_GetShiftState done [11:54:42]FM_GetShiftState done [11:54:42]opened in 1713658965 [11:54:42]opened+sec_in_day 1713745365 [11:54:42]quantity*price = 167059 [11:54:42]sum+1 = 167060 [11:54:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 1670.00 Внесено: 3000.00 СДАЧА: 1330.00 НСП 1% : 14.78 НДС 12% : 177.41 Наличными: 1670.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 76 21.04.2024 11:54 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 52.70 сом ФМ: 0000000000874652 ФД: 76820 ФПД: 176221979514992 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T115446&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76820&fm=176221979514992&tin=02508201610067®Number=0000000000091573&sum=167000 [11:54:43]StoreToDocumentArchive [11:54:43]shift 372 fd 76820 [11:54:43]save to /storage/0372/doc_00076820 [11:54:43]save last doc name /storage/0372/doc_00076820 to /storage/kkm_last_doc_name [11:54:43]save OK [11:54:43]Clear old archive folders... [11:54:43]ProcessDocumentItem done err = 0, tmpTLVsize=250 [11:54:43]tlvbuf is B6F295C0 [11:54:43]SAM_PROTO_ClearQueue [11:54:43]wFMCommunicate request_size=4 [11:54:43]MH_SAM_APDU [11:54:43]CAPDU: 80 09 00 00 [11:54:43]Write to MH i2c: E2 08 00 1B 26 80 09 00 00 00 00 00 00 B3 [11:54:43]Write i2c OK [11:54:43]MH_I2C_Read... [11:54:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:54:43]Read from MH i2c: E2 [11:54:43]MH_I2C_Read... [11:54:43]Read from MH i2c: E2 03 00 [11:54:43]MH_I2C_Read... [11:54:43]Read from MH i2c: E2 03 00 1B 26 00 90 00 B5 [11:54:43]RAPDU: 90 00 [11:54:43]wFMCommunicate OK [11:54:43]SAM_PROTO_ClearQueue done [11:54:43]KKMCreateOFDPacket [11:54:43]OFDProtocolAddRootSTLVToBuf [11:54:43]FM_MakeSignedData [11:54:43]FM_MakeSignedData [11:54:43]SAM_PROTO_SignData [11:54:43]wFMCommunicate request_size=4 [11:54:43]MH_SAM_APDU [11:54:43]CAPDU: 80 0D 01 02 [11:54:43]Write to MH i2c: E2 08 00 1C 26 80 0D 01 02 00 00 00 00 BB [11:54:43]Write i2c OK [11:54:43]MH_I2C_Read... [11:54:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:54:43]Read from MH i2c: E2 [11:54:43]MH_I2C_Read... [11:54:43]Read from MH i2c: E2 03 00 [11:54:43]MH_I2C_Read... [11:54:43]Read from MH i2c: E2 03 00 1C 26 00 90 00 B6 [11:54:43]RAPDU: 90 00 [11:54:43]wFMCommunicate OK [11:54:43]wFMCommunicate request_size=255 [11:54:43]MH_SAM_APDU [11:54:43]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 DC CD 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 93 8C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 8C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 45 00 00 00 00 07 04 06 00 58 8C 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 86 FE 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 14 2C 01 00 35 04 06 00 A0 45 [11:54:43]Write to MH i2c: E2 02 01 1D 26 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 DC CD 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 93 8C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 8C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 45 00 00 00 00 07 04 06 00 58 8C 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 86 FE 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 14 2C 01 00 35 04 06 00 A0 45 00 00 C2 [11:54:43]Write i2c OK [11:54:43]MH_I2C_Read... [11:54:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:43]Read from MH i2c: E2 [11:54:43]MH_I2C_Read... [11:54:43]Read from MH i2c: E2 03 00 [11:54:43]MH_I2C_Read... [11:54:43]Read from MH i2c: E2 03 00 1D 26 00 90 00 B7 [11:54:43]RAPDU: 90 00 [11:54:43]wFMCommunicate OK [11:54:43]wFMCommunicate request_size=9 [11:54:43]MH_SAM_APDU [11:54:43]CAPDU: 80 0D 02 02 04 E0 7D 98 70 [11:54:43]Write to MH i2c: E2 0C 00 1E 26 80 0D 02 02 04 00 E0 7D 98 70 00 00 2B [11:54:43]Write i2c OK [11:54:43]MH_I2C_Read... [11:54:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:43]Read from MH i2c: E2 [11:54:43]MH_I2C_Read... [11:54:43]Read from MH i2c: E2 03 00 [11:54:43]MH_I2C_Read... [11:54:43]Read from MH i2c: E2 03 00 1E 26 00 90 00 B8 [11:54:43]RAPDU: 90 00 [11:54:43]wFMCommunicate OK [11:54:43]wFMCommunicate request_size=4 [11:54:43]MH_SAM_APDU [11:54:43]CAPDU: 80 0D 03 02 [11:54:43]Write to MH i2c: E2 08 00 1F 26 80 0D 03 02 00 00 00 00 C0 [11:54:43]Write i2c OK [11:54:43]MH_I2C_Read... [11:54:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:54:43]Read from MH i2c: E2 [11:54:43]MH_I2C_Read... [11:54:43]Read from MH i2c: E2 0B 00 [11:54:43]MH_I2C_Read... [11:54:43]Read from MH i2c: E2 0B 00 1F 26 00 63 CC A2 84 37 7A 97 BC 90 00 1A [11:54:43]RAPDU: 63 CC A2 84 37 7A 97 BC 90 00 [11:54:43]wFMCommunicate OK [11:54:43]SAM_PROTO_SignData done [11:54:43]FM_MakeSignedData done [11:54:43]CreateOFDProtocolMessage [11:54:43]wFMCommunicate request_size=4 [11:54:43]MH_SAM_APDU [11:54:43]CAPDU: 80 11 00 00 [11:54:43]Write to MH i2c: E2 08 00 20 26 80 11 00 00 00 00 00 00 C0 [11:54:43]Write i2c OK [11:54:43]MH_I2C_Read... [11:54:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:43]Read from MH i2c: E2 [11:54:43]MH_I2C_Read... [11:54:43]Read from MH i2c: E2 17 00 [11:54:43]MH_I2C_Read... [11:54:43]Read from MH i2c: E2 17 00 20 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 13 [11:54:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:54:43]wFMCommunicate OK [11:54:43]CreateOFDProtocolMessage done [11:54:43]OFDSenderStorePacket 76820 [11:54:43]StoreOFDPacket docnum=76820 [11:54:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 DA 4B 06 01 4D 06 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 DC CD 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 93 8C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 8C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 45 00 00 00 00 07 04 06 00 58 8C 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 86 FE 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 14 2C 01 00 35 04 06 00 A0 45 E0 7D 98 70 63 CC A2 84 37 7A 97 BC [11:54:43]CheckFolder [11:54:43]dirname=/storage/ofd_packets [11:54:43]CheckFolder done [11:54:43]ProducePacketName [11:54:43]name=ofd_packets/00076820 [11:54:43]NVStorageSaveData ofd_packets/00076820 [11:54:43]File name is /storage/ofd_packets/00076820 [11:54:43]Write 300 bytes [11:54:43]NVStorageSaveData done [11:54:43]OFDSenderStorePacket done [11:54:43]KKMCreateOFDPacket done [11:54:43]NVStorageSaveData kkm_last_timestamp [11:54:43]File name is /storage/kkm_last_timestamp [11:54:43]Write 4 bytes [11:54:43]NVStorageSaveData done [11:54:43]ExternCall_PrintAddStr [11:54:43]wPrintStart [11:54:43]Write to MH i2c: 01 00 00 21 26 47 [11:54:43]Write i2c OK [11:54:43]MH_I2C_Read... [11:54:43]Read from MH i2c: 01 [11:54:43]MH_I2C_Read... [11:54:43]Read from MH i2c: 01 07 00 [11:54:43]MH_I2C_Read... [11:54:43]Read from MH i2c: 01 07 00 21 26 00 00 00 00 00 FF 0F 5C [11:54:43]RasterBufferAndPrint [11:54:43]line Счет N : (1)191355 [11:54:43]line ИНН: 02508201610067 [11:54:43]line Контрольно-Кассовый Чек [11:54:43]line ПРОДАЖА [11:54:43]line ТРК (МРК, ГНК) : 71 [11:54:43]line Товар: 2711190000 [11:54:43]line ГАЗ-К-5 [11:54:43]line 52.700 * 31.70 [11:54:43]line = 1670.59 [11:54:43]line НДС 12% НСП 1% [11:54:43]line > о реализуемом товаре [11:54:43]line ОКРУГЛЕНИЕ: -0.59 [11:54:43]line ИТОГО: 1670.00 [11:54:43]line Внесено: 3000.00 [11:54:43]line СДАЧА: 1330.00 [11:54:43]line НСП 1% : 14.78 [11:54:43]line НДС 12% : 177.41 [11:54:43]line Наличными: 1670.00 [11:54:43]line Безнал.: 0.00 [11:54:43]line Место: АЗС № 106 "Партнер Нефть" [11:54:43]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [11:54:43]line СНО: Общий режим [11:54:43]line Чек 76 21.04.2024 11:54 [11:54:43]line Смена: 372 ФФД: 1.0 [11:54:43]line ЗНМ: 0300000141 [11:54:43]line РНМ: 0000000000091573 [11:54:43]line Версия ККМ: 001 [11:54:43]line [11:54:43]line Дисконтная программа [11:54:43]line СУГ [11:54:43]line номер 106 [11:54:43]line сэкономлено 52.70 сом [11:54:43]line ФМ: 0000000000874652 [11:54:43]line ФД: 76820 [11:54:43]line ФПД: 176221979514992 [11:54:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T115446&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76820&fm=176221979514992&tin=02508201610067®Number=0000000000091573&sum=167000 [11:54:44]OFD Sender: Processing packet 76820 [packets to send 129, broken 128] [11:54:44]ProducePacketName [11:54:44]name=ofd_packets/00076820 [11:54:44]OFD Sender: To server: pG, [11:54:44]CommunicateWithHost lk.salyk.kg:30040 [11:54:44]ConnectInit lk.salyk.kg [11:54:44]written 0, free lines is 4095 [11:54:44]Write to MH i2c: 01 00 00 50 26 76 [11:54:44]Write i2c OK [11:54:44]MH_I2C_Read... [11:54:44]Read from MH i2c: 01 [11:54:44]MH_I2C_Read... [11:54:44]Read from MH i2c: 01 07 00 [11:54:44]MH_I2C_Read... [11:54:44]Read from MH i2c: 01 07 00 50 26 00 00 00 00 00 8D 0C 16 [11:54:44]RasterBufferAndPrint [11:54:44]line [11:54:44]line [11:54:44]line [11:54:44]line [11:54:44]line [11:54:44]written 0, free lines is 3220 [11:54:44]MH_Cut [11:54:44]Write to MH i2c: D1 01 00 57 26 01 4F [11:54:44]Write i2c OK [11:54:44]MH_I2C_Read... [11:54:44]Read from MH i2c: D1 [11:54:44]MH_I2C_Read... [11:54:44]Read from MH i2c: D1 01 00 [11:54:44]MH_I2C_Read... [11:54:44]Read from MH i2c: D1 01 00 57 26 00 4E [11:54:44]Write to MH i2c: 01 00 00 58 26 7E [11:54:44]Write i2c OK [11:54:44]MH_I2C_Read... [11:54:45]*** Cut start [11:54:45]*** Partial cut [11:54:45]*** CUTSNS_PIN = 1 [11:54:45]*** CUTSNS_PIN = 0 [11:54:45]*** Brake cut motor [11:54:46]Read from MH i2c: 01 [11:54:46]MH_I2C_Read... [11:54:46]*** Stop cut motor [11:54:46]*** Cut end [11:54:46]Read from MH i2c: 01 07 00 [11:54:46]MH_I2C_Read... [11:54:46]Read from MH i2c: 01 07 00 58 26 00 00 00 00 00 FF 0F 93 [11:54:46]process_action close_receipt done [11:54:46]requested_data is exist [11:54:46]produce_requested_data [11:54:46]requested_item fm.sn is exist - process it [11:54:46]wFMCommunicate request_size=4 [11:54:46]MH_SAM_APDU [11:54:46]CAPDU: 80 11 00 00 [11:54:46]Write to MH i2c: E2 08 00 59 26 80 11 00 00 00 00 00 00 F9 [11:54:46]Write i2c OK [11:54:46]MH_I2C_Read... [11:54:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:46]Read from MH i2c: E2 [11:54:46]MH_I2C_Read... [11:54:46]Read from MH i2c: E2 17 00 [11:54:46]MH_I2C_Read... [11:54:46]Read from MH i2c: E2 17 00 59 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 4C [11:54:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:54:46]wFMCommunicate OK [11:54:46]requested_item fd.num is exist - process it [11:54:46]SAM_PROTO_GetFieldsCounters [11:54:46]wFMCommunicate request_size=4 [11:54:46]MH_SAM_APDU [11:54:46]CAPDU: 80 13 00 00 [11:54:46]Write to MH i2c: E2 08 00 5A 26 80 13 00 00 00 00 00 00 FC [11:54:46]Write i2c OK [11:54:46]MH_I2C_Read... [11:54:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:46]Read from MH i2c: E2 [11:54:46]MH_I2C_Read... [11:54:46]Read from MH i2c: E2 62 00 [11:54:46]MH_I2C_Read... [11:54:46]Read from MH i2c: E2 62 00 5A 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 14 2C 01 00 0E 04 04 00 74 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 B7 [11:54: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 14 2C 01 00 0E 04 04 00 74 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:54:46]wFMCommunicate OK [11:54:46]SAM_PROTO_GetFieldsCounters done [11:54:46]requested_item shift.num is exist - process it [11:54:46]requested_item shift.opened is exist - process it [11:54:46]req_shift_opened [11:54:46]FM_GetShiftState [11:54:46]SAM_PROTO_GetShiftState [11:54:46]wFMCommunicate request_size=4 [11:54:46]MH_SAM_APDU [11:54:46]CAPDU: 80 13 01 00 [11:54:46]Write to MH i2c: E2 08 00 5B 26 80 13 01 00 00 00 00 00 FE [11:54:46]Write i2c OK [11:54:46]MH_I2C_Read... [11:54:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:46]Read from MH i2c: E2 [11:54:46]MH_I2C_Read... [11:54:46]Read from MH i2c: E2 0E 00 [11:54:46]MH_I2C_Read... [11:54:46]Read from MH i2c: E2 0E 00 5B 26 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 45 [11:54:46]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [11:54:46]wFMCommunicate OK [11:54:46]SAM_PROTO_GetShiftState done [11:54:46]FM_GetShiftState done [11:54:46]req_shift_opened done [11:54:46]requested_item shift.open_date is exist - process it [11:54:46]req_shift_open_date [11:54:46]req_shift_open_date done [11:54:46]produce_requested_data done [11:54:46]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76820,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [11:54:46]process_action_free close_receipt [11:54:46]json_value_free [11:54:46]json_value_free done [11:54:46]process_json_proto returns [11:54:46]Send response to host [11:54:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76820,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [11:54:46]free response buf [11:54:46]execute_script done [11:54:46]execute_script returns [11:54:46]free content buf [11:54:46]Sock 7.Close socket [11:54:46]Sock 7.Thread stoped [11:54:47]Connected sock=9 [11:54:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 DA 4B 06 01 4D 06 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 DC CD 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 93 8C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 8C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 45 00 00 00 00 07 04 06 00 58 8C 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 86 FE 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 14 2C 01 00 35 04 06 00 A0 45 E0 7D 98 70 63 CC A2 84 37 7A 97 BC [11:54:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 EA B3 47 00 1B C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 14 2C 01 00 F4 03 04 00 0F A6 24 66 B6 04 01 00 00 52 14 58 4C 1E 77 7C 83 [11:54:48]CommunicateWithHost err = 0 [11:54:48]CheckOFDResponse [11:54:48]1017 (14) - 77093643461234 [11:54:48]1041 (16) - 0000000000874652 [11:54:48]1040 (4) - 76820 [11:54:48]1012 (4) - 21.04.2024 05:37 [11:54:48]1206 (1) - 0 [11:54:48]OFD Sender: Remove packet 76820 [11:54:48]ProducePacketName [11:54:48]name=ofd_packets/00076820 [11:54:48]NVStorageDeleteData [11:54:49]OFD Sender: No OFD packet to send [11:54:54]OFD Sender: No OFD packet to send [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:14]OFD Sender: No OFD packet to send [11:55:19]OFD Sender: No OFD packet to send [11:55:24]OFD Sender: No OFD packet to send [11:55:29]OFD Sender: No OFD packet to send [11:55:34]OFD Sender: No OFD packet to send [11:55:39]OFD Sender: No OFD packet to send [11:55:44]OFD Sender: No OFD packet to send [11:55:49]OFD Sender: No OFD packet to send [11:55:54]OFD Sender: No OFD packet to send [11:55:59]OFD Sender: No OFD packet to send [11:56:04]OFD Sender: No OFD packet to send [11:56:09]OFD Sender: No OFD packet to send [11:56:14]OFD Sender: No OFD packet to send [11:56:19]OFD Sender: No OFD packet to send [11:56:24]OFD Sender: No OFD packet to send [11:56:29]OFD Sender: No OFD packet to send [11:56:34]OFD Sender: No OFD packet to send [11:56:39]OFD Sender: No OFD packet to send [11:56:44]OFD Sender: No OFD packet to send [11:56:49]OFD Sender: No OFD packet to send [11:56:54]OFD Sender: No OFD packet to send [11:56:59]OFD Sender: No OFD packet to send [11:57:04]OFD Sender: No OFD packet to send [11:57:09]OFD Sender: No OFD packet to send [11:57:14]OFD Sender: No OFD packet to send [11:57:19]OFD Sender: No OFD packet to send [11:57:24]OFD Sender: No OFD packet to send [11:57:29]OFD Sender: No OFD packet to send [11:57:34]OFD Sender: No OFD packet to send [11:57:39]OFD Sender: No OFD packet to send [11:57:44]OFD Sender: No OFD packet to send [11:57:49]OFD Sender: No OFD packet to send [11:57:54]OFD Sender: No OFD packet to send [11:57:59]OFD Sender: No OFD packet to send [11:58:02]accept exits with 10 [11:58:02]New connection [11:58:02]New thread 3067338084 created [11:58:02]Thread 3067481444 joined [11:58:02]Waiting for new connection... [11:58:02] Sock 10.Parse request [11:58:02]Sock 10.Check first char [11:58:02]Sock 10.First char is OK [11:58:02]request: POST /json_proto HTTP/1.0 [11:58:02]Method: POST [11:58:02]URL: /json_proto [11:58:02]Method is POST - this is cgi request [11:58:02]url: /json_proto [11:58:02]query_string will be loaded in cgi processing [11:58:02]execute_cgi json_proto POST (null) [11:58:02]execute_cgi path=json_proto method=POST [11:58:02]POST find Content-Length [11:58:02]Host: 172.17.62.5:8080 [11:58:02]Content-Length: 938 [11:58:02]Content-Type: application/json [11:58:02] [11:58:02]POST finish read [11:58:02]Found Content-Length = 938 [11:58:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 40.000, "sum" : 2876.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 40.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 2876.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:02]execute_script... [11:58:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 40.000, "sum" : 2876.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 40.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 2876.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:02]POST & json_proto [11:58:02]process_json_proto [11:58:02]json parsed OK: [11:58:02]protocol is kg_v1.0 [11:58:02]action value=close_receipt [11:58:02]process_action close_receipt [11:58:02]cmd_close_receipt [11:58:02]MH_GetDate [11:58:02]Write to MH i2c: F0 00 00 5C 26 71 [11:58:02]Write i2c OK [11:58:02]MH_I2C_Read... [11:58:02]Read from MH i2c: F0 [11:58:02]MH_I2C_Read... [11:58:02]Read from MH i2c: F0 09 00 [11:58:02]MH_I2C_Read... [11:58:02]Read from MH i2c: F0 09 00 5C 26 00 4E FF 24 66 F4 E9 65 64 F7 [11:58:02]GetLastDocTimeStamp 1713700486 [11:58:02]current date 1713700686 [11:58:02]FM_GetShiftState [11:58:02]SAM_PROTO_GetShiftState [11:58:02]wFMCommunicate request_size=4 [11:58:02]MH_SAM_APDU [11:58:02]CAPDU: 80 13 01 00 [11:58:02]Write to MH i2c: E2 08 00 5D 26 80 13 01 00 00 00 00 00 00 [11:58:02]Write i2c OK [11:58:02]MH_I2C_Read... [11:58:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:02]Read from MH i2c: E2 [11:58:02]MH_I2C_Read... [11:58:02]Read from MH i2c: E2 0E 00 [11:58:02]MH_I2C_Read... [11:58:02]Read from MH i2c: E2 0E 00 5D 26 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 47 [11:58:02]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [11:58:02]wFMCommunicate OK [11:58:02]SAM_PROTO_GetShiftState done [11:58:02]FM_GetShiftState done [11:58:02]opened in 1713658965 [11:58:02]opened+sec_in_day 1713745365 [11:58:02]quantity*price = 287600 [11:58:02]sum+1 = 287601 [11:58:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2876.00 НСП 1% : 25.45 НДС 12% : 305.42 Наличными: 2876.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 77 21.04.2024 11:58 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 40.00 сом ФМ: 0000000000874652 ФД: 76821 ФПД: 42650322089783 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T115806&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76821&fm=42650322089783&tin=02508201610067®Number=0000000000091573&sum=287600 [11:58:03]StoreToDocumentArchive [11:58:03]shift 372 fd 76821 [11:58:03]save to /storage/0372/doc_00076821 [11:58:03]save last doc name /storage/0372/doc_00076821 to /storage/kkm_last_doc_name [11:58:03]save OK [11:58:03]Clear old archive folders... [11:58:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:58:03]tlvbuf is 018E3AA0 [11:58:03]SAM_PROTO_ClearQueue [11:58:03]wFMCommunicate request_size=4 [11:58:03]MH_SAM_APDU [11:58:03]CAPDU: 80 09 00 00 [11:58:03]Write to MH i2c: E2 08 00 6A 26 80 09 00 00 00 00 00 00 02 [11:58:03]Write i2c OK [11:58:03]MH_I2C_Read... [11:58:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:58:03]Read from MH i2c: E2 [11:58:03]MH_I2C_Read... [11:58:03]Read from MH i2c: E2 03 00 [11:58:03]MH_I2C_Read... [11:58:03]Read from MH i2c: E2 03 00 6A 26 00 90 00 04 [11:58:03]RAPDU: 90 00 [11:58:03]wFMCommunicate OK [11:58:03]SAM_PROTO_ClearQueue done [11:58:03]KKMCreateOFDPacket [11:58:03]OFDProtocolAddRootSTLVToBuf [11:58:03]FM_MakeSignedData [11:58:03]FM_MakeSignedData [11:58:03]SAM_PROTO_SignData [11:58:03]wFMCommunicate request_size=4 [11:58:03]MH_SAM_APDU [11:58:03]CAPDU: 80 0D 01 02 [11:58:03]Write to MH i2c: E2 08 00 6B 26 80 0D 01 02 00 00 00 00 0A [11:58:03]Write i2c OK [11:58:03]MH_I2C_Read... [11:58:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:58:03]Read from MH i2c: E2 [11:58:03]MH_I2C_Read... [11:58:03]Read from MH i2c: E2 03 00 [11:58:03]MH_I2C_Read... [11:58:03]Read from MH i2c: E2 03 00 6B 26 00 90 00 05 [11:58:03]RAPDU: 90 00 [11:58:03]wFMCommunicate OK [11:58:03]wFMCommunicate request_size=255 [11:58:03]MH_SAM_APDU [11:58:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 63 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 63 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 77 00 00 00 00 07 04 06 00 70 63 04 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 4E FF 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 15 2C 01 00 35 04 06 00 26 CA 4D 4C [11:58:03]Write to MH i2c: E2 02 01 6C 26 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 63 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 63 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 77 00 00 00 00 07 04 06 00 70 63 04 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 4E FF 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 15 2C 01 00 35 04 06 00 26 CA 4D 4C 00 00 1D [11:58:03]Write i2c OK [11:58:03]MH_I2C_Read... [11:58:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:03]Read from MH i2c: E2 [11:58:03]MH_I2C_Read... [11:58:03]Read from MH i2c: E2 03 00 [11:58:03]MH_I2C_Read... [11:58:03]Read from MH i2c: E2 03 00 6C 26 00 90 00 06 [11:58:03]RAPDU: 90 00 [11:58:03]wFMCommunicate OK [11:58:03]wFMCommunicate request_size=7 [11:58:03]MH_SAM_APDU [11:58:03]CAPDU: 80 0D 02 02 02 37 37 [11:58:03]Write to MH i2c: E2 0A 00 6D 26 80 0D 02 02 02 00 37 37 00 00 7F [11:58:03]Write i2c OK [11:58:03]MH_I2C_Read... [11:58:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:03]Read from MH i2c: E2 [11:58:03]MH_I2C_Read... [11:58:03]Read from MH i2c: E2 03 00 [11:58:03]MH_I2C_Read... [11:58:03]Read from MH i2c: E2 03 00 6D 26 00 90 00 07 [11:58:03]RAPDU: 90 00 [11:58:03]wFMCommunicate OK [11:58:03]wFMCommunicate request_size=4 [11:58:03]MH_SAM_APDU [11:58:03]CAPDU: 80 0D 03 02 [11:58:03]Write to MH i2c: E2 08 00 6E 26 80 0D 03 02 00 00 00 00 0F [11:58:03]Write i2c OK [11:58:03]MH_I2C_Read... [11:58:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:58:03]Read from MH i2c: E2 [11:58:03]MH_I2C_Read... [11:58:03]Read from MH i2c: E2 0B 00 [11:58:03]MH_I2C_Read... [11:58:03]Read from MH i2c: E2 0B 00 6E 26 00 F0 5A 79 C0 B1 6A 95 5D 90 00 A0 [11:58:03]RAPDU: F0 5A 79 C0 B1 6A 95 5D 90 00 [11:58:03]wFMCommunicate OK [11:58:03]SAM_PROTO_SignData done [11:58:03]FM_MakeSignedData done [11:58:03]CreateOFDProtocolMessage [11:58:03]wFMCommunicate request_size=4 [11:58:03]MH_SAM_APDU [11:58:03]CAPDU: 80 11 00 00 [11:58:03]Write to MH i2c: E2 08 00 6F 26 80 11 00 00 00 00 00 00 0F [11:58:03]Write i2c OK [11:58:03]MH_I2C_Read... [11:58:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:03]Read from MH i2c: E2 [11:58:03]MH_I2C_Read... [11:58:03]Read from MH i2c: E2 17 00 [11:58:03]MH_I2C_Read... [11:58:03]Read from MH i2c: E2 17 00 6F 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 62 [11:58:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:58:03]wFMCommunicate OK [11:58:03]CreateOFDProtocolMessage done [11:58:03]OFDSenderStorePacket 76821 [11:58:03]StoreOFDPacket docnum=76821 [11:58:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 73 B5 04 01 F4 E6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 63 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 63 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 77 00 00 00 00 07 04 06 00 70 63 04 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 4E FF 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 15 2C 01 00 35 04 06 00 26 CA 4D 4C 37 37 F0 5A 79 C0 B1 6A 95 5D [11:58:03]CheckFolder [11:58:03]dirname=/storage/ofd_packets [11:58:03]CheckFolder done [11:58:03]ProducePacketName [11:58:03]name=ofd_packets/00076821 [11:58:03]NVStorageSaveData ofd_packets/00076821 [11:58:03]File name is /storage/ofd_packets/00076821 [11:58:03]Write 298 bytes [11:58:03]NVStorageSaveData done [11:58:03]OFDSenderStorePacket done [11:58:03]KKMCreateOFDPacket done [11:58:03]NVStorageSaveData kkm_last_timestamp [11:58:03]File name is /storage/kkm_last_timestamp [11:58:03]Write 4 bytes [11:58:03]NVStorageSaveData done [11:58:03]ExternCall_PrintAddStr [11:58:03]wPrintStart [11:58:03]Write to MH i2c: 01 00 00 70 26 96 [11:58:03]Write i2c OK [11:58:03]MH_I2C_Read... [11:58:03]Read from MH i2c: 01 [11:58:03]MH_I2C_Read... [11:58:03]Read from MH i2c: 01 07 00 [11:58:03]MH_I2C_Read... [11:58:03]Read from MH i2c: 01 07 00 70 26 00 00 00 00 00 FF 0F AB [11:58:03]RasterBufferAndPrint [11:58:03]line Счет N : (1)191356 [11:58:03]line ИНН: 02508201610067 [11:58:03]line Контрольно-Кассовый Чек [11:58:03]line ПРОДАЖА [11:58:03]line ТРК (МРК, ГНК) : 23 [11:58:03]line Товар: 2710194210 [11:58:03]line ДТ-К-5 [11:58:03]line 40.000 * 71.90 [11:58:03]line = 2876.00 [11:58:03]line НДС 12% НСП 1% [11:58:03]line > о реализуемом товаре [11:58:03]line ИТОГО: 2876.00 [11:58:03]line НСП 1% : 25.45 [11:58:03]line НДС 12% : 305.42 [11:58:03]line Наличными: 2876.00 [11:58:03]line Безнал.: 0.00 [11:58:03]line Место: АЗС № 106 "Партнер Нефть" [11:58:03]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [11:58:03]line СНО: Общий режим [11:58:03]line Чек 77 21.04.2024 11:58 [11:58:03]line Смена: 372 ФФД: 1.0 [11:58:03]line ЗНМ: 0300000141 [11:58:03]line РНМ: 0000000000091573 [11:58:03]line Версия ККМ: 001 [11:58:03]line [11:58:03]line Дисконтная программа [11:58:03]line ДТ [11:58:03]line номер 106 [11:58:03]line сэкономлено 40.00 сом [11:58:03]line ФМ: 0000000000874652 [11:58:03]line ФД: 76821 [11:58:03]line ФПД: 42650322089783 [11:58:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T115806&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76821&fm=42650322089783&tin=02508201610067®Number=0000000000091573&sum=287600 [11:58:04]OFD Sender: Processing packet 76821 [packets to send 129, broken 128] [11:58:04]ProducePacketName [11:58:04]name=ofd_packets/00076821 [11:58:04]OFD Sender: To server: pG, [11:58:04]CommunicateWithHost lk.salyk.kg:30040 [11:58:04]ConnectInit lk.salyk.kg [11:58:04]written 0, free lines is 4095 [11:58:04]Connected sock=9 [11:58:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 73 B5 04 01 F4 E6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 63 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 63 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 77 00 00 00 00 07 04 06 00 70 63 04 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 4E FF 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 15 2C 01 00 35 04 06 00 26 CA 4D 4C 37 37 F0 5A 79 C0 B1 6A 95 5D [11:58:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 AC 0A 47 00 2F EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 15 2C 01 00 F4 03 04 00 D3 A6 24 66 B6 04 01 00 00 98 B2 B4 B7 82 5D DC B4 [11:58:04]CommunicateWithHost err = 0 [11:58:04]CheckOFDResponse [11:58:04]1017 (14) - 77093643461234 [11:58:04]1041 (16) - 0000000000874652 [11:58:04]1040 (4) - 76821 [11:58:04]1012 (4) - 21.04.2024 05:40 [11:58:04]1206 (1) - 0 [11:58:04]OFD Sender: Remove packet 76821 [11:58:04]ProducePacketName [11:58:04]name=ofd_packets/00076821 [11:58:04]NVStorageDeleteData [11:58:04]Write to MH i2c: 01 00 00 9C 26 C2 [11:58:04]Write i2c OK [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: 01 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: 01 07 00 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: 01 07 00 9C 26 00 00 00 00 00 D6 0C AB [11:58:04]RasterBufferAndPrint [11:58:04]line [11:58:04]line [11:58:04]line [11:58:04]line [11:58:04]line [11:58:04]written 0, free lines is 3294 [11:58:04]MH_Cut [11:58:04]Write to MH i2c: D1 01 00 A3 26 01 9B [11:58:04]Write i2c OK [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: D1 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: D1 01 00 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: D1 01 00 A3 26 00 9A [11:58:04]Write to MH i2c: 01 00 00 A4 26 CA [11:58:04]Write i2c OK [11:58:04]MH_I2C_Read... [11:58:04]OFD Sender: No OFD packet to send [11:58:05]*** Cut start [11:58:05]*** Partial cut [11:58:05]*** CUTSNS_PIN = 1 [11:58:05]*** CUTSNS_PIN = 0 [11:58:05]*** Brake cut motor [11:58:05]Read from MH i2c: 01 [11:58:05]MH_I2C_Read... [11:58:05]*** Stop cut motor [11:58:05]*** Cut end [11:58:05]Read from MH i2c: 01 07 00 [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: 01 07 00 A4 26 00 00 00 00 00 FF 0F DF [11:58:05]process_action close_receipt done [11:58:05]requested_data is exist [11:58:05]produce_requested_data [11:58:05]requested_item fm.sn is exist - process it [11:58:05]wFMCommunicate request_size=4 [11:58:05]MH_SAM_APDU [11:58:05]CAPDU: 80 11 00 00 [11:58:05]Write to MH i2c: E2 08 00 A5 26 80 11 00 00 00 00 00 00 45 [11:58:05]Write i2c OK [11:58:05]MH_I2C_Read... [11:58:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:05]Read from MH i2c: E2 [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: E2 17 00 [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: E2 17 00 A5 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 98 [11:58:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:58:05]wFMCommunicate OK [11:58:05]requested_item fd.num is exist - process it [11:58:05]SAM_PROTO_GetFieldsCounters [11:58:05]wFMCommunicate request_size=4 [11:58:05]MH_SAM_APDU [11:58:05]CAPDU: 80 13 00 00 [11:58:05]Write to MH i2c: E2 08 00 A6 26 80 13 00 00 00 00 00 00 48 [11:58:05]Write i2c OK [11:58:05]MH_I2C_Read... [11:58:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:58:06]Read from MH i2c: E2 [11:58:06]MH_I2C_Read... [11:58:06]Read from MH i2c: E2 62 00 [11:58:06]MH_I2C_Read... [11:58:06]Read from MH i2c: E2 62 00 A6 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 15 2C 01 00 0E 04 04 00 74 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 07 [11:58:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 15 2C 01 00 0E 04 04 00 74 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:58:06]wFMCommunicate OK [11:58:06]SAM_PROTO_GetFieldsCounters done [11:58:06]requested_item shift.num is exist - process it [11:58:06]requested_item shift.opened is exist - process it [11:58:06]req_shift_opened [11:58:06]FM_GetShiftState [11:58:06]SAM_PROTO_GetShiftState [11:58:06]wFMCommunicate request_size=4 [11:58:06]MH_SAM_APDU [11:58:06]CAPDU: 80 13 01 00 [11:58:06]Write to MH i2c: E2 08 00 A7 26 80 13 01 00 00 00 00 00 4A [11:58:06]Write i2c OK [11:58:06]MH_I2C_Read... [11:58:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:06]Read from MH i2c: E2 [11:58:06]MH_I2C_Read... [11:58:06]Read from MH i2c: E2 0E 00 [11:58:06]MH_I2C_Read... [11:58:06]Read from MH i2c: E2 0E 00 A7 26 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 91 [11:58:06]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [11:58:06]wFMCommunicate OK [11:58:06]SAM_PROTO_GetShiftState done [11:58:06]FM_GetShiftState done [11:58:06]req_shift_opened done [11:58:06]requested_item shift.open_date is exist - process it [11:58:06]req_shift_open_date [11:58:06]req_shift_open_date done [11:58:06]produce_requested_data done [11:58:06]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76821,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [11:58:06]process_action_free close_receipt [11:58:06]json_value_free [11:58:06]json_value_free done [11:58:06]process_json_proto returns [11:58:06]Send response to host [11:58:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76821,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [11:58:06]free response buf [11:58:06]execute_script done [11:58:06]execute_script returns [11:58:06]free content buf [11:58:06]Sock 10.Close socket [11:58:06]Sock 10.Thread stoped [11:58:09]OFD Sender: No OFD packet to send [11:58:14]OFD Sender: No OFD packet to send [11:58:19]OFD Sender: No OFD packet to send [11:58:24]OFD Sender: No OFD packet to send [11:58:29]OFD Sender: No OFD packet to send [11:58:34]OFD Sender: No OFD packet to send [11:58:39]OFD Sender: No OFD packet to send [11:58:44]OFD Sender: No OFD packet to send [11:58:49]OFD Sender: No OFD packet to send [11:58:54]OFD Sender: No OFD packet to send [11:58:59]OFD Sender: No OFD packet to send [11:59:04]OFD Sender: No OFD packet to send [11:59:10]OFD Sender: No OFD packet to send [11:59:15]OFD Sender: No OFD packet to send [11:59:20]OFD Sender: No OFD packet to send [11:59:25]OFD Sender: No OFD packet to send [11:59:30]OFD Sender: No OFD packet to send [11:59:35]OFD Sender: No OFD packet to send [11:59:40]OFD Sender: No OFD packet to send [11:59:45]OFD Sender: No OFD packet to send [11:59:50]OFD Sender: No OFD packet to send [11:59:55]OFD Sender: No OFD packet to send [12:00:00]OFD Sender: No OFD packet to send [12:00:05]OFD Sender: No OFD packet to send [12:00:08]accept exits with 7 [12:00:08]New connection [12:00:08]New thread 3067481444 created [12:00:08]Thread 3067338084 joined [12:00:08]Waiting for new connection... [12:00:08] Sock 7.Parse request [12:00:08]Sock 7.Check first char [12:00:08]Sock 7.First char is OK [12:00:08]request: POST /json_proto HTTP/1.0 [12:00:08]Method: POST [12:00:08]URL: /json_proto [12:00:08]Method is POST - this is cgi request [12:00:08]url: /json_proto [12:00:08]query_string will be loaded in cgi processing [12:00:08]execute_cgi json_proto POST (null) [12:00:08]execute_cgi path=json_proto method=POST [12:00:08]POST find Content-Length [12:00:08]Host: 172.17.62.5:8080 [12:00:08]Content-Length: 819 [12:00:08]Content-Type: application/json [12:00:08] [12:00:08]POST finish read [12:00:08]Found Content-Length = 819 [12:00:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:08]execute_script... [12: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)191357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:08]POST & json_proto [12:00:08]process_json_proto [12:00:08]json parsed OK: [12:00:08]protocol is kg_v1.0 [12:00:08]action value=close_receipt [12:00:08]process_action close_receipt [12:00:08]cmd_close_receipt [12:00:08]MH_GetDate [12:00:08]Write to MH i2c: F0 00 00 A8 26 BD [12:00:08]Write i2c OK [12:00:08]MH_I2C_Read... [12:00:08]Read from MH i2c: F0 [12:00:08]MH_I2C_Read... [12:00:08]Read from MH i2c: F0 09 00 [12:00:08]MH_I2C_Read... [12:00:08]Read from MH i2c: F0 09 00 A8 26 00 CC FF 24 66 F4 E9 65 64 C1 [12:00:08]GetLastDocTimeStamp 1713700686 [12:00:08]current date 1713700812 [12:00:08]FM_GetShiftState [12:00:08]SAM_PROTO_GetShiftState [12:00:08]wFMCommunicate request_size=4 [12:00:08]MH_SAM_APDU [12:00:08]CAPDU: 80 13 01 00 [12:00:08]Write to MH i2c: E2 08 00 A9 26 80 13 01 00 00 00 00 00 4C [12:00:08]Write i2c OK [12:00:08]MH_I2C_Read... [12:00:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:08]Read from MH i2c: E2 [12:00:08]MH_I2C_Read... [12:00:08]Read from MH i2c: E2 0E 00 [12:00:08]MH_I2C_Read... [12:00:08]Read from MH i2c: E2 0E 00 A9 26 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 93 [12:00:08]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [12:00:08]wFMCommunicate OK [12:00:08]SAM_PROTO_GetShiftState done [12:00:08]FM_GetShiftState done [12:00:08]opened in 1713658965 [12:00:08]opened+sec_in_day 1713745365 [12:00:08]quantity*price = 100018 [12:00:08]sum+1 = 100020 [12:00:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.19 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.19 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 78 21.04.2024 12:00 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 76822 ФПД: 79999414819487 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T120012&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76822&fm=79999414819487&tin=02508201610067®Number=0000000000091573&sum=100019 [12:00:09]StoreToDocumentArchive [12:00:09]shift 372 fd 76822 [12:00:09]save to /storage/0372/doc_00076822 [12:00:09]save last doc name /storage/0372/doc_00076822 to /storage/kkm_last_doc_name [12:00:09]save OK [12:00:09]Clear old archive folders... [12:00:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:00:09]tlvbuf is 018AB570 [12:00:09]SAM_PROTO_ClearQueue [12:00:09]wFMCommunicate request_size=4 [12:00:09]MH_SAM_APDU [12:00:09]CAPDU: 80 09 00 00 [12:00:09]Write to MH i2c: E2 08 00 B6 26 80 09 00 00 00 00 00 00 4E [12:00:09]Write i2c OK [12:00:09]MH_I2C_Read... [12:00:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:00:09]Read from MH i2c: E2 [12:00:09]MH_I2C_Read... [12:00:09]Read from MH i2c: E2 03 00 [12:00:09]MH_I2C_Read... [12:00:09]Read from MH i2c: E2 03 00 B6 26 00 90 00 50 [12:00:09]RAPDU: 90 00 [12:00:09]wFMCommunicate OK [12:00:09]SAM_PROTO_ClearQueue done [12:00:09]KKMCreateOFDPacket [12:00:09]OFDProtocolAddRootSTLVToBuf [12:00:09]FM_MakeSignedData [12:00:09]FM_MakeSignedData [12:00:09]SAM_PROTO_SignData [12:00:09]wFMCommunicate request_size=4 [12:00:09]MH_SAM_APDU [12:00:09]CAPDU: 80 0D 01 02 [12:00:09]Write to MH i2c: E2 08 00 B7 26 80 0D 01 02 00 00 00 00 56 [12:00:09]Write i2c OK [12:00:09]MH_I2C_Read... [12:00:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:00:09]Read from MH i2c: E2 [12:00:09]MH_I2C_Read... [12:00:09]Read from MH i2c: E2 03 00 [12:00:09]MH_I2C_Read... [12:00:09]Read from MH i2c: E2 03 00 B7 26 00 90 00 51 [12:00:09]RAPDU: 90 00 [12:00:09]wFMCommunicate OK [12:00:09]wFMCommunicate request_size=255 [12:00:09]MH_SAM_APDU [12:00: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 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 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 4E 00 00 00 F4 03 04 00 CC FF 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 16 2C 01 00 35 04 06 00 48 [12:00:09]Write to MH i2c: E2 02 01 B8 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 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 4E 00 00 00 F4 03 04 00 CC FF 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 16 2C 01 00 35 04 06 00 48 00 00 36 [12:00:09]Write i2c OK [12:00:09]MH_I2C_Read... [12:00:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:10]Read from MH i2c: E2 [12:00:10]MH_I2C_Read... [12:00:10]Read from MH i2c: E2 03 00 [12:00:10]MH_I2C_Read... [12:00:10]Read from MH i2c: E2 03 00 B8 26 00 90 00 52 [12:00:10]RAPDU: 90 00 [12:00:10]wFMCommunicate OK [12:00:10]wFMCommunicate request_size=10 [12:00:10]MH_SAM_APDU [12:00:10]CAPDU: 80 0D 02 02 05 C2 50 B3 DA 9F [12:00:10]Write to MH i2c: E2 0D 00 B9 26 80 0D 02 02 05 00 C2 50 B3 DA 9F 00 00 A1 [12:00:10]Write i2c OK [12:00:10]MH_I2C_Read... [12:00:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:10]Read from MH i2c: E2 [12:00:10]MH_I2C_Read... [12:00:10]Read from MH i2c: E2 03 00 [12:00:10]MH_I2C_Read... [12:00:10]Read from MH i2c: E2 03 00 B9 26 00 90 00 53 [12:00:10]RAPDU: 90 00 [12:00:10]wFMCommunicate OK [12:00:10]wFMCommunicate request_size=4 [12:00:10]MH_SAM_APDU [12:00:10]CAPDU: 80 0D 03 02 [12:00:10]Write to MH i2c: E2 08 00 BA 26 80 0D 03 02 00 00 00 00 5B [12:00:10]Write i2c OK [12:00:10]MH_I2C_Read... [12:00:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:00:10]OFD Sender: No OFD packet to send [12:00:10]Read from MH i2c: E2 [12:00:10]MH_I2C_Read... [12:00:10]Read from MH i2c: E2 0B 00 [12:00:10]MH_I2C_Read... [12:00:10]Read from MH i2c: E2 0B 00 BA 26 00 A5 11 36 50 D3 5A D2 63 90 00 FA [12:00:10]RAPDU: A5 11 36 50 D3 5A D2 63 90 00 [12:00:10]wFMCommunicate OK [12:00:10]SAM_PROTO_SignData done [12:00:10]FM_MakeSignedData done [12:00:10]CreateOFDProtocolMessage [12:00:10]wFMCommunicate request_size=4 [12:00:10]MH_SAM_APDU [12:00:10]CAPDU: 80 11 00 00 [12:00:10]Write to MH i2c: E2 08 00 BB 26 80 11 00 00 00 00 00 00 5B [12:00:10]Write i2c OK [12:00:10]MH_I2C_Read... [12:00:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:10]Read from MH i2c: E2 [12:00:10]MH_I2C_Read... [12:00:10]Read from MH i2c: E2 17 00 [12:00:10]MH_I2C_Read... [12:00:10]Read from MH i2c: E2 17 00 BB 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 AE [12:00:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:00:10]wFMCommunicate OK [12:00:10]CreateOFDProtocolMessage done [12:00:10]OFDSenderStorePacket 76822 [12:00:10]StoreOFDPacket docnum=76822 [12:00:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 58 98 07 01 06 6F 5A 03 01 00 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 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 4E 00 00 00 F4 03 04 00 CC FF 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 16 2C 01 00 35 04 06 00 48 C2 50 B3 DA 9F A5 11 36 50 D3 5A D2 63 [12:00:10]CheckFolder [12:00:10]dirname=/storage/ofd_packets [12:00:10]CheckFolder done [12:00:10]ProducePacketName [12:00:10]name=ofd_packets/00076822 [12:00:10]NVStorageSaveData ofd_packets/00076822 [12:00:10]File name is /storage/ofd_packets/00076822 [12:00:10]Write 301 bytes [12:00:10]NVStorageSaveData done [12:00:10]OFDSenderStorePacket done [12:00:10]KKMCreateOFDPacket done [12:00:10]NVStorageSaveData kkm_last_timestamp [12:00:10]File name is /storage/kkm_last_timestamp [12:00:10]Write 4 bytes [12:00:10]NVStorageSaveData done [12:00:10]ExternCall_PrintAddStr [12:00:10]wPrintStart [12:00:10]Write to MH i2c: 01 00 00 BC 26 E2 [12:00:10]Write i2c OK [12:00:10]MH_I2C_Read... [12:00:10]Read from MH i2c: 01 [12:00:10]MH_I2C_Read... [12:00:10]Read from MH i2c: 01 07 00 [12:00:10]MH_I2C_Read... [12:00:10]Read from MH i2c: 01 07 00 BC 26 00 00 00 00 00 FF 0F F7 [12:00:10]RasterBufferAndPrint [12:00:10]line Счет N : (1)191357 [12:00:10]line ИНН: 02508201610067 [12:00:10]line Контрольно-Кассовый Чек [12:00:10]line ПРОДАЖА [12:00:10]line ТРК (МРК, ГНК) : 32 [12:00:10]line Товар: 2710124500 [12:00:10]line Аи-95-К-5 [12:00:10]line 13.720 * 72.90 [12:00:10]line = 1000.19 [12:00:10]line НДС 12% НСП 1% [12:00:10]line > о реализуемом товаре [12:00:10]line ИТОГО: 1000.19 [12:00:10]line НСП 1% : 8.85 [12:00:10]line НДС 12% : 106.21 [12:00:10]line Наличными: 0.00 [12:00:10]line Безнал.: 1000.19 [12:00:10]line Место: АЗС № 106 "Партнер Нефть" [12:00:10]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [12:00:10]line СНО: Общий режим [12:00:10]line Чек 78 21.04.2024 12:00 [12:00:10]line Смена: 372 ФФД: 1.0 [12:00:10]line ЗНМ: 0300000141 [12:00:10]line РНМ: 0000000000091573 [12:00:10]line Версия ККМ: 001 [12:00:10]line Платежная система: Бакай Банк [12:00:10]line ФМ: 0000000000874652 [12:00:10]line ФД: 76822 [12:00:10]line ФПД: 79999414819487 [12:00:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T120012&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76822&fm=79999414819487&tin=02508201610067®Number=0000000000091573&sum=100019 [12:00:10]OFD Sender: Processing packet 76822 [packets to send 129, broken 128] [12:00:10]ProducePacketName [12:00:10]name=ofd_packets/00076822 [12:00:10]OFD Sender: To server: pG, [12:00:10]CommunicateWithHost lk.salyk.kg:30040 [12:00:10]ConnectInit lk.salyk.kg [12:00:10]written 0, free lines is 4095 [12:00:10]Connected sock=10 [12:00:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 58 98 07 01 06 6F 5A 03 01 00 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 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 4E 00 00 00 F4 03 04 00 CC FF 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 16 2C 01 00 35 04 06 00 48 C2 50 B3 DA 9F A5 11 36 50 D3 5A D2 63 [12:00:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 8F 49 47 00 23 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 34 36 35 32 10 04 04 00 16 2C 01 00 F4 03 04 00 52 A7 24 66 B6 04 01 00 00 15 BE 75 27 8F 69 02 D3 [12:00:10]CommunicateWithHost err = 0 [12:00:10]CheckOFDResponse [12:00:10]1017 (14) - 77093643461234 [12:00:10]1041 (16) - 0000000000874652 [12:00:10]1040 (4) - 76822 [12:00:10]1012 (4) - 21.04.2024 05:42 [12:00:10]1206 (1) - 0 [12:00:10]OFD Sender: Remove packet 76822 [12:00:10]ProducePacketName [12:00:10]name=ofd_packets/00076822 [12:00:10]NVStorageDeleteData [12:00:10]Write to MH i2c: 01 00 00 E5 26 0B [12:00:10]Write i2c OK [12:00:10]MH_I2C_Read... [12:00:10]Read from MH i2c: 01 [12:00:10]MH_I2C_Read... [12:00:10]Read from MH i2c: 01 07 00 [12:00:10]MH_I2C_Read... [12:00:10]Read from MH i2c: 01 07 00 E5 26 00 00 00 00 00 00 0D 1F [12:00:10]RasterBufferAndPrint [12:00:10]line [12:00:10]line [12:00:10]line [12:00:10]line [12:00:10]line [12:00:10]written 0, free lines is 3334 [12:00:10]MH_Cut [12:00:10]Write to MH i2c: D1 01 00 EC 26 01 E4 [12:00:10]Write i2c OK [12:00:10]MH_I2C_Read... [12:00:10]Read from MH i2c: D1 [12:00:10]MH_I2C_Read... [12:00:10]Read from MH i2c: D1 01 00 [12:00:10]MH_I2C_Read... [12:00:10]Read from MH i2c: D1 01 00 EC 26 00 E3 [12:00:10]Write to MH i2c: 01 00 00 ED 26 13 [12:00:10]Write i2c OK [12:00:10]MH_I2C_Read... [12:00:11]OFD Sender: No OFD packet to send [12:00:11]*** Cut start [12:00:11]*** Partial cut [12:00:11]*** CUTSNS_PIN = 1 [12:00:11]*** CUTSNS_PIN = 0 [12:00:11]*** Brake cut motor [12:00:12]Read from MH i2c: 01 [12:00:12]MH_I2C_Read... [12:00:12]*** Stop cut motor [12:00:12]*** Cut end [12:00:12]Read from MH i2c: 01 07 00 [12:00:12]MH_I2C_Read... [12:00:12]Read from MH i2c: 01 07 00 ED 26 00 00 00 00 00 FF 0F 28 [12:00:12]process_action close_receipt done [12:00:12]requested_data is exist [12:00:12]produce_requested_data [12:00:12]requested_item fm.sn is exist - process it [12:00:12]wFMCommunicate request_size=4 [12:00:12]MH_SAM_APDU [12:00:12]CAPDU: 80 11 00 00 [12:00:12]Write to MH i2c: E2 08 00 EE 26 80 11 00 00 00 00 00 00 8E [12:00:12]Write i2c OK [12:00:12]MH_I2C_Read... [12:00:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:12]Read from MH i2c: E2 [12:00:12]MH_I2C_Read... [12:00:12]Read from MH i2c: E2 17 00 [12:00:12]MH_I2C_Read... [12:00:12]Read from MH i2c: E2 17 00 EE 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 E1 [12:00:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:00:12]wFMCommunicate OK [12:00:12]requested_item fd.num is exist - process it [12:00:12]SAM_PROTO_GetFieldsCounters [12:00:12]wFMCommunicate request_size=4 [12:00:12]MH_SAM_APDU [12:00:12]CAPDU: 80 13 00 00 [12:00:12]Write to MH i2c: E2 08 00 EF 26 80 13 00 00 00 00 00 00 91 [12:00:12]Write i2c OK [12:00:12]MH_I2C_Read... [12:00:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:00:12]Read from MH i2c: E2 [12:00:12]MH_I2C_Read... [12:00:12]Read from MH i2c: E2 62 00 [12:00:12]MH_I2C_Read... [12:00:12]Read from MH i2c: E2 62 00 EF 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 16 2C 01 00 0E 04 04 00 74 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 54 [12: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 16 2C 01 00 0E 04 04 00 74 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 [12:00:12]wFMCommunicate OK [12:00:12]SAM_PROTO_GetFieldsCounters done [12:00:12]requested_item shift.num is exist - process it [12:00:12]requested_item shift.opened is exist - process it [12:00:12]req_shift_opened [12:00:12]FM_GetShiftState [12:00:12]SAM_PROTO_GetShiftState [12:00:12]wFMCommunicate request_size=4 [12:00:12]MH_SAM_APDU [12:00:12]CAPDU: 80 13 01 00 [12:00:12]Write to MH i2c: E2 08 00 F0 26 80 13 01 00 00 00 00 00 93 [12:00:12]Write i2c OK [12:00:12]MH_I2C_Read... [12:00:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:12]Read from MH i2c: E2 [12:00:12]MH_I2C_Read... [12:00:12]Read from MH i2c: E2 0E 00 [12:00:12]MH_I2C_Read... [12:00:12]Read from MH i2c: E2 0E 00 F0 26 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 DA [12:00:12]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [12:00:12]wFMCommunicate OK [12:00:12]SAM_PROTO_GetShiftState done [12:00:12]FM_GetShiftState done [12:00:12]req_shift_opened done [12:00:12]requested_item shift.open_date is exist - process it [12:00:12]req_shift_open_date [12:00:12]req_shift_open_date done [12:00:12]produce_requested_data done [12:00:12]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76822,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [12:00:12]process_action_free close_receipt [12:00:12]json_value_free [12:00:12]json_value_free done [12:00:12]process_json_proto returns [12:00:12]Send response to host [12:00:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76822,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [12:00:12]free response buf [12:00:12]execute_script done [12:00:12]execute_script returns [12:00:12]free content buf [12:00:12]Sock 7.Close socket [12:00:12]Sock 7.Thread stoped [12:00:16]OFD Sender: No OFD packet to send [12:00:21]OFD Sender: No OFD packet to send [12:00:26]OFD Sender: No OFD packet to send [12:00:31]OFD Sender: No OFD packet to send [12:00:36]OFD Sender: No OFD packet to send [12:00:39]accept exits with 9 [12:00:39]New connection [12:00:39]New thread 3067338084 created [12:00:39]Thread 3067481444 joined [12:00:39]Waiting for new connection... [12:00:39] Sock 9.Parse request [12:00:39]Sock 9.Check first char [12:00:39]Sock 9.First char is OK [12:00:39]request: POST /json_proto HTTP/1.0 [12:00:39]Method: POST [12:00:39]URL: /json_proto [12:00:39]Method is POST - this is cgi request [12:00:39]url: /json_proto [12:00:39]query_string will be loaded in cgi processing [12:00:39]execute_cgi json_proto POST (null) [12:00:39]execute_cgi path=json_proto method=POST [12:00:39]POST find Content-Length [12:00:39]Host: 172.17.62.5:8080 [12:00:39]Content-Length: 678 [12:00:39]Content-Type: application/json [12:00:39] [12:00:39]POST finish read [12:00:39]Found Content-Length = 678 [12:00:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 12.430, "sum" : 800.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:39]execute_script... [12:00:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 12.430, "sum" : 800.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:39]POST & json_proto [12:00:39]process_json_proto [12:00:39]json parsed OK: [12:00:39]protocol is kg_v1.0 [12:00:39]action value=close_receipt [12:00:39]process_action close_receipt [12:00:39]cmd_close_receipt [12:00:39]MH_GetDate [12:00:39]Write to MH i2c: F0 00 00 F1 26 06 [12:00:39]Write i2c OK [12:00:39]MH_I2C_Read... [12:00:39]Read from MH i2c: F0 [12:00:39]MH_I2C_Read... [12:00:39]Read from MH i2c: F0 09 00 [12:00:39]MH_I2C_Read... [12:00:39]Read from MH i2c: F0 09 00 F1 26 00 EC FF 24 66 F4 E9 65 64 2A [12:00:39]GetLastDocTimeStamp 1713700812 [12:00:39]current date 1713700844 [12:00:39]FM_GetShiftState [12:00:39]SAM_PROTO_GetShiftState [12:00:39]wFMCommunicate request_size=4 [12:00:39]MH_SAM_APDU [12:00:39]CAPDU: 80 13 01 00 [12:00:39]Write to MH i2c: E2 08 00 F2 26 80 13 01 00 00 00 00 00 95 [12:00:39]Write i2c OK [12:00:39]MH_I2C_Read... [12:00:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:39]Read from MH i2c: E2 [12:00:39]MH_I2C_Read... [12:00:39]Read from MH i2c: E2 0E 00 [12:00:39]MH_I2C_Read... [12:00:40]Read from MH i2c: E2 0E 00 F2 26 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 DC [12:00:40]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [12:00:40]wFMCommunicate OK [12:00:40]SAM_PROTO_GetShiftState done [12:00:40]FM_GetShiftState done [12:00:40]opened in 1713658965 [12:00:40]opened+sec_in_day 1713745365 [12:00:40]quantity*price = 80049 [12:00:40]sum+1 = 80050 [12:00:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.01 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 79 21.04.2024 12:00 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76823 ФПД: 226634214424439 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T120044&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76823&fm=226634214424439&tin=02508201610067®Number=0000000000091573&sum=80000 [12:00:41]StoreToDocumentArchive [12:00:41]shift 372 fd 76823 [12:00:41]save to /storage/0372/doc_00076823 [12:00:41]save last doc name /storage/0372/doc_00076823 to /storage/kkm_last_doc_name [12:00:41]save OK [12:00:41]Clear old archive folders... [12:00:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:00:41]tlvbuf is 018F4650 [12:00:41]SAM_PROTO_ClearQueue [12:00:41]wFMCommunicate request_size=4 [12:00:41]MH_SAM_APDU [12:00:41]CAPDU: 80 09 00 00 [12:00:41]Write to MH i2c: E2 08 00 FF 26 80 09 00 00 00 00 00 00 97 [12:00:41]Write i2c OK [12:00:41]MH_I2C_Read... [12:00:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:00:41]Read from MH i2c: E2 [12:00:41]MH_I2C_Read... [12:00:41]Read from MH i2c: E2 03 00 [12:00:41]MH_I2C_Read... [12:00:41]Read from MH i2c: E2 03 00 FF 26 00 90 00 99 [12:00:41]RAPDU: 90 00 [12:00:41]wFMCommunicate OK [12:00:41]SAM_PROTO_ClearQueue done [12:00:41]KKMCreateOFDPacket [12:00:41]OFDProtocolAddRootSTLVToBuf [12:00:41]FM_MakeSignedData [12:00:41]FM_MakeSignedData [12:00:41]SAM_PROTO_SignData [12:00:41]wFMCommunicate request_size=4 [12:00:41]MH_SAM_APDU [12:00:41]CAPDU: 80 0D 01 02 [12:00:41]Write to MH i2c: E2 08 00 00 27 80 0D 01 02 00 00 00 00 A0 [12:00:41]Write i2c OK [12:00:41]MH_I2C_Read... [12:00:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:00:41]Read from MH i2c: E2 [12:00:41]MH_I2C_Read... [12:00:41]Read from MH i2c: E2 03 00 [12:00:41]MH_I2C_Read... [12:00:41]Read from MH i2c: E2 03 00 00 27 00 90 00 9B [12:00:41]RAPDU: 90 00 [12:00:41]wFMCommunicate OK [12:00:41]wFMCommunicate request_size=255 [12:00:41]MH_SAM_APDU [12:00: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 8E 30 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 B1 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 35 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 4F 00 00 00 F4 03 04 00 EC FF 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 17 2C 01 00 35 04 06 00 CE [12:00:41]Write to MH i2c: E2 02 01 01 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 30 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 B1 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 35 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 4F 00 00 00 F4 03 04 00 EC FF 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 17 2C 01 00 35 04 06 00 CE 00 00 6C [12:00:41]Write i2c OK [12:00:41]MH_I2C_Read... [12:00:41]OFD Sender: No OFD packet to send [12:00:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:41]Read from MH i2c: E2 [12:00:41]MH_I2C_Read... [12:00:41]Read from MH i2c: E2 03 00 [12:00:41]MH_I2C_Read... [12:00:41]Read from MH i2c: E2 03 00 01 27 00 90 00 9C [12:00:41]RAPDU: 90 00 [12:00:41]wFMCommunicate OK [12:00:41]wFMCommunicate request_size=10 [12:00:41]MH_SAM_APDU [12:00:41]CAPDU: 80 0D 02 02 05 1F 63 D8 3F 77 [12:00:41]Write to MH i2c: E2 0D 00 02 27 80 0D 02 02 05 00 1F 63 D8 3F 77 00 00 BD [12:00:41]Write i2c OK [12:00:41]MH_I2C_Read... [12:00:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:41]Read from MH i2c: E2 [12:00:41]MH_I2C_Read... [12:00:41]Read from MH i2c: E2 03 00 [12:00:41]MH_I2C_Read... [12:00:41]Read from MH i2c: E2 03 00 02 27 00 90 00 9D [12:00:41]RAPDU: 90 00 [12:00:41]wFMCommunicate OK [12:00:41]wFMCommunicate request_size=4 [12:00:41]MH_SAM_APDU [12:00:41]CAPDU: 80 0D 03 02 [12:00:41]Write to MH i2c: E2 08 00 03 27 80 0D 03 02 00 00 00 00 A5 [12:00:41]Write i2c OK [12:00:41]MH_I2C_Read... [12:00:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:00:41]Read from MH i2c: E2 [12:00:41]MH_I2C_Read... [12:00:41]Read from MH i2c: E2 0B 00 [12:00:41]MH_I2C_Read... [12:00:41]Read from MH i2c: E2 0B 00 03 27 00 9D 5B 80 65 9E CF B9 05 90 00 AE [12:00:41]RAPDU: 9D 5B 80 65 9E CF B9 05 90 00 [12:00:41]wFMCommunicate OK [12:00:41]SAM_PROTO_SignData done [12:00:41]FM_MakeSignedData done [12:00:41]CreateOFDProtocolMessage [12:00:41]wFMCommunicate request_size=4 [12:00:41]MH_SAM_APDU [12:00:41]CAPDU: 80 11 00 00 [12:00:41]Write to MH i2c: E2 08 00 04 27 80 11 00 00 00 00 00 00 A5 [12:00:41]Write i2c OK [12:00:41]MH_I2C_Read... [12:00:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:41]Read from MH i2c: E2 [12:00:41]MH_I2C_Read... [12:00:41]Read from MH i2c: E2 17 00 [12:00:41]MH_I2C_Read... [12:00:41]Read from MH i2c: E2 17 00 04 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F8 [12:00:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:00:41]wFMCommunicate OK [12:00:41]CreateOFDProtocolMessage done [12:00:41]OFDSenderStorePacket 76823 [12:00:41]StoreOFDPacket docnum=76823 [12:00:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 AD 6D 07 01 F4 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 30 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 B1 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 35 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 4F 00 00 00 F4 03 04 00 EC FF 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 17 2C 01 00 35 04 06 00 CE 1F 63 D8 3F 77 9D 5B 80 65 9E CF B9 05 [12:00:41]CheckFolder [12:00:41]dirname=/storage/ofd_packets [12:00:41]CheckFolder done [12:00:41]ProducePacketName [12:00:41]name=ofd_packets/00076823 [12:00:41]NVStorageSaveData ofd_packets/00076823 [12:00:41]File name is /storage/ofd_packets/00076823 [12:00:41]Write 301 bytes [12:00:41]NVStorageSaveData done [12:00:41]OFDSenderStorePacket done [12:00:41]KKMCreateOFDPacket done [12:00:41]NVStorageSaveData kkm_last_timestamp [12:00:41]File name is /storage/kkm_last_timestamp [12:00:41]Write 4 bytes [12:00:41]NVStorageSaveData done [12:00:41]ExternCall_PrintAddStr [12:00:41]wPrintStart [12:00:41]Write to MH i2c: 01 00 00 05 27 2C [12:00:41]Write i2c OK [12:00:41]MH_I2C_Read... [12:00:41]Read from MH i2c: 01 [12:00:41]MH_I2C_Read... [12:00:41]Read from MH i2c: 01 07 00 [12:00:41]MH_I2C_Read... [12:00:41]Read from MH i2c: 01 07 00 05 27 00 00 00 00 00 FF 0F 41 [12:00:41]RasterBufferAndPrint [12:00:41]line Счет N : (1)191359 [12:00:41]line ИНН: 02508201610067 [12:00:41]line Контрольно-Кассовый Чек [12:00:41]line ПРОДАЖА [12:00:41]line ТРК (МРК, ГНК) : 43 [12:00:41]line Товар: 2710124130 [12:00:41]line Аи-92-К-5 [12:00:41]line 12.430 * 64.40 [12:00:41]line = 800.49 [12:00:41]line НДС 12% НСП 1% [12:00:41]line > о реализуемом товаре [12:00:41]line ОКРУГЛЕНИЕ: -0.49 [12:00:41]line ИТОГО: 800.00 [12:00:41]line Внесено: 800.00 [12:00:41]line СДАЧА: 0.00 [12:00:41]line НСП 1% : 7.08 [12:00:41]line НДС 12% : 85.01 [12:00:41]line Наличными: 800.00 [12:00:41]line Безнал.: 0.00 [12:00:41]line Место: АЗС № 106 "Партнер Нефть" [12:00:41]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [12:00:41]line СНО: Общий режим [12:00:41]line Чек 79 21.04.2024 12:00 [12:00:41]line Смена: 372 ФФД: 1.0 [12:00:41]line ЗНМ: 0300000141 [12:00:41]line РНМ: 0000000000091573 [12:00:41]line Версия ККМ: 001 [12:00:41]line ФМ: 0000000000874652 [12:00:41]line ФД: 76823 [12:00:41]line ФПД: 226634214424439 [12:00:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T120044&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76823&fm=226634214424439&tin=02508201610067®Number=0000000000091573&sum=80000 [12:00:41]written 0, free lines is 4095 [12:00:41]OFD Sender: Processing packet 76823 [packets to send 129, broken 128] [12:00:41]ProducePacketName [12:00:41]name=ofd_packets/00076823 [12:00:41]OFD Sender: To server: pG, [12:00:41]CommunicateWithHost lk.salyk.kg:30040 [12:00:41]ConnectInit lk.salyk.kg [12:00:41]Connected sock=10 [12:00:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 AD 6D 07 01 F4 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 30 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 B1 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 35 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 4F 00 00 00 F4 03 04 00 EC FF 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 17 2C 01 00 35 04 06 00 CE 1F 63 D8 3F 77 9D 5B 80 65 9E CF B9 05 [12:00:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 95 BD 47 00 FB A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 17 2C 01 00 F4 03 04 00 71 A7 24 66 B6 04 01 00 00 85 50 20 17 9F 30 DE EF [12:00:42]CommunicateWithHost err = 0 [12:00:42]CheckOFDResponse [12:00:42]1017 (14) - 77093643461234 [12:00:42]1041 (16) - 0000000000874652 [12:00:42]1040 (4) - 76823 [12:00:42]1012 (4) - 21.04.2024 05:43 [12:00:42]1206 (1) - 0 [12:00:42]OFD Sender: Remove packet 76823 [12:00:42]ProducePacketName [12:00:42]name=ofd_packets/00076823 [12:00:42]NVStorageDeleteData [12:00:42]Write to MH i2c: 01 00 00 2F 27 56 [12:00:42]Write i2c OK [12:00:42]MH_I2C_Read... [12:00:42]Read from MH i2c: 01 [12:00:42]MH_I2C_Read... [12:00:42]Read from MH i2c: 01 07 00 [12:00:42]MH_I2C_Read... [12:00:42]Read from MH i2c: 01 07 00 2F 27 00 00 00 00 00 F7 0C 60 [12:00:42]RasterBufferAndPrint [12:00:42]line [12:00:42]line [12:00:42]line [12:00:42]line [12:00:42]line [12:00:42]written 0, free lines is 3326 [12:00:42]MH_Cut [12:00:42]Write to MH i2c: D1 01 00 36 27 01 2F [12:00:42]Write i2c OK [12:00:42]MH_I2C_Read... [12:00:42]Read from MH i2c: D1 [12:00:42]MH_I2C_Read... [12:00:42]Read from MH i2c: D1 01 00 [12:00:42]MH_I2C_Read... [12:00:42]Read from MH i2c: D1 01 00 36 27 00 2E [12:00:42]Write to MH i2c: 01 00 00 37 27 5E [12:00:42]Write i2c OK [12:00:42]MH_I2C_Read... [12:00:42]OFD Sender: No OFD packet to send [12:00:42]*** Cut start [12:00:42]*** Partial cut [12:00:42]*** CUTSNS_PIN = 1 [12:00:42]*** CUTSNS_PIN = 0 [12:00:43]*** Brake cut motor [12:00:43]Read from MH i2c: 01 [12:00:43]MH_I2C_Read... [12:00:43]*** Stop cut motor [12:00:43]*** Cut end [12:00:43]Read from MH i2c: 01 07 00 [12:00:43]MH_I2C_Read... [12:00:43]Read from MH i2c: 01 07 00 37 27 00 00 00 00 00 FF 0F 73 [12:00:43]process_action close_receipt done [12:00:43]requested_data is exist [12:00:43]produce_requested_data [12:00:43]requested_item fm.sn is exist - process it [12:00:43]wFMCommunicate request_size=4 [12:00:43]MH_SAM_APDU [12:00:43]CAPDU: 80 11 00 00 [12:00:43]Write to MH i2c: E2 08 00 38 27 80 11 00 00 00 00 00 00 D9 [12:00:43]Write i2c OK [12:00:43]MH_I2C_Read... [12:00:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:43]Read from MH i2c: E2 [12:00:43]MH_I2C_Read... [12:00:43]Read from MH i2c: E2 17 00 [12:00:43]MH_I2C_Read... [12:00:43]Read from MH i2c: E2 17 00 38 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 2C [12:00:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:00:43]wFMCommunicate OK [12:00:43]requested_item fd.num is exist - process it [12:00:43]SAM_PROTO_GetFieldsCounters [12:00:43]wFMCommunicate request_size=4 [12:00:43]MH_SAM_APDU [12:00:43]CAPDU: 80 13 00 00 [12:00:43]Write to MH i2c: E2 08 00 39 27 80 13 00 00 00 00 00 00 DC [12:00:43]Write i2c OK [12:00:43]MH_I2C_Read... [12:00:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:00:43]Read from MH i2c: E2 [12:00:43]MH_I2C_Read... [12:00:43]Read from MH i2c: E2 62 00 [12:00:43]MH_I2C_Read... [12:00:43]Read from MH i2c: E2 62 00 39 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 17 2C 01 00 0E 04 04 00 74 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 A3 [12:00:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 17 2C 01 00 0E 04 04 00 74 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:00:43]wFMCommunicate OK [12:00:43]SAM_PROTO_GetFieldsCounters done [12:00:43]requested_item shift.num is exist - process it [12:00:43]requested_item shift.opened is exist - process it [12:00:43]req_shift_opened [12:00:43]FM_GetShiftState [12:00:43]SAM_PROTO_GetShiftState [12:00:43]wFMCommunicate request_size=4 [12:00:43]MH_SAM_APDU [12:00:43]CAPDU: 80 13 01 00 [12:00:43]Write to MH i2c: E2 08 00 3A 27 80 13 01 00 00 00 00 00 DE [12:00:43]Write i2c OK [12:00:43]MH_I2C_Read... [12:00:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:43]Read from MH i2c: E2 [12:00:43]MH_I2C_Read... [12:00:43]Read from MH i2c: E2 0E 00 [12:00:43]MH_I2C_Read... [12:00:43]Read from MH i2c: E2 0E 00 3A 27 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 25 [12:00:43]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [12:00:43]wFMCommunicate OK [12:00:43]SAM_PROTO_GetShiftState done [12:00:43]FM_GetShiftState done [12:00:43]req_shift_opened done [12:00:43]requested_item shift.open_date is exist - process it [12:00:43]req_shift_open_date [12:00:43]req_shift_open_date done [12:00:43]produce_requested_data done [12:00:43]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76823,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [12:00:43]process_action_free close_receipt [12:00:43]json_value_free [12:00:43]json_value_free done [12:00:43]process_json_proto returns [12:00:43]Send response to host [12:00:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76823,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [12:00:43]free response buf [12:00:43]execute_script done [12:00:43]execute_script returns [12:00:43]free content buf [12:00:43]Sock 9.Close socket [12:00:43]Sock 9.Thread stoped [12:00:44]accept exits with 7 [12:00:44]New connection [12:00:44]New thread 3067481444 created [12:00:44]Thread 3067338084 joined [12:00:44]Waiting for new connection... [12:00:44] Sock 7.Parse request [12:00:44]Sock 7.Check first char [12:00:44]Sock 7.First char is OK [12:00:44]request: POST /json_proto HTTP/1.0 [12:00:44]Method: POST [12:00:44]URL: /json_proto [12:00:44]Method is POST - this is cgi request [12:00:44]url: /json_proto [12:00:44]query_string will be loaded in cgi processing [12:00:44]execute_cgi json_proto POST (null) [12:00:44]execute_cgi path=json_proto method=POST [12:00:44]POST find Content-Length [12:00:44]Host: 172.17.62.5:8080 [12:00:44]Content-Length: 978 [12:00:44]Content-Type: application/json [12:00:44] [12:00:44]POST finish read [12:00:44]Found Content-Length = 978 [12:00:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191358", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 27.82 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:44]execute_script... [12:00: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)191358", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 27.82 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:44]POST & json_proto [12:00:44]process_json_proto [12:00:44]json parsed OK: [12:00:44]protocol is kg_v1.0 [12:00:44]action value=close_receipt [12:00:44]process_action close_receipt [12:00:44]cmd_close_receipt [12:00:44]MH_GetDate [12:00:44]Write to MH i2c: F0 00 00 3B 27 51 [12:00:44]Write i2c OK [12:00:44]MH_I2C_Read... [12:00:44]Read from MH i2c: F0 [12:00:44]MH_I2C_Read... [12:00:44]Read from MH i2c: F0 09 00 [12:00:44]MH_I2C_Read... [12:00:44]Read from MH i2c: F0 09 00 3B 27 00 F0 FF 24 66 F4 E9 65 64 79 [12:00:44]GetLastDocTimeStamp 1713700844 [12:00:44]current date 1713700848 [12:00:44]FM_GetShiftState [12:00:44]SAM_PROTO_GetShiftState [12:00:44]wFMCommunicate request_size=4 [12:00:44]MH_SAM_APDU [12:00:44]CAPDU: 80 13 01 00 [12:00:44]Write to MH i2c: E2 08 00 3C 27 80 13 01 00 00 00 00 00 E0 [12:00:44]Write i2c OK [12:00:44]MH_I2C_Read... [12:00:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:44]Read from MH i2c: E2 [12:00:44]MH_I2C_Read... [12:00:44]Read from MH i2c: E2 0E 00 [12:00:44]MH_I2C_Read... [12:00:44]Read from MH i2c: E2 0E 00 3C 27 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 27 [12:00:44]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [12:00:44]wFMCommunicate OK [12:00:44]SAM_PROTO_GetShiftState done [12:00:44]FM_GetShiftState done [12:00:44]opened in 1713658965 [12:00:44]opened+sec_in_day 1713745365 [12:00:44]quantity*price = 200025 [12:00:44]sum+1 = 200027 [12:00:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 80 21.04.2024 12:00 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 27.82 сом ФМ: 0000000000874652 ФД: 76824 ФПД: 162234213068825 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T120048&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76824&fm=162234213068825&tin=02508201610067®Number=0000000000091573&sum=200000 [12:00:45]StoreToDocumentArchive [12:00:45]shift 372 fd 76824 [12:00:45]save to /storage/0372/doc_00076824 [12:00:45]save last doc name /storage/0372/doc_00076824 to /storage/kkm_last_doc_name [12:00:45]save OK [12:00:45]Clear old archive folders... [12:00:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:00:45]tlvbuf is 0186F580 [12:00:45]SAM_PROTO_ClearQueue [12:00:45]wFMCommunicate request_size=4 [12:00:45]MH_SAM_APDU [12:00:45]CAPDU: 80 09 00 00 [12:00:45]Write to MH i2c: E2 08 00 49 27 80 09 00 00 00 00 00 00 E2 [12:00:45]Write i2c OK [12:00:45]MH_I2C_Read... [12:00:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:00:45]Read from MH i2c: E2 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: E2 03 00 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: E2 03 00 49 27 00 90 00 E4 [12:00:45]RAPDU: 90 00 [12:00:45]wFMCommunicate OK [12:00:45]SAM_PROTO_ClearQueue done [12:00:45]KKMCreateOFDPacket [12:00:45]OFDProtocolAddRootSTLVToBuf [12:00:45]FM_MakeSignedData [12:00:45]FM_MakeSignedData [12:00:45]SAM_PROTO_SignData [12:00:45]wFMCommunicate request_size=4 [12:00:45]MH_SAM_APDU [12:00:45]CAPDU: 80 0D 01 02 [12:00:45]Write to MH i2c: E2 08 00 4A 27 80 0D 01 02 00 00 00 00 EA [12:00:45]Write i2c OK [12:00:45]MH_I2C_Read... [12:00:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:00:45]Read from MH i2c: E2 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: E2 03 00 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: E2 03 00 4A 27 00 90 00 E5 [12:00:45]RAPDU: 90 00 [12:00:45]wFMCommunicate OK [12:00:45]wFMCommunicate request_size=255 [12:00:45]MH_SAM_APDU [12:00:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 F0 FF 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 18 2C 01 00 35 04 06 00 93 8D 18 A3 [12:00:45]Write to MH i2c: E2 02 01 4B 27 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 F0 FF 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 18 2C 01 00 35 04 06 00 93 8D 18 A3 00 00 35 [12:00:45]Write i2c OK [12:00:45]MH_I2C_Read... [12:00:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:46]Read from MH i2c: E2 [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: E2 03 00 [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: E2 03 00 4B 27 00 90 00 E6 [12:00:46]RAPDU: 90 00 [12:00:46]wFMCommunicate OK [12:00:46]wFMCommunicate request_size=7 [12:00:46]MH_SAM_APDU [12:00:46]CAPDU: 80 0D 02 02 02 F0 19 [12:00:46]Write to MH i2c: E2 0A 00 4C 27 80 0D 02 02 02 00 F0 19 00 00 FA [12:00:46]Write i2c OK [12:00:46]MH_I2C_Read... [12:00:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:46]Read from MH i2c: E2 [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: E2 03 00 [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: E2 03 00 4C 27 00 90 00 E7 [12:00:46]RAPDU: 90 00 [12:00:46]wFMCommunicate OK [12:00:46]wFMCommunicate request_size=4 [12:00:46]MH_SAM_APDU [12:00:46]CAPDU: 80 0D 03 02 [12:00:46]Write to MH i2c: E2 08 00 4D 27 80 0D 03 02 00 00 00 00 EF [12:00:46]Write i2c OK [12:00:46]MH_I2C_Read... [12:00:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:00:46]Read from MH i2c: E2 [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: E2 0B 00 [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: E2 0B 00 4D 27 00 D0 46 92 2F 3E FA 72 52 90 00 C3 [12:00:46]RAPDU: D0 46 92 2F 3E FA 72 52 90 00 [12:00:46]wFMCommunicate OK [12:00:46]SAM_PROTO_SignData done [12:00:46]FM_MakeSignedData done [12:00:46]CreateOFDProtocolMessage [12:00:46]wFMCommunicate request_size=4 [12:00:46]MH_SAM_APDU [12:00:46]CAPDU: 80 11 00 00 [12:00:46]Write to MH i2c: E2 08 00 4E 27 80 11 00 00 00 00 00 00 EF [12:00:46]Write i2c OK [12:00:46]MH_I2C_Read... [12:00:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:46]Read from MH i2c: E2 [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: E2 17 00 [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: E2 17 00 4E 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 42 [12:00:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:00:46]wFMCommunicate OK [12:00:46]CreateOFDProtocolMessage done [12:00:46]OFDSenderStorePacket 76824 [12:00:46]StoreOFDPacket docnum=76824 [12:00:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 41 63 04 01 BA 39 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 F0 FF 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 18 2C 01 00 35 04 06 00 93 8D 18 A3 F0 19 D0 46 92 2F 3E FA 72 52 [12:00:46]CheckFolder [12:00:46]dirname=/storage/ofd_packets [12:00:46]CheckFolder done [12:00:46]ProducePacketName [12:00:46]name=ofd_packets/00076824 [12:00:46]NVStorageSaveData ofd_packets/00076824 [12:00:46]File name is /storage/ofd_packets/00076824 [12:00:46]Write 298 bytes [12:00:46]NVStorageSaveData done [12:00:46]OFDSenderStorePacket done [12:00:46]KKMCreateOFDPacket done [12:00:46]NVStorageSaveData kkm_last_timestamp [12:00:46]File name is /storage/kkm_last_timestamp [12:00:46]Write 4 bytes [12:00:46]NVStorageSaveData done [12:00:46]ExternCall_PrintAddStr [12:00:46]wPrintStart [12:00:46]Write to MH i2c: 01 00 00 4F 27 76 [12:00:46]Write i2c OK [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: 01 [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: 01 07 00 [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: 01 07 00 4F 27 00 00 00 00 00 FF 0F 8B [12:00:46]RasterBufferAndPrint [12:00:46]line Счет N : (1)191358 [12:00:46]line ИНН: 02508201610067 [12:00:46]line Контрольно-Кассовый Чек [12:00:46]line ПРОДАЖА [12:00:46]line ТРК (МРК, ГНК) : 13 [12:00:46]line Товар: 2710194210 [12:00:46]line ДТ-К-5 [12:00:46]line 27.820 * 71.90 [12:00:46]line = 2000.26 [12:00:46]line НДС 12% НСП 1% [12:00:46]line > о реализуемом товаре [12:00:46]line ОКРУГЛЕНИЕ: -0.26 [12:00:46]line ИТОГО: 2000.00 [12:00:46]line Внесено: 2000.00 [12:00:46]line СДАЧА: 0.00 [12:00:46]line НСП 1% : 17.70 [12:00:46]line НДС 12% : 212.42 [12:00:46]line Наличными: 2000.00 [12:00:46]line Безнал.: 0.00 [12:00:46]line Место: АЗС № 106 "Партнер Нефть" [12:00:46]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [12:00:46]line СНО: Общий режим [12:00:46]line Чек 80 21.04.2024 12:00 [12:00:46]line Смена: 372 ФФД: 1.0 [12:00:46]line ЗНМ: 0300000141 [12:00:46]line РНМ: 0000000000091573 [12:00:46]line Версия ККМ: 001 [12:00:46]line [12:00:46]line Дисконтная программа [12:00:46]line ДТ [12:00:46]line номер 106 [12:00:46]line сэкономлено 27.82 сом [12:00:46]line ФМ: 0000000000874652 [12:00:46]line ФД: 76824 [12:00:46]line ФПД: 162234213068825 [12:00:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T120048&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76824&fm=162234213068825&tin=02508201610067®Number=0000000000091573&sum=200000 [12:00:46]OFD Sender: Processing packet 76824 [packets to send 129, broken 128] [12:00:46]ProducePacketName [12:00:46]name=ofd_packets/00076824 [12:00:46]OFD Sender: To server: pG, [12:00:46]CommunicateWithHost lk.salyk.kg:30040 [12:00:46]ConnectInit lk.salyk.kg [12:00:46]written 0, free lines is 4095 [12:00:46]Connected sock=9 [12:00:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 41 63 04 01 BA 39 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 F0 FF 24 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 18 2C 01 00 35 04 06 00 93 8D 18 A3 F0 19 D0 46 92 2F 3E FA 72 52 [12:00:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 6B 5E 47 00 A7 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 18 2C 01 00 F4 03 04 00 76 A7 24 66 B6 04 01 00 00 CA 9A F9 0B 1C 4B 83 E2 [12:00:47]CommunicateWithHost err = 0 [12:00:47]CheckOFDResponse [12:00:47]1017 (14) - 77093643461234 [12:00:47]1041 (16) - 0000000000874652 [12:00:47]1040 (4) - 76824 [12:00:47]1012 (4) - 21.04.2024 05:43 [12:00:47]1206 (1) - 0 [12:00:47]OFD Sender: Remove packet 76824 [12:00:47]ProducePacketName [12:00:47]name=ofd_packets/00076824 [12:00:47]NVStorageDeleteData [12:00:47]Write to MH i2c: 01 00 00 7E 27 A5 [12:00:47]Write i2c OK [12:00:47]MH_I2C_Read... [12:00:47]Read from MH i2c: 01 [12:00:47]MH_I2C_Read... [12:00:47]Read from MH i2c: 01 07 00 [12:00:47]MH_I2C_Read... [12:00:47]Read from MH i2c: 01 07 00 7E 27 00 00 00 00 00 B5 0C 6D [12:00:47]RasterBufferAndPrint [12:00:47]line [12:00:47]line [12:00:47]line [12:00:47]line [12:00:47]line [12:00:47]written 0, free lines is 3266 [12:00:47]MH_Cut [12:00:47]Write to MH i2c: D1 01 00 85 27 01 7E [12:00:47]Write i2c OK [12:00:47]MH_I2C_Read... [12:00:47]Read from MH i2c: D1 [12:00:47]MH_I2C_Read... [12:00:47]Read from MH i2c: D1 01 00 [12:00:47]MH_I2C_Read... [12:00:47]Read from MH i2c: D1 01 00 85 27 00 7D [12:00:47]Write to MH i2c: 01 00 00 86 27 AD [12:00:47]Write i2c OK [12:00:47]MH_I2C_Read... [12:00:47]OFD Sender: No OFD packet to send [12:00:47]*** Cut start [12:00:47]*** Partial cut [12:00:47]*** CUTSNS_PIN = 1 [12:00:47]*** CUTSNS_PIN = 0 [12:00:48]*** Brake cut motor [12:00:48]Read from MH i2c: 01 [12:00:48]MH_I2C_Read... [12:00:48]*** Stop cut motor [12:00:48]*** Cut end [12:00:48]Read from MH i2c: 01 07 00 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: 01 07 00 86 27 00 00 00 00 00 FF 0F C2 [12:00:48]process_action close_receipt done [12:00:48]requested_data is exist [12:00:48]produce_requested_data [12:00:48]requested_item fm.sn is exist - process it [12:00:48]wFMCommunicate request_size=4 [12:00:48]MH_SAM_APDU [12:00:48]CAPDU: 80 11 00 00 [12:00:48]Write to MH i2c: E2 08 00 87 27 80 11 00 00 00 00 00 00 28 [12:00:48]Write i2c OK [12:00:48]MH_I2C_Read... [12:00:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:48]Read from MH i2c: E2 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 17 00 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 17 00 87 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 7B [12:00:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:00:48]wFMCommunicate OK [12:00:48]requested_item fd.num is exist - process it [12:00:48]SAM_PROTO_GetFieldsCounters [12:00:48]wFMCommunicate request_size=4 [12:00:48]MH_SAM_APDU [12:00:48]CAPDU: 80 13 00 00 [12:00:48]Write to MH i2c: E2 08 00 88 27 80 13 00 00 00 00 00 00 2B [12:00:48]Write i2c OK [12:00:48]MH_I2C_Read... [12:00:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:00:48]Read from MH i2c: E2 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 62 00 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 62 00 88 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 18 2C 01 00 0E 04 04 00 74 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 F6 [12:00: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 18 2C 01 00 0E 04 04 00 74 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:00:48]wFMCommunicate OK [12:00:48]SAM_PROTO_GetFieldsCounters done [12:00:48]requested_item shift.num is exist - process it [12:00:48]requested_item shift.opened is exist - process it [12:00:48]req_shift_opened [12:00:48]FM_GetShiftState [12:00:48]SAM_PROTO_GetShiftState [12:00:48]wFMCommunicate request_size=4 [12:00:48]MH_SAM_APDU [12:00:48]CAPDU: 80 13 01 00 [12:00:48]Write to MH i2c: E2 08 00 89 27 80 13 01 00 00 00 00 00 2D [12:00:48]Write i2c OK [12:00:48]MH_I2C_Read... [12:00:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:48]Read from MH i2c: E2 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 0E 00 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 0E 00 89 27 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 74 [12:00:48]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [12:00:48]wFMCommunicate OK [12:00:48]SAM_PROTO_GetShiftState done [12:00:48]FM_GetShiftState done [12:00:48]req_shift_opened done [12:00:48]requested_item shift.open_date is exist - process it [12:00:48]req_shift_open_date [12:00:48]req_shift_open_date done [12:00:48]produce_requested_data done [12:00:48]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76824,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [12:00:48]process_action_free close_receipt [12:00:48]json_value_free [12:00:48]json_value_free done [12:00:48]process_json_proto returns [12:00:48]Send response to host [12:00:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76824,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [12:00:48]free response buf [12:00:48]execute_script done [12:00:48]execute_script returns [12:00:48]free content buf [12:00:48]Sock 7.Close socket [12:00:48]Sock 7.Thread stoped [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:27]OFD Sender: No OFD packet to send [12:02:32]OFD Sender: No OFD packet to send [12:02:37]OFD Sender: No OFD packet to send [12:02:42]OFD Sender: No OFD packet to send [12:02:47]OFD Sender: No OFD packet to send [12:02:52]OFD Sender: No OFD packet to send [12:02:57]OFD Sender: No OFD packet to send [12:03:02]OFD Sender: No OFD packet to send [12:03:07]OFD Sender: No OFD packet to send [12:03:12]OFD Sender: No OFD packet to send [12:03:17]OFD Sender: No OFD packet to send [12:03:22]OFD Sender: No OFD packet to send [12:03:27]OFD Sender: No OFD packet to send [12:03:32]OFD Sender: No OFD packet to send [12:03:37]OFD Sender: No OFD packet to send [12:03:42]OFD Sender: No OFD packet to send [12:03:47]OFD Sender: No OFD packet to send [12:03:52]OFD Sender: No OFD packet to send [12:03:57]OFD Sender: No OFD packet to send [12:04:02]OFD Sender: No OFD packet to send [12:04:07]accept exits with 10 [12:04:07]New connection [12:04:07]New thread 3067338084 created [12:04:07]Thread 3067481444 joined [12:04:07]Waiting for new connection... [12:04:07] Sock 10.Parse request [12:04:07]Sock 10.Check first char [12:04:07]Sock 10.First char is OK [12:04:07]request: POST /json_proto HTTP/1.0 [12:04:07]Method: POST [12:04:07]URL: /json_proto [12:04:07]Method is POST - this is cgi request [12:04:07]url: /json_proto [12:04:07]query_string will be loaded in cgi processing [12:04:07]execute_cgi json_proto POST (null) [12:04:07]execute_cgi path=json_proto method=POST [12:04:07]POST find Content-Length [12:04:07]Host: 172.17.62.5:8080 [12:04:07]Content-Length: 678 [12:04:07]Content-Type: application/json [12:04:07] [12:04:07]POST finish read [12:04:07]Found Content-Length = 678 [12:04:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 12.430, "sum" : 800.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:07]execute_script... [12: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)191360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 12.430, "sum" : 800.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:07]POST & json_proto [12:04:07]process_json_proto [12:04:07]json parsed OK: [12:04:07]protocol is kg_v1.0 [12:04:07]action value=close_receipt [12:04:07]process_action close_receipt [12:04:07]cmd_close_receipt [12:04:07]MH_GetDate [12:04:07]Write to MH i2c: F0 00 00 8A 27 A0 [12:04:07]Write i2c OK [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: F0 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: F0 09 00 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: F0 09 00 8A 27 00 BB 00 25 66 F4 E9 65 64 95 [12:04:07]GetLastDocTimeStamp 1713700848 [12:04:07]current date 1713701051 [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 8B 27 80 13 01 00 00 00 00 00 2F [12:04:07]Write i2c OK [12:04:07]MH_I2C_Read... [12:04:07]OFD Sender: No OFD packet to send [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 8B 27 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 76 [12:04:07]RAPDU: 09 00 01 55 5C 24 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]opened in 1713658965 [12:04:07]opened+sec_in_day 1713745365 [12:04:07]quantity*price = 80049 [12:04:07]sum+1 = 80050 [12:04:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.01 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 81 21.04.2024 12:04 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76825 ФПД: 109415647598684 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T120412&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76825&fm=109415647598684&tin=02508201610067®Number=0000000000091573&sum=80000 [12:04:09]StoreToDocumentArchive [12:04:09]shift 372 fd 76825 [12:04:09]save to /storage/0372/doc_00076825 [12:04:09]save last doc name /storage/0372/doc_00076825 to /storage/kkm_last_doc_name [12:04:09]save OK [12:04:09]Clear old archive folders... [12:04:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:04:09]tlvbuf is 018C2560 [12:04:09]SAM_PROTO_ClearQueue [12:04:09]wFMCommunicate request_size=4 [12:04:09]MH_SAM_APDU [12:04:09]CAPDU: 80 09 00 00 [12:04:09]Write to MH i2c: E2 08 00 98 27 80 09 00 00 00 00 00 00 31 [12:04:09]Write i2c OK [12:04:09]MH_I2C_Read... [12:04:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:04:09]Read from MH i2c: E2 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: E2 03 00 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: E2 03 00 98 27 00 90 00 33 [12:04:09]RAPDU: 90 00 [12:04:09]wFMCommunicate OK [12:04:09]SAM_PROTO_ClearQueue done [12:04:09]KKMCreateOFDPacket [12:04:09]OFDProtocolAddRootSTLVToBuf [12:04:09]FM_MakeSignedData [12:04:09]FM_MakeSignedData [12:04:09]SAM_PROTO_SignData [12:04:09]wFMCommunicate request_size=4 [12:04:09]MH_SAM_APDU [12:04:09]CAPDU: 80 0D 01 02 [12:04:09]Write to MH i2c: E2 08 00 99 27 80 0D 01 02 00 00 00 00 39 [12:04:09]Write i2c OK [12:04:09]MH_I2C_Read... [12:04:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:04:09]Read from MH i2c: E2 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: E2 03 00 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: E2 03 00 99 27 00 90 00 34 [12:04:09]RAPDU: 90 00 [12:04:09]wFMCommunicate OK [12:04:09]wFMCommunicate request_size=255 [12:04:09]MH_SAM_APDU [12:04:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 30 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 B1 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 35 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 51 00 00 00 F4 03 04 00 BC 00 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 19 2C 01 00 35 04 06 00 63 [12:04:09]Write to MH i2c: E2 02 01 9A 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 30 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 B1 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 35 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 51 00 00 00 F4 03 04 00 BC 00 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 19 2C 01 00 35 04 06 00 63 00 00 70 [12:04:09]Write i2c OK [12:04:09]MH_I2C_Read... [12:04:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:09]Read from MH i2c: E2 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: E2 03 00 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: E2 03 00 9A 27 00 90 00 35 [12:04:09]RAPDU: 90 00 [12:04:09]wFMCommunicate OK [12:04:09]wFMCommunicate request_size=10 [12:04:09]MH_SAM_APDU [12:04:09]CAPDU: 80 0D 02 02 05 83 50 CE D8 5C [12:04:09]Write to MH i2c: E2 0D 00 9B 27 80 0D 02 02 05 00 83 50 CE D8 5C 00 00 1B [12:04:09]Write i2c OK [12:04:09]MH_I2C_Read... [12:04:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:09]Read from MH i2c: E2 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: E2 03 00 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: E2 03 00 9B 27 00 90 00 36 [12:04:09]RAPDU: 90 00 [12:04:09]wFMCommunicate OK [12:04:09]wFMCommunicate request_size=4 [12:04:09]MH_SAM_APDU [12:04:09]CAPDU: 80 0D 03 02 [12:04:09]Write to MH i2c: E2 08 00 9C 27 80 0D 03 02 00 00 00 00 3E [12:04:09]Write i2c OK [12:04:09]MH_I2C_Read... [12:04:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:04:09]Read from MH i2c: E2 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: E2 0B 00 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: E2 0B 00 9C 27 00 EB B3 55 BC D9 D5 67 55 90 00 58 [12:04:09]RAPDU: EB B3 55 BC D9 D5 67 55 90 00 [12:04:09]wFMCommunicate OK [12:04:09]SAM_PROTO_SignData done [12:04:09]FM_MakeSignedData done [12:04:09]CreateOFDProtocolMessage [12:04:09]wFMCommunicate request_size=4 [12:04:09]MH_SAM_APDU [12:04:09]CAPDU: 80 11 00 00 [12:04:09]Write to MH i2c: E2 08 00 9D 27 80 11 00 00 00 00 00 00 3E [12:04:09]Write i2c OK [12:04:09]MH_I2C_Read... [12:04:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:09]Read from MH i2c: E2 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: E2 17 00 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: E2 17 00 9D 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 91 [12:04:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:04:09]wFMCommunicate OK [12:04:09]CreateOFDProtocolMessage done [12:04:09]OFDSenderStorePacket 76825 [12:04:09]StoreOFDPacket docnum=76825 [12:04:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 08 BA 07 01 5B 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 8E 30 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 B1 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 35 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 51 00 00 00 F4 03 04 00 BC 00 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 19 2C 01 00 35 04 06 00 63 83 50 CE D8 5C EB B3 55 BC D9 D5 67 55 [12:04:09]CheckFolder [12:04:09]dirname=/storage/ofd_packets [12:04:09]CheckFolder done [12:04:09]ProducePacketName [12:04:09]name=ofd_packets/00076825 [12:04:09]NVStorageSaveData ofd_packets/00076825 [12:04:09]File name is /storage/ofd_packets/00076825 [12:04:09]Write 301 bytes [12:04:09]NVStorageSaveData done [12:04:09]OFDSenderStorePacket done [12:04:09]KKMCreateOFDPacket done [12:04:09]NVStorageSaveData kkm_last_timestamp [12:04:09]File name is /storage/kkm_last_timestamp [12:04:09]Write 4 bytes [12:04:09]NVStorageSaveData done [12:04:09]ExternCall_PrintAddStr [12:04:09]wPrintStart [12:04:09]Write to MH i2c: 01 00 00 9E 27 C5 [12:04:09]Write i2c OK [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: 01 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: 01 07 00 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: 01 07 00 9E 27 00 00 00 00 00 FF 0F DA [12:04:09]RasterBufferAndPrint [12:04:09]line Счет N : (1)191360 [12:04:09]line ИНН: 02508201610067 [12:04:09]line Контрольно-Кассовый Чек [12:04:09]line ПРОДАЖА [12:04:09]line ТРК (МРК, ГНК) : 22 [12:04:09]line Товар: 2710124130 [12:04:09]line Аи-92-К-5 [12:04:09]line 12.430 * 64.40 [12:04:09]line = 800.49 [12:04:09]line НДС 12% НСП 1% [12:04:09]line > о реализуемом товаре [12:04:09]line ОКРУГЛЕНИЕ: -0.49 [12:04:09]line ИТОГО: 800.00 [12:04:09]line Внесено: 800.00 [12:04:09]line СДАЧА: 0.00 [12:04:09]line НСП 1% : 7.08 [12:04:09]line НДС 12% : 85.01 [12:04:09]line Наличными: 800.00 [12:04:09]line Безнал.: 0.00 [12:04:09]line Место: АЗС № 106 "Партнер Нефть" [12:04:09]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [12:04:09]line СНО: Общий режим [12:04:09]line Чек 81 21.04.2024 12:04 [12:04:09]line Смена: 372 ФФД: 1.0 [12:04:09]line ЗНМ: 0300000141 [12:04:09]line РНМ: 0000000000091573 [12:04:09]line Версия ККМ: 001 [12:04:09]line ФМ: 0000000000874652 [12:04:09]line ФД: 76825 [12:04:09]line ФПД: 109415647598684 [12:04:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T120412&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76825&fm=109415647598684&tin=02508201610067®Number=0000000000091573&sum=80000 [12:04:09]written 0, free lines is 4095 [12:04:09]OFD Sender: Processing packet 76825 [packets to send 129, broken 128] [12:04:09]ProducePacketName [12:04:09]name=ofd_packets/00076825 [12:04:09]OFD Sender: To server: pG, [12:04:09]CommunicateWithHost lk.salyk.kg:30040 [12:04:09]ConnectInit lk.salyk.kg [12:04:10]Connected sock=9 [12:04:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 08 BA 07 01 5B 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 8E 30 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 B1 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 35 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 51 00 00 00 F4 03 04 00 BC 00 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 19 2C 01 00 35 04 06 00 63 83 50 CE D8 5C EB B3 55 BC D9 D5 67 55 [12:04:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 7C 43 47 00 51 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 34 36 35 32 10 04 04 00 19 2C 01 00 F4 03 04 00 41 A8 24 66 B6 04 01 00 00 6C 4C DA BB C4 CC 13 25 [12:04:10]CommunicateWithHost err = 0 [12:04:10]CheckOFDResponse [12:04:10]1017 (14) - 77093643461234 [12:04:10]1041 (16) - 0000000000874652 [12:04:10]1040 (4) - 76825 [12:04:10]1012 (4) - 21.04.2024 05:46 [12:04:10]1206 (1) - 0 [12:04:10]OFD Sender: Remove packet 76825 [12:04:10]ProducePacketName [12:04:10]name=ofd_packets/00076825 [12:04:10]NVStorageDeleteData [12:04:10]Write to MH i2c: 01 00 00 C8 27 EF [12:04:10]Write i2c OK [12:04:10]MH_I2C_Read... [12:04:10]Read from MH i2c: 01 [12:04:10]MH_I2C_Read... [12:04:10]Read from MH i2c: 01 07 00 [12:04:10]MH_I2C_Read... [12:04:10]Read from MH i2c: 01 07 00 C8 27 00 00 00 00 00 FE 0C 00 [12:04:10]RasterBufferAndPrint [12:04:10]line [12:04:10]line [12:04:10]line [12:04:10]line [12:04:10]line [12:04:10]written 0, free lines is 3334 [12:04:10]MH_Cut [12:04:10]Write to MH i2c: D1 01 00 CF 27 01 C8 [12:04:10]Write i2c OK [12:04:10]MH_I2C_Read... [12:04:10]Read from MH i2c: D1 [12:04:10]MH_I2C_Read... [12:04:10]Read from MH i2c: D1 01 00 [12:04:10]MH_I2C_Read... [12:04:10]Read from MH i2c: D1 01 00 CF 27 00 C7 [12:04:10]Write to MH i2c: 01 00 00 D0 27 F7 [12:04:10]Write i2c OK [12:04:10]MH_I2C_Read... [12:04:10]OFD Sender: No OFD packet to send [12:04:11]*** Cut start [12:04:11]*** Partial cut [12:04:11]*** CUTSNS_PIN = 1 [12:04:11]*** CUTSNS_PIN = 0 [12:04:11]*** Brake cut motor [12:04:11]Read from MH i2c: 01 [12:04:11]MH_I2C_Read... [12:04:11]*** Stop cut motor [12:04:11]*** Cut end [12:04:11]Read from MH i2c: 01 07 00 [12:04:11]MH_I2C_Read... [12:04:11]Read from MH i2c: 01 07 00 D0 27 00 00 00 00 00 FF 0F 0C [12:04:11]process_action close_receipt done [12:04:11]requested_data is exist [12:04:11]produce_requested_data [12:04:11]requested_item fm.sn is exist - process it [12:04:11]wFMCommunicate request_size=4 [12:04:11]MH_SAM_APDU [12:04:11]CAPDU: 80 11 00 00 [12:04:11]Write to MH i2c: E2 08 00 D1 27 80 11 00 00 00 00 00 00 72 [12:04:11]Write i2c OK [12:04:11]MH_I2C_Read... [12:04:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:11]Read from MH i2c: E2 [12:04:11]MH_I2C_Read... [12:04:11]Read from MH i2c: E2 17 00 [12:04:11]MH_I2C_Read... [12:04:11]Read from MH i2c: E2 17 00 D1 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 C5 [12:04:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:04:11]wFMCommunicate OK [12:04:11]requested_item fd.num is exist - process it [12:04:11]SAM_PROTO_GetFieldsCounters [12:04:11]wFMCommunicate request_size=4 [12:04:11]MH_SAM_APDU [12:04:11]CAPDU: 80 13 00 00 [12:04:11]Write to MH i2c: E2 08 00 D2 27 80 13 00 00 00 00 00 00 75 [12:04:11]Write i2c OK [12:04:11]MH_I2C_Read... [12:04:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:04:11]Read from MH i2c: E2 [12:04:11]MH_I2C_Read... [12:04:11]Read from MH i2c: E2 62 00 [12:04:11]MH_I2C_Read... [12:04:11]Read from MH i2c: E2 62 00 D2 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 19 2C 01 00 0E 04 04 00 74 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 44 [12: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 19 2C 01 00 0E 04 04 00 74 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:04:11]wFMCommunicate OK [12:04:11]SAM_PROTO_GetFieldsCounters done [12:04:11]requested_item shift.num is exist - process it [12:04:11]requested_item shift.opened is exist - process it [12:04:11]req_shift_opened [12:04:11]FM_GetShiftState [12:04:11]SAM_PROTO_GetShiftState [12:04:11]wFMCommunicate request_size=4 [12:04:11]MH_SAM_APDU [12:04:11]CAPDU: 80 13 01 00 [12:04:11]Write to MH i2c: E2 08 00 D3 27 80 13 01 00 00 00 00 00 77 [12:04:11]Write i2c OK [12:04:11]MH_I2C_Read... [12:04:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:11]Read from MH i2c: E2 [12:04:11]MH_I2C_Read... [12:04:11]Read from MH i2c: E2 0E 00 [12:04:11]MH_I2C_Read... [12:04:11]Read from MH i2c: E2 0E 00 D3 27 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 BE [12:04:11]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [12:04:11]wFMCommunicate OK [12:04:11]SAM_PROTO_GetShiftState done [12:04:11]FM_GetShiftState done [12:04:11]req_shift_opened done [12:04:11]requested_item shift.open_date is exist - process it [12:04:11]req_shift_open_date [12:04:11]req_shift_open_date done [12:04:11]produce_requested_data done [12:04:11]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76825,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [12:04:11]process_action_free close_receipt [12:04:11]json_value_free [12:04:11]json_value_free done [12:04:11]process_json_proto returns [12:04:11]Send response to host [12:04:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76825,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [12:04:11]free response buf [12:04:11]execute_script done [12:04:11]execute_script returns [12:04:11]free content buf [12:04:11]Sock 10.Close socket [12:04:11]Sock 10.Thread stoped [12:04:15]OFD Sender: No OFD packet to send [12:04:20]OFD Sender: No OFD packet to send [12:04:25]OFD Sender: No OFD packet to send [12:04:30]OFD Sender: No OFD packet to send [12:04:35]OFD Sender: No OFD packet to send [12:04:40]OFD Sender: No OFD packet to send [12:04:45]OFD Sender: No OFD packet to send [12:04:50]OFD Sender: No OFD packet to send [12:04:55]OFD Sender: No OFD packet to send [12:05:00]OFD Sender: No OFD packet to send [12:05:05]OFD Sender: No OFD packet to send [12:05:10]OFD Sender: No OFD packet to send [12:05:15]OFD Sender: No OFD packet to send [12:05:20]OFD Sender: No OFD packet to send [12:05:25]OFD Sender: No OFD packet to send [12:05:30]OFD Sender: No OFD packet to send [12:05:35]OFD Sender: No OFD packet to send [12:05:40]OFD Sender: No OFD packet to send [12:05:45]OFD Sender: No OFD packet to send [12:05:50]OFD Sender: No OFD packet to send [12:05:55]OFD Sender: No OFD packet to send [12:06:00]OFD Sender: No OFD packet to send [12:06:05]OFD Sender: No OFD packet to send [12:06:10]OFD Sender: No OFD packet to send [12:06:15]OFD Sender: No OFD packet to send [12:06:20]OFD Sender: No OFD packet to send [12:06:25]OFD Sender: No OFD packet to send [12:06:30]OFD Sender: No OFD packet to send [12:06:35]OFD Sender: No OFD packet to send [12:06:40]OFD Sender: No OFD packet to send [12:06:45]OFD Sender: No OFD packet to send [12:06:50]OFD Sender: No OFD packet to send [12:06:55]OFD Sender: No OFD packet to send [12:07:00]OFD Sender: No OFD packet to send [12:07:05]OFD Sender: No OFD packet to send [12:07:10]OFD Sender: No OFD packet to send [12:07:15]OFD Sender: No OFD packet to send [12:07:20]OFD Sender: No OFD packet to send [12:07:25]OFD Sender: No OFD packet to send [12:07:30]OFD Sender: No OFD packet to send [12:07:35]OFD Sender: No OFD packet to send [12:07:40]OFD Sender: No OFD packet to send [12:07:45]OFD Sender: No OFD packet to send [12:07:51]OFD Sender: No OFD packet to send [12:07:56]OFD Sender: No OFD packet to send [12:08:01]OFD Sender: No OFD packet to send [12:08:06]OFD Sender: No OFD packet to send [12:08:11]OFD Sender: No OFD packet to send [12:08:16]OFD Sender: No OFD packet to send [12:08:21]OFD Sender: No OFD packet to send [12:08:26]OFD Sender: No OFD packet to send [12:08:31]OFD Sender: No OFD packet to send [12:08:36]OFD Sender: No OFD packet to send [12:08:41]OFD Sender: No OFD packet to send [12:08:46]OFD Sender: No OFD packet to send [12:08:51]OFD Sender: No OFD packet to send [12:08:56]OFD Sender: No OFD packet to send [12:09:01]OFD Sender: No OFD packet to send [12:09:06]OFD Sender: No OFD packet to send [12:09:11]OFD Sender: No OFD packet to send [12:09:16]OFD Sender: No OFD packet to send [12:09:21]OFD Sender: No OFD packet to send [12:09:26]OFD Sender: No OFD packet to send [12:09:31]OFD Sender: No OFD packet to send [12:09:36]OFD Sender: No OFD packet to send [12:09:41]OFD Sender: No OFD packet to send [12:09:46]OFD Sender: No OFD packet to send [12:09:51]OFD Sender: No OFD packet to send [12:09:56]OFD Sender: No OFD packet to send [12:10:00]accept exits with 7 [12:10:00]New connection [12:10:00]New thread 3067481444 created [12:10:00]Thread 3067338084 joined [12:10:00]Waiting for new connection... [12:10:00] Sock 7.Parse request [12:10:00]Sock 7.Check first char [12:10:00]Sock 7.First char is OK [12:10:00]request: POST /json_proto HTTP/1.0 [12:10:00]Method: POST [12:10:00]URL: /json_proto [12:10:00]Method is POST - this is cgi request [12:10:00]url: /json_proto [12:10:00]query_string will be loaded in cgi processing [12:10:00]execute_cgi json_proto POST (null) [12:10:00]execute_cgi path=json_proto method=POST [12:10:00]POST find Content-Length [12:10:00]Host: 172.17.62.5:8080 [12:10:00]Content-Length: 682 [12:10:00]Content-Type: application/json [12:10:00] [12:10:00]POST finish read [12:10:00]Found Content-Length = 682 [12:10:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:10:00]execute_script... [12:10: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)191361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:10:00]POST & json_proto [12:10:00]process_json_proto [12:10:00]json parsed OK: [12:10:00]protocol is kg_v1.0 [12:10:00]action value=close_receipt [12:10:00]process_action close_receipt [12:10:00]cmd_close_receipt [12:10:00]MH_GetDate [12:10:00]Write to MH i2c: F0 00 00 D4 27 EA [12:10:00]Write i2c OK [12:10:00]MH_I2C_Read... [12:10:00]Read from MH i2c: F0 [12:10:00]MH_I2C_Read... [12:10:00]Read from MH i2c: F0 09 00 [12:10:00]MH_I2C_Read... [12:10:00]Read from MH i2c: F0 09 00 D4 27 00 1C 02 25 66 F4 E9 65 64 42 [12:10:00]GetLastDocTimeStamp 1713701052 [12:10:00]current date 1713701404 [12:10:00]FM_GetShiftState [12:10:00]SAM_PROTO_GetShiftState [12:10:00]wFMCommunicate request_size=4 [12:10:00]MH_SAM_APDU [12:10:00]CAPDU: 80 13 01 00 [12:10:00]Write to MH i2c: E2 08 00 D5 27 80 13 01 00 00 00 00 00 79 [12:10:00]Write i2c OK [12:10:00]MH_I2C_Read... [12:10:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:00]Read from MH i2c: E2 [12:10:00]MH_I2C_Read... [12:10:00]Read from MH i2c: E2 0E 00 [12:10:00]MH_I2C_Read... [12:10:00]Read from MH i2c: E2 0E 00 D5 27 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 C0 [12:10:00]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [12:10:00]wFMCommunicate OK [12:10:00]SAM_PROTO_GetShiftState done [12:10:00]FM_GetShiftState done [12:10:00]opened in 1713658965 [12:10:00]opened+sec_in_day 1713745365 [12:10:00]quantity*price = 100013 [12:10:00]sum+1 = 100014 [12:10:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 82 21.04.2024 12:10 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76826 ФПД: 161011254543996 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T121005&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76826&fm=161011254543996&tin=02508201610067®Number=0000000000091573&sum=100000 [12:10:01]StoreToDocumentArchive [12:10:01]shift 372 fd 76826 [12:10:01]save to /storage/0372/doc_00076826 [12:10:01]save last doc name /storage/0372/doc_00076826 to /storage/kkm_last_doc_name [12:10:01]save OK [12:10:01]Clear old archive folders... [12:10:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:10:01]tlvbuf is 018F4300 [12:10:01]SAM_PROTO_ClearQueue [12:10:01]wFMCommunicate request_size=4 [12:10:01]MH_SAM_APDU [12:10:01]CAPDU: 80 09 00 00 [12:10:01]Write to MH i2c: E2 08 00 E2 27 80 09 00 00 00 00 00 00 7B [12:10:01]Write i2c OK [12:10:01]MH_I2C_Read... [12:10:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:10:02]Read from MH i2c: E2 [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: E2 03 00 [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: E2 03 00 E2 27 00 90 00 7D [12:10:02]RAPDU: 90 00 [12:10:02]wFMCommunicate OK [12:10:02]SAM_PROTO_ClearQueue done [12:10:02]KKMCreateOFDPacket [12:10:02]OFDProtocolAddRootSTLVToBuf [12:10:02]FM_MakeSignedData [12:10:02]FM_MakeSignedData [12:10:02]SAM_PROTO_SignData [12:10:02]wFMCommunicate request_size=4 [12:10:02]MH_SAM_APDU [12:10:02]CAPDU: 80 0D 01 02 [12:10:02]Write to MH i2c: E2 08 00 E3 27 80 0D 01 02 00 00 00 00 83 [12:10:02]Write i2c OK [12:10:02]MH_I2C_Read... [12:10:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:10:02]Read from MH i2c: E2 [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: E2 03 00 [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: E2 03 00 E3 27 00 90 00 7E [12:10:02]RAPDU: 90 00 [12:10:02]wFMCommunicate OK [12:10:02]wFMCommunicate request_size=255 [12:10:02]MH_SAM_APDU [12:10: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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 1D 02 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 1A 2C 01 00 35 04 06 00 92 [12:10:02]Write to MH i2c: E2 02 01 E4 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 1D 02 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 1A 2C 01 00 35 04 06 00 92 00 00 9E [12:10:02]Write i2c OK [12:10:02]MH_I2C_Read... [12:10:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:02]Read from MH i2c: E2 [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: E2 03 00 [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: E2 03 00 E4 27 00 90 00 7F [12:10:02]RAPDU: 90 00 [12:10:02]wFMCommunicate OK [12:10:02]wFMCommunicate request_size=10 [12:10:02]MH_SAM_APDU [12:10:02]CAPDU: 80 0D 02 02 05 70 5A A1 C6 7C [12:10:02]Write to MH i2c: E2 0D 00 E5 27 80 0D 02 02 05 00 70 5A A1 C6 7C 00 00 3D [12:10:02]Write i2c OK [12:10:02]MH_I2C_Read... [12:10:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:02]Read from MH i2c: E2 [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: E2 03 00 [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: E2 03 00 E5 27 00 90 00 80 [12:10:02]RAPDU: 90 00 [12:10:02]wFMCommunicate OK [12:10:02]wFMCommunicate request_size=4 [12:10:02]MH_SAM_APDU [12:10:02]CAPDU: 80 0D 03 02 [12:10:02]Write to MH i2c: E2 08 00 E6 27 80 0D 03 02 00 00 00 00 88 [12:10:02]Write i2c OK [12:10:02]MH_I2C_Read... [12:10:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:10:02]Read from MH i2c: E2 [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: E2 0B 00 [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: E2 0B 00 E6 27 00 86 60 21 B9 6C 2E 79 EC 90 00 48 [12:10:02]RAPDU: 86 60 21 B9 6C 2E 79 EC 90 00 [12:10:02]wFMCommunicate OK [12:10:02]SAM_PROTO_SignData done [12:10:02]FM_MakeSignedData done [12:10:02]CreateOFDProtocolMessage [12:10:02]wFMCommunicate request_size=4 [12:10:02]MH_SAM_APDU [12:10:02]CAPDU: 80 11 00 00 [12:10:02]Write to MH i2c: E2 08 00 E7 27 80 11 00 00 00 00 00 00 88 [12:10:02]Write i2c OK [12:10:02]MH_I2C_Read... [12:10:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:02]Read from MH i2c: E2 [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: E2 17 00 [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: E2 17 00 E7 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 DB [12:10:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:10:02]wFMCommunicate OK [12:10:02]CreateOFDProtocolMessage done [12:10:02]OFDSenderStorePacket 76826 [12:10:02]StoreOFDPacket docnum=76826 [12:10:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 0C DB 07 01 2D 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 1D 02 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 1A 2C 01 00 35 04 06 00 92 70 5A A1 C6 7C 86 60 21 B9 6C 2E 79 EC [12:10:02]CheckFolder [12:10:02]dirname=/storage/ofd_packets [12:10:02]CheckFolder done [12:10:02]ProducePacketName [12:10:02]name=ofd_packets/00076826 [12:10:02]NVStorageSaveData ofd_packets/00076826 [12:10:02]File name is /storage/ofd_packets/00076826 [12:10:02]Write 301 bytes [12:10:02]NVStorageSaveData done [12:10:02]OFDSenderStorePacket done [12:10:02]KKMCreateOFDPacket done [12:10:02]NVStorageSaveData kkm_last_timestamp [12:10:02]File name is /storage/kkm_last_timestamp [12:10:02]Write 4 bytes [12:10:02]NVStorageSaveData done [12:10:02]ExternCall_PrintAddStr [12:10:02]wPrintStart [12:10:02]Write to MH i2c: 01 00 00 E8 27 0F [12:10:02]Write i2c OK [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: 01 [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: 01 07 00 [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: 01 07 00 E8 27 00 00 00 00 00 FF 0F 24 [12:10:02]RasterBufferAndPrint [12:10:02]line Счет N : (1)191361 [12:10:02]line ИНН: 02508201610067 [12:10:02]line Контрольно-Кассовый Чек [12:10:02]line ПРОДАЖА [12:10:02]line ТРК (МРК, ГНК) : 43 [12:10:02]line Товар: 2710124130 [12:10:02]line Аи-92-К-5 [12:10:02]line 15.530 * 64.40 [12:10:02]line = 1000.13 [12:10:02]line НДС 12% НСП 1% [12:10:02]line > о реализуемом товаре [12:10:02]line ОКРУГЛЕНИЕ: -0.13 [12:10:02]line ИТОГО: 1000.00 [12:10:02]line Внесено: 1000.00 [12:10:02]line СДАЧА: 0.00 [12:10:02]line НСП 1% : 8.85 [12:10:02]line НДС 12% : 106.21 [12:10:02]line Наличными: 1000.00 [12:10:02]line Безнал.: 0.00 [12:10:02]line Место: АЗС № 106 "Партнер Нефть" [12:10:02]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [12:10:02]line СНО: Общий режим [12:10:02]line Чек 82 21.04.2024 12:10 [12:10:02]line Смена: 372 ФФД: 1.0 [12:10:02]line ЗНМ: 0300000141 [12:10:02]line РНМ: 0000000000091573 [12:10:02]line Версия ККМ: 001 [12:10:02]line ФМ: 0000000000874652 [12:10:02]line ФД: 76826 [12:10:02]line ФПД: 161011254543996 [12:10:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T121005&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76826&fm=161011254543996&tin=02508201610067®Number=0000000000091573&sum=100000 [12:10:02]written 0, free lines is 4095 [12:10:02]OFD Sender: Processing packet 76826 [packets to send 129, broken 128] [12:10:02]ProducePacketName [12:10:02]name=ofd_packets/00076826 [12:10:02]OFD Sender: To server: pG, [12:10:02]CommunicateWithHost lk.salyk.kg:30040 [12:10:02]ConnectInit lk.salyk.kg [12:10:03]Connected sock=10 [12:10:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 0C DB 07 01 2D 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 1D 02 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 1A 2C 01 00 35 04 06 00 92 70 5A A1 C6 7C 86 60 21 B9 6C 2E 79 EC [12:10:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 B6 2C 47 00 C4 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 1A 2C 01 00 F4 03 04 00 A2 A9 24 66 B6 04 01 00 00 EC 35 0C F6 D9 6D 1D 0B [12:10:03]CommunicateWithHost err = 0 [12:10:03]CheckOFDResponse [12:10:03]1017 (14) - 77093643461234 [12:10:03]1041 (16) - 0000000000874652 [12:10:03]1040 (4) - 76826 [12:10:03]1012 (4) - 21.04.2024 05:52 [12:10:03]1206 (1) - 0 [12:10:03]OFD Sender: Remove packet 76826 [12:10:03]ProducePacketName [12:10:03]name=ofd_packets/00076826 [12:10:03]NVStorageDeleteData [12:10:03]Write to MH i2c: 01 00 00 12 28 3A [12:10:03]Write i2c OK [12:10:03]MH_I2C_Read... [12:10:03]Read from MH i2c: 01 [12:10:03]MH_I2C_Read... [12:10:03]Read from MH i2c: 01 07 00 [12:10:03]MH_I2C_Read... [12:10:03]Read from MH i2c: 01 07 00 12 28 00 00 00 00 00 EB 0C 38 [12:10:03]RasterBufferAndPrint [12:10:03]line [12:10:03]line [12:10:03]line [12:10:03]line [12:10:03]line [12:10:03]written 0, free lines is 3314 [12:10:03]MH_Cut [12:10:03]Write to MH i2c: D1 01 00 19 28 01 13 [12:10:03]Write i2c OK [12:10:03]MH_I2C_Read... [12:10:03]Read from MH i2c: D1 [12:10:03]MH_I2C_Read... [12:10:03]Read from MH i2c: D1 01 00 [12:10:03]MH_I2C_Read... [12:10:03]Read from MH i2c: D1 01 00 19 28 00 12 [12:10:03]Write to MH i2c: 01 00 00 1A 28 42 [12:10:03]Write i2c OK [12:10:03]MH_I2C_Read... [12:10:03]OFD Sender: No OFD packet to send [12:10:04]*** Cut start [12:10:04]*** Partial cut [12:10:04]*** CUTSNS_PIN = 1 [12:10:04]*** CUTSNS_PIN = 0 [12:10:04]*** Brake cut motor [12:10:04]Read from MH i2c: 01 [12:10:04]MH_I2C_Read... [12:10:04]*** Stop cut motor [12:10:04]*** Cut end [12:10:04]Read from MH i2c: 01 07 00 [12:10:04]MH_I2C_Read... [12:10:04]Read from MH i2c: 01 07 00 1A 28 00 00 00 00 00 FF 0F 57 [12:10:04]process_action close_receipt done [12:10:04]requested_data is exist [12:10:04]produce_requested_data [12:10:04]requested_item fm.sn is exist - process it [12:10:04]wFMCommunicate request_size=4 [12:10:04]MH_SAM_APDU [12:10:04]CAPDU: 80 11 00 00 [12:10:04]Write to MH i2c: E2 08 00 1B 28 80 11 00 00 00 00 00 00 BD [12:10:04]Write i2c OK [12:10:04]MH_I2C_Read... [12:10:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:04]Read from MH i2c: E2 [12:10:04]MH_I2C_Read... [12:10:04]Read from MH i2c: E2 17 00 [12:10:04]MH_I2C_Read... [12:10:04]Read from MH i2c: E2 17 00 1B 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 10 [12:10:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:10:04]wFMCommunicate OK [12:10:04]requested_item fd.num is exist - process it [12:10:04]SAM_PROTO_GetFieldsCounters [12:10:04]wFMCommunicate request_size=4 [12:10:04]MH_SAM_APDU [12:10:04]CAPDU: 80 13 00 00 [12:10:04]Write to MH i2c: E2 08 00 1C 28 80 13 00 00 00 00 00 00 C0 [12:10:04]Write i2c OK [12:10:04]MH_I2C_Read... [12:10:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:04]Read from MH i2c: E2 [12:10:04]MH_I2C_Read... [12:10:04]Read from MH i2c: E2 62 00 [12:10:04]MH_I2C_Read... [12:10:04]Read from MH i2c: E2 62 00 1C 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 1A 2C 01 00 0E 04 04 00 74 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 93 [12:10: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 1A 2C 01 00 0E 04 04 00 74 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:10:04]wFMCommunicate OK [12:10:04]SAM_PROTO_GetFieldsCounters done [12:10:04]requested_item shift.num is exist - process it [12:10:04]requested_item shift.opened is exist - process it [12:10:04]req_shift_opened [12:10:04]FM_GetShiftState [12:10:04]SAM_PROTO_GetShiftState [12:10:04]wFMCommunicate request_size=4 [12:10:04]MH_SAM_APDU [12:10:04]CAPDU: 80 13 01 00 [12:10:04]Write to MH i2c: E2 08 00 1D 28 80 13 01 00 00 00 00 00 C2 [12:10:04]Write i2c OK [12:10:04]MH_I2C_Read... [12:10:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:04]Read from MH i2c: E2 [12:10:04]MH_I2C_Read... [12:10:04]Read from MH i2c: E2 0E 00 [12:10:04]MH_I2C_Read... [12:10:04]Read from MH i2c: E2 0E 00 1D 28 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 09 [12:10:04]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [12:10:04]wFMCommunicate OK [12:10:04]SAM_PROTO_GetShiftState done [12:10:04]FM_GetShiftState done [12:10:04]req_shift_opened done [12:10:04]requested_item shift.open_date is exist - process it [12:10:04]req_shift_open_date [12:10:04]req_shift_open_date done [12:10:04]produce_requested_data done [12:10:04]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76826,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [12:10:04]process_action_free close_receipt [12:10:04]json_value_free [12:10:04]json_value_free done [12:10:04]process_json_proto returns [12:10:04]Send response to host [12:10:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76826,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [12:10:04]free response buf [12:10:04]execute_script done [12:10:04]execute_script returns [12:10:04]free content buf [12:10:04]Sock 7.Close socket [12:10:04]Sock 7.Thread stoped [12:10:08]OFD Sender: No OFD packet to send [12:10:13]OFD Sender: No OFD packet to send [12:10:18]OFD Sender: No OFD packet to send [12:10:23]OFD Sender: No OFD packet to send [12:10:28]OFD Sender: No OFD packet to send [12:10:33]OFD Sender: No OFD packet to send [12:10:38]OFD Sender: No OFD packet to send [12:10:43]OFD Sender: No OFD packet to send [12:10:48]OFD Sender: No OFD packet to send [12:10:53]OFD Sender: No OFD packet to send [12:10:58]OFD Sender: No OFD packet to send [12:11:03]OFD Sender: No OFD packet to send [12:11:08]OFD Sender: No OFD packet to send [12:11:13]OFD Sender: No OFD packet to send [12:11:18]OFD Sender: No OFD packet to send [12:11:23]OFD Sender: No OFD packet to send [12:11:28]OFD Sender: No OFD packet to send [12:11:33]OFD Sender: No OFD packet to send [12:11:38]OFD Sender: No OFD packet to send [12:11:43]OFD Sender: No OFD packet to send [12:11:48]OFD Sender: No OFD packet to send [12:11:53]OFD Sender: No OFD packet to send [12:11:58]OFD Sender: No OFD packet to send [12:12:03]OFD Sender: No OFD packet to send [12:12:08]OFD Sender: No OFD packet to send [12:12:13]OFD Sender: No OFD packet to send [12:12:18]OFD Sender: No OFD packet to send [12:12:23]OFD Sender: No OFD packet to send [12:12:28]OFD Sender: No OFD packet to send [12:12:33]OFD Sender: No OFD packet to send [12:12:38]OFD Sender: No OFD packet to send [12:12:43]OFD Sender: No OFD packet to send [12:12:48]OFD Sender: No OFD packet to send [12:12:53]OFD Sender: No OFD packet to send [12:12:58]OFD Sender: No OFD packet to send [12:13:03]OFD Sender: No OFD packet to send [12:13:08]OFD Sender: No OFD packet to send [12:13:13]OFD Sender: No OFD packet to send [12:13:18]OFD Sender: No OFD packet to send [12:13:23]OFD Sender: No OFD packet to send [12:13:28]OFD Sender: No OFD packet to send [12:13:33]OFD Sender: No OFD packet to send [12:13:38]OFD Sender: No OFD packet to send [12:13:43]OFD Sender: No OFD packet to send [12:13:48]OFD Sender: No OFD packet to send [12:13:53]OFD Sender: No OFD packet to send [12:13:59]OFD Sender: No OFD packet to send [12:14:04]OFD Sender: No OFD packet to send [12:14:09]OFD Sender: No OFD packet to send [12:14:14]OFD Sender: No OFD packet to send [12:14:19]OFD Sender: No OFD packet to send [12:14:24]OFD Sender: No OFD packet to send [12:14:29]OFD Sender: No OFD packet to send [12:14:34]OFD Sender: No OFD packet to send [12:14:39]OFD Sender: No OFD packet to send [12:14:44]OFD Sender: No OFD packet to send [12:14:49]OFD Sender: No OFD packet to send [12:14:54]OFD Sender: No OFD packet to send [12:14:59]OFD Sender: No OFD packet to send [12:15:04]OFD Sender: No OFD packet to send [12:15:09]OFD Sender: No OFD packet to send [12:15:14]OFD Sender: No OFD packet to send [12:15:19]OFD Sender: No OFD packet to send [12:15:24]OFD Sender: No OFD packet to send [12:15:29]OFD Sender: No OFD packet to send [12:15:34]OFD Sender: No OFD packet to send [12:15:39]OFD Sender: No OFD packet to send [12:15:44]OFD Sender: No OFD packet to send [12:15:49]OFD Sender: No OFD packet to send [12:15:54]OFD Sender: No OFD packet to send [12:15:59]OFD Sender: No OFD packet to send [12:16:04]OFD Sender: No OFD packet to send [12:16:09]OFD Sender: No OFD packet to send [12:16:14]OFD Sender: No OFD packet to send [12:16:19]OFD Sender: No OFD packet to send [12:16:24]OFD Sender: No OFD packet to send [12:16:29]OFD Sender: No OFD packet to send [12:16:34]OFD Sender: No OFD packet to send [12:16:39]OFD Sender: No OFD packet to send [12:16:44]OFD Sender: No OFD packet to send [12:16:49]OFD Sender: No OFD packet to send [12:16:54]OFD Sender: No OFD packet to send [12:16:59]OFD Sender: No OFD packet to send [12:17:04]OFD Sender: No OFD packet to send [12:17:09]OFD Sender: No OFD packet to send [12:17:14]OFD Sender: No OFD packet to send [12:17:19]OFD Sender: No OFD packet to send [12:17:24]OFD Sender: No OFD packet to send [12:17:29]OFD Sender: No OFD packet to send [12:17:34]OFD Sender: No OFD packet to send [12:17:39]OFD Sender: No OFD packet to send [12:17:44]OFD Sender: No OFD packet to send [12:17:49]OFD Sender: No OFD packet to send [12:17:54]OFD Sender: No OFD packet to send [12:17:59]OFD Sender: No OFD packet to send [12:18:04]OFD Sender: No OFD packet to send [12:18:09]OFD Sender: No OFD packet to send [12:18:14]OFD Sender: No OFD packet to send [12:18:19]OFD Sender: No OFD packet to send [12:18:24]OFD Sender: No OFD packet to send [12:18:29]OFD Sender: No OFD packet to send [12:18:34]OFD Sender: No OFD packet to send [12:18:39]OFD Sender: No OFD packet to send [12:18:44]OFD Sender: No OFD packet to send [12:18:49]OFD Sender: No OFD packet to send [12:18:54]OFD Sender: No OFD packet to send [12:18:59]OFD Sender: No OFD packet to send [12:19:04]OFD Sender: No OFD packet to send [12:19:09]OFD Sender: No OFD packet to send [12:19:14]OFD Sender: No OFD packet to send [12:19:19]OFD Sender: No OFD packet to send [12:19:24]OFD Sender: No OFD packet to send [12:19:29]OFD Sender: No OFD packet to send [12:19:34]OFD Sender: No OFD packet to send [12:19:39]OFD Sender: No OFD packet to send [12:19:44]OFD Sender: No OFD packet to send [12:19:49]OFD Sender: No OFD packet to send [12:19:54]OFD Sender: No OFD packet to send [12:19:59]OFD Sender: No OFD packet to send [12:20:04]OFD Sender: No OFD packet to send [12:20:09]OFD Sender: No OFD packet to send [12:20:14]OFD Sender: No OFD packet to send [12:20:19]OFD Sender: No OFD packet to send [12:20:24]OFD Sender: No OFD packet to send [12:20:29]OFD Sender: No OFD packet to send [12:20:34]OFD Sender: No OFD packet to send [12:20:39]OFD Sender: No OFD packet to send [12:20:44]OFD Sender: No OFD packet to send [12:20:49]OFD Sender: No OFD packet to send [12:20:54]OFD Sender: No OFD packet to send [12:20:59]OFD Sender: No OFD packet to send [12:21:04]OFD Sender: No OFD packet to send [12:21:09]OFD Sender: No OFD packet to send [12:21:14]OFD Sender: No OFD packet to send [12:21:19]OFD Sender: No OFD packet to send [12:21:24]OFD Sender: No OFD packet to send [12:21:29]OFD Sender: No OFD packet to send [12:21:34]OFD Sender: No OFD packet to send [12:21:39]OFD Sender: No OFD packet to send [12:21:44]OFD Sender: No OFD packet to send [12:21:49]OFD Sender: No OFD packet to send [12:21:54]OFD Sender: No OFD packet to send [12:21:59]OFD Sender: No OFD packet to send [12:22:04]OFD Sender: No OFD packet to send [12:22:09]OFD Sender: No OFD packet to send [12:22:14]OFD Sender: No OFD packet to send [12:22:19]OFD Sender: No OFD packet to send [12:22:24]OFD Sender: No OFD packet to send [12:22:29]OFD Sender: No OFD packet to send [12:22:34]OFD Sender: No OFD packet to send [12:22:39]OFD Sender: No OFD packet to send [12:22:44]OFD Sender: No OFD packet to send [12:22:49]OFD Sender: No OFD packet to send [12:22:54]OFD Sender: No OFD packet to send [12:22:59]OFD Sender: No OFD packet to send [12:23:04]OFD Sender: No OFD packet to send [12:23:09]OFD Sender: No OFD packet to send [12:23:14]OFD Sender: No OFD packet to send [12:23:19]OFD Sender: No OFD packet to send [12:23:24]OFD Sender: No OFD packet to send [12:23:29]OFD Sender: No OFD packet to send [12:23:34]OFD Sender: No OFD packet to send [12:23:39]OFD Sender: No OFD packet to send [12:23:44]OFD Sender: No OFD packet to send [12:23:49]OFD Sender: No OFD packet to send [12:23:54]OFD Sender: No OFD packet to send [12:23:59]OFD Sender: No OFD packet to send [12:24:04]OFD Sender: No OFD packet to send [12:24:09]OFD Sender: No OFD packet to send [12:24:14]OFD Sender: No OFD packet to send [12:24:19]OFD Sender: No OFD packet to send [12:24:24]OFD Sender: No OFD packet to send [12:24:29]OFD Sender: No OFD packet to send [12:24:34]OFD Sender: No OFD packet to send [12:24:39]OFD Sender: No OFD packet to send [12:24:44]OFD Sender: No OFD packet to send [12:24:49]OFD Sender: No OFD packet to send [12:24:54]OFD Sender: No OFD packet to send [12:24:59]OFD Sender: No OFD packet to send [12:25:04]OFD Sender: No OFD packet to send [12:25:09]OFD Sender: No OFD packet to send [12:25:14]OFD Sender: No OFD packet to send [12:25:19]OFD Sender: No OFD packet to send [12:25:24]OFD Sender: No OFD packet to send [12:25:29]OFD Sender: No OFD packet to send [12:25:34]OFD Sender: No OFD packet to send [12:25:39]OFD Sender: No OFD packet to send [12:25:44]OFD Sender: No OFD packet to send [12:25:49]OFD Sender: No OFD packet to send [12:25:54]OFD Sender: No OFD packet to send [12:25:59]OFD Sender: No OFD packet to send [12:26:04]OFD Sender: No OFD packet to send [12:26:09]OFD Sender: No OFD packet to send [12:26:14]OFD Sender: No OFD packet to send [12:26:19]OFD Sender: No OFD packet to send [12:26:24]OFD Sender: No OFD packet to send [12:26:29]OFD Sender: No OFD packet to send [12:26:34]OFD Sender: No OFD packet to send [12:26:39]OFD Sender: No OFD packet to send [12:26:44]OFD Sender: No OFD packet to send [12:26:49]OFD Sender: No OFD packet to send [12:26:54]OFD Sender: No OFD packet to send [12:26:59]OFD Sender: No OFD packet to send [12:27:04]OFD Sender: No OFD packet to send [12:27:09]OFD Sender: No OFD packet to send [12:27:14]OFD Sender: No OFD packet to send [12:27:19]OFD Sender: No OFD packet to send [12:27:24]OFD Sender: No OFD packet to send [12:27:29]OFD Sender: No OFD packet to send [12:27:34]OFD Sender: No OFD packet to send [12:27:39]OFD Sender: No OFD packet to send [12:27:44]OFD Sender: No OFD packet to send [12:27:49]OFD Sender: No OFD packet to send [12:27:54]OFD Sender: No OFD packet to send [12:27:59]OFD Sender: No OFD packet to send [12:28:04]OFD Sender: No OFD packet to send [12:28:10]OFD Sender: No OFD packet to send [12:28:15]OFD Sender: No OFD packet to send [12:28:20]OFD Sender: No OFD packet to send [12:28:25]OFD Sender: No OFD packet to send [12:28:30]OFD Sender: No OFD packet to send [12:28:35]OFD Sender: No OFD packet to send [12:28:40]OFD Sender: No OFD packet to send [12:28:45]OFD Sender: No OFD packet to send [12:28:50]OFD Sender: No OFD packet to send [12:28:55]OFD Sender: No OFD packet to send [12:29:00]OFD Sender: No OFD packet to send [12:29:05]OFD Sender: No OFD packet to send [12:29:10]OFD Sender: No OFD packet to send [12:29:15]OFD Sender: No OFD packet to send [12:29:20]OFD Sender: No OFD packet to send [12:29:25]OFD Sender: No OFD packet to send [12:29:30]OFD Sender: No OFD packet to send [12:29:35]OFD Sender: No OFD packet to send [12:29:40]OFD Sender: No OFD packet to send [12:29:45]OFD Sender: No OFD packet to send [12:29:50]OFD Sender: No OFD packet to send [12:29:55]OFD Sender: No OFD packet to send [12:30:00]OFD Sender: No OFD packet to send [12:30:05]OFD Sender: No OFD packet to send [12:30:10]OFD Sender: No OFD packet to send [12:30:15]OFD Sender: No OFD packet to send [12:30:20]OFD Sender: No OFD packet to send [12:30:25]OFD Sender: No OFD packet to send [12:30:30]OFD Sender: No OFD packet to send [12:30:35]OFD Sender: No OFD packet to send [12:30:40]OFD Sender: No OFD packet to send [12:30:45]OFD Sender: No OFD packet to send [12:30:50]OFD Sender: No OFD packet to send [12:30:55]OFD Sender: No OFD packet to send [12:31:00]OFD Sender: No OFD packet to send [12:31:05]OFD Sender: No OFD packet to send [12:31:10]OFD Sender: No OFD packet to send [12:31:15]OFD Sender: No OFD packet to send [12:31:20]OFD Sender: No OFD packet to send [12:31:25]OFD Sender: No OFD packet to send [12:31:30]OFD Sender: No OFD packet to send [12:31:35]OFD Sender: No OFD packet to send [12:31:40]OFD Sender: No OFD packet to send [12:31:45]OFD Sender: No OFD packet to send [12:31:50]OFD Sender: No OFD packet to send [12:31:55]OFD Sender: No OFD packet to send [12:32:00]OFD Sender: No OFD packet to send [12:32:05]OFD Sender: No OFD packet to send [12:32:10]OFD Sender: No OFD packet to send [12:32:15]OFD Sender: No OFD packet to send [12:32:20]OFD Sender: No OFD packet to send [12:32:25]OFD Sender: No OFD packet to send [12:32:30]OFD Sender: No OFD packet to send [12:32:35]OFD Sender: No OFD packet to send [12:32:40]OFD Sender: No OFD packet to send [12:32:45]OFD Sender: No OFD packet to send [12:32:50]OFD Sender: No OFD packet to send [12:32:55]OFD Sender: No OFD packet to send [12:33:00]OFD Sender: No OFD packet to send [12:33:05]OFD Sender: No OFD packet to send [12:33:10]OFD Sender: No OFD packet to send [12:33:15]OFD Sender: No OFD packet to send [12:33:20]OFD Sender: No OFD packet to send [12:33:25]OFD Sender: No OFD packet to send [12:33:30]OFD Sender: No OFD packet to send [12:33:35]OFD Sender: No OFD packet to send [12:33:40]OFD Sender: No OFD packet to send [12:33:45]OFD Sender: No OFD packet to send [12:33:50]OFD Sender: No OFD packet to send [12:33:55]OFD Sender: No OFD packet to send [12:34:00]OFD Sender: No OFD packet to send [12:34:05]OFD Sender: No OFD packet to send [12:34:10]OFD Sender: No OFD packet to send [12:34:15]OFD Sender: No OFD packet to send [12:34:20]OFD Sender: No OFD packet to send [12:34:25]OFD Sender: No OFD packet to send [12:34:30]OFD Sender: No OFD packet to send [12:34:35]OFD Sender: No OFD packet to send [12:34:40]OFD Sender: No OFD packet to send [12:34:45]OFD Sender: No OFD packet to send [12:34:50]OFD Sender: No OFD packet to send [12:34:55]OFD Sender: No OFD packet to send [12:35:00]OFD Sender: No OFD packet to send [12:35:05]OFD Sender: No OFD packet to send [12:35:10]OFD Sender: No OFD packet to send [12:35:15]OFD Sender: No OFD packet to send [12:35:20]OFD Sender: No OFD packet to send [12:35:25]OFD Sender: No OFD packet to send [12:35: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: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:15]OFD Sender: No OFD packet to send [12:41:20]OFD Sender: No OFD packet to send [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:26]OFD Sender: No OFD packet to send [12:42:31]OFD Sender: No OFD packet to send [12:42:36]OFD Sender: No OFD packet to send [12:42:41]OFD Sender: No OFD packet to send [12:42:46]OFD Sender: No OFD packet to send [12:42:51]OFD Sender: No OFD packet to send [12:42:56]OFD Sender: No OFD packet to send [12:43:01]OFD Sender: No OFD packet to send [12:43:06]OFD Sender: No OFD packet to send [12:43:11]OFD Sender: No OFD packet to send [12:43:16]OFD Sender: No OFD packet to send [12:43:21]OFD Sender: No OFD packet to send [12:43:26]OFD Sender: No OFD packet to send [12:43:31]OFD Sender: No OFD packet to send [12:43:36]OFD Sender: No OFD packet to send [12:43:41]OFD Sender: No OFD packet to send [12:43:46]OFD Sender: No OFD packet to send [12:43:51]OFD Sender: No OFD packet to send [12:43:56]OFD Sender: No OFD packet to send [12:44:01]OFD Sender: No OFD packet to send [12:44:06]OFD Sender: No OFD packet to send [12:44:11]OFD Sender: No OFD packet to send [12:44:16]OFD Sender: No OFD packet to send [12:44:21]OFD Sender: No OFD packet to send [12:44:26]OFD Sender: No OFD packet to send [12:44:31]OFD Sender: No OFD packet to send [12:44:36]OFD Sender: No OFD packet to send [12:44:41]OFD Sender: No OFD packet to send [12:44:46]OFD Sender: No OFD packet to send [12:44:51]OFD Sender: No OFD packet to send [12:44:56]OFD Sender: No OFD packet to send [12:45:01]OFD Sender: No OFD packet to send [12:45:06]OFD Sender: No OFD packet to send [12:45:11]OFD Sender: No OFD packet to send [12:45:16]OFD Sender: No OFD packet to send [12:45:21]OFD Sender: No OFD packet to send [12:45:26]OFD Sender: No OFD packet to send [12:45:31]OFD Sender: No OFD packet to send [12:45:36]OFD Sender: No OFD packet to send [12:45:41]OFD Sender: No OFD packet to send [12:45:46]OFD Sender: No OFD packet to send [12:45:51]OFD Sender: No OFD packet to send [12:45:56]OFD Sender: No OFD packet to send [12:46:01]OFD Sender: No OFD packet to send [12:46:06]OFD Sender: No OFD packet to send [12:46:11]OFD Sender: No OFD packet to send [12:46:16]OFD Sender: No OFD packet to send [12:46:21]OFD Sender: No OFD packet to send [12:46:26]OFD Sender: No OFD packet to send [12:46:31]OFD Sender: No OFD packet to send [12:46:36]OFD Sender: No OFD packet to send [12:46:41]OFD Sender: No OFD packet to send [12:46:46]OFD Sender: No OFD packet to send [12:46:51]OFD Sender: No OFD packet to send [12:46:56]OFD Sender: No OFD packet to send [12:47:01]OFD Sender: No OFD packet to send [12:47:06]OFD Sender: No OFD packet to send [12:47:11]OFD Sender: No OFD packet to send [12:47:16]OFD Sender: No OFD packet to send [12:47:21]OFD Sender: No OFD packet to send [12:47:26]OFD Sender: No OFD packet to send [12:47:31]OFD Sender: No OFD packet to send [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:00]accept exits with 9 [12:48:00]New connection [12:48:00]New thread 3067338084 created [12:48:00]Thread 3067481444 joined [12:48:00]Waiting for new connection... [12:48:00] Sock 9.Parse request [12:48:00]Sock 9.Check first char [12:48:00]Sock 9.First char is OK [12:48:00]request: POST /json_proto HTTP/1.0 [12:48:00]Method: POST [12:48:00]URL: /json_proto [12:48:00]Method is POST - this is cgi request [12:48:00]url: /json_proto [12:48:00]query_string will be loaded in cgi processing [12:48:00]execute_cgi json_proto POST (null) [12:48:00]execute_cgi path=json_proto method=POST [12:48:00]POST find Content-Length [12:48:00]Host: 172.17.62.5:8080 [12:48:00]Content-Length: 808 [12:48:00]Content-Type: application/json [12:48:00] [12:48:00]POST finish read [12:48:00]Found Content-Length = 808 [12:48:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 160.000, "sum" : 11664.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 11664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:00]execute_script... [12:48: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)191362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 160.000, "sum" : 11664.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 11664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:00]POST & json_proto [12:48:00]process_json_proto [12:48:00]json parsed OK: [12:48:00]protocol is kg_v1.0 [12:48:00]action value=close_receipt [12:48:00]process_action close_receipt [12:48:00]cmd_close_receipt [12:48:00]MH_GetDate [12:48:00]Write to MH i2c: F0 00 00 1E 28 35 [12:48:00]Write i2c OK [12:48:00]MH_I2C_Read... [12:48:00]Read from MH i2c: F0 [12:48:00]MH_I2C_Read... [12:48:00]Read from MH i2c: F0 09 00 [12:48:00]MH_I2C_Read... [12:48:00]Read from MH i2c: F0 09 00 1E 28 00 04 0B 25 66 F4 E9 65 64 7E [12:48:00]GetLastDocTimeStamp 1713701405 [12:48:00]current date 1713703684 [12:48:00]FM_GetShiftState [12:48:00]SAM_PROTO_GetShiftState [12:48:00]wFMCommunicate request_size=4 [12:48:00]MH_SAM_APDU [12:48:00]CAPDU: 80 13 01 00 [12:48:00]Write to MH i2c: E2 08 00 1F 28 80 13 01 00 00 00 00 00 C4 [12:48:00]Write i2c OK [12:48:00]MH_I2C_Read... [12:48:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:00]Read from MH i2c: E2 [12:48:00]MH_I2C_Read... [12:48:00]Read from MH i2c: E2 0E 00 [12:48:00]MH_I2C_Read... [12:48:00]Read from MH i2c: E2 0E 00 1F 28 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 0B [12:48:00]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [12:48:00]wFMCommunicate OK [12:48:00]SAM_PROTO_GetShiftState done [12:48:00]FM_GetShiftState done [12:48:00]opened in 1713658965 [12:48:00]opened+sec_in_day 1713745365 [12:48:00]quantity*price = 1166400 [12:48:00]sum+1 = 1166401 [12:48:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 11664.00 НСП 1% : 103.22 НДС 12% : 1238.65 Наличными: 0.00 Безнал.: 11664.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 83 21.04.2024 12:48 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 76827 ФПД: 252988596006966 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T124804&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76827&fm=252988596006966&tin=02508201610067®Number=0000000000091573&sum=1166400 [12:48:01]StoreToDocumentArchive [12:48:01]shift 372 fd 76827 [12:48:01]save to /storage/0372/doc_00076827 [12:48:01]save last doc name /storage/0372/doc_00076827 to /storage/kkm_last_doc_name [12:48:01]save OK [12:48:01]Clear old archive folders... [12:48:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:48:01]tlvbuf is 0186CA60 [12:48:01]SAM_PROTO_ClearQueue [12:48:01]wFMCommunicate request_size=4 [12:48:01]MH_SAM_APDU [12:48:01]CAPDU: 80 09 00 00 [12:48:01]Write to MH i2c: E2 08 00 2C 28 80 09 00 00 00 00 00 00 C6 [12:48:01]Write i2c OK [12:48:01]MH_I2C_Read... [12:48:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:48:01]Read from MH i2c: E2 [12:48:01]MH_I2C_Read... [12:48:01]Read from MH i2c: E2 03 00 [12:48:01]MH_I2C_Read... [12:48:01]Read from MH i2c: E2 03 00 2C 28 00 90 00 C8 [12:48:01]RAPDU: 90 00 [12:48:01]wFMCommunicate OK [12:48:01]SAM_PROTO_ClearQueue done [12:48:01]KKMCreateOFDPacket [12:48:01]OFDProtocolAddRootSTLVToBuf [12:48:01]FM_MakeSignedData [12:48:01]FM_MakeSignedData [12:48:01]SAM_PROTO_SignData [12:48:01]wFMCommunicate request_size=4 [12:48:01]MH_SAM_APDU [12:48:01]CAPDU: 80 0D 01 02 [12:48:01]Write to MH i2c: E2 08 00 2D 28 80 0D 01 02 00 00 00 00 CE [12:48:01]Write i2c OK [12:48:01]MH_I2C_Read... [12:48:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:48:01]Read from MH i2c: E2 [12:48:01]MH_I2C_Read... [12:48:01]Read from MH i2c: E2 03 00 [12:48:01]MH_I2C_Read... [12:48:01]Read from MH i2c: E2 03 00 2D 28 00 90 00 C9 [12:48:01]RAPDU: 90 00 [12:48:01]wFMCommunicate OK [12:48:01]wFMCommunicate request_size=255 [12:48:01]MH_SAM_APDU [12:48:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 00 71 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 40 CC 11 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 CC 11 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 28 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 E3 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 CC 11 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 04 0B 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 1B 2C 01 00 35 04 06 00 E6 17 7F 65 [12:48:01]Write to MH i2c: E2 02 01 2E 28 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 00 71 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 40 CC 11 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 CC 11 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 28 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 E3 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 CC 11 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 04 0B 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 1B 2C 01 00 35 04 06 00 E6 17 7F 65 00 00 4D [12:48:01]Write i2c OK [12:48:01]MH_I2C_Read... [12:48:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:02]Read from MH i2c: E2 [12:48:02]MH_I2C_Read... [12:48:02]Read from MH i2c: E2 03 00 [12:48:02]MH_I2C_Read... [12:48:02]Read from MH i2c: E2 03 00 2E 28 00 90 00 CA [12:48:02]RAPDU: 90 00 [12:48:02]wFMCommunicate OK [12:48:02]wFMCommunicate request_size=7 [12:48:02]MH_SAM_APDU [12:48:02]CAPDU: 80 0D 02 02 02 B0 36 [12:48:02]Write to MH i2c: E2 0A 00 2F 28 80 0D 02 02 02 00 B0 36 00 00 BB [12:48:02]Write i2c OK [12:48:02]MH_I2C_Read... [12:48:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:02]Read from MH i2c: E2 [12:48:02]MH_I2C_Read... [12:48:02]Read from MH i2c: E2 03 00 [12:48:02]MH_I2C_Read... [12:48:02]Read from MH i2c: E2 03 00 2F 28 00 90 00 CB [12:48:02]RAPDU: 90 00 [12:48:02]wFMCommunicate OK [12:48:02]wFMCommunicate request_size=4 [12:48:02]MH_SAM_APDU [12:48:02]CAPDU: 80 0D 03 02 [12:48:02]Write to MH i2c: E2 08 00 30 28 80 0D 03 02 00 00 00 00 D3 [12:48:02]Write i2c OK [12:48:02]MH_I2C_Read... [12:48:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:48:02]Read from MH i2c: E2 [12:48:02]MH_I2C_Read... [12:48:02]Read from MH i2c: E2 0B 00 [12:48:02]MH_I2C_Read... [12:48:02]Read from MH i2c: E2 0B 00 30 28 00 F4 6D 7F F0 AC BC E8 E9 90 00 DD [12:48:02]RAPDU: F4 6D 7F F0 AC BC E8 E9 90 00 [12:48:02]wFMCommunicate OK [12:48:02]SAM_PROTO_SignData done [12:48:02]FM_MakeSignedData done [12:48:02]CreateOFDProtocolMessage [12:48:02]wFMCommunicate request_size=4 [12:48:02]MH_SAM_APDU [12:48:02]CAPDU: 80 11 00 00 [12:48:02]Write to MH i2c: E2 08 00 31 28 80 11 00 00 00 00 00 00 D3 [12:48:02]Write i2c OK [12:48:02]MH_I2C_Read... [12:48:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:02]Read from MH i2c: E2 [12:48:02]MH_I2C_Read... [12:48:02]Read from MH i2c: E2 17 00 [12:48:02]MH_I2C_Read... [12:48:02]Read from MH i2c: E2 17 00 31 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 26 [12:48:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:48:02]wFMCommunicate OK [12:48:02]CreateOFDProtocolMessage done [12:48:02]OFDSenderStorePacket 76827 [12:48:02]StoreOFDPacket docnum=76827 [12:48:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 3F 99 04 01 0E 25 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 00 71 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 40 CC 11 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 CC 11 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 28 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 E3 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 CC 11 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 04 0B 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 1B 2C 01 00 35 04 06 00 E6 17 7F 65 B0 36 F4 6D 7F F0 AC BC E8 E9 [12:48:02]CheckFolder [12:48:02]dirname=/storage/ofd_packets [12:48:02]CheckFolder done [12:48:02]ProducePacketName [12:48:02]name=ofd_packets/00076827 [12:48:02]NVStorageSaveData ofd_packets/00076827 [12:48:02]File name is /storage/ofd_packets/00076827 [12:48:02]Write 298 bytes [12:48:02]NVStorageSaveData done [12:48:02]OFDSenderStorePacket done [12:48:02]KKMCreateOFDPacket done [12:48:02]NVStorageSaveData kkm_last_timestamp [12:48:02]File name is /storage/kkm_last_timestamp [12:48:02]Write 4 bytes [12:48:02]NVStorageSaveData done [12:48:02]ExternCall_PrintAddStr [12:48:02]wPrintStart [12:48:02]Write to MH i2c: 01 00 00 32 28 5A [12:48:02]Write i2c OK [12:48:02]MH_I2C_Read... [12:48:02]Read from MH i2c: 01 [12:48:02]MH_I2C_Read... [12:48:02]Read from MH i2c: 01 07 00 [12:48:02]MH_I2C_Read... [12:48:02]Read from MH i2c: 01 07 00 32 28 00 00 00 00 00 FF 0F 6F [12:48:02]RasterBufferAndPrint [12:48:02]line Счет N : (1)191362 [12:48:02]line ИНН: 02508201610067 [12:48:02]line Контрольно-Кассовый Чек [12:48:02]line ПРОДАЖА [12:48:02]line ТРК (МРК, ГНК) : 23 [12:48:02]line Товар: 2710194210 [12:48:02]line ДТ-К-5 [12:48:02]line 160.000 * 72.90 [12:48:02]line = 11664.00 [12:48:02]line НДС 12% НСП 1% [12:48:02]line > о реализуемом товаре [12:48:02]line ИТОГО: 11664.00 [12:48:02]line НСП 1% : 103.22 [12:48:02]line НДС 12% : 1238.65 [12:48:02]line Наличными: 0.00 [12:48:02]line Безнал.: 11664.00 [12:48:02]line Место: АЗС № 106 "Партнер Нефть" [12:48:02]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [12:48:02]line СНО: Общий режим [12:48:02]line Чек 83 21.04.2024 12:48 [12:48:02]line Смена: 372 ФФД: 1.0 [12:48:02]line ЗНМ: 0300000141 [12:48:02]line РНМ: 0000000000091573 [12:48:02]line Версия ККМ: 001 [12:48:02]line Платежная система: О! деньги [12:48:02]line ФМ: 0000000000874652 [12:48:02]line ФД: 76827 [12:48:02]line ФПД: 252988596006966 [12:48:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T124804&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76827&fm=252988596006966&tin=02508201610067®Number=0000000000091573&sum=1166400 [12:48:02]OFD Sender: Processing packet 76827 [packets to send 129, broken 128] [12:48:02]ProducePacketName [12:48:02]name=ofd_packets/00076827 [12:48:02]OFD Sender: To server: pG, [12:48:02]CommunicateWithHost lk.salyk.kg:30040 [12:48:02]ConnectInit lk.salyk.kg [12:48:02]written 0, free lines is 4095 [12:48:02]Connected sock=10 [12:48:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 3F 99 04 01 0E 25 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 00 71 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 40 CC 11 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 CC 11 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 28 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 E3 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 CC 11 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 04 0B 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 1B 2C 01 00 35 04 06 00 E6 17 7F 65 B0 36 F4 6D 7F F0 AC BC E8 E9 [12:48:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 5F 9A 47 00 EC A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 1B 2C 01 00 F4 03 04 00 8A B2 24 66 B6 04 01 00 00 6F 81 2F 67 89 50 5C 66 [12:48:02]CommunicateWithHost err = 0 [12:48:02]CheckOFDResponse [12:48:02]1017 (14) - 77093643461234 [12:48:02]1041 (16) - 0000000000874652 [12:48:02]1040 (4) - 76827 [12:48:02]1012 (4) - 21.04.2024 06:30 [12:48:02]1206 (1) - 0 [12:48:02]OFD Sender: Remove packet 76827 [12:48:02]ProducePacketName [12:48:02]name=ofd_packets/00076827 [12:48:02]NVStorageDeleteData [12:48:03]Write to MH i2c: 01 00 00 5B 28 83 [12:48:03]Write i2c OK [12:48:03]MH_I2C_Read... [12:48:03]Read from MH i2c: 01 [12:48:03]MH_I2C_Read... [12:48:03]Read from MH i2c: 01 07 00 [12:48:03]MH_I2C_Read... [12:48:03]Read from MH i2c: 01 07 00 5B 28 00 00 00 00 00 15 0D AC [12:48:03]RasterBufferAndPrint [12:48:03]line [12:48:03]line [12:48:03]line [12:48:03]line [12:48:03]line [12:48:03]written 0, free lines is 3356 [12:48:03]MH_Cut [12:48:03]Write to MH i2c: D1 01 00 62 28 01 5C [12:48:03]Write i2c OK [12:48:03]MH_I2C_Read... [12:48:03]Read from MH i2c: D1 [12:48:03]MH_I2C_Read... [12:48:03]Read from MH i2c: D1 01 00 [12:48:03]MH_I2C_Read... [12:48:03]Read from MH i2c: D1 01 00 62 28 00 5B [12:48:03]Write to MH i2c: 01 00 00 63 28 8B [12:48:03]Write i2c OK [12:48:03]MH_I2C_Read... [12:48:03]OFD Sender: No OFD packet to send [12:48:03]*** Cut start [12:48:03]*** Partial cut [12:48:03]*** CUTSNS_PIN = 1 [12:48:03]*** CUTSNS_PIN = 0 [12:48:04]*** Brake cut motor [12:48:04]Read from MH i2c: 01 [12:48:04]MH_I2C_Read... [12:48:04]*** Stop cut motor [12:48:04]*** Cut end [12:48:04]Read from MH i2c: 01 07 00 [12:48:04]MH_I2C_Read... [12:48:04]Read from MH i2c: 01 07 00 63 28 00 00 00 00 00 FF 0F A0 [12:48:04]process_action close_receipt done [12:48:04]requested_data is exist [12:48:04]produce_requested_data [12:48:04]requested_item fm.sn is exist - process it [12:48:04]wFMCommunicate request_size=4 [12:48:04]MH_SAM_APDU [12:48:04]CAPDU: 80 11 00 00 [12:48:04]Write to MH i2c: E2 08 00 64 28 80 11 00 00 00 00 00 00 06 [12:48:04]Write i2c OK [12:48:04]MH_I2C_Read... [12:48:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:04]Read from MH i2c: E2 [12:48:04]MH_I2C_Read... [12:48:04]Read from MH i2c: E2 17 00 [12:48:04]MH_I2C_Read... [12:48:04]Read from MH i2c: E2 17 00 64 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 59 [12:48:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:48:04]wFMCommunicate OK [12:48:04]requested_item fd.num is exist - process it [12:48:04]SAM_PROTO_GetFieldsCounters [12:48:04]wFMCommunicate request_size=4 [12:48:04]MH_SAM_APDU [12:48:04]CAPDU: 80 13 00 00 [12:48:04]Write to MH i2c: E2 08 00 65 28 80 13 00 00 00 00 00 00 09 [12:48:04]Write i2c OK [12:48:04]MH_I2C_Read... [12:48:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:48:04]Read from MH i2c: E2 [12:48:04]MH_I2C_Read... [12:48:04]Read from MH i2c: E2 62 00 [12:48:04]MH_I2C_Read... [12:48:04]Read from MH i2c: E2 62 00 65 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 1B 2C 01 00 0E 04 04 00 74 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 E0 [12:48: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 1B 2C 01 00 0E 04 04 00 74 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:48:04]wFMCommunicate OK [12:48:04]SAM_PROTO_GetFieldsCounters done [12:48:04]requested_item shift.num is exist - process it [12:48:04]requested_item shift.opened is exist - process it [12:48:04]req_shift_opened [12:48:04]FM_GetShiftState [12:48:04]SAM_PROTO_GetShiftState [12:48:04]wFMCommunicate request_size=4 [12:48:04]MH_SAM_APDU [12:48:04]CAPDU: 80 13 01 00 [12:48:04]Write to MH i2c: E2 08 00 66 28 80 13 01 00 00 00 00 00 0B [12:48:04]Write i2c OK [12:48:04]MH_I2C_Read... [12:48:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:04]Read from MH i2c: E2 [12:48:04]MH_I2C_Read... [12:48:04]Read from MH i2c: E2 0E 00 [12:48:04]MH_I2C_Read... [12:48:04]Read from MH i2c: E2 0E 00 66 28 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 52 [12:48:04]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [12:48:04]wFMCommunicate OK [12:48:04]SAM_PROTO_GetShiftState done [12:48:04]FM_GetShiftState done [12:48:04]req_shift_opened done [12:48:04]requested_item shift.open_date is exist - process it [12:48:04]req_shift_open_date [12:48:04]req_shift_open_date done [12:48:04]produce_requested_data done [12:48:04]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76827,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [12:48:04]process_action_free close_receipt [12:48:04]json_value_free [12:48:04]json_value_free done [12:48:04]process_json_proto returns [12:48:04]Send response to host [12:48:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76827,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [12:48:04]free response buf [12:48:04]execute_script done [12:48:04]execute_script returns [12:48:04]free content buf [12:48:04]Sock 9.Close socket [12:48:04]Sock 9.Thread stoped [12:48:08]OFD Sender: No OFD packet to send [12:48:13]OFD Sender: No OFD packet to send [12:48:17]accept exits with 7 [12:48:17]New connection [12:48:17]New thread 3067481444 created [12:48:17]Thread 3067338084 joined [12:48:17]Waiting for new connection... [12:48:17] Sock 7.Parse request [12:48:17]Sock 7.Check first char [12:48:17]Sock 7.First char is OK [12:48:17]request: POST /json_proto HTTP/1.0 [12:48:17]Method: POST [12:48:17]URL: /json_proto [12:48:17]Method is POST - this is cgi request [12:48:17]url: /json_proto [12:48:17]query_string will be loaded in cgi processing [12:48:17]execute_cgi json_proto POST (null) [12:48:17]execute_cgi path=json_proto method=POST [12:48:17]POST find Content-Length [12:48:17]Host: 172.17.62.5:8080 [12:48:17]Content-Length: 990 [12:48:17]Content-Type: application/json [12:48:17] [12:48:17]POST finish read [12:48:17]Found Content-Length = 990 [12:48:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 31.550, "sum" : 1000.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 31.55 \u0441\u043E\u043C", "deposit" : 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:48:17]execute_script... [12:48: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)191363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 31.550, "sum" : 1000.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 31.55 \u0441\u043E\u043C", "deposit" : 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:48:17]POST & json_proto [12:48:17]process_json_proto [12:48:17]json parsed OK: [12:48:17]protocol is kg_v1.0 [12:48:17]action value=close_receipt [12:48:17]process_action close_receipt [12:48:17]cmd_close_receipt [12:48:17]MH_GetDate [12:48:17]Write to MH i2c: F0 00 00 67 28 7E [12:48:17]Write i2c OK [12:48:17]MH_I2C_Read... [12:48:17]Read from MH i2c: F0 [12:48:17]MH_I2C_Read... [12:48:17]Read from MH i2c: F0 09 00 [12:48:17]MH_I2C_Read... [12:48:17]Read from MH i2c: F0 09 00 67 28 00 15 0B 25 66 F4 E9 65 64 D8 [12:48:17]GetLastDocTimeStamp 1713703684 [12:48:17]current date 1713703701 [12:48:17]FM_GetShiftState [12:48:17]SAM_PROTO_GetShiftState [12:48:17]wFMCommunicate request_size=4 [12:48:17]MH_SAM_APDU [12:48:17]CAPDU: 80 13 01 00 [12:48:17]Write to MH i2c: E2 08 00 68 28 80 13 01 00 00 00 00 00 0D [12:48:17]Write i2c OK [12:48:17]MH_I2C_Read... [12:48:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:17]Read from MH i2c: E2 [12:48:17]MH_I2C_Read... [12:48:17]Read from MH i2c: E2 0E 00 [12:48:17]MH_I2C_Read... [12:48:17]Read from MH i2c: E2 0E 00 68 28 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 54 [12:48:17]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [12:48:17]wFMCommunicate OK [12:48:17]SAM_PROTO_GetShiftState done [12:48:17]FM_GetShiftState done [12:48:17]opened in 1713658965 [12:48:17]opened+sec_in_day 1713745365 [12:48:17]quantity*price = 100013 [12:48:17]sum+1 = 100015 [12:48:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 84 21.04.2024 12:48 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 31.55 сом ФМ: 0000000000874652 ФД: 76828 ФПД: 99303345504342 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T124821&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76828&fm=99303345504342&tin=02508201610067®Number=0000000000091573&sum=100000 [12:48:18]StoreToDocumentArchive [12:48:18]shift 372 fd 76828 [12:48:18]save to /storage/0372/doc_00076828 [12:48:18]save last doc name /storage/0372/doc_00076828 to /storage/kkm_last_doc_name [12:48:18]save OK [12:48:18]Clear old archive folders... [12:48:18]ProcessDocumentItem done err = 0, tmpTLVsize=250 [12:48:18]tlvbuf is B6E29290 [12:48:18]SAM_PROTO_ClearQueue [12:48:18]wFMCommunicate request_size=4 [12:48:18]MH_SAM_APDU [12:48:18]CAPDU: 80 09 00 00 [12:48:18]Write to MH i2c: E2 08 00 75 28 80 09 00 00 00 00 00 00 0F [12:48:18]Write i2c OK [12:48:18]MH_I2C_Read... [12:48:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:48:18]Read from MH i2c: E2 [12:48:18]MH_I2C_Read... [12:48:18]Read from MH i2c: E2 03 00 [12:48:18]MH_I2C_Read... [12:48:18]Read from MH i2c: E2 03 00 75 28 00 90 00 11 [12:48:18]RAPDU: 90 00 [12:48:18]wFMCommunicate OK [12:48:18]SAM_PROTO_ClearQueue done [12:48:18]KKMCreateOFDPacket [12:48:18]OFDProtocolAddRootSTLVToBuf [12:48:18]FM_MakeSignedData [12:48:18]FM_MakeSignedData [12:48:18]SAM_PROTO_SignData [12:48:18]wFMCommunicate request_size=4 [12:48:18]MH_SAM_APDU [12:48:18]CAPDU: 80 0D 01 02 [12:48:18]Write to MH i2c: E2 08 00 76 28 80 0D 01 02 00 00 00 00 17 [12:48:18]Write i2c OK [12:48:18]MH_I2C_Read... [12:48:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:48:18]Read from MH i2c: E2 [12:48:18]MH_I2C_Read... [12:48:18]Read from MH i2c: E2 03 00 [12:48:18]MH_I2C_Read... [12:48:18]Read from MH i2c: E2 03 00 76 28 00 90 00 12 [12:48:18]RAPDU: 90 00 [12:48:18]wFMCommunicate OK [12:48:18]wFMCommunicate request_size=255 [12:48:18]MH_SAM_APDU [12:48:18]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 15 0B 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 1C 2C 01 00 35 04 06 00 5A 50 [12:48:18]Write to MH i2c: E2 02 01 77 28 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 15 0B 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 1C 2C 01 00 35 04 06 00 5A 50 00 00 F7 [12:48:18]Write i2c OK [12:48:18]MH_I2C_Read... [12:48:18]OFD Sender: No OFD packet to send [12:48:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:18]Read from MH i2c: E2 [12:48:18]MH_I2C_Read... [12:48:18]Read from MH i2c: E2 03 00 [12:48:18]MH_I2C_Read... [12:48:18]Read from MH i2c: E2 03 00 77 28 00 90 00 13 [12:48:18]RAPDU: 90 00 [12:48:18]wFMCommunicate OK [12:48:18]wFMCommunicate request_size=9 [12:48:18]MH_SAM_APDU [12:48:18]CAPDU: 80 0D 02 02 04 DC A2 40 56 [12:48:18]Write to MH i2c: E2 0C 00 78 28 80 0D 02 02 04 00 DC A2 40 56 00 00 36 [12:48:18]Write i2c OK [12:48:18]MH_I2C_Read... [12:48:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:18]Read from MH i2c: E2 [12:48:18]MH_I2C_Read... [12:48:18]Read from MH i2c: E2 03 00 [12:48:18]MH_I2C_Read... [12:48:18]Read from MH i2c: E2 03 00 78 28 00 90 00 14 [12:48:18]RAPDU: 90 00 [12:48:18]wFMCommunicate OK [12:48:18]wFMCommunicate request_size=4 [12:48:18]MH_SAM_APDU [12:48:18]CAPDU: 80 0D 03 02 [12:48:18]Write to MH i2c: E2 08 00 79 28 80 0D 03 02 00 00 00 00 1C [12:48:18]Write i2c OK [12:48:18]MH_I2C_Read... [12:48:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:48:18]Read from MH i2c: E2 [12:48:18]MH_I2C_Read... [12:48:18]Read from MH i2c: E2 0B 00 [12:48:18]MH_I2C_Read... [12:48:18]Read from MH i2c: E2 0B 00 79 28 00 03 51 C4 F3 02 7C D4 5B 90 00 D5 [12:48:18]RAPDU: 03 51 C4 F3 02 7C D4 5B 90 00 [12:48:18]wFMCommunicate OK [12:48:18]SAM_PROTO_SignData done [12:48:18]FM_MakeSignedData done [12:48:18]CreateOFDProtocolMessage [12:48:18]wFMCommunicate request_size=4 [12:48:18]MH_SAM_APDU [12:48:18]CAPDU: 80 11 00 00 [12:48:18]Write to MH i2c: E2 08 00 7A 28 80 11 00 00 00 00 00 00 1C [12:48:18]Write i2c OK [12:48:18]MH_I2C_Read... [12:48:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:18]Read from MH i2c: E2 [12:48:18]MH_I2C_Read... [12:48:18]Read from MH i2c: E2 17 00 [12:48:18]MH_I2C_Read... [12:48:18]Read from MH i2c: E2 17 00 7A 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 6F [12:48:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:48:18]wFMCommunicate OK [12:48:18]CreateOFDProtocolMessage done [12:48:18]OFDSenderStorePacket 76828 [12:48:18]StoreOFDPacket docnum=76828 [12:48:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 21 16 06 01 FE AD 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 15 0B 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 1C 2C 01 00 35 04 06 00 5A 50 DC A2 40 56 03 51 C4 F3 02 7C D4 5B [12:48:18]CheckFolder [12:48:18]dirname=/storage/ofd_packets [12:48:18]CheckFolder done [12:48:18]ProducePacketName [12:48:18]name=ofd_packets/00076828 [12:48:18]NVStorageSaveData ofd_packets/00076828 [12:48:18]File name is /storage/ofd_packets/00076828 [12:48:18]Write 300 bytes [12:48:18]NVStorageSaveData done [12:48:18]OFDSenderStorePacket done [12:48:18]KKMCreateOFDPacket done [12:48:18]NVStorageSaveData kkm_last_timestamp [12:48:18]File name is /storage/kkm_last_timestamp [12:48:18]Write 4 bytes [12:48:18]NVStorageSaveData done [12:48:18]ExternCall_PrintAddStr [12:48:18]wPrintStart [12:48:18]Write to MH i2c: 01 00 00 7B 28 A3 [12:48:18]Write i2c OK [12:48:18]MH_I2C_Read... [12:48:18]Read from MH i2c: 01 [12:48:18]MH_I2C_Read... [12:48:18]Read from MH i2c: 01 07 00 [12:48:18]MH_I2C_Read... [12:48:18]Read from MH i2c: 01 07 00 7B 28 00 00 00 00 00 FF 0F B8 [12:48:18]RasterBufferAndPrint [12:48:18]line Счет N : (1)191363 [12:48:18]line ИНН: 02508201610067 [12:48:18]line Контрольно-Кассовый Чек [12:48:18]line ПРОДАЖА [12:48:18]line ТРК (МРК, ГНК) : 71 [12:48:18]line Товар: 2711190000 [12:48:18]line ГАЗ-К-5 [12:48:18]line 31.550 * 31.70 [12:48:18]line = 1000.14 [12:48:18]line НДС 12% НСП 1% [12:48:18]line > о реализуемом товаре [12:48:18]line ОКРУГЛЕНИЕ: -0.14 [12:48:18]line ИТОГО: 1000.00 [12:48:18]line Внесено: 1000.00 [12:48:18]line СДАЧА: 0.00 [12:48:18]line НСП 1% : 8.85 [12:48:18]line НДС 12% : 106.21 [12:48:18]line Наличными: 1000.00 [12:48:18]line Безнал.: 0.00 [12:48:18]line Место: АЗС № 106 "Партнер Нефть" [12:48:18]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [12:48:18]line СНО: Общий режим [12:48:18]line Чек 84 21.04.2024 12:48 [12:48:18]line Смена: 372 ФФД: 1.0 [12:48:18]line ЗНМ: 0300000141 [12:48:18]line РНМ: 0000000000091573 [12:48:18]line Версия ККМ: 001 [12:48:18]line [12:48:18]line Дисконтная программа [12:48:18]line СУГ [12:48:18]line номер 106 [12:48:18]line сэкономлено 31.55 сом [12:48:18]line ФМ: 0000000000874652 [12:48:18]line ФД: 76828 [12:48:18]line ФПД: 99303345504342 [12:48:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T124821&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76828&fm=99303345504342&tin=02508201610067®Number=0000000000091573&sum=100000 [12:48:19]OFD Sender: Processing packet 76828 [packets to send 129, broken 128] [12:48:19]ProducePacketName [12:48:19]name=ofd_packets/00076828 [12:48:19]OFD Sender: To server: pG, [12:48:19]CommunicateWithHost lk.salyk.kg:30040 [12:48:19]ConnectInit lk.salyk.kg [12:48:19]written 0, free lines is 4095 [12:48:19]Connected sock=10 [12:48:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 21 16 06 01 FE AD 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 15 0B 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 1C 2C 01 00 35 04 06 00 5A 50 DC A2 40 56 03 51 C4 F3 02 7C D4 5B [12:48:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 E9 B0 47 00 0D 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 1C 2C 01 00 F4 03 04 00 9A B2 24 66 B6 04 01 00 00 91 4B 03 9D 00 86 62 91 [12:48:19]CommunicateWithHost err = 0 [12:48:19]CheckOFDResponse [12:48:19]1017 (14) - 77093643461234 [12:48:19]1041 (16) - 0000000000874652 [12:48:19]1040 (4) - 76828 [12:48:19]1012 (4) - 21.04.2024 06:30 [12:48:19]1206 (1) - 0 [12:48:19]OFD Sender: Remove packet 76828 [12:48:19]ProducePacketName [12:48:19]name=ofd_packets/00076828 [12:48:19]NVStorageDeleteData [12:48:19]Write to MH i2c: 01 00 00 AA 28 D2 [12:48:19]Write i2c OK [12:48:19]MH_I2C_Read... [12:48:19]Read from MH i2c: 01 [12:48:19]MH_I2C_Read... [12:48:19]Read from MH i2c: 01 07 00 [12:48:19]MH_I2C_Read... [12:48:19]Read from MH i2c: 01 07 00 AA 28 00 00 00 00 00 A3 0C 88 [12:48:19]RasterBufferAndPrint [12:48:19]line [12:48:19]line [12:48:19]line [12:48:19]line [12:48:19]line [12:48:19]written 0, free lines is 3244 [12:48:19]MH_Cut [12:48:19]Write to MH i2c: D1 01 00 B1 28 01 AB [12:48:19]Write i2c OK [12:48:19]MH_I2C_Read... [12:48:19]Read from MH i2c: D1 [12:48:19]MH_I2C_Read... [12:48:19]Read from MH i2c: D1 01 00 [12:48:19]MH_I2C_Read... [12:48:19]Read from MH i2c: D1 01 00 B1 28 00 AA [12:48:19]Write to MH i2c: 01 00 00 B2 28 DA [12:48:19]Write i2c OK [12:48:19]MH_I2C_Read... [12:48:20]OFD Sender: No OFD packet to send [12:48:20]*** Cut start [12:48:20]*** Partial cut [12:48:20]*** CUTSNS_PIN = 1 [12:48:20]*** CUTSNS_PIN = 0 [12:48:20]*** Brake cut motor [12:48:21]Read from MH i2c: 01 [12:48:21]MH_I2C_Read... [12:48:21]*** Stop cut motor [12:48:21]*** Cut end [12:48:21]Read from MH i2c: 01 07 00 [12:48:21]MH_I2C_Read... [12:48:21]Read from MH i2c: 01 07 00 B2 28 00 00 00 00 00 FF 0F EF [12:48:21]process_action close_receipt done [12:48:21]requested_data is exist [12:48:21]produce_requested_data [12:48:21]requested_item fm.sn is exist - process it [12:48:21]wFMCommunicate request_size=4 [12:48:21]MH_SAM_APDU [12:48:21]CAPDU: 80 11 00 00 [12:48:21]Write to MH i2c: E2 08 00 B3 28 80 11 00 00 00 00 00 00 55 [12:48:21]Write i2c OK [12:48:21]MH_I2C_Read... [12:48:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:21]Read from MH i2c: E2 [12:48:21]MH_I2C_Read... [12:48:21]Read from MH i2c: E2 17 00 [12:48:21]MH_I2C_Read... [12:48:21]Read from MH i2c: E2 17 00 B3 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 A8 [12:48:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:48:21]wFMCommunicate OK [12:48:21]requested_item fd.num is exist - process it [12:48:21]SAM_PROTO_GetFieldsCounters [12:48:21]wFMCommunicate request_size=4 [12:48:21]MH_SAM_APDU [12:48:21]CAPDU: 80 13 00 00 [12:48:21]Write to MH i2c: E2 08 00 B4 28 80 13 00 00 00 00 00 00 58 [12:48:21]Write i2c OK [12:48:21]MH_I2C_Read... [12:48:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:48:21]Read from MH i2c: E2 [12:48:21]MH_I2C_Read... [12:48:21]Read from MH i2c: E2 62 00 [12:48:21]MH_I2C_Read... [12:48:21]Read from MH i2c: E2 62 00 B4 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 1C 2C 01 00 0E 04 04 00 74 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 33 [12:48: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 1C 2C 01 00 0E 04 04 00 74 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:48:21]wFMCommunicate OK [12:48:21]SAM_PROTO_GetFieldsCounters done [12:48:21]requested_item shift.num is exist - process it [12:48:21]requested_item shift.opened is exist - process it [12:48:21]req_shift_opened [12:48:21]FM_GetShiftState [12:48:21]SAM_PROTO_GetShiftState [12:48:21]wFMCommunicate request_size=4 [12:48:21]MH_SAM_APDU [12:48:21]CAPDU: 80 13 01 00 [12:48:21]Write to MH i2c: E2 08 00 B5 28 80 13 01 00 00 00 00 00 5A [12:48:21]Write i2c OK [12:48:21]MH_I2C_Read... [12:48:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:21]Read from MH i2c: E2 [12:48:21]MH_I2C_Read... [12:48:21]Read from MH i2c: E2 0E 00 [12:48:21]MH_I2C_Read... [12:48:21]Read from MH i2c: E2 0E 00 B5 28 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 A1 [12:48:21]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [12:48:21]wFMCommunicate OK [12:48:21]SAM_PROTO_GetShiftState done [12:48:21]FM_GetShiftState done [12:48:21]req_shift_opened done [12:48:21]requested_item shift.open_date is exist - process it [12:48:21]req_shift_open_date [12:48:21]req_shift_open_date done [12:48:21]produce_requested_data done [12:48:21]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76828,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [12:48:21]process_action_free close_receipt [12:48:21]json_value_free [12:48:21]json_value_free done [12:48:21]process_json_proto returns [12:48:21]Send response to host [12:48:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76828,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [12:48:21]free response buf [12:48:21]execute_script done [12:48:21]execute_script returns [12:48:21]free content buf [12:48:21]Sock 7.Close socket [12:48:21]Sock 7.Thread stoped [12:48:25]OFD Sender: No OFD packet to send [12:48:30]OFD Sender: No OFD packet to send [12:48:35]OFD Sender: No OFD packet to send [12:48:40]OFD Sender: No OFD packet to send [12:48:45]OFD Sender: No OFD packet to send [12:48:50]OFD Sender: No OFD packet to send [12:48:55]OFD Sender: No OFD packet to send [12:49:00]OFD Sender: No OFD packet to send [12:49:05]OFD Sender: No OFD packet to send [12:49: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:35]OFD Sender: No OFD packet to send [12:51:40]OFD Sender: No OFD packet to send [12:51:45]OFD Sender: No OFD packet to send [12:51:50]OFD Sender: No OFD packet to send [12:51:55]OFD Sender: No OFD packet to send [12:52:00]OFD Sender: No OFD packet to send [12:52:05]OFD Sender: No OFD packet to send [12:52:10]OFD Sender: No OFD packet to send [12:52:15]OFD Sender: No OFD packet to send [12:52:20]OFD Sender: No OFD packet to send [12:52:25]OFD Sender: No OFD packet to send [12:52:30]OFD Sender: No OFD packet to send [12:52:35]OFD Sender: No OFD packet to send [12:52:36]accept exits with 9 [12:52:36]New connection [12:52:36]New thread 3067338084 created [12:52:36]Thread 3067481444 joined [12:52:36]Waiting for new connection... [12:52:36] Sock 9.Parse request [12:52:36]Sock 9.Check first char [12:52:36]Sock 9.First char is OK [12:52:36]request: POST /json_proto HTTP/1.0 [12:52:36]Method: POST [12:52:36]URL: /json_proto [12:52:36]Method is POST - this is cgi request [12:52:36]url: /json_proto [12:52:36]query_string will be loaded in cgi processing [12:52:36]execute_cgi json_proto POST (null) [12:52:36]execute_cgi path=json_proto method=POST [12:52:36]POST find Content-Length [12:52:36]Host: 172.17.62.5:8080 [12:52:36]Content-Length: 990 [12:52:36]Content-Type: application/json [12:52:36] [12:52:36]POST finish read [12:52:36]Found Content-Length = 990 [12:52:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191364", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 31.550, "sum" : 1000.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 31.55 \u0441\u043E\u043C", "deposit" : 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:52:36]execute_script... [12:52: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)191364", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 31.550, "sum" : 1000.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 31.55 \u0441\u043E\u043C", "deposit" : 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:52:36]POST & json_proto [12:52:36]process_json_proto [12:52:36]json parsed OK: [12:52:36]protocol is kg_v1.0 [12:52:36]action value=close_receipt [12:52:36]process_action close_receipt [12:52:36]cmd_close_receipt [12:52:36]MH_GetDate [12:52:36]Write to MH i2c: F0 00 00 B6 28 CD [12:52:36]Write i2c OK [12:52:36]MH_I2C_Read... [12:52:36]Read from MH i2c: F0 [12:52:36]MH_I2C_Read... [12:52:36]Read from MH i2c: F0 09 00 [12:52:36]MH_I2C_Read... [12:52:36]Read from MH i2c: F0 09 00 B6 28 00 18 0C 25 66 F4 E9 65 64 2B [12:52:36]GetLastDocTimeStamp 1713703701 [12:52:36]current date 1713703960 [12:52:36]FM_GetShiftState [12:52:36]SAM_PROTO_GetShiftState [12:52:36]wFMCommunicate request_size=4 [12:52:36]MH_SAM_APDU [12:52:36]CAPDU: 80 13 01 00 [12:52:36]Write to MH i2c: E2 08 00 B7 28 80 13 01 00 00 00 00 00 5C [12:52:36]Write i2c OK [12:52:36]MH_I2C_Read... [12:52:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:36]Read from MH i2c: E2 [12:52:36]MH_I2C_Read... [12:52:36]Read from MH i2c: E2 0E 00 [12:52:36]MH_I2C_Read... [12:52:36]Read from MH i2c: E2 0E 00 B7 28 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 A3 [12:52:36]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [12:52:36]wFMCommunicate OK [12:52:36]SAM_PROTO_GetShiftState done [12:52:36]FM_GetShiftState done [12:52:36]opened in 1713658965 [12:52:36]opened+sec_in_day 1713745365 [12:52:36]quantity*price = 100013 [12:52:36]sum+1 = 100015 [12:52:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 85 21.04.2024 12:52 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 31.55 сом ФМ: 0000000000874652 ФД: 76829 ФПД: 52208573617565 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T125241&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76829&fm=52208573617565&tin=02508201610067®Number=0000000000091573&sum=100000 [12:52:37]StoreToDocumentArchive [12:52:37]shift 372 fd 76829 [12:52:37]save to /storage/0372/doc_00076829 [12:52:37]save last doc name /storage/0372/doc_00076829 to /storage/kkm_last_doc_name [12:52:37]save OK [12:52:37]Clear old archive folders... [12:52:37]ProcessDocumentItem done err = 0, tmpTLVsize=250 [12:52:37]tlvbuf is 0195A3C0 [12:52:37]SAM_PROTO_ClearQueue [12:52:37]wFMCommunicate request_size=4 [12:52:37]MH_SAM_APDU [12:52:37]CAPDU: 80 09 00 00 [12:52:37]Write to MH i2c: E2 08 00 C4 28 80 09 00 00 00 00 00 00 5E [12:52:37]Write i2c OK [12:52:37]MH_I2C_Read... [12:52:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:52:37]Read from MH i2c: E2 [12:52:37]MH_I2C_Read... [12:52:37]Read from MH i2c: E2 03 00 [12:52:37]MH_I2C_Read... [12:52:37]Read from MH i2c: E2 03 00 C4 28 00 90 00 60 [12:52:37]RAPDU: 90 00 [12:52:37]wFMCommunicate OK [12:52:37]SAM_PROTO_ClearQueue done [12:52:37]KKMCreateOFDPacket [12:52:37]OFDProtocolAddRootSTLVToBuf [12:52:37]FM_MakeSignedData [12:52:37]FM_MakeSignedData [12:52:37]SAM_PROTO_SignData [12:52:37]wFMCommunicate request_size=4 [12:52:37]MH_SAM_APDU [12:52:37]CAPDU: 80 0D 01 02 [12:52:37]Write to MH i2c: E2 08 00 C5 28 80 0D 01 02 00 00 00 00 66 [12:52:37]Write i2c OK [12:52:37]MH_I2C_Read... [12:52:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:52:37]Read from MH i2c: E2 [12:52:37]MH_I2C_Read... [12:52:37]Read from MH i2c: E2 03 00 [12:52:37]MH_I2C_Read... [12:52:37]Read from MH i2c: E2 03 00 C5 28 00 90 00 61 [12:52:37]RAPDU: 90 00 [12:52:37]wFMCommunicate OK [12:52:37]wFMCommunicate request_size=255 [12:52:37]MH_SAM_APDU [12:52:37]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 19 0C 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 1D 2C 01 00 35 04 06 00 2F 7B [12:52:37]Write to MH i2c: E2 02 01 C6 28 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 19 0C 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 1D 2C 01 00 35 04 06 00 2F 7B 00 00 4D [12:52:37]Write i2c OK [12:52:37]MH_I2C_Read... [12:52:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:38]Read from MH i2c: E2 [12:52:38]MH_I2C_Read... [12:52:38]Read from MH i2c: E2 03 00 [12:52:38]MH_I2C_Read... [12:52:38]Read from MH i2c: E2 03 00 C6 28 00 90 00 62 [12:52:38]RAPDU: 90 00 [12:52:38]wFMCommunicate OK [12:52:38]wFMCommunicate request_size=9 [12:52:38]MH_SAM_APDU [12:52:38]CAPDU: 80 0D 02 02 04 C1 7C 15 9D [12:52:38]Write to MH i2c: E2 0C 00 C7 28 80 0D 02 02 04 00 C1 7C 15 9D 00 00 60 [12:52:38]Write i2c OK [12:52:38]MH_I2C_Read... [12:52:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:38]Read from MH i2c: E2 [12:52:38]MH_I2C_Read... [12:52:38]Read from MH i2c: E2 03 00 [12:52:38]MH_I2C_Read... [12:52:38]Read from MH i2c: E2 03 00 C7 28 00 90 00 63 [12:52:38]RAPDU: 90 00 [12:52:38]wFMCommunicate OK [12:52:38]wFMCommunicate request_size=4 [12:52:38]MH_SAM_APDU [12:52:38]CAPDU: 80 0D 03 02 [12:52:38]Write to MH i2c: E2 08 00 C8 28 80 0D 03 02 00 00 00 00 6B [12:52:38]Write i2c OK [12:52:38]MH_I2C_Read... [12:52:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:52:38]Read from MH i2c: E2 [12:52:38]MH_I2C_Read... [12:52:38]Read from MH i2c: E2 0B 00 [12:52:38]MH_I2C_Read... [12:52:38]Read from MH i2c: E2 0B 00 C8 28 00 12 15 95 6A 98 9C E2 95 90 00 3D [12:52:38]RAPDU: 12 15 95 6A 98 9C E2 95 90 00 [12:52:38]wFMCommunicate OK [12:52:38]SAM_PROTO_SignData done [12:52:38]FM_MakeSignedData done [12:52:38]CreateOFDProtocolMessage [12:52:38]wFMCommunicate request_size=4 [12:52:38]MH_SAM_APDU [12:52:38]CAPDU: 80 11 00 00 [12:52:38]Write to MH i2c: E2 08 00 C9 28 80 11 00 00 00 00 00 00 6B [12:52:38]Write i2c OK [12:52:38]MH_I2C_Read... [12:52:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:38]Read from MH i2c: E2 [12:52:38]MH_I2C_Read... [12:52:38]Read from MH i2c: E2 17 00 [12:52:38]MH_I2C_Read... [12:52:38]Read from MH i2c: E2 17 00 C9 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 BE [12:52:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:52:38]wFMCommunicate OK [12:52:38]CreateOFDProtocolMessage done [12:52:38]OFDSenderStorePacket 76829 [12:52:38]StoreOFDPacket docnum=76829 [12:52:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 0A 3E 06 01 0C 8D 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 19 0C 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 1D 2C 01 00 35 04 06 00 2F 7B C1 7C 15 9D 12 15 95 6A 98 9C E2 95 [12:52:38]CheckFolder [12:52:38]dirname=/storage/ofd_packets [12:52:38]CheckFolder done [12:52:38]ProducePacketName [12:52:38]name=ofd_packets/00076829 [12:52:38]NVStorageSaveData ofd_packets/00076829 [12:52:38]File name is /storage/ofd_packets/00076829 [12:52:38]Write 300 bytes [12:52:38]NVStorageSaveData done [12:52:38]OFDSenderStorePacket done [12:52:38]KKMCreateOFDPacket done [12:52:38]NVStorageSaveData kkm_last_timestamp [12:52:38]File name is /storage/kkm_last_timestamp [12:52:38]Write 4 bytes [12:52:38]NVStorageSaveData done [12:52:38]ExternCall_PrintAddStr [12:52:38]wPrintStart [12:52:38]Write to MH i2c: 01 00 00 CA 28 F2 [12:52:38]Write i2c OK [12:52:38]MH_I2C_Read... [12:52:38]Read from MH i2c: 01 [12:52:38]MH_I2C_Read... [12:52:38]Read from MH i2c: 01 07 00 [12:52:38]MH_I2C_Read... [12:52:38]Read from MH i2c: 01 07 00 CA 28 00 00 00 00 00 FF 0F 07 [12:52:38]RasterBufferAndPrint [12:52:38]line Счет N : (1)191364 [12:52:38]line ИНН: 02508201610067 [12:52:38]line Контрольно-Кассовый Чек [12:52:38]line ПРОДАЖА [12:52:38]line ТРК (МРК, ГНК) : 71 [12:52:38]line Товар: 2711190000 [12:52:38]line ГАЗ-К-5 [12:52:38]line 31.550 * 31.70 [12:52:38]line = 1000.14 [12:52:38]line НДС 12% НСП 1% [12:52:38]line > о реализуемом товаре [12:52:38]line ОКРУГЛЕНИЕ: -0.14 [12:52:38]line ИТОГО: 1000.00 [12:52:38]line Внесено: 1000.00 [12:52:38]line СДАЧА: 0.00 [12:52:38]line НСП 1% : 8.85 [12:52:38]line НДС 12% : 106.21 [12:52:38]line Наличными: 1000.00 [12:52:38]line Безнал.: 0.00 [12:52:38]line Место: АЗС № 106 "Партнер Нефть" [12:52:38]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [12:52:38]line СНО: Общий режим [12:52:38]line Чек 85 21.04.2024 12:52 [12:52:38]line Смена: 372 ФФД: 1.0 [12:52:38]line ЗНМ: 0300000141 [12:52:38]line РНМ: 0000000000091573 [12:52:38]line Версия ККМ: 001 [12:52:38]line [12:52:38]line Дисконтная программа [12:52:38]line СУГ [12:52:38]line номер 106 [12:52:38]line сэкономлено 31.55 сом [12:52:38]line ФМ: 0000000000874652 [12:52:38]line ФД: 76829 [12:52:38]line ФПД: 52208573617565 [12:52:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T125241&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76829&fm=52208573617565&tin=02508201610067®Number=0000000000091573&sum=100000 [12:52:38]OFD Sender: Processing packet 76829 [packets to send 129, broken 128] [12:52:38]ProducePacketName [12:52:38]name=ofd_packets/00076829 [12:52:38]OFD Sender: To server: pG, [12:52:38]CommunicateWithHost lk.salyk.kg:30040 [12:52:38]ConnectInit lk.salyk.kg [12:52:38]written 0, free lines is 4095 [12:52:38]Connected sock=7 [12:52:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 0A 3E 06 01 0C 8D 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 19 0C 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 1D 2C 01 00 35 04 06 00 2F 7B C1 7C 15 9D 12 15 95 6A 98 9C E2 95 [12:52:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 AD D9 47 00 6A 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 34 36 35 32 10 04 04 00 1D 2C 01 00 F4 03 04 00 9E B3 24 66 B6 04 01 00 00 5D 3E F8 0E AE 04 BD 4A [12:52:39]CommunicateWithHost err = 0 [12:52:39]CheckOFDResponse [12:52:39]1017 (14) - 77093643461234 [12:52:39]1041 (16) - 0000000000874652 [12:52:39]1040 (4) - 76829 [12:52:39]1012 (4) - 21.04.2024 06:35 [12:52:39]1206 (1) - 0 [12:52:39]OFD Sender: Remove packet 76829 [12:52:39]ProducePacketName [12:52:39]name=ofd_packets/00076829 [12:52:39]NVStorageDeleteData [12:52:39]Write to MH i2c: 01 00 00 F9 28 21 [12:52:39]Write i2c OK [12:52:39]MH_I2C_Read... [12:52:39]Read from MH i2c: 01 [12:52:39]MH_I2C_Read... [12:52:39]Read from MH i2c: 01 07 00 [12:52:39]MH_I2C_Read... [12:52:39]Read from MH i2c: 01 07 00 F9 28 00 00 00 00 00 96 0C CA [12:52:39]RasterBufferAndPrint [12:52:39]line [12:52:39]line [12:52:39]line [12:52:39]line [12:52:39]line [12:52:39]written 0, free lines is 3228 [12:52:39]MH_Cut [12:52:39]Write to MH i2c: D1 01 00 00 29 01 FB [12:52:39]Write i2c OK [12:52:39]MH_I2C_Read... [12:52:39]Read from MH i2c: D1 [12:52:39]MH_I2C_Read... [12:52:39]Read from MH i2c: D1 01 00 [12:52:39]MH_I2C_Read... [12:52:39]Read from MH i2c: D1 01 00 00 29 00 FA [12:52:39]Write to MH i2c: 01 00 00 01 29 2A [12:52:39]Write i2c OK [12:52:39]MH_I2C_Read... [12:52:39]OFD Sender: No OFD packet to send [12:52:39]*** Cut start [12:52:39]*** Partial cut [12:52:39]*** CUTSNS_PIN = 1 [12:52:40]*** CUTSNS_PIN = 0 [12:52:40]*** Brake cut motor [12:52:40]Read from MH i2c: 01 [12:52:40]MH_I2C_Read... [12:52:40]*** Stop cut motor [12:52:40]*** Cut end [12:52:40]Read from MH i2c: 01 07 00 [12:52:40]MH_I2C_Read... [12:52:40]Read from MH i2c: 01 07 00 01 29 00 00 00 00 00 FF 0F 3F [12:52:40]process_action close_receipt done [12:52:40]requested_data is exist [12:52:40]produce_requested_data [12:52:40]requested_item fm.sn is exist - process it [12:52:40]wFMCommunicate request_size=4 [12:52:40]MH_SAM_APDU [12:52:40]CAPDU: 80 11 00 00 [12:52:40]Write to MH i2c: E2 08 00 02 29 80 11 00 00 00 00 00 00 A5 [12:52:40]Write i2c OK [12:52:40]MH_I2C_Read... [12:52:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:40]Read from MH i2c: E2 [12:52:40]MH_I2C_Read... [12:52:40]Read from MH i2c: E2 17 00 [12:52:40]MH_I2C_Read... [12:52:40]Read from MH i2c: E2 17 00 02 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F8 [12:52:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:52:40]wFMCommunicate OK [12:52:40]requested_item fd.num is exist - process it [12:52:40]SAM_PROTO_GetFieldsCounters [12:52:40]wFMCommunicate request_size=4 [12:52:40]MH_SAM_APDU [12:52:40]CAPDU: 80 13 00 00 [12:52:40]Write to MH i2c: E2 08 00 03 29 80 13 00 00 00 00 00 00 A8 [12:52:40]Write i2c OK [12:52:40]MH_I2C_Read... [12:52:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:52:40]Read from MH i2c: E2 [12:52:40]MH_I2C_Read... [12:52:40]Read from MH i2c: E2 62 00 [12:52:40]MH_I2C_Read... [12:52:40]Read from MH i2c: E2 62 00 03 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 1D 2C 01 00 0E 04 04 00 74 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 87 [12:52: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 1D 2C 01 00 0E 04 04 00 74 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:52:40]wFMCommunicate OK [12:52:40]SAM_PROTO_GetFieldsCounters done [12:52:40]requested_item shift.num is exist - process it [12:52:40]requested_item shift.opened is exist - process it [12:52:40]req_shift_opened [12:52:40]FM_GetShiftState [12:52:40]SAM_PROTO_GetShiftState [12:52:40]wFMCommunicate request_size=4 [12:52:40]MH_SAM_APDU [12:52:40]CAPDU: 80 13 01 00 [12:52:40]Write to MH i2c: E2 08 00 04 29 80 13 01 00 00 00 00 00 AA [12:52:40]Write i2c OK [12:52:40]MH_I2C_Read... [12:52:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:40]Read from MH i2c: E2 [12:52:40]MH_I2C_Read... [12:52:40]Read from MH i2c: E2 0E 00 [12:52:40]MH_I2C_Read... [12:52:40]Read from MH i2c: E2 0E 00 04 29 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 F1 [12:52:40]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [12:52:40]wFMCommunicate OK [12:52:40]SAM_PROTO_GetShiftState done [12:52:40]FM_GetShiftState done [12:52:40]req_shift_opened done [12:52:40]requested_item shift.open_date is exist - process it [12:52:40]req_shift_open_date [12:52:40]req_shift_open_date done [12:52:40]produce_requested_data done [12:52:40]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76829,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [12:52:40]process_action_free close_receipt [12:52:40]json_value_free [12:52:40]json_value_free done [12:52:40]process_json_proto returns [12:52:40]Send response to host [12:52:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76829,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [12:52:40]free response buf [12:52:40]execute_script done [12:52:40]execute_script returns [12:52:40]free content buf [12:52:40]Sock 9.Close socket [12:52:40]Sock 9.Thread stoped [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:53]accept exits with 10 [12:55:53]New connection [12:55:53]New thread 3067481444 created [12:55:53]Thread 3067338084 joined [12:55:53]Waiting for new connection... [12:55:53] Sock 10.Parse request [12:55:53]Sock 10.Check first char [12:55:53]Sock 10.First char is OK [12:55:53]request: POST /json_proto HTTP/1.0 [12:55:53]Method: POST [12:55:53]URL: /json_proto [12:55:53]Method is POST - this is cgi request [12:55:53]url: /json_proto [12:55:53]query_string will be loaded in cgi processing [12:55:53]execute_cgi json_proto POST (null) [12:55:53]execute_cgi path=json_proto method=POST [12:55:53]POST find Content-Length [12:55:53]Host: 172.17.62.5:8080 [12:55:53]Content-Length: 682 [12:55:53]Content-Type: application/json [12:55:53] [12:55:53]POST finish read [12:55:53]Found Content-Length = 682 [12:55:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\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:55:53]execute_script... [12:55: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)191366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\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:55:53]POST & json_proto [12:55:53]process_json_proto [12:55:53]json parsed OK: [12:55:53]protocol is kg_v1.0 [12:55:53]action value=close_receipt [12:55:53]process_action close_receipt [12:55:53]cmd_close_receipt [12:55:53]MH_GetDate [12:55:53]Write to MH i2c: F0 00 00 05 29 1D [12:55:53]Write i2c OK [12:55:53]MH_I2C_Read... [12:55:53]Read from MH i2c: F0 [12:55:53]MH_I2C_Read... [12:55:53]Read from MH i2c: F0 09 00 [12:55:53]MH_I2C_Read... [12:55:53]Read from MH i2c: F0 09 00 05 29 00 DD 0C 25 66 F4 E9 65 64 40 [12:55:53]GetLastDocTimeStamp 1713703961 [12:55:53]current date 1713704157 [12:55:53]FM_GetShiftState [12:55:53]SAM_PROTO_GetShiftState [12:55:53]wFMCommunicate request_size=4 [12:55:53]MH_SAM_APDU [12:55:53]CAPDU: 80 13 01 00 [12:55:53]Write to MH i2c: E2 08 00 06 29 80 13 01 00 00 00 00 00 AC [12:55:53]Write i2c OK [12:55:53]MH_I2C_Read... [12:55:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:53]Read from MH i2c: E2 [12:55:53]MH_I2C_Read... [12:55:53]Read from MH i2c: E2 0E 00 [12:55:53]MH_I2C_Read... [12:55:53]Read from MH i2c: E2 0E 00 06 29 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 F3 [12:55:53]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [12:55:53]wFMCommunicate OK [12:55:53]SAM_PROTO_GetShiftState done [12:55:53]FM_GetShiftState done [12:55:53]opened in 1713658965 [12:55:53]opened+sec_in_day 1713745365 [12:55:53]quantity*price = 100018 [12:55:53]sum+1 = 100020 [12:55:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 86 21.04.2024 12:55 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76830 ФПД: 84444891561301 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T125557&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76830&fm=84444891561301&tin=02508201610067®Number=0000000000091573&sum=100000 [12:55:54]StoreToDocumentArchive [12:55:54]shift 372 fd 76830 [12:55:54]save to /storage/0372/doc_00076830 [12:55:54]save last doc name /storage/0372/doc_00076830 to /storage/kkm_last_doc_name [12:55:54]save OK [12:55:54]Clear old archive folders... [12:55:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:55:54]tlvbuf is 0195C8E0 [12:55:54]SAM_PROTO_ClearQueue [12:55:54]wFMCommunicate request_size=4 [12:55:54]MH_SAM_APDU [12:55:54]CAPDU: 80 09 00 00 [12:55:54]Write to MH i2c: E2 08 00 13 29 80 09 00 00 00 00 00 00 AE [12:55:54]Write i2c OK [12:55:54]MH_I2C_Read... [12:55:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:55:54]Read from MH i2c: E2 [12:55:54]MH_I2C_Read... [12:55:54]Read from MH i2c: E2 03 00 [12:55:54]MH_I2C_Read... [12:55:54]Read from MH i2c: E2 03 00 13 29 00 90 00 B0 [12:55:54]RAPDU: 90 00 [12:55:54]wFMCommunicate OK [12:55:54]SAM_PROTO_ClearQueue done [12:55:54]KKMCreateOFDPacket [12:55:54]OFDProtocolAddRootSTLVToBuf [12:55:54]FM_MakeSignedData [12:55:54]FM_MakeSignedData [12:55:54]SAM_PROTO_SignData [12:55:54]wFMCommunicate request_size=4 [12:55:54]MH_SAM_APDU [12:55:54]CAPDU: 80 0D 01 02 [12:55:54]Write to MH i2c: E2 08 00 14 29 80 0D 01 02 00 00 00 00 B6 [12:55:54]Write i2c OK [12:55:54]MH_I2C_Read... [12:55:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:55:54]Read from MH i2c: E2 [12:55:54]MH_I2C_Read... [12:55:54]Read from MH i2c: E2 03 00 [12:55:54]MH_I2C_Read... [12:55:54]Read from MH i2c: E2 03 00 14 29 00 90 00 B1 [12:55:54]RAPDU: 90 00 [12:55:54]wFMCommunicate OK [12:55:54]wFMCommunicate request_size=255 [12:55:54]MH_SAM_APDU [12:55: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 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 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 56 00 00 00 F4 03 04 00 DD 0C 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 1E 2C 01 00 35 04 06 00 4C [12:55:54]Write to MH i2c: E2 02 01 15 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 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 56 00 00 00 F4 03 04 00 DD 0C 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 1E 2C 01 00 35 04 06 00 4C 00 00 A3 [12:55:54]Write i2c OK [12:55:54]MH_I2C_Read... [12:55:54]OFD Sender: No OFD packet to send [12:55:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:54]Read from MH i2c: E2 [12:55:54]MH_I2C_Read... [12:55:54]Read from MH i2c: E2 03 00 [12:55:54]MH_I2C_Read... [12:55:54]Read from MH i2c: E2 03 00 15 29 00 90 00 B2 [12:55:54]RAPDU: 90 00 [12:55:54]wFMCommunicate OK [12:55:54]wFMCommunicate request_size=10 [12:55:54]MH_SAM_APDU [12:55:54]CAPDU: 80 0D 02 02 05 CD 5B C3 BD 55 [12:55:54]Write to MH i2c: E2 0D 00 16 29 80 0D 02 02 05 00 CD 5B C3 BD 55 00 00 C0 [12:55:54]Write i2c OK [12:55:54]MH_I2C_Read... [12:55:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:55]Read from MH i2c: E2 [12:55:55]MH_I2C_Read... [12:55:55]Read from MH i2c: E2 03 00 [12:55:55]MH_I2C_Read... [12:55:55]Read from MH i2c: E2 03 00 16 29 00 90 00 B3 [12:55:55]RAPDU: 90 00 [12:55:55]wFMCommunicate OK [12:55:55]wFMCommunicate request_size=4 [12:55:55]MH_SAM_APDU [12:55:55]CAPDU: 80 0D 03 02 [12:55:55]Write to MH i2c: E2 08 00 17 29 80 0D 03 02 00 00 00 00 BB [12:55:55]Write i2c OK [12:55:55]MH_I2C_Read... [12:55:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:55:55]Read from MH i2c: E2 [12:55:55]MH_I2C_Read... [12:55:55]Read from MH i2c: E2 0B 00 [12:55:55]MH_I2C_Read... [12:55:55]Read from MH i2c: E2 0B 00 17 29 00 AB CB C2 93 08 CB 9E 31 90 00 29 [12:55:55]RAPDU: AB CB C2 93 08 CB 9E 31 90 00 [12:55:55]wFMCommunicate OK [12:55:55]SAM_PROTO_SignData done [12:55:55]FM_MakeSignedData done [12:55:55]CreateOFDProtocolMessage [12:55:55]wFMCommunicate request_size=4 [12:55:55]MH_SAM_APDU [12:55:55]CAPDU: 80 11 00 00 [12:55:55]Write to MH i2c: E2 08 00 18 29 80 11 00 00 00 00 00 00 BB [12:55:55]Write i2c OK [12:55:55]MH_I2C_Read... [12:55:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:55]Read from MH i2c: E2 [12:55:55]MH_I2C_Read... [12:55:55]Read from MH i2c: E2 17 00 [12:55:55]MH_I2C_Read... [12:55:55]Read from MH i2c: E2 17 00 18 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 0E [12:55:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:55:55]wFMCommunicate OK [12:55:55]CreateOFDProtocolMessage done [12:55:55]OFDSenderStorePacket 76830 [12:55:55]StoreOFDPacket docnum=76830 [12:55:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 78 2B 07 01 4F D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 56 00 00 00 F4 03 04 00 DD 0C 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 1E 2C 01 00 35 04 06 00 4C CD 5B C3 BD 55 AB CB C2 93 08 CB 9E 31 [12:55:55]CheckFolder [12:55:55]dirname=/storage/ofd_packets [12:55:55]CheckFolder done [12:55:55]ProducePacketName [12:55:55]name=ofd_packets/00076830 [12:55:55]NVStorageSaveData ofd_packets/00076830 [12:55:55]File name is /storage/ofd_packets/00076830 [12:55:55]Write 301 bytes [12:55:55]NVStorageSaveData done [12:55:55]OFDSenderStorePacket done [12:55:55]KKMCreateOFDPacket done [12:55:55]NVStorageSaveData kkm_last_timestamp [12:55:55]File name is /storage/kkm_last_timestamp [12:55:55]Write 4 bytes [12:55:55]NVStorageSaveData done [12:55:55]ExternCall_PrintAddStr [12:55:55]wPrintStart [12:55:55]Write to MH i2c: 01 00 00 19 29 42 [12:55:55]Write i2c OK [12:55:55]MH_I2C_Read... [12:55:55]Read from MH i2c: 01 [12:55:55]MH_I2C_Read... [12:55:55]Read from MH i2c: 01 07 00 [12:55:55]MH_I2C_Read... [12:55:55]Read from MH i2c: 01 07 00 19 29 00 00 00 00 00 FF 0F 57 [12:55:55]RasterBufferAndPrint [12:55:55]line Счет N : (1)191366 [12:55:55]line ИНН: 02508201610067 [12:55:55]line Контрольно-Кассовый Чек [12:55:55]line ПРОДАЖА [12:55:55]line ТРК (МРК, ГНК) : 21 [12:55:55]line Товар: 2710124500 [12:55:55]line Аи-95-К-5 [12:55:55]line 13.720 * 72.90 [12:55:55]line = 1000.19 [12:55:55]line НДС 12% НСП 1% [12:55:55]line > о реализуемом товаре [12:55:55]line ОКРУГЛЕНИЕ: -0.19 [12:55:55]line ИТОГО: 1000.00 [12:55:55]line Внесено: 1000.00 [12:55:55]line СДАЧА: 0.00 [12:55:55]line НСП 1% : 8.85 [12:55:55]line НДС 12% : 106.21 [12:55:55]line Наличными: 1000.00 [12:55:55]line Безнал.: 0.00 [12:55:55]line Место: АЗС № 106 "Партнер Нефть" [12:55:55]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [12:55:55]line СНО: Общий режим [12:55:55]line Чек 86 21.04.2024 12:55 [12:55:55]line Смена: 372 ФФД: 1.0 [12:55:55]line ЗНМ: 0300000141 [12:55:55]line РНМ: 0000000000091573 [12:55:55]line Версия ККМ: 001 [12:55:55]line ФМ: 0000000000874652 [12:55:55]line ФД: 76830 [12:55:55]line ФПД: 84444891561301 [12:55:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T125557&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76830&fm=84444891561301&tin=02508201610067®Number=0000000000091573&sum=100000 [12:55:55]OFD Sender: Processing packet 76830 [packets to send 129, broken 128] [12:55:55]ProducePacketName [12:55:55]name=ofd_packets/00076830 [12:55:55]OFD Sender: To server: pG, [12:55:55]CommunicateWithHost lk.salyk.kg:30040 [12:55:55]ConnectInit lk.salyk.kg [12:55:55]written 0, free lines is 4095 [12:55:55]Connected sock=9 [12:55:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 78 2B 07 01 4F D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 56 00 00 00 F4 03 04 00 DD 0C 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 1E 2C 01 00 35 04 06 00 4C CD 5B C3 BD 55 AB CB C2 93 08 CB 9E 31 [12:55:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 00 E8 47 00 61 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 34 36 35 32 10 04 04 00 1E 2C 01 00 F4 03 04 00 63 B4 24 66 B6 04 01 00 00 DC 9B 53 5F F7 43 ED A4 [12:55:55]CommunicateWithHost err = 0 [12:55:55]CheckOFDResponse [12:55:55]1017 (14) - 77093643461234 [12:55:55]1041 (16) - 0000000000874652 [12:55:55]1040 (4) - 76830 [12:55:55]1012 (4) - 21.04.2024 06:38 [12:55:55]1206 (1) - 0 [12:55:55]OFD Sender: Remove packet 76830 [12:55:55]ProducePacketName [12:55:55]name=ofd_packets/00076830 [12:55:55]NVStorageDeleteData [12:55:55]Write to MH i2c: 01 00 00 43 29 6C [12:55:55]Write i2c OK [12:55:55]MH_I2C_Read... [12:55:55]Read from MH i2c: 01 [12:55:55]MH_I2C_Read... [12:55:55]Read from MH i2c: 01 07 00 [12:55:55]MH_I2C_Read... [12:55:55]Read from MH i2c: 01 07 00 43 29 00 00 00 00 00 FB 0C 7A [12:55:55]RasterBufferAndPrint [12:55:55]line [12:55:55]line [12:55:55]line [12:55:55]line [12:55:55]line [12:55:55]written 0, free lines is 3329 [12:55:55]MH_Cut [12:55:55]Write to MH i2c: D1 01 00 4A 29 01 45 [12:55:55]Write i2c OK [12:55:55]MH_I2C_Read... [12:55:55]Read from MH i2c: D1 [12:55:55]MH_I2C_Read... [12:55:55]Read from MH i2c: D1 01 00 [12:55:55]MH_I2C_Read... [12:55:55]Read from MH i2c: D1 01 00 4A 29 00 44 [12:55:55]Write to MH i2c: 01 00 00 4B 29 74 [12:55:55]Write i2c OK [12:55:55]MH_I2C_Read... [12:55:56]OFD Sender: No OFD packet to send [12:55:56]*** Cut start [12:55:56]*** Partial cut [12:55:56]*** CUTSNS_PIN = 1 [12:55:56]*** CUTSNS_PIN = 0 [12:55:56]*** Brake cut motor [12:55:57]Read from MH i2c: 01 [12:55:57]MH_I2C_Read... [12:55:57]*** Stop cut motor [12:55:57]*** Cut end [12:55:57]Read from MH i2c: 01 07 00 [12:55:57]MH_I2C_Read... [12:55:57]Read from MH i2c: 01 07 00 4B 29 00 00 00 00 00 FF 0F 89 [12:55:57]process_action close_receipt done [12:55:57]requested_data is exist [12:55:57]produce_requested_data [12:55:57]requested_item fm.sn is exist - process it [12:55:57]wFMCommunicate request_size=4 [12:55:57]MH_SAM_APDU [12:55:57]CAPDU: 80 11 00 00 [12:55:57]Write to MH i2c: E2 08 00 4C 29 80 11 00 00 00 00 00 00 EF [12:55:57]Write i2c OK [12:55:57]MH_I2C_Read... [12:55:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:57]Read from MH i2c: E2 [12:55:57]MH_I2C_Read... [12:55:57]Read from MH i2c: E2 17 00 [12:55:57]MH_I2C_Read... [12:55:57]Read from MH i2c: E2 17 00 4C 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 42 [12:55:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:55:57]wFMCommunicate OK [12:55:57]requested_item fd.num is exist - process it [12:55:57]SAM_PROTO_GetFieldsCounters [12:55:57]wFMCommunicate request_size=4 [12:55:57]MH_SAM_APDU [12:55:57]CAPDU: 80 13 00 00 [12:55:57]Write to MH i2c: E2 08 00 4D 29 80 13 00 00 00 00 00 00 F2 [12:55:57]Write i2c OK [12:55:57]MH_I2C_Read... [12:55:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:55:57]Read from MH i2c: E2 [12:55:57]MH_I2C_Read... [12:55:57]Read from MH i2c: E2 62 00 [12:55:57]MH_I2C_Read... [12:55:57]Read from MH i2c: E2 62 00 4D 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 1E 2C 01 00 0E 04 04 00 74 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 D5 [12:55: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 1E 2C 01 00 0E 04 04 00 74 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:55:57]wFMCommunicate OK [12:55:57]SAM_PROTO_GetFieldsCounters done [12:55:57]requested_item shift.num is exist - process it [12:55:57]requested_item shift.opened is exist - process it [12:55:57]req_shift_opened [12:55:57]FM_GetShiftState [12:55:57]SAM_PROTO_GetShiftState [12:55:57]wFMCommunicate request_size=4 [12:55:57]MH_SAM_APDU [12:55:57]CAPDU: 80 13 01 00 [12:55:57]Write to MH i2c: E2 08 00 4E 29 80 13 01 00 00 00 00 00 F4 [12:55:57]Write i2c OK [12:55:57]MH_I2C_Read... [12:55:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:57]Read from MH i2c: E2 [12:55:57]MH_I2C_Read... [12:55:57]Read from MH i2c: E2 0E 00 [12:55:57]MH_I2C_Read... [12:55:57]Read from MH i2c: E2 0E 00 4E 29 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 3B [12:55:57]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [12:55:57]wFMCommunicate OK [12:55:57]SAM_PROTO_GetShiftState done [12:55:57]FM_GetShiftState done [12:55:57]req_shift_opened done [12:55:57]requested_item shift.open_date is exist - process it [12:55:57]req_shift_open_date [12:55:57]req_shift_open_date done [12:55:57]produce_requested_data done [12:55:57]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76830,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [12:55:57]process_action_free close_receipt [12:55:57]json_value_free [12:55:57]json_value_free done [12:55:57]process_json_proto returns [12:55:57]Send response to host [12:55:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76830,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [12:55:57]free response buf [12:55:57]execute_script done [12:55:57]execute_script returns [12:55:57]free content buf [12:55:57]Sock 10.Close socket [12:55:57]Sock 10.Thread stoped [12:56:01]OFD Sender: No OFD packet to send [12:56:06]OFD Sender: No OFD packet to send [12:56:11]OFD Sender: No OFD packet to send [12:56:16]OFD Sender: No OFD packet to send [12:56:18]accept exits with 7 [12:56:18]New connection [12:56:18]New thread 3067338084 created [12:56:18]Thread 3067481444 joined [12:56:18]Waiting for new connection... [12:56:18] Sock 7.Parse request [12:56:18]Sock 7.Check first char [12:56:18]Sock 7.First char is OK [12:56:18]request: POST /json_proto HTTP/1.0 [12:56:18]Method: POST [12:56:18]URL: /json_proto [12:56:18]Method is POST - this is cgi request [12:56:18]url: /json_proto [12:56:18]query_string will be loaded in cgi processing [12:56:18]execute_cgi json_proto POST (null) [12:56:18]execute_cgi path=json_proto method=POST [12:56:18]POST find Content-Length [12:56:18]Host: 172.17.62.5:8080 [12:56:18]Content-Length: 814 [12:56:18]Content-Type: application/json [12:56:18] [12:56:18]POST finish read [12:56:18]Found Content-Length = 814 [12:56:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 0.600, "sum" : 43.74, "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" : 43.74 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:18]execute_script... [12:56: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)191367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 0.600, "sum" : 43.74, "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" : 43.74 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:18]POST & json_proto [12:56:18]process_json_proto [12:56:18]json parsed OK: [12:56:18]protocol is kg_v1.0 [12:56:18]action value=close_receipt [12:56:18]process_action close_receipt [12:56:18]cmd_close_receipt [12:56:18]MH_GetDate [12:56:18]Write to MH i2c: F0 00 00 4F 29 67 [12:56:18]Write i2c OK [12:56:18]MH_I2C_Read... [12:56:18]Read from MH i2c: F0 [12:56:18]MH_I2C_Read... [12:56:18]Read from MH i2c: F0 09 00 [12:56:18]MH_I2C_Read... [12:56:18]Read from MH i2c: F0 09 00 4F 29 00 F7 0C 25 66 F4 E9 65 64 A4 [12:56:18]GetLastDocTimeStamp 1713704157 [12:56:18]current date 1713704183 [12:56:18]FM_GetShiftState [12:56:18]SAM_PROTO_GetShiftState [12:56:18]wFMCommunicate request_size=4 [12:56:18]MH_SAM_APDU [12:56:18]CAPDU: 80 13 01 00 [12:56:18]Write to MH i2c: E2 08 00 50 29 80 13 01 00 00 00 00 00 F6 [12:56:18]Write i2c OK [12:56:18]MH_I2C_Read... [12:56:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:18]Read from MH i2c: E2 [12:56:18]MH_I2C_Read... [12:56:18]Read from MH i2c: E2 0E 00 [12:56:18]MH_I2C_Read... [12:56:18]Read from MH i2c: E2 0E 00 50 29 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 3D [12:56:18]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [12:56:18]wFMCommunicate OK [12:56:18]SAM_PROTO_GetShiftState done [12:56:18]FM_GetShiftState done [12:56:18]opened in 1713658965 [12:56:18]opened+sec_in_day 1713745365 [12:56:18]quantity*price = 4374 [12:56:18]sum+1 = 4375 [12:56:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 43.74 НСП 1% : 0.39 НДС 12% : 4.64 Наличными: 0.00 Безнал.: 43.74 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 87 21.04.2024 12:56 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 76831 ФПД: 92222865860577 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T125623&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76831&fm=92222865860577&tin=02508201610067®Number=0000000000091573&sum=4374 [12:56:19]StoreToDocumentArchive [12:56:19]shift 372 fd 76831 [12:56:19]save to /storage/0372/doc_00076831 [12:56:19]save last doc name /storage/0372/doc_00076831 to /storage/kkm_last_doc_name [12:56:19]save OK [12:56:19]Clear old archive folders... [12:56:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:56:19]tlvbuf is 019157B0 [12:56:19]SAM_PROTO_ClearQueue [12:56:19]wFMCommunicate request_size=4 [12:56:19]MH_SAM_APDU [12:56:19]CAPDU: 80 09 00 00 [12:56:19]Write to MH i2c: E2 08 00 5D 29 80 09 00 00 00 00 00 00 F8 [12:56:20]Write i2c OK [12:56:20]MH_I2C_Read... [12:56:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:56:20]Read from MH i2c: E2 [12:56:20]MH_I2C_Read... [12:56:20]Read from MH i2c: E2 03 00 [12:56:20]MH_I2C_Read... [12:56:20]Read from MH i2c: E2 03 00 5D 29 00 90 00 FA [12:56:20]RAPDU: 90 00 [12:56:20]wFMCommunicate OK [12:56:20]SAM_PROTO_ClearQueue done [12:56:20]KKMCreateOFDPacket [12:56:20]OFDProtocolAddRootSTLVToBuf [12:56:20]FM_MakeSignedData [12:56:20]FM_MakeSignedData [12:56:20]SAM_PROTO_SignData [12:56:20]wFMCommunicate request_size=4 [12:56:20]MH_SAM_APDU [12:56:20]CAPDU: 80 0D 01 02 [12:56:20]Write to MH i2c: E2 08 00 5E 29 80 0D 01 02 00 00 00 00 00 [12:56:20]Write i2c OK [12:56:20]MH_I2C_Read... [12:56:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:56:20]Read from MH i2c: E2 [12:56:20]MH_I2C_Read... [12:56:20]Read from MH i2c: E2 03 00 [12:56:20]MH_I2C_Read... [12:56:20]Read from MH i2c: E2 03 00 5E 29 00 90 00 FB [12:56:20]RAPDU: 90 00 [12:56:20]wFMCommunicate OK [12:56:20]wFMCommunicate request_size=255 [12:56:20]MH_SAM_APDU [12:56:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 58 02 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 16 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 11 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 F7 0C 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 1F 2C 01 00 35 04 06 00 53 [12:56:20]Write to MH i2c: E2 02 01 5F 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 58 02 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 16 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 11 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 F7 0C 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 1F 2C 01 00 35 04 06 00 53 00 00 64 [12:56:20]Write i2c OK [12:56:20]MH_I2C_Read... [12:56:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:20]Read from MH i2c: E2 [12:56:20]MH_I2C_Read... [12:56:20]Read from MH i2c: E2 03 00 [12:56:20]MH_I2C_Read... [12:56:20]Read from MH i2c: E2 03 00 5F 29 00 90 00 FC [12:56:20]RAPDU: 90 00 [12:56:20]wFMCommunicate OK [12:56:20]wFMCommunicate request_size=10 [12:56:20]MH_SAM_APDU [12:56:20]CAPDU: 80 0D 02 02 05 E0 4F 28 E7 E1 [12:56:20]Write to MH i2c: E2 0D 00 60 29 80 0D 02 02 05 00 E0 4F 28 E7 E1 00 00 2C [12:56:20]Write i2c OK [12:56:20]MH_I2C_Read... [12:56:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:20]Read from MH i2c: E2 [12:56:20]MH_I2C_Read... [12:56:20]Read from MH i2c: E2 03 00 [12:56:20]MH_I2C_Read... [12:56:20]Read from MH i2c: E2 03 00 60 29 00 90 00 FD [12:56:20]RAPDU: 90 00 [12:56:20]wFMCommunicate OK [12:56:20]wFMCommunicate request_size=4 [12:56:20]MH_SAM_APDU [12:56:20]CAPDU: 80 0D 03 02 [12:56:20]Write to MH i2c: E2 08 00 61 29 80 0D 03 02 00 00 00 00 05 [12:56:20]Write i2c OK [12:56:20]MH_I2C_Read... [12:56:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:56:20]Read from MH i2c: E2 [12:56:20]MH_I2C_Read... [12:56:20]Read from MH i2c: E2 0B 00 [12:56:20]MH_I2C_Read... [12:56:20]Read from MH i2c: E2 0B 00 61 29 00 A6 99 2A AC FA D6 0E CE 90 00 C7 [12:56:20]RAPDU: A6 99 2A AC FA D6 0E CE 90 00 [12:56:20]wFMCommunicate OK [12:56:20]SAM_PROTO_SignData done [12:56:20]FM_MakeSignedData done [12:56:20]CreateOFDProtocolMessage [12:56:20]wFMCommunicate request_size=4 [12:56:20]MH_SAM_APDU [12:56:20]CAPDU: 80 11 00 00 [12:56:20]Write to MH i2c: E2 08 00 62 29 80 11 00 00 00 00 00 00 05 [12:56:20]Write i2c OK [12:56:20]MH_I2C_Read... [12:56:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:20]Read from MH i2c: E2 [12:56:20]MH_I2C_Read... [12:56:20]Read from MH i2c: E2 17 00 [12:56:20]MH_I2C_Read... [12:56:20]Read from MH i2c: E2 17 00 62 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 58 [12:56:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:56:20]wFMCommunicate OK [12:56:20]CreateOFDProtocolMessage done [12:56:20]OFDSenderStorePacket 76831 [12:56:20]StoreOFDPacket docnum=76831 [12:56:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 FC C0 07 01 88 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 58 02 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 16 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 11 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 F7 0C 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 1F 2C 01 00 35 04 06 00 53 E0 4F 28 E7 E1 A6 99 2A AC FA D6 0E CE [12:56:20]CheckFolder [12:56:20]dirname=/storage/ofd_packets [12:56:20]CheckFolder done [12:56:20]ProducePacketName [12:56:20]name=ofd_packets/00076831 [12:56:20]NVStorageSaveData ofd_packets/00076831 [12:56:20]File name is /storage/ofd_packets/00076831 [12:56:20]Write 301 bytes [12:56:20]NVStorageSaveData done [12:56:20]OFDSenderStorePacket done [12:56:20]KKMCreateOFDPacket done [12:56:20]NVStorageSaveData kkm_last_timestamp [12:56:20]File name is /storage/kkm_last_timestamp [12:56:20]Write 4 bytes [12:56:20]NVStorageSaveData done [12:56:20]ExternCall_PrintAddStr [12:56:20]wPrintStart [12:56:20]Write to MH i2c: 01 00 00 63 29 8C [12:56:20]Write i2c OK [12:56:20]MH_I2C_Read... [12:56:20]Read from MH i2c: 01 [12:56:20]MH_I2C_Read... [12:56:20]Read from MH i2c: 01 07 00 [12:56:20]MH_I2C_Read... [12:56:20]Read from MH i2c: 01 07 00 63 29 00 00 00 00 00 FF 0F A1 [12:56:20]RasterBufferAndPrint [12:56:20]line Счет N : (1)191367 [12:56:20]line ИНН: 02508201610067 [12:56:20]line Контрольно-Кассовый Чек [12:56:20]line ПРОДАЖА [12:56:20]line ТРК (МРК, ГНК) : 42 [12:56:20]line Товар: 2710124500 [12:56:20]line Аи-95-К-5 [12:56:20]line 0.600 * 72.90 [12:56:20]line = 43.74 [12:56:20]line НДС 12% НСП 1% [12:56:20]line > о реализуемом товаре [12:56:20]line ИТОГО: 43.74 [12:56:20]line НСП 1% : 0.39 [12:56:20]line НДС 12% : 4.64 [12:56:20]line Наличными: 0.00 [12:56:20]line Безнал.: 43.74 [12:56:20]line Место: АЗС № 106 "Партнер Нефть" [12:56:20]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [12:56:20]line СНО: Общий режим [12:56:20]line Чек 87 21.04.2024 12:56 [12:56:20]line Смена: 372 ФФД: 1.0 [12:56:20]line ЗНМ: 0300000141 [12:56:20]line РНМ: 0000000000091573 [12:56:20]line Версия ККМ: 001 [12:56:20]line Платежная система: Бакай Банк [12:56:20]line ФМ: 0000000000874652 [12:56:20]line ФД: 76831 [12:56:20]line ФПД: 92222865860577 [12:56:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T125623&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76831&fm=92222865860577&tin=02508201610067®Number=0000000000091573&sum=4374 [12:56:20]OFD Sender: Processing packet 76831 [packets to send 129, broken 128] [12:56:20]ProducePacketName [12:56:20]name=ofd_packets/00076831 [12:56:20]OFD Sender: To server: pG, [12:56:20]CommunicateWithHost lk.salyk.kg:30040 [12:56:20]ConnectInit lk.salyk.kg [12:56:20]written 0, free lines is 4095 [12:56:21]Connected sock=10 [12:56:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 FC C0 07 01 88 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 58 02 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 16 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 11 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 F7 0C 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 1F 2C 01 00 35 04 06 00 53 E0 4F 28 E7 E1 A6 99 2A AC FA D6 0E CE [12:56:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 99 35 47 00 7B 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 34 36 35 32 10 04 04 00 1F 2C 01 00 F4 03 04 00 7C B4 24 66 B6 04 01 00 00 59 1B 62 1B 4F 00 06 D1 [12:56:21]CommunicateWithHost err = 0 [12:56:21]CheckOFDResponse [12:56:21]1017 (14) - 77093643461234 [12:56:21]1041 (16) - 0000000000874652 [12:56:21]1040 (4) - 76831 [12:56:21]1012 (4) - 21.04.2024 06:38 [12:56:21]1206 (1) - 0 [12:56:21]OFD Sender: Remove packet 76831 [12:56:21]ProducePacketName [12:56:21]name=ofd_packets/00076831 [12:56:21]NVStorageDeleteData [12:56:21]Write to MH i2c: 01 00 00 8C 29 B5 [12:56:21]Write i2c OK [12:56:21]MH_I2C_Read... [12:56:21]Read from MH i2c: 01 [12:56:21]MH_I2C_Read... [12:56:21]Read from MH i2c: 01 07 00 [12:56:21]MH_I2C_Read... [12:56:21]Read from MH i2c: 01 07 00 8C 29 00 00 00 00 00 F8 0C C0 [12:56:21]RasterBufferAndPrint [12:56:21]line [12:56:21]line [12:56:21]line [12:56:21]line [12:56:21]line [12:56:21]written 0, free lines is 3327 [12:56:21]MH_Cut [12:56:21]Write to MH i2c: D1 01 00 93 29 01 8E [12:56:21]Write i2c OK [12:56:21]MH_I2C_Read... [12:56:21]Read from MH i2c: D1 [12:56:21]MH_I2C_Read... [12:56:21]Read from MH i2c: D1 01 00 [12:56:21]MH_I2C_Read... [12:56:21]Read from MH i2c: D1 01 00 93 29 00 8D [12:56:21]Write to MH i2c: 01 00 00 94 29 BD [12:56:21]Write i2c OK [12:56:21]MH_I2C_Read... [12:56:21]OFD Sender: No OFD packet to send [12:56:22]*** Cut start [12:56:22]*** Partial cut [12:56:22]*** CUTSNS_PIN = 1 [12:56:22]*** CUTSNS_PIN = 0 [12:56:22]*** Brake cut motor [12:56:22]Read from MH i2c: 01 [12:56:22]MH_I2C_Read... [12:56:22]*** Stop cut motor [12:56:22]*** Cut end [12:56:22]Read from MH i2c: 01 07 00 [12:56:22]MH_I2C_Read... [12:56:22]Read from MH i2c: 01 07 00 94 29 00 00 00 00 00 FF 0F D2 [12:56:22]process_action close_receipt done [12:56:22]requested_data is exist [12:56:22]produce_requested_data [12:56:22]requested_item fm.sn is exist - process it [12:56:22]wFMCommunicate request_size=4 [12:56:22]MH_SAM_APDU [12:56:22]CAPDU: 80 11 00 00 [12:56:22]Write to MH i2c: E2 08 00 95 29 80 11 00 00 00 00 00 00 38 [12:56:22]Write i2c OK [12:56:22]MH_I2C_Read... [12:56:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:22]Read from MH i2c: E2 [12:56:22]MH_I2C_Read... [12:56:22]Read from MH i2c: E2 17 00 [12:56:22]MH_I2C_Read... [12:56:22]Read from MH i2c: E2 17 00 95 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 8B [12:56:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:56:22]wFMCommunicate OK [12:56:22]requested_item fd.num is exist - process it [12:56:22]SAM_PROTO_GetFieldsCounters [12:56:22]wFMCommunicate request_size=4 [12:56:22]MH_SAM_APDU [12:56:22]CAPDU: 80 13 00 00 [12:56:22]Write to MH i2c: E2 08 00 96 29 80 13 00 00 00 00 00 00 3B [12:56:22]Write i2c OK [12:56:22]MH_I2C_Read... [12:56:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:56:22]Read from MH i2c: E2 [12:56:22]MH_I2C_Read... [12:56:22]Read from MH i2c: E2 62 00 [12:56:22]MH_I2C_Read... [12:56:22]Read from MH i2c: E2 62 00 96 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 1F 2C 01 00 0E 04 04 00 74 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 22 [12:56:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 1F 2C 01 00 0E 04 04 00 74 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:56:22]wFMCommunicate OK [12:56:22]SAM_PROTO_GetFieldsCounters done [12:56:22]requested_item shift.num is exist - process it [12:56:22]requested_item shift.opened is exist - process it [12:56:22]req_shift_opened [12:56:22]FM_GetShiftState [12:56:22]SAM_PROTO_GetShiftState [12:56:22]wFMCommunicate request_size=4 [12:56:22]MH_SAM_APDU [12:56:22]CAPDU: 80 13 01 00 [12:56:22]Write to MH i2c: E2 08 00 97 29 80 13 01 00 00 00 00 00 3D [12:56:22]Write i2c OK [12:56:22]MH_I2C_Read... [12:56:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:22]Read from MH i2c: E2 [12:56:22]MH_I2C_Read... [12:56:22]Read from MH i2c: E2 0E 00 [12:56:22]MH_I2C_Read... [12:56:22]Read from MH i2c: E2 0E 00 97 29 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 84 [12:56:22]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [12:56:22]wFMCommunicate OK [12:56:22]SAM_PROTO_GetShiftState done [12:56:22]FM_GetShiftState done [12:56:22]req_shift_opened done [12:56:22]requested_item shift.open_date is exist - process it [12:56:22]req_shift_open_date [12:56:22]req_shift_open_date done [12:56:22]produce_requested_data done [12:56:22]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76831,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [12:56:22]process_action_free close_receipt [12:56:22]json_value_free [12:56:22]json_value_free done [12:56:22]process_json_proto returns [12:56:22]Send response to host [12:56:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76831,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [12:56:22]free response buf [12:56:22]execute_script done [12:56:22]execute_script returns [12:56:22]free content buf [12:56:22]Sock 7.Close socket [12:56:22]Sock 7.Thread stoped [12:56:26]OFD Sender: No OFD packet to send [12:56:31]OFD Sender: No OFD packet to send [12:56:36]OFD Sender: No OFD packet to send [12:56:41]OFD Sender: No OFD packet to send [12:56:46]OFD Sender: No OFD packet to send [12:56:51]OFD Sender: No OFD packet to send [12:56:56]OFD Sender: No OFD packet to send [12:57:01]OFD Sender: No OFD packet to send [12:57:06]OFD Sender: No OFD packet to send [12:57:11]OFD Sender: No OFD packet to send [12:57:16]OFD Sender: No OFD packet to send [12:57:21]accept exits with 9 [12:57:21]New connection [12:57:21]New thread 3067481444 created [12:57:21]Thread 3067338084 joined [12:57:21]Waiting for new connection... [12:57:21] Sock 9.Parse request [12:57:21]Sock 9.Check first char [12:57:21]Sock 9.First char is OK [12:57:21]request: POST /json_proto HTTP/1.0 [12:57:21]Method: POST [12:57:21]URL: /json_proto [12:57:21]Method is POST - this is cgi request [12:57:21]url: /json_proto [12:57:21]query_string will be loaded in cgi processing [12:57:21]execute_cgi json_proto POST (null) [12:57:21]execute_cgi path=json_proto method=POST [12:57:21]POST find Content-Length [12:57:21]Host: 172.17.62.5:8080 [12:57:21]Content-Length: 822 [12:57:21]Content-Type: application/json [12:57:21] [12:57:21]POST finish read [12:57:21]Found Content-Length = 822 [12:57:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 30.590, "sum" : 1000.29, "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.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:21]execute_script... [12:57: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)191365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 30.590, "sum" : 1000.29, "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.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:21]POST & json_proto [12:57:21]process_json_proto [12:57:21]json parsed OK: [12:57:21]protocol is kg_v1.0 [12:57:21]action value=close_receipt [12:57:21]process_action close_receipt [12:57:21]cmd_close_receipt [12:57:21]MH_GetDate [12:57:21]Write to MH i2c: F0 00 00 98 29 B0 [12:57:21]Write i2c OK [12:57:21]MH_I2C_Read... [12:57:21]Read from MH i2c: F0 [12:57:21]MH_I2C_Read... [12:57:21]Read from MH i2c: F0 09 00 [12:57:21]MH_I2C_Read... [12:57:21]Read from MH i2c: F0 09 00 98 29 00 35 0D 25 66 F4 E9 65 64 2C [12:57:21]GetLastDocTimeStamp 1713704183 [12:57:21]current date 1713704245 [12:57:21]FM_GetShiftState [12:57:21]SAM_PROTO_GetShiftState [12:57:21]wFMCommunicate request_size=4 [12:57:21]MH_SAM_APDU [12:57:21]CAPDU: 80 13 01 00 [12:57:21]Write to MH i2c: E2 08 00 99 29 80 13 01 00 00 00 00 00 3F [12:57:21]Write i2c OK [12:57:21]MH_I2C_Read... [12:57:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:21]Read from MH i2c: E2 [12:57:21]MH_I2C_Read... [12:57:21]Read from MH i2c: E2 0E 00 [12:57:21]MH_I2C_Read... [12:57:21]Read from MH i2c: E2 0E 00 99 29 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 86 [12:57:21]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [12:57:21]wFMCommunicate OK [12:57:21]SAM_PROTO_GetShiftState done [12:57:21]FM_GetShiftState done [12:57:21]opened in 1713658965 [12:57:21]opened+sec_in_day 1713745365 [12:57:21]quantity*price = 100029 [12:57:21]sum+1 = 100030 [12:57:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.29 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.29 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 88 21.04.2024 12:57 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 76832 ФПД: 105725261922898 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T125725&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76832&fm=105725261922898&tin=02508201610067®Number=0000000000091573&sum=100029 [12:57:22]StoreToDocumentArchive [12:57:22]shift 372 fd 76832 [12:57:22]save to /storage/0372/doc_00076832 [12:57:22]save last doc name /storage/0372/doc_00076832 to /storage/kkm_last_doc_name [12:57:22]save OK [12:57:22]Clear old archive folders... [12:57:22]ProcessDocumentItem done err = 0, tmpTLVsize=250 [12:57:22]tlvbuf is 01858A50 [12:57:22]SAM_PROTO_ClearQueue [12:57:22]wFMCommunicate request_size=4 [12:57:22]MH_SAM_APDU [12:57:22]CAPDU: 80 09 00 00 [12:57:22]Write to MH i2c: E2 08 00 A6 29 80 09 00 00 00 00 00 00 41 [12:57:22]Write i2c OK [12:57:22]MH_I2C_Read... [12:57:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:57:22]Read from MH i2c: E2 [12:57:22]MH_I2C_Read... [12:57:22]Read from MH i2c: E2 03 00 [12:57:22]MH_I2C_Read... [12:57:22]Read from MH i2c: E2 03 00 A6 29 00 90 00 43 [12:57:22]RAPDU: 90 00 [12:57:22]wFMCommunicate OK [12:57:22]SAM_PROTO_ClearQueue done [12:57:22]KKMCreateOFDPacket [12:57:22]OFDProtocolAddRootSTLVToBuf [12:57:22]FM_MakeSignedData [12:57:22]FM_MakeSignedData [12:57:22]SAM_PROTO_SignData [12:57:22]wFMCommunicate request_size=4 [12:57:22]MH_SAM_APDU [12:57:22]CAPDU: 80 0D 01 02 [12:57:22]Write to MH i2c: E2 08 00 A7 29 80 0D 01 02 00 00 00 00 49 [12:57:22]Write i2c OK [12:57:22]MH_I2C_Read... [12:57:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:57:22]Read from MH i2c: E2 [12:57:22]MH_I2C_Read... [12:57:22]Read from MH i2c: E2 03 00 [12:57:22]MH_I2C_Read... [12:57:22]Read from MH i2c: E2 03 00 A7 29 00 90 00 44 [12:57:22]RAPDU: 90 00 [12:57:22]wFMCommunicate OK [12:57:22]wFMCommunicate request_size=255 [12:57:22]MH_SAM_APDU [12:57:22]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 35 0D 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 20 2C 01 00 35 04 06 00 60 28 [12:57:22]Write to MH i2c: E2 02 01 A8 29 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 35 0D 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 20 2C 01 00 35 04 06 00 60 28 00 00 1B [12:57:22]Write i2c OK [12:57:22]MH_I2C_Read... [12:57:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:22]Read from MH i2c: E2 [12:57:22]MH_I2C_Read... [12:57:22]Read from MH i2c: E2 03 00 [12:57:22]MH_I2C_Read... [12:57:22]Read from MH i2c: E2 03 00 A8 29 00 90 00 45 [12:57:22]RAPDU: 90 00 [12:57:22]wFMCommunicate OK [12:57:22]wFMCommunicate request_size=9 [12:57:22]MH_SAM_APDU [12:57:22]CAPDU: 80 0D 02 02 04 14 AE 42 52 [12:57:22]Write to MH i2c: E2 0C 00 A9 29 80 0D 02 02 04 00 14 AE 42 52 00 00 AA [12:57:22]Write i2c OK [12:57:22]MH_I2C_Read... [12:57:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:22]Read from MH i2c: E2 [12:57:22]MH_I2C_Read... [12:57:22]Read from MH i2c: E2 03 00 [12:57:22]MH_I2C_Read... [12:57:22]Read from MH i2c: E2 03 00 A9 29 00 90 00 46 [12:57:22]RAPDU: 90 00 [12:57:22]wFMCommunicate OK [12:57:22]wFMCommunicate request_size=4 [12:57:22]MH_SAM_APDU [12:57:22]CAPDU: 80 0D 03 02 [12:57:22]Write to MH i2c: E2 08 00 AA 29 80 0D 03 02 00 00 00 00 4E [12:57:22]Write i2c OK [12:57:22]MH_I2C_Read... [12:57:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:57:22]Read from MH i2c: E2 [12:57:22]MH_I2C_Read... [12:57:22]Read from MH i2c: E2 0B 00 [12:57:22]MH_I2C_Read... [12:57:22]Read from MH i2c: E2 0B 00 AA 29 00 07 AF 0D B6 6A F8 AF 85 90 00 5E [12:57:22]RAPDU: 07 AF 0D B6 6A F8 AF 85 90 00 [12:57:22]wFMCommunicate OK [12:57:22]SAM_PROTO_SignData done [12:57:22]FM_MakeSignedData done [12:57:22]CreateOFDProtocolMessage [12:57:22]wFMCommunicate request_size=4 [12:57:22]MH_SAM_APDU [12:57:22]CAPDU: 80 11 00 00 [12:57:22]Write to MH i2c: E2 08 00 AB 29 80 11 00 00 00 00 00 00 4E [12:57:22]Write i2c OK [12:57:22]MH_I2C_Read... [12:57:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:22]Read from MH i2c: E2 [12:57:22]MH_I2C_Read... [12:57:22]Read from MH i2c: E2 17 00 [12:57:22]MH_I2C_Read... [12:57:22]Read from MH i2c: E2 17 00 AB 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 A1 [12:57:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:57:22]wFMCommunicate OK [12:57:22]CreateOFDProtocolMessage done [12:57:22]OFDSenderStorePacket 76832 [12:57:22]StoreOFDPacket docnum=76832 [12:57:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 03 13 06 01 DB 04 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 35 0D 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 20 2C 01 00 35 04 06 00 60 28 14 AE 42 52 07 AF 0D B6 6A F8 AF 85 [12:57:22]CheckFolder [12:57:22]dirname=/storage/ofd_packets [12:57:22]CheckFolder done [12:57:22]ProducePacketName [12:57:22]name=ofd_packets/00076832 [12:57:22]NVStorageSaveData ofd_packets/00076832 [12:57:22]File name is /storage/ofd_packets/00076832 [12:57:22]Write 300 bytes [12:57:22]NVStorageSaveData done [12:57:22]OFDSenderStorePacket done [12:57:22]KKMCreateOFDPacket done [12:57:22]NVStorageSaveData kkm_last_timestamp [12:57:22]File name is /storage/kkm_last_timestamp [12:57:22]Write 4 bytes [12:57:22]NVStorageSaveData done [12:57:22]ExternCall_PrintAddStr [12:57:22]wPrintStart [12:57:22]Write to MH i2c: 01 00 00 AC 29 D5 [12:57:22]Write i2c OK [12:57:22]MH_I2C_Read... [12:57:22]Read from MH i2c: 01 [12:57:22]MH_I2C_Read... [12:57:22]Read from MH i2c: 01 07 00 [12:57:22]MH_I2C_Read... [12:57:22]Read from MH i2c: 01 07 00 AC 29 00 00 00 00 00 FF 0F EA [12:57:22]RasterBufferAndPrint [12:57:22]line Счет N : (1)191365 [12:57:22]line ИНН: 02508201610067 [12:57:22]line Контрольно-Кассовый Чек [12:57:22]line ПРОДАЖА [12:57:22]line ТРК (МРК, ГНК) : 71 [12:57:22]line Товар: 2711190000 [12:57:22]line ГАЗ-К-5 [12:57:22]line 30.590 * 32.70 [12:57:22]line = 1000.29 [12:57:22]line НДС 12% НСП 1% [12:57:22]line > о реализуемом товаре [12:57:22]line ИТОГО: 1000.29 [12:57:22]line НСП 1% : 8.85 [12:57:22]line НДС 12% : 106.22 [12:57:22]line Наличными: 0.00 [12:57:22]line Безнал.: 1000.29 [12:57:22]line Место: АЗС № 106 "Партнер Нефть" [12:57:22]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [12:57:22]line СНО: Общий режим [12:57:22]line Чек 88 21.04.2024 12:57 [12:57:22]line Смена: 372 ФФД: 1.0 [12:57:22]line ЗНМ: 0300000141 [12:57:22]line РНМ: 0000000000091573 [12:57:22]line Версия ККМ: 001 [12:57:22]line Платежная система: Бакай Банк [12:57:22]line ФМ: 0000000000874652 [12:57:22]line ФД: 76832 [12:57:22]line ФПД: 105725261922898 [12:57:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T125725&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76832&fm=105725261922898&tin=02508201610067®Number=0000000000091573&sum=100029 [12:57:22]written 0, free lines is 4095 [12:57:22]OFD Sender: Processing packet 76832 [packets to send 129, broken 128] [12:57:22]ProducePacketName [12:57:22]name=ofd_packets/00076832 [12:57:22]OFD Sender: To server: pG, [12:57:23]CommunicateWithHost lk.salyk.kg:30040 [12:57:23]ConnectInit lk.salyk.kg [12:57:23]Write to MH i2c: 01 00 00 D5 29 FE [12:57:23]Write i2c OK [12:57:23]MH_I2C_Read... [12:57:23]Read from MH i2c: 01 [12:57:23]MH_I2C_Read... [12:57:23]Read from MH i2c: 01 07 00 [12:57:23]MH_I2C_Read... [12:57:23]Read from MH i2c: 01 07 00 D5 29 00 00 00 00 00 FB 0C 0C [12:57:23]RasterBufferAndPrint [12:57:23]line [12:57:23]line [12:57:23]line [12:57:23]line [12:57:23]line [12:57:23]written 0, free lines is 3330 [12:57:23]MH_Cut [12:57:23]Write to MH i2c: D1 01 00 DC 29 01 D7 [12:57:23]Write i2c OK [12:57:23]MH_I2C_Read... [12:57:23]Read from MH i2c: D1 [12:57:23]MH_I2C_Read... [12:57:23]Read from MH i2c: D1 01 00 [12:57:23]MH_I2C_Read... [12:57:23]Read from MH i2c: D1 01 00 DC 29 00 D6 [12:57:23]Write to MH i2c: 01 00 00 DD 29 06 [12:57:23]Write i2c OK [12:57:23]MH_I2C_Read... [12:57:23]Connected sock=10 [12:57:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 03 13 06 01 DB 04 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 35 0D 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 20 2C 01 00 35 04 06 00 60 28 14 AE 42 52 07 AF 0D B6 6A F8 AF 85 [12:57:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 02 3B 47 00 80 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 20 2C 01 00 F4 03 04 00 BA B4 24 66 B6 04 01 00 00 B2 5D 71 87 B8 0C 43 06 [12:57:23]CommunicateWithHost err = 0 [12:57:23]CheckOFDResponse [12:57:23]1017 (14) - 77093643461234 [12:57:23]1041 (16) - 0000000000874652 [12:57:23]1040 (4) - 76832 [12:57:23]1012 (4) - 21.04.2024 06:39 [12:57:23]1206 (1) - 0 [12:57:23]OFD Sender: Remove packet 76832 [12:57:23]ProducePacketName [12:57:23]name=ofd_packets/00076832 [12:57:23]NVStorageDeleteData [12:57:24]OFD Sender: No OFD packet to send [12:57:24]*** Cut start [12:57:24]*** Partial cut [12:57:24]*** CUTSNS_PIN = 1 [12:57:24]*** CUTSNS_PIN = 0 [12:57:24]*** Brake cut motor [12:57:24]Read from MH i2c: 01 [12:57:24]MH_I2C_Read... [12:57:24]*** Stop cut motor [12:57:24]*** Cut end [12:57:24]Read from MH i2c: 01 07 00 [12:57:24]MH_I2C_Read... [12:57:24]Read from MH i2c: 01 07 00 DD 29 00 00 00 00 00 FF 0F 1B [12:57:24]process_action close_receipt done [12:57:24]requested_data is exist [12:57:24]produce_requested_data [12:57:24]requested_item fm.sn is exist - process it [12:57:24]wFMCommunicate request_size=4 [12:57:24]MH_SAM_APDU [12:57:24]CAPDU: 80 11 00 00 [12:57:24]Write to MH i2c: E2 08 00 DE 29 80 11 00 00 00 00 00 00 81 [12:57:24]Write i2c OK [12:57:24]MH_I2C_Read... [12:57:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:24]Read from MH i2c: E2 [12:57:24]MH_I2C_Read... [12:57:24]Read from MH i2c: E2 17 00 [12:57:24]MH_I2C_Read... [12:57:24]Read from MH i2c: E2 17 00 DE 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 D4 [12:57:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:57:24]wFMCommunicate OK [12:57:24]requested_item fd.num is exist - process it [12:57:24]SAM_PROTO_GetFieldsCounters [12:57:24]wFMCommunicate request_size=4 [12:57:24]MH_SAM_APDU [12:57:24]CAPDU: 80 13 00 00 [12:57:24]Write to MH i2c: E2 08 00 DF 29 80 13 00 00 00 00 00 00 84 [12:57:24]Write i2c OK [12:57:24]MH_I2C_Read... [12:57:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:57:24]Read from MH i2c: E2 [12:57:24]MH_I2C_Read... [12:57:24]Read from MH i2c: E2 62 00 [12:57:24]MH_I2C_Read... [12:57:24]Read from MH i2c: E2 62 00 DF 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 20 2C 01 00 0E 04 04 00 74 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 6F [12:57: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 20 2C 01 00 0E 04 04 00 74 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:57:24]wFMCommunicate OK [12:57:24]SAM_PROTO_GetFieldsCounters done [12:57:24]requested_item shift.num is exist - process it [12:57:24]requested_item shift.opened is exist - process it [12:57:24]req_shift_opened [12:57:24]FM_GetShiftState [12:57:24]SAM_PROTO_GetShiftState [12:57:24]wFMCommunicate request_size=4 [12:57:24]MH_SAM_APDU [12:57:24]CAPDU: 80 13 01 00 [12:57:24]Write to MH i2c: E2 08 00 E0 29 80 13 01 00 00 00 00 00 86 [12:57:24]Write i2c OK [12:57:24]MH_I2C_Read... [12:57:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:24]Read from MH i2c: E2 [12:57:24]MH_I2C_Read... [12:57:24]Read from MH i2c: E2 0E 00 [12:57:24]MH_I2C_Read... [12:57:24]Read from MH i2c: E2 0E 00 E0 29 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 CD [12:57:24]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [12:57:24]wFMCommunicate OK [12:57:24]SAM_PROTO_GetShiftState done [12:57:24]FM_GetShiftState done [12:57:24]req_shift_opened done [12:57:24]requested_item shift.open_date is exist - process it [12:57:24]req_shift_open_date [12:57:24]req_shift_open_date done [12:57:24]produce_requested_data done [12:57:24]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76832,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [12:57:24]process_action_free close_receipt [12:57:24]json_value_free [12:57:24]json_value_free done [12:57:24]process_json_proto returns [12:57:24]Send response to host [12:57:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76832,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [12:57:24]free response buf [12:57:24]execute_script done [12:57:24]execute_script returns [12:57:24]free content buf [12:57:24]Sock 9.Close socket [12:57:24]Sock 9.Thread stoped [12:57:28]accept exits with 7 [12:57:28]New connection [12:57:28]New thread 3067338084 created [12:57:28]Thread 3067481444 joined [12:57:28]Waiting for new connection... [12:57:28] Sock 7.Parse request [12:57:28]Sock 7.Check first char [12:57:28]Sock 7.First char is OK [12:57:28]request: POST /json_proto HTTP/1.0 [12:57:28]Method: POST [12:57:28]URL: /json_proto [12:57:28]Method is POST - this is cgi request [12:57:28]url: /json_proto [12:57:28]query_string will be loaded in cgi processing [12:57:28]execute_cgi json_proto POST (null) [12:57:28]execute_cgi path=json_proto method=POST [12:57:28]POST find Content-Length [12:57:28]Host: 172.17.62.5:8080 [12:57:28]Content-Length: 817 [12:57:28]Content-Type: application/json [12:57:28] [12:57:28]POST finish read [12:57:28]Found Content-Length = 817 [12:57:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 13.130, "sum" : 957.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 957.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:28]execute_script... [12:57: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)191368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 13.130, "sum" : 957.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 957.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:28]POST & json_proto [12:57:28]process_json_proto [12:57:28]json parsed OK: [12:57:28]protocol is kg_v1.0 [12:57:28]action value=close_receipt [12:57:28]process_action close_receipt [12:57:28]cmd_close_receipt [12:57:28]MH_GetDate [12:57:28]Write to MH i2c: F0 00 00 E1 29 F9 [12:57:28]Write i2c OK [12:57:28]MH_I2C_Read... [12:57:28]Read from MH i2c: F0 [12:57:28]MH_I2C_Read... [12:57:28]Read from MH i2c: F0 09 00 [12:57:28]MH_I2C_Read... [12:57:28]Read from MH i2c: F0 09 00 E1 29 00 3C 0D 25 66 F4 E9 65 64 7C [12:57:28]GetLastDocTimeStamp 1713704245 [12:57:28]current date 1713704252 [12:57:28]FM_GetShiftState [12:57:28]SAM_PROTO_GetShiftState [12:57:28]wFMCommunicate request_size=4 [12:57:28]MH_SAM_APDU [12:57:28]CAPDU: 80 13 01 00 [12:57:28]Write to MH i2c: E2 08 00 E2 29 80 13 01 00 00 00 00 00 88 [12:57:28]Write i2c OK [12:57:28]MH_I2C_Read... [12:57:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:28]Read from MH i2c: E2 [12:57:28]MH_I2C_Read... [12:57:28]Read from MH i2c: E2 0E 00 [12:57:28]MH_I2C_Read... [12:57:28]Read from MH i2c: E2 0E 00 E2 29 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 CF [12:57:28]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [12:57:28]wFMCommunicate OK [12:57:28]SAM_PROTO_GetShiftState done [12:57:28]FM_GetShiftState done [12:57:28]opened in 1713658965 [12:57:28]opened+sec_in_day 1713745365 [12:57:28]quantity*price = 95717 [12:57:28]sum+1 = 95719 [12:57:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 957.18 НСП 1% : 8.47 НДС 12% : 101.65 Наличными: 0.00 Безнал.: 957.18 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 89 21.04.2024 12:57 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 76833 ФПД: 46934923794346 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T125732&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76833&fm=46934923794346&tin=02508201610067®Number=0000000000091573&sum=95718 [12:57:29]StoreToDocumentArchive [12:57:29]shift 372 fd 76833 [12:57:29]save to /storage/0372/doc_00076833 [12:57:29]save last doc name /storage/0372/doc_00076833 to /storage/kkm_last_doc_name [12:57:29]save OK [12:57:29]Clear old archive folders... [12:57:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:57:29]tlvbuf is B6F29AD0 [12:57:29]SAM_PROTO_ClearQueue [12:57:29]wFMCommunicate request_size=4 [12:57:29]MH_SAM_APDU [12:57:29]CAPDU: 80 09 00 00 [12:57:29]Write to MH i2c: E2 08 00 EF 29 80 09 00 00 00 00 00 00 8A [12:57:29]Write i2c OK [12:57:29]MH_I2C_Read... [12:57:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:57:29]Read from MH i2c: E2 [12:57:29]MH_I2C_Read... [12:57:29]Read from MH i2c: E2 03 00 [12:57:29]MH_I2C_Read... [12:57:29]Read from MH i2c: E2 03 00 EF 29 00 90 00 8C [12:57:29]RAPDU: 90 00 [12:57:29]wFMCommunicate OK [12:57:29]SAM_PROTO_ClearQueue done [12:57:29]KKMCreateOFDPacket [12:57:29]OFDProtocolAddRootSTLVToBuf [12:57:29]FM_MakeSignedData [12:57:29]FM_MakeSignedData [12:57:29]SAM_PROTO_SignData [12:57:29]wFMCommunicate request_size=4 [12:57:29]MH_SAM_APDU [12:57:29]CAPDU: 80 0D 01 02 [12:57:29]Write to MH i2c: E2 08 00 F0 29 80 0D 01 02 00 00 00 00 92 [12:57:29]Write i2c OK [12:57:29]MH_I2C_Read... [12:57:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:57:29]Read from MH i2c: E2 [12:57:29]MH_I2C_Read... [12:57:29]Read from MH i2c: E2 03 00 [12:57:29]MH_I2C_Read... [12:57:29]Read from MH i2c: E2 03 00 F0 29 00 90 00 8D [12:57:29]RAPDU: 90 00 [12:57:29]wFMCommunicate OK [12:57:29]wFMCommunicate request_size=255 [12:57:29]MH_SAM_APDU [12:57: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 4A 33 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E6 75 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E6 75 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E6 75 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 3C 0D 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 21 2C 01 00 35 04 06 00 2A [12:57:29]Write to MH i2c: E2 02 01 F1 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E6 75 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E6 75 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E6 75 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 3C 0D 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 21 2C 01 00 35 04 06 00 2A 00 00 0F [12:57:29]Write i2c OK [12:57:29]MH_I2C_Read... [12:57:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:30]Read from MH i2c: E2 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: E2 03 00 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: E2 03 00 F1 29 00 90 00 8E [12:57:30]RAPDU: 90 00 [12:57:30]wFMCommunicate OK [12:57:30]wFMCommunicate request_size=10 [12:57:30]MH_SAM_APDU [12:57:30]CAPDU: 80 0D 02 02 05 AF E3 75 D7 AA [12:57:30]Write to MH i2c: E2 0D 00 F2 29 80 0D 02 02 05 00 AF E3 75 D7 AA 00 00 27 [12:57:30]Write i2c OK [12:57:30]MH_I2C_Read... [12:57:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:30]Read from MH i2c: E2 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: E2 03 00 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: E2 03 00 F2 29 00 90 00 8F [12:57:30]RAPDU: 90 00 [12:57:30]wFMCommunicate OK [12:57:30]wFMCommunicate request_size=4 [12:57:30]MH_SAM_APDU [12:57:30]CAPDU: 80 0D 03 02 [12:57:30]Write to MH i2c: E2 08 00 F3 29 80 0D 03 02 00 00 00 00 97 [12:57:30]Write i2c OK [12:57:30]MH_I2C_Read... [12:57:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:57:30]Read from MH i2c: E2 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: E2 0B 00 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: E2 0B 00 F3 29 00 8B B0 4F 64 18 80 5D EF 90 00 6A [12:57:30]RAPDU: 8B B0 4F 64 18 80 5D EF 90 00 [12:57:30]wFMCommunicate OK [12:57:30]SAM_PROTO_SignData done [12:57:30]FM_MakeSignedData done [12:57:30]CreateOFDProtocolMessage [12:57:30]wFMCommunicate request_size=4 [12:57:30]MH_SAM_APDU [12:57:30]CAPDU: 80 11 00 00 [12:57:30]Write to MH i2c: E2 08 00 F4 29 80 11 00 00 00 00 00 00 97 [12:57:30]Write i2c OK [12:57:30]MH_I2C_Read... [12:57:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:30]Read from MH i2c: E2 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: E2 17 00 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: E2 17 00 F4 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 EA [12:57:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:57:30]wFMCommunicate OK [12:57:30]CreateOFDProtocolMessage done [12:57:30]OFDSenderStorePacket 76833 [12:57:30]StoreOFDPacket docnum=76833 [12:57:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 8C D3 07 01 D3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E6 75 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E6 75 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E6 75 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 3C 0D 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 21 2C 01 00 35 04 06 00 2A AF E3 75 D7 AA 8B B0 4F 64 18 80 5D EF [12:57:30]CheckFolder [12:57:30]dirname=/storage/ofd_packets [12:57:30]CheckFolder done [12:57:30]ProducePacketName [12:57:30]name=ofd_packets/00076833 [12:57:30]NVStorageSaveData ofd_packets/00076833 [12:57:30]File name is /storage/ofd_packets/00076833 [12:57:30]Write 301 bytes [12:57:30]NVStorageSaveData done [12:57:30]OFDSenderStorePacket done [12:57:30]KKMCreateOFDPacket done [12:57:30]NVStorageSaveData kkm_last_timestamp [12:57:30]File name is /storage/kkm_last_timestamp [12:57:30]Write 4 bytes [12:57:30]NVStorageSaveData done [12:57:30]ExternCall_PrintAddStr [12:57:30]wPrintStart [12:57:30]Write to MH i2c: 01 00 00 F5 29 1E [12:57:30]Write i2c OK [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: 01 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: 01 07 00 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: 01 07 00 F5 29 00 00 00 00 00 FF 0F 33 [12:57:30]RasterBufferAndPrint [12:57:30]line Счет N : (1)191368 [12:57:30]line ИНН: 02508201610067 [12:57:30]line Контрольно-Кассовый Чек [12:57:30]line ПРОДАЖА [12:57:30]line ТРК (МРК, ГНК) : 42 [12:57:30]line Товар: 2710124500 [12:57:30]line Аи-95-К-5 [12:57:30]line 13.130 * 72.90 [12:57:30]line = 957.18 [12:57:30]line НДС 12% НСП 1% [12:57:30]line > о реализуемом товаре [12:57:30]line ИТОГО: 957.18 [12:57:30]line НСП 1% : 8.47 [12:57:30]line НДС 12% : 101.65 [12:57:30]line Наличными: 0.00 [12:57:30]line Безнал.: 957.18 [12:57:30]line Место: АЗС № 106 "Партнер Нефть" [12:57:30]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [12:57:30]line СНО: Общий режим [12:57:30]line Чек 89 21.04.2024 12:57 [12:57:30]line Смена: 372 ФФД: 1.0 [12:57:30]line ЗНМ: 0300000141 [12:57:30]line РНМ: 0000000000091573 [12:57:30]line Версия ККМ: 001 [12:57:30]line Платежная система: Бакай Банк [12:57:30]line ФМ: 0000000000874652 [12:57:30]line ФД: 76833 [12:57:30]line ФПД: 46934923794346 [12:57:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T125732&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76833&fm=46934923794346&tin=02508201610067®Number=0000000000091573&sum=95718 [12:57:30]written 0, free lines is 4095 [12:57:30]OFD Sender: Processing packet 76833 [packets to send 129, broken 128] [12:57:30]ProducePacketName [12:57:30]name=ofd_packets/00076833 [12:57:30]OFD Sender: To server: pG, [12:57:30]CommunicateWithHost lk.salyk.kg:30040 [12:57:30]ConnectInit lk.salyk.kg [12:57:30]Connected sock=10 [12:57:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 8C D3 07 01 D3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E6 75 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E6 75 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E6 75 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 3C 0D 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 21 2C 01 00 35 04 06 00 2A AF E3 75 D7 AA 8B B0 4F 64 18 80 5D EF [12:57:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 93 4D 47 00 6F 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 21 2C 01 00 F4 03 04 00 C2 B4 24 66 B6 04 01 00 00 E4 CE 33 84 91 50 09 F9 [12:57:30]CommunicateWithHost err = 0 [12:57:30]CheckOFDResponse [12:57:30]1017 (14) - 77093643461234 [12:57:30]1041 (16) - 0000000000874652 [12:57:30]1040 (4) - 76833 [12:57:30]1012 (4) - 21.04.2024 06:40 [12:57:30]1206 (1) - 0 [12:57:30]OFD Sender: Remove packet 76833 [12:57:30]ProducePacketName [12:57:30]name=ofd_packets/00076833 [12:57:30]NVStorageDeleteData [12:57:30]Write to MH i2c: 01 00 00 1E 2A 48 [12:57:30]Write i2c OK [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: 01 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: 01 07 00 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: 01 07 00 1E 2A 00 00 00 00 00 FB 0C 56 [12:57:30]RasterBufferAndPrint [12:57:30]line [12:57:30]line [12:57:30]line [12:57:30]line [12:57:30]line [12:57:30]written 0, free lines is 3336 [12:57:30]MH_Cut [12:57:30]Write to MH i2c: D1 01 00 25 2A 01 21 [12:57:30]Write i2c OK [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: D1 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: D1 01 00 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: D1 01 00 25 2A 00 20 [12:57:30]Write to MH i2c: 01 00 00 26 2A 50 [12:57:30]Write i2c OK [12:57:30]MH_I2C_Read... [12:57:31]OFD Sender: No OFD packet to send [12:57:31]*** Cut start [12:57:31]*** Partial cut [12:57:31]*** CUTSNS_PIN = 1 [12:57:31]*** CUTSNS_PIN = 0 [12:57:31]*** Brake cut motor [12:57:32]Read from MH i2c: 01 [12:57:32]MH_I2C_Read... [12:57:32]*** Stop cut motor [12:57:32]*** Cut end [12:57:32]Read from MH i2c: 01 07 00 [12:57:32]MH_I2C_Read... [12:57:32]Read from MH i2c: 01 07 00 26 2A 00 00 00 00 00 FF 0F 65 [12:57:32]process_action close_receipt done [12:57:32]requested_data is exist [12:57:32]produce_requested_data [12:57:32]requested_item fm.sn is exist - process it [12:57:32]wFMCommunicate request_size=4 [12:57:32]MH_SAM_APDU [12:57:32]CAPDU: 80 11 00 00 [12:57:32]Write to MH i2c: E2 08 00 27 2A 80 11 00 00 00 00 00 00 CB [12:57:32]Write i2c OK [12:57:32]MH_I2C_Read... [12:57:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:32]Read from MH i2c: E2 [12:57:32]MH_I2C_Read... [12:57:32]Read from MH i2c: E2 17 00 [12:57:32]MH_I2C_Read... [12:57:32]Read from MH i2c: E2 17 00 27 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 1E [12:57:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:57:32]wFMCommunicate OK [12:57:32]requested_item fd.num is exist - process it [12:57:32]SAM_PROTO_GetFieldsCounters [12:57:32]wFMCommunicate request_size=4 [12:57:32]MH_SAM_APDU [12:57:32]CAPDU: 80 13 00 00 [12:57:32]Write to MH i2c: E2 08 00 28 2A 80 13 00 00 00 00 00 00 CE [12:57:32]Write i2c OK [12:57:32]MH_I2C_Read... [12:57:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:57:32]Read from MH i2c: E2 [12:57:32]MH_I2C_Read... [12:57:32]Read from MH i2c: E2 62 00 [12:57:32]MH_I2C_Read... [12:57:32]Read from MH i2c: E2 62 00 28 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 21 2C 01 00 0E 04 04 00 74 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 BD [12:57: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 21 2C 01 00 0E 04 04 00 74 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:57:32]wFMCommunicate OK [12:57:32]SAM_PROTO_GetFieldsCounters done [12:57:32]requested_item shift.num is exist - process it [12:57:32]requested_item shift.opened is exist - process it [12:57:32]req_shift_opened [12:57:32]FM_GetShiftState [12:57:32]SAM_PROTO_GetShiftState [12:57:32]wFMCommunicate request_size=4 [12:57:32]MH_SAM_APDU [12:57:32]CAPDU: 80 13 01 00 [12:57:32]Write to MH i2c: E2 08 00 29 2A 80 13 01 00 00 00 00 00 D0 [12:57:32]Write i2c OK [12:57:32]MH_I2C_Read... [12:57:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:32]Read from MH i2c: E2 [12:57:32]MH_I2C_Read... [12:57:32]Read from MH i2c: E2 0E 00 [12:57:32]MH_I2C_Read... [12:57:32]Read from MH i2c: E2 0E 00 29 2A 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 17 [12:57:32]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [12:57:32]wFMCommunicate OK [12:57:32]SAM_PROTO_GetShiftState done [12:57:32]FM_GetShiftState done [12:57:32]req_shift_opened done [12:57:32]requested_item shift.open_date is exist - process it [12:57:32]req_shift_open_date [12:57:32]req_shift_open_date done [12:57:32]produce_requested_data done [12:57:32]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76833,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [12:57:32]process_action_free close_receipt [12:57:32]json_value_free [12:57:32]json_value_free done [12:57:32]process_json_proto returns [12:57:32]Send response to host [12:57:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76833,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [12:57:32]free response buf [12:57:32]execute_script done [12:57:32]execute_script returns [12:57:32]free content buf [12:57:32]Sock 7.Close socket [12:57:32]Sock 7.Thread stoped [12:57:36]OFD Sender: No OFD packet to send [12:57:41]OFD Sender: No OFD packet to send [12:57:46]OFD Sender: No OFD packet to send [12:57:51]OFD Sender: No OFD packet to send [12:57:56]OFD Sender: No OFD packet to send [12:58:01]OFD Sender: No OFD packet to send [12:58:06]OFD Sender: No OFD packet to send [12:58:11]OFD Sender: No OFD packet to send [12:58:16]OFD Sender: No OFD packet to send [12:58:21]OFD Sender: No OFD packet to send [12:58:26]OFD Sender: No OFD packet to send [12:58:31]OFD Sender: No OFD packet to send [12:58:36]OFD Sender: No OFD packet to send [12:58:41]OFD Sender: No OFD packet to send [12:58:46]OFD Sender: No OFD packet to send [12:58:51]OFD Sender: No OFD packet to send [12:58:56]OFD Sender: No OFD packet to send [12:59:01]OFD Sender: No OFD packet to send [12:59:06]OFD Sender: No OFD packet to send [12:59:11]OFD Sender: No OFD packet to send [12:59:16]OFD Sender: No OFD packet to send [12:59:21]OFD Sender: No OFD packet to send [12:59:26]OFD Sender: No OFD packet to send [12:59:31]OFD Sender: No OFD packet to send [12:59:36]OFD Sender: No OFD packet to send [12:59:41]OFD Sender: No OFD packet to send [12:59:46]OFD Sender: No OFD packet to send [12:59:51]OFD Sender: No OFD packet to send [12:59:56]OFD Sender: No OFD packet to send [13:00:01]OFD Sender: No OFD packet to send [13:00:06]OFD Sender: No OFD packet to send [13:00:11]OFD Sender: No OFD packet to send [13:00:16]OFD Sender: No OFD packet to send [13:00:21]OFD Sender: No OFD packet to send [13:00:26]OFD Sender: No OFD packet to send [13:00:31]OFD Sender: No OFD packet to send [13:00:36]OFD Sender: No OFD packet to send [13:00:41]OFD Sender: No OFD packet to send [13:00:46]OFD Sender: No OFD packet to send [13:00:51]OFD Sender: No OFD packet to send [13:00:56]OFD Sender: No OFD packet to send [13:01:01]OFD Sender: No OFD packet to send [13:01:06]OFD Sender: No OFD packet to send [13:01:11]OFD Sender: No OFD packet to send [13:01:16]OFD Sender: No OFD packet to send [13:01:21]OFD Sender: No OFD packet to send [13:01:26]OFD Sender: No OFD packet to send [13:01:31]OFD Sender: No OFD packet to send [13:01:36]OFD Sender: No OFD packet to send [13:01:41]OFD Sender: No OFD packet to send [13:01:46]OFD Sender: No OFD packet to send [13:01:51]OFD Sender: No OFD packet to send [13:01:56]OFD Sender: No OFD packet to send [13:02:01]OFD Sender: No OFD packet to send [13:02:06]OFD Sender: No OFD packet to send [13:02:11]OFD Sender: No OFD packet to send [13:02:16]OFD Sender: No OFD packet to send [13:02:21]OFD Sender: No OFD packet to send [13:02:26]OFD Sender: No OFD packet to send [13:02:31]OFD Sender: No OFD packet to send [13:02:36]OFD Sender: No OFD packet to send [13:02:41]OFD Sender: No OFD packet to send [13:02:46]OFD Sender: No OFD packet to send [13:02:51]OFD Sender: No OFD packet to send [13:02:56]OFD Sender: No OFD packet to send [13:03:01]OFD Sender: No OFD packet to send [13:03:06]OFD Sender: No OFD packet to send [13:03:11]OFD Sender: No OFD packet to send [13:03:16]OFD Sender: No OFD packet to send [13:03:21]OFD Sender: No OFD packet to send [13:03:26]OFD Sender: No OFD packet to send [13:03:31]OFD Sender: No OFD packet to send [13:03:36]OFD Sender: No OFD packet to send [13:03:41]OFD Sender: No OFD packet to send [13:03:46]OFD Sender: No OFD packet to send [13:03:51]OFD Sender: No OFD packet to send [13:03:56]OFD Sender: No OFD packet to send [13:04:01]OFD Sender: No OFD packet to send [13:04:06]OFD Sender: No OFD packet to send [13:04:11]OFD Sender: No OFD packet to send [13:04:16]OFD Sender: No OFD packet to send [13:04:21]OFD Sender: No OFD packet to send [13:04:26]OFD Sender: No OFD packet to send [13:04:31]OFD Sender: No OFD packet to send [13:04:36]OFD Sender: No OFD packet to send [13:04:41]OFD Sender: No OFD packet to send [13:04:46]OFD Sender: No OFD packet to send [13:04:51]OFD Sender: No OFD packet to send [13:04:56]OFD Sender: No OFD packet to send [13:05:01]OFD Sender: No OFD packet to send [13:05:06]OFD Sender: No OFD packet to send [13:05:11]OFD Sender: No OFD packet to send [13:05:16]OFD Sender: No OFD packet to send [13:05:21]OFD Sender: No OFD packet to send [13:05:26]OFD Sender: No OFD packet to send [13:05:31]OFD Sender: No OFD packet to send [13:05:36]OFD Sender: No OFD packet to send [13:05:41]OFD Sender: No OFD packet to send [13:05:46]OFD Sender: No OFD packet to send [13:05:51]OFD Sender: No OFD packet to send [13:05:56]OFD Sender: No OFD packet to send [13:06:01]OFD Sender: No OFD packet to send [13:06:06]OFD Sender: No OFD packet to send [13:06:11]OFD Sender: No OFD packet to send [13:06:16]OFD Sender: No OFD packet to send [13:06:21]OFD Sender: No OFD packet to send [13:06:26]OFD Sender: No OFD packet to send [13:06:31]OFD Sender: No OFD packet to send [13:06:36]OFD Sender: No OFD packet to send [13:06:41]OFD Sender: No OFD packet to send [13:06:46]OFD Sender: No OFD packet to send [13:06:51]OFD Sender: No OFD packet to send [13:06:56]OFD Sender: No OFD packet to send [13:07:01]OFD Sender: No OFD packet to send [13:07:06]OFD Sender: No OFD packet to send [13:07:11]OFD Sender: No OFD packet to send [13:07:16]OFD Sender: No OFD packet to send [13:07:21]OFD Sender: No OFD packet to send [13:07:26]OFD Sender: No OFD packet to send [13:07:31]OFD Sender: No OFD packet to send [13:07:36]OFD Sender: No OFD packet to send [13:07:41]OFD Sender: No OFD packet to send [13:07:46]OFD Sender: No OFD packet to send [13:07:51]OFD Sender: No OFD packet to send [13:07:56]OFD Sender: No OFD packet to send [13:08:01]OFD Sender: No OFD packet to send [13:08:06]OFD Sender: No OFD packet to send [13:08:11]OFD Sender: No OFD packet to send [13:08:16]OFD Sender: No OFD packet to send [13:08:22]OFD Sender: No OFD packet to send [13:08:27]OFD Sender: No OFD packet to send [13:08:32]OFD Sender: No OFD packet to send [13:08:37]OFD Sender: No OFD packet to send [13:08:42]OFD Sender: No OFD packet to send [13:08:47]OFD Sender: No OFD packet to send [13:08:52]OFD Sender: No OFD packet to send [13:08:57]OFD Sender: No OFD packet to send [13:09:02]OFD Sender: No OFD packet to send [13:09:07]OFD Sender: No OFD packet to send [13:09:12]OFD Sender: No OFD packet to send [13:09:17]OFD Sender: No OFD packet to send [13:09:22]OFD Sender: No OFD packet to send [13:09:27]OFD Sender: No OFD packet to send [13:09:32]OFD Sender: No OFD packet to send [13:09:37]OFD Sender: No OFD packet to send [13:09:42]OFD Sender: No OFD packet to send [13:09:47]OFD Sender: No OFD packet to send [13:09:52]OFD Sender: No OFD packet to send [13:09:57]OFD Sender: No OFD packet to send [13:10:02]OFD Sender: No OFD packet to send [13:10:07]OFD Sender: No OFD packet to send [13:10:12]OFD Sender: No OFD packet to send [13:10:17]OFD Sender: No OFD packet to send [13:10:22]OFD Sender: No OFD packet to send [13:10:27]OFD Sender: No OFD packet to send [13:10:32]OFD Sender: No OFD packet to send [13:10:37]OFD Sender: No OFD packet to send [13:10:42]OFD Sender: No OFD packet to send [13:10:47]OFD Sender: No OFD packet to send [13:10:52]OFD Sender: No OFD packet to send [13:10:57]OFD Sender: No OFD packet to send [13:11:02]OFD Sender: No OFD packet to send [13:11:07]OFD Sender: No OFD packet to send [13:11:12]OFD Sender: No OFD packet to send [13:11:17]OFD Sender: No OFD packet to send [13:11:22]OFD Sender: No OFD packet to send [13:11:27]OFD Sender: No OFD packet to send [13:11:32]OFD Sender: No OFD packet to send [13:11:37]OFD Sender: No OFD packet to send [13:11:42]OFD Sender: No OFD packet to send [13:11:47]OFD Sender: No OFD packet to send [13:11:52]OFD Sender: No OFD packet to send [13:11:57]OFD Sender: No OFD packet to send [13:12:02]OFD Sender: No OFD packet to send [13:12:07]OFD Sender: No OFD packet to send [13:12:12]OFD Sender: No OFD packet to send [13:12:17]OFD Sender: No OFD packet to send [13:12:22]OFD Sender: No OFD packet to send [13:12:27]OFD Sender: No OFD packet to send [13:12:32]OFD Sender: No OFD packet to send [13:12:37]OFD Sender: No OFD packet to send [13:12:42]OFD Sender: No OFD packet to send [13:12:47]OFD Sender: No OFD packet to send [13:12:52]OFD Sender: No OFD packet to send [13:12:57]OFD Sender: No OFD packet to send [13:13:02]OFD Sender: No OFD packet to send [13:13:07]OFD Sender: No OFD packet to send [13:13:12]OFD Sender: No OFD packet to send [13:13:17]OFD Sender: No OFD packet to send [13:13:22]OFD Sender: No OFD packet to send [13:13:27]OFD Sender: No OFD packet to send [13:13:32]OFD Sender: No OFD packet to send [13:13:37]OFD Sender: No OFD packet to send [13:13:42]OFD Sender: No OFD packet to send [13:13:47]OFD Sender: No OFD packet to send [13:13:52]OFD Sender: No OFD packet to send [13:13:57]OFD Sender: No OFD packet to send [13:14:02]OFD Sender: No OFD packet to send [13:14:07]OFD Sender: No OFD packet to send [13:14:12]OFD Sender: No OFD packet to send [13:14:17]OFD Sender: No OFD packet to send [13:14:22]OFD Sender: No OFD packet to send [13:14:27]OFD Sender: No OFD packet to send [13:14:32]OFD Sender: No OFD packet to send [13:14:37]OFD Sender: No OFD packet to send [13:14:42]OFD Sender: No OFD packet to send [13:14:47]OFD Sender: No OFD packet to send [13:14:52]OFD Sender: No OFD packet to send [13:14:57]OFD Sender: No OFD packet to send [13:15:02]OFD Sender: No OFD packet to send [13:15:07]OFD Sender: No OFD packet to send [13:15:11]accept exits with 9 [13:15:11]New connection [13:15:11]New thread 3067481444 created [13:15:11]Thread 3067338084 joined [13:15:11]Waiting for new connection... [13:15:11] Sock 9.Parse request [13:15:11]Sock 9.Check first char [13:15:11]Sock 9.First char is OK [13:15:11]request: POST /json_proto HTTP/1.0 [13:15:11]Method: POST [13:15:11]URL: /json_proto [13:15:11]Method is POST - this is cgi request [13:15:11]url: /json_proto [13:15:11]query_string will be loaded in cgi processing [13:15:11]execute_cgi json_proto POST (null) [13:15:11]execute_cgi path=json_proto method=POST [13:15:11]POST find Content-Length [13:15:11]Host: 172.17.62.5:8080 [13:15:11]Content-Length: 681 [13:15:11]Content-Type: application/json [13:15:11] [13:15:11]POST finish read [13:15:11]Found Content-Length = 681 [13:15:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 24.470, "sum" : 800.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:11]execute_script... [13:15: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)191369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 24.470, "sum" : 800.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:11]POST & json_proto [13:15:11]process_json_proto [13:15:11]json parsed OK: [13:15:11]protocol is kg_v1.0 [13:15:11]action value=close_receipt [13:15:11]process_action close_receipt [13:15:11]cmd_close_receipt [13:15:11]MH_GetDate [13:15:11]Write to MH i2c: F0 00 00 2A 2A 43 [13:15:11]Write i2c OK [13:15:11]MH_I2C_Read... [13:15:11]Read from MH i2c: F0 [13:15:11]MH_I2C_Read... [13:15:11]Read from MH i2c: F0 09 00 [13:15:11]MH_I2C_Read... [13:15:11]Read from MH i2c: F0 09 00 2A 2A 00 64 11 25 66 F4 E9 65 64 F2 [13:15:11]GetLastDocTimeStamp 1713704252 [13:15:11]current date 1713705316 [13:15:11]FM_GetShiftState [13:15:11]SAM_PROTO_GetShiftState [13:15:11]wFMCommunicate request_size=4 [13:15:11]MH_SAM_APDU [13:15:11]CAPDU: 80 13 01 00 [13:15:11]Write to MH i2c: E2 08 00 2B 2A 80 13 01 00 00 00 00 00 D2 [13:15:11]Write i2c OK [13:15:11]MH_I2C_Read... [13:15:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:11]Read from MH i2c: E2 [13:15:11]MH_I2C_Read... [13:15:11]Read from MH i2c: E2 0E 00 [13:15:11]MH_I2C_Read... [13:15:11]Read from MH i2c: E2 0E 00 2B 2A 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 19 [13:15:11]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [13:15:11]wFMCommunicate OK [13:15:11]SAM_PROTO_GetShiftState done [13:15:11]FM_GetShiftState done [13:15:11]opened in 1713658965 [13:15:11]opened+sec_in_day 1713745365 [13:15:11]quantity*price = 80016 [13:15:11]sum+1 = 80018 [13:15:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 90 21.04.2024 13:15 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76834 ФПД: 219762532162717 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T131516&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76834&fm=219762532162717&tin=02508201610067®Number=0000000000091573&sum=80000 [13:15:12]StoreToDocumentArchive [13:15:12]shift 372 fd 76834 [13:15:12]save to /storage/0372/doc_00076834 [13:15:12]save last doc name /storage/0372/doc_00076834 to /storage/kkm_last_doc_name [13:15:12]save OK [13:15:12]Clear old archive folders... [13:15:12]ProcessDocumentItem done err = 0, tmpTLVsize=250 [13:15:12]tlvbuf is B6FD6240 [13:15:12]SAM_PROTO_ClearQueue [13:15:12]wFMCommunicate request_size=4 [13:15:12]MH_SAM_APDU [13:15:12]CAPDU: 80 09 00 00 [13:15:12]Write to MH i2c: E2 08 00 38 2A 80 09 00 00 00 00 00 00 D4 [13:15:12]Write i2c OK [13:15:12]MH_I2C_Read... [13:15:12]Read from MH i2c: E2 [13:15:12]MH_I2C_Read... [13:15:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:12]Read from MH i2c: E2 03 00 [13:15:12]MH_I2C_Read... [13:15:12]Read from MH i2c: E2 03 00 38 2A 00 90 00 D6 [13:15:12]RAPDU: 90 00 [13:15:12]wFMCommunicate OK [13:15:12]SAM_PROTO_ClearQueue done [13:15:12]KKMCreateOFDPacket [13:15:12]OFDProtocolAddRootSTLVToBuf [13:15:12]FM_MakeSignedData [13:15:12]FM_MakeSignedData [13:15:12]SAM_PROTO_SignData [13:15:12]wFMCommunicate request_size=4 [13:15:12]MH_SAM_APDU [13:15:12]CAPDU: 80 0D 01 02 [13:15:12]Write to MH i2c: E2 08 00 39 2A 80 0D 01 02 00 00 00 00 DC [13:15:12]Write i2c OK [13:15:12]MH_I2C_Read... [13:15:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:12]Read from MH i2c: E2 [13:15:12]MH_I2C_Read... [13:15:12]Read from MH i2c: E2 03 00 [13:15:12]MH_I2C_Read... [13:15:12]Read from MH i2c: E2 03 00 39 2A 00 90 00 D7 [13:15:12]RAPDU: 90 00 [13:15:12]wFMCommunicate OK [13:15:12]wFMCommunicate request_size=255 [13:15:12]MH_SAM_APDU [13:15:12]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 96 5F 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 91 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 5A 00 00 00 F4 03 04 00 64 11 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 22 2C 01 00 35 04 06 00 C7 DF [13:15:12]Write to MH i2c: E2 02 01 3A 2A 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 96 5F 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 91 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 5A 00 00 00 F4 03 04 00 64 11 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 22 2C 01 00 35 04 06 00 C7 DF 00 00 6C [13:15:12]Write i2c OK [13:15:12]MH_I2C_Read... [13:15:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:13]Read from MH i2c: E2 [13:15:13]MH_I2C_Read... [13:15:13]Read from MH i2c: E2 03 00 [13:15:13]MH_I2C_Read... [13:15:13]Read from MH i2c: E2 03 00 3A 2A 00 90 00 D8 [13:15:13]RAPDU: 90 00 [13:15:13]wFMCommunicate OK [13:15:13]wFMCommunicate request_size=9 [13:15:13]MH_SAM_APDU [13:15:13]CAPDU: 80 0D 02 02 04 73 AA 1C 9D [13:15:13]Write to MH i2c: E2 0C 00 3B 2A 80 0D 02 02 04 00 73 AA 1C 9D 00 00 BD [13:15:13]Write i2c OK [13:15:13]MH_I2C_Read... [13:15:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:13]Read from MH i2c: E2 [13:15:13]MH_I2C_Read... [13:15:13]Read from MH i2c: E2 03 00 [13:15:13]MH_I2C_Read... [13:15:13]Read from MH i2c: E2 03 00 3B 2A 00 90 00 D9 [13:15:13]RAPDU: 90 00 [13:15:13]wFMCommunicate OK [13:15:13]wFMCommunicate request_size=4 [13:15:13]MH_SAM_APDU [13:15:13]CAPDU: 80 0D 03 02 [13:15:13]Write to MH i2c: E2 08 00 3C 2A 80 0D 03 02 00 00 00 00 E1 [13:15:13]Write i2c OK [13:15:13]MH_I2C_Read... [13:15:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:13]Read from MH i2c: E2 [13:15:13]MH_I2C_Read... [13:15:13]Read from MH i2c: E2 0B 00 [13:15:13]MH_I2C_Read... [13:15:13]Read from MH i2c: E2 0B 00 3C 2A 00 C0 47 BC CA 85 D0 1B C4 90 00 A3 [13:15:13]RAPDU: C0 47 BC CA 85 D0 1B C4 90 00 [13:15:13]wFMCommunicate OK [13:15:13]SAM_PROTO_SignData done [13:15:13]FM_MakeSignedData done [13:15:13]CreateOFDProtocolMessage [13:15:13]wFMCommunicate request_size=4 [13:15:13]MH_SAM_APDU [13:15:13]CAPDU: 80 11 00 00 [13:15:13]Write to MH i2c: E2 08 00 3D 2A 80 11 00 00 00 00 00 00 E1 [13:15:13]Write i2c OK [13:15:13]MH_I2C_Read... [13:15:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:13]Read from MH i2c: E2 [13:15:13]MH_I2C_Read... [13:15:13]Read from MH i2c: E2 17 00 [13:15:13]MH_I2C_Read... [13:15:13]Read from MH i2c: E2 17 00 3D 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 34 [13:15:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:15:13]wFMCommunicate OK [13:15:13]CreateOFDProtocolMessage done [13:15:13]OFDSenderStorePacket 76834 [13:15:13]StoreOFDPacket docnum=76834 [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CA FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 6F [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 54000000005725CA (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: 29305144+1684400628=1713705772 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x220ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33540623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CA FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 70 [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 2D 13 25 66 F4 E9 65 64 70 [13:22:53]Current date/time: 21.04.2024 13:22 [13:22:53]FM_Init [13:22:53]wFMConnect [13:22:53]MH_SAM_On [13:22:53]Write to MH i2c: E0 00 00 08 00 E7 [13:22:53]Write i2c OK [13:22:53]MH_I2C_Read... [13:22:53]*** iso7816_init finished! [13:22:53]*** atr: [13:22:53]*** 0F 3B D5 18 FF 81 91 FE [13:22:53]*** 1F C3 80 73 C8 21 10 0A [13:22:53]*** 00 00 00 00 00 00 00 00 [13:22:53]*** 00 00 00 00 00 00 00 00 [13:22:53]*** 00 00 00 00 00 00 00 00 [13:22:53]*** 00 00 00 00 00 00 00 00 [13:22:53]*** 00 00 00 00 00 00 00 00 [13:22:53]*** 00 00 00 00 00 00 00 00 [13:22:53]Read from MH i2c: E0 [13:22:53]MH_I2C_Read... [13:22:53]Read from MH i2c: E0 10 00 [13:22:53]MH_I2C_Read... [13:22:53]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [13:22:53]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [13:22:53]wFMCommunicate request_size=10 [13:22:53]MH_SAM_APDU [13:22:53]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [13:22:53]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [13:22:53]Write i2c OK [13:22:53]MH_I2C_Read... [13:22:53]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [13:22:53]Read from MH i2c: E2 [13:22:53]MH_I2C_Read... [13:22:53]Read from MH i2c: E2 03 00 [13:22:53]MH_I2C_Read... [13:22:53]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [13:22:53]RAPDU: 90 00 [13:22:53]wFMCommunicate OK [13:22:53]wFMCommunicate request_size=4 [13:22:53]MH_SAM_APDU [13:22:53]CAPDU: 80 11 00 00 [13:22:53]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [13:22:53]Write i2c OK [13:22:53]MH_I2C_Read... [13:22:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:53]Read from MH i2c: E2 [13:22:53]MH_I2C_Read... [13:22:53]Read from MH i2c: E2 17 00 [13:22:53]MH_I2C_Read... [13:22:53]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 34 36 35 32 90 00 D7 [13:22:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:22:53]wFMCommunicate OK [13:22:53]Detected FM SN is 0000000000874652 [13:22:53]Stored FM SN is 0000000000874652 [13:22:53]wFMCommunicate request_size=9 [13:22:53]MH_SAM_APDU [13:22:53]CAPDU: 80 16 00 00 04 68 2F 01 00 [13:22:53]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 68 2F 01 00 00 00 2A [13:22:53]Write i2c OK [13:22:53]MH_I2C_Read... [13:22:53]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [13:22:53]Read from MH i2c: E2 [13:22:53]MH_I2C_Read... [13:22:53]Read from MH i2c: E2 03 00 [13:22:53]MH_I2C_Read... [13:22:53]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [13:22:53]RAPDU: 90 00 [13:22:53]wFMCommunicate OK [13:22:53]FM PIN OK [13:22:53]wFMCommunicate request_size=8 [13:22:53]MH_SAM_APDU [13:22:53]CAPDU: 80 14 04 00 03 02 00 01 [13:22:53]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [13:22:53]Write i2c OK [13:22:53]MH_I2C_Read... [13:22:53]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [13:22:53]Read from MH i2c: E2 [13:22:53]MH_I2C_Read... [13:22:53]Read from MH i2c: E2 03 00 [13:22:53]MH_I2C_Read... [13:22:53]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [13:22:53]RAPDU: 90 00 [13:22:53]wFMCommunicate OK [13:22:53]wFMCommunicate request_size=13 [13:22:53]MH_SAM_APDU [13:22:53]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [13:22:53]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [13:22:53]Write i2c OK [13:22:53]MH_I2C_Read... [13:22:53]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [13:22:53]Read from MH i2c: E2 [13:22:53]MH_I2C_Read... [13:22:53]Read from MH i2c: E2 03 00 [13:22:53]MH_I2C_Read... [13:22:53]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [13:22:53]RAPDU: 90 00 [13:22:53]wFMCommunicate OK [13:22:53]wFMCommunicate request_size=4 [13:22:53]MH_SAM_APDU [13:22:53]CAPDU: 80 11 00 00 [13:22:53]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [13:22:53]Write i2c OK [13:22:53]MH_I2C_Read... [13:22:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:53]Read from MH i2c: E2 [13:22:53]MH_I2C_Read... [13:22:53]Read from MH i2c: E2 17 00 [13:22:53]MH_I2C_Read... [13:22:53]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 34 36 35 32 90 00 DB [13:22:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:22:53]wFMCommunicate OK [13:22:53]DocumentArchiveInit [13:22:53]Start Httpd... [13:22:53]Httpd thread 3067088228 created [13:22:53]Write to MH i2c: 01 00 00 0F 00 0F [13:22:53]Write i2c OK [13:22:53]MH_I2C_Read... [13:22:53]Read from MH i2c: 01 [13:22:53]MH_I2C_Read... [13:22:53]Read from MH i2c: 01 07 00 [13:22:53]MH_I2C_Read... [13:22:53]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [13:22:53]MH Int Process started [13:22:53]Allocated Socket 8 [13:22:53]Bind OK [13:22:53]Listen OK [13:22:53]httpd running on port 8080 [13:22:53]Waiting for new connection... [13:22:53]OFD Sender: Processing packet 76834 [packets to send 129, broken 128] [13:22:53]ProducePacketName [13:22:53]name=ofd_packets/00076834 [13:22:53]OFD Sender: To server: pG, [13:22:53]CommunicateWithHost lk.salyk.kg:30040 [13:22:53]ConnectInit lk.salyk.kg [13:22:54]accept exits with 9 [13:22:54]New connection [13:22:54]New thread 3066801508 created [13:22:54]Waiting for new connection... [13:22:54] Sock 9.Parse request [13:22:54]Sock 9.Check first char [13:22:54]Sock 9.First char is OK [13:22:54]request: POST /json_proto HTTP/1.0 [13:22:54]Method: POST [13:22:54]URL: /json_proto [13:22:54]Method is POST - this is cgi request [13:22:54]url: /json_proto [13:22:54]query_string will be loaded in cgi processing [13:22:54]execute_cgi json_proto POST (null) [13:22:54]execute_cgi path=json_proto method=POST [13:22:54]POST find Content-Length [13:22:54]Host: 172.17.62.5:8080 [13:22:54]Content-Length: 215 [13:22:54]Content-Type: application/json [13:22:54] [13:22:54]POST finish read [13:22:54]Found Content-Length = 215 [13:22:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:54]execute_script... [13:22:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:54]POST & json_proto [13:22:54]process_json_proto [13:22:54]json parsed OK: [13:22:54]protocol is kg_v1.0 [13:22:54]action value=get_value [13:22:54]process_action get_value [13:22:54]cmd_get_value [13:22:54]process_action get_value done [13:22:54]requested_data is exist [13:22:54]produce_requested_data [13:22:54]requested_item kkm.sn is exist - process it [13:22:54]requested_item kkm.ver is exist - process it [13:22:54]requested_item fm.sn is exist - process it [13:22:54]wFMCommunicate request_size=4 [13:22:54]MH_SAM_APDU [13:22:54]CAPDU: 80 11 00 00 [13:22:54]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [13:22:54]Write i2c OK [13:22:54]MH_I2C_Read... [13:22:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:54]Read from MH i2c: E2 [13:22:54]MH_I2C_Read... [13:22:54]Read from MH i2c: E2 17 00 [13:22:54]MH_I2C_Read... [13:22:54]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 DD [13:22:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:22:54]wFMCommunicate OK [13:22:54]requested_item fd.num is exist - process it [13:22:54]SAM_PROTO_GetFieldsCounters [13:22:54]wFMCommunicate request_size=4 [13:22:54]MH_SAM_APDU [13:22:54]CAPDU: 80 13 00 00 [13:22:54]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [13:22:54]Write i2c OK [13:22:54]MH_I2C_Read... [13:22:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:54]Read from MH i2c: E2 [13:22:54]MH_I2C_Read... [13:22:54]Read from MH i2c: E2 62 00 [13:22:54]MH_I2C_Read... [13:22:54]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 22 2C 01 00 0E 04 04 00 74 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 80 [13:22: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 22 2C 01 00 0E 04 04 00 74 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 [13:22:54]wFMCommunicate OK [13:22:54]SAM_PROTO_GetFieldsCounters done [13:22:54]requested_item shift.num is exist - process it [13:22:54]requested_item shift.opened is exist - process it [13:22:54]req_shift_opened [13:22:54]FM_GetShiftState [13:22:54]SAM_PROTO_GetShiftState [13:22:54]wFMCommunicate request_size=4 [13:22:54]MH_SAM_APDU [13:22:54]CAPDU: 80 13 01 00 [13:22:54]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [13:22:54]Write i2c OK [13:22:54]MH_I2C_Read... [13:22:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:55]Read from MH i2c: E2 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: E2 0E 00 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 D6 [13:22:55]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [13:22:55]wFMCommunicate OK [13:22:55]SAM_PROTO_GetShiftState done [13:22:55]FM_GetShiftState done [13:22:55]req_shift_opened done [13:22:55]requested_item shift.open_date is exist - process it [13:22:55]req_shift_open_date [13:22:55]req_shift_open_date done [13:22:55]produce_requested_data done [13:22:55]produce_requested_data return {"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76834,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [13:22:55]process_action_free get_value [13:22:55]json_value_free [13:22:55]json_value_free done [13:22:55]process_json_proto returns [13:22:55]Send response to host [13:22:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76834,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [13:22:55]free response buf [13:22:55]execute_script done [13:22:55]execute_script returns [13:22:55]free content buf [13:22:55]Sock 9.Close socket [13:22:55]Sock 9.Thread stoped [13:22:55]accept exits with 11 [13:22:55]New connection [13:22:55]New thread 3066658148 created [13:22:55]Thread 3066801508 joined [13:22:55]Waiting for new connection... [13:22:55] Sock 11.Parse request [13:22:55]Sock 11.Check first char [13:22:55]Sock 11.First char is OK [13:22:55]request: POST /json_proto HTTP/1.0 [13:22:55]Method: POST [13:22:55]URL: /json_proto [13:22:55]Method is POST - this is cgi request [13:22:55]url: /json_proto [13:22:55]query_string will be loaded in cgi processing [13:22:55]execute_cgi json_proto POST (null) [13:22:55]execute_cgi path=json_proto method=POST [13:22:55]POST find Content-Length [13:22:55]Host: 172.17.62.5:8080 [13:22:55]Content-Length: 331 [13:22:55]Content-Type: application/json [13:22:55] [13:22:55]POST finish read [13:22:55]Found Content-Length = 331 [13:22:55]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:22:55]execute_script... [13:22:55]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:22:55]POST & json_proto [13:22:55]process_json_proto [13:22:55]json parsed OK: [13:22:55]protocol is kg_v1.0 [13:22:55]action value=get_value [13:22:55]process_action get_value [13:22:55]cmd_get_value [13:22:55]process_action get_value done [13:22:55]requested_data is exist [13:22:55]produce_requested_data [13:22:55]requested_item fm.sale.total is exist - process it [13:22:55]SAM_PROTO_GetFMData [13:22:55]wFMCommunicate request_size=4 [13:22:55]MH_SAM_APDU [13:22:55]CAPDU: 80 13 03 00 [13:22:55]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [13:22:55]Write i2c OK [13:22:55]MH_I2C_Read... [13:22:55]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:22:55]Read from MH i2c: E2 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: E2 FD 00 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: E2 FD 00 13 00 00 C8 04 85 04 C4 04 6E 04 04 00 3A 29 01 00 69 04 A3 00 6F 04 04 00 4A 27 01 00 B1 04 05 00 18 C7 68 BA 02 70 04 05 00 D0 DE 82 76 02 72 04 04 00 48 E8 E5 43 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 8E 84 2D 4A 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 DE 64 2E 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F0 01 00 00 B1 04 05 00 F4 E2 DA 15 01 70 04 05 00 F4 E2 DA 15 01 72 04 00 00 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 1F BE 81 1D EF 90 00 86 [13:22:55]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 3A 29 01 00 69 04 A3 00 6F 04 04 00 4A 27 01 00 B1 04 05 00 18 C7 68 BA 02 70 04 05 00 D0 DE 82 76 02 72 04 04 00 48 E8 E5 43 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 8E 84 2D 4A 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 DE 64 2E 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F0 01 00 00 B1 04 05 00 F4 E2 DA 15 01 70 04 05 00 F4 E2 DA 15 01 72 04 00 00 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 1F BE 81 1D EF 90 00 [13:22:55]wFMCommunicate OK [13:22:55]wFMCommunicate request_size=4 [13:22:55]MH_SAM_APDU [13:22:55]CAPDU: 80 17 00 00 [13:22:55]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [13:22:55]Write i2c OK [13:22:55]MH_I2C_Read... [13:22:55]Connected sock=6 [13:22:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 71 76 06 01 6D 24 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 96 5F 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 91 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 5A 00 00 00 F4 03 04 00 64 11 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 22 2C 01 00 35 04 06 00 C7 DF 73 AA 1C 9D C0 47 BC CA 85 D0 1B C4 [13:22:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:22:56]Read from MH i2c: E2 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 FD 00 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 FD 00 14 00 00 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 66 7A 75 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 90 00 FA [13:22:56]RAPDU: 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 66 7A 75 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 90 00 [13:22:56]wFMCommunicate OK [13:22:56]wFMCommunicate request_size=4 [13:22:56]MH_SAM_APDU [13:22:56]CAPDU: 80 17 00 00 [13:22:56]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [13:22:56]Write i2c OK [13:22:56]MH_I2C_Read... [13:22:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:22:56]Read from MH i2c: E2 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 FD 00 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 FD 00 15 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 6D [13:22:56]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [13:22:56]wFMCommunicate OK [13:22:56]wFMCommunicate request_size=4 [13:22:56]MH_SAM_APDU [13:22:56]CAPDU: 80 17 00 00 [13:22:56]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [13:22:56]Write i2c OK [13:22:56]MH_I2C_Read... [13:22:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:22:56]Read from MH i2c: E2 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 FD 00 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 FD 00 16 00 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 0E [13:22:56]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [13:22:56]wFMCommunicate OK [13:22:56]wFMCommunicate request_size=4 [13:22:56]MH_SAM_APDU [13:22:56]CAPDU: 80 17 00 00 [13:22:56]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [13:22:56]Write i2c OK [13:22:56]MH_I2C_Read... [13:22:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 B3 5E 47 00 16 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 34 36 35 32 10 04 04 00 22 2C 01 00 F4 03 04 00 B4 BA 24 66 B6 04 01 00 00 BA 0A B4 D4 46 BA 0C 3B [13:22:56]CommunicateWithHost err = 0 [13:22:56]CheckOFDResponse [13:22:56]1017 (14) - 77093643461234 [13:22:56]1041 (16) - 0000000000874652 [13:22:56]1040 (4) - 76834 [13:22:56]1012 (4) - 21.04.2024 07:05 [13:22:56]1206 (1) - 0 [13:22:56]OFD Sender: Remove packet 76834 [13:22:56]ProducePacketName [13:22:56]name=ofd_packets/00076834 [13:22:56]NVStorageDeleteData [13:22:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [13:22:56]Read from MH i2c: E2 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 E5 00 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 E5 00 17 00 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7B [13:22:56]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:22:56]wFMCommunicate OK [13:22:56]SAM_PROTO_GetFMData done [13:22:56]requested_item fm.sale_refund.total is exist - process it [13:22:56]requested_item fm.buy.total is exist - process it [13:22:56]requested_item shift.sale.total is exist - process it [13:22:56]SAM_PROTO_GetShiftData [13:22:56]wFMCommunicate request_size=4 [13:22:56]MH_SAM_APDU [13:22:56]CAPDU: 80 13 02 00 [13:22:56]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [13:22:56]Write i2c OK [13:22:56]MH_I2C_Read... [13:22:57]OFD Sender: No OFD packet to send [13:22:57]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [13:22:57]Read from MH i2c: E2 [13:22:57]MH_I2C_Read... [13:22:57]Read from MH i2c: E2 FD 00 [13:22:57]MH_I2C_Read... [13:22:57]Read from MH i2c: E2 FD 00 18 00 00 AF 04 AA 04 AB 04 6E 04 04 00 5A 00 00 00 69 04 9C 00 6F 04 04 00 5A 00 00 00 B1 04 03 00 C9 A8 AC 70 04 03 00 44 70 87 72 04 03 00 85 38 25 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 C0 56 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3B 87 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 3F [13:22:57]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 5A 00 00 00 69 04 9C 00 6F 04 04 00 5A 00 00 00 B1 04 03 00 C9 A8 AC 70 04 03 00 44 70 87 72 04 03 00 85 38 25 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 C0 56 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3B 87 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [13:22:57]wFMCommunicate OK [13:22:57]wFMCommunicate request_size=4 [13:22:57]MH_SAM_APDU [13:22:57]CAPDU: 80 17 00 00 [13:22:57]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [13:22:57]Write i2c OK [13:22:57]MH_I2C_Read... [13:22:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:22:57]Read from MH i2c: E2 [13:22:57]MH_I2C_Read... [13:22:57]Read from MH i2c: E2 FD 00 [13:22:57]MH_I2C_Read... [13:22:57]Read from MH i2c: E2 FD 00 19 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 B2 [13:22:57]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [13:22:57]wFMCommunicate OK [13:22:57]wFMCommunicate request_size=4 [13:22:57]MH_SAM_APDU [13:22:57]CAPDU: 80 17 00 00 [13:22:57]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [13:22:57]Write i2c OK [13:22:57]MH_I2C_Read... [13:22:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:22:57]Read from MH i2c: E2 [13:22:57]MH_I2C_Read... [13:22:57]Read from MH i2c: E2 FD 00 [13:22:57]MH_I2C_Read... [13:22:57]Read from MH i2c: E2 FD 00 1A 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 4E [13:22:58]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [13:22:58]wFMCommunicate OK [13:22:58]wFMCommunicate request_size=4 [13:22:58]MH_SAM_APDU [13:22:58]CAPDU: 80 17 00 00 [13:22:58]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [13:22:58]Write i2c OK [13:22:58]MH_I2C_Read... [13:22:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:22:58]Read from MH i2c: E2 [13:22:58]MH_I2C_Read... [13:22:58]Read from MH i2c: E2 FD 00 [13:22:58]MH_I2C_Read... [13:22:58]Read from MH i2c: E2 FD 00 1B 00 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 19 [13:22:58]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [13:22:58]wFMCommunicate OK [13:22:58]wFMCommunicate request_size=4 [13:22:58]MH_SAM_APDU [13:22:58]CAPDU: 80 17 00 00 [13:22:58]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [13:22:58]Write i2c OK [13:22:58]MH_I2C_Read... [13:22:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [13:22:58]Read from MH i2c: E2 [13:22:58]MH_I2C_Read... [13:22:58]Read from MH i2c: E2 CC 00 [13:22:58]MH_I2C_Read... [13:22:58]Read from MH i2c: E2 CC 00 1C 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7D [13:22:58]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:22:58]wFMCommunicate OK [13:22:58]SAM_PROTO_GetShiftData done [13:22:58]requested_item shift.sale.total_cash is exist - process it [13:22:58]requested_item shift.sale_refund.total is exist - process it [13:22:58]requested_item shift.sale_refund.total_cash is exist - process it [13:22:58]requested_item shift.buy.total is exist - process it [13:22:58]requested_item shift.buy.total_cash is exist - process it [13:22:58]produce_requested_data done [13:22:58]produce_requested_data return {"fm.sale.total":117173634.80,"fm.sale_refund.total":46616337.80,"fm.buy.total":0.00,"shift.sale.total":113154.01,"shift.sale.total_cash":88761.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:22:58]process_action_free get_value [13:22:58]json_value_free [13:22:58]json_value_free done [13:22:58]process_json_proto returns [13:22:58]Send response to host [13:22:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":117173634.80,"fm.sale_refund.total":46616337.80,"fm.buy.total":0.00,"shift.sale.total":113154.01,"shift.sale.total_cash":88761.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:22:58]free response buf [13:22:58]execute_script done [13:22:58]execute_script returns [13:22:58]free content buf [13:22:58]Sock 11.Close socket [13:22:58]Sock 11.Thread stoped [13:22:59]accept exits with 9 [13:22:59]New connection [13:22:59]New thread 3066801508 created [13:22:59]Thread 3066658148 joined [13:22:59]Waiting for new connection... [13:22:59] Sock 9.Parse request [13:22:59]Sock 9.Check first char [13:22:59]Sock 9.First char is OK [13:22:59]request: POST /json_proto HTTP/1.0 [13:22:59]Method: POST [13:22:59]URL: /json_proto [13:22:59]Method is POST - this is cgi request [13:22:59]url: /json_proto [13:22:59]query_string will be loaded in cgi processing [13:22:59]execute_cgi json_proto POST (null) [13:22:59]execute_cgi path=json_proto method=POST [13:22:59]POST find Content-Length [13:22:59]Host: 172.17.62.5:8080 [13:22:59]Content-Length: 677 [13:22:59]Content-Type: application/json [13:22:59] [13:22:59]POST finish read [13:22:59]Found Content-Length = 677 [13:22:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 4.000, "sum" : 257.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 257.00, "total" : 257.00, "payments": [ { "type": 0, "sum" : 257.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:59]execute_script... [13:22: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)191371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 4.000, "sum" : 257.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 257.00, "total" : 257.00, "payments": [ { "type": 0, "sum" : 257.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:59]POST & json_proto [13:22:59]process_json_proto [13:22:59]json parsed OK: [13:22:59]protocol is kg_v1.0 [13:22:59]action value=close_receipt [13:22:59]process_action close_receipt [13:22:59]cmd_close_receipt [13:22:59]MH_GetDate [13:22:59]Write to MH i2c: F0 00 00 1D 00 0C [13:22:59]Write i2c OK [13:22:59]MH_I2C_Read... [13:22:59]Read from MH i2c: F0 [13:22:59]MH_I2C_Read... [13:22:59]Read from MH i2c: F0 09 00 [13:22:59]MH_I2C_Read... [13:22:59]Read from MH i2c: F0 09 00 1D 00 00 33 13 25 66 F4 E9 65 64 8C [13:22:59]GetLastDocTimeStamp 1713705316 [13:22:59]current date 1713705779 [13:22:59]FM_GetShiftState [13:22:59]SAM_PROTO_GetShiftState [13:22:59]wFMCommunicate request_size=4 [13:22:59]MH_SAM_APDU [13:22:59]CAPDU: 80 13 01 00 [13:22:59]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [13:22:59]Write i2c OK [13:22:59]MH_I2C_Read... [13:22:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:59]Read from MH i2c: E2 [13:22:59]MH_I2C_Read... [13:22:59]Read from MH i2c: E2 0E 00 [13:22:59]MH_I2C_Read... [13:22:59]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 E2 [13:22:59]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [13:22:59]wFMCommunicate OK [13:22:59]SAM_PROTO_GetShiftState done [13:22:59]FM_GetShiftState done [13:22:59]opened in 1713658965 [13:22:59]opened+sec_in_day 1713745365 [13:22:59]quantity*price = 25760 [13:22:59]sum+1 = 25761 [13:22:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 257.00 Внесено: 257.00 СДАЧА: 0.00 НСП 1% : 2.28 НДС 12% : 27.36 Наличными: 257.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 91 21.04.2024 13:22 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76835 ФПД: 209530732788234 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T132259&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76835&fm=209530732788234&tin=02508201610067®Number=0000000000091573&sum=25700 [13:23:00]StoreToDocumentArchive [13:23:00]shift 372 fd 76835 [13:23:00]save to /storage/0372/doc_00076835 [13:23:00]save last doc name /storage/0372/doc_00076835 to /storage/kkm_last_doc_name [13:23:00]save OK [13:23:00]Clear old archive folders... [13:23:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:23:00]tlvbuf is 0108D620 [13:23:00]SAM_PROTO_ClearQueue [13:23:00]wFMCommunicate request_size=4 [13:23:00]MH_SAM_APDU [13:23:00]CAPDU: 80 09 00 00 [13:23:00]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [13:23:00]Write i2c OK [13:23:00]MH_I2C_Read... [13:23:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:23:00]Read from MH i2c: E2 [13:23:00]MH_I2C_Read... [13:23:00]Read from MH i2c: E2 03 00 [13:23:00]MH_I2C_Read... [13:23:00]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [13:23:00]RAPDU: 90 00 [13:23:00]wFMCommunicate OK [13:23:00]SAM_PROTO_ClearQueue done [13:23:00]KKMCreateOFDPacket [13:23:00]OFDProtocolAddRootSTLVToBuf [13:23:00]FM_MakeSignedData [13:23:00]FM_MakeSignedData [13:23:00]SAM_PROTO_SignData [13:23:00]wFMCommunicate request_size=4 [13:23:00]MH_SAM_APDU [13:23:00]CAPDU: 80 0D 01 02 [13:23:00]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [13:23:00]Write i2c OK [13:23:00]MH_I2C_Read... [13:23:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:23:00]Read from MH i2c: E2 [13:23:00]MH_I2C_Read... [13:23:00]Read from MH i2c: E2 03 00 [13:23:00]MH_I2C_Read... [13:23:00]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [13:23:00]RAPDU: 90 00 [13:23:00]wFMCommunicate OK [13:23:00]wFMCommunicate request_size=255 [13:23:00]MH_SAM_APDU [13:23:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 A0 64 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0A 00 00 00 00 07 04 06 00 64 64 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 33 13 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 23 2C 01 00 35 04 06 00 BE [13:23:00]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 A0 64 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0A 00 00 00 00 07 04 06 00 64 64 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 33 13 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 23 2C 01 00 35 04 06 00 BE 00 00 80 [13:23:00]Write i2c OK [13:23:00]MH_I2C_Read... [13:23:01]Read from MH i2c: E2 [13:23:01]MH_I2C_Read... [13:23:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:01]Read from MH i2c: E2 03 00 [13:23:01]MH_I2C_Read... [13:23:01]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [13:23:01]RAPDU: 90 00 [13:23:01]wFMCommunicate OK [13:23:01]wFMCommunicate request_size=10 [13:23:01]MH_SAM_APDU [13:23:01]CAPDU: 80 0D 02 02 05 91 2C E5 BA 0A [13:23:01]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 91 2C E5 BA 0A 00 00 18 [13:23:01]Write i2c OK [13:23:01]MH_I2C_Read... [13:23:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:01]Read from MH i2c: E2 [13:23:01]MH_I2C_Read... [13:23:01]Read from MH i2c: E2 03 00 [13:23:01]MH_I2C_Read... [13:23:01]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [13:23:01]RAPDU: 90 00 [13:23:01]wFMCommunicate OK [13:23:01]wFMCommunicate request_size=4 [13:23:01]MH_SAM_APDU [13:23:01]CAPDU: 80 0D 03 02 [13:23:01]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [13:23:01]Write i2c OK [13:23:01]MH_I2C_Read... [13:23:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:23:01]Read from MH i2c: E2 [13:23:01]MH_I2C_Read... [13:23:01]Read from MH i2c: E2 0B 00 [13:23:01]MH_I2C_Read... [13:23:01]Read from MH i2c: E2 0B 00 2F 00 00 D4 A3 40 2B 76 6C 99 27 90 00 2F [13:23:01]RAPDU: D4 A3 40 2B 76 6C 99 27 90 00 [13:23:01]wFMCommunicate OK [13:23:01]SAM_PROTO_SignData done [13:23:01]FM_MakeSignedData done [13:23:01]CreateOFDProtocolMessage [13:23:01]wFMCommunicate request_size=4 [13:23:01]MH_SAM_APDU [13:23:01]CAPDU: 80 11 00 00 [13:23:01]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [13:23:01]Write i2c OK [13:23:01]MH_I2C_Read... [13:23:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:01]Read from MH i2c: E2 [13:23:01]MH_I2C_Read... [13:23:01]Read from MH i2c: E2 17 00 [13:23:01]MH_I2C_Read... [13:23:01]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 FD [13:23:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:23:01]wFMCommunicate OK [13:23:01]CreateOFDProtocolMessage done [13:23:01]OFDSenderStorePacket 76835 [13:23:01]StoreOFDPacket docnum=76835 [13:23:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 B4 11 07 01 F9 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 A0 64 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0A 00 00 00 00 07 04 06 00 64 64 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 33 13 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 23 2C 01 00 35 04 06 00 BE 91 2C E5 BA 0A D4 A3 40 2B 76 6C 99 27 [13:23:01]CheckFolder [13:23:01]dirname=/storage/ofd_packets [13:23:01]CheckFolder done [13:23:01]ProducePacketName [13:23:01]name=ofd_packets/00076835 [13:23:01]NVStorageSaveData ofd_packets/00076835 [13:23:01]File name is /storage/ofd_packets/00076835 [13:23:01]Write 301 bytes [13:23:01]NVStorageSaveData done [13:23:01]OFDSenderStorePacket done [13:23:01]KKMCreateOFDPacket done [13:23:01]NVStorageSaveData kkm_last_timestamp [13:23:01]File name is /storage/kkm_last_timestamp [13:23:01]Write 4 bytes [13:23:01]NVStorageSaveData done [13:23:01]ExternCall_PrintAddStr [13:23:01]wPrintStart [13:23:01]Write to MH i2c: 01 00 00 31 00 31 [13:23:01]Write i2c OK [13:23:01]MH_I2C_Read... [13:23:01]Read from MH i2c: 01 [13:23:01]MH_I2C_Read... [13:23:01]Read from MH i2c: 01 07 00 [13:23:01]MH_I2C_Read... [13:23:01]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [13:23:01]RasterBufferAndPrint [13:23:01]line Счет N : (1)191371 [13:23:01]line ИНН: 02508201610067 [13:23:01]line Контрольно-Кассовый Чек [13:23:01]line ПРОДАЖА [13:23:01]line ТРК (МРК, ГНК) : 22 [13:23:01]line Товар: 2710124130 [13:23:01]line Аи-92-К-5 [13:23:01]line 4.000 * 64.40 [13:23:01]line = 257.60 [13:23:01]line НДС 12% НСП 1% [13:23:01]line > о реализуемом товаре [13:23:01]line ОКРУГЛЕНИЕ: -0.60 [13:23:01]line ИТОГО: 257.00 [13:23:01]line Внесено: 257.00 [13:23:01]line СДАЧА: 0.00 [13:23:01]line НСП 1% : 2.28 [13:23:01]line НДС 12% : 27.36 [13:23:01]line Наличными: 257.00 [13:23:01]line Безнал.: 0.00 [13:23:01]line Место: АЗС № 106 "Партнер Нефть" [13:23:01]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [13:23:01]line СНО: Общий режим [13:23:01]line Чек 91 21.04.2024 13:22 [13:23:01]line Смена: 372 ФФД: 1.0 [13:23:01]line ЗНМ: 0300000141 [13:23:01]line РНМ: 0000000000091573 [13:23:01]line Версия ККМ: 001 [13:23:01]line ФМ: 0000000000874652 [13:23:01]line ФД: 76835 [13:23:01]line ФПД: 209530732788234 [13:23:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T132259&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76835&fm=209530732788234&tin=02508201610067®Number=0000000000091573&sum=25700 [13:23:01]written 0, free lines is 4095 [13:23:01]OFD Sender: Processing packet 76835 [packets to send 129, broken 128] [13:23:01]ProducePacketName [13:23:01]name=ofd_packets/00076835 [13:23:01]OFD Sender: To server: pG, [13:23:01]CommunicateWithHost lk.salyk.kg:30040 [13:23:01]ConnectInit lk.salyk.kg [13:23:01]Connected sock=10 [13:23:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 B4 11 07 01 F9 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 A0 64 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0A 00 00 00 00 07 04 06 00 64 64 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 33 13 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 23 2C 01 00 35 04 06 00 BE 91 2C E5 BA 0A D4 A3 40 2B 76 6C 99 27 [13:23:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 A9 C5 47 00 DA 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 34 36 35 32 10 04 04 00 23 2C 01 00 F4 03 04 00 B9 BA 24 66 B6 04 01 00 00 8B D9 49 3E E5 96 6D DF [13:23:01]CommunicateWithHost err = 0 [13:23:01]CheckOFDResponse [13:23:01]1017 (14) - 77093643461234 [13:23:01]1041 (16) - 0000000000874652 [13:23:01]1040 (4) - 76835 [13:23:01]1012 (4) - 21.04.2024 07:05 [13:23:01]1206 (1) - 0 [13:23:01]OFD Sender: Remove packet 76835 [13:23:01]ProducePacketName [13:23:01]name=ofd_packets/00076835 [13:23:01]NVStorageDeleteData [13:23:01]Write to MH i2c: 01 00 00 5B 00 5B [13:23:01]Write i2c OK [13:23:01]MH_I2C_Read... [13:23:01]Read from MH i2c: 01 [13:23:01]MH_I2C_Read... [13:23:01]Read from MH i2c: 01 07 00 [13:23:01]MH_I2C_Read... [13:23:01]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 02 0D 71 [13:23:01]RasterBufferAndPrint [13:23:01]line [13:23:01]line [13:23:01]line [13:23:01]line [13:23:01]line [13:23:01]written 0, free lines is 3358 [13:23:01]MH_Cut [13:23:01]Write to MH i2c: D1 01 00 62 00 01 34 [13:23:01]Write i2c OK [13:23:01]MH_I2C_Read... [13:23:01]Read from MH i2c: D1 [13:23:01]MH_I2C_Read... [13:23:01]Read from MH i2c: D1 01 00 [13:23:01]MH_I2C_Read... [13:23:01]Read from MH i2c: D1 01 00 62 00 00 33 [13:23:01]Write to MH i2c: 01 00 00 63 00 63 [13:23:01]Write i2c OK [13:23:01]MH_I2C_Read... [13:23:02]OFD Sender: No OFD packet to send [13:23:02]*** Cut start [13:23:02]*** Partial cut [13:23:02]*** CUTSNS_PIN = 1 [13:23:02]*** CUTSNS_PIN = 0 [13:23:02]*** Brake cut motor [13:23:03]Read from MH i2c: 01 [13:23:03]MH_I2C_Read... [13:23:03]*** Stop cut motor [13:23:03]*** Cut end [13:23:03]Read from MH i2c: 01 07 00 [13:23:03]MH_I2C_Read... [13:23:03]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [13:23:03]process_action close_receipt done [13:23:03]requested_data is exist [13:23:03]produce_requested_data [13:23:03]requested_item fm.sn is exist - process it [13:23:03]wFMCommunicate request_size=4 [13:23:03]MH_SAM_APDU [13:23:03]CAPDU: 80 11 00 00 [13:23:03]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [13:23:03]Write i2c OK [13:23:03]MH_I2C_Read... [13:23:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:03]Read from MH i2c: E2 [13:23:03]MH_I2C_Read... [13:23:03]Read from MH i2c: E2 17 00 [13:23:03]MH_I2C_Read... [13:23:03]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 31 [13:23:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:23:03]wFMCommunicate OK [13:23:03]requested_item fd.num is exist - process it [13:23:03]SAM_PROTO_GetFieldsCounters [13:23:03]wFMCommunicate request_size=4 [13:23:03]MH_SAM_APDU [13:23:03]CAPDU: 80 13 00 00 [13:23:03]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [13:23:03]Write i2c OK [13:23:03]MH_I2C_Read... [13:23:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:23:03]Read from MH i2c: E2 [13:23:03]MH_I2C_Read... [13:23:03]Read from MH i2c: E2 62 00 [13:23:03]MH_I2C_Read... [13:23:03]Read from MH i2c: E2 62 00 65 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 23 2C 01 00 0E 04 04 00 74 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 D8 [13:23: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 23 2C 01 00 0E 04 04 00 74 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 [13:23:03]wFMCommunicate OK [13:23:03]SAM_PROTO_GetFieldsCounters done [13:23:03]requested_item shift.num is exist - process it [13:23:03]requested_item shift.opened is exist - process it [13:23:03]req_shift_opened [13:23:03]FM_GetShiftState [13:23:03]SAM_PROTO_GetShiftState [13:23:03]wFMCommunicate request_size=4 [13:23:03]MH_SAM_APDU [13:23:03]CAPDU: 80 13 01 00 [13:23:03]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [13:23:03]Write i2c OK [13:23:03]MH_I2C_Read... [13:23:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:03]Read from MH i2c: E2 [13:23:03]MH_I2C_Read... [13:23:03]Read from MH i2c: E2 0E 00 [13:23:03]MH_I2C_Read... [13:23:03]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 2A [13:23:03]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [13:23:03]wFMCommunicate OK [13:23:03]SAM_PROTO_GetShiftState done [13:23:03]FM_GetShiftState done [13:23:03]req_shift_opened done [13:23:03]requested_item shift.open_date is exist - process it [13:23:03]req_shift_open_date [13:23:03]req_shift_open_date done [13:23:03]produce_requested_data done [13:23:03]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76835,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [13:23:03]process_action_free close_receipt [13:23:03]json_value_free [13:23:03]json_value_free done [13:23:03]process_json_proto returns [13:23:03]Send response to host [13:23:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76835,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [13:23:03]free response buf [13:23:03]execute_script done [13:23:03]execute_script returns [13:23:03]free content buf [13:23:03]Sock 9.Close socket [13:23:03]Sock 9.Thread stoped [13:23:07]OFD Sender: No OFD packet to send [13:23:12]OFD Sender: No OFD packet to send [13:23:17]OFD Sender: No OFD packet to send [13:23:22]OFD Sender: No OFD packet to send [13:23:27]OFD Sender: No OFD packet to send [13:23:32]OFD Sender: No OFD packet to send [13:23:37]OFD Sender: No OFD packet to send [13:23:42]OFD Sender: No OFD packet to send [13:23:47]OFD Sender: No OFD packet to send [13:23:52]OFD Sender: No OFD packet to send [13:23:57]OFD Sender: No OFD packet to send [13:24:02]OFD Sender: No OFD packet to send [13:24:07]OFD Sender: No OFD packet to send [13:24:12]OFD Sender: No OFD packet to send [13:24:17]OFD Sender: No OFD packet to send [13:24:22]OFD Sender: No OFD packet to send [13:24:27]OFD Sender: No OFD packet to send [13:24:32]OFD Sender: No OFD packet to send [13:24:37]OFD Sender: No OFD packet to send [13:24:42]OFD Sender: No OFD packet to send [13:24:47]OFD Sender: No OFD packet to send [13:24:50]accept exits with 7 [13:24:50]New connection [13:24:50]New thread 3066658148 created [13:24:50]Thread 3066801508 joined [13:24:50]Waiting for new connection... [13:24:50] Sock 7.Parse request [13:24:50]Sock 7.Check first char [13:24:50]Sock 7.First char is OK [13:24:50]request: POST /json_proto HTTP/1.0 [13:24:50]Method: POST [13:24:50]URL: /json_proto [13:24:50]Method is POST - this is cgi request [13:24:50]url: /json_proto [13:24:50]query_string will be loaded in cgi processing [13:24:50]execute_cgi json_proto POST (null) [13:24:50]execute_cgi path=json_proto method=POST [13:24:50]POST find Content-Length [13:24:50]Host: 172.17.62.5:8080 [13:24:50]Content-Length: 1156 [13:24:50]Content-Type: application/json [13:24:50] [13:24:50]POST finish read [13:24:50]Found Content-Length = 1156 [13:24: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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041B\u044B\u043C\u0430\u0440\u0435\u0432\u0430 \u0412. \u000A\u0421\u0447\u0435\u0442 N : (1)191373\u000A21.04.2024 13:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 644.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30000667\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:50]execute_script... [13:24: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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041B\u044B\u043C\u0430\u0440\u0435\u0432\u0430 \u0412. \u000A\u0421\u0447\u0435\u0442 N : (1)191373\u000A21.04.2024 13:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 644.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30000667\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:50]POST & json_proto [13:24:50]process_json_proto [13:24:50]json parsed OK: [13:24:50]protocol is kg_v1.0 [13:24:50]action value=print_text [13:24:50]process_action print_text [13:24:50]cmd_print_text [13:24:50]ExternCall_PrintAddStr [13:24:50]wPrintStart [13:24:50]Write to MH i2c: 01 00 00 67 00 67 [13:24:50]Write i2c OK [13:24:50]MH_I2C_Read... [13:24:50]Read from MH i2c: 01 [13:24:50]MH_I2C_Read... [13:24:50]Read from MH i2c: 01 07 00 [13:24:50]MH_I2C_Read... [13:24:50]Read from MH i2c: 01 07 00 67 00 00 00 00 00 00 FF 0F 7C [13:24:50]RasterBufferAndPrint [13:24:50]line *****ТОВАРНЫЙ ЧЕК***** [13:24:50]line АЗС 106 [13:24:50]line Партнер нефть [13:24:50]line 02508201610067 [13:24:50]line Кассир : Лымарева В. [13:24:50]line Счет N : (1)191373 [13:24:50]line 21.04.2024 13:06 [13:24:50]line ПРОДАЖА [13:24:50]line ТРК (МРК, ГНК): 43 [13:24:50]line Вид ГСМ : 2710124130 [13:24:50]line Аи-92-К-5 [13:24:50]line 10.000 x 64.40 [13:24:50]line ИТОГ: 644.00 [13:24:50]line Тип оплаты: Талоны: ТК ГПНА Online [13:24:50]line 30000667 [13:24:50]line ______________________ [13:24:50]line (подпись) [13:24:50]written 0, free lines is 4095 [13:24:50]Write to MH i2c: 01 00 00 7B 00 7B [13:24:50]Write i2c OK [13:24:50]MH_I2C_Read... [13:24:50]Read from MH i2c: 01 [13:24:50]MH_I2C_Read... [13:24:50]Read from MH i2c: 01 07 00 [13:24:50]MH_I2C_Read... [13:24:50]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 0E 0E 9E [13:24:50]RasterBufferAndPrint [13:24:50]line [13:24:50]line [13:24:50]line [13:24:50]line [13:24:50]line [13:24:50]written 0, free lines is 3600 [13:24:50]MH_Cut [13:24:50]Write to MH i2c: D1 01 00 82 00 01 54 [13:24:50]Write i2c OK [13:24:50]MH_I2C_Read... [13:24:50]Read from MH i2c: D1 [13:24:50]MH_I2C_Read... [13:24:50]Read from MH i2c: D1 01 00 [13:24:50]MH_I2C_Read... [13:24:50]Read from MH i2c: D1 01 00 82 00 00 53 [13:24:50]Write to MH i2c: 01 00 00 83 00 83 [13:24:50]Write i2c OK [13:24:50]MH_I2C_Read... [13:24:51]*** Cut start [13:24:51]*** Partial cut [13:24:51]*** CUTSNS_PIN = 1 [13:24:51]*** CUTSNS_PIN = 0 [13:24:51]*** Brake cut motor [13:24:51]Read from MH i2c: 01 [13:24:51]MH_I2C_Read... [13:24:51]Read from MH i2c: 01 07 00 [13:24:51]MH_I2C_Read... [13:24:51]*** Stop cut motor [13:24:51]*** Cut end [13:24:51]Read from MH i2c: 01 07 00 83 00 00 00 00 00 00 FF 0F 98 [13:24:51]process_action print_text done [13:24:51]requested_data is exist [13:24:51]produce_requested_data [13:24:51]requested_item fm.sn is exist - process it [13:24:51]wFMCommunicate request_size=4 [13:24:51]MH_SAM_APDU [13:24:51]CAPDU: 80 11 00 00 [13:24:51]Write to MH i2c: E2 08 00 84 00 80 11 00 00 00 00 00 00 FE [13:24:51]Write i2c OK [13:24:51]MH_I2C_Read... [13:24:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:51]Read from MH i2c: E2 [13:24:51]MH_I2C_Read... [13:24:51]Read from MH i2c: E2 17 00 [13:24:51]MH_I2C_Read... [13:24:51]Read from MH i2c: E2 17 00 84 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 51 [13:24:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:24:51]wFMCommunicate OK [13:24:51]requested_item fd.num is exist - process it [13:24:51]SAM_PROTO_GetFieldsCounters [13:24:51]wFMCommunicate request_size=4 [13:24:51]MH_SAM_APDU [13:24:51]CAPDU: 80 13 00 00 [13:24:51]Write to MH i2c: E2 08 00 85 00 80 13 00 00 00 00 00 00 01 [13:24:51]Write i2c OK [13:24:51]MH_I2C_Read... [13:24:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:24:51]Read from MH i2c: E2 [13:24:51]MH_I2C_Read... [13:24:51]Read from MH i2c: E2 62 00 [13:24:51]MH_I2C_Read... [13:24:51]Read from MH i2c: E2 62 00 85 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 23 2C 01 00 0E 04 04 00 74 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 F8 [13:24: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 23 2C 01 00 0E 04 04 00 74 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 [13:24:51]wFMCommunicate OK [13:24:51]SAM_PROTO_GetFieldsCounters done [13:24:51]requested_item shift.num is exist - process it [13:24:51]requested_item shift.opened is exist - process it [13:24:51]req_shift_opened [13:24:51]FM_GetShiftState [13:24:51]SAM_PROTO_GetShiftState [13:24:51]wFMCommunicate request_size=4 [13:24:51]MH_SAM_APDU [13:24:51]CAPDU: 80 13 01 00 [13:24:51]Write to MH i2c: E2 08 00 86 00 80 13 01 00 00 00 00 00 03 [13:24:51]Write i2c OK [13:24:51]MH_I2C_Read... [13:24:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:52]Read from MH i2c: E2 [13:24:52]MH_I2C_Read... [13:24:52]Read from MH i2c: E2 0E 00 [13:24:52]MH_I2C_Read... [13:24:52]Read from MH i2c: E2 0E 00 86 00 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 4A [13:24:52]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [13:24:52]wFMCommunicate OK [13:24:52]SAM_PROTO_GetShiftState done [13:24:52]FM_GetShiftState done [13:24:52]req_shift_opened done [13:24:52]requested_item shift.open_date is exist - process it [13:24:52]req_shift_open_date [13:24:52]req_shift_open_date done [13:24:52]produce_requested_data done [13:24:52]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76835,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [13:24:52]process_action_free print_text [13:24:52]json_value_free [13:24:52]json_value_free done [13:24:52]process_json_proto returns [13:24:52]Send response to host [13:24:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76835,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [13:24:52]free response buf [13:24:52]execute_script done [13:24:52]execute_script returns [13:24:52]free content buf [13:24:52]Sock 7.Close socket [13:24:52]Sock 7.Thread stoped [13:24:52]OFD Sender: No OFD packet to send [13:24:57]OFD Sender: No OFD packet to send [13:25:02]OFD Sender: No OFD packet to send [13:25:07]OFD Sender: No OFD packet to send [13:25:12]OFD Sender: No OFD packet to send [13:25:17]OFD Sender: No OFD packet to send [13:25:22]OFD Sender: No OFD packet to send [13:25:27]OFD Sender: No OFD packet to send [13:25:32]OFD Sender: No OFD packet to send [13:25:37]OFD Sender: No OFD packet to send [13:25:40]accept exits with 9 [13:25:40]New connection [13:25:40]New thread 3066801508 created [13:25:40]Thread 3066658148 joined [13:25:40]Waiting for new connection... [13:25:40] Sock 9.Parse request [13:25:40]Sock 9.Check first char [13:25:40]Sock 9.First char is OK [13:25:40]request: POST /json_proto HTTP/1.0 [13:25:40]Method: POST [13:25:40]URL: /json_proto [13:25:40]Method is POST - this is cgi request [13:25:40]url: /json_proto [13:25:40]query_string will be loaded in cgi processing [13:25:40]execute_cgi json_proto POST (null) [13:25:40]execute_cgi path=json_proto method=POST [13:25:40]POST find Content-Length [13:25:40]Host: 172.17.62.5:8080 [13:25:40]Content-Length: 1156 [13:25:40]Content-Type: application/json [13:25:40] [13:25:40]POST finish read [13:25:40]Found Content-Length = 1156 [13:25:40]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041B\u044B\u043C\u0430\u0440\u0435\u0432\u0430 \u0412. \u000A\u0421\u0447\u0435\u0442 N : (1)191374\u000A21.04.2024 13:07\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 966.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102984\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:40]execute_script... [13:25:40]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041B\u044B\u043C\u0430\u0440\u0435\u0432\u0430 \u0412. \u000A\u0421\u0447\u0435\u0442 N : (1)191374\u000A21.04.2024 13:07\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 966.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102984\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:40]POST & json_proto [13:25:40]process_json_proto [13:25:40]json parsed OK: [13:25:40]protocol is kg_v1.0 [13:25:40]action value=print_text [13:25:40]process_action print_text [13:25:40]cmd_print_text [13:25:40]ExternCall_PrintAddStr [13:25:40]wPrintStart [13:25:40]Write to MH i2c: 01 00 00 87 00 87 [13:25:40]Write i2c OK [13:25:40]MH_I2C_Read... [13:25:40]Read from MH i2c: 01 [13:25:40]MH_I2C_Read... [13:25:40]Read from MH i2c: 01 07 00 [13:25:40]MH_I2C_Read... [13:25:40]Read from MH i2c: 01 07 00 87 00 00 00 00 00 00 FF 0F 9C [13:25:40]RasterBufferAndPrint [13:25:40]line *****ТОВАРНЫЙ ЧЕК***** [13:25:40]line АЗС 106 [13:25:40]line Партнер нефть [13:25:40]line 02508201610067 [13:25:40]line Кассир : Лымарева В. [13:25:40]line Счет N : (1)191374 [13:25:40]line 21.04.2024 13:07 [13:25:40]line ПРОДАЖА [13:25:40]line ТРК (МРК, ГНК): 12 [13:25:40]line Вид ГСМ : 2710124130 [13:25:40]line Аи-92-К-5 [13:25:40]line 15.000 x 64.40 [13:25:40]line ИТОГ: 966.00 [13:25:40]line Тип оплаты: Талоны: ТК ГПНА Online [13:25:40]line 30102984 [13:25:40]line ______________________ [13:25:40]line (подпись) [13:25:40]written 0, free lines is 4095 [13:25:40]Write to MH i2c: 01 00 00 9B 00 9B [13:25:40]Write i2c OK [13:25:40]MH_I2C_Read... [13:25:40]Read from MH i2c: 01 [13:25:40]MH_I2C_Read... [13:25:40]Read from MH i2c: 01 07 00 [13:25:40]MH_I2C_Read... [13:25:40]Read from MH i2c: 01 07 00 9B 00 00 00 00 00 00 0E 0E BE [13:25:40]RasterBufferAndPrint [13:25:40]line [13:25:40]line [13:25:40]line [13:25:40]line [13:25:40]line [13:25:40]written 0, free lines is 3600 [13:25:40]MH_Cut [13:25:40]Write to MH i2c: D1 01 00 A2 00 01 74 [13:25:40]Write i2c OK [13:25:40]MH_I2C_Read... [13:25:40]Read from MH i2c: D1 [13:25:40]MH_I2C_Read... [13:25:40]Read from MH i2c: D1 01 00 [13:25:40]MH_I2C_Read... [13:25:40]Read from MH i2c: D1 01 00 A2 00 00 73 [13:25:40]Write to MH i2c: 01 00 00 A3 00 A3 [13:25:40]Write i2c OK [13:25:40]MH_I2C_Read... [13:25:41]*** Cut start [13:25:41]*** Partial cut [13:25:41]*** CUTSNS_PIN = 1 [13:25:41]*** CUTSNS_PIN = 0 [13:25:41]*** Brake cut motor [13:25:41]Read from MH i2c: 01 [13:25:41]MH_I2C_Read... [13:25:41]*** Stop cut motor [13:25:41]*** Cut end [13:25:41]Read from MH i2c: 01 07 00 [13:25:41]MH_I2C_Read... [13:25:41]Read from MH i2c: 01 07 00 A3 00 00 00 00 00 00 FF 0F B8 [13:25:41]process_action print_text done [13:25:41]requested_data is exist [13:25:41]produce_requested_data [13:25:41]requested_item fm.sn is exist - process it [13:25:41]wFMCommunicate request_size=4 [13:25:41]MH_SAM_APDU [13:25:41]CAPDU: 80 11 00 00 [13:25:41]Write to MH i2c: E2 08 00 A4 00 80 11 00 00 00 00 00 00 1E [13:25:41]Write i2c OK [13:25:41]MH_I2C_Read... [13:25:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:42]Read from MH i2c: E2 [13:25:42]MH_I2C_Read... [13:25:42]Read from MH i2c: E2 17 00 [13:25:42]MH_I2C_Read... [13:25:42]Read from MH i2c: E2 17 00 A4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 71 [13:25:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:25:42]wFMCommunicate OK [13:25:42]requested_item fd.num is exist - process it [13:25:42]SAM_PROTO_GetFieldsCounters [13:25:42]wFMCommunicate request_size=4 [13:25:42]MH_SAM_APDU [13:25:42]CAPDU: 80 13 00 00 [13:25:42]Write to MH i2c: E2 08 00 A5 00 80 13 00 00 00 00 00 00 21 [13:25:42]Write i2c OK [13:25:42]MH_I2C_Read... [13:25:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:25:42]Read from MH i2c: E2 [13:25:42]MH_I2C_Read... [13:25:42]Read from MH i2c: E2 62 00 [13:25:42]MH_I2C_Read... [13:25:42]Read from MH i2c: E2 62 00 A5 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 23 2C 01 00 0E 04 04 00 74 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 18 [13:25: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 23 2C 01 00 0E 04 04 00 74 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 [13:25:42]wFMCommunicate OK [13:25:42]SAM_PROTO_GetFieldsCounters done [13:25:42]requested_item shift.num is exist - process it [13:25:42]requested_item shift.opened is exist - process it [13:25:42]req_shift_opened [13:25:42]FM_GetShiftState [13:25:42]SAM_PROTO_GetShiftState [13:25:42]wFMCommunicate request_size=4 [13:25:42]MH_SAM_APDU [13:25:42]CAPDU: 80 13 01 00 [13:25:42]Write to MH i2c: E2 08 00 A6 00 80 13 01 00 00 00 00 00 23 [13:25:42]Write i2c OK [13:25:42]MH_I2C_Read... [13:25:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:42]Read from MH i2c: E2 [13:25:42]MH_I2C_Read... [13:25:42]Read from MH i2c: E2 0E 00 [13:25:42]MH_I2C_Read... [13:25:42]Read from MH i2c: E2 0E 00 A6 00 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 6A [13:25:42]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [13:25:42]wFMCommunicate OK [13:25:42]SAM_PROTO_GetShiftState done [13:25:42]FM_GetShiftState done [13:25:42]req_shift_opened done [13:25:42]requested_item shift.open_date is exist - process it [13:25:42]req_shift_open_date [13:25:42]req_shift_open_date done [13:25:42]produce_requested_data done [13:25:42]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76835,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [13:25:42]process_action_free print_text [13:25:42]json_value_free [13:25:42]json_value_free done [13:25:42]process_json_proto returns [13:25:42]Send response to host [13:25:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76835,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [13:25:42]free response buf [13:25:42]execute_script done [13:25:42]execute_script returns [13:25:42]free content buf [13:25:42]Sock 9.Close socket [13:25:42]Sock 9.Thread stoped [13:25:42]OFD Sender: No OFD packet to send [13:25:47]OFD Sender: No OFD packet to send [13:25:52]OFD Sender: No OFD packet to send [13:25:57]OFD Sender: No OFD packet to send [13:26:02]OFD Sender: No OFD packet to send [13:26:07]OFD Sender: No OFD packet to send [13:26:10]accept exits with 7 [13:26:10]New connection [13:26:10]New thread 3066658148 created [13:26:10]Thread 3066801508 joined [13:26:10]Waiting for new connection... [13:26:10] Sock 7.Parse request [13:26:10]Sock 7.Check first char [13:26:10]Sock 7.First char is OK [13:26:10]request: POST /json_proto HTTP/1.0 [13:26:10]Method: POST [13:26:10]URL: /json_proto [13:26:10]Method is POST - this is cgi request [13:26:10]url: /json_proto [13:26:10]query_string will be loaded in cgi processing [13:26:10]execute_cgi json_proto POST (null) [13:26:10]execute_cgi path=json_proto method=POST [13:26:10]POST find Content-Length [13:26:10]Host: 172.17.62.5:8080 [13:26:10]Content-Length: 670 [13:26:10]Content-Type: application/json [13:26:10] [13:26:10]POST finish read [13:26:10]Found Content-Length = 670 [13:26:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 6.120, "sum" : 400.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:10]execute_script... [13:26: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)191375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 6.120, "sum" : 400.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:10]POST & json_proto [13:26:10]process_json_proto [13:26:10]json parsed OK: [13:26:10]protocol is kg_v1.0 [13:26:10]action value=close_receipt [13:26:10]process_action close_receipt [13:26:10]cmd_close_receipt [13:26:10]MH_GetDate [13:26:10]Write to MH i2c: F0 00 00 A7 00 96 [13:26:10]Write i2c OK [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: F0 [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: F0 09 00 [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: F0 09 00 A7 00 00 F2 13 25 66 F4 E9 65 64 D5 [13:26:10]GetLastDocTimeStamp 1713705779 [13:26:10]current date 1713705970 [13:26:10]FM_GetShiftState [13:26:10]SAM_PROTO_GetShiftState [13:26:10]wFMCommunicate request_size=4 [13:26:10]MH_SAM_APDU [13:26:10]CAPDU: 80 13 01 00 [13:26:10]Write to MH i2c: E2 08 00 A8 00 80 13 01 00 00 00 00 00 25 [13:26:10]Write i2c OK [13:26:10]MH_I2C_Read... [13:26:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:10]Read from MH i2c: E2 [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: E2 0E 00 [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: E2 0E 00 A8 00 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 6C [13:26:10]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [13:26:10]wFMCommunicate OK [13:26:10]SAM_PROTO_GetShiftState done [13:26:10]FM_GetShiftState done [13:26:10]opened in 1713658965 [13:26:10]opened+sec_in_day 1713745365 [13:26:10]quantity*price = 40024 [13:26:10]sum+1 = 40026 [13:26:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.50 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 92 21.04.2024 13:26 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76836 ФПД: 167602267338029 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T132610&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76836&fm=167602267338029&tin=02508201610067®Number=0000000000091573&sum=40000 [13:26:11]StoreToDocumentArchive [13:26:11]shift 372 fd 76836 [13:26:11]save to /storage/0372/doc_00076836 [13:26:11]save last doc name /storage/0372/doc_00076836 to /storage/kkm_last_doc_name [13:26:11]save OK [13:26:11]Clear old archive folders... [13:26:11]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:26:11]tlvbuf is 01099DB0 [13:26:11]SAM_PROTO_ClearQueue [13:26:11]wFMCommunicate request_size=4 [13:26:11]MH_SAM_APDU [13:26:11]CAPDU: 80 09 00 00 [13:26:11]Write to MH i2c: E2 08 00 B5 00 80 09 00 00 00 00 00 00 27 [13:26:11]Write i2c OK [13:26:11]MH_I2C_Read... [13:26:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:11]Read from MH i2c: E2 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: E2 03 00 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: E2 03 00 B5 00 00 90 00 29 [13:26:11]RAPDU: 90 00 [13:26:11]wFMCommunicate OK [13:26:11]SAM_PROTO_ClearQueue done [13:26:11]KKMCreateOFDPacket [13:26:11]OFDProtocolAddRootSTLVToBuf [13:26:11]FM_MakeSignedData [13:26:11]FM_MakeSignedData [13:26:11]SAM_PROTO_SignData [13:26:11]wFMCommunicate request_size=4 [13:26:11]MH_SAM_APDU [13:26:11]CAPDU: 80 0D 01 02 [13:26:11]Write to MH i2c: E2 08 00 B6 00 80 0D 01 02 00 00 00 00 2F [13:26:11]Write i2c OK [13:26:11]MH_I2C_Read... [13:26:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:11]Read from MH i2c: E2 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: E2 03 00 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: E2 03 00 B6 00 00 90 00 2A [13:26:11]RAPDU: 90 00 [13:26:11]wFMCommunicate OK [13:26:11]wFMCommunicate request_size=255 [13:26:11]MH_SAM_APDU [13:26: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 17 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 59 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 5C 00 00 00 F4 03 04 00 F2 13 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 24 2C 01 00 35 04 06 00 [13:26:11]Write to MH i2c: E2 02 01 B7 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 17 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 59 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 5C 00 00 00 F4 03 04 00 F2 13 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 24 2C 01 00 35 04 06 00 00 00 E6 [13:26:11]Write i2c OK [13:26:11]MH_I2C_Read... [13:26:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:11]Read from MH i2c: E2 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: E2 03 00 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: E2 03 00 B7 00 00 90 00 2B [13:26:11]RAPDU: 90 00 [13:26:11]wFMCommunicate OK [13:26:11]wFMCommunicate request_size=11 [13:26:11]MH_SAM_APDU [13:26:11]CAPDU: 80 0D 02 02 06 98 6E F1 9B B5 2D [13:26:11]Write to MH i2c: E2 0E 00 B8 00 80 0D 02 02 06 00 98 6E F1 9B B5 2D 00 00 B2 [13:26:11]Write i2c OK [13:26:11]MH_I2C_Read... [13:26:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:11]Read from MH i2c: E2 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: E2 03 00 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: E2 03 00 B8 00 00 90 00 2C [13:26:11]RAPDU: 90 00 [13:26:11]wFMCommunicate OK [13:26:11]wFMCommunicate request_size=4 [13:26:11]MH_SAM_APDU [13:26:11]CAPDU: 80 0D 03 02 [13:26:11]Write to MH i2c: E2 08 00 B9 00 80 0D 03 02 00 00 00 00 34 [13:26:11]Write i2c OK [13:26:11]MH_I2C_Read... [13:26:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:11]Read from MH i2c: E2 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: E2 0B 00 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: E2 0B 00 B9 00 00 B7 F3 A3 14 C6 51 15 25 90 00 E7 [13:26:11]RAPDU: B7 F3 A3 14 C6 51 15 25 90 00 [13:26:11]wFMCommunicate OK [13:26:11]SAM_PROTO_SignData done [13:26:11]FM_MakeSignedData done [13:26:11]CreateOFDProtocolMessage [13:26:11]wFMCommunicate request_size=4 [13:26:11]MH_SAM_APDU [13:26:11]CAPDU: 80 11 00 00 [13:26:11]Write to MH i2c: E2 08 00 BA 00 80 11 00 00 00 00 00 00 34 [13:26:11]Write i2c OK [13:26:11]MH_I2C_Read... [13:26:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:11]Read from MH i2c: E2 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: E2 17 00 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: E2 17 00 BA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 87 [13:26:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:26:11]wFMCommunicate OK [13:26:11]CreateOFDProtocolMessage done [13:26:11]OFDSenderStorePacket 76836 [13:26:11]StoreOFDPacket docnum=76836 [13:26:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 1D E6 08 01 CF D1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 17 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 59 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 5C 00 00 00 F4 03 04 00 F2 13 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 24 2C 01 00 35 04 06 00 98 6E F1 9B B5 2D B7 F3 A3 14 C6 51 15 25 [13:26:11]CheckFolder [13:26:11]dirname=/storage/ofd_packets [13:26:11]CheckFolder done [13:26:11]ProducePacketName [13:26:11]name=ofd_packets/00076836 [13:26:11]NVStorageSaveData ofd_packets/00076836 [13:26:11]File name is /storage/ofd_packets/00076836 [13:26:11]Write 302 bytes [13:26:11]NVStorageSaveData done [13:26:11]OFDSenderStorePacket done [13:26:11]KKMCreateOFDPacket done [13:26:11]NVStorageSaveData kkm_last_timestamp [13:26:11]File name is /storage/kkm_last_timestamp [13:26:11]Write 4 bytes [13:26:11]NVStorageSaveData done [13:26:11]ExternCall_PrintAddStr [13:26:11]wPrintStart [13:26:11]Write to MH i2c: 01 00 00 BB 00 BB [13:26:11]Write i2c OK [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: 01 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: 01 07 00 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: 01 07 00 BB 00 00 00 00 00 00 FF 0F D0 [13:26:11]RasterBufferAndPrint [13:26:11]line Счет N : (1)191375 [13:26:11]line ИНН: 02508201610067 [13:26:11]line Контрольно-Кассовый Чек [13:26:11]line ПРОДАЖА [13:26:11]line ТРК (МРК, ГНК) : 41 [13:26:11]line Товар: 2710124130 [13:26:11]line SUPER 92-К-5 [13:26:11]line 6.120 * 65.40 [13:26:11]line = 400.25 [13:26:11]line НДС 12% НСП 1% [13:26:11]line > о реализуемом товаре [13:26:11]line ОКРУГЛЕНИЕ: -0.25 [13:26:11]line ИТОГО: 400.00 [13:26:11]line Внесено: 400.00 [13:26:11]line СДАЧА: 0.00 [13:26:11]line НСП 1% : 3.54 [13:26:11]line НДС 12% : 42.50 [13:26:11]line Наличными: 400.00 [13:26:11]line Безнал.: 0.00 [13:26:11]line Место: АЗС № 106 "Партнер Нефть" [13:26:11]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [13:26:11]line СНО: Общий режим [13:26:11]line Чек 92 21.04.2024 13:26 [13:26:11]line Смена: 372 ФФД: 1.0 [13:26:11]line ЗНМ: 0300000141 [13:26:11]line РНМ: 0000000000091573 [13:26:11]line Версия ККМ: 001 [13:26:11]line ФМ: 0000000000874652 [13:26:11]line ФД: 76836 [13:26:11]line ФПД: 167602267338029 [13:26:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T132610&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76836&fm=167602267338029&tin=02508201610067®Number=0000000000091573&sum=40000 [13:26:12]written 0, free lines is 4095 [13:26:12]OFD Sender: Processing packet 76836 [packets to send 129, broken 128] [13:26:12]ProducePacketName [13:26:12]name=ofd_packets/00076836 [13:26:12]OFD Sender: To server: pG, [13:26:12]CommunicateWithHost lk.salyk.kg:30040 [13:26:12]ConnectInit lk.salyk.kg [13:26:12]Connected sock=10 [13:26:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 1D E6 08 01 CF D1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 17 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 59 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 5C 00 00 00 F4 03 04 00 F2 13 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 24 2C 01 00 35 04 06 00 98 6E F1 9B B5 2D B7 F3 A3 14 C6 51 15 25 [13:26:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 D6 F4 47 00 B9 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 34 36 35 32 10 04 04 00 24 2C 01 00 F4 03 04 00 77 BB 24 66 B6 04 01 00 00 3B 37 BC E3 58 1B 3B 3D [13:26:12]CommunicateWithHost err = 0 [13:26:12]CheckOFDResponse [13:26:12]1017 (14) - 77093643461234 [13:26:12]1041 (16) - 0000000000874652 [13:26:12]1040 (4) - 76836 [13:26:12]1012 (4) - 21.04.2024 07:08 [13:26:12]1206 (1) - 0 [13:26:12]OFD Sender: Remove packet 76836 [13:26:12]ProducePacketName [13:26:12]name=ofd_packets/00076836 [13:26:12]NVStorageDeleteData [13:26:12]Write to MH i2c: 01 00 00 E5 00 E5 [13:26:12]Write i2c OK [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: 01 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: 01 07 00 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: 01 07 00 E5 00 00 00 00 00 00 E7 0C DF [13:26:12]RasterBufferAndPrint [13:26:12]line [13:26:12]line [13:26:12]line [13:26:12]line [13:26:12]line [13:26:12]written 0, free lines is 3310 [13:26:12]MH_Cut [13:26:12]Write to MH i2c: D1 01 00 EC 00 01 BE [13:26:12]Write i2c OK [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: D1 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: D1 01 00 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: D1 01 00 EC 00 00 BD [13:26:12]Write to MH i2c: 01 00 00 ED 00 ED [13:26:12]Write i2c OK [13:26:12]MH_I2C_Read... [13:26:12]OFD Sender: No OFD packet to send [13:26:13]*** Cut start [13:26:13]*** Partial cut [13:26:13]*** CUTSNS_PIN = 1 [13:26:13]*** CUTSNS_PIN = 0 [13:26:13]*** Brake cut motor [13:26:13]Read from MH i2c: 01 [13:26:13]MH_I2C_Read... [13:26:13]*** Stop cut motor [13:26:13]*** Cut end [13:26:13]Read from MH i2c: 01 07 00 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: 01 07 00 ED 00 00 00 00 00 00 FF 0F 02 [13:26:13]process_action close_receipt done [13:26:13]requested_data is exist [13:26:13]produce_requested_data [13:26:13]requested_item fm.sn is exist - process it [13:26:13]wFMCommunicate request_size=4 [13:26:13]MH_SAM_APDU [13:26:13]CAPDU: 80 11 00 00 [13:26:13]Write to MH i2c: E2 08 00 EE 00 80 11 00 00 00 00 00 00 68 [13:26:13]Write i2c OK [13:26:13]MH_I2C_Read... [13:26:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:13]Read from MH i2c: E2 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: E2 17 00 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: E2 17 00 EE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 BB [13:26:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:26:13]wFMCommunicate OK [13:26:13]requested_item fd.num is exist - process it [13:26:13]SAM_PROTO_GetFieldsCounters [13:26:13]wFMCommunicate request_size=4 [13:26:13]MH_SAM_APDU [13:26:13]CAPDU: 80 13 00 00 [13:26:13]Write to MH i2c: E2 08 00 EF 00 80 13 00 00 00 00 00 00 6B [13:26:13]Write i2c OK [13:26:13]MH_I2C_Read... [13:26:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:14]Read from MH i2c: E2 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: E2 62 00 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: E2 62 00 EF 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 24 2C 01 00 0E 04 04 00 74 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 66 [13:26: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 24 2C 01 00 0E 04 04 00 74 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 [13:26:14]wFMCommunicate OK [13:26:14]SAM_PROTO_GetFieldsCounters done [13:26:14]requested_item shift.num is exist - process it [13:26:14]requested_item shift.opened is exist - process it [13:26:14]req_shift_opened [13:26:14]FM_GetShiftState [13:26:14]SAM_PROTO_GetShiftState [13:26:14]wFMCommunicate request_size=4 [13:26:14]MH_SAM_APDU [13:26:14]CAPDU: 80 13 01 00 [13:26:14]Write to MH i2c: E2 08 00 F0 00 80 13 01 00 00 00 00 00 6D [13:26:14]Write i2c OK [13:26:14]MH_I2C_Read... [13:26:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:14]Read from MH i2c: E2 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: E2 0E 00 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: E2 0E 00 F0 00 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 B4 [13:26:14]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [13:26:14]wFMCommunicate OK [13:26:14]SAM_PROTO_GetShiftState done [13:26:14]FM_GetShiftState done [13:26:14]req_shift_opened done [13:26:14]requested_item shift.open_date is exist - process it [13:26:14]req_shift_open_date [13:26:14]req_shift_open_date done [13:26:14]produce_requested_data done [13:26:14]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76836,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [13:26:14]process_action_free close_receipt [13:26:14]json_value_free [13:26:14]json_value_free done [13:26:14]process_json_proto returns [13:26:14]Send response to host [13:26:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76836,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [13:26:14]free response buf [13:26:14]execute_script done [13:26:14]execute_script returns [13:26:14]free content buf [13:26:14]Sock 7.Close socket [13:26:14]Sock 7.Thread stoped [13:26:17]OFD Sender: No OFD packet to send [13:26:22]OFD Sender: No OFD packet to send [13:26:27]OFD Sender: No OFD packet to send [13:26:32]OFD Sender: No OFD packet to send [13:26:37]OFD Sender: No OFD packet to send [13:26:42]OFD Sender: No OFD packet to send [13:26:47]OFD Sender: No OFD packet to send [13:26:52]OFD Sender: No OFD packet to send [13:26:57]OFD Sender: No OFD packet to send [13:27:02]OFD Sender: No OFD packet to send [13:27:07]OFD Sender: No OFD packet to send [13:27:12]OFD Sender: No OFD packet to send [13:27:17]OFD Sender: No OFD packet to send [13:27:22]OFD Sender: No OFD packet to send [13:27:27]OFD Sender: No OFD packet to send [13:27:32]OFD Sender: No OFD packet to send [13:27:35]accept exits with 9 [13:27:35]New connection [13:27:35]New thread 3066801508 created [13:27:35]Thread 3066658148 joined [13:27:35]Waiting for new connection... [13:27:35] Sock 9.Parse request [13:27:35]Sock 9.Check first char [13:27:35]Sock 9.First char is OK [13:27:35]request: POST /json_proto HTTP/1.0 [13:27:35]Method: POST [13:27:35]URL: /json_proto [13:27:35]Method is POST - this is cgi request [13:27:35]url: /json_proto [13:27:35]query_string will be loaded in cgi processing [13:27:35]execute_cgi json_proto POST (null) [13:27:35]execute_cgi path=json_proto method=POST [13:27:35]POST find Content-Length [13:27:35]Host: 172.17.62.5:8080 [13:27:35]Content-Length: 990 [13:27:35]Content-Type: application/json [13:27:35] [13:27:35]POST finish read [13:27:35]Found Content-Length = 990 [13:27:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 46.070, "sum" : 1460.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 46.07 \u0441\u043E\u043C", "deposit" : 1700.00, "total" : 1460.00, "payments": [ { "type": 0, "sum" : 1460.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:27:35]execute_script... [13:27: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)191370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 46.070, "sum" : 1460.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 46.07 \u0441\u043E\u043C", "deposit" : 1700.00, "total" : 1460.00, "payments": [ { "type": 0, "sum" : 1460.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:27:35]POST & json_proto [13:27:35]process_json_proto [13:27:35]json parsed OK: [13:27:35]protocol is kg_v1.0 [13:27:35]action value=close_receipt [13:27:35]process_action close_receipt [13:27:35]cmd_close_receipt [13:27:35]MH_GetDate [13:27:35]Write to MH i2c: F0 00 00 F1 00 E0 [13:27:35]Write i2c OK [13:27:35]MH_I2C_Read... [13:27:35]Read from MH i2c: F0 [13:27:35]MH_I2C_Read... [13:27:35]Read from MH i2c: F0 09 00 [13:27:35]MH_I2C_Read... [13:27:35]Read from MH i2c: F0 09 00 F1 00 00 48 14 25 66 F4 E9 65 64 76 [13:27:35]GetLastDocTimeStamp 1713705970 [13:27:35]current date 1713706056 [13:27:35]FM_GetShiftState [13:27:35]SAM_PROTO_GetShiftState [13:27:35]wFMCommunicate request_size=4 [13:27:35]MH_SAM_APDU [13:27:35]CAPDU: 80 13 01 00 [13:27:35]Write to MH i2c: E2 08 00 F2 00 80 13 01 00 00 00 00 00 6F [13:27:35]Write i2c OK [13:27:35]MH_I2C_Read... [13:27:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:35]Read from MH i2c: E2 [13:27:35]MH_I2C_Read... [13:27:35]Read from MH i2c: E2 0E 00 [13:27:35]MH_I2C_Read... [13:27:35]Read from MH i2c: E2 0E 00 F2 00 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 B6 [13:27:35]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [13:27:35]wFMCommunicate OK [13:27:35]SAM_PROTO_GetShiftState done [13:27:35]FM_GetShiftState done [13:27:35]opened in 1713658965 [13:27:35]opened+sec_in_day 1713745365 [13:27:35]quantity*price = 146041 [13:27:35]sum+1 = 146043 [13:27:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 1460.00 Внесено: 1700.00 СДАЧА: 240.00 НСП 1% : 12.92 НДС 12% : 155.09 Наличными: 1460.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 93 21.04.2024 13:27 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 46.07 сом ФМ: 0000000000874652 ФД: 76837 ФПД: 36912171693420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T132736&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76837&fm=36912171693420&tin=02508201610067®Number=0000000000091573&sum=146000 [13:27:36]StoreToDocumentArchive [13:27:36]shift 372 fd 76837 [13:27:36]save to /storage/0372/doc_00076837 [13:27:36]save last doc name /storage/0372/doc_00076837 to /storage/kkm_last_doc_name [13:27:36]save OK [13:27:36]Clear old archive folders... [13:27:36]ProcessDocumentItem done err = 0, tmpTLVsize=250 [13:27:36]tlvbuf is 01024980 [13:27:36]SAM_PROTO_ClearQueue [13:27:36]wFMCommunicate request_size=4 [13:27:36]MH_SAM_APDU [13:27:36]CAPDU: 80 09 00 00 [13:27:36]Write to MH i2c: E2 08 00 FF 00 80 09 00 00 00 00 00 00 71 [13:27:36]Write i2c OK [13:27:36]MH_I2C_Read... [13:27:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:27:36]Read from MH i2c: E2 [13:27:36]MH_I2C_Read... [13:27:36]Read from MH i2c: E2 03 00 [13:27:36]MH_I2C_Read... [13:27:36]Read from MH i2c: E2 03 00 FF 00 00 90 00 73 [13:27:36]RAPDU: 90 00 [13:27:36]wFMCommunicate OK [13:27:36]SAM_PROTO_ClearQueue done [13:27:36]KKMCreateOFDPacket [13:27:36]OFDProtocolAddRootSTLVToBuf [13:27:36]FM_MakeSignedData [13:27:36]FM_MakeSignedData [13:27:36]SAM_PROTO_SignData [13:27:36]wFMCommunicate request_size=4 [13:27:36]MH_SAM_APDU [13:27:36]CAPDU: 80 0D 01 02 [13:27:36]Write to MH i2c: E2 08 00 00 01 80 0D 01 02 00 00 00 00 7A [13:27:36]Write i2c OK [13:27:36]MH_I2C_Read... [13:27:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:27:36]Read from MH i2c: E2 [13:27:36]MH_I2C_Read... [13:27:36]Read from MH i2c: E2 03 00 [13:27:36]MH_I2C_Read... [13:27:36]Read from MH i2c: E2 03 00 00 01 00 90 00 75 [13:27:36]RAPDU: 90 00 [13:27:36]wFMCommunicate OK [13:27:36]wFMCommunicate request_size=255 [13:27:36]MH_SAM_APDU [13:27:36]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F6 B3 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 7A 3A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 3A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 3C 00 00 00 00 07 04 06 00 50 3A 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 48 14 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 25 2C 01 00 35 04 06 00 21 92 [13:27:36]Write to MH i2c: E2 02 01 01 01 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F6 B3 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 7A 3A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 3A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 3C 00 00 00 00 07 04 06 00 50 3A 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 48 14 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 25 2C 01 00 35 04 06 00 21 92 00 00 B0 [13:27:36]Write i2c OK [13:27:36]MH_I2C_Read... [13:27:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:37]Read from MH i2c: E2 [13:27:37]MH_I2C_Read... [13:27:37]Read from MH i2c: E2 03 00 [13:27:37]MH_I2C_Read... [13:27:37]Read from MH i2c: E2 03 00 01 01 00 90 00 76 [13:27:37]RAPDU: 90 00 [13:27:37]wFMCommunicate OK [13:27:37]wFMCommunicate request_size=9 [13:27:37]MH_SAM_APDU [13:27:37]CAPDU: 80 0D 02 02 04 48 E1 B5 6C [13:27:37]Write to MH i2c: E2 0C 00 02 01 80 0D 02 02 04 00 48 E1 B5 6C 00 00 CF [13:27:37]Write i2c OK [13:27:37]MH_I2C_Read... [13:27:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:37]Read from MH i2c: E2 [13:27:37]MH_I2C_Read... [13:27:37]Read from MH i2c: E2 03 00 [13:27:37]MH_I2C_Read... [13:27:37]Read from MH i2c: E2 03 00 02 01 00 90 00 77 [13:27:37]RAPDU: 90 00 [13:27:37]wFMCommunicate OK [13:27:37]wFMCommunicate request_size=4 [13:27:37]MH_SAM_APDU [13:27:37]CAPDU: 80 0D 03 02 [13:27:37]Write to MH i2c: E2 08 00 03 01 80 0D 03 02 00 00 00 00 7F [13:27:37]Write i2c OK [13:27:37]MH_I2C_Read... [13:27:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:27:37]Read from MH i2c: E2 [13:27:37]MH_I2C_Read... [13:27:37]Read from MH i2c: E2 0B 00 [13:27:37]MH_I2C_Read... [13:27:37]Read from MH i2c: E2 0B 00 03 01 00 6B BC 7B 38 A5 81 1F B1 90 00 50 [13:27:37]RAPDU: 6B BC 7B 38 A5 81 1F B1 90 00 [13:27:37]wFMCommunicate OK [13:27:37]SAM_PROTO_SignData done [13:27:37]FM_MakeSignedData done [13:27:37]CreateOFDProtocolMessage [13:27:37]wFMCommunicate request_size=4 [13:27:37]MH_SAM_APDU [13:27:37]CAPDU: 80 11 00 00 [13:27:37]Write to MH i2c: E2 08 00 04 01 80 11 00 00 00 00 00 00 7F [13:27:37]Write i2c OK [13:27:37]MH_I2C_Read... [13:27:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:37]Read from MH i2c: E2 [13:27:37]MH_I2C_Read... [13:27:37]Read from MH i2c: E2 17 00 [13:27:37]MH_I2C_Read... [13:27:37]Read from MH i2c: E2 17 00 04 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 D2 [13:27:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:27:37]wFMCommunicate OK [13:27:37]CreateOFDProtocolMessage done [13:27:37]OFDSenderStorePacket 76837 [13:27:37]StoreOFDPacket docnum=76837 [13:27:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 E4 B6 06 01 E2 D6 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F6 B3 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 7A 3A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 3A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 3C 00 00 00 00 07 04 06 00 50 3A 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 48 14 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 25 2C 01 00 35 04 06 00 21 92 48 E1 B5 6C 6B BC 7B 38 A5 81 1F B1 [13:27:37]CheckFolder [13:27:37]dirname=/storage/ofd_packets [13:27:37]CheckFolder done [13:27:37]ProducePacketName [13:27:37]name=ofd_packets/00076837 [13:27:37]NVStorageSaveData ofd_packets/00076837 [13:27:37]File name is /storage/ofd_packets/00076837 [13:27:37]Write 300 bytes [13:27:37]NVStorageSaveData done [13:27:37]OFDSenderStorePacket done [13:27:37]KKMCreateOFDPacket done [13:27:37]NVStorageSaveData kkm_last_timestamp [13:27:37]File name is /storage/kkm_last_timestamp [13:27:37]Write 4 bytes [13:27:37]NVStorageSaveData done [13:27:37]ExternCall_PrintAddStr [13:27:37]wPrintStart [13:27:37]Write to MH i2c: 01 00 00 05 01 06 [13:27:37]Write i2c OK [13:27:37]MH_I2C_Read... [13:27:37]Read from MH i2c: 01 [13:27:37]MH_I2C_Read... [13:27:37]Read from MH i2c: 01 07 00 [13:27:37]MH_I2C_Read... [13:27:37]Read from MH i2c: 01 07 00 05 01 00 00 00 00 00 FF 0F 1B [13:27:37]RasterBufferAndPrint [13:27:37]line Счет N : (1)191370 [13:27:37]line ИНН: 02508201610067 [13:27:37]line Контрольно-Кассовый Чек [13:27:37]line ПРОДАЖА [13:27:37]line ТРК (МРК, ГНК) : 71 [13:27:37]line Товар: 2711190000 [13:27:37]line ГАЗ-К-5 [13:27:37]line 46.070 * 31.70 [13:27:37]line = 1460.42 [13:27:37]line НДС 12% НСП 1% [13:27:37]line > о реализуемом товаре [13:27:37]line ОКРУГЛЕНИЕ: -0.42 [13:27:37]line ИТОГО: 1460.00 [13:27:37]line Внесено: 1700.00 [13:27:37]line СДАЧА: 240.00 [13:27:37]line НСП 1% : 12.92 [13:27:37]line НДС 12% : 155.09 [13:27:37]line Наличными: 1460.00 [13:27:37]line Безнал.: 0.00 [13:27:37]line Место: АЗС № 106 "Партнер Нефть" [13:27:37]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [13:27:37]line СНО: Общий режим [13:27:37]line Чек 93 21.04.2024 13:27 [13:27:37]line Смена: 372 ФФД: 1.0 [13:27:37]line ЗНМ: 0300000141 [13:27:37]line РНМ: 0000000000091573 [13:27:37]line Версия ККМ: 001 [13:27:37]line [13:27:37]line Дисконтная программа [13:27:37]line СУГ [13:27:37]line номер 106 [13:27:37]line сэкономлено 46.07 сом [13:27:37]line ФМ: 0000000000874652 [13:27:37]line ФД: 76837 [13:27:37]line ФПД: 36912171693420 [13:27:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T132736&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76837&fm=36912171693420&tin=02508201610067®Number=0000000000091573&sum=146000 [13:27:37]OFD Sender: Processing packet 76837 [packets to send 129, broken 128] [13:27:37]ProducePacketName [13:27:37]name=ofd_packets/00076837 [13:27:37]OFD Sender: To server: pG, [13:27:37]CommunicateWithHost lk.salyk.kg:30040 [13:27:37]ConnectInit lk.salyk.kg [13:27:37]written 0, free lines is 4095 [13:27:38]Connected sock=10 [13:27:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 E4 B6 06 01 E2 D6 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F6 B3 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 7A 3A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 3A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 3C 00 00 00 00 07 04 06 00 50 3A 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 48 14 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 25 2C 01 00 35 04 06 00 21 92 48 E1 B5 6C 6B BC 7B 38 A5 81 1F B1 [13:27:38]Write to MH i2c: 01 00 00 34 01 35 [13:27:38]Write i2c OK [13:27:38]MH_I2C_Read... [13:27:38]Read from MH i2c: 01 [13:27:38]MH_I2C_Read... [13:27:38]Read from MH i2c: 01 07 00 [13:27:38]MH_I2C_Read... [13:27:38]Read from MH i2c: 01 07 00 34 01 00 00 00 00 00 A1 0C E9 [13:27:38]RasterBufferAndPrint [13:27:38]line [13:27:38]line [13:27:38]line [13:27:38]line [13:27:38]line [13:27:38]written 0, free lines is 3239 [13:27:38]MH_Cut [13:27:38]Write to MH i2c: D1 01 00 3B 01 01 0E [13:27:38]Write i2c OK [13:27:38]MH_I2C_Read... [13:27:38]Read from MH i2c: D1 [13:27:38]MH_I2C_Read... [13:27:38]Read from MH i2c: D1 01 00 [13:27:38]MH_I2C_Read... [13:27:38]Read from MH i2c: D1 01 00 3B 01 00 0D [13:27:38]Write to MH i2c: 01 00 00 3C 01 3D [13:27:38]Write i2c OK [13:27:38]MH_I2C_Read... [13:27:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 DF EF 47 00 06 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 34 36 35 32 10 04 04 00 25 2C 01 00 F4 03 04 00 CD BB 24 66 B6 04 01 00 00 07 10 9F 6A D8 F8 67 B7 [13:27:38]CommunicateWithHost err = 0 [13:27:38]CheckOFDResponse [13:27:38]1017 (14) - 77093643461234 [13:27:38]1041 (16) - 0000000000874652 [13:27:38]1040 (4) - 76837 [13:27:38]1012 (4) - 21.04.2024 07:10 [13:27:38]1206 (1) - 0 [13:27:38]OFD Sender: Remove packet 76837 [13:27:38]ProducePacketName [13:27:38]name=ofd_packets/00076837 [13:27:38]NVStorageDeleteData [13:27:38]OFD Sender: No OFD packet to send [13:27:38]*** Cut start [13:27:38]*** Partial cut [13:27:38]*** CUTSNS_PIN = 1 [13:27:39]*** CUTSNS_PIN = 0 [13:27:39]*** Brake cut motor [13:27:39]Read from MH i2c: 01 [13:27:39]MH_I2C_Read... [13:27:39]*** Stop cut motor [13:27:39]*** Cut end [13:27:39]Read from MH i2c: 01 07 00 [13:27:39]MH_I2C_Read... [13:27:39]Read from MH i2c: 01 07 00 3C 01 00 00 00 00 00 FF 0F 52 [13:27:39]process_action close_receipt done [13:27:39]requested_data is exist [13:27:39]produce_requested_data [13:27:39]requested_item fm.sn is exist - process it [13:27:39]wFMCommunicate request_size=4 [13:27:39]MH_SAM_APDU [13:27:39]CAPDU: 80 11 00 00 [13:27:39]Write to MH i2c: E2 08 00 3D 01 80 11 00 00 00 00 00 00 B8 [13:27:39]Write i2c OK [13:27:39]MH_I2C_Read... [13:27:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:39]Read from MH i2c: E2 [13:27:39]MH_I2C_Read... [13:27:39]Read from MH i2c: E2 17 00 [13:27:39]MH_I2C_Read... [13:27:39]Read from MH i2c: E2 17 00 3D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 0B [13:27:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:27:39]wFMCommunicate OK [13:27:39]requested_item fd.num is exist - process it [13:27:39]SAM_PROTO_GetFieldsCounters [13:27:39]wFMCommunicate request_size=4 [13:27:39]MH_SAM_APDU [13:27:39]CAPDU: 80 13 00 00 [13:27:39]Write to MH i2c: E2 08 00 3E 01 80 13 00 00 00 00 00 00 BB [13:27:39]Write i2c OK [13:27:39]MH_I2C_Read... [13:27:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:27:39]Read from MH i2c: E2 [13:27:39]MH_I2C_Read... [13:27:39]Read from MH i2c: E2 62 00 [13:27:39]MH_I2C_Read... [13:27:39]Read from MH i2c: E2 62 00 3E 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 25 2C 01 00 0E 04 04 00 74 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 BA [13:27: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 25 2C 01 00 0E 04 04 00 74 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 [13:27:39]wFMCommunicate OK [13:27:39]SAM_PROTO_GetFieldsCounters done [13:27:39]requested_item shift.num is exist - process it [13:27:39]requested_item shift.opened is exist - process it [13:27:39]req_shift_opened [13:27:39]FM_GetShiftState [13:27:39]SAM_PROTO_GetShiftState [13:27:39]wFMCommunicate request_size=4 [13:27:39]MH_SAM_APDU [13:27:39]CAPDU: 80 13 01 00 [13:27:39]Write to MH i2c: E2 08 00 3F 01 80 13 01 00 00 00 00 00 BD [13:27:39]Write i2c OK [13:27:39]MH_I2C_Read... [13:27:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:39]Read from MH i2c: E2 [13:27:39]MH_I2C_Read... [13:27:39]Read from MH i2c: E2 0E 00 [13:27:39]MH_I2C_Read... [13:27:39]Read from MH i2c: E2 0E 00 3F 01 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 04 [13:27:39]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [13:27:39]wFMCommunicate OK [13:27:39]SAM_PROTO_GetShiftState done [13:27:39]FM_GetShiftState done [13:27:39]req_shift_opened done [13:27:39]requested_item shift.open_date is exist - process it [13:27:39]req_shift_open_date [13:27:39]req_shift_open_date done [13:27:39]produce_requested_data done [13:27:39]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76837,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [13:27:39]process_action_free close_receipt [13:27:39]json_value_free [13:27:39]json_value_free done [13:27:39]process_json_proto returns [13:27:39]Send response to host [13:27:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76837,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [13:27:39]free response buf [13:27:39]execute_script done [13:27:39]execute_script returns [13:27:39]free content buf [13:27:39]Sock 9.Close socket [13:27:39]Sock 9.Thread stoped [13:27:43]OFD Sender: No OFD packet to send [13:27:48]OFD Sender: No OFD packet to send [13:27:53]OFD Sender: No OFD packet to send [13:27:58]OFD Sender: No OFD packet to send [13:28:03]OFD Sender: No OFD packet to send [13:28:08]OFD Sender: No OFD packet to send [13:28:13]OFD Sender: No OFD packet to send [13:28:18]OFD Sender: No OFD packet to send [13:28:23]OFD Sender: No OFD packet to send [13:28:28]OFD Sender: No OFD packet to send [13:28:33]OFD Sender: No OFD packet to send [13:28:38]OFD Sender: No OFD packet to send [13:28:43]OFD Sender: No OFD packet to send [13:28:48]OFD Sender: No OFD packet to send [13:28:53]OFD Sender: No OFD packet to send [13:28:58]OFD Sender: No OFD packet to send [13:29:03]OFD Sender: No OFD packet to send [13:29:08]OFD Sender: No OFD packet to send [13:29:14]OFD Sender: No OFD packet to send [13:29:19]OFD Sender: No OFD packet to send [13:29:24]OFD Sender: No OFD packet to send [13:29:29]OFD Sender: No OFD packet to send [13:29:34]OFD Sender: No OFD packet to send [13:29:39]OFD Sender: No OFD packet to send [13:29:44]OFD Sender: No OFD packet to send [13:29:49]OFD Sender: No OFD packet to send [13:29:54]OFD Sender: No OFD packet to send [13:29:59]OFD Sender: No OFD packet to send [13:30:04]OFD Sender: No OFD packet to send [13:30:09]OFD Sender: No OFD packet to send [13:30:14]OFD Sender: No OFD packet to send [13:30:19]OFD Sender: No OFD packet to send [13:30:24]OFD Sender: No OFD packet to send [13:30:29]OFD Sender: No OFD packet to send [13:30:34]OFD Sender: No OFD packet to send [13:30:39]OFD Sender: No OFD packet to send [13:30:44]OFD Sender: No OFD packet to send [13:30:49]OFD Sender: No OFD packet to send [13:30:54]OFD Sender: No OFD packet to send [13:30:59]OFD Sender: No OFD packet to send [13:31:04]OFD Sender: No OFD packet to send [13:31:09]OFD Sender: No OFD packet to send [13:31:14]OFD Sender: No OFD packet to send [13:31:19]OFD Sender: No OFD packet to send [13:31:24]OFD Sender: No OFD packet to send [13:31:29]OFD Sender: No OFD packet to send [13:31:34]OFD Sender: No OFD packet to send [13:31:39]OFD Sender: No OFD packet to send [13:31:44]OFD Sender: No OFD packet to send [13:31:49]OFD Sender: No OFD packet to send [13:31:54]OFD Sender: No OFD packet to send [13:31:59]OFD Sender: No OFD packet to send [13:32:01]accept exits with 7 [13:32:01]New connection [13:32:01]New thread 3066658148 created [13:32:01]Thread 3066801508 joined [13:32:01]Waiting for new connection... [13:32:01] Sock 7.Parse request [13:32:01]Sock 7.Check first char [13:32:01]Sock 7.First char is OK [13:32:01]request: POST /json_proto HTTP/1.0 [13:32:01]Method: POST [13:32:01]URL: /json_proto [13:32:01]Method is POST - this is cgi request [13:32:01]url: /json_proto [13:32:01]query_string will be loaded in cgi processing [13:32:01]execute_cgi json_proto POST (null) [13:32:01]execute_cgi path=json_proto method=POST [13:32:01]POST find Content-Length [13:32:01]Host: 172.17.62.5:8080 [13:32:01]Content-Length: 990 [13:32:01]Content-Type: application/json [13:32:01] [13:32:01]POST finish read [13:32:01]Found Content-Length = 990 [13:32:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 31.550, "sum" : 1000.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 31.55 \u0441\u043E\u043C", "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:01]execute_script... [13:32: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)191376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 31.550, "sum" : 1000.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 31.55 \u0441\u043E\u043C", "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:01]POST & json_proto [13:32:01]process_json_proto [13:32:01]json parsed OK: [13:32:01]protocol is kg_v1.0 [13:32:01]action value=close_receipt [13:32:01]process_action close_receipt [13:32:01]cmd_close_receipt [13:32:01]MH_GetDate [13:32:01]Write to MH i2c: F0 00 00 40 01 30 [13:32:01]Write i2c OK [13:32:01]MH_I2C_Read... [13:32:01]Read from MH i2c: F0 [13:32:01]MH_I2C_Read... [13:32:01]Read from MH i2c: F0 09 00 [13:32:01]MH_I2C_Read... [13:32:01]Read from MH i2c: F0 09 00 40 01 00 52 15 25 66 F4 E9 65 64 D1 [13:32:01]GetLastDocTimeStamp 1713706056 [13:32:01]current date 1713706322 [13:32:01]FM_GetShiftState [13:32:01]SAM_PROTO_GetShiftState [13:32:01]wFMCommunicate request_size=4 [13:32:01]MH_SAM_APDU [13:32:01]CAPDU: 80 13 01 00 [13:32:01]Write to MH i2c: E2 08 00 41 01 80 13 01 00 00 00 00 00 BF [13:32:01]Write i2c OK [13:32:01]MH_I2C_Read... [13:32:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:01]Read from MH i2c: E2 [13:32:01]MH_I2C_Read... [13:32:01]Read from MH i2c: E2 0E 00 [13:32:01]MH_I2C_Read... [13:32:01]Read from MH i2c: E2 0E 00 41 01 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 06 [13:32:01]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [13:32:01]wFMCommunicate OK [13:32:01]SAM_PROTO_GetShiftState done [13:32:01]FM_GetShiftState done [13:32:01]opened in 1713658965 [13:32:01]opened+sec_in_day 1713745365 [13:32:01]quantity*price = 100013 [13:32:01]sum+1 = 100015 [13:32:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 94 21.04.2024 13:32 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 31.55 сом ФМ: 0000000000874652 ФД: 76838 ФПД: 167902518600614 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T133202&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76838&fm=167902518600614&tin=02508201610067®Number=0000000000091573&sum=100000 [13:32:02]StoreToDocumentArchive [13:32:02]shift 372 fd 76838 [13:32:02]save to /storage/0372/doc_00076838 [13:32:02]save last doc name /storage/0372/doc_00076838 to /storage/kkm_last_doc_name [13:32:02]save OK [13:32:02]Clear old archive folders... [13:32:02]ProcessDocumentItem done err = 0, tmpTLVsize=250 [13:32:02]tlvbuf is 0109EB40 [13:32:02]SAM_PROTO_ClearQueue [13:32:02]wFMCommunicate request_size=4 [13:32:02]MH_SAM_APDU [13:32:02]CAPDU: 80 09 00 00 [13:32:02]Write to MH i2c: E2 08 00 4E 01 80 09 00 00 00 00 00 00 C1 [13:32:02]Write i2c OK [13:32:02]MH_I2C_Read... [13:32:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:32:02]Read from MH i2c: E2 [13:32:02]MH_I2C_Read... [13:32:02]Read from MH i2c: E2 03 00 [13:32:02]MH_I2C_Read... [13:32:02]Read from MH i2c: E2 03 00 4E 01 00 90 00 C3 [13:32:02]RAPDU: 90 00 [13:32:02]wFMCommunicate OK [13:32:02]SAM_PROTO_ClearQueue done [13:32:02]KKMCreateOFDPacket [13:32:02]OFDProtocolAddRootSTLVToBuf [13:32:02]FM_MakeSignedData [13:32:02]FM_MakeSignedData [13:32:02]SAM_PROTO_SignData [13:32:02]wFMCommunicate request_size=4 [13:32:02]MH_SAM_APDU [13:32:02]CAPDU: 80 0D 01 02 [13:32:02]Write to MH i2c: E2 08 00 4F 01 80 0D 01 02 00 00 00 00 C9 [13:32:02]Write i2c OK [13:32:02]MH_I2C_Read... [13:32:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:32:02]Read from MH i2c: E2 [13:32:02]MH_I2C_Read... [13:32:02]Read from MH i2c: E2 03 00 [13:32:02]MH_I2C_Read... [13:32:02]Read from MH i2c: E2 03 00 4F 01 00 90 00 C4 [13:32:02]RAPDU: 90 00 [13:32:02]wFMCommunicate OK [13:32:02]wFMCommunicate request_size=255 [13:32:02]MH_SAM_APDU [13:32:02]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 52 15 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 26 2C 01 00 35 04 06 00 98 B4 [13:32:02]Write to MH i2c: E2 02 01 50 01 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 52 15 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 26 2C 01 00 35 04 06 00 98 B4 00 00 A6 [13:32:02]Write i2c OK [13:32:02]MH_I2C_Read... [13:32:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:03]Read from MH i2c: E2 [13:32:03]MH_I2C_Read... [13:32:03]Read from MH i2c: E2 03 00 [13:32:03]MH_I2C_Read... [13:32:03]Read from MH i2c: E2 03 00 50 01 00 90 00 C5 [13:32:03]RAPDU: 90 00 [13:32:03]wFMCommunicate OK [13:32:03]wFMCommunicate request_size=9 [13:32:03]MH_SAM_APDU [13:32:03]CAPDU: 80 0D 02 02 04 D9 FA 63 A6 [13:32:03]Write to MH i2c: E2 0C 00 51 01 80 0D 02 02 04 00 D9 FA 63 A6 00 00 B0 [13:32:03]Write i2c OK [13:32:03]MH_I2C_Read... [13:32:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:03]Read from MH i2c: E2 [13:32:03]MH_I2C_Read... [13:32:03]Read from MH i2c: E2 03 00 [13:32:03]MH_I2C_Read... [13:32:03]Read from MH i2c: E2 03 00 51 01 00 90 00 C6 [13:32:03]RAPDU: 90 00 [13:32:03]wFMCommunicate OK [13:32:03]wFMCommunicate request_size=4 [13:32:03]MH_SAM_APDU [13:32:03]CAPDU: 80 0D 03 02 [13:32:03]Write to MH i2c: E2 08 00 52 01 80 0D 03 02 00 00 00 00 CE [13:32:03]Write i2c OK [13:32:03]MH_I2C_Read... [13:32:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:32:03]Read from MH i2c: E2 [13:32:03]MH_I2C_Read... [13:32:03]Read from MH i2c: E2 0B 00 [13:32:03]MH_I2C_Read... [13:32:03]Read from MH i2c: E2 0B 00 52 01 00 0B A3 F4 1A 1A E0 C9 84 90 00 D2 [13:32:03]RAPDU: 0B A3 F4 1A 1A E0 C9 84 90 00 [13:32:03]wFMCommunicate OK [13:32:03]SAM_PROTO_SignData done [13:32:03]FM_MakeSignedData done [13:32:03]CreateOFDProtocolMessage [13:32:03]wFMCommunicate request_size=4 [13:32:03]MH_SAM_APDU [13:32:03]CAPDU: 80 11 00 00 [13:32:03]Write to MH i2c: E2 08 00 53 01 80 11 00 00 00 00 00 00 CE [13:32:03]Write i2c OK [13:32:03]MH_I2C_Read... [13:32:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:03]Read from MH i2c: E2 [13:32:03]MH_I2C_Read... [13:32:03]Read from MH i2c: E2 17 00 [13:32:03]MH_I2C_Read... [13:32:03]Read from MH i2c: E2 17 00 53 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 21 [13:32:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:32:03]wFMCommunicate OK [13:32:03]CreateOFDProtocolMessage done [13:32:03]OFDSenderStorePacket 76838 [13:32:03]StoreOFDPacket docnum=76838 [13:32:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 97 A5 06 01 CC DA 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 52 15 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 26 2C 01 00 35 04 06 00 98 B4 D9 FA 63 A6 0B A3 F4 1A 1A E0 C9 84 [13:32:03]CheckFolder [13:32:03]dirname=/storage/ofd_packets [13:32:03]CheckFolder done [13:32:03]ProducePacketName [13:32:03]name=ofd_packets/00076838 [13:32:03]NVStorageSaveData ofd_packets/00076838 [13:32:03]File name is /storage/ofd_packets/00076838 [13:32:03]Write 300 bytes [13:32:03]NVStorageSaveData done [13:32:03]OFDSenderStorePacket done [13:32:03]KKMCreateOFDPacket done [13:32:03]NVStorageSaveData kkm_last_timestamp [13:32:03]File name is /storage/kkm_last_timestamp [13:32:03]Write 4 bytes [13:32:03]NVStorageSaveData done [13:32:03]ExternCall_PrintAddStr [13:32:03]wPrintStart [13:32:03]Write to MH i2c: 01 00 00 54 01 55 [13:32:03]Write i2c OK [13:32:03]MH_I2C_Read... [13:32:03]Read from MH i2c: 01 [13:32:03]MH_I2C_Read... [13:32:03]Read from MH i2c: 01 07 00 [13:32:03]MH_I2C_Read... [13:32:03]Read from MH i2c: 01 07 00 54 01 00 00 00 00 00 FF 0F 6A [13:32:03]RasterBufferAndPrint [13:32:03]line Счет N : (1)191376 [13:32:03]line ИНН: 02508201610067 [13:32:03]line Контрольно-Кассовый Чек [13:32:03]line ПРОДАЖА [13:32:03]line ТРК (МРК, ГНК) : 71 [13:32:03]line Товар: 2711190000 [13:32:03]line ГАЗ-К-5 [13:32:03]line 31.550 * 31.70 [13:32:03]line = 1000.14 [13:32:03]line НДС 12% НСП 1% [13:32:03]line > о реализуемом товаре [13:32:03]line ОКРУГЛЕНИЕ: -0.14 [13:32:03]line ИТОГО: 1000.00 [13:32:03]line Внесено: 1000.00 [13:32:03]line СДАЧА: 0.00 [13:32:03]line НСП 1% : 8.85 [13:32:03]line НДС 12% : 106.21 [13:32:03]line Наличными: 1000.00 [13:32:03]line Безнал.: 0.00 [13:32:03]line Место: АЗС № 106 "Партнер Нефть" [13:32:03]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [13:32:03]line СНО: Общий режим [13:32:03]line Чек 94 21.04.2024 13:32 [13:32:03]line Смена: 372 ФФД: 1.0 [13:32:03]line ЗНМ: 0300000141 [13:32:03]line РНМ: 0000000000091573 [13:32:03]line Версия ККМ: 001 [13:32:03]line [13:32:03]line Дисконтная программа [13:32:03]line СУГ [13:32:03]line номер 106 [13:32:03]line сэкономлено 31.55 сом [13:32:03]line ФМ: 0000000000874652 [13:32:03]line ФД: 76838 [13:32:03]line ФПД: 167902518600614 [13:32:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T133202&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76838&fm=167902518600614&tin=02508201610067®Number=0000000000091573&sum=100000 [13:32:03]OFD Sender: Processing packet 76838 [packets to send 129, broken 128] [13:32:03]ProducePacketName [13:32:03]name=ofd_packets/00076838 [13:32:03]OFD Sender: To server: pG, [13:32:03]CommunicateWithHost lk.salyk.kg:30040 [13:32:03]ConnectInit lk.salyk.kg [13:32:03]written 0, free lines is 4095 [13:32:03]Connected sock=10 [13:32:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 97 A5 06 01 CC DA 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 52 15 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 26 2C 01 00 35 04 06 00 98 B4 D9 FA 63 A6 0B A3 F4 1A 1A E0 C9 84 [13:32:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 3D 6B 47 00 19 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 26 2C 01 00 F4 03 04 00 D7 BC 24 66 B6 04 01 00 00 FE F8 4F AC 34 34 54 B5 [13:32:04]CommunicateWithHost err = 0 [13:32:04]CheckOFDResponse [13:32:04]1017 (14) - 77093643461234 [13:32:04]1041 (16) - 0000000000874652 [13:32:04]1040 (4) - 76838 [13:32:04]1012 (4) - 21.04.2024 07:14 [13:32:04]1206 (1) - 0 [13:32:04]OFD Sender: Remove packet 76838 [13:32:04]ProducePacketName [13:32:04]name=ofd_packets/00076838 [13:32:04]NVStorageDeleteData [13:32:04]Write to MH i2c: 01 00 00 83 01 84 [13:32:04]Write i2c OK [13:32:04]MH_I2C_Read... [13:32:04]Read from MH i2c: 01 [13:32:04]MH_I2C_Read... [13:32:04]Read from MH i2c: 01 07 00 [13:32:04]MH_I2C_Read... [13:32:04]Read from MH i2c: 01 07 00 83 01 00 00 00 00 00 8A 0C 21 [13:32:04]RasterBufferAndPrint [13:32:04]line [13:32:04]line [13:32:04]line [13:32:04]line [13:32:04]line [13:32:04]written 0, free lines is 3217 [13:32:04]MH_Cut [13:32:04]Write to MH i2c: D1 01 00 8A 01 01 5D [13:32:04]Write i2c OK [13:32:04]MH_I2C_Read... [13:32:04]Read from MH i2c: D1 [13:32:04]MH_I2C_Read... [13:32:04]Read from MH i2c: D1 01 00 [13:32:04]MH_I2C_Read... [13:32:04]Read from MH i2c: D1 01 00 8A 01 00 5C [13:32:04]Write to MH i2c: 01 00 00 8B 01 8C [13:32:04]Write i2c OK [13:32:04]MH_I2C_Read... [13:32:04]OFD Sender: No OFD packet to send [13:32:04]*** Cut start [13:32:04]*** Partial cut [13:32:04]*** CUTSNS_PIN = 1 [13:32:05]*** CUTSNS_PIN = 0 [13:32:05]*** Brake cut motor [13:32:05]Read from MH i2c: 01 [13:32:05]MH_I2C_Read... [13:32:05]*** Stop cut motor [13:32:05]*** Cut end [13:32:05]Read from MH i2c: 01 07 00 [13:32:05]MH_I2C_Read... [13:32:05]Read from MH i2c: 01 07 00 8B 01 00 00 00 00 00 FF 0F A1 [13:32:05]process_action close_receipt done [13:32:05]requested_data is exist [13:32:05]produce_requested_data [13:32:05]requested_item fm.sn is exist - process it [13:32:05]wFMCommunicate request_size=4 [13:32:05]MH_SAM_APDU [13:32:05]CAPDU: 80 11 00 00 [13:32:05]Write to MH i2c: E2 08 00 8C 01 80 11 00 00 00 00 00 00 07 [13:32:05]Write i2c OK [13:32:05]MH_I2C_Read... [13:32:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:05]Read from MH i2c: E2 [13:32:05]MH_I2C_Read... [13:32:05]Read from MH i2c: E2 17 00 [13:32:05]MH_I2C_Read... [13:32:05]Read from MH i2c: E2 17 00 8C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 5A [13:32:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:32:05]wFMCommunicate OK [13:32:05]requested_item fd.num is exist - process it [13:32:05]SAM_PROTO_GetFieldsCounters [13:32:05]wFMCommunicate request_size=4 [13:32:05]MH_SAM_APDU [13:32:05]CAPDU: 80 13 00 00 [13:32:05]Write to MH i2c: E2 08 00 8D 01 80 13 00 00 00 00 00 00 0A [13:32:05]Write i2c OK [13:32:05]MH_I2C_Read... [13:32:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:32:05]Read from MH i2c: E2 [13:32:05]MH_I2C_Read... [13:32:05]Read from MH i2c: E2 62 00 [13:32:05]MH_I2C_Read... [13:32:05]Read from MH i2c: E2 62 00 8D 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 26 2C 01 00 0E 04 04 00 74 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 0D [13:32:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 26 2C 01 00 0E 04 04 00 74 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 [13:32:05]wFMCommunicate OK [13:32:05]SAM_PROTO_GetFieldsCounters done [13:32:05]requested_item shift.num is exist - process it [13:32:05]requested_item shift.opened is exist - process it [13:32:05]req_shift_opened [13:32:05]FM_GetShiftState [13:32:05]SAM_PROTO_GetShiftState [13:32:05]wFMCommunicate request_size=4 [13:32:05]MH_SAM_APDU [13:32:05]CAPDU: 80 13 01 00 [13:32:05]Write to MH i2c: E2 08 00 8E 01 80 13 01 00 00 00 00 00 0C [13:32:05]Write i2c OK [13:32:05]MH_I2C_Read... [13:32:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:05]Read from MH i2c: E2 [13:32:05]MH_I2C_Read... [13:32:05]Read from MH i2c: E2 0E 00 [13:32:05]MH_I2C_Read... [13:32:05]Read from MH i2c: E2 0E 00 8E 01 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 53 [13:32:05]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [13:32:05]wFMCommunicate OK [13:32:05]SAM_PROTO_GetShiftState done [13:32:05]FM_GetShiftState done [13:32:05]req_shift_opened done [13:32:05]requested_item shift.open_date is exist - process it [13:32:05]req_shift_open_date [13:32:05]req_shift_open_date done [13:32:05]produce_requested_data done [13:32:05]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76838,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [13:32:05]process_action_free close_receipt [13:32:05]json_value_free [13:32:05]json_value_free done [13:32:05]process_json_proto returns [13:32:05]Send response to host [13:32:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76838,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [13:32:05]free response buf [13:32:05]execute_script done [13:32:05]execute_script returns [13:32:05]free content buf [13:32:05]Sock 7.Close socket [13:32:05]Sock 7.Thread stoped [13:32:09]OFD Sender: No OFD packet to send [13:32:14]OFD Sender: No OFD packet to send [13:32:19]OFD Sender: No OFD packet to send [13:32:24]OFD Sender: No OFD packet to send [13:32:29]OFD Sender: No OFD packet to send [13:32:34]OFD Sender: No OFD packet to send [13:32:39]OFD Sender: No OFD packet to send [13:32:44]OFD Sender: No OFD packet to send [13:32:49]OFD Sender: No OFD packet to send [13:32:54]OFD Sender: No OFD packet to send [13:32:59]OFD Sender: No OFD packet to send [13:33:04]OFD Sender: No OFD packet to send [13:33:09]OFD Sender: No OFD packet to send [13:33:14]OFD Sender: No OFD packet to send [13:33:18]accept exits with 9 [13:33:18]New connection [13:33:18]New thread 3066801508 created [13:33:18]Thread 3066658148 joined [13:33:18]Waiting for new connection... [13:33:18] Sock 9.Parse request [13:33:18]Sock 9.Check first char [13:33:18]Sock 9.First char is OK [13:33:18]request: POST /json_proto HTTP/1.0 [13:33:18]Method: POST [13:33:18]URL: /json_proto [13:33:18]Method is POST - this is cgi request [13:33:18]url: /json_proto [13:33:18]query_string will be loaded in cgi processing [13:33:18]execute_cgi json_proto POST (null) [13:33:18]execute_cgi path=json_proto method=POST [13:33:18]POST find Content-Length [13:33:18]Host: 172.17.62.5:8080 [13:33:18]Content-Length: 808 [13:33:18]Content-Type: application/json [13:33:18] [13:33:18]POST finish read [13:33:18]Found Content-Length = 808 [13:33:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:18]execute_script... [13:33: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)191378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:18]POST & json_proto [13:33:18]process_json_proto [13:33:18]json parsed OK: [13:33:18]protocol is kg_v1.0 [13:33:18]action value=close_receipt [13:33:18]process_action close_receipt [13:33:18]cmd_close_receipt [13:33:18]MH_GetDate [13:33:18]Write to MH i2c: F0 00 00 8F 01 7F [13:33:18]Write i2c OK [13:33:18]MH_I2C_Read... [13:33:18]Read from MH i2c: F0 [13:33:18]MH_I2C_Read... [13:33:18]Read from MH i2c: F0 09 00 [13:33:18]MH_I2C_Read... [13:33:18]Read from MH i2c: F0 09 00 8F 01 00 9F 15 25 66 F4 E9 65 64 6D [13:33:18]GetLastDocTimeStamp 1713706322 [13:33:18]current date 1713706399 [13:33:18]FM_GetShiftState [13:33:18]SAM_PROTO_GetShiftState [13:33:18]wFMCommunicate request_size=4 [13:33:18]MH_SAM_APDU [13:33:18]CAPDU: 80 13 01 00 [13:33:18]Write to MH i2c: E2 08 00 90 01 80 13 01 00 00 00 00 00 0E [13:33:18]Write i2c OK [13:33:18]MH_I2C_Read... [13:33:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:18]Read from MH i2c: E2 [13:33:18]MH_I2C_Read... [13:33:18]Read from MH i2c: E2 0E 00 [13:33:18]MH_I2C_Read... [13:33:18]Read from MH i2c: E2 0E 00 90 01 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 55 [13:33:18]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [13:33:18]wFMCommunicate OK [13:33:18]SAM_PROTO_GetShiftState done [13:33:18]FM_GetShiftState done [13:33:18]opened in 1713658965 [13:33:18]opened+sec_in_day 1713745365 [13:33:18]quantity*price = 200037 [13:33:18]sum+1 = 200039 [13:33:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.38 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.38 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 95 21.04.2024 13:33 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 76839 ФПД: 263503683534817 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T133319&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76839&fm=263503683534817&tin=02508201610067®Number=0000000000091573&sum=200038 [13:33:19]StoreToDocumentArchive [13:33:19]shift 372 fd 76839 [13:33:19]save to /storage/0372/doc_00076839 [13:33:19]save last doc name /storage/0372/doc_00076839 to /storage/kkm_last_doc_name [13:33:19]save OK [13:33:19]Clear old archive folders... [13:33:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:33:19]tlvbuf is 010B4640 [13:33:19]SAM_PROTO_ClearQueue [13:33:19]wFMCommunicate request_size=4 [13:33:19]MH_SAM_APDU [13:33:19]CAPDU: 80 09 00 00 [13:33:19]Write to MH i2c: E2 08 00 9D 01 80 09 00 00 00 00 00 00 10 [13:33:19]Write i2c OK [13:33:19]MH_I2C_Read... [13:33:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:33:19]Read from MH i2c: E2 [13:33:19]MH_I2C_Read... [13:33:19]Read from MH i2c: E2 03 00 [13:33:19]MH_I2C_Read... [13:33:19]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [13:33:19]RAPDU: 90 00 [13:33:19]wFMCommunicate OK [13:33:19]SAM_PROTO_ClearQueue done [13:33:19]KKMCreateOFDPacket [13:33:19]OFDProtocolAddRootSTLVToBuf [13:33:19]FM_MakeSignedData [13:33:19]FM_MakeSignedData [13:33:19]SAM_PROTO_SignData [13:33:19]wFMCommunicate request_size=4 [13:33:19]MH_SAM_APDU [13:33:19]CAPDU: 80 0D 01 02 [13:33:19]Write to MH i2c: E2 08 00 9E 01 80 0D 01 02 00 00 00 00 18 [13:33:19]Write i2c OK [13:33:19]MH_I2C_Read... [13:33:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:33:19]Read from MH i2c: E2 [13:33:19]MH_I2C_Read... [13:33:19]Read from MH i2c: E2 03 00 [13:33:19]MH_I2C_Read... [13:33:19]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [13:33:19]RAPDU: 90 00 [13:33:19]wFMCommunicate OK [13:33:19]wFMCommunicate request_size=255 [13:33:19]MH_SAM_APDU [13:33: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 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 66 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 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 9F 15 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 27 2C 01 00 35 04 06 00 EF [13:33:19]Write to MH i2c: E2 02 01 9F 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 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 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 66 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 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 9F 15 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 27 2C 01 00 35 04 06 00 EF 00 00 4C [13:33:19]Write i2c OK [13:33:19]MH_I2C_Read... [13:33:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:20]Read from MH i2c: E2 [13:33:20]MH_I2C_Read... [13:33:20]Read from MH i2c: E2 03 00 [13:33:20]MH_I2C_Read... [13:33:20]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [13:33:20]RAPDU: 90 00 [13:33:20]wFMCommunicate OK [13:33:20]wFMCommunicate request_size=10 [13:33:20]MH_SAM_APDU [13:33:20]CAPDU: 80 0D 02 02 05 A7 BB 74 3F E1 [13:33:20]Write to MH i2c: E2 0D 00 A0 01 80 0D 02 02 05 00 A7 BB 74 3F E1 00 00 1B [13:33:20]Write i2c OK [13:33:20]MH_I2C_Read... [13:33:20]Read from MH i2c: E2 [13:33:20]MH_I2C_Read... [13:33:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:20]Read from MH i2c: E2 03 00 [13:33:20]MH_I2C_Read... [13:33:20]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [13:33:20]RAPDU: 90 00 [13:33:20]wFMCommunicate OK [13:33:20]wFMCommunicate request_size=4 [13:33:20]MH_SAM_APDU [13:33:20]CAPDU: 80 0D 03 02 [13:33:20]Write to MH i2c: E2 08 00 A1 01 80 0D 03 02 00 00 00 00 1D [13:33:20]Write i2c OK [13:33:20]MH_I2C_Read... [13:33:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:33:20]Read from MH i2c: E2 [13:33:20]MH_I2C_Read... [13:33:20]Read from MH i2c: E2 0B 00 [13:33:20]MH_I2C_Read... [13:33:20]Read from MH i2c: E2 0B 00 A1 01 00 0A 7B 07 48 33 92 31 23 90 00 0B [13:33:20]RAPDU: 0A 7B 07 48 33 92 31 23 90 00 [13:33:20]wFMCommunicate OK [13:33:20]SAM_PROTO_SignData done [13:33:20]FM_MakeSignedData done [13:33:20]CreateOFDProtocolMessage [13:33:20]wFMCommunicate request_size=4 [13:33:20]MH_SAM_APDU [13:33:20]CAPDU: 80 11 00 00 [13:33:20]Write to MH i2c: E2 08 00 A2 01 80 11 00 00 00 00 00 00 1D [13:33:20]Write i2c OK [13:33:20]MH_I2C_Read... [13:33:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:20]Read from MH i2c: E2 [13:33:20]MH_I2C_Read... [13:33:20]Read from MH i2c: E2 17 00 [13:33:20]MH_I2C_Read... [13:33:20]Read from MH i2c: E2 17 00 A2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 70 [13:33:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:33:20]wFMCommunicate OK [13:33:20]CreateOFDProtocolMessage done [13:33:20]OFDSenderStorePacket 76839 [13:33:20]StoreOFDPacket docnum=76839 [13:33:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 7D 7D 07 01 CA 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 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 66 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 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 9F 15 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 27 2C 01 00 35 04 06 00 EF A7 BB 74 3F E1 0A 7B 07 48 33 92 31 23 [13:33:20]CheckFolder [13:33:20]dirname=/storage/ofd_packets [13:33:20]CheckFolder done [13:33:20]ProducePacketName [13:33:20]name=ofd_packets/00076839 [13:33:20]NVStorageSaveData ofd_packets/00076839 [13:33:20]File name is /storage/ofd_packets/00076839 [13:33:20]Write 301 bytes [13:33:20]NVStorageSaveData done [13:33:20]OFDSenderStorePacket done [13:33:20]KKMCreateOFDPacket done [13:33:20]NVStorageSaveData kkm_last_timestamp [13:33:20]File name is /storage/kkm_last_timestamp [13:33:20]Write 4 bytes [13:33:20]NVStorageSaveData done [13:33:20]ExternCall_PrintAddStr [13:33:20]wPrintStart [13:33:20]Write to MH i2c: 01 00 00 A3 01 A4 [13:33:20]Write i2c OK [13:33:20]MH_I2C_Read... [13:33:20]Read from MH i2c: 01 [13:33:20]MH_I2C_Read... [13:33:20]Read from MH i2c: 01 07 00 [13:33:20]MH_I2C_Read... [13:33:20]Read from MH i2c: 01 07 00 A3 01 00 00 00 00 00 FF 0F B9 [13:33:20]RasterBufferAndPrint [13:33:20]line Счет N : (1)191378 [13:33:20]line ИНН: 02508201610067 [13:33:20]line Контрольно-Кассовый Чек [13:33:20]line ПРОДАЖА [13:33:20]line ТРК (МРК, ГНК) : 11 [13:33:20]line Товар: 2710124500 [13:33:20]line Аи-95-К-5 [13:33:20]line 27.440 * 72.90 [13:33:20]line = 2000.38 [13:33:20]line НДС 12% НСП 1% [13:33:20]line > о реализуемом товаре [13:33:20]line ИТОГО: 2000.38 [13:33:20]line НСП 1% : 17.70 [13:33:20]line НДС 12% : 212.43 [13:33:20]line Наличными: 0.00 [13:33:20]line Безнал.: 2000.38 [13:33:20]line Место: АЗС № 106 "Партнер Нефть" [13:33:20]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [13:33:20]line СНО: Общий режим [13:33:20]line Чек 95 21.04.2024 13:33 [13:33:20]line Смена: 372 ФФД: 1.0 [13:33:20]line ЗНМ: 0300000141 [13:33:20]line РНМ: 0000000000091573 [13:33:20]line Версия ККМ: 001 [13:33:20]line Платежная система: О! деньги [13:33:20]line ФМ: 0000000000874652 [13:33:20]line ФД: 76839 [13:33:20]line ФПД: 263503683534817 [13:33:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T133319&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76839&fm=263503683534817&tin=02508201610067®Number=0000000000091573&sum=200038 [13:33:20]OFD Sender: Processing packet 76839 [packets to send 129, broken 128] [13:33:20]ProducePacketName [13:33:20]name=ofd_packets/00076839 [13:33:20]OFD Sender: To server: pG, [13:33:20]CommunicateWithHost lk.salyk.kg:30040 [13:33:20]ConnectInit lk.salyk.kg [13:33:20]written 0, free lines is 4095 [13:33:20]Connected sock=11 [13:33:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 7D 7D 07 01 CA 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 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 66 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 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 9F 15 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 27 2C 01 00 35 04 06 00 EF A7 BB 74 3F E1 0A 7B 07 48 33 92 31 23 [13:33:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 22 F9 47 00 5B 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 34 36 35 32 10 04 04 00 27 2C 01 00 F4 03 04 00 24 BD 24 66 B6 04 01 00 00 E8 7E BC 9F 3C CC FA E9 [13:33:20]CommunicateWithHost err = 0 [13:33:20]CheckOFDResponse [13:33:20]1017 (14) - 77093643461234 [13:33:20]1041 (16) - 0000000000874652 [13:33:20]1040 (4) - 76839 [13:33:20]1012 (4) - 21.04.2024 07:15 [13:33:20]1206 (1) - 0 [13:33:20]OFD Sender: Remove packet 76839 [13:33:20]ProducePacketName [13:33:20]name=ofd_packets/00076839 [13:33:20]NVStorageDeleteData [13:33:20]Write to MH i2c: 01 00 00 CC 01 CD [13:33:20]Write i2c OK [13:33:20]MH_I2C_Read... [13:33:20]Read from MH i2c: 01 [13:33:20]MH_I2C_Read... [13:33:20]Read from MH i2c: 01 07 00 [13:33:20]MH_I2C_Read... [13:33:20]Read from MH i2c: 01 07 00 CC 01 00 00 00 00 00 0C 0D ED [13:33:20]RasterBufferAndPrint [13:33:20]line [13:33:20]line [13:33:20]line [13:33:20]line [13:33:20]line [13:33:20]written 0, free lines is 3346 [13:33:20]MH_Cut [13:33:20]Write to MH i2c: D1 01 00 D3 01 01 A6 [13:33:20]Write i2c OK [13:33:20]MH_I2C_Read... [13:33:20]Read from MH i2c: D1 [13:33:20]MH_I2C_Read... [13:33:20]Read from MH i2c: D1 01 00 [13:33:20]MH_I2C_Read... [13:33:20]Read from MH i2c: D1 01 00 D3 01 00 A5 [13:33:20]Write to MH i2c: 01 00 00 D4 01 D5 [13:33:20]Write i2c OK [13:33:20]MH_I2C_Read... [13:33:21]OFD Sender: No OFD packet to send [13:33:21]*** Cut start [13:33:21]*** Partial cut [13:33:21]*** CUTSNS_PIN = 1 [13:33:21]*** CUTSNS_PIN = 0 [13:33:21]*** Brake cut motor [13:33:22]Read from MH i2c: 01 [13:33:22]MH_I2C_Read... [13:33:22]*** Stop cut motor [13:33:22]*** Cut end [13:33:22]Read from MH i2c: 01 07 00 [13:33:22]MH_I2C_Read... [13:33:22]Read from MH i2c: 01 07 00 D4 01 00 00 00 00 00 FF 0F EA [13:33:22]process_action close_receipt done [13:33:22]requested_data is exist [13:33:22]produce_requested_data [13:33:22]requested_item fm.sn is exist - process it [13:33:22]wFMCommunicate request_size=4 [13:33:22]MH_SAM_APDU [13:33:22]CAPDU: 80 11 00 00 [13:33:22]Write to MH i2c: E2 08 00 D5 01 80 11 00 00 00 00 00 00 50 [13:33:22]Write i2c OK [13:33:22]MH_I2C_Read... [13:33:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:22]Read from MH i2c: E2 [13:33:22]MH_I2C_Read... [13:33:22]Read from MH i2c: E2 17 00 [13:33:22]MH_I2C_Read... [13:33:22]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 34 36 35 32 90 00 A3 [13:33:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:33:22]wFMCommunicate OK [13:33:22]requested_item fd.num is exist - process it [13:33:22]SAM_PROTO_GetFieldsCounters [13:33:22]wFMCommunicate request_size=4 [13:33:22]MH_SAM_APDU [13:33:22]CAPDU: 80 13 00 00 [13:33:22]Write to MH i2c: E2 08 00 D6 01 80 13 00 00 00 00 00 00 53 [13:33:22]Write i2c OK [13:33:22]MH_I2C_Read... [13:33:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:33:22]Read from MH i2c: E2 [13:33:22]MH_I2C_Read... [13:33:22]Read from MH i2c: E2 62 00 [13:33:22]MH_I2C_Read... [13:33:22]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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 27 2C 01 00 0E 04 04 00 74 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 5A [13:33: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 27 2C 01 00 0E 04 04 00 74 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 [13:33:22]wFMCommunicate OK [13:33:22]SAM_PROTO_GetFieldsCounters done [13:33:22]requested_item shift.num is exist - process it [13:33:22]requested_item shift.opened is exist - process it [13:33:22]req_shift_opened [13:33:22]FM_GetShiftState [13:33:22]SAM_PROTO_GetShiftState [13:33:22]wFMCommunicate request_size=4 [13:33:22]MH_SAM_APDU [13:33:22]CAPDU: 80 13 01 00 [13:33:22]Write to MH i2c: E2 08 00 D7 01 80 13 01 00 00 00 00 00 55 [13:33:22]Write i2c OK [13:33:22]MH_I2C_Read... [13:33:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:22]Read from MH i2c: E2 [13:33:22]MH_I2C_Read... [13:33:22]Read from MH i2c: E2 0E 00 [13:33:22]MH_I2C_Read... [13:33:22]Read from MH i2c: E2 0E 00 D7 01 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 9C [13:33:22]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [13:33:22]wFMCommunicate OK [13:33:22]SAM_PROTO_GetShiftState done [13:33:22]FM_GetShiftState done [13:33:22]req_shift_opened done [13:33:22]requested_item shift.open_date is exist - process it [13:33:22]req_shift_open_date [13:33:22]req_shift_open_date done [13:33:22]produce_requested_data done [13:33:22]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76839,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [13:33:22]process_action_free close_receipt [13:33:22]json_value_free [13:33:22]json_value_free done [13:33:22]process_json_proto returns [13:33:22]Send response to host [13:33:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76839,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [13:33:22]free response buf [13:33:22]execute_script done [13:33:22]execute_script returns [13:33:22]free content buf [13:33:22]Sock 9.Close socket [13:33:22]Sock 9.Thread stoped [13:33:26]OFD Sender: No OFD packet to send [13:33:31]OFD Sender: No OFD packet to send [13:33:36]OFD Sender: No OFD packet to send [13:33:41]OFD Sender: No OFD packet to send [13:33:46]OFD Sender: No OFD packet to send [13:33:51]OFD Sender: No OFD packet to send [13:33:56]OFD Sender: No OFD packet to send [13:34:01]OFD Sender: No OFD packet to send [13:34:06]OFD Sender: No OFD packet to send [13:34:11]OFD Sender: No OFD packet to send [13:34:16]OFD Sender: No OFD packet to send [13:34:19]accept exits with 7 [13:34:19]New connection [13:34:19]New thread 3066658148 created [13:34:19]Thread 3066801508 joined [13:34:19]Waiting for new connection... [13:34:19] Sock 7.Parse request [13:34:19]Sock 7.Check first char [13:34:19]Sock 7.First char is OK [13:34:19]request: POST /json_proto HTTP/1.0 [13:34:19]Method: POST [13:34:19]URL: /json_proto [13:34:19]Method is POST - this is cgi request [13:34:19]url: /json_proto [13:34:19]query_string will be loaded in cgi processing [13:34:19]execute_cgi json_proto POST (null) [13:34:19]execute_cgi path=json_proto method=POST [13:34:19]POST find Content-Length [13:34:19]Host: 172.17.62.5:8080 [13:34:19]Content-Length: 677 [13:34:19]Content-Type: application/json [13:34:19] [13:34:19]POST finish read [13:34:19]Found Content-Length = 677 [13:34:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:34:19]execute_script... [13:34: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)191379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:34:19]POST & json_proto [13:34:19]process_json_proto [13:34:19]json parsed OK: [13:34:19]protocol is kg_v1.0 [13:34:19]action value=close_receipt [13:34:19]process_action close_receipt [13:34:19]cmd_close_receipt [13:34:19]MH_GetDate [13:34:19]Write to MH i2c: F0 00 00 D8 01 C8 [13:34:19]Write i2c OK [13:34:19]MH_I2C_Read... [13:34:19]Read from MH i2c: F0 [13:34:19]MH_I2C_Read... [13:34:19]Read from MH i2c: F0 09 00 [13:34:19]MH_I2C_Read... [13:34:19]Read from MH i2c: F0 09 00 D8 01 00 DB 15 25 66 F4 E9 65 64 F2 [13:34:19]GetLastDocTimeStamp 1713706399 [13:34:19]current date 1713706459 [13:34:19]FM_GetShiftState [13:34:19]SAM_PROTO_GetShiftState [13:34:19]wFMCommunicate request_size=4 [13:34:19]MH_SAM_APDU [13:34:19]CAPDU: 80 13 01 00 [13:34:19]Write to MH i2c: E2 08 00 D9 01 80 13 01 00 00 00 00 00 57 [13:34:19]Write i2c OK [13:34:19]MH_I2C_Read... [13:34:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:19]Read from MH i2c: E2 [13:34:19]MH_I2C_Read... [13:34:19]Read from MH i2c: E2 0E 00 [13:34:19]MH_I2C_Read... [13:34:19]Read from MH i2c: E2 0E 00 D9 01 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 9E [13:34:19]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [13:34:19]wFMCommunicate OK [13:34:19]SAM_PROTO_GetShiftState done [13:34:19]FM_GetShiftState done [13:34:19]opened in 1713658965 [13:34:19]opened+sec_in_day 1713745365 [13:34:19]quantity*price = 50038 [13:34:19]sum+1 = 50040 [13:34:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 96 21.04.2024 13:34 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76840 ФПД: 256587638359643 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T133419&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76840&fm=256587638359643&tin=02508201610067®Number=0000000000091573&sum=50000 [13:34:20]StoreToDocumentArchive [13:34:20]shift 372 fd 76840 [13:34:20]save to /storage/0372/doc_00076840 [13:34:20]save last doc name /storage/0372/doc_00076840 to /storage/kkm_last_doc_name [13:34:20]save OK [13:34:20]Clear old archive folders... [13:34:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:34:20]tlvbuf is 0109FF40 [13:34:20]SAM_PROTO_ClearQueue [13:34:20]wFMCommunicate request_size=4 [13:34:20]MH_SAM_APDU [13:34:20]CAPDU: 80 09 00 00 [13:34:20]Write to MH i2c: E2 08 00 E6 01 80 09 00 00 00 00 00 00 59 [13:34:20]Write i2c OK [13:34:20]MH_I2C_Read... [13:34:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:34:20]Read from MH i2c: E2 [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: E2 03 00 [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: E2 03 00 E6 01 00 90 00 5B [13:34:20]RAPDU: 90 00 [13:34:20]wFMCommunicate OK [13:34:20]SAM_PROTO_ClearQueue done [13:34:20]KKMCreateOFDPacket [13:34:20]OFDProtocolAddRootSTLVToBuf [13:34:20]FM_MakeSignedData [13:34:20]FM_MakeSignedData [13:34:20]SAM_PROTO_SignData [13:34:20]wFMCommunicate request_size=4 [13:34:20]MH_SAM_APDU [13:34:20]CAPDU: 80 0D 01 02 [13:34:20]Write to MH i2c: E2 08 00 E7 01 80 0D 01 02 00 00 00 00 61 [13:34:20]Write i2c OK [13:34:20]MH_I2C_Read... [13:34:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:34:20]Read from MH i2c: E2 [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: E2 03 00 [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: E2 03 00 E7 01 00 90 00 5C [13:34:20]RAPDU: 90 00 [13:34:20]wFMCommunicate OK [13:34:20]wFMCommunicate request_size=255 [13:34:20]MH_SAM_APDU [13:34:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 DB 15 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 28 2C 01 00 35 04 06 00 E9 [13:34:20]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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 DB 15 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 28 2C 01 00 35 04 06 00 E9 00 00 A4 [13:34:20]Write i2c OK [13:34:20]MH_I2C_Read... [13:34:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:20]Read from MH i2c: E2 [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: E2 03 00 [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [13:34:20]RAPDU: 90 00 [13:34:20]wFMCommunicate OK [13:34:20]wFMCommunicate request_size=10 [13:34:20]MH_SAM_APDU [13:34:20]CAPDU: 80 0D 02 02 05 5D 77 09 C6 5B [13:34:20]Write to MH i2c: E2 0D 00 E9 01 80 0D 02 02 05 00 5D 77 09 C6 5B 00 00 6C [13:34:20]Write i2c OK [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: E2 [13:34:20]MH_I2C_Read... [13:34:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:20]Read from MH i2c: E2 03 00 [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [13:34:20]RAPDU: 90 00 [13:34:20]wFMCommunicate OK [13:34:20]wFMCommunicate request_size=4 [13:34:20]MH_SAM_APDU [13:34:20]CAPDU: 80 0D 03 02 [13:34:20]Write to MH i2c: E2 08 00 EA 01 80 0D 03 02 00 00 00 00 66 [13:34:20]Write i2c OK [13:34:20]MH_I2C_Read... [13:34:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:34:20]Read from MH i2c: E2 [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: E2 0B 00 [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: E2 0B 00 EA 01 00 EB 22 F2 1F D0 4B 8A F0 90 00 1A [13:34:20]RAPDU: EB 22 F2 1F D0 4B 8A F0 90 00 [13:34:20]wFMCommunicate OK [13:34:20]SAM_PROTO_SignData done [13:34:20]FM_MakeSignedData done [13:34:20]CreateOFDProtocolMessage [13:34:20]wFMCommunicate request_size=4 [13:34:20]MH_SAM_APDU [13:34:20]CAPDU: 80 11 00 00 [13:34:20]Write to MH i2c: E2 08 00 EB 01 80 11 00 00 00 00 00 00 66 [13:34:20]Write i2c OK [13:34:20]MH_I2C_Read... [13:34:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:20]Read from MH i2c: E2 [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: E2 17 00 [13:34:20]MH_I2C_Read... [13:34:20]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 34 36 35 32 90 00 B9 [13:34:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:34:20]wFMCommunicate OK [13:34:20]CreateOFDProtocolMessage done [13:34:20]OFDSenderStorePacket 76840 [13:34:20]StoreOFDPacket docnum=76840 [13:34:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 1B 33 07 01 35 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 DB 15 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 28 2C 01 00 35 04 06 00 E9 5D 77 09 C6 5B EB 22 F2 1F D0 4B 8A F0 [13:34:20]CheckFolder [13:34:20]dirname=/storage/ofd_packets [13:34:20]CheckFolder done [13:34:20]ProducePacketName [13:34:20]name=ofd_packets/00076840 [13:34:20]NVStorageSaveData ofd_packets/00076840 [13:34:20]File name is /storage/ofd_packets/00076840 [13:34:20]Write 301 bytes [13:34:20]NVStorageSaveData done [13:34:20]OFDSenderStorePacket done [13:34:20]KKMCreateOFDPacket done [13:34:20]NVStorageSaveData kkm_last_timestamp [13:34:20]File name is /storage/kkm_last_timestamp [13:34:20]Write 4 bytes [13:34:20]NVStorageSaveData done [13:34:20]ExternCall_PrintAddStr [13:34:20]wPrintStart [13:34:20]Write to MH i2c: 01 00 00 EC 01 ED [13:34:20]Write i2c OK [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: 01 [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: 01 07 00 [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: 01 07 00 EC 01 00 00 00 00 00 FF 0F 02 [13:34:20]RasterBufferAndPrint [13:34:20]line Счет N : (1)191379 [13:34:20]line ИНН: 02508201610067 [13:34:20]line Контрольно-Кассовый Чек [13:34:20]line ПРОДАЖА [13:34:20]line ТРК (МРК, ГНК) : 33 [13:34:20]OFD Sender: Processing packet 76840 [packets to send 129, broken 128] [13:34:20]ProducePacketName [13:34:20]name=ofd_packets/00076840 [13:34:20]OFD Sender: To server: pG, [13:34:20]CommunicateWithHost lk.salyk.kg:30040 [13:34:20]ConnectInit lk.salyk.kg [13:34:20]line Товар: 2710124130 [13:34:20]line Аи-92-К-5 [13:34:20]line 7.770 * 64.40 [13:34:20]line = 500.39 [13:34:20]line НДС 12% НСП 1% [13:34:20]line > о реализуемом товаре [13:34:20]line ОКРУГЛЕНИЕ: -0.39 [13:34:20]line ИТОГО: 500.00 [13:34:20]line Внесено: 500.00 [13:34:20]line СДАЧА: 0.00 [13:34:20]line НСП 1% : 4.43 [13:34:20]line НДС 12% : 53.14 [13:34:20]line Наличными: 500.00 [13:34:20]line Безнал.: 0.00 [13:34:20]line Место: АЗС № 106 "Партнер Нефть" [13:34:20]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [13:34:20]line СНО: Общий режим [13:34:20]line Чек 96 21.04.2024 13:34 [13:34:20]line Смена: 372 ФФД: 1.0 [13:34:20]line ЗНМ: 0300000141 [13:34:20]line РНМ: 0000000000091573 [13:34:20]line Версия ККМ: 001 [13:34:20]line ФМ: 0000000000874652 [13:34:20]line ФД: 76840 [13:34:20]line ФПД: 256587638359643 [13:34:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T133419&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76840&fm=256587638359643&tin=02508201610067®Number=0000000000091573&sum=50000 [13:34:20]written 0, free lines is 4095 [13:34:21]Connected sock=11 [13:34:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 1B 33 07 01 35 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 DB 15 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 28 2C 01 00 35 04 06 00 E9 5D 77 09 C6 5B EB 22 F2 1F D0 4B 8A F0 [13:34:21]Write to MH i2c: 01 00 00 16 02 18 [13:34:21]Write i2c OK [13:34:21]MH_I2C_Read... [13:34:21]Read from MH i2c: 01 [13:34:21]MH_I2C_Read... [13:34:21]Read from MH i2c: 01 07 00 [13:34:21]MH_I2C_Read... [13:34:21]Read from MH i2c: 01 07 00 16 02 00 00 00 00 00 EC 0C 17 [13:34:21]RasterBufferAndPrint [13:34:21]line [13:34:21]line [13:34:21]line [13:34:21]line [13:34:21]line [13:34:21]written 0, free lines is 3316 [13:34:21]MH_Cut [13:34:21]Write to MH i2c: D1 01 00 1D 02 01 F1 [13:34:21]Write i2c OK [13:34:21]MH_I2C_Read... [13:34:21]Read from MH i2c: D1 [13:34:21]MH_I2C_Read... [13:34:21]Read from MH i2c: D1 01 00 [13:34:21]MH_I2C_Read... [13:34:21]Read from MH i2c: D1 01 00 1D 02 00 F0 [13:34:21]Write to MH i2c: 01 00 00 1E 02 20 [13:34:21]Write i2c OK [13:34:21]MH_I2C_Read... [13:34:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 0E 61 47 00 10 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 34 36 35 32 10 04 04 00 28 2C 01 00 F4 03 04 00 61 BD 24 66 B6 04 01 00 00 0F F8 96 B8 E5 C0 91 5A [13:34:21]CommunicateWithHost err = 0 [13:34:21]CheckOFDResponse [13:34:21]1017 (14) - 77093643461234 [13:34:21]1041 (16) - 0000000000874652 [13:34:21]1040 (4) - 76840 [13:34:21]1012 (4) - 21.04.2024 07:16 [13:34:21]1206 (1) - 0 [13:34:21]OFD Sender: Remove packet 76840 [13:34:21]ProducePacketName [13:34:21]name=ofd_packets/00076840 [13:34:21]NVStorageDeleteData [13:34:21]OFD Sender: No OFD packet to send [13:34:22]*** Cut start [13:34:22]*** Partial cut [13:34:22]*** CUTSNS_PIN = 1 [13:34:22]*** CUTSNS_PIN = 0 [13:34:22]*** Brake cut motor [13:34:22]Read from MH i2c: 01 [13:34:22]MH_I2C_Read... [13:34:22]*** Stop cut motor [13:34:22]*** Cut end [13:34:22]Read from MH i2c: 01 07 00 [13:34:22]MH_I2C_Read... [13:34:22]Read from MH i2c: 01 07 00 1E 02 00 00 00 00 00 FF 0F 35 [13:34:22]process_action close_receipt done [13:34:22]requested_data is exist [13:34:22]produce_requested_data [13:34:22]requested_item fm.sn is exist - process it [13:34:22]wFMCommunicate request_size=4 [13:34:22]MH_SAM_APDU [13:34:22]CAPDU: 80 11 00 00 [13:34:22]Write to MH i2c: E2 08 00 1F 02 80 11 00 00 00 00 00 00 9B [13:34:22]Write i2c OK [13:34:22]MH_I2C_Read... [13:34:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:22]Read from MH i2c: E2 [13:34:22]MH_I2C_Read... [13:34:22]Read from MH i2c: E2 17 00 [13:34:22]MH_I2C_Read... [13:34:22]Read from MH i2c: E2 17 00 1F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 EE [13:34:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:34:22]wFMCommunicate OK [13:34:22]requested_item fd.num is exist - process it [13:34:22]SAM_PROTO_GetFieldsCounters [13:34:22]wFMCommunicate request_size=4 [13:34:22]MH_SAM_APDU [13:34:22]CAPDU: 80 13 00 00 [13:34:22]Write to MH i2c: E2 08 00 20 02 80 13 00 00 00 00 00 00 9E [13:34:22]Write i2c OK [13:34:22]MH_I2C_Read... [13:34:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:34:22]Read from MH i2c: E2 [13:34:22]MH_I2C_Read... [13:34:22]Read from MH i2c: E2 62 00 [13:34:22]MH_I2C_Read... [13:34:22]Read from MH i2c: E2 62 00 20 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 28 2C 01 00 0E 04 04 00 74 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 A9 [13:34: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 28 2C 01 00 0E 04 04 00 74 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 [13:34:22]wFMCommunicate OK [13:34:22]SAM_PROTO_GetFieldsCounters done [13:34:22]requested_item shift.num is exist - process it [13:34:22]requested_item shift.opened is exist - process it [13:34:22]req_shift_opened [13:34:22]FM_GetShiftState [13:34:22]SAM_PROTO_GetShiftState [13:34:22]wFMCommunicate request_size=4 [13:34:22]MH_SAM_APDU [13:34:22]CAPDU: 80 13 01 00 [13:34:22]Write to MH i2c: E2 08 00 21 02 80 13 01 00 00 00 00 00 A0 [13:34:22]Write i2c OK [13:34:22]MH_I2C_Read... [13:34:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:22]Read from MH i2c: E2 [13:34:22]MH_I2C_Read... [13:34:22]Read from MH i2c: E2 0E 00 [13:34:22]MH_I2C_Read... [13:34:22]Read from MH i2c: E2 0E 00 21 02 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 E7 [13:34:22]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [13:34:22]wFMCommunicate OK [13:34:22]SAM_PROTO_GetShiftState done [13:34:22]FM_GetShiftState done [13:34:22]req_shift_opened done [13:34:22]requested_item shift.open_date is exist - process it [13:34:22]req_shift_open_date [13:34:22]req_shift_open_date done [13:34:22]produce_requested_data done [13:34:22]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76840,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [13:34:22]process_action_free close_receipt [13:34:22]json_value_free [13:34:22]json_value_free done [13:34:22]process_json_proto returns [13:34:22]Send response to host [13:34:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76840,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [13:34:22]free response buf [13:34:22]execute_script done [13:34:22]execute_script returns [13:34:22]free content buf [13:34:22]Sock 7.Close socket [13:34:22]Sock 7.Thread stoped [13:34:26]OFD Sender: No OFD packet to send [13:34:31]OFD Sender: No OFD packet to send [13:34:36]OFD Sender: No OFD packet to send [13:34:41]OFD Sender: No OFD packet to send [13:34:46]OFD Sender: No OFD packet to send [13:34:51]OFD Sender: No OFD packet to send [13:34:56]OFD Sender: No OFD packet to send [13:35:01]OFD Sender: No OFD packet to send [13:35:06]OFD Sender: No OFD packet to send [13:35:11]OFD Sender: No OFD packet to send [13:35:16]OFD Sender: No OFD packet to send [13:35:21]OFD Sender: No OFD packet to send [13:35:27]OFD Sender: No OFD packet to send [13:35:32]OFD Sender: No OFD packet to send [13:35:37]OFD Sender: No OFD packet to send [13:35:42]OFD Sender: No OFD packet to send [13:35:47]OFD Sender: No OFD packet to send [13:35:50]accept exits with 9 [13:35:50]New connection [13:35:50]New thread 3066801508 created [13:35:50]Thread 3066658148 joined [13:35:50]Waiting for new connection... [13:35:50] Sock 9.Parse request [13:35:50]Sock 9.Check first char [13:35:50]Sock 9.First char is OK [13:35:50]request: POST /json_proto HTTP/1.0 [13:35:50]Method: POST [13:35:50]URL: /json_proto [13:35:50]Method is POST - this is cgi request [13:35:50]url: /json_proto [13:35:50]query_string will be loaded in cgi processing [13:35:50]execute_cgi json_proto POST (null) [13:35:50]execute_cgi path=json_proto method=POST [13:35:50]POST find Content-Length [13:35:50]Host: 172.17.62.5:8080 [13:35:50]Content-Length: 811 [13:35:50]Content-Type: application/json [13:35:50] [13:35:50]POST finish read [13:35:50]Found Content-Length = 811 [13:35:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 30.590, "sum" : 1000.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:50]execute_script... [13:35: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)191377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 30.590, "sum" : 1000.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:50]POST & json_proto [13:35:50]process_json_proto [13:35:50]json parsed OK: [13:35:50]protocol is kg_v1.0 [13:35:50]action value=close_receipt [13:35:50]process_action close_receipt [13:35:50]cmd_close_receipt [13:35:50]MH_GetDate [13:35:50]Write to MH i2c: F0 00 00 22 02 13 [13:35:50]Write i2c OK [13:35:50]MH_I2C_Read... [13:35:50]Read from MH i2c: F0 [13:35:50]MH_I2C_Read... [13:35:50]Read from MH i2c: F0 09 00 [13:35:50]MH_I2C_Read... [13:35:50]Read from MH i2c: F0 09 00 22 02 00 37 16 25 66 F4 E9 65 64 9A [13:35:50]GetLastDocTimeStamp 1713706459 [13:35:50]current date 1713706551 [13:35:50]FM_GetShiftState [13:35:50]SAM_PROTO_GetShiftState [13:35:50]wFMCommunicate request_size=4 [13:35:50]MH_SAM_APDU [13:35:50]CAPDU: 80 13 01 00 [13:35:50]Write to MH i2c: E2 08 00 23 02 80 13 01 00 00 00 00 00 A2 [13:35:50]Write i2c OK [13:35:50]MH_I2C_Read... [13:35:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:50]Read from MH i2c: E2 [13:35:50]MH_I2C_Read... [13:35:50]Read from MH i2c: E2 0E 00 [13:35:50]MH_I2C_Read... [13:35:50]Read from MH i2c: E2 0E 00 23 02 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 E9 [13:35:50]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [13:35:50]wFMCommunicate OK [13:35:50]SAM_PROTO_GetShiftState done [13:35:50]FM_GetShiftState done [13:35:50]opened in 1713658965 [13:35:50]opened+sec_in_day 1713745365 [13:35:50]quantity*price = 100029 [13:35:50]sum+1 = 100030 [13:35:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.29 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.29 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 97 21.04.2024 13:35 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 76841 ФПД: 66419220402470 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T133551&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76841&fm=66419220402470&tin=02508201610067®Number=0000000000091573&sum=100029 [13:35:51]StoreToDocumentArchive [13:35:51]shift 372 fd 76841 [13:35:51]save to /storage/0372/doc_00076841 [13:35:51]save last doc name /storage/0372/doc_00076841 to /storage/kkm_last_doc_name [13:35:51]save OK [13:35:51]Clear old archive folders... [13:35:51]ProcessDocumentItem done err = 0, tmpTLVsize=250 [13:35:51]tlvbuf is 01006C50 [13:35:51]SAM_PROTO_ClearQueue [13:35:51]wFMCommunicate request_size=4 [13:35:51]MH_SAM_APDU [13:35:51]CAPDU: 80 09 00 00 [13:35:51]Write to MH i2c: E2 08 00 30 02 80 09 00 00 00 00 00 00 A4 [13:35:51]Write i2c OK [13:35:51]MH_I2C_Read... [13:35:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:35:51]Read from MH i2c: E2 [13:35:51]MH_I2C_Read... [13:35:51]Read from MH i2c: E2 03 00 [13:35:51]MH_I2C_Read... [13:35:51]Read from MH i2c: E2 03 00 30 02 00 90 00 A6 [13:35:51]RAPDU: 90 00 [13:35:51]wFMCommunicate OK [13:35:51]SAM_PROTO_ClearQueue done [13:35:51]KKMCreateOFDPacket [13:35:51]OFDProtocolAddRootSTLVToBuf [13:35:51]FM_MakeSignedData [13:35:51]FM_MakeSignedData [13:35:51]SAM_PROTO_SignData [13:35:51]wFMCommunicate request_size=4 [13:35:51]MH_SAM_APDU [13:35:51]CAPDU: 80 0D 01 02 [13:35:51]Write to MH i2c: E2 08 00 31 02 80 0D 01 02 00 00 00 00 AC [13:35:51]Write i2c OK [13:35:51]MH_I2C_Read... [13:35:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:35:52]Read from MH i2c: E2 [13:35:52]MH_I2C_Read... [13:35:52]Read from MH i2c: E2 03 00 [13:35:52]MH_I2C_Read... [13:35:52]Read from MH i2c: E2 03 00 31 02 00 90 00 A7 [13:35:52]RAPDU: 90 00 [13:35:52]wFMCommunicate OK [13:35:52]wFMCommunicate request_size=255 [13:35:52]MH_SAM_APDU [13:35:52]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 37 16 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 29 2C 01 00 35 04 06 00 3C 68 [13:35:52]Write to MH i2c: E2 02 01 32 02 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 37 16 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 29 2C 01 00 35 04 06 00 3C 68 00 00 B7 [13:35:52]Write i2c OK [13:35:52]MH_I2C_Read... [13:35:52]OFD Sender: No OFD packet to send [13:35:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:52]Read from MH i2c: E2 [13:35:52]MH_I2C_Read... [13:35:52]Read from MH i2c: E2 03 00 [13:35:52]MH_I2C_Read... [13:35:52]Read from MH i2c: E2 03 00 32 02 00 90 00 A8 [13:35:52]RAPDU: 90 00 [13:35:52]wFMCommunicate OK [13:35:52]wFMCommunicate request_size=9 [13:35:52]MH_SAM_APDU [13:35:52]CAPDU: 80 0D 02 02 04 6E 09 D1 26 [13:35:52]Write to MH i2c: E2 0C 00 33 02 80 0D 02 02 04 00 6E 09 D1 26 00 00 25 [13:35:52]Write i2c OK [13:35:52]MH_I2C_Read... [13:35:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:52]Read from MH i2c: E2 [13:35:52]MH_I2C_Read... [13:35:52]Read from MH i2c: E2 03 00 [13:35:52]MH_I2C_Read... [13:35:52]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [13:35:52]RAPDU: 90 00 [13:35:52]wFMCommunicate OK [13:35:52]wFMCommunicate request_size=4 [13:35:52]MH_SAM_APDU [13:35:52]CAPDU: 80 0D 03 02 [13:35:52]Write to MH i2c: E2 08 00 34 02 80 0D 03 02 00 00 00 00 B1 [13:35:52]Write i2c OK [13:35:52]MH_I2C_Read... [13:35:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:35:52]Read from MH i2c: E2 [13:35:52]MH_I2C_Read... [13:35:52]Read from MH i2c: E2 0B 00 [13:35:52]MH_I2C_Read... [13:35:52]Read from MH i2c: E2 0B 00 34 02 00 53 33 33 92 D4 73 2D 50 90 00 C1 [13:35:52]RAPDU: 53 33 33 92 D4 73 2D 50 90 00 [13:35:52]wFMCommunicate OK [13:35:52]SAM_PROTO_SignData done [13:35:52]FM_MakeSignedData done [13:35:52]CreateOFDProtocolMessage [13:35:52]wFMCommunicate request_size=4 [13:35:52]MH_SAM_APDU [13:35:52]CAPDU: 80 11 00 00 [13:35:52]Write to MH i2c: E2 08 00 35 02 80 11 00 00 00 00 00 00 B1 [13:35:52]Write i2c OK [13:35:52]MH_I2C_Read... [13:35:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:52]Read from MH i2c: E2 [13:35:52]MH_I2C_Read... [13:35:52]Read from MH i2c: E2 17 00 [13:35:52]MH_I2C_Read... [13:35:52]Read from MH i2c: E2 17 00 35 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 04 [13:35:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:35:52]wFMCommunicate OK [13:35:52]CreateOFDProtocolMessage done [13:35:52]OFDSenderStorePacket 76841 [13:35:52]StoreOFDPacket docnum=76841 [13:35:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 4B 76 06 01 98 64 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 37 16 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 29 2C 01 00 35 04 06 00 3C 68 6E 09 D1 26 53 33 33 92 D4 73 2D 50 [13:35:52]CheckFolder [13:35:52]dirname=/storage/ofd_packets [13:35:52]CheckFolder done [13:35:52]ProducePacketName [13:35:52]name=ofd_packets/00076841 [13:35:52]NVStorageSaveData ofd_packets/00076841 [13:35:52]File name is /storage/ofd_packets/00076841 [13:35:52]Write 300 bytes [13:35:52]NVStorageSaveData done [13:35:52]OFDSenderStorePacket done [13:35:52]KKMCreateOFDPacket done [13:35:52]NVStorageSaveData kkm_last_timestamp [13:35:52]File name is /storage/kkm_last_timestamp [13:35:52]Write 4 bytes [13:35:52]NVStorageSaveData done [13:35:52]ExternCall_PrintAddStr [13:35:52]wPrintStart [13:35:52]Write to MH i2c: 01 00 00 36 02 38 [13:35:52]Write i2c OK [13:35:52]MH_I2C_Read... [13:35:52]Read from MH i2c: 01 [13:35:52]MH_I2C_Read... [13:35:52]Read from MH i2c: 01 07 00 [13:35:52]MH_I2C_Read... [13:35:52]Read from MH i2c: 01 07 00 36 02 00 00 00 00 00 FF 0F 4D [13:35:52]RasterBufferAndPrint [13:35:52]line Счет N : (1)191377 [13:35:52]line ИНН: 02508201610067 [13:35:52]line Контрольно-Кассовый Чек [13:35:52]line ПРОДАЖА [13:35:52]line ТРК (МРК, ГНК) : 71 [13:35:52]line Товар: 2711190000 [13:35:52]line ГАЗ-К-5 [13:35:52]line 30.590 * 32.70 [13:35:52]line = 1000.29 [13:35:52]line НДС 12% НСП 1% [13:35:52]line > о реализуемом товаре [13:35:52]line ИТОГО: 1000.29 [13:35:52]line НСП 1% : 8.85 [13:35:52]line НДС 12% : 106.22 [13:35:52]line Наличными: 0.00 [13:35:52]line Безнал.: 1000.29 [13:35:52]line Место: АЗС № 106 "Партнер Нефть" [13:35:52]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [13:35:52]line СНО: Общий режим [13:35:52]line Чек 97 21.04.2024 13:35 [13:35:52]line Смена: 372 ФФД: 1.0 [13:35:52]line ЗНМ: 0300000141 [13:35:52]line РНМ: 0000000000091573 [13:35:52]line Версия ККМ: 001 [13:35:52]line Платежная система: О! деньги [13:35:52]line ФМ: 0000000000874652 [13:35:52]line ФД: 76841 [13:35:52]line ФПД: 66419220402470 [13:35:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T133551&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76841&fm=66419220402470&tin=02508201610067®Number=0000000000091573&sum=100029 [13:35:52]OFD Sender: Processing packet 76841 [packets to send 129, broken 128] [13:35:52]ProducePacketName [13:35:52]name=ofd_packets/00076841 [13:35:52]OFD Sender: To server: pG, [13:35:52]CommunicateWithHost lk.salyk.kg:30040 [13:35:52]ConnectInit lk.salyk.kg [13:35:52]written 0, free lines is 4095 [13:35:52]Connected sock=10 [13:35:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 4B 76 06 01 98 64 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 37 16 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 29 2C 01 00 35 04 06 00 3C 68 6E 09 D1 26 53 33 33 92 D4 73 2D 50 [13:35:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 9D 49 47 00 30 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 34 36 35 32 10 04 04 00 29 2C 01 00 F4 03 04 00 BC BD 24 66 B6 04 01 00 00 5C 4F C7 88 E6 32 9E 9E [13:35:53]CommunicateWithHost err = 0 [13:35:53]CheckOFDResponse [13:35:53]1017 (14) - 77093643461234 [13:35:53]1041 (16) - 0000000000874652 [13:35:53]1040 (4) - 76841 [13:35:53]1012 (4) - 21.04.2024 07:18 [13:35:53]1206 (1) - 0 [13:35:53]OFD Sender: Remove packet 76841 [13:35:53]ProducePacketName [13:35:53]name=ofd_packets/00076841 [13:35:53]NVStorageDeleteData [13:35:53]Write to MH i2c: 01 00 00 5F 02 61 [13:35:53]Write i2c OK [13:35:53]MH_I2C_Read... [13:35:53]Read from MH i2c: 01 [13:35:53]MH_I2C_Read... [13:35:53]Read from MH i2c: 01 07 00 [13:35:53]MH_I2C_Read... [13:35:53]Read from MH i2c: 01 07 00 5F 02 00 00 00 00 00 01 0D 76 [13:35:53]RasterBufferAndPrint [13:35:53]line [13:35:53]line [13:35:53]line [13:35:53]line [13:35:53]line [13:35:53]written 0, free lines is 3332 [13:35:53]MH_Cut [13:35:53]Write to MH i2c: D1 01 00 66 02 01 3A [13:35:53]Write i2c OK [13:35:53]MH_I2C_Read... [13:35:53]Read from MH i2c: D1 [13:35:53]MH_I2C_Read... [13:35:53]Read from MH i2c: D1 01 00 [13:35:53]MH_I2C_Read... [13:35:53]Read from MH i2c: D1 01 00 66 02 00 39 [13:35:53]Write to MH i2c: 01 00 00 67 02 69 [13:35:53]Write i2c OK [13:35:53]MH_I2C_Read... [13:35:53]OFD Sender: No OFD packet to send [13:35:53]*** Cut start [13:35:53]*** Partial cut [13:35:53]*** CUTSNS_PIN = 1 [13:35:53]*** CUTSNS_PIN = 0 [13:35:54]*** Brake cut motor [13:35:54]Read from MH i2c: 01 [13:35:54]MH_I2C_Read... [13:35:54]*** Stop cut motor [13:35:54]*** Cut end [13:35:54]Read from MH i2c: 01 07 00 [13:35:54]MH_I2C_Read... [13:35:54]Read from MH i2c: 01 07 00 67 02 00 00 00 00 00 FF 0F 7E [13:35:54]process_action close_receipt done [13:35:54]requested_data is exist [13:35:54]produce_requested_data [13:35:54]requested_item fm.sn is exist - process it [13:35:54]wFMCommunicate request_size=4 [13:35:54]MH_SAM_APDU [13:35:54]CAPDU: 80 11 00 00 [13:35:54]Write to MH i2c: E2 08 00 68 02 80 11 00 00 00 00 00 00 E4 [13:35:54]Write i2c OK [13:35:54]MH_I2C_Read... [13:35:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:54]Read from MH i2c: E2 [13:35:54]MH_I2C_Read... [13:35:54]Read from MH i2c: E2 17 00 [13:35:54]MH_I2C_Read... [13:35:54]Read from MH i2c: E2 17 00 68 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 37 [13:35:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:35:54]wFMCommunicate OK [13:35:54]requested_item fd.num is exist - process it [13:35:54]SAM_PROTO_GetFieldsCounters [13:35:54]wFMCommunicate request_size=4 [13:35:54]MH_SAM_APDU [13:35:54]CAPDU: 80 13 00 00 [13:35:54]Write to MH i2c: E2 08 00 69 02 80 13 00 00 00 00 00 00 E7 [13:35:54]Write i2c OK [13:35:54]MH_I2C_Read... [13:35:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:35:54]Read from MH i2c: E2 [13:35:54]MH_I2C_Read... [13:35:54]Read from MH i2c: E2 62 00 [13:35:54]MH_I2C_Read... [13:35:54]Read from MH i2c: E2 62 00 69 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 29 2C 01 00 0E 04 04 00 74 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 F6 [13:35: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 29 2C 01 00 0E 04 04 00 74 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 [13:35:54]wFMCommunicate OK [13:35:54]SAM_PROTO_GetFieldsCounters done [13:35:54]requested_item shift.num is exist - process it [13:35:54]requested_item shift.opened is exist - process it [13:35:54]req_shift_opened [13:35:54]FM_GetShiftState [13:35:54]SAM_PROTO_GetShiftState [13:35:54]wFMCommunicate request_size=4 [13:35:54]MH_SAM_APDU [13:35:54]CAPDU: 80 13 01 00 [13:35:54]Write to MH i2c: E2 08 00 6A 02 80 13 01 00 00 00 00 00 E9 [13:35:54]Write i2c OK [13:35:54]MH_I2C_Read... [13:35:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:54]Read from MH i2c: E2 [13:35:54]MH_I2C_Read... [13:35:54]Read from MH i2c: E2 0E 00 [13:35:54]MH_I2C_Read... [13:35:54]Read from MH i2c: E2 0E 00 6A 02 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 30 [13:35:54]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [13:35:54]wFMCommunicate OK [13:35:54]SAM_PROTO_GetShiftState done [13:35:54]FM_GetShiftState done [13:35:54]req_shift_opened done [13:35:54]requested_item shift.open_date is exist - process it [13:35:54]req_shift_open_date [13:35:54]req_shift_open_date done [13:35:54]produce_requested_data done [13:35:54]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76841,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [13:35:54]process_action_free close_receipt [13:35:54]json_value_free [13:35:54]json_value_free done [13:35:54]process_json_proto returns [13:35:54]Send response to host [13:35:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76841,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [13:35:54]free response buf [13:35:54]execute_script done [13:35:54]execute_script returns [13:35:54]free content buf [13:35:54]Sock 9.Close socket [13:35:54]Sock 9.Thread stoped [13:35:58]OFD Sender: No OFD packet to send [13:35:59]accept exits with 7 [13:35:59]New connection [13:35:59]New thread 3066658148 created [13:35:59]Thread 3066801508 joined [13:35:59]Waiting for new connection... [13:35:59] Sock 7.Parse request [13:35:59]Sock 7.Check first char [13:35:59]Sock 7.First char is OK [13:35:59]request: POST /json_proto HTTP/1.0 [13:35:59]Method: POST [13:35:59]URL: /json_proto [13:35:59]Method is POST - this is cgi request [13:35:59]url: /json_proto [13:35:59]query_string will be loaded in cgi processing [13:35:59]execute_cgi json_proto POST (null) [13:35:59]execute_cgi path=json_proto method=POST [13:35:59]POST find Content-Length [13:35:59]Host: 172.17.62.5:8080 [13:35:59]Content-Length: 682 [13:35:59]Content-Type: application/json [13:35:59] [13:35:59]POST finish read [13:35:59]Found Content-Length = 682 [13:35:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:59]execute_script... [13:35: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)191380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:59]POST & json_proto [13:35:59]process_json_proto [13:35:59]json parsed OK: [13:35:59]protocol is kg_v1.0 [13:35:59]action value=close_receipt [13:35:59]process_action close_receipt [13:35:59]cmd_close_receipt [13:35:59]MH_GetDate [13:35:59]Write to MH i2c: F0 00 00 6B 02 5C [13:35:59]Write i2c OK [13:35:59]MH_I2C_Read... [13:35:59]Read from MH i2c: F0 [13:35:59]MH_I2C_Read... [13:35:59]Read from MH i2c: F0 09 00 [13:35:59]MH_I2C_Read... [13:35:59]Read from MH i2c: F0 09 00 6B 02 00 3F 16 25 66 F4 E9 65 64 EB [13:35:59]GetLastDocTimeStamp 1713706551 [13:35:59]current date 1713706559 [13:35:59]FM_GetShiftState [13:35:59]SAM_PROTO_GetShiftState [13:35:59]wFMCommunicate request_size=4 [13:35:59]MH_SAM_APDU [13:35:59]CAPDU: 80 13 01 00 [13:35:59]Write to MH i2c: E2 08 00 6C 02 80 13 01 00 00 00 00 00 EB [13:35:59]Write i2c OK [13:35:59]MH_I2C_Read... [13:35:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:59]Read from MH i2c: E2 [13:35:59]MH_I2C_Read... [13:35:59]Read from MH i2c: E2 0E 00 [13:35:59]MH_I2C_Read... [13:35:59]Read from MH i2c: E2 0E 00 6C 02 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 32 [13:35:59]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [13:35:59]wFMCommunicate OK [13:35:59]SAM_PROTO_GetShiftState done [13:35:59]FM_GetShiftState done [13:35:59]opened in 1713658965 [13:35:59]opened+sec_in_day 1713745365 [13:35:59]quantity*price = 100018 [13:35:59]sum+1 = 100020 [13:35:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 98 21.04.2024 13:36 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76842 ФПД: 1212909522453 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T133600&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76842&fm=1212909522453&tin=02508201610067®Number=0000000000091573&sum=100000 [13:36:00]StoreToDocumentArchive [13:36:00]shift 372 fd 76842 [13:36:00]save to /storage/0372/doc_00076842 [13:36:00]save last doc name /storage/0372/doc_00076842 to /storage/kkm_last_doc_name [13:36:00]save OK [13:36:00]Clear old archive folders... [13:36:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:36:00]tlvbuf is 01021440 [13:36:00]SAM_PROTO_ClearQueue [13:36:00]wFMCommunicate request_size=4 [13:36:00]MH_SAM_APDU [13:36:00]CAPDU: 80 09 00 00 [13:36:00]Write to MH i2c: E2 08 00 79 02 80 09 00 00 00 00 00 00 ED [13:36:00]Write i2c OK [13:36:00]MH_I2C_Read... [13:36:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:36:00]Read from MH i2c: E2 [13:36:00]MH_I2C_Read... [13:36:00]Read from MH i2c: E2 03 00 [13:36:00]MH_I2C_Read... [13:36:00]Read from MH i2c: E2 03 00 79 02 00 90 00 EF [13:36:00]RAPDU: 90 00 [13:36:00]wFMCommunicate OK [13:36:00]SAM_PROTO_ClearQueue done [13:36:00]KKMCreateOFDPacket [13:36:00]OFDProtocolAddRootSTLVToBuf [13:36:00]FM_MakeSignedData [13:36:00]FM_MakeSignedData [13:36:00]SAM_PROTO_SignData [13:36:00]wFMCommunicate request_size=4 [13:36:00]MH_SAM_APDU [13:36:00]CAPDU: 80 0D 01 02 [13:36:00]Write to MH i2c: E2 08 00 7A 02 80 0D 01 02 00 00 00 00 F5 [13:36:00]Write i2c OK [13:36:00]MH_I2C_Read... [13:36:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:36:00]Read from MH i2c: E2 [13:36:00]MH_I2C_Read... [13:36:00]Read from MH i2c: E2 03 00 [13:36:00]MH_I2C_Read... [13:36:00]Read from MH i2c: E2 03 00 7A 02 00 90 00 F0 [13:36:00]RAPDU: 90 00 [13:36:00]wFMCommunicate OK [13:36:00]wFMCommunicate request_size=255 [13:36:00]MH_SAM_APDU [13:36: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 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 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 62 00 00 00 F4 03 04 00 40 16 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 2A 2C 01 00 35 04 06 00 01 [13:36:00]Write to MH i2c: E2 02 01 7B 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 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 62 00 00 00 F4 03 04 00 40 16 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 2A 2C 01 00 35 04 06 00 01 00 00 1C [13:36:00]Write i2c OK [13:36:00]MH_I2C_Read... [13:36:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:00]Read from MH i2c: E2 [13:36:00]MH_I2C_Read... [13:36:00]Read from MH i2c: E2 03 00 [13:36:00]MH_I2C_Read... [13:36:00]Read from MH i2c: E2 03 00 7B 02 00 90 00 F1 [13:36:00]RAPDU: 90 00 [13:36:00]wFMCommunicate OK [13:36:00]wFMCommunicate request_size=10 [13:36:00]MH_SAM_APDU [13:36:00]CAPDU: 80 0D 02 02 05 1A 67 0A 8E 15 [13:36:00]Write to MH i2c: E2 0D 00 7C 02 80 0D 02 02 05 00 1A 67 0A 8E 15 00 00 30 [13:36:00]Write i2c OK [13:36:00]MH_I2C_Read... [13:36:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:00]Read from MH i2c: E2 [13:36:00]MH_I2C_Read... [13:36:00]Read from MH i2c: E2 03 00 [13:36:00]MH_I2C_Read... [13:36:00]Read from MH i2c: E2 03 00 7C 02 00 90 00 F2 [13:36:00]RAPDU: 90 00 [13:36:00]wFMCommunicate OK [13:36:00]wFMCommunicate request_size=4 [13:36:00]MH_SAM_APDU [13:36:00]CAPDU: 80 0D 03 02 [13:36:00]Write to MH i2c: E2 08 00 7D 02 80 0D 03 02 00 00 00 00 FA [13:36:00]Write i2c OK [13:36:00]MH_I2C_Read... [13:36:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:36:01]Read from MH i2c: E2 [13:36:01]MH_I2C_Read... [13:36:01]Read from MH i2c: E2 0B 00 [13:36:01]MH_I2C_Read... [13:36:01]Read from MH i2c: E2 0B 00 7D 02 00 02 62 4A 7B 9F 61 EE 38 90 00 4A [13:36:01]RAPDU: 02 62 4A 7B 9F 61 EE 38 90 00 [13:36:01]wFMCommunicate OK [13:36:01]SAM_PROTO_SignData done [13:36:01]FM_MakeSignedData done [13:36:01]CreateOFDProtocolMessage [13:36:01]wFMCommunicate request_size=4 [13:36:01]MH_SAM_APDU [13:36:01]CAPDU: 80 11 00 00 [13:36:01]Write to MH i2c: E2 08 00 7E 02 80 11 00 00 00 00 00 00 FA [13:36:01]Write i2c OK [13:36:01]MH_I2C_Read... [13:36:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:01]Read from MH i2c: E2 [13:36:01]MH_I2C_Read... [13:36:01]Read from MH i2c: E2 17 00 [13:36:01]MH_I2C_Read... [13:36:01]Read from MH i2c: E2 17 00 7E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 4D [13:36:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:36:01]wFMCommunicate OK [13:36:01]CreateOFDProtocolMessage done [13:36:01]OFDSenderStorePacket 76842 [13:36:01]StoreOFDPacket docnum=76842 [13:36:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 AC 06 07 01 6E 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 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 62 00 00 00 F4 03 04 00 40 16 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 2A 2C 01 00 35 04 06 00 01 1A 67 0A 8E 15 02 62 4A 7B 9F 61 EE 38 [13:36:01]CheckFolder [13:36:01]dirname=/storage/ofd_packets [13:36:01]CheckFolder done [13:36:01]ProducePacketName [13:36:01]name=ofd_packets/00076842 [13:36:01]NVStorageSaveData ofd_packets/00076842 [13:36:01]File name is /storage/ofd_packets/00076842 [13:36:01]Write 301 bytes [13:36:01]NVStorageSaveData done [13:36:01]OFDSenderStorePacket done [13:36:01]KKMCreateOFDPacket done [13:36:01]NVStorageSaveData kkm_last_timestamp [13:36:01]File name is /storage/kkm_last_timestamp [13:36:01]Write 4 bytes [13:36:01]NVStorageSaveData done [13:36:01]ExternCall_PrintAddStr [13:36:01]wPrintStart [13:36:01]Write to MH i2c: 01 00 00 7F 02 81 [13:36:01]Write i2c OK [13:36:01]MH_I2C_Read... [13:36:01]Read from MH i2c: 01 [13:36:01]MH_I2C_Read... [13:36:01]Read from MH i2c: 01 07 00 [13:36:01]MH_I2C_Read... [13:36:01]Read from MH i2c: 01 07 00 7F 02 00 00 00 00 00 FF 0F 96 [13:36:01]RasterBufferAndPrint [13:36:01]line Счет N : (1)191380 [13:36:01]line ИНН: 02508201610067 [13:36:01]line Контрольно-Кассовый Чек [13:36:01]line ПРОДАЖА [13:36:01]line ТРК (МРК, ГНК) : 32 [13:36:01]line Товар: 2710124500 [13:36:01]line Аи-95-К-5 [13:36:01]line 13.720 * 72.90 [13:36:01]line = 1000.19 [13:36:01]line НДС 12% НСП 1% [13:36:01]line > о реализуемом товаре [13:36:01]line ОКРУГЛЕНИЕ: -0.19 [13:36:01]line ИТОГО: 1000.00 [13:36:01]line Внесено: 1000.00 [13:36:01]line СДАЧА: 0.00 [13:36:01]line НСП 1% : 8.85 [13:36:01]line НДС 12% : 106.21 [13:36:01]line Наличными: 1000.00 [13:36:01]line Безнал.: 0.00 [13:36:01]line Место: АЗС № 106 "Партнер Нефть" [13:36:01]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [13:36:01]line СНО: Общий режим [13:36:01]line Чек 98 21.04.2024 13:36 [13:36:01]line Смена: 372 ФФД: 1.0 [13:36:01]line ЗНМ: 0300000141 [13:36:01]line РНМ: 0000000000091573 [13:36:01]line Версия ККМ: 001 [13:36:01]line ФМ: 0000000000874652 [13:36:01]line ФД: 76842 [13:36:01]line ФПД: 1212909522453 [13:36:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T133600&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76842&fm=1212909522453&tin=02508201610067®Number=0000000000091573&sum=100000 [13:36:01]OFD Sender: Processing packet 76842 [packets to send 129, broken 128] [13:36:01]ProducePacketName [13:36:01]name=ofd_packets/00076842 [13:36:01]OFD Sender: To server: pG, [13:36:01]CommunicateWithHost lk.salyk.kg:30040 [13:36:01]ConnectInit lk.salyk.kg [13:36:01]written 0, free lines is 4095 [13:36:01]Connected sock=10 [13:36:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 AC 06 07 01 6E 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 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 62 00 00 00 F4 03 04 00 40 16 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 2A 2C 01 00 35 04 06 00 01 1A 67 0A 8E 15 02 62 4A 7B 9F 61 EE 38 [13:36:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 56 AA 47 00 BB 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 34 36 35 32 10 04 04 00 2A 2C 01 00 F4 03 04 00 C5 BD 24 66 B6 04 01 00 00 1A 41 9C ED 38 EE 4C 57 [13:36:01]CommunicateWithHost err = 0 [13:36:01]CheckOFDResponse [13:36:01]1017 (14) - 77093643461234 [13:36:01]1041 (16) - 0000000000874652 [13:36:01]1040 (4) - 76842 [13:36:01]1012 (4) - 21.04.2024 07:18 [13:36:01]1206 (1) - 0 [13:36:01]OFD Sender: Remove packet 76842 [13:36:01]ProducePacketName [13:36:01]name=ofd_packets/00076842 [13:36:01]NVStorageDeleteData [13:36:01]Write to MH i2c: 01 00 00 A9 02 AB [13:36:01]Write i2c OK [13:36:01]MH_I2C_Read... [13:36:01]Read from MH i2c: 01 [13:36:01]MH_I2C_Read... [13:36:01]Read from MH i2c: 01 07 00 [13:36:01]MH_I2C_Read... [13:36:01]Read from MH i2c: 01 07 00 A9 02 00 00 00 00 00 01 0D C0 [13:36:01]RasterBufferAndPrint [13:36:01]line [13:36:01]line [13:36:01]line [13:36:01]line [13:36:01]line [13:36:01]written 0, free lines is 3338 [13:36:01]MH_Cut [13:36:01]Write to MH i2c: D1 01 00 B0 02 01 84 [13:36:01]Write i2c OK [13:36:01]MH_I2C_Read... [13:36:01]Read from MH i2c: D1 [13:36:01]MH_I2C_Read... [13:36:01]Read from MH i2c: D1 01 00 [13:36:01]MH_I2C_Read... [13:36:01]Read from MH i2c: D1 01 00 B0 02 00 83 [13:36:01]Write to MH i2c: 01 00 00 B1 02 B3 [13:36:01]Write i2c OK [13:36:01]MH_I2C_Read... [13:36:02]OFD Sender: No OFD packet to send [13:36:02]*** Cut start [13:36:02]*** Partial cut [13:36:02]*** CUTSNS_PIN = 1 [13:36:02]*** CUTSNS_PIN = 0 [13:36:02]*** Brake cut motor [13:36:03]Read from MH i2c: 01 [13:36:03]MH_I2C_Read... [13:36:03]*** Stop cut motor [13:36:03]*** Cut end [13:36:03]Read from MH i2c: 01 07 00 [13:36:03]MH_I2C_Read... [13:36:03]Read from MH i2c: 01 07 00 B1 02 00 00 00 00 00 FF 0F C8 [13:36:03]process_action close_receipt done [13:36:03]requested_data is exist [13:36:03]produce_requested_data [13:36:03]requested_item fm.sn is exist - process it [13:36:03]wFMCommunicate request_size=4 [13:36:03]MH_SAM_APDU [13:36:03]CAPDU: 80 11 00 00 [13:36:03]Write to MH i2c: E2 08 00 B2 02 80 11 00 00 00 00 00 00 2E [13:36:03]Write i2c OK [13:36:03]MH_I2C_Read... [13:36:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:03]Read from MH i2c: E2 [13:36:03]MH_I2C_Read... [13:36:03]Read from MH i2c: E2 17 00 [13:36:03]MH_I2C_Read... [13:36:03]Read from MH i2c: E2 17 00 B2 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 81 [13:36:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:36:03]wFMCommunicate OK [13:36:03]requested_item fd.num is exist - process it [13:36:03]SAM_PROTO_GetFieldsCounters [13:36:03]wFMCommunicate request_size=4 [13:36:03]MH_SAM_APDU [13:36:03]CAPDU: 80 13 00 00 [13:36:03]Write to MH i2c: E2 08 00 B3 02 80 13 00 00 00 00 00 00 31 [13:36:03]Write i2c OK [13:36:03]MH_I2C_Read... [13:36:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:36:03]Read from MH i2c: E2 [13:36:03]MH_I2C_Read... [13:36:03]Read from MH i2c: E2 62 00 [13:36:03]MH_I2C_Read... [13:36:03]Read from MH i2c: E2 62 00 B3 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 2A 2C 01 00 0E 04 04 00 74 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 44 [13:36: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 2A 2C 01 00 0E 04 04 00 74 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 [13:36:03]wFMCommunicate OK [13:36:03]SAM_PROTO_GetFieldsCounters done [13:36:03]requested_item shift.num is exist - process it [13:36:03]requested_item shift.opened is exist - process it [13:36:03]req_shift_opened [13:36:03]FM_GetShiftState [13:36:03]SAM_PROTO_GetShiftState [13:36:03]wFMCommunicate request_size=4 [13:36:03]MH_SAM_APDU [13:36:03]CAPDU: 80 13 01 00 [13:36:03]Write to MH i2c: E2 08 00 B4 02 80 13 01 00 00 00 00 00 33 [13:36:03]Write i2c OK [13:36:03]MH_I2C_Read... [13:36:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:03]Read from MH i2c: E2 [13:36:03]MH_I2C_Read... [13:36:03]Read from MH i2c: E2 0E 00 [13:36:03]MH_I2C_Read... [13:36:03]Read from MH i2c: E2 0E 00 B4 02 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 7A [13:36:03]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [13:36:03]wFMCommunicate OK [13:36:03]SAM_PROTO_GetShiftState done [13:36:03]FM_GetShiftState done [13:36:03]req_shift_opened done [13:36:03]requested_item shift.open_date is exist - process it [13:36:03]req_shift_open_date [13:36:03]req_shift_open_date done [13:36:03]produce_requested_data done [13:36:03]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76842,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [13:36:03]process_action_free close_receipt [13:36:03]json_value_free [13:36:03]json_value_free done [13:36:03]process_json_proto returns [13:36:03]Send response to host [13:36:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76842,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [13:36:03]free response buf [13:36:03]execute_script done [13:36:03]execute_script returns [13:36:03]free content buf [13:36:03]Sock 7.Close socket [13:36:03]Sock 7.Thread stoped [13:36:07]OFD Sender: No OFD packet to send [13:36:12]OFD Sender: No OFD packet to send [13:36:17]OFD Sender: No OFD packet to send [13:36:22]OFD Sender: No OFD packet to send [13:36:27]OFD Sender: No OFD packet to send [13:36:32]OFD Sender: No OFD packet to send [13:36:37]OFD Sender: No OFD packet to send [13:36:42]OFD Sender: No OFD packet to send [13:36:47]OFD Sender: No OFD packet to send [13:36:52]OFD Sender: No OFD packet to send [13:36:57]OFD Sender: No OFD packet to send [13:37:02]OFD Sender: No OFD packet to send [13:37:07]OFD Sender: No OFD packet to send [13:37:12]OFD Sender: No OFD packet to send [13:37:17]OFD Sender: No OFD packet to send [13:37:22]OFD Sender: No OFD packet to send [13:37:27]OFD Sender: No OFD packet to send [13:37:32]OFD Sender: No OFD packet to send [13:37:37]OFD Sender: No OFD packet to send [13:37:42]OFD Sender: No OFD packet to send [13:37:47]OFD Sender: No OFD packet to send [13:37:52]OFD Sender: No OFD packet to send [13:37:57]OFD Sender: No OFD packet to send [13:38:02]OFD Sender: No OFD packet to send [13:38:07]OFD Sender: No OFD packet to send [13:38:12]OFD Sender: No OFD packet to send [13:38:17]OFD Sender: No OFD packet to send [13:38:22]OFD Sender: No OFD packet to send [13:38:25]accept exits with 9 [13:38:25]New connection [13:38:25]New thread 3066801508 created [13:38:25]Thread 3066658148 joined [13:38:25]Waiting for new connection... [13:38:25] Sock 9.Parse request [13:38:25]Sock 9.Check first char [13:38:25]Sock 9.First char is OK [13:38:25]request: POST /json_proto HTTP/1.0 [13:38:25]Method: POST [13:38:25]URL: /json_proto [13:38:25]Method is POST - this is cgi request [13:38:25]url: /json_proto [13:38:25]query_string will be loaded in cgi processing [13:38:25]execute_cgi json_proto POST (null) [13:38:25]execute_cgi path=json_proto method=POST [13:38:25]POST find Content-Length [13:38:25]Host: 172.17.62.5:8080 [13:38:25]Content-Length: 679 [13:38:25]Content-Type: application/json [13:38:25] [13:38:25]POST finish read [13:38:25]Found Content-Length = 679 [13:38:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 12.790, "sum" : 823.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 823.00, "payments": [ { "type": 0, "sum" : 823.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:25]execute_script... [13:38: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)191381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 12.790, "sum" : 823.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 823.00, "payments": [ { "type": 0, "sum" : 823.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:25]POST & json_proto [13:38:25]process_json_proto [13:38:25]json parsed OK: [13:38:25]protocol is kg_v1.0 [13:38:25]action value=close_receipt [13:38:25]process_action close_receipt [13:38:25]cmd_close_receipt [13:38:25]MH_GetDate [13:38:25]Write to MH i2c: F0 00 00 B5 02 A6 [13:38:25]Write i2c OK [13:38:25]MH_I2C_Read... [13:38:25]Read from MH i2c: F0 [13:38:25]MH_I2C_Read... [13:38:25]Read from MH i2c: F0 09 00 [13:38:25]MH_I2C_Read... [13:38:25]Read from MH i2c: F0 09 00 B5 02 00 D1 16 25 66 F4 E9 65 64 C7 [13:38:25]GetLastDocTimeStamp 1713706560 [13:38:25]current date 1713706705 [13:38:25]FM_GetShiftState [13:38:25]SAM_PROTO_GetShiftState [13:38:25]wFMCommunicate request_size=4 [13:38:25]MH_SAM_APDU [13:38:25]CAPDU: 80 13 01 00 [13:38:25]Write to MH i2c: E2 08 00 B6 02 80 13 01 00 00 00 00 00 35 [13:38:25]Write i2c OK [13:38:25]MH_I2C_Read... [13:38:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:25]Read from MH i2c: E2 [13:38:25]MH_I2C_Read... [13:38:25]Read from MH i2c: E2 0E 00 [13:38:25]MH_I2C_Read... [13:38:25]Read from MH i2c: E2 0E 00 B6 02 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 7C [13:38:25]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [13:38:25]wFMCommunicate OK [13:38:25]SAM_PROTO_GetShiftState done [13:38:25]FM_GetShiftState done [13:38:25]opened in 1713658965 [13:38:25]opened+sec_in_day 1713745365 [13:38:25]quantity*price = 82367 [13:38:25]sum+1 = 82369 [13:38:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 823.00 Внесено: 1000.00 СДАЧА: 177.00 НСП 1% : 7.29 НДС 12% : 87.47 Наличными: 823.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 99 21.04.2024 13:38 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76843 ФПД: 19098345091918 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T133825&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76843&fm=19098345091918&tin=02508201610067®Number=0000000000091573&sum=82300 [13:38:26]StoreToDocumentArchive [13:38:26]shift 372 fd 76843 [13:38:26]save to /storage/0372/doc_00076843 [13:38:26]save last doc name /storage/0372/doc_00076843 to /storage/kkm_last_doc_name [13:38:26]save OK [13:38:26]Clear old archive folders... [13:38:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:38:26]tlvbuf is B6EB5520 [13:38:26]SAM_PROTO_ClearQueue [13:38:26]wFMCommunicate request_size=4 [13:38:26]MH_SAM_APDU [13:38:26]CAPDU: 80 09 00 00 [13:38:26]Write to MH i2c: E2 08 00 C3 02 80 09 00 00 00 00 00 00 37 [13:38:26]Write i2c OK [13:38:26]MH_I2C_Read... [13:38:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:38:26]Read from MH i2c: E2 [13:38:26]MH_I2C_Read... [13:38:26]Read from MH i2c: E2 03 00 [13:38:26]MH_I2C_Read... [13:38:26]Read from MH i2c: E2 03 00 C3 02 00 90 00 39 [13:38:26]RAPDU: 90 00 [13:38:26]wFMCommunicate OK [13:38:26]SAM_PROTO_ClearQueue done [13:38:26]KKMCreateOFDPacket [13:38:26]OFDProtocolAddRootSTLVToBuf [13:38:26]FM_MakeSignedData [13:38:26]FM_MakeSignedData [13:38:26]SAM_PROTO_SignData [13:38:26]wFMCommunicate request_size=4 [13:38:26]MH_SAM_APDU [13:38:26]CAPDU: 80 0D 01 02 [13:38:26]Write to MH i2c: E2 08 00 C4 02 80 0D 01 02 00 00 00 00 3F [13:38:26]Write i2c OK [13:38:26]MH_I2C_Read... [13:38:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:38:26]Read from MH i2c: E2 [13:38:26]MH_I2C_Read... [13:38:26]Read from MH i2c: E2 03 00 [13:38:26]MH_I2C_Read... [13:38:26]Read from MH i2c: E2 03 00 C4 02 00 90 00 3A [13:38:26]RAPDU: 90 00 [13:38:26]wFMCommunicate OK [13:38:26]wFMCommunicate request_size=255 [13:38:26]MH_SAM_APDU [13:38: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 F6 31 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 C0 41 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 41 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 22 00 00 00 00 07 04 06 00 7C 41 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 D1 16 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 2B 2C 01 00 35 04 06 00 11 [13:38:26]Write to MH i2c: E2 02 01 C5 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 F6 31 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 C0 41 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 41 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 22 00 00 00 00 07 04 06 00 7C 41 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 D1 16 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 2B 2C 01 00 35 04 06 00 11 00 00 0A [13:38:26]Write i2c OK [13:38:26]MH_I2C_Read... [13:38:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:26]Read from MH i2c: E2 [13:38:26]MH_I2C_Read... [13:38:26]Read from MH i2c: E2 03 00 [13:38:26]MH_I2C_Read... [13:38:26]Read from MH i2c: E2 03 00 C5 02 00 90 00 3B [13:38:26]RAPDU: 90 00 [13:38:26]wFMCommunicate OK [13:38:26]wFMCommunicate request_size=10 [13:38:26]MH_SAM_APDU [13:38:26]CAPDU: 80 0D 02 02 05 5E AE 13 33 4E [13:38:26]Write to MH i2c: E2 0D 00 C6 02 80 0D 02 02 05 00 5E AE 13 33 4E 00 00 EC [13:38:26]Write i2c OK [13:38:26]MH_I2C_Read... [13:38:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:26]Read from MH i2c: E2 [13:38:26]MH_I2C_Read... [13:38:26]Read from MH i2c: E2 03 00 [13:38:26]MH_I2C_Read... [13:38:26]Read from MH i2c: E2 03 00 C6 02 00 90 00 3C [13:38:26]RAPDU: 90 00 [13:38:26]wFMCommunicate OK [13:38:26]wFMCommunicate request_size=4 [13:38:26]MH_SAM_APDU [13:38:26]CAPDU: 80 0D 03 02 [13:38:26]Write to MH i2c: E2 08 00 C7 02 80 0D 03 02 00 00 00 00 44 [13:38:26]Write i2c OK [13:38:26]MH_I2C_Read... [13:38:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:38:26]Read from MH i2c: E2 [13:38:26]MH_I2C_Read... [13:38:26]Read from MH i2c: E2 0B 00 [13:38:26]MH_I2C_Read... [13:38:26]Read from MH i2c: E2 0B 00 C7 02 00 8A 59 29 EC 9F 4F B8 30 90 00 13 [13:38:26]RAPDU: 8A 59 29 EC 9F 4F B8 30 90 00 [13:38:26]wFMCommunicate OK [13:38:26]SAM_PROTO_SignData done [13:38:26]FM_MakeSignedData done [13:38:26]CreateOFDProtocolMessage [13:38:26]wFMCommunicate request_size=4 [13:38:26]MH_SAM_APDU [13:38:26]CAPDU: 80 11 00 00 [13:38:26]Write to MH i2c: E2 08 00 C8 02 80 11 00 00 00 00 00 00 44 [13:38:26]Write i2c OK [13:38:26]MH_I2C_Read... [13:38:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:26]Read from MH i2c: E2 [13:38:26]MH_I2C_Read... [13:38:26]Read from MH i2c: E2 17 00 [13:38:26]MH_I2C_Read... [13:38:26]Read from MH i2c: E2 17 00 C8 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 97 [13:38:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:38:26]wFMCommunicate OK [13:38:26]CreateOFDProtocolMessage done [13:38:26]OFDSenderStorePacket 76843 [13:38:26]StoreOFDPacket docnum=76843 [13:38:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 8E A3 07 01 83 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 F6 31 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 C0 41 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 41 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 22 00 00 00 00 07 04 06 00 7C 41 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 D1 16 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 2B 2C 01 00 35 04 06 00 11 5E AE 13 33 4E 8A 59 29 EC 9F 4F B8 30 [13:38:26]CheckFolder [13:38:26]dirname=/storage/ofd_packets [13:38:26]CheckFolder done [13:38:26]ProducePacketName [13:38:26]name=ofd_packets/00076843 [13:38:26]NVStorageSaveData ofd_packets/00076843 [13:38:26]File name is /storage/ofd_packets/00076843 [13:38:26]Write 301 bytes [13:38:26]NVStorageSaveData done [13:38:26]OFDSenderStorePacket done [13:38:26]KKMCreateOFDPacket done [13:38:26]NVStorageSaveData kkm_last_timestamp [13:38:26]File name is /storage/kkm_last_timestamp [13:38:26]Write 4 bytes [13:38:26]NVStorageSaveData done [13:38:26]ExternCall_PrintAddStr [13:38:26]wPrintStart [13:38:26]Write to MH i2c: 01 00 00 C9 02 CB [13:38:26]Write i2c OK [13:38:26]MH_I2C_Read... [13:38:26]Read from MH i2c: 01 [13:38:26]MH_I2C_Read... [13:38:26]Read from MH i2c: 01 07 00 [13:38:26]MH_I2C_Read... [13:38:26]Read from MH i2c: 01 07 00 C9 02 00 00 00 00 00 FF 0F E0 [13:38:26]RasterBufferAndPrint [13:38:26]line Счет N : (1)191381 [13:38:26]line ИНН: 02508201610067 [13:38:26]line Контрольно-Кассовый Чек [13:38:26]line ПРОДАЖА [13:38:26]line ТРК (МРК, ГНК) : 43 [13:38:26]line Товар: 2710124130 [13:38:26]line Аи-92-К-5 [13:38:26]line 12.790 * 64.40 [13:38:26]line = 823.68 [13:38:26]line НДС 12% НСП 1% [13:38:26]line > о реализуемом товаре [13:38:26]line ОКРУГЛЕНИЕ: -0.68 [13:38:26]line ИТОГО: 823.00 [13:38:26]line Внесено: 1000.00 [13:38:26]line СДАЧА: 177.00 [13:38:26]line НСП 1% : 7.29 [13:38:26]line НДС 12% : 87.47 [13:38:26]line Наличными: 823.00 [13:38:26]line Безнал.: 0.00 [13:38:26]line Место: АЗС № 106 "Партнер Нефть" [13:38:26]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [13:38:26]line СНО: Общий режим [13:38:26]line Чек 99 21.04.2024 13:38 [13:38:26]line Смена: 372 ФФД: 1.0 [13:38:26]line ЗНМ: 0300000141 [13:38:26]line РНМ: 0000000000091573 [13:38:26]line Версия ККМ: 001 [13:38:26]line ФМ: 0000000000874652 [13:38:26]line ФД: 76843 [13:38:26]line ФПД: 19098345091918 [13:38:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T133825&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76843&fm=19098345091918&tin=02508201610067®Number=0000000000091573&sum=82300 [13:38:27]OFD Sender: Processing packet 76843 [packets to send 129, broken 128] [13:38:27]ProducePacketName [13:38:27]name=ofd_packets/00076843 [13:38:27]OFD Sender: To server: pG, [13:38:27]CommunicateWithHost lk.salyk.kg:30040 [13:38:27]ConnectInit lk.salyk.kg [13:38:27]written 0, free lines is 4095 [13:38:27]Connected sock=10 [13:38:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 8E A3 07 01 83 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 F6 31 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 C0 41 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 41 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 22 00 00 00 00 07 04 06 00 7C 41 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 D1 16 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 2B 2C 01 00 35 04 06 00 11 5E AE 13 33 4E 8A 59 29 EC 9F 4F B8 30 [13:38:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 D2 B4 47 00 E0 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 34 36 35 32 10 04 04 00 2B 2C 01 00 F4 03 04 00 57 BE 24 66 B6 04 01 00 00 55 CF 68 97 97 46 33 C5 [13:38:27]CommunicateWithHost err = 0 [13:38:27]CheckOFDResponse [13:38:27]1017 (14) - 77093643461234 [13:38:27]1041 (16) - 0000000000874652 [13:38:27]1040 (4) - 76843 [13:38:27]1012 (4) - 21.04.2024 07:20 [13:38:27]1206 (1) - 0 [13:38:27]OFD Sender: Remove packet 76843 [13:38:27]ProducePacketName [13:38:27]name=ofd_packets/00076843 [13:38:27]NVStorageDeleteData [13:38:27]Write to MH i2c: 01 00 00 F3 02 F5 [13:38:27]Write i2c OK [13:38:27]MH_I2C_Read... [13:38:27]Read from MH i2c: 01 [13:38:27]MH_I2C_Read... [13:38:27]Read from MH i2c: 01 07 00 [13:38:27]MH_I2C_Read... [13:38:27]Read from MH i2c: 01 07 00 F3 02 00 00 00 00 00 F2 0C FA [13:38:27]RasterBufferAndPrint [13:38:27]line [13:38:27]line [13:38:27]line [13:38:27]line [13:38:27]line [13:38:27]written 0, free lines is 3318 [13:38:27]MH_Cut [13:38:27]Write to MH i2c: D1 01 00 FA 02 01 CE [13:38:27]Write i2c OK [13:38:27]MH_I2C_Read... [13:38:27]Read from MH i2c: D1 [13:38:27]MH_I2C_Read... [13:38:27]Read from MH i2c: D1 01 00 [13:38:27]MH_I2C_Read... [13:38:27]Read from MH i2c: D1 01 00 FA 02 00 CD [13:38:27]Write to MH i2c: 01 00 00 FB 02 FD [13:38:27]Write i2c OK [13:38:27]MH_I2C_Read... [13:38:27]OFD Sender: No OFD packet to send [13:38:28]*** Cut start [13:38:28]*** Partial cut [13:38:28]*** CUTSNS_PIN = 1 [13:38:28]*** CUTSNS_PIN = 0 [13:38:28]*** Brake cut motor [13:38:28]Read from MH i2c: 01 [13:38:28]MH_I2C_Read... [13:38:28]*** Stop cut motor [13:38:28]*** Cut end [13:38:28]Read from MH i2c: 01 07 00 [13:38:28]MH_I2C_Read... [13:38:28]Read from MH i2c: 01 07 00 FB 02 00 00 00 00 00 FF 0F 12 [13:38:28]process_action close_receipt done [13:38:28]requested_data is exist [13:38:28]produce_requested_data [13:38:28]requested_item fm.sn is exist - process it [13:38:28]wFMCommunicate request_size=4 [13:38:28]MH_SAM_APDU [13:38:28]CAPDU: 80 11 00 00 [13:38:28]Write to MH i2c: E2 08 00 FC 02 80 11 00 00 00 00 00 00 78 [13:38:28]Write i2c OK [13:38:28]MH_I2C_Read... [13:38:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:28]Read from MH i2c: E2 [13:38:28]MH_I2C_Read... [13:38:28]Read from MH i2c: E2 17 00 [13:38:28]MH_I2C_Read... [13:38:28]Read from MH i2c: E2 17 00 FC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 CB [13:38:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:38:28]wFMCommunicate OK [13:38:28]requested_item fd.num is exist - process it [13:38:28]SAM_PROTO_GetFieldsCounters [13:38:28]wFMCommunicate request_size=4 [13:38:28]MH_SAM_APDU [13:38:28]CAPDU: 80 13 00 00 [13:38:28]Write to MH i2c: E2 08 00 FD 02 80 13 00 00 00 00 00 00 7B [13:38:28]Write i2c OK [13:38:28]MH_I2C_Read... [13:38:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:38:29]Read from MH i2c: E2 [13:38:29]MH_I2C_Read... [13:38:29]Read from MH i2c: E2 62 00 [13:38:29]MH_I2C_Read... [13:38:29]Read from MH i2c: E2 62 00 FD 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 2B 2C 01 00 0E 04 04 00 74 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 92 [13:38: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 2B 2C 01 00 0E 04 04 00 74 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 [13:38:29]wFMCommunicate OK [13:38:29]SAM_PROTO_GetFieldsCounters done [13:38:29]requested_item shift.num is exist - process it [13:38:29]requested_item shift.opened is exist - process it [13:38:29]req_shift_opened [13:38:29]FM_GetShiftState [13:38:29]SAM_PROTO_GetShiftState [13:38:29]wFMCommunicate request_size=4 [13:38:29]MH_SAM_APDU [13:38:29]CAPDU: 80 13 01 00 [13:38:29]Write to MH i2c: E2 08 00 FE 02 80 13 01 00 00 00 00 00 7D [13:38:29]Write i2c OK [13:38:29]MH_I2C_Read... [13:38:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:29]Read from MH i2c: E2 [13:38:29]MH_I2C_Read... [13:38:29]Read from MH i2c: E2 0E 00 [13:38:29]MH_I2C_Read... [13:38:29]Read from MH i2c: E2 0E 00 FE 02 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 C4 [13:38:29]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [13:38:29]wFMCommunicate OK [13:38:29]SAM_PROTO_GetShiftState done [13:38:29]FM_GetShiftState done [13:38:29]req_shift_opened done [13:38:29]requested_item shift.open_date is exist - process it [13:38:29]req_shift_open_date [13:38:29]req_shift_open_date done [13:38:29]produce_requested_data done [13:38:29]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76843,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [13:38:29]process_action_free close_receipt [13:38:29]json_value_free [13:38:29]json_value_free done [13:38:29]process_json_proto returns [13:38:29]Send response to host [13:38:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76843,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [13:38:29]free response buf [13:38:29]execute_script done [13:38:29]execute_script returns [13:38:29]free content buf [13:38:29]Sock 9.Close socket [13:38:29]Sock 9.Thread stoped [13:38:32]OFD Sender: No OFD packet to send [13:38:38]OFD Sender: No OFD packet to send [13:38:43]OFD Sender: No OFD packet to send [13:38:48]OFD Sender: No OFD packet to send [13:38:53]OFD Sender: No OFD packet to send [13:38:58]OFD Sender: No OFD packet to send [13:39:03]OFD Sender: No OFD packet to send [13:39:08]OFD Sender: No OFD packet to send [13:39:13]OFD Sender: No OFD packet to send [13:39:18]OFD Sender: No OFD packet to send [13:39:23]OFD Sender: No OFD packet to send [13:39:28]OFD Sender: No OFD packet to send [13:39:33]OFD Sender: No OFD packet to send [13:39:38]OFD Sender: No OFD packet to send [13:39:43]OFD Sender: No OFD packet to send [13:39:48]OFD Sender: No OFD packet to send [13:39:53]OFD Sender: No OFD packet to send [13:39:58]OFD Sender: No OFD packet to send [13:40:03]OFD Sender: No OFD packet to send [13:40:08]OFD Sender: No OFD packet to send [13:40:13]OFD Sender: No OFD packet to send [13:40:18]OFD Sender: No OFD packet to send [13:40:23]OFD Sender: No OFD packet to send [13:40:28]OFD Sender: No OFD packet to send [13:40:33]OFD Sender: No OFD packet to send [13:40:38]OFD Sender: No OFD packet to send [13:40:43]OFD Sender: No OFD packet to send [13:40:48]OFD Sender: No OFD packet to send [13:40:53]OFD Sender: No OFD packet to send [13:40:58]OFD Sender: No OFD packet to send [13:41:03]OFD Sender: No OFD packet to send [13:41:08]OFD Sender: No OFD packet to send [13:41:13]OFD Sender: No OFD packet to send [13:41:18]OFD Sender: No OFD packet to send [13:41:23]OFD Sender: No OFD packet to send [13:41:28]OFD Sender: No OFD packet to send [13:41:33]OFD Sender: No OFD packet to send [13:41:36]accept exits with 7 [13:41:36]New connection [13:41:36]New thread 3066658148 created [13:41:36]Thread 3066801508 joined [13:41:36]Waiting for new connection... [13:41:36] Sock 7.Parse request [13:41:36]Sock 7.Check first char [13:41:36]Sock 7.First char is OK [13:41:36]request: POST /json_proto HTTP/1.0 [13:41:36]Method: POST [13:41:36]URL: /json_proto [13:41:36]Method is POST - this is cgi request [13:41:36]url: /json_proto [13:41:36]query_string will be loaded in cgi processing [13:41:36]execute_cgi json_proto POST (null) [13:41:36]execute_cgi path=json_proto method=POST [13:41:36]POST find Content-Length [13:41:36]Host: 172.17.62.5:8080 [13:41:36]Content-Length: 674 [13:41:36]Content-Type: application/json [13:41:36] [13:41:36]POST finish read [13:41:36]Found Content-Length = 674 [13:41:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:36]execute_script... [13:41:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:36]POST & json_proto [13:41:36]process_json_proto [13:41:36]json parsed OK: [13:41:36]protocol is kg_v1.0 [13:41:36]action value=close_receipt [13:41:36]process_action close_receipt [13:41:36]cmd_close_receipt [13:41:36]MH_GetDate [13:41:36]Write to MH i2c: F0 00 00 FF 02 F0 [13:41:36]Write i2c OK [13:41:36]MH_I2C_Read... [13:41:36]Read from MH i2c: F0 [13:41:36]MH_I2C_Read... [13:41:36]Read from MH i2c: F0 09 00 [13:41:36]MH_I2C_Read... [13:41:36]Read from MH i2c: F0 09 00 FF 02 00 91 17 25 66 F4 E9 65 64 D2 [13:41:36]GetLastDocTimeStamp 1713706705 [13:41:36]current date 1713706897 [13:41:36]FM_GetShiftState [13:41:36]SAM_PROTO_GetShiftState [13:41:36]wFMCommunicate request_size=4 [13:41:36]MH_SAM_APDU [13:41:36]CAPDU: 80 13 01 00 [13:41:36]Write to MH i2c: E2 08 00 00 03 80 13 01 00 00 00 00 00 80 [13:41:36]Write i2c OK [13:41:36]MH_I2C_Read... [13:41:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:36]Read from MH i2c: E2 [13:41:36]MH_I2C_Read... [13:41:36]Read from MH i2c: E2 0E 00 [13:41:36]MH_I2C_Read... [13:41:36]Read from MH i2c: E2 0E 00 00 03 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 C7 [13:41:36]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [13:41:36]wFMCommunicate OK [13:41:36]SAM_PROTO_GetShiftState done [13:41:36]FM_GetShiftState done [13:41:36]opened in 1713658965 [13:41:36]opened+sec_in_day 1713745365 [13:41:36]quantity*price = 50009 [13:41:36]sum+1 = 50010 [13:41:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 100 21.04.2024 13:41 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76844 ФПД: 94199811412352 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T134137&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76844&fm=94199811412352&tin=02508201610067®Number=0000000000091573&sum=50000 [13:41:37]StoreToDocumentArchive [13:41:37]shift 372 fd 76844 [13:41:37]save to /storage/0372/doc_00076844 [13:41:37]save last doc name /storage/0372/doc_00076844 to /storage/kkm_last_doc_name [13:41:37]save OK [13:41:37]Clear old archive folders... [13:41:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:41:37]tlvbuf is 01036D70 [13:41:37]SAM_PROTO_ClearQueue [13:41:37]wFMCommunicate request_size=4 [13:41:37]MH_SAM_APDU [13:41:37]CAPDU: 80 09 00 00 [13:41:37]Write to MH i2c: E2 08 00 0D 03 80 09 00 00 00 00 00 00 82 [13:41:37]Write i2c OK [13:41:37]MH_I2C_Read... [13:41:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:41:37]Read from MH i2c: E2 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: E2 03 00 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: E2 03 00 0D 03 00 90 00 84 [13:41:37]RAPDU: 90 00 [13:41:37]wFMCommunicate OK [13:41:37]SAM_PROTO_ClearQueue done [13:41:37]KKMCreateOFDPacket [13:41:37]OFDProtocolAddRootSTLVToBuf [13:41:37]FM_MakeSignedData [13:41:37]FM_MakeSignedData [13:41:37]SAM_PROTO_SignData [13:41:37]wFMCommunicate request_size=4 [13:41:37]MH_SAM_APDU [13:41:37]CAPDU: 80 0D 01 02 [13:41:37]Write to MH i2c: E2 08 00 0E 03 80 0D 01 02 00 00 00 00 8A [13:41:37]Write i2c OK [13:41:37]MH_I2C_Read... [13:41:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:41:37]Read from MH i2c: E2 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: E2 03 00 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: E2 03 00 0E 03 00 90 00 85 [13:41:37]RAPDU: 90 00 [13:41:37]wFMCommunicate OK [13:41:37]wFMCommunicate request_size=255 [13:41:37]MH_SAM_APDU [13:41:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 91 17 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 2C 2C 01 00 35 04 06 00 55 AC 9A 4C [13:41:37]Write to MH i2c: E2 02 01 0F 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 64 00 00 00 F4 03 04 00 91 17 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 2C 2C 01 00 35 04 06 00 55 AC 9A 4C 00 00 80 [13:41:37]Write i2c OK [13:41:37]MH_I2C_Read... [13:41:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:37]Read from MH i2c: E2 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: E2 03 00 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: E2 03 00 0F 03 00 90 00 86 [13:41:37]RAPDU: 90 00 [13:41:37]wFMCommunicate OK [13:41:37]wFMCommunicate request_size=7 [13:41:37]MH_SAM_APDU [13:41:37]CAPDU: 80 0D 02 02 02 11 80 [13:41:37]Write to MH i2c: E2 0A 00 10 03 80 0D 02 02 02 00 11 80 00 00 22 [13:41:37]Write i2c OK [13:41:37]MH_I2C_Read... [13:41:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:37]Read from MH i2c: E2 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: E2 03 00 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: E2 03 00 10 03 00 90 00 87 [13:41:37]RAPDU: 90 00 [13:41:37]wFMCommunicate OK [13:41:37]wFMCommunicate request_size=4 [13:41:37]MH_SAM_APDU [13:41:37]CAPDU: 80 0D 03 02 [13:41:37]Write to MH i2c: E2 08 00 11 03 80 0D 03 02 00 00 00 00 8F [13:41:37]Write i2c OK [13:41:37]MH_I2C_Read... [13:41:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:41:37]Read from MH i2c: E2 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: E2 0B 00 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: E2 0B 00 11 03 00 7A E6 84 82 1D 37 FD 75 90 00 BC [13:41:37]RAPDU: 7A E6 84 82 1D 37 FD 75 90 00 [13:41:37]wFMCommunicate OK [13:41:37]SAM_PROTO_SignData done [13:41:37]FM_MakeSignedData done [13:41:37]CreateOFDProtocolMessage [13:41:37]wFMCommunicate request_size=4 [13:41:37]MH_SAM_APDU [13:41:37]CAPDU: 80 11 00 00 [13:41:37]Write to MH i2c: E2 08 00 12 03 80 11 00 00 00 00 00 00 8F [13:41:37]Write i2c OK [13:41:37]MH_I2C_Read... [13:41:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:38]Read from MH i2c: E2 [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: E2 17 00 [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: E2 17 00 12 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 E2 [13:41:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:41:38]wFMCommunicate OK [13:41:38]CreateOFDProtocolMessage done [13:41:38]OFDSenderStorePacket 76844 [13:41:38]StoreOFDPacket docnum=76844 [13:41:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 45 7C 04 01 BF F6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 91 17 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 2C 2C 01 00 35 04 06 00 55 AC 9A 4C 11 80 7A E6 84 82 1D 37 FD 75 [13:41:38]CheckFolder [13:41:38]dirname=/storage/ofd_packets [13:41:38]CheckFolder done [13:41:38]ProducePacketName [13:41:38]name=ofd_packets/00076844 [13:41:38]NVStorageSaveData ofd_packets/00076844 [13:41:38]File name is /storage/ofd_packets/00076844 [13:41:38]Write 298 bytes [13:41:38]NVStorageSaveData done [13:41:38]OFDSenderStorePacket done [13:41:38]KKMCreateOFDPacket done [13:41:38]NVStorageSaveData kkm_last_timestamp [13:41:38]File name is /storage/kkm_last_timestamp [13:41:38]Write 4 bytes [13:41:38]NVStorageSaveData done [13:41:38]ExternCall_PrintAddStr [13:41:38]wPrintStart [13:41:38]Write to MH i2c: 01 00 00 13 03 16 [13:41:38]Write i2c OK [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: 01 [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: 01 07 00 [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: 01 07 00 13 03 00 00 00 00 00 FF 0F 2B [13:41:38]RasterBufferAndPrint [13:41:38]line Счет N : (1)191382 [13:41:38]line ИНН: 02508201610067 [13:41:38]line Контрольно-Кассовый Чек [13:41:38]line ПРОДАЖА [13:41:38]line ТРК (МРК, ГНК) : 51 [13:41:38]line Товар: 2710194210 [13:41:38]line ДТ-К-5 [13:41:38]line 6.860 * 72.90 [13:41:38]line = 500.09 [13:41:38]line НДС 12% НСП 1% [13:41:38]line > о реализуемом товаре [13:41:38]line ОКРУГЛЕНИЕ: -0.09 [13:41:38]line ИТОГО: 500.00 [13:41:38]line Внесено: 500.00 [13:41:38]line СДАЧА: 0.00 [13:41:38]line НСП 1% : 4.43 [13:41:38]line НДС 12% : 53.11 [13:41:38]line Наличными: 500.00 [13:41:38]line Безнал.: 0.00 [13:41:38]line Место: АЗС № 106 "Партнер Нефть" [13:41:38]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [13:41:38]line СНО: Общий режим [13:41:38]line Чек 100 21.04.2024 13:41 [13:41:38]line Смена: 372 ФФД: 1.0 [13:41:38]line ЗНМ: 0300000141 [13:41:38]line РНМ: 0000000000091573 [13:41:38]line Версия ККМ: 001 [13:41:38]line ФМ: 0000000000874652 [13:41:38]line ФД: 76844 [13:41:38]line ФПД: 94199811412352 [13:41:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T134137&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76844&fm=94199811412352&tin=02508201610067®Number=0000000000091573&sum=50000 [13:41:38]OFD Sender: Processing packet 76844 [packets to send 129, broken 128] [13:41:38]ProducePacketName [13:41:38]name=ofd_packets/00076844 [13:41:38]OFD Sender: To server: pG, [13:41:38]CommunicateWithHost lk.salyk.kg:30040 [13:41:38]ConnectInit lk.salyk.kg [13:41:38]written 0, free lines is 4095 [13:41:38]Connected sock=10 [13:41:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 45 7C 04 01 BF F6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 91 17 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 2C 2C 01 00 35 04 06 00 55 AC 9A 4C 11 80 7A E6 84 82 1D 37 FD 75 [13:41:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 69 BE 47 00 BB 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 34 36 35 32 10 04 04 00 2C 2C 01 00 F4 03 04 00 16 BF 24 66 B6 04 01 00 00 AA 28 C6 22 08 63 CF 3F [13:41:38]CommunicateWithHost err = 0 [13:41:38]CheckOFDResponse [13:41:38]1017 (14) - 77093643461234 [13:41:38]1041 (16) - 0000000000874652 [13:41:38]1040 (4) - 76844 [13:41:38]1012 (4) - 21.04.2024 07:24 [13:41:38]1206 (1) - 0 [13:41:38]OFD Sender: Remove packet 76844 [13:41:38]ProducePacketName [13:41:38]name=ofd_packets/00076844 [13:41:38]NVStorageDeleteData [13:41:38]Write to MH i2c: 01 00 00 3D 03 40 [13:41:38]Write i2c OK [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: 01 [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: 01 07 00 [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: 01 07 00 3D 03 00 00 00 00 00 EB 0C 3E [13:41:38]RasterBufferAndPrint [13:41:38]line [13:41:38]line [13:41:38]line [13:41:38]line [13:41:38]line [13:41:38]written 0, free lines is 3310 [13:41:38]MH_Cut [13:41:38]Write to MH i2c: D1 01 00 44 03 01 19 [13:41:38]Write i2c OK [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: D1 [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: D1 01 00 [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: D1 01 00 44 03 00 18 [13:41:38]Write to MH i2c: 01 00 00 45 03 48 [13:41:38]Write i2c OK [13:41:38]MH_I2C_Read... [13:41:39]OFD Sender: No OFD packet to send [13:41:39]*** Cut start [13:41:39]*** Partial cut [13:41:39]*** CUTSNS_PIN = 1 [13:41:39]*** CUTSNS_PIN = 0 [13:41:39]*** Brake cut motor [13:41:40]Read from MH i2c: 01 [13:41:40]MH_I2C_Read... [13:41:40]*** Stop cut motor [13:41:40]*** Cut end [13:41:40]Read from MH i2c: 01 07 00 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: 01 07 00 45 03 00 00 00 00 00 FF 0F 5D [13:41:40]process_action close_receipt done [13:41:40]requested_data is exist [13:41:40]produce_requested_data [13:41:40]requested_item fm.sn is exist - process it [13:41:40]wFMCommunicate request_size=4 [13:41:40]MH_SAM_APDU [13:41:40]CAPDU: 80 11 00 00 [13:41:40]Write to MH i2c: E2 08 00 46 03 80 11 00 00 00 00 00 00 C3 [13:41:40]Write i2c OK [13:41:40]MH_I2C_Read... [13:41:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:40]Read from MH i2c: E2 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 17 00 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 17 00 46 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 16 [13:41:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:41:40]wFMCommunicate OK [13:41:40]requested_item fd.num is exist - process it [13:41:40]SAM_PROTO_GetFieldsCounters [13:41:40]wFMCommunicate request_size=4 [13:41:40]MH_SAM_APDU [13:41:40]CAPDU: 80 13 00 00 [13:41:40]Write to MH i2c: E2 08 00 47 03 80 13 00 00 00 00 00 00 C6 [13:41:40]Write i2c OK [13:41:40]MH_I2C_Read... [13:41:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:40]Read from MH i2c: E2 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 62 00 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 62 00 47 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 2C 2C 01 00 0E 04 04 00 74 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 E1 [13:41:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 2C 2C 01 00 0E 04 04 00 74 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 [13:41:40]wFMCommunicate OK [13:41:40]SAM_PROTO_GetFieldsCounters done [13:41:40]requested_item shift.num is exist - process it [13:41:40]requested_item shift.opened is exist - process it [13:41:40]req_shift_opened [13:41:40]FM_GetShiftState [13:41:40]SAM_PROTO_GetShiftState [13:41:40]wFMCommunicate request_size=4 [13:41:40]MH_SAM_APDU [13:41:40]CAPDU: 80 13 01 00 [13:41:40]Write to MH i2c: E2 08 00 48 03 80 13 01 00 00 00 00 00 C8 [13:41:40]Write i2c OK [13:41:40]MH_I2C_Read... [13:41:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:40]Read from MH i2c: E2 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 0E 00 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 0E 00 48 03 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 0F [13:41:40]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [13:41:40]wFMCommunicate OK [13:41:40]SAM_PROTO_GetShiftState done [13:41:40]FM_GetShiftState done [13:41:40]req_shift_opened done [13:41:40]requested_item shift.open_date is exist - process it [13:41:40]req_shift_open_date [13:41:40]req_shift_open_date done [13:41:40]produce_requested_data done [13:41:40]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76844,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [13:41:40]process_action_free close_receipt [13:41:40]json_value_free [13:41:40]json_value_free done [13:41:40]process_json_proto returns [13:41:40]Send response to host [13:41:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76844,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [13:41:40]free response buf [13:41:40]execute_script done [13:41:40]execute_script returns [13:41:40]free content buf [13:41:40]Sock 7.Close socket [13:41:40]Sock 7.Thread stoped [13:41:44]OFD Sender: No OFD packet to send [13:41:49]OFD Sender: No OFD packet to send [13:41:54]OFD Sender: No OFD packet to send [13:41:59]OFD Sender: No OFD packet to send [13:42:04]OFD Sender: No OFD packet to send [13:42:09]OFD Sender: No OFD packet to send [13:42:14]OFD Sender: No OFD packet to send [13:42:19]OFD Sender: No OFD packet to send [13:42:24]OFD Sender: No OFD packet to send [13:42:29]OFD Sender: No OFD packet to send [13:42:34]OFD Sender: No OFD packet to send [13:42:39]OFD Sender: No OFD packet to send [13:42:44]OFD Sender: No OFD packet to send [13:42:49]OFD Sender: No OFD packet to send [13:42:54]OFD Sender: No OFD packet to send [13:42:59]OFD Sender: No OFD packet to send [13:43:04]OFD Sender: No OFD packet to send [13:43:09]OFD Sender: No OFD packet to send [13:43:14]OFD Sender: No OFD packet to send [13:43:19]OFD Sender: No OFD packet to send [13:43:24]OFD Sender: No OFD packet to send [13:43:29]OFD Sender: No OFD packet to send [13:43:34]OFD Sender: No OFD packet to send [13:43:39]OFD Sender: No OFD packet to send [13:43:44]OFD Sender: No OFD packet to send [13:43:49]OFD Sender: No OFD packet to send [13:43:54]OFD Sender: No OFD packet to send [13:43:59]OFD Sender: No OFD packet to send [13:44:04]OFD Sender: No OFD packet to send [13:44:09]OFD Sender: No OFD packet to send [13:44:14]OFD Sender: No OFD packet to send [13:44:19]OFD Sender: No OFD packet to send [13:44:24]OFD Sender: No OFD packet to send [13:44:29]OFD Sender: No OFD packet to send [13:44:34]OFD Sender: No OFD packet to send [13:44:39]OFD Sender: No OFD packet to send [13:44:44]OFD Sender: No OFD packet to send [13:44:49]OFD Sender: No OFD packet to send [13:44:54]OFD Sender: No OFD packet to send [13:44:59]OFD Sender: No OFD packet to send [13:45:04]OFD Sender: No OFD packet to send [13:45:09]OFD Sender: No OFD packet to send [13:45:14]OFD Sender: No OFD packet to send [13:45:19]OFD Sender: No OFD packet to send [13:45:24]OFD Sender: No OFD packet to send [13:45:29]OFD Sender: No OFD packet to send [13:45:34]OFD Sender: No OFD packet to send [13:45:39]OFD Sender: No OFD packet to send [13:45:44]OFD Sender: No OFD packet to send [13:45:49]OFD Sender: No OFD packet to send [13:45:54]OFD Sender: No OFD packet to send [13:45:59]OFD Sender: No OFD packet to send [13:46:04]OFD Sender: No OFD packet to send [13:46:09]OFD Sender: No OFD packet to send [13:46:14]OFD Sender: No OFD packet to send [13:46:19]OFD Sender: No OFD packet to send [13:46:24]OFD Sender: No OFD packet to send [13:46:29]OFD Sender: No OFD packet to send [13:46:34]OFD Sender: No OFD packet to send [13:46:39]OFD Sender: No OFD packet to send [13:46:44]OFD Sender: No OFD packet to send [13:46:49]OFD Sender: No OFD packet to send [13:46:54]OFD Sender: No OFD packet to send [13:46:59]OFD Sender: No OFD packet to send [13:47:04]OFD Sender: No OFD packet to send [13:47:09]OFD Sender: No OFD packet to send [13:47:14]accept exits with 9 [13:47:14]New connection [13:47:14]New thread 3066801508 created [13:47:14]Thread 3066658148 joined [13:47:14]Waiting for new connection... [13:47:14] Sock 9.Parse request [13:47:14]Sock 9.Check first char [13:47:14]Sock 9.First char is OK [13:47:14]request: POST /json_proto HTTP/1.0 [13:47:14]Method: POST [13:47:14]URL: /json_proto [13:47:14]Method is POST - this is cgi request [13:47:14]url: /json_proto [13:47:14]query_string will be loaded in cgi processing [13:47:14]execute_cgi json_proto POST (null) [13:47:14]execute_cgi path=json_proto method=POST [13:47:14]POST find Content-Length [13:47:14]Host: 172.17.62.5:8080 [13:47:14]Content-Length: 675 [13:47:14]Content-Type: application/json [13:47:14] [13:47:14]POST finish read [13:47:14]Found Content-Length = 675 [13:47:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191383", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 18.350, "sum" : 1200.09, "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:47:14]execute_script... [13:47: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)191383", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 18.350, "sum" : 1200.09, "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:47:14]POST & json_proto [13:47:14]process_json_proto [13:47:14]json parsed OK: [13:47:14]protocol is kg_v1.0 [13:47:14]action value=close_receipt [13:47:14]process_action close_receipt [13:47:14]cmd_close_receipt [13:47:14]MH_GetDate [13:47:14]Write to MH i2c: F0 00 00 49 03 3B [13:47:14]Write i2c OK [13:47:14]MH_I2C_Read... [13:47:14]Read from MH i2c: F0 [13:47:14]MH_I2C_Read... [13:47:14]Read from MH i2c: F0 09 00 [13:47:14]MH_I2C_Read... [13:47:14]Read from MH i2c: F0 09 00 49 03 00 E2 18 25 66 F4 E9 65 64 6F [13:47:14]GetLastDocTimeStamp 1713706897 [13:47:14]current date 1713707234 [13:47:14]FM_GetShiftState [13:47:14]SAM_PROTO_GetShiftState [13:47:14]wFMCommunicate request_size=4 [13:47:14]MH_SAM_APDU [13:47:14]CAPDU: 80 13 01 00 [13:47:14]Write to MH i2c: E2 08 00 4A 03 80 13 01 00 00 00 00 00 CA [13:47:14]Write i2c OK [13:47:14]MH_I2C_Read... [13:47:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:14]Read from MH i2c: E2 [13:47:14]MH_I2C_Read... [13:47:14]Read from MH i2c: E2 0E 00 [13:47:14]MH_I2C_Read... [13:47:14]Read from MH i2c: E2 0E 00 4A 03 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 11 [13:47:14]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [13:47:14]wFMCommunicate OK [13:47:14]SAM_PROTO_GetShiftState done [13:47:14]FM_GetShiftState done [13:47:14]opened in 1713658965 [13:47:14]opened+sec_in_day 1713745365 [13:47:14]quantity*price = 120009 [13:47:14]sum+1 = 120010 [13:47:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 101 21.04.2024 13:47 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76845 ФПД: 55826619069280 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T134714&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76845&fm=55826619069280&tin=02508201610067®Number=0000000000091573&sum=120000 [13:47:15]StoreToDocumentArchive [13:47:15]shift 372 fd 76845 [13:47:15]save to /storage/0372/doc_00076845 [13:47:15]save last doc name /storage/0372/doc_00076845 to /storage/kkm_last_doc_name [13:47:15]save OK [13:47:15]Clear old archive folders... [13:47:15]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:47:15]tlvbuf is 010219C0 [13:47:15]SAM_PROTO_ClearQueue [13:47:15]wFMCommunicate request_size=4 [13:47:15]MH_SAM_APDU [13:47:15]CAPDU: 80 09 00 00 [13:47:15]Write to MH i2c: E2 08 00 57 03 80 09 00 00 00 00 00 00 CC [13:47:15]Write i2c OK [13:47:15]MH_I2C_Read... [13:47:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:47:15]Read from MH i2c: E2 [13:47:15]MH_I2C_Read... [13:47:15]Read from MH i2c: E2 03 00 [13:47:15]MH_I2C_Read... [13:47:15]Read from MH i2c: E2 03 00 57 03 00 90 00 CE [13:47:15]RAPDU: 90 00 [13:47:15]wFMCommunicate OK [13:47:15]SAM_PROTO_ClearQueue done [13:47:15]KKMCreateOFDPacket [13:47:15]OFDProtocolAddRootSTLVToBuf [13:47:15]FM_MakeSignedData [13:47:15]FM_MakeSignedData [13:47:15]SAM_PROTO_SignData [13:47:15]wFMCommunicate request_size=4 [13:47:15]MH_SAM_APDU [13:47:15]CAPDU: 80 0D 01 02 [13:47:15]Write to MH i2c: E2 08 00 58 03 80 0D 01 02 00 00 00 00 D4 [13:47:15]Write i2c OK [13:47:15]MH_I2C_Read... [13:47:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:47:15]Read from MH i2c: E2 [13:47:15]MH_I2C_Read... [13:47:15]Read from MH i2c: E2 03 00 [13:47:15]MH_I2C_Read... [13:47:15]Read from MH i2c: E2 03 00 58 03 00 90 00 CF [13:47:15]RAPDU: 90 00 [13:47:15]wFMCommunicate OK [13:47:15]wFMCommunicate request_size=255 [13:47:15]MH_SAM_APDU [13:47: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 47 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 C9 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 C8 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 65 00 00 00 F4 03 04 00 E2 18 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 2D 2C 01 00 35 04 06 00 [13:47:15]Write to MH i2c: E2 02 01 59 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 47 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 C9 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 C8 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 65 00 00 00 F4 03 04 00 E2 18 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 2D 2C 01 00 35 04 06 00 00 00 B9 [13:47:15]Write i2c OK [13:47:15]MH_I2C_Read... [13:47:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:15]Read from MH i2c: E2 [13:47:15]MH_I2C_Read... [13:47:15]Read from MH i2c: E2 03 00 [13:47:15]MH_I2C_Read... [13:47:15]Read from MH i2c: E2 03 00 59 03 00 90 00 D0 [13:47:15]RAPDU: 90 00 [13:47:15]wFMCommunicate OK [13:47:15]wFMCommunicate request_size=11 [13:47:15]MH_SAM_APDU [13:47:15]CAPDU: 80 0D 02 02 06 32 C6 25 CC 73 60 [13:47:15]Write to MH i2c: E2 0E 00 5A 03 80 0D 02 02 06 00 32 C6 25 CC 73 60 00 00 9F [13:47:15]Write i2c OK [13:47:15]MH_I2C_Read... [13:47:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:15]Read from MH i2c: E2 [13:47:15]MH_I2C_Read... [13:47:15]Read from MH i2c: E2 03 00 [13:47:15]MH_I2C_Read... [13:47:15]Read from MH i2c: E2 03 00 5A 03 00 90 00 D1 [13:47:15]RAPDU: 90 00 [13:47:15]wFMCommunicate OK [13:47:15]wFMCommunicate request_size=4 [13:47:15]MH_SAM_APDU [13:47:15]CAPDU: 80 0D 03 02 [13:47:15]Write to MH i2c: E2 08 00 5B 03 80 0D 03 02 00 00 00 00 D9 [13:47:15]Write i2c OK [13:47:15]MH_I2C_Read... [13:47:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:47:15]Read from MH i2c: E2 [13:47:15]MH_I2C_Read... [13:47:15]Read from MH i2c: E2 0B 00 [13:47:15]MH_I2C_Read... [13:47:15]Read from MH i2c: E2 0B 00 5B 03 00 24 C9 8C AC 17 FA 60 FF 90 00 6F [13:47:15]RAPDU: 24 C9 8C AC 17 FA 60 FF 90 00 [13:47:15]wFMCommunicate OK [13:47:15]SAM_PROTO_SignData done [13:47:15]FM_MakeSignedData done [13:47:15]CreateOFDProtocolMessage [13:47:15]wFMCommunicate request_size=4 [13:47:15]MH_SAM_APDU [13:47:15]CAPDU: 80 11 00 00 [13:47:15]Write to MH i2c: E2 08 00 5C 03 80 11 00 00 00 00 00 00 D9 [13:47:15]Write i2c OK [13:47:15]MH_I2C_Read... [13:47:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:15]Read from MH i2c: E2 [13:47:15]MH_I2C_Read... [13:47:15]Read from MH i2c: E2 17 00 [13:47:15]MH_I2C_Read... [13:47:15]Read from MH i2c: E2 17 00 5C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 2C [13:47:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:47:15]wFMCommunicate OK [13:47:15]CreateOFDProtocolMessage done [13:47:15]OFDSenderStorePacket 76845 [13:47:15]StoreOFDPacket docnum=76845 [13:47:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 A2 36 08 01 E5 B1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 47 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 C9 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 C8 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 65 00 00 00 F4 03 04 00 E2 18 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 2D 2C 01 00 35 04 06 00 32 C6 25 CC 73 60 24 C9 8C AC 17 FA 60 FF [13:47:15]CheckFolder [13:47:15]dirname=/storage/ofd_packets [13:47:15]CheckFolder done [13:47:15]ProducePacketName [13:47:15]name=ofd_packets/00076845 [13:47:15]NVStorageSaveData ofd_packets/00076845 [13:47:15]File name is /storage/ofd_packets/00076845 [13:47:15]Write 302 bytes [13:47:15]NVStorageSaveData done [13:47:15]OFDSenderStorePacket done [13:47:15]KKMCreateOFDPacket done [13:47:15]NVStorageSaveData kkm_last_timestamp [13:47:15]File name is /storage/kkm_last_timestamp [13:47:15]Write 4 bytes [13:47:15]NVStorageSaveData done [13:47:15]ExternCall_PrintAddStr [13:47:15]wPrintStart [13:47:15]Write to MH i2c: 01 00 00 5D 03 60 [13:47:15]Write i2c OK [13:47:15]MH_I2C_Read... [13:47:15]Read from MH i2c: 01 [13:47:15]MH_I2C_Read... [13:47:15]Read from MH i2c: 01 07 00 [13:47:15]MH_I2C_Read... [13:47:15]Read from MH i2c: 01 07 00 5D 03 00 00 00 00 00 FF 0F 75 [13:47:15]RasterBufferAndPrint [13:47:15]line Счет N : (1)191383 [13:47:15]line ИНН: 02508201610067 [13:47:15]line Контрольно-Кассовый Чек [13:47:15]line ПРОДАЖА [13:47:15]line ТРК (МРК, ГНК) : 41 [13:47:15]line Товар: 2710124130 [13:47:15]line SUPER 92-К-5 [13:47:15]line 18.350 * 65.40 [13:47:15]line = 1200.09 [13:47:15]line НДС 12% НСП 1% [13:47:15]line > о реализуемом товаре [13:47:15]line ОКРУГЛЕНИЕ: -0.09 [13:47:15]line ИТОГО: 1200.00 [13:47:15]line Внесено: 1200.00 [13:47:15]line СДАЧА: 0.00 [13:47:15]line НСП 1% : 10.62 [13:47:15]line НДС 12% : 127.44 [13:47:15]line Наличными: 1200.00 [13:47:15]line Безнал.: 0.00 [13:47:15]line Место: АЗС № 106 "Партнер Нефть" [13:47:15]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [13:47:15]line СНО: Общий режим [13:47:15]line Чек 101 21.04.2024 13:47 [13:47:15]line Смена: 372 ФФД: 1.0 [13:47:15]line ЗНМ: 0300000141 [13:47:15]line РНМ: 0000000000091573 [13:47:15]line Версия ККМ: 001 [13:47:15]line ФМ: 0000000000874652 [13:47:15]line ФД: 76845 [13:47:15]line ФПД: 55826619069280 [13:47:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T134714&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76845&fm=55826619069280&tin=02508201610067®Number=0000000000091573&sum=120000 [13:47:16]OFD Sender: Processing packet 76845 [packets to send 129, broken 128] [13:47:16]ProducePacketName [13:47:16]name=ofd_packets/00076845 [13:47:16]OFD Sender: To server: pG, [13:47:16]CommunicateWithHost lk.salyk.kg:30040 [13:47:16]ConnectInit lk.salyk.kg [13:47:16]written 0, free lines is 4095 [13:47:16]Connected sock=10 [13:47:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 A2 36 08 01 E5 B1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 47 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 C9 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 C8 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 65 00 00 00 F4 03 04 00 E2 18 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 2D 2C 01 00 35 04 06 00 32 C6 25 CC 73 60 24 C9 8C AC 17 FA 60 FF [13:47:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 FF A0 47 00 96 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 2D 2C 01 00 F4 03 04 00 68 C0 24 66 B6 04 01 00 00 54 40 90 C9 58 6A 54 C8 [13:47:16]CommunicateWithHost err = 0 [13:47:16]CheckOFDResponse [13:47:16]1017 (14) - 77093643461234 [13:47:16]1041 (16) - 0000000000874652 [13:47:16]1040 (4) - 76845 [13:47:16]1012 (4) - 21.04.2024 07:29 [13:47:16]1206 (1) - 0 [13:47:16]OFD Sender: Remove packet 76845 [13:47:16]ProducePacketName [13:47:16]name=ofd_packets/00076845 [13:47:16]NVStorageDeleteData [13:47:16]Write to MH i2c: 01 00 00 87 03 8A [13:47:16]Write i2c OK [13:47:16]MH_I2C_Read... [13:47:16]Read from MH i2c: 01 [13:47:16]MH_I2C_Read... [13:47:16]Read from MH i2c: 01 07 00 [13:47:16]MH_I2C_Read... [13:47:16]Read from MH i2c: 01 07 00 87 03 00 00 00 00 00 02 0D A0 [13:47:16]RasterBufferAndPrint [13:47:16]line [13:47:16]line [13:47:16]line [13:47:16]line [13:47:16]line [13:47:16]written 0, free lines is 3336 [13:47:16]MH_Cut [13:47:16]Write to MH i2c: D1 01 00 8E 03 01 63 [13:47:16]Write i2c OK [13:47:16]MH_I2C_Read... [13:47:16]Read from MH i2c: D1 [13:47:16]MH_I2C_Read... [13:47:16]Read from MH i2c: D1 01 00 [13:47:16]MH_I2C_Read... [13:47:16]Read from MH i2c: D1 01 00 8E 03 00 62 [13:47:16]Write to MH i2c: 01 00 00 8F 03 92 [13:47:16]Write i2c OK [13:47:16]MH_I2C_Read... [13:47:16]OFD Sender: No OFD packet to send [13:47:17]*** Cut start [13:47:17]*** Partial cut [13:47:17]*** CUTSNS_PIN = 1 [13:47:17]*** CUTSNS_PIN = 0 [13:47:17]*** Brake cut motor [13:47:17]Read from MH i2c: 01 [13:47:17]MH_I2C_Read... [13:47:17]Read from MH i2c: 01 07 00 [13:47:17]MH_I2C_Read... [13:47:17]*** Stop cut motor [13:47:17]*** Cut end [13:47:17]Read from MH i2c: 01 07 00 8F 03 00 00 00 00 00 FF 0F A7 [13:47:17]process_action close_receipt done [13:47:17]requested_data is exist [13:47:17]produce_requested_data [13:47:17]requested_item fm.sn is exist - process it [13:47:17]wFMCommunicate request_size=4 [13:47:17]MH_SAM_APDU [13:47:17]CAPDU: 80 11 00 00 [13:47:17]Write to MH i2c: E2 08 00 90 03 80 11 00 00 00 00 00 00 0D [13:47:17]Write i2c OK [13:47:17]MH_I2C_Read... [13:47:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:17]Read from MH i2c: E2 [13:47:17]MH_I2C_Read... [13:47:17]Read from MH i2c: E2 17 00 [13:47:17]MH_I2C_Read... [13:47:17]Read from MH i2c: E2 17 00 90 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 60 [13:47:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:47:17]wFMCommunicate OK [13:47:17]requested_item fd.num is exist - process it [13:47:17]SAM_PROTO_GetFieldsCounters [13:47:17]wFMCommunicate request_size=4 [13:47:17]MH_SAM_APDU [13:47:17]CAPDU: 80 13 00 00 [13:47:17]Write to MH i2c: E2 08 00 91 03 80 13 00 00 00 00 00 00 10 [13:47:17]Write i2c OK [13:47:17]MH_I2C_Read... [13:47:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:47:18]Read from MH i2c: E2 [13:47:18]MH_I2C_Read... [13:47:18]Read from MH i2c: E2 62 00 [13:47:18]MH_I2C_Read... [13:47:18]Read from MH i2c: E2 62 00 91 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 2D 2C 01 00 0E 04 04 00 74 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 2F [13:47: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 2D 2C 01 00 0E 04 04 00 74 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 [13:47:18]wFMCommunicate OK [13:47:18]SAM_PROTO_GetFieldsCounters done [13:47:18]requested_item shift.num is exist - process it [13:47:18]requested_item shift.opened is exist - process it [13:47:18]req_shift_opened [13:47:18]FM_GetShiftState [13:47:18]SAM_PROTO_GetShiftState [13:47:18]wFMCommunicate request_size=4 [13:47:18]MH_SAM_APDU [13:47:18]CAPDU: 80 13 01 00 [13:47:18]Write to MH i2c: E2 08 00 92 03 80 13 01 00 00 00 00 00 12 [13:47:18]Write i2c OK [13:47:18]MH_I2C_Read... [13:47:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:18]Read from MH i2c: E2 [13:47:18]MH_I2C_Read... [13:47:18]Read from MH i2c: E2 0E 00 [13:47:18]MH_I2C_Read... [13:47:18]Read from MH i2c: E2 0E 00 92 03 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 59 [13:47:18]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [13:47:18]wFMCommunicate OK [13:47:18]SAM_PROTO_GetShiftState done [13:47:18]FM_GetShiftState done [13:47:18]req_shift_opened done [13:47:18]requested_item shift.open_date is exist - process it [13:47:18]req_shift_open_date [13:47:18]req_shift_open_date done [13:47:18]produce_requested_data done [13:47:18]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76845,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [13:47:18]process_action_free close_receipt [13:47:18]json_value_free [13:47:18]json_value_free done [13:47:18]process_json_proto returns [13:47:18]Send response to host [13:47:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76845,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [13:47:18]free response buf [13:47:18]execute_script done [13:47:18]execute_script returns [13:47:18]free content buf [13:47:18]Sock 9.Close socket [13:47:18]Sock 9.Thread stoped [13:47:21]OFD Sender: No OFD packet to send [13:47:26]OFD Sender: No OFD packet to send [13:47:31]OFD Sender: No OFD packet to send [13:47:36]OFD Sender: No OFD packet to send [13:47:41]OFD Sender: No OFD packet to send [13:47:46]OFD Sender: No OFD packet to send [13:47:52]OFD Sender: No OFD packet to send [13:47:57]OFD Sender: No OFD packet to send [13:48:02]OFD Sender: No OFD packet to send [13:48:07]OFD Sender: No OFD packet to send [13:48:12]OFD Sender: No OFD packet to send [13:48:17]OFD Sender: No OFD packet to send [13:48:22]OFD Sender: No OFD packet to send [13:48:27]OFD Sender: No OFD packet to send [13:48:32]OFD Sender: No OFD packet to send [13:48:37]OFD Sender: No OFD packet to send [13:48:42]OFD Sender: No OFD packet to send [13:48:47]OFD Sender: No OFD packet to send [13:48:52]OFD Sender: No OFD packet to send [13:48:57]OFD Sender: No OFD packet to send [13:49:02]OFD Sender: No OFD packet to send [13:49:07]OFD Sender: No OFD packet to send [13:49:12]OFD Sender: No OFD packet to send [13:49:17]OFD Sender: No OFD packet to send [13:49:22]OFD Sender: No OFD packet to send [13:49:27]OFD Sender: No OFD packet to send [13:49:32]OFD Sender: No OFD packet to send [13:49:37]OFD Sender: No OFD packet to send [13:49:42]OFD Sender: No OFD packet to send [13:49:47]OFD Sender: No OFD packet to send [13:49:52]OFD Sender: No OFD packet to send [13:49:57]OFD Sender: No OFD packet to send [13:50:02]OFD Sender: No OFD packet to send [13:50:07]OFD Sender: No OFD packet to send [13:50:12]OFD Sender: No OFD packet to send [13:50:17]OFD Sender: No OFD packet to send [13:50:22]OFD Sender: No OFD packet to send [13:50:27]OFD Sender: No OFD packet to send [13:50:32]OFD Sender: No OFD packet to send [13:50:37]OFD Sender: No OFD packet to send [13:50:42]OFD Sender: No OFD packet to send [13:50:47]OFD Sender: No OFD packet to send [13:50:52]OFD Sender: No OFD packet to send [13:50:57]OFD Sender: No OFD packet to send [13:51:02]OFD Sender: No OFD packet to send [13:51:07]OFD Sender: No OFD packet to send [13:51:12]OFD Sender: No OFD packet to send [13:51:17]OFD Sender: No OFD packet to send [13:51:22]OFD Sender: No OFD packet to send [13:51:27]OFD Sender: No OFD packet to send [13:51:32]OFD Sender: No OFD packet to send [13:51:37]OFD Sender: No OFD packet to send [13:51:42]OFD Sender: No OFD packet to send [13:51:47]OFD Sender: No OFD packet to send [13:51:52]OFD Sender: No OFD packet to send [13:51:57]OFD Sender: No OFD packet to send [13:52:02]OFD Sender: No OFD packet to send [13:52:07]OFD Sender: No OFD packet to send [13:52:12]OFD Sender: No OFD packet to send [13:52:17]OFD Sender: No OFD packet to send [13:52:22]OFD Sender: No OFD packet to send [13:52:27]OFD Sender: No OFD packet to send [13:52:32]OFD Sender: No OFD packet to send [13:52:37]OFD Sender: No OFD packet to send [13:52:41]accept exits with 7 [13:52:41]New connection [13:52:41]New thread 3066658148 created [13:52:41]Thread 3066801508 joined [13:52:41]Waiting for new connection... [13:52:41] Sock 7.Parse request [13:52:41]Sock 7.Check first char [13:52:41]Sock 7.First char is OK [13:52:41]request: POST /json_proto HTTP/1.0 [13:52:41]Method: POST [13:52:41]URL: /json_proto [13:52:41]Method is POST - this is cgi request [13:52:41]url: /json_proto [13:52:41]query_string will be loaded in cgi processing [13:52:41]execute_cgi json_proto POST (null) [13:52:41]execute_cgi path=json_proto method=POST [13:52:41]POST find Content-Length [13:52:41]Host: 172.17.62.5:8080 [13:52:41]Content-Length: 681 [13:52:41]Content-Type: application/json [13:52:41] [13:52:41]POST finish read [13:52:41]Found Content-Length = 681 [13:52:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 18.350, "sum" : 600.05, "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:52:41]execute_script... [13:52: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)191384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 18.350, "sum" : 600.05, "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:52:41]POST & json_proto [13:52:41]process_json_proto [13:52:41]json parsed OK: [13:52:41]protocol is kg_v1.0 [13:52:41]action value=close_receipt [13:52:41]process_action close_receipt [13:52:41]cmd_close_receipt [13:52:41]MH_GetDate [13:52:41]Write to MH i2c: F0 00 00 93 03 85 [13:52:41]Write i2c OK [13:52:41]MH_I2C_Read... [13:52:41]Read from MH i2c: F0 [13:52:41]MH_I2C_Read... [13:52:41]Read from MH i2c: F0 09 00 [13:52:41]MH_I2C_Read... [13:52:41]Read from MH i2c: F0 09 00 93 03 00 2A 1A 25 66 F4 E9 65 64 03 [13:52:41]GetLastDocTimeStamp 1713707234 [13:52:41]current date 1713707562 [13:52:41]FM_GetShiftState [13:52:41]SAM_PROTO_GetShiftState [13:52:41]wFMCommunicate request_size=4 [13:52:41]MH_SAM_APDU [13:52:41]CAPDU: 80 13 01 00 [13:52:41]Write to MH i2c: E2 08 00 94 03 80 13 01 00 00 00 00 00 14 [13:52:41]Write i2c OK [13:52:41]MH_I2C_Read... [13:52:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:41]Read from MH i2c: E2 [13:52:41]MH_I2C_Read... [13:52:41]Read from MH i2c: E2 0E 00 [13:52:41]MH_I2C_Read... [13:52:41]Read from MH i2c: E2 0E 00 94 03 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 5B [13:52:41]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [13:52:41]wFMCommunicate OK [13:52:41]SAM_PROTO_GetShiftState done [13:52:41]FM_GetShiftState done [13:52:41]opened in 1713658965 [13:52:41]opened+sec_in_day 1713745365 [13:52:41]quantity*price = 60004 [13:52:41]sum+1 = 60006 [13:52:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 102 21.04.2024 13:52 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76846 ФПД: 102487921925902 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T135242&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76846&fm=102487921925902&tin=02508201610067®Number=0000000000091573&sum=60000 [13:52:42]StoreToDocumentArchive [13:52:42]shift 372 fd 76846 [13:52:42]save to /storage/0372/doc_00076846 [13:52:42]save last doc name /storage/0372/doc_00076846 to /storage/kkm_last_doc_name [13:52:43]save OK [13:52:43]Clear old archive folders... [13:52:43]ProcessDocumentItem done err = 0, tmpTLVsize=250 [13:52:43]tlvbuf is 010271B0 [13:52:43]SAM_PROTO_ClearQueue [13:52:43]wFMCommunicate request_size=4 [13:52:43]MH_SAM_APDU [13:52:43]CAPDU: 80 09 00 00 [13:52:43]Write to MH i2c: E2 08 00 A1 03 80 09 00 00 00 00 00 00 16 [13:52:43]Write i2c OK [13:52:43]MH_I2C_Read... [13:52:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:52:43]Read from MH i2c: E2 [13:52:43]MH_I2C_Read... [13:52:43]Read from MH i2c: E2 03 00 [13:52:43]MH_I2C_Read... [13:52:43]Read from MH i2c: E2 03 00 A1 03 00 90 00 18 [13:52:43]RAPDU: 90 00 [13:52:43]wFMCommunicate OK [13:52:43]SAM_PROTO_ClearQueue done [13:52:43]KKMCreateOFDPacket [13:52:43]OFDProtocolAddRootSTLVToBuf [13:52:43]FM_MakeSignedData [13:52:43]FM_MakeSignedData [13:52:43]SAM_PROTO_SignData [13:52:43]wFMCommunicate request_size=4 [13:52:43]MH_SAM_APDU [13:52:43]CAPDU: 80 0D 01 02 [13:52:43]Write to MH i2c: E2 08 00 A2 03 80 0D 01 02 00 00 00 00 1E [13:52:43]Write i2c OK [13:52:43]MH_I2C_Read... [13:52:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:52:43]Read from MH i2c: E2 [13:52:43]MH_I2C_Read... [13:52:43]Read from MH i2c: E2 03 00 [13:52:43]MH_I2C_Read... [13:52:43]Read from MH i2c: E2 03 00 A2 03 00 90 00 19 [13:52:43]RAPDU: 90 00 [13:52:43]wFMCommunicate OK [13:52:43]wFMCommunicate request_size=255 [13:52:43]MH_SAM_APDU [13:52:43]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 AE 47 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 65 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 66 00 00 00 F4 03 04 00 2A 1A 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 2E 2C 01 00 35 04 06 00 5D 36 [13:52:43]Write to MH i2c: E2 02 01 A3 03 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 AE 47 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 65 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 66 00 00 00 F4 03 04 00 2A 1A 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 2E 2C 01 00 35 04 06 00 5D 36 00 00 22 [13:52:43]Write i2c OK [13:52:43]MH_I2C_Read... [13:52:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:43]Read from MH i2c: E2 [13:52:43]MH_I2C_Read... [13:52:43]Read from MH i2c: E2 03 00 [13:52:43]MH_I2C_Read... [13:52:43]Read from MH i2c: E2 03 00 A3 03 00 90 00 1A [13:52:43]RAPDU: 90 00 [13:52:43]wFMCommunicate OK [13:52:43]wFMCommunicate request_size=9 [13:52:43]MH_SAM_APDU [13:52:43]CAPDU: 80 0D 02 02 04 54 2E 1F 0E [13:52:43]Write to MH i2c: E2 0C 00 A4 03 80 0D 02 02 04 00 54 2E 1F 0E 00 00 D8 [13:52:43]Write i2c OK [13:52:43]MH_I2C_Read... [13:52:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:43]Read from MH i2c: E2 [13:52:43]MH_I2C_Read... [13:52:43]Read from MH i2c: E2 03 00 [13:52:43]MH_I2C_Read... [13:52:43]Read from MH i2c: E2 03 00 A4 03 00 90 00 1B [13:52:43]RAPDU: 90 00 [13:52:43]wFMCommunicate OK [13:52:43]wFMCommunicate request_size=4 [13:52:43]MH_SAM_APDU [13:52:43]CAPDU: 80 0D 03 02 [13:52:43]Write to MH i2c: E2 08 00 A5 03 80 0D 03 02 00 00 00 00 23 [13:52:43]Write i2c OK [13:52:43]MH_I2C_Read... [13:52:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:52:43]Read from MH i2c: E2 [13:52:43]MH_I2C_Read... [13:52:43]Read from MH i2c: E2 0B 00 [13:52:43]MH_I2C_Read... [13:52:43]Read from MH i2c: E2 0B 00 A5 03 00 B6 24 F1 38 C4 B3 4A 3D 90 00 25 [13:52:43]RAPDU: B6 24 F1 38 C4 B3 4A 3D 90 00 [13:52:43]wFMCommunicate OK [13:52:43]SAM_PROTO_SignData done [13:52:43]FM_MakeSignedData done [13:52:43]CreateOFDProtocolMessage [13:52:43]wFMCommunicate request_size=4 [13:52:43]MH_SAM_APDU [13:52:43]CAPDU: 80 11 00 00 [13:52:43]Write to MH i2c: E2 08 00 A6 03 80 11 00 00 00 00 00 00 23 [13:52:43]Write i2c OK [13:52:43]MH_I2C_Read... [13:52:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:43]Read from MH i2c: E2 [13:52:43]MH_I2C_Read... [13:52:43]Read from MH i2c: E2 17 00 [13:52:43]MH_I2C_Read... [13:52:43]Read from MH i2c: E2 17 00 A6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 76 [13:52:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:52:43]wFMCommunicate OK [13:52:43]CreateOFDProtocolMessage done [13:52:43]OFDSenderStorePacket 76846 [13:52:43]StoreOFDPacket docnum=76846 [13:52:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 5E E7 06 01 C2 52 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 AE 47 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 65 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 66 00 00 00 F4 03 04 00 2A 1A 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 2E 2C 01 00 35 04 06 00 5D 36 54 2E 1F 0E B6 24 F1 38 C4 B3 4A 3D [13:52:43]CheckFolder [13:52:43]dirname=/storage/ofd_packets [13:52:43]CheckFolder done [13:52:43]ProducePacketName [13:52:43]name=ofd_packets/00076846 [13:52:43]NVStorageSaveData ofd_packets/00076846 [13:52:43]File name is /storage/ofd_packets/00076846 [13:52:43]Write 300 bytes [13:52:43]NVStorageSaveData done [13:52:43]OFDSenderStorePacket done [13:52:43]KKMCreateOFDPacket done [13:52:43]NVStorageSaveData kkm_last_timestamp [13:52:43]File name is /storage/kkm_last_timestamp [13:52:43]Write 4 bytes [13:52:43]NVStorageSaveData done [13:52:43]ExternCall_PrintAddStr [13:52:43]wPrintStart [13:52:43]Write to MH i2c: 01 00 00 A7 03 AA [13:52:43]Write i2c OK [13:52:43]MH_I2C_Read... [13:52:43]Read from MH i2c: 01 [13:52:43]MH_I2C_Read... [13:52:43]Read from MH i2c: 01 07 00 [13:52:43]MH_I2C_Read... [13:52:43]Read from MH i2c: 01 07 00 A7 03 00 00 00 00 00 FF 0F BF [13:52:43]RasterBufferAndPrint [13:52:43]line Счет N : (1)191384 [13:52:43]line ИНН: 02508201610067 [13:52:43]line Контрольно-Кассовый Чек [13:52:43]line ПРОДАЖА [13:52:43]line ТРК (МРК, ГНК) : 71 [13:52:43]line Товар: 2711190000 [13:52:43]line ГАЗ-К-5 [13:52:43]line 18.350 * 32.70 [13:52:43]line = 600.05 [13:52:43]line НДС 12% НСП 1% [13:52:43]line > о реализуемом товаре [13:52:43]line ОКРУГЛЕНИЕ: -0.05 [13:52:43]line ИТОГО: 600.00 [13:52:43]line Внесено: 600.00 [13:52:43]line СДАЧА: 0.00 [13:52:43]line НСП 1% : 5.31 [13:52:43]line НДС 12% : 63.72 [13:52:43]line Наличными: 600.00 [13:52:43]line Безнал.: 0.00 [13:52:43]line Место: АЗС № 106 "Партнер Нефть" [13:52:43]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [13:52:43]line СНО: Общий режим [13:52:43]line Чек 102 21.04.2024 13:52 [13:52:43]line Смена: 372 ФФД: 1.0 [13:52:43]line ЗНМ: 0300000141 [13:52:43]line РНМ: 0000000000091573 [13:52:43]line Версия ККМ: 001 [13:52:43]line ФМ: 0000000000874652 [13:52:43]line ФД: 76846 [13:52:43]line ФПД: 102487921925902 [13:52:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T135242&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76846&fm=102487921925902&tin=02508201610067®Number=0000000000091573&sum=60000 [13:52:43]OFD Sender: Processing packet 76846 [packets to send 129, broken 128] [13:52:43]ProducePacketName [13:52:43]name=ofd_packets/00076846 [13:52:43]OFD Sender: To server: pG, [13:52:43]CommunicateWithHost lk.salyk.kg:30040 [13:52:43]ConnectInit lk.salyk.kg [13:52:43]written 0, free lines is 4095 [13:52:44]Connected sock=10 [13:52:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 5E E7 06 01 C2 52 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 AE 47 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 65 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 66 00 00 00 F4 03 04 00 2A 1A 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 2E 2C 01 00 35 04 06 00 5D 36 54 2E 1F 0E B6 24 F1 38 C4 B3 4A 3D [13:52:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 56 A9 47 00 2A 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 34 36 35 32 10 04 04 00 2E 2C 01 00 F4 03 04 00 AF C1 24 66 B6 04 01 00 00 69 CB 68 F0 D2 5C B1 54 [13:52:44]CommunicateWithHost err = 0 [13:52:44]CheckOFDResponse [13:52:44]1017 (14) - 77093643461234 [13:52:44]1041 (16) - 0000000000874652 [13:52:44]1040 (4) - 76846 [13:52:44]1012 (4) - 21.04.2024 07:35 [13:52:44]1206 (1) - 0 [13:52:44]OFD Sender: Remove packet 76846 [13:52:44]ProducePacketName [13:52:44]name=ofd_packets/00076846 [13:52:44]NVStorageDeleteData [13:52:44]Write to MH i2c: 01 00 00 D1 03 D4 [13:52:44]Write i2c OK [13:52:44]MH_I2C_Read... [13:52:44]Read from MH i2c: 01 [13:52:44]MH_I2C_Read... [13:52:44]Read from MH i2c: 01 07 00 [13:52:44]MH_I2C_Read... [13:52:44]Read from MH i2c: 01 07 00 D1 03 00 00 00 00 00 F0 0C D7 [13:52:44]RasterBufferAndPrint [13:52:44]line [13:52:44]line [13:52:44]line [13:52:44]line [13:52:44]line [13:52:44]written 0, free lines is 3321 [13:52:44]MH_Cut [13:52:44]Write to MH i2c: D1 01 00 D8 03 01 AD [13:52:44]Write i2c OK [13:52:44]MH_I2C_Read... [13:52:44]Read from MH i2c: D1 [13:52:44]MH_I2C_Read... [13:52:44]Read from MH i2c: D1 01 00 [13:52:44]MH_I2C_Read... [13:52:44]Read from MH i2c: D1 01 00 D8 03 00 AC [13:52:44]Write to MH i2c: 01 00 00 D9 03 DC [13:52:44]Write i2c OK [13:52:44]MH_I2C_Read... [13:52:44]OFD Sender: No OFD packet to send [13:52:45]*** Cut start [13:52:45]*** Partial cut [13:52:45]*** CUTSNS_PIN = 1 [13:52:45]*** CUTSNS_PIN = 0 [13:52:45]*** Brake cut motor [13:52:45]Read from MH i2c: 01 [13:52:45]*** Stop cut motor [13:52:45]*** Cut end [13:52:45]MH_I2C_Read... [13:52:45]Read from MH i2c: 01 07 00 [13:52:45]MH_I2C_Read... [13:52:45]Read from MH i2c: 01 07 00 D9 03 00 00 00 00 00 FF 0F F1 [13:52:45]process_action close_receipt done [13:52:45]requested_data is exist [13:52:45]produce_requested_data [13:52:45]requested_item fm.sn is exist - process it [13:52:45]wFMCommunicate request_size=4 [13:52:45]MH_SAM_APDU [13:52:45]CAPDU: 80 11 00 00 [13:52:45]Write to MH i2c: E2 08 00 DA 03 80 11 00 00 00 00 00 00 57 [13:52:45]Write i2c OK [13:52:45]MH_I2C_Read... [13:52:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:45]Read from MH i2c: E2 [13:52:45]MH_I2C_Read... [13:52:45]Read from MH i2c: E2 17 00 [13:52:45]MH_I2C_Read... [13:52:45]Read from MH i2c: E2 17 00 DA 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 AA [13:52:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:52:45]wFMCommunicate OK [13:52:45]requested_item fd.num is exist - process it [13:52:45]SAM_PROTO_GetFieldsCounters [13:52:45]wFMCommunicate request_size=4 [13:52:45]MH_SAM_APDU [13:52:45]CAPDU: 80 13 00 00 [13:52:45]Write to MH i2c: E2 08 00 DB 03 80 13 00 00 00 00 00 00 5A [13:52:45]Write i2c OK [13:52:45]MH_I2C_Read... [13:52:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:52:45]Read from MH i2c: E2 [13:52:45]MH_I2C_Read... [13:52:45]Read from MH i2c: E2 62 00 [13:52:45]MH_I2C_Read... [13:52:45]Read from MH i2c: E2 62 00 DB 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 2E 2C 01 00 0E 04 04 00 74 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 7D [13:52: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 2E 2C 01 00 0E 04 04 00 74 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 [13:52:45]wFMCommunicate OK [13:52:45]SAM_PROTO_GetFieldsCounters done [13:52:45]requested_item shift.num is exist - process it [13:52:45]requested_item shift.opened is exist - process it [13:52:45]req_shift_opened [13:52:45]FM_GetShiftState [13:52:45]SAM_PROTO_GetShiftState [13:52:45]wFMCommunicate request_size=4 [13:52:45]MH_SAM_APDU [13:52:45]CAPDU: 80 13 01 00 [13:52:45]Write to MH i2c: E2 08 00 DC 03 80 13 01 00 00 00 00 00 5C [13:52:45]Write i2c OK [13:52:45]MH_I2C_Read... [13:52:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:45]Read from MH i2c: E2 [13:52:45]MH_I2C_Read... [13:52:45]Read from MH i2c: E2 0E 00 [13:52:45]MH_I2C_Read... [13:52:45]Read from MH i2c: E2 0E 00 DC 03 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 A3 [13:52:45]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [13:52:45]wFMCommunicate OK [13:52:45]SAM_PROTO_GetShiftState done [13:52:45]FM_GetShiftState done [13:52:45]req_shift_opened done [13:52:45]requested_item shift.open_date is exist - process it [13:52:45]req_shift_open_date [13:52:45]req_shift_open_date done [13:52:45]produce_requested_data done [13:52:45]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76846,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [13:52:45]process_action_free close_receipt [13:52:45]json_value_free [13:52:45]json_value_free done [13:52:45]process_json_proto returns [13:52:45]Send response to host [13:52:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76846,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [13:52:45]free response buf [13:52:45]execute_script done [13:52:45]execute_script returns [13:52:45]free content buf [13:52:45]Sock 7.Close socket [13:52:45]Sock 7.Thread stoped [13:52:49]OFD Sender: No OFD packet to send [13:52:54]OFD Sender: No OFD packet to send [13:52:59]OFD Sender: No OFD packet to send [13:53:04]OFD Sender: No OFD packet to send [13:53:09]OFD Sender: No OFD packet to send [13:53:14]OFD Sender: No OFD packet to send [13:53:19]OFD Sender: No OFD packet to send [13:53:24]OFD Sender: No OFD packet to send [13:53:29]OFD Sender: No OFD packet to send [13:53:34]OFD Sender: No OFD packet to send [13:53:39]OFD Sender: No OFD packet to send [13:53:44]OFD Sender: No OFD packet to send [13:53:49]OFD Sender: No OFD packet to send [13:53:54]OFD Sender: No OFD packet to send [13:53:59]OFD Sender: No OFD packet to send [13:54:04]OFD Sender: No OFD packet to send [13:54:09]OFD Sender: No OFD packet to send [13:54:14]OFD Sender: No OFD packet to send [13:54:19]OFD Sender: No OFD packet to send [13:54:24]OFD Sender: No OFD packet to send [13:54:29]OFD Sender: No OFD packet to send [13:54:34]OFD Sender: No OFD packet to send [13:54:39]OFD Sender: No OFD packet to send [13:54:44]OFD Sender: No OFD packet to send [13:54:49]OFD Sender: No OFD packet to send [13:54:54]OFD Sender: No OFD packet to send [13:54:59]OFD Sender: No OFD packet to send [13:55:04]OFD Sender: No OFD packet to send [13:55:09]OFD Sender: No OFD packet to send [13:55:14]OFD Sender: No OFD packet to send [13:55:19]OFD Sender: No OFD packet to send [13:55:24]OFD Sender: No OFD packet to send [13:55:29]OFD Sender: No OFD packet to send [13:55:34]OFD Sender: No OFD packet to send [13:55:39]OFD Sender: No OFD packet to send [13:55:44]OFD Sender: No OFD packet to send [13:55:49]OFD Sender: No OFD packet to send [13:55:54]OFD Sender: No OFD packet to send [13:55:59]OFD Sender: No OFD packet to send [13:56:04]OFD Sender: No OFD packet to send [13:56:09]OFD Sender: No OFD packet to send [13:56:14]OFD Sender: No OFD packet to send [13:56:19]OFD Sender: No OFD packet to send [13:56:24]OFD Sender: No OFD packet to send [13:56:29]OFD Sender: No OFD packet to send [13:56:34]OFD Sender: No OFD packet to send [13:56:40]OFD Sender: No OFD packet to send [13:56:45]OFD Sender: No OFD packet to send [13:56:50]OFD Sender: No OFD packet to send [13:56:55]OFD Sender: No OFD packet to send [13:57:00]OFD Sender: No OFD packet to send [13:57:05]OFD Sender: No OFD packet to send [13:57:10]OFD Sender: No OFD packet to send [13:57:15]OFD Sender: No OFD packet to send [13:57:20]OFD Sender: No OFD packet to send [13:57:25]OFD Sender: No OFD packet to send [13:57:30]OFD Sender: No OFD packet to send [13:57:35]OFD Sender: No OFD packet to send [13:57:40]OFD Sender: No OFD packet to send [13:57:45]OFD Sender: No OFD packet to send [13:57:50]OFD Sender: No OFD packet to send [13:57:55]OFD Sender: No OFD packet to send [13:58:00]OFD Sender: No OFD packet to send [13:58:05]OFD Sender: No OFD packet to send [13:58:10]OFD Sender: No OFD packet to send [13:58:15]OFD Sender: No OFD packet to send [13:58:20]OFD Sender: No OFD packet to send [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:33]accept exits with 9 [13:59:33]New connection [13:59:33]New thread 3066801508 created [13:59:33]Thread 3066658148 joined [13:59:33]Waiting for new connection... [13:59:33] Sock 9.Parse request [13:59:33]Sock 9.Check first char [13:59:33]Sock 9.First char is OK [13:59:33]request: POST /json_proto HTTP/1.0 [13:59:33]Method: POST [13:59:33]URL: /json_proto [13:59:33]Method is POST - this is cgi request [13:59:33]url: /json_proto [13:59:33]query_string will be loaded in cgi processing [13:59:33]execute_cgi json_proto POST (null) [13:59:33]execute_cgi path=json_proto method=POST [13:59:33]POST find Content-Length [13:59:33]Host: 172.17.62.5:8080 [13:59:33]Content-Length: 817 [13:59:33]Content-Type: application/json [13:59:33] [13:59:33]POST finish read [13:59:33]Found Content-Length = 817 [13:59:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 10.000, "sum" : 729.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" : 729.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:33]execute_script... [13:59: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)191385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 10.000, "sum" : 729.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" : 729.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:33]POST & json_proto [13:59:33]process_json_proto [13:59:33]json parsed OK: [13:59:33]protocol is kg_v1.0 [13:59:33]action value=close_receipt [13:59:33]process_action close_receipt [13:59:33]cmd_close_receipt [13:59:33]MH_GetDate [13:59:33]Write to MH i2c: F0 00 00 DD 03 CF [13:59:33]Write i2c OK [13:59:33]MH_I2C_Read... [13:59:33]Read from MH i2c: F0 [13:59:33]MH_I2C_Read... [13:59:33]Read from MH i2c: F0 09 00 [13:59:33]MH_I2C_Read... [13:59:33]Read from MH i2c: F0 09 00 DD 03 00 C6 1B 25 66 F4 E9 65 64 EA [13:59:33]GetLastDocTimeStamp 1713707562 [13:59:33]current date 1713707974 [13:59:33]FM_GetShiftState [13:59:33]SAM_PROTO_GetShiftState [13:59:33]wFMCommunicate request_size=4 [13:59:33]MH_SAM_APDU [13:59:33]CAPDU: 80 13 01 00 [13:59:33]Write to MH i2c: E2 08 00 DE 03 80 13 01 00 00 00 00 00 5E [13:59:33]Write i2c OK [13:59:33]MH_I2C_Read... [13:59:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:33]Read from MH i2c: E2 [13:59:33]MH_I2C_Read... [13:59:33]Read from MH i2c: E2 0E 00 [13:59:33]MH_I2C_Read... [13:59:33]Read from MH i2c: E2 0E 00 DE 03 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 A5 [13:59:33]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [13:59:33]wFMCommunicate OK [13:59:33]SAM_PROTO_GetShiftState done [13:59:33]FM_GetShiftState done [13:59:33]opened in 1713658965 [13:59:33]opened+sec_in_day 1713745365 [13:59:33]quantity*price = 72900 [13:59:33]sum+1 = 72901 [13:59:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 729.00 НСП 1% : 6.45 НДС 12% : 77.42 Наличными: 0.00 Безнал.: 729.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 103 21.04.2024 13:59 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 76847 ФПД: 166846262683772 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T135934&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76847&fm=166846262683772&tin=02508201610067®Number=0000000000091573&sum=72900 [13:59:34]StoreToDocumentArchive [13:59:34]shift 372 fd 76847 [13:59:34]save to /storage/0372/doc_00076847 [13:59:34]save last doc name /storage/0372/doc_00076847 to /storage/kkm_last_doc_name [13:59:34]save OK [13:59:34]Clear old archive folders... [13:59:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:59:34]tlvbuf is 01046DE0 [13:59:34]SAM_PROTO_ClearQueue [13:59:34]wFMCommunicate request_size=4 [13:59:34]MH_SAM_APDU [13:59:34]CAPDU: 80 09 00 00 [13:59:34]Write to MH i2c: E2 08 00 EB 03 80 09 00 00 00 00 00 00 60 [13:59:34]Write i2c OK [13:59:34]MH_I2C_Read... [13:59:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:59:34]Read from MH i2c: E2 [13:59:34]MH_I2C_Read... [13:59:34]Read from MH i2c: E2 03 00 [13:59:34]MH_I2C_Read... [13:59:34]Read from MH i2c: E2 03 00 EB 03 00 90 00 62 [13:59:34]RAPDU: 90 00 [13:59:34]wFMCommunicate OK [13:59:34]SAM_PROTO_ClearQueue done [13:59:34]KKMCreateOFDPacket [13:59:34]OFDProtocolAddRootSTLVToBuf [13:59:34]FM_MakeSignedData [13:59:34]FM_MakeSignedData [13:59:34]SAM_PROTO_SignData [13:59:34]wFMCommunicate request_size=4 [13:59:34]MH_SAM_APDU [13:59:34]CAPDU: 80 0D 01 02 [13:59:34]Write to MH i2c: E2 08 00 EC 03 80 0D 01 02 00 00 00 00 68 [13:59:34]Write i2c OK [13:59:34]MH_I2C_Read... [13:59:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:59:34]Read from MH i2c: E2 [13:59:34]MH_I2C_Read... [13:59:34]Read from MH i2c: E2 03 00 [13:59:34]MH_I2C_Read... [13:59:34]Read from MH i2c: E2 03 00 EC 03 00 90 00 63 [13:59:34]RAPDU: 90 00 [13:59:34]wFMCommunicate OK [13:59:34]wFMCommunicate request_size=255 [13:59:34]MH_SAM_APDU [13:59: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 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 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 00 00 00 00 00 00 39 04 06 00 C4 1C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 C6 1B 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 2F 2C 01 00 35 04 06 00 97 [13:59:34]Write to MH i2c: E2 02 01 ED 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 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 00 00 00 00 00 00 39 04 06 00 C4 1C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 C6 1B 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 2F 2C 01 00 35 04 06 00 97 00 00 04 [13:59:34]Write i2c OK [13:59:34]MH_I2C_Read... [13:59:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:35]Read from MH i2c: E2 [13:59:35]MH_I2C_Read... [13:59:35]Read from MH i2c: E2 03 00 [13:59:35]MH_I2C_Read... [13:59:35]Read from MH i2c: E2 03 00 ED 03 00 90 00 64 [13:59:35]RAPDU: 90 00 [13:59:35]wFMCommunicate OK [13:59:35]wFMCommunicate request_size=10 [13:59:35]MH_SAM_APDU [13:59:35]CAPDU: 80 0D 02 02 05 BE EC 38 28 7C [13:59:35]Write to MH i2c: E2 0D 00 EE 03 80 0D 02 02 05 00 BE EC 38 28 7C 00 00 FB [13:59:35]Write i2c OK [13:59:35]MH_I2C_Read... [13:59:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:35]Read from MH i2c: E2 [13:59:35]MH_I2C_Read... [13:59:35]Read from MH i2c: E2 03 00 [13:59:35]MH_I2C_Read... [13:59:35]Read from MH i2c: E2 03 00 EE 03 00 90 00 65 [13:59:35]RAPDU: 90 00 [13:59:35]wFMCommunicate OK [13:59:35]wFMCommunicate request_size=4 [13:59:35]MH_SAM_APDU [13:59:35]CAPDU: 80 0D 03 02 [13:59:35]Write to MH i2c: E2 08 00 EF 03 80 0D 03 02 00 00 00 00 6D [13:59:35]Write i2c OK [13:59:35]MH_I2C_Read... [13:59:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:59:35]Read from MH i2c: E2 [13:59:35]MH_I2C_Read... [13:59:35]Read from MH i2c: E2 0B 00 [13:59:35]MH_I2C_Read... [13:59:35]Read from MH i2c: E2 0B 00 EF 03 00 55 64 E1 7C 7D B7 DD 78 90 00 0D [13:59:35]RAPDU: 55 64 E1 7C 7D B7 DD 78 90 00 [13:59:35]wFMCommunicate OK [13:59:35]SAM_PROTO_SignData done [13:59:35]FM_MakeSignedData done [13:59:35]CreateOFDProtocolMessage [13:59:35]wFMCommunicate request_size=4 [13:59:35]MH_SAM_APDU [13:59:35]CAPDU: 80 11 00 00 [13:59:35]Write to MH i2c: E2 08 00 F0 03 80 11 00 00 00 00 00 00 6D [13:59:35]Write i2c OK [13:59:35]MH_I2C_Read... [13:59:35]OFD Sender: No OFD packet to send [13:59:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:35]Read from MH i2c: E2 [13:59:35]MH_I2C_Read... [13:59:35]Read from MH i2c: E2 17 00 [13:59:35]MH_I2C_Read... [13:59:35]Read from MH i2c: E2 17 00 F0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 C0 [13:59:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:59:35]wFMCommunicate OK [13:59:35]CreateOFDProtocolMessage done [13:59:35]OFDSenderStorePacket 76847 [13:59:35]StoreOFDPacket docnum=76847 [13:59:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 1D A6 07 01 E7 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 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 00 00 00 00 00 00 39 04 06 00 C4 1C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 C6 1B 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 2F 2C 01 00 35 04 06 00 97 BE EC 38 28 7C 55 64 E1 7C 7D B7 DD 78 [13:59:35]CheckFolder [13:59:35]dirname=/storage/ofd_packets [13:59:35]CheckFolder done [13:59:35]ProducePacketName [13:59:35]name=ofd_packets/00076847 [13:59:35]NVStorageSaveData ofd_packets/00076847 [13:59:35]File name is /storage/ofd_packets/00076847 [13:59:35]Write 301 bytes [13:59:35]NVStorageSaveData done [13:59:35]OFDSenderStorePacket done [13:59:35]KKMCreateOFDPacket done [13:59:35]NVStorageSaveData kkm_last_timestamp [13:59:35]File name is /storage/kkm_last_timestamp [13:59:35]Write 4 bytes [13:59:35]NVStorageSaveData done [13:59:35]ExternCall_PrintAddStr [13:59:35]wPrintStart [13:59:35]Write to MH i2c: 01 00 00 F1 03 F4 [13:59:35]Write i2c OK [13:59:35]MH_I2C_Read... [13:59:35]Read from MH i2c: 01 [13:59:35]MH_I2C_Read... [13:59:35]Read from MH i2c: 01 07 00 [13:59:35]MH_I2C_Read... [13:59:35]Read from MH i2c: 01 07 00 F1 03 00 00 00 00 00 FF 0F 09 [13:59:35]RasterBufferAndPrint [13:59:35]line Счет N : (1)191385 [13:59:35]line ИНН: 02508201610067 [13:59:35]line Контрольно-Кассовый Чек [13:59:35]line ПРОДАЖА [13:59:35]line ТРК (МРК, ГНК) : 21 [13:59:35]line Товар: 2710124500 [13:59:35]line Аи-95-К-5 [13:59:35]line 10.000 * 72.90 [13:59:35]line = 729.00 [13:59:35]line НДС 12% НСП 1% [13:59:35]line > о реализуемом товаре [13:59:35]line ИТОГО: 729.00 [13:59:35]line НСП 1% : 6.45 [13:59:35]line НДС 12% : 77.42 [13:59:35]line Наличными: 0.00 [13:59:35]line Безнал.: 729.00 [13:59:35]line Место: АЗС № 106 "Партнер Нефть" [13:59:35]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [13:59:35]line СНО: Общий режим [13:59:35]line Чек 103 21.04.2024 13:59 [13:59:35]line Смена: 372 ФФД: 1.0 [13:59:35]line ЗНМ: 0300000141 [13:59:35]line РНМ: 0000000000091573 [13:59:35]line Версия ККМ: 001 [13:59:35]line Платежная система: Бакай Банк [13:59:35]line ФМ: 0000000000874652 [13:59:35]line ФД: 76847 [13:59:35]line ФПД: 166846262683772 [13:59:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T135934&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76847&fm=166846262683772&tin=02508201610067®Number=0000000000091573&sum=72900 [13:59:35]written 0, free lines is 4095 [13:59:35]OFD Sender: Processing packet 76847 [packets to send 129, broken 128] [13:59:35]ProducePacketName [13:59:35]name=ofd_packets/00076847 [13:59:35]OFD Sender: To server: pG, [13:59:35]CommunicateWithHost lk.salyk.kg:30040 [13:59:35]ConnectInit lk.salyk.kg [13:59:35]Connected sock=10 [13:59:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 1D A6 07 01 E7 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 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 00 00 00 00 00 00 39 04 06 00 C4 1C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 C6 1B 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 2F 2C 01 00 35 04 06 00 97 BE EC 38 28 7C 55 64 E1 7C 7D B7 DD 78 [13:59:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 52 04 47 00 85 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 2F 2C 01 00 F4 03 04 00 4B C3 24 66 B6 04 01 00 00 29 2F DA 21 CC FF 64 48 [13:59:35]CommunicateWithHost err = 0 [13:59:35]CheckOFDResponse [13:59:35]1017 (14) - 77093643461234 [13:59:35]1041 (16) - 0000000000874652 [13:59:35]1040 (4) - 76847 [13:59:35]1012 (4) - 21.04.2024 07:42 [13:59:35]1206 (1) - 0 [13:59:35]OFD Sender: Remove packet 76847 [13:59:35]ProducePacketName [13:59:35]name=ofd_packets/00076847 [13:59:35]NVStorageDeleteData [13:59:36]Write to MH i2c: 01 00 00 1A 04 1E [13:59:36]Write i2c OK [13:59:36]MH_I2C_Read... [13:59:36]Read from MH i2c: 01 [13:59:36]MH_I2C_Read... [13:59:36]Read from MH i2c: 01 07 00 [13:59:36]MH_I2C_Read... [13:59:36]Read from MH i2c: 01 07 00 1A 04 00 00 00 00 00 0A 0D 3C [13:59:36]RasterBufferAndPrint [13:59:36]line [13:59:36]line [13:59:36]line [13:59:36]line [13:59:36]line [13:59:36]written 0, free lines is 3344 [13:59:36]MH_Cut [13:59:36]Write to MH i2c: D1 01 00 21 04 01 F7 [13:59:36]Write i2c OK [13:59:36]MH_I2C_Read... [13:59:36]Read from MH i2c: D1 [13:59:36]MH_I2C_Read... [13:59:36]Read from MH i2c: D1 01 00 [13:59:36]MH_I2C_Read... [13:59:36]Read from MH i2c: D1 01 00 21 04 00 F6 [13:59:36]Write to MH i2c: 01 00 00 22 04 26 [13:59:36]Write i2c OK [13:59:36]MH_I2C_Read... [13:59:36]OFD Sender: No OFD packet to send [13:59:36]*** Cut start [13:59:36]*** Partial cut [13:59:36]*** CUTSNS_PIN = 1 [13:59:36]*** CUTSNS_PIN = 0 [13:59:37]*** Brake cut motor [13:59:37]Read from MH i2c: 01 [13:59:37]MH_I2C_Read... [13:59:37]*** Stop cut motor [13:59:37]*** Cut end [13:59:37]Read from MH i2c: 01 07 00 [13:59:37]MH_I2C_Read... [13:59:37]Read from MH i2c: 01 07 00 22 04 00 00 00 00 00 FF 0F 3B [13:59:37]process_action close_receipt done [13:59:37]requested_data is exist [13:59:37]produce_requested_data [13:59:37]requested_item fm.sn is exist - process it [13:59:37]wFMCommunicate request_size=4 [13:59:37]MH_SAM_APDU [13:59:37]CAPDU: 80 11 00 00 [13:59:37]Write to MH i2c: E2 08 00 23 04 80 11 00 00 00 00 00 00 A1 [13:59:37]Write i2c OK [13:59:37]MH_I2C_Read... [13:59:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:37]Read from MH i2c: E2 [13:59:37]MH_I2C_Read... [13:59:37]Read from MH i2c: E2 17 00 [13:59:37]MH_I2C_Read... [13:59:37]Read from MH i2c: E2 17 00 23 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F4 [13:59:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:59:37]wFMCommunicate OK [13:59:37]requested_item fd.num is exist - process it [13:59:37]SAM_PROTO_GetFieldsCounters [13:59:37]wFMCommunicate request_size=4 [13:59:37]MH_SAM_APDU [13:59:37]CAPDU: 80 13 00 00 [13:59:37]Write to MH i2c: E2 08 00 24 04 80 13 00 00 00 00 00 00 A4 [13:59:37]Write i2c OK [13:59:37]MH_I2C_Read... [13:59:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:59:37]Read from MH i2c: E2 [13:59:37]MH_I2C_Read... [13:59:37]Read from MH i2c: E2 62 00 [13:59:37]MH_I2C_Read... [13:59:37]Read from MH i2c: E2 62 00 24 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 2F 2C 01 00 0E 04 04 00 74 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 CB [13:59: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 2F 2C 01 00 0E 04 04 00 74 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 [13:59:37]wFMCommunicate OK [13:59:37]SAM_PROTO_GetFieldsCounters done [13:59:37]requested_item shift.num is exist - process it [13:59:37]requested_item shift.opened is exist - process it [13:59:37]req_shift_opened [13:59:37]FM_GetShiftState [13:59:37]SAM_PROTO_GetShiftState [13:59:37]wFMCommunicate request_size=4 [13:59:37]MH_SAM_APDU [13:59:37]CAPDU: 80 13 01 00 [13:59:37]Write to MH i2c: E2 08 00 25 04 80 13 01 00 00 00 00 00 A6 [13:59:37]Write i2c OK [13:59:37]MH_I2C_Read... [13:59:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:37]Read from MH i2c: E2 [13:59:37]MH_I2C_Read... [13:59:37]Read from MH i2c: E2 0E 00 [13:59:37]MH_I2C_Read... [13:59:37]Read from MH i2c: E2 0E 00 25 04 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 ED [13:59:37]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [13:59:37]wFMCommunicate OK [13:59:37]SAM_PROTO_GetShiftState done [13:59:37]FM_GetShiftState done [13:59:37]req_shift_opened done [13:59:37]requested_item shift.open_date is exist - process it [13:59:37]req_shift_open_date [13:59:37]req_shift_open_date done [13:59:37]produce_requested_data done [13:59:37]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76847,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [13:59:37]process_action_free close_receipt [13:59:37]json_value_free [13:59:37]json_value_free done [13:59:37]process_json_proto returns [13:59:37]Send response to host [13:59:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76847,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [13:59:37]free response buf [13:59:37]execute_script done [13:59:37]execute_script returns [13:59:37]free content buf [13:59:37]Sock 9.Close socket [13:59:37]Sock 9.Thread stoped [13:59:41]OFD Sender: No OFD packet to send [13:59:46]OFD Sender: No OFD packet to send [13:59:51]OFD Sender: No OFD packet to send [13:59:51]accept exits with 7 [13:59:51]New connection [13:59:51]New thread 3066658148 created [13:59:51]Thread 3066801508 joined [13:59:51]Waiting for new connection... [13:59:51] Sock 7.Parse request [13:59:51]Sock 7.Check first char [13:59:51]Sock 7.First char is OK [13:59:51]request: POST /json_proto HTTP/1.0 [13:59:51]Method: POST [13:59:51]URL: /json_proto [13:59:51]Method is POST - this is cgi request [13:59:51]url: /json_proto [13:59:51]query_string will be loaded in cgi processing [13:59:51]execute_cgi json_proto POST (null) [13:59:51]execute_cgi path=json_proto method=POST [13:59:51]POST find Content-Length [13:59:51]Host: 172.17.62.5:8080 [13:59:51]Content-Length: 675 [13:59:51]Content-Type: application/json [13:59:51] [13:59:51]POST finish read [13:59:51]Found Content-Length = 675 [13:59:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 19.880, "sum" : 1300.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:51]execute_script... [13:59: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)191387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 19.880, "sum" : 1300.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:51]POST & json_proto [13:59:51]process_json_proto [13:59:51]json parsed OK: [13:59:51]protocol is kg_v1.0 [13:59:51]action value=close_receipt [13:59:51]process_action close_receipt [13:59:51]cmd_close_receipt [13:59:51]MH_GetDate [13:59:51]Write to MH i2c: F0 00 00 26 04 19 [13:59:51]Write i2c OK [13:59:51]MH_I2C_Read... [13:59:51]Read from MH i2c: F0 [13:59:51]MH_I2C_Read... [13:59:51]Read from MH i2c: F0 09 00 [13:59:51]MH_I2C_Read... [13:59:51]Read from MH i2c: F0 09 00 26 04 00 D8 1B 25 66 F4 E9 65 64 46 [13:59:51]GetLastDocTimeStamp 1713707974 [13:59:51]current date 1713707992 [13:59:51]FM_GetShiftState [13:59:51]SAM_PROTO_GetShiftState [13:59:51]wFMCommunicate request_size=4 [13:59:51]MH_SAM_APDU [13:59:51]CAPDU: 80 13 01 00 [13:59:51]Write to MH i2c: E2 08 00 27 04 80 13 01 00 00 00 00 00 A8 [13:59:51]Write i2c OK [13:59:51]MH_I2C_Read... [13:59:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:51]Read from MH i2c: E2 [13:59:51]MH_I2C_Read... [13:59:51]Read from MH i2c: E2 0E 00 [13:59:51]MH_I2C_Read... [13:59:51]Read from MH i2c: E2 0E 00 27 04 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 EF [13:59:51]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [13:59:51]wFMCommunicate OK [13:59:51]SAM_PROTO_GetShiftState done [13:59:51]FM_GetShiftState done [13:59:51]opened in 1713658965 [13:59:51]opened+sec_in_day 1713745365 [13:59:51]quantity*price = 130015 [13:59:51]sum+1 = 130016 [13:59:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.07 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 104 21.04.2024 13:59 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76848 ФПД: 140982271733358 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T135952&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76848&fm=140982271733358&tin=02508201610067®Number=0000000000091573&sum=130000 [13:59:52]StoreToDocumentArchive [13:59:52]shift 372 fd 76848 [13:59:52]save to /storage/0372/doc_00076848 [13:59:52]save last doc name /storage/0372/doc_00076848 to /storage/kkm_last_doc_name [13:59:52]save OK [13:59:52]Clear old archive folders... [13:59:52]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:59:52]tlvbuf is 01028120 [13:59:52]SAM_PROTO_ClearQueue [13:59:52]wFMCommunicate request_size=4 [13:59:52]MH_SAM_APDU [13:59:52]CAPDU: 80 09 00 00 [13:59:52]Write to MH i2c: E2 08 00 34 04 80 09 00 00 00 00 00 00 AA [13:59:52]Write i2c OK [13:59:52]MH_I2C_Read... [13:59:52]Read from MH i2c: E2 [13:59:52]MH_I2C_Read... [13:59:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:59:52]Read from MH i2c: E2 03 00 [13:59:52]MH_I2C_Read... [13:59:52]Read from MH i2c: E2 03 00 34 04 00 90 00 AC [13:59:52]RAPDU: 90 00 [13:59:52]wFMCommunicate OK [13:59:52]SAM_PROTO_ClearQueue done [13:59:52]KKMCreateOFDPacket [13:59:52]OFDProtocolAddRootSTLVToBuf [13:59:52]FM_MakeSignedData [13:59:52]FM_MakeSignedData [13:59:52]SAM_PROTO_SignData [13:59:52]wFMCommunicate request_size=4 [13:59:52]MH_SAM_APDU [13:59:52]CAPDU: 80 0D 01 02 [13:59:52]Write to MH i2c: E2 08 00 35 04 80 0D 01 02 00 00 00 00 B2 [13:59:52]Write i2c OK [13:59:52]MH_I2C_Read... [13:59:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:59:52]Read from MH i2c: E2 [13:59:52]MH_I2C_Read... [13:59:52]Read from MH i2c: E2 03 00 [13:59:52]MH_I2C_Read... [13:59:52]Read from MH i2c: E2 03 00 35 04 00 90 00 AD [13:59:52]RAPDU: 90 00 [13:59:52]wFMCommunicate OK [13:59:52]wFMCommunicate request_size=255 [13:59:52]MH_SAM_APDU [13:59: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 4D 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DF FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 D8 1B 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 30 2C 01 00 35 04 06 00 [13:59:52]Write to MH i2c: E2 02 01 36 04 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 4D 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DF FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 D8 1B 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 30 2C 01 00 35 04 06 00 00 00 C5 [13:59:52]Write i2c OK [13:59:52]MH_I2C_Read... [13:59:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:52]Read from MH i2c: E2 [13:59:52]MH_I2C_Read... [13:59:52]Read from MH i2c: E2 03 00 [13:59:52]MH_I2C_Read... [13:59:52]Read from MH i2c: E2 03 00 36 04 00 90 00 AE [13:59:52]RAPDU: 90 00 [13:59:52]wFMCommunicate OK [13:59:52]wFMCommunicate request_size=11 [13:59:52]MH_SAM_APDU [13:59:52]CAPDU: 80 0D 02 02 06 80 38 FE 39 EE 6E [13:59:52]Write to MH i2c: E2 0E 00 37 04 80 0D 02 02 06 00 80 38 FE 39 EE 6E 00 00 0C [13:59:52]Write i2c OK [13:59:52]MH_I2C_Read... [13:59:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:52]Read from MH i2c: E2 [13:59:52]MH_I2C_Read... [13:59:52]Read from MH i2c: E2 03 00 [13:59:52]MH_I2C_Read... [13:59:52]Read from MH i2c: E2 03 00 37 04 00 90 00 AF [13:59:52]RAPDU: 90 00 [13:59:52]wFMCommunicate OK [13:59:52]wFMCommunicate request_size=4 [13:59:52]MH_SAM_APDU [13:59:52]CAPDU: 80 0D 03 02 [13:59:52]Write to MH i2c: E2 08 00 38 04 80 0D 03 02 00 00 00 00 B7 [13:59:52]Write i2c OK [13:59:52]MH_I2C_Read... [13:59:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:59:52]Read from MH i2c: E2 [13:59:52]MH_I2C_Read... [13:59:52]Read from MH i2c: E2 0B 00 [13:59:52]MH_I2C_Read... [13:59:52]Read from MH i2c: E2 0B 00 38 04 00 8D 8A 97 03 62 B9 29 5C 90 00 09 [13:59:52]RAPDU: 8D 8A 97 03 62 B9 29 5C 90 00 [13:59:52]wFMCommunicate OK [13:59:52]SAM_PROTO_SignData done [13:59:52]FM_MakeSignedData done [13:59:52]CreateOFDProtocolMessage [13:59:52]wFMCommunicate request_size=4 [13:59:52]MH_SAM_APDU [13:59:52]CAPDU: 80 11 00 00 [13:59:52]Write to MH i2c: E2 08 00 39 04 80 11 00 00 00 00 00 00 B7 [13:59:52]Write i2c OK [13:59:52]MH_I2C_Read... [13:59:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:52]Read from MH i2c: E2 [13:59:52]MH_I2C_Read... [13:59:52]Read from MH i2c: E2 17 00 [13:59:52]MH_I2C_Read... [13:59:52]Read from MH i2c: E2 17 00 39 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 0A [13:59:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:59:52]wFMCommunicate OK [13:59:52]CreateOFDProtocolMessage done [13:59:52]OFDSenderStorePacket 76848 [13:59:52]StoreOFDPacket docnum=76848 [13:59:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 77 58 08 01 6D B3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 4D 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DF FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 D8 1B 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 30 2C 01 00 35 04 06 00 80 38 FE 39 EE 6E 8D 8A 97 03 62 B9 29 5C [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/00076848 [13:59:53]NVStorageSaveData ofd_packets/00076848 [13:59:53]File name is /storage/ofd_packets/00076848 [13:59:53]Write 302 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 3A 04 3E [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:53]MH_I2C_Read... [13:59:53]Read from MH i2c: 01 07 00 3A 04 00 00 00 00 00 FF 0F 53 [13:59:53]RasterBufferAndPrint [13:59:53]line Счет N : (1)191387 [13:59:53]line ИНН: 02508201610067 [13:59:53]line Контрольно-Кассовый Чек [13:59:53]line ПРОДАЖА [13:59:53]line ТРК (МРК, ГНК) : 41 [13:59:53]line Товар: 2710124130 [13:59:53]line SUPER 92-К-5 [13:59:53]line 19.880 * 65.40 [13:59:53]line = 1300.15 [13:59:53]line НДС 12% НСП 1% [13:59:53]line > о реализуемом товаре [13:59:53]line ОКРУГЛЕНИЕ: -0.15 [13:59:53]line ИТОГО: 1300.00 [13:59:53]line Внесено: 1300.00 [13:59:53]line СДАЧА: 0.00 [13:59:53]line НСП 1% : 11.51 [13:59:53]line НДС 12% : 138.07 [13:59:53]line Наличными: 1300.00 [13:59:53]line Безнал.: 0.00 [13:59:53]line Место: АЗС № 106 "Партнер Нефть" [13:59:53]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [13:59:53]line СНО: Общий режим [13:59:53]line Чек 104 21.04.2024 13:59 [13:59:53]line Смена: 372 ФФД: 1.0 [13:59:53]line ЗНМ: 0300000141 [13:59:53]line РНМ: 0000000000091573 [13:59:53]line Версия ККМ: 001 [13:59:53]line ФМ: 0000000000874652 [13:59:53]line ФД: 76848 [13:59:53]line ФПД: 140982271733358 [13:59:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T135952&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76848&fm=140982271733358&tin=02508201610067®Number=0000000000091573&sum=130000 [13:59:53]OFD Sender: Processing packet 76848 [packets to send 129, broken 128] [13:59:53]ProducePacketName [13:59:53]name=ofd_packets/00076848 [13:59:53]OFD Sender: To server: pG, [13:59:53]CommunicateWithHost lk.salyk.kg:30040 [13:59:53]ConnectInit lk.salyk.kg [13:59:53]written 0, free lines is 4095 [13:59:53]Connected sock=10 [13:59:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 77 58 08 01 6D B3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 4D 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DF FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 D8 1B 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 30 2C 01 00 35 04 06 00 80 38 FE 39 EE 6E 8D 8A 97 03 62 B9 29 5C [13:59:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 A2 6E 47 00 A8 B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 30 2C 01 00 F4 03 04 00 5D C3 24 66 B6 04 01 00 00 A2 F7 A4 F6 95 46 B3 FE [13:59:53]CommunicateWithHost err = 0 [13:59:53]CheckOFDResponse [13:59:53]1017 (14) - 77093643461234 [13:59:53]1041 (16) - 0000000000874652 [13:59:53]1040 (4) - 76848 [13:59:53]1012 (4) - 21.04.2024 07:42 [13:59:53]1206 (1) - 0 [13:59:53]OFD Sender: Remove packet 76848 [13:59:53]ProducePacketName [13:59:53]name=ofd_packets/00076848 [13:59:53]NVStorageDeleteData [13:59:53]Write to MH i2c: 01 00 00 64 04 68 [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:53]MH_I2C_Read... [13:59:53]Read from MH i2c: 01 07 00 64 04 00 00 00 00 00 F7 0C 72 [13:59:53]RasterBufferAndPrint [13:59:53]line [13:59:53]line [13:59:53]line [13:59:53]line [13:59:53]line [13:59:53]written 0, free lines is 3326 [13:59:53]MH_Cut [13:59:53]Write to MH i2c: D1 01 00 6B 04 01 41 [13:59:53]Write i2c OK [13:59:53]MH_I2C_Read... [13:59:53]Read from MH i2c: D1 [13:59:53]MH_I2C_Read... [13:59:53]Read from MH i2c: D1 01 00 [13:59:53]MH_I2C_Read... [13:59:53]Read from MH i2c: D1 01 00 6B 04 00 40 [13:59:53]Write to MH i2c: 01 00 00 6C 04 70 [13:59:53]Write i2c OK [13:59:53]MH_I2C_Read... [13:59:54]OFD Sender: No OFD packet to send [13:59:54]*** Cut start [13:59:54]*** Partial cut [13:59:54]*** CUTSNS_PIN = 1 [13:59:54]*** CUTSNS_PIN = 0 [13:59:54]*** Brake cut motor [13:59:55]Read from MH i2c: 01 [13:59:55]MH_I2C_Read... [13:59:55]*** Stop cut motor [13:59:55]Read from MH i2c: 01 *** Cut end [13:59:55]07 00 [13:59:55]MH_I2C_Read... [13:59:55]Read from MH i2c: 01 07 00 6C 04 00 00 00 00 00 FF 0F 85 [13:59:55]process_action close_receipt done [13:59:55]requested_data is exist [13:59:55]produce_requested_data [13:59:55]requested_item fm.sn is exist - process it [13:59:55]wFMCommunicate request_size=4 [13:59:55]MH_SAM_APDU [13:59:55]CAPDU: 80 11 00 00 [13:59:55]Write to MH i2c: E2 08 00 6D 04 80 11 00 00 00 00 00 00 EB [13:59:55]Write i2c OK [13:59:55]MH_I2C_Read... [13:59:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:55]Read from MH i2c: E2 [13:59:55]MH_I2C_Read... [13:59:55]Read from MH i2c: E2 17 00 [13:59:55]MH_I2C_Read... [13:59:55]Read from MH i2c: E2 17 00 6D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 3E [13:59:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:59:55]wFMCommunicate OK [13:59:55]requested_item fd.num is exist - process it [13:59:55]SAM_PROTO_GetFieldsCounters [13:59:55]wFMCommunicate request_size=4 [13:59:55]MH_SAM_APDU [13:59:55]CAPDU: 80 13 00 00 [13:59:55]Write to MH i2c: E2 08 00 6E 04 80 13 00 00 00 00 00 00 EE [13:59:55]Write i2c OK [13:59:55]MH_I2C_Read... [13:59:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:59:55]Read from MH i2c: E2 [13:59:55]MH_I2C_Read... [13:59:55]Read from MH i2c: E2 62 00 [13:59:55]MH_I2C_Read... [13:59:55]Read from MH i2c: E2 62 00 6E 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 30 2C 01 00 0E 04 04 00 74 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [13:59: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 30 2C 01 00 0E 04 04 00 74 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 [13:59:55]wFMCommunicate OK [13:59:55]SAM_PROTO_GetFieldsCounters done [13:59:55]requested_item shift.num is exist - process it [13:59:55]requested_item shift.opened is exist - process it [13:59:55]req_shift_opened [13:59:55]FM_GetShiftState [13:59:55]SAM_PROTO_GetShiftState [13:59:55]wFMCommunicate request_size=4 [13:59:55]MH_SAM_APDU [13:59:55]CAPDU: 80 13 01 00 [13:59:55]Write to MH i2c: E2 08 00 6F 04 80 13 01 00 00 00 00 00 F0 [13:59:55]Write i2c OK [13:59:55]MH_I2C_Read... [13:59:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:55]Read from MH i2c: E2 [13:59:55]MH_I2C_Read... [13:59:55]Read from MH i2c: E2 0E 00 [13:59:55]MH_I2C_Read... [13:59:55]Read from MH i2c: E2 0E 00 6F 04 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 37 [13:59:55]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [13:59:55]wFMCommunicate OK [13:59:55]SAM_PROTO_GetShiftState done [13:59:55]FM_GetShiftState done [13:59:55]req_shift_opened done [13:59:55]requested_item shift.open_date is exist - process it [13:59:55]req_shift_open_date [13:59:55]req_shift_open_date done [13:59:55]produce_requested_data done [13:59:55]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76848,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [13:59:55]process_action_free close_receipt [13:59:55]json_value_free [13:59:55]json_value_free done [13:59:55]process_json_proto returns [13:59:55]Send response to host [13:59:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76848,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [13:59:55]free response buf [13:59:55]execute_script done [13:59:55]execute_script returns [13:59:55]free content buf [13:59:55]Sock 7.Close socket [13:59:55]Sock 7.Thread stoped [13:59:59]OFD Sender: No OFD packet to send [14:00:04]OFD Sender: No OFD packet to send [14:00:08]accept exits with 9 [14:00:08]New connection [14:00:08]New thread 3066801508 created [14:00:08]Thread 3066658148 joined [14:00:08]Waiting for new connection... [14:00:08] Sock 9.Parse request [14:00:08]Sock 9.Check first char [14:00:08]Sock 9.First char is OK [14:00:08]request: POST /json_proto HTTP/1.0 [14:00:08]Method: POST [14:00:08]URL: /json_proto [14:00:08]Method is POST - this is cgi request [14:00:08]url: /json_proto [14:00:08]query_string will be loaded in cgi processing [14:00:08]execute_cgi json_proto POST (null) [14:00:08]execute_cgi path=json_proto method=POST [14:00:08]POST find Content-Length [14:00:08]Host: 172.17.62.5:8080 [14:00:08]Content-Length: 674 [14:00:08]Content-Type: application/json [14:00:08] [14:00:08]POST finish read [14:00:08]Found Content-Length = 674 [14:00:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191386", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:08]execute_script... [14: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)191386", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:08]POST & json_proto [14:00:08]process_json_proto [14:00:08]json parsed OK: [14:00:08]protocol is kg_v1.0 [14:00:08]action value=close_receipt [14:00:08]process_action close_receipt [14:00:08]cmd_close_receipt [14:00:08]MH_GetDate [14:00:08]Write to MH i2c: F0 00 00 70 04 63 [14:00:08]Write i2c OK [14:00:08]MH_I2C_Read... [14:00:08]Read from MH i2c: F0 [14:00:08]MH_I2C_Read... [14:00:08]Read from MH i2c: F0 09 00 [14:00:08]MH_I2C_Read... [14:00:08]Read from MH i2c: F0 09 00 70 04 00 E9 1B 25 66 F4 E9 65 64 A1 [14:00:08]GetLastDocTimeStamp 1713707992 [14:00:08]current date 1713708009 [14:00:08]FM_GetShiftState [14:00:08]SAM_PROTO_GetShiftState [14:00:08]wFMCommunicate request_size=4 [14:00:08]MH_SAM_APDU [14:00:08]CAPDU: 80 13 01 00 [14:00:08]Write to MH i2c: E2 08 00 71 04 80 13 01 00 00 00 00 00 F2 [14:00:08]Write i2c OK [14:00:08]MH_I2C_Read... [14:00:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:08]Read from MH i2c: E2 [14:00:08]MH_I2C_Read... [14:00:08]Read from MH i2c: E2 0E 00 [14:00:08]MH_I2C_Read... [14:00:08]Read from MH i2c: E2 0E 00 71 04 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 39 [14:00:08]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [14:00:08]wFMCommunicate OK [14:00:08]SAM_PROTO_GetShiftState done [14:00:08]FM_GetShiftState done [14:00:08]opened in 1713658965 [14:00:08]opened+sec_in_day 1713745365 [14:00:08]quantity*price = 50009 [14:00:08]sum+1 = 50010 [14:00: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 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 105 21.04.2024 14:00 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76849 ФПД: 31613090955827 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T140009&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76849&fm=31613090955827&tin=02508201610067®Number=0000000000091573&sum=50000 [14:00:09]StoreToDocumentArchive [14:00:09]shift 372 fd 76849 [14:00:09]save to /storage/0372/doc_00076849 [14:00:09]save last doc name /storage/0372/doc_00076849 to /storage/kkm_last_doc_name [14:00:09]save OK [14:00:09]Clear old archive folders... [14:00:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:00:09]tlvbuf is 010A8620 [14:00:09]SAM_PROTO_ClearQueue [14:00:09]wFMCommunicate request_size=4 [14:00:09]MH_SAM_APDU [14:00:09]CAPDU: 80 09 00 00 [14:00:09]Write to MH i2c: E2 08 00 7E 04 80 09 00 00 00 00 00 00 F4 [14:00:09]Write i2c OK [14:00:09]MH_I2C_Read... [14:00:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:00:09]Read from MH i2c: E2 [14:00:09]MH_I2C_Read... [14:00:09]Read from MH i2c: E2 03 00 [14:00:09]MH_I2C_Read... [14:00:09]Read from MH i2c: E2 03 00 7E 04 00 90 00 F6 [14:00:09]RAPDU: 90 00 [14:00:09]wFMCommunicate OK [14:00:09]SAM_PROTO_ClearQueue done [14:00:09]KKMCreateOFDPacket [14:00:09]OFDProtocolAddRootSTLVToBuf [14:00:09]FM_MakeSignedData [14:00:09]FM_MakeSignedData [14:00:09]SAM_PROTO_SignData [14:00:09]wFMCommunicate request_size=4 [14:00:09]MH_SAM_APDU [14:00:09]CAPDU: 80 0D 01 02 [14:00:09]Write to MH i2c: E2 08 00 7F 04 80 0D 01 02 00 00 00 00 FC [14:00:09]Write i2c OK [14:00:09]MH_I2C_Read... [14:00:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:00:09]Read from MH i2c: E2 [14:00:09]MH_I2C_Read... [14:00:09]Read from MH i2c: E2 03 00 [14:00:09]MH_I2C_Read... [14:00:09]Read from MH i2c: E2 03 00 7F 04 00 90 00 F7 [14:00:09]RAPDU: 90 00 [14:00:09]wFMCommunicate OK [14:00:09]wFMCommunicate request_size=255 [14:00:09]MH_SAM_APDU [14:00:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 69 00 00 00 F4 03 04 00 E9 1B 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 31 2C 01 00 35 04 06 00 1C C0 7F 0E [14:00:09]Write to MH i2c: E2 02 01 80 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 69 00 00 00 F4 03 04 00 E9 1B 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 31 2C 01 00 35 04 06 00 1C C0 7F 0E 00 00 DA [14:00:09]Write i2c OK [14:00:09]MH_I2C_Read... [14:00:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:09]Read from MH i2c: E2 [14:00:09]MH_I2C_Read... [14:00:09]Read from MH i2c: E2 03 00 [14:00:09]MH_I2C_Read... [14:00:09]Read from MH i2c: E2 03 00 80 04 00 90 00 F8 [14:00:09]RAPDU: 90 00 [14:00:09]wFMCommunicate OK [14:00:09]wFMCommunicate request_size=7 [14:00:09]MH_SAM_APDU [14:00:09]CAPDU: 80 0D 02 02 02 82 33 [14:00:09]Write to MH i2c: E2 0A 00 81 04 80 0D 02 02 02 00 82 33 00 00 B8 [14:00:09]Write i2c OK [14:00:09]MH_I2C_Read... [14:00:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:09]Read from MH i2c: E2 [14:00:09]MH_I2C_Read... [14:00:09]Read from MH i2c: E2 03 00 [14:00:09]MH_I2C_Read... [14:00:09]Read from MH i2c: E2 03 00 81 04 00 90 00 F9 [14:00:10]RAPDU: 90 00 [14:00:10]wFMCommunicate OK [14:00:10]wFMCommunicate request_size=4 [14:00:10]MH_SAM_APDU [14:00:10]CAPDU: 80 0D 03 02 [14:00:10]Write to MH i2c: E2 08 00 82 04 80 0D 03 02 00 00 00 00 01 [14:00:10]Write i2c OK [14:00:10]MH_I2C_Read... [14:00:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:00:10]Read from MH i2c: E2 [14:00:10]MH_I2C_Read... [14:00:10]Read from MH i2c: E2 0B 00 [14:00:10]MH_I2C_Read... [14:00:10]Read from MH i2c: E2 0B 00 82 04 00 BD A6 FF 69 23 FC 61 06 90 00 53 [14:00:10]RAPDU: BD A6 FF 69 23 FC 61 06 90 00 [14:00:10]wFMCommunicate OK [14:00:10]SAM_PROTO_SignData done [14:00:10]FM_MakeSignedData done [14:00:10]CreateOFDProtocolMessage [14:00:10]wFMCommunicate request_size=4 [14:00:10]MH_SAM_APDU [14:00:10]CAPDU: 80 11 00 00 [14:00:10]Write to MH i2c: E2 08 00 83 04 80 11 00 00 00 00 00 00 01 [14:00:10]Write i2c OK [14:00:10]MH_I2C_Read... [14:00:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:10]Read from MH i2c: E2 [14:00:10]MH_I2C_Read... [14:00:10]Read from MH i2c: E2 17 00 [14:00:10]MH_I2C_Read... [14:00:10]Read from MH i2c: E2 17 00 83 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 54 [14:00:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:00:10]wFMCommunicate OK [14:00:10]CreateOFDProtocolMessage done [14:00:10]OFDSenderStorePacket 76849 [14:00:10]StoreOFDPacket docnum=76849 [14:00:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 2F B5 04 01 60 36 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 E9 1B 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 31 2C 01 00 35 04 06 00 1C C0 7F 0E 82 33 BD A6 FF 69 23 FC 61 06 [14:00:10]CheckFolder [14:00:10]dirname=/storage/ofd_packets [14:00:10]CheckFolder done [14:00:10]ProducePacketName [14:00:10]name=ofd_packets/00076849 [14:00:10]NVStorageSaveData ofd_packets/00076849 [14:00:10]File name is /storage/ofd_packets/00076849 [14:00:10]Write 298 bytes [14:00:10]NVStorageSaveData done [14:00:10]OFDSenderStorePacket done [14:00:10]KKMCreateOFDPacket done [14:00:10]NVStorageSaveData kkm_last_timestamp [14:00:10]File name is /storage/kkm_last_timestamp [14:00:10]Write 4 bytes [14:00:10]NVStorageSaveData done [14:00:10]ExternCall_PrintAddStr [14:00:10]wPrintStart [14:00:10]Write to MH i2c: 01 00 00 84 04 88 [14:00:10]Write i2c OK [14:00:10]MH_I2C_Read... [14:00:10]Read from MH i2c: 01 [14:00:10]MH_I2C_Read... [14:00:10]Read from MH i2c: 01 07 00 [14:00:10]MH_I2C_Read... [14:00:10]Read from MH i2c: 01 07 00 84 04 00 00 00 00 00 FF 0F 9D [14:00:10]RasterBufferAndPrint [14:00:10]line Счет N : (1)191386 [14:00:10]line ИНН: 02508201610067 [14:00:10]line Контрольно-Кассовый Чек [14:00:10]line ПРОДАЖА [14:00:10]line ТРК (МРК, ГНК) : 61 [14:00:10]line Товар: 2710194210 [14:00:10]line ДТ-К-5 [14:00:10]line 6.860 * 72.90 [14:00:10]line = 500.09 [14:00:10]line НДС 12% НСП 1% [14:00:10]line > о реализуемом товаре [14:00:10]line ОКРУГЛЕНИЕ: -0.09 [14:00:10]line ИТОГО: 500.00 [14:00:10]line Внесено: 500.00 [14:00:10]line СДАЧА: 0.00 [14:00:10]line НСП 1% : 4.43 [14:00:10]line НДС 12% : 53.11 [14:00:10]line Наличными: 500.00 [14:00:10]line Безнал.: 0.00 [14:00:10]line Место: АЗС № 106 "Партнер Нефть" [14:00:10]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [14:00:10]line СНО: Общий режим [14:00:10]line Чек 105 21.04.2024 14:00 [14:00:10]line Смена: 372 ФФД: 1.0 [14:00:10]line ЗНМ: 0300000141 [14:00:10]line РНМ: 0000000000091573 [14:00:10]line Версия ККМ: 001 [14:00:10]line ФМ: 0000000000874652 [14:00:10]line ФД: 76849 [14:00:10]line ФПД: 31613090955827 [14:00:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T140009&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76849&fm=31613090955827&tin=02508201610067®Number=0000000000091573&sum=50000 [14:00:10]OFD Sender: Processing packet 76849 [packets to send 129, broken 128] [14:00:10]ProducePacketName [14:00:10]name=ofd_packets/00076849 [14:00:10]OFD Sender: To server: pG, [14:00:10]CommunicateWithHost lk.salyk.kg:30040 [14:00:10]ConnectInit lk.salyk.kg [14:00:10]written 0, free lines is 4095 [14:00:10]Connected sock=10 [14:00:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 2F B5 04 01 60 36 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 E9 1B 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 31 2C 01 00 35 04 06 00 1C C0 7F 0E 82 33 BD A6 FF 69 23 FC 61 06 [14:00:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 7C 43 47 00 17 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 31 2C 01 00 F4 03 04 00 6E C3 24 66 B6 04 01 00 00 29 17 EB 2F CC EE 1C 4A [14:00:10]CommunicateWithHost err = 0 [14:00:10]CheckOFDResponse [14:00:10]1017 (14) - 77093643461234 [14:00:10]1041 (16) - 0000000000874652 [14:00:10]1040 (4) - 76849 [14:00:10]1012 (4) - 21.04.2024 07:42 [14:00:10]1206 (1) - 0 [14:00:10]OFD Sender: Remove packet 76849 [14:00:10]ProducePacketName [14:00:10]name=ofd_packets/00076849 [14:00:10]NVStorageDeleteData [14:00:10]Write to MH i2c: 01 00 00 AE 04 B2 [14:00:10]Write i2c OK [14:00:10]MH_I2C_Read... [14:00:10]Read from MH i2c: 01 [14:00:10]MH_I2C_Read... [14:00:10]Read from MH i2c: 01 07 00 [14:00:10]MH_I2C_Read... [14:00:10]Read from MH i2c: 01 07 00 AE 04 00 00 00 00 00 F6 0C BB [14:00:10]RasterBufferAndPrint [14:00:10]line [14:00:10]line [14:00:10]line [14:00:10]line [14:00:10]line [14:00:10]written 0, free lines is 3326 [14:00:10]MH_Cut [14:00:10]Write to MH i2c: D1 01 00 B5 04 01 8B [14:00:10]Write i2c OK [14:00:10]MH_I2C_Read... [14:00:10]Read from MH i2c: D1 [14:00:10]MH_I2C_Read... [14:00:10]Read from MH i2c: D1 01 00 [14:00:10]MH_I2C_Read... [14:00:10]Read from MH i2c: D1 01 00 B5 04 00 8A [14:00:10]Write to MH i2c: 01 00 00 B6 04 BA [14:00:10]Write i2c OK [14:00:10]MH_I2C_Read... [14:00:10]int [14:00:10]*** FLAG_PRN_PAP1 set [14:00:10]*** FLAG_PRN_PAP1 reset [14:00:10]*** Cut start [14:00:10]*** Partial cut [14:00:10]*** CUTSNS_PIN = 1 [14:00:10]*** CUTSNS_PIN = 0 [14:00:11]*** Brake cut motor [14:00:11]OFD Sender: No OFD packet to send [14:00:11]Read from MH i2c: 01 [14:00:11]MH_I2C_Read... [14:00:11]*** Stop cut motor [14:00:11]*** Cut end [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 B6 04 00 00 00 00 00 FF 0F CF [14:00:11]process_action close_receipt done [14:00:11]requested_data is exist [14:00:11]produce_requested_data [14:00:11]requested_item fm.sn is exist - process it [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 B7 04 80 11 00 00 00 00 00 00 35 [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 B7 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 88 [14:00:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:00:11]wFMCommunicate OK [14:00:11]requested_item fd.num is exist - process it [14:00:11]SAM_PROTO_GetFieldsCounters [14:00:11]wFMCommunicate request_size=4 [14:00:11]MH_SAM_APDU [14:00:11]CAPDU: 80 13 00 00 [14:00:11]Write to MH i2c: E2 08 00 B8 04 80 13 00 00 00 00 00 00 38 [14:00:11]Write i2c OK [14:00:11]MH_I2C_Read... [14:00:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:00:11]Read from MH i2c: E2 [14:00:11]MH_I2C_Read... [14:00:11]Read from MH i2c: E2 62 00 [14:00:11]MH_I2C_Read... [14:00:11]Read from MH i2c: E2 62 00 B8 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 31 2C 01 00 0E 04 04 00 74 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 67 [14:00: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 31 2C 01 00 0E 04 04 00 74 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 [14:00:11]wFMCommunicate OK [14:00:11]SAM_PROTO_GetFieldsCounters done [14:00:11]requested_item shift.num is exist - process it [14:00:11]requested_item shift.opened is exist - process it [14:00:11]req_shift_opened [14:00:11]FM_GetShiftState [14:00:11]SAM_PROTO_GetShiftState [14:00:11]wFMCommunicate request_size=4 [14:00:11]MH_SAM_APDU [14:00:11]CAPDU: 80 13 01 00 [14:00:11]Write to MH i2c: 01 00 00 B9 04 BD [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 B9 04 00 00 00 00 00 FF 0F D2 [14:00:11]state=0 [14:00:11]Write to MH i2c: E2 08 00 BA 04 80 13 01 00 00 00 00 00 3B [14:00:11]Write i2c OK [14:00:11]MH_I2C_Read... [14:00:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:11]Read from MH i2c: E2 [14:00:11]MH_I2C_Read... [14:00:11]Read from MH i2c: E2 0E 00 [14:00:11]MH_I2C_Read... [14:00:11]Read from MH i2c: E2 0E 00 BA 04 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 82 [14:00:11]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [14:00:11]wFMCommunicate OK [14:00:11]SAM_PROTO_GetShiftState done [14:00:11]FM_GetShiftState done [14:00:11]req_shift_opened done [14:00:11]requested_item shift.open_date is exist - process it [14:00:11]req_shift_open_date [14:00:11]req_shift_open_date done [14:00:11]produce_requested_data done [14:00:11]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76849,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [14:00:11]process_action_free close_receipt [14:00:11]json_value_free [14:00:11]json_value_free done [14:00:11]process_json_proto returns [14:00:11]Send response to host [14:00:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76849,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [14:00:11]free response buf [14:00:11]execute_script done [14:00:11]execute_script returns [14:00:11]free content buf [14:00:11]Sock 9.Close socket [14:00:11]Sock 9.Thread stoped [14:00:16]OFD Sender: No OFD packet to send [14:00:21]OFD Sender: No OFD packet to send [14:00:26]OFD Sender: No OFD packet to send [14:00:31]OFD Sender: No OFD packet to send [14:00:36]OFD Sender: No OFD packet to send [14:00:41]OFD Sender: No OFD packet to send [14:00:46]OFD Sender: No OFD packet to send [14:00:51]OFD Sender: No OFD packet to send [14:00:56]OFD Sender: No OFD packet to send [14:01:01]OFD Sender: No OFD packet to send [14:01:06]OFD Sender: No OFD packet to send [14:01:11]OFD Sender: No OFD packet to send [14:01:16]OFD Sender: No OFD packet to send [14:01:21]OFD Sender: No OFD packet to send [14:01:26]OFD Sender: No OFD packet to send [14:01:31]OFD Sender: No OFD packet to send [14:01:36]OFD Sender: No OFD packet to send [14:01:41]OFD Sender: No OFD packet to send [14:01:46]OFD Sender: No OFD packet to send [14:01:51]OFD Sender: No OFD packet to send [14:01:56]OFD Sender: No OFD packet to send [14:02:01]OFD Sender: No OFD packet to send [14:02:06]OFD Sender: No OFD packet to send [14:02:11]OFD Sender: No OFD packet to send [14:02:16]OFD Sender: No OFD packet to send [14:02:21]OFD Sender: No OFD packet to send [14:02:26]OFD Sender: No OFD packet to send [14:02:31]OFD Sender: No OFD packet to send [14:02:36]OFD Sender: No OFD packet to send [14:02:41]OFD Sender: No OFD packet to send [14:02:46]OFD Sender: No OFD packet to send [14:02:51]OFD Sender: No OFD packet to send [14:02:56]OFD Sender: No OFD packet to send [14:03:01]OFD Sender: No OFD packet to send [14:03:06]OFD Sender: No OFD packet to send [14:03:11]OFD Sender: No OFD packet to send [14:03:16]OFD Sender: No OFD packet to send [14:03:21]OFD Sender: No OFD packet to send [14:03:26]OFD Sender: No OFD packet to send [14:03:31]OFD Sender: No OFD packet to send [14:03:36]OFD Sender: No OFD packet to send [14:03:41]OFD Sender: No OFD packet to send [14:03:46]OFD Sender: No OFD packet to send [14:03:51]OFD Sender: No OFD packet to send [14:03:56]OFD Sender: No OFD packet to send [14:04:01]OFD Sender: No OFD packet to send [14:04:06]OFD Sender: No OFD packet to send [14:04:11]OFD Sender: No OFD packet to send [14:04:16]OFD Sender: No OFD packet to send [14:04:21]OFD Sender: No OFD packet to send [14:04:26]OFD Sender: No OFD packet to send [14:04:31]OFD Sender: No OFD packet to send [14:04:36]OFD Sender: No OFD packet to send [14:04:41]OFD Sender: No OFD packet to send [14:04:46]OFD Sender: No OFD packet to send [14:04:51]OFD Sender: No OFD packet to send [14:04:56]OFD Sender: No OFD packet to send [14:05:01]OFD Sender: No OFD packet to send [14:05:06]OFD Sender: No OFD packet to send [14:05:11]OFD Sender: No OFD packet to send [14:05:16]OFD Sender: No OFD packet to send [14:05:21]OFD Sender: No OFD packet to send [14:05:26]OFD Sender: No OFD packet to send [14:05:31]OFD Sender: No OFD packet to send [14:05:36]OFD Sender: No OFD packet to send [14:05:41]OFD Sender: No OFD packet to send [14:05:46]OFD Sender: No OFD packet to send [14:05:51]OFD Sender: No OFD packet to send [14:05:56]OFD Sender: No OFD packet to send [14:06:01]OFD Sender: No OFD packet to send [14:06:06]OFD Sender: No OFD packet to send [14:06:11]OFD Sender: No OFD packet to send [14:06:16]OFD Sender: No OFD packet to send [14:06:21]OFD Sender: No OFD packet to send [14:06:26]OFD Sender: No OFD packet to send [14:06:31]OFD Sender: No OFD packet to send [14:06:36]OFD Sender: No OFD packet to send [14:06:41]OFD Sender: No OFD packet to send [14:06:44]int [14:06:44]Write to MH i2c: 01 00 00 BB 04 BF [14:06:44]*** FLAG_PRN_PAP1 set [14:06:44]Write i2c OK [14:06:44]MH_I2C_Read... [14:06:44]Read from MH i2c: 01 [14:06:44]MH_I2C_Read... [14:06:44]Read from MH i2c: 01 07 00 [14:06:44]MH_I2C_Read... [14:06:44]Read from MH i2c: 01 07 00 BB 04 00 01 00 00 00 FF 0F D5 [14:06:44]state=0 [14:06:44]No paper [14:06:44]int [14:06:44]Write to MH i2c: 01 00 00 BC 04 C0 [14:06:44]*** FLAG_PRN_PAP2 set [14:06:44]Write i2c OK [14:06:44]MH_I2C_Read... [14:06:44]Read from MH i2c: 01 [14:06:44]MH_I2C_Read... [14:06:44]Read from MH i2c: 01 07 00 [14:06:44]MH_I2C_Read... [14:06:44]Read from MH i2c: 01 07 00 BC 04 00 03 00 00 00 FF 0F D8 [14:06:44]state=0 [14:06:44]No paper [14:06:44]Cover opened [14:06:46]OFD Sender: No OFD packet to send [14:06:46]int [14:06:46]Write to MH i2c: 01 00 00 BD 04 C1 [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]*** FLAG_PRN_PAP1 reset [14:06:46]*** FLAG_PRN_PAP2 reset [14:06:46]*** FLAG_PRN_PAP1 set [14:06:46]Read from MH i2c: 01 07 00 BD 04 00 01 00 00 00 FF 0F D7 [14:06:46]state=3 [14:06:46]No paper [14:06:46]Cover closed [14:06:47]int [14:06:47]Write to MH i2c: 01 00 00 BE 04 C2 [14:06:47]*** FLAG_PRN_PAP1 reset [14:06:47]Write i2c OK [14:06:47]MH_I2C_Read... [14:06:47]Read from MH i2c: 01 [14:06:47]MH_I2C_Read... [14:06:47]Read from MH i2c: 01 07 00 [14:06:47]MH_I2C_Read... [14:06:47]Read from MH i2c: 01 07 00 BE 04 00 00 00 00 00 FF 0F D7 [14:06:47]state=0 [14:06:47]*** FLAG_PRN_PAP1 set [14:06:47]*** FLAG_PRN_PAP2 set [14:06:48]*** FLAG_PRN_PAP1 reset [14:06:48]*** FLAG_PRN_PAP2 reset [14:06:48]*** FLAG_PRN_PAP1 set [14:06:48]*** FLAG_PRN_PAP1 reset [14:06:48]*** FLAG_PRN_PAP1 set [14:06:48]*** FLAG_PRN_PAP1 reset [14:06:48]*** FLAG_PRN_PAP1 set [14:06:48]*** FLAG_PRN_PAP1 reset [14:06:48]*** FLAG_PRN_KEY set [14:06:49]*** FLAG_PRN_KEY reset [14:06:49]*** FLAG_PRN_KEY set [14:06:49]*** FLAG_PRN_KEY reset [14:06:51]accept exits with 7 [14:06:51]New connection [14:06:51]New thread 3066658148 created [14:06:51]Thread 3066801508 joined [14:06:51]Waiting for new connection... [14:06:51] Sock 7.Parse request [14:06:51]Sock 7.Check first char [14:06:51]Sock 7.First char is OK [14:06:51]request: POST /json_proto HTTP/1.0 [14:06:51]Method: POST [14:06:51]URL: /json_proto [14:06:51]Method is POST - this is cgi request [14:06:51]url: /json_proto [14:06:51]query_string will be loaded in cgi processing [14:06:51]execute_cgi json_proto POST (null) [14:06:51]execute_cgi path=json_proto method=POST [14:06:51]POST find Content-Length [14:06:51]Host: 172.17.62.5:8080 [14:06:51]Content-Length: 215 [14:06:51]Content-Type: application/json [14:06:51] [14:06:51]POST finish read [14:06:51]Found Content-Length = 215 [14:06:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:51]execute_script... [14:06:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:51]POST & json_proto [14:06:51]process_json_proto [14:06:51]json parsed OK: [14:06:51]protocol is kg_v1.0 [14:06:51]action value=get_value [14:06:51]process_action get_value [14:06:51]cmd_get_value [14:06:51]process_action get_value done [14:06:51]requested_data is exist [14:06:51]produce_requested_data [14:06:51]requested_item kkm.sn is exist - process it [14:06:51]requested_item kkm.ver is exist - process it [14:06:51]requested_item fm.sn is exist - process it [14:06:51]wFMCommunicate request_size=4 [14:06:51]MH_SAM_APDU [14:06:51]CAPDU: 80 11 00 00 [14:06:51]Write to MH i2c: E2 08 00 BF 04 80 11 00 00 00 00 00 00 3D [14:06:51]Write i2c OK [14:06:51]MH_I2C_Read... [14:06:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:51]Read from MH i2c: E2 [14:06:51]MH_I2C_Read... [14:06:51]Read from MH i2c: E2 17 00 [14:06:51]MH_I2C_Read... [14:06:51]Read from MH i2c: E2 17 00 BF 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 90 [14:06:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:06:51]wFMCommunicate OK [14:06:51]requested_item fd.num is exist - process it [14:06:51]SAM_PROTO_GetFieldsCounters [14:06:51]wFMCommunicate request_size=4 [14:06:51]MH_SAM_APDU [14:06:51]CAPDU: 80 13 00 00 [14:06:51]Write to MH i2c: E2 08 00 C0 04 80 13 00 00 00 00 00 00 40 [14:06:51]Write i2c OK [14:06:51]MH_I2C_Read... [14:06:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:06:51]Read from MH i2c: E2 [14:06:51]MH_I2C_Read... [14:06:51]Read from MH i2c: E2 62 00 [14:06:51]MH_I2C_Read... [14:06:51]Read from MH i2c: E2 62 00 C0 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 31 2C 01 00 0E 04 04 00 74 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 6F [14:06: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 31 2C 01 00 0E 04 04 00 74 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 [14:06:51]wFMCommunicate OK [14:06:51]SAM_PROTO_GetFieldsCounters done [14:06:51]requested_item shift.num is exist - process it [14:06:51]requested_item shift.opened is exist - process it [14:06:51]req_shift_opened [14:06:51]FM_GetShiftState [14:06:51]SAM_PROTO_GetShiftState [14:06:51]wFMCommunicate request_size=4 [14:06:51]MH_SAM_APDU [14:06:51]CAPDU: 80 13 01 00 [14:06:51]Write to MH i2c: E2 08 00 C1 04 80 13 01 00 00 00 00 00 42 [14:06:51]Write i2c OK [14:06:51]MH_I2C_Read... [14:06:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:51]Read from MH i2c: E2 [14:06:51]MH_I2C_Read... [14:06:51]Read from MH i2c: E2 0E 00 [14:06:51]MH_I2C_Read... [14:06:51]Read from MH i2c: E2 0E 00 C1 04 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 89 [14:06:51]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [14:06:51]wFMCommunicate OK [14:06:51]SAM_PROTO_GetShiftState done [14:06:51]FM_GetShiftState done [14:06:51]req_shift_opened done [14:06:51]requested_item shift.open_date is exist - process it [14:06:51]req_shift_open_date [14:06:51]req_shift_open_date done [14:06:51]produce_requested_data done [14:06:51]produce_requested_data return {"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76849,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [14:06:51]process_action_free get_value [14:06:51]json_value_free [14:06:51]json_value_free done [14:06:51]process_json_proto returns [14:06:51]Send response to host [14:06:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76849,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [14:06:51]free response buf [14:06:51]execute_script done [14:06:51]execute_script returns [14:06:51]free content buf [14:06:51]Sock 7.Close socket [14:06:51]Sock 7.Thread stoped [14:06:51]accept exits with 9 [14:06:51]New connection [14:06:51]New thread 3066801508 created [14:06:51]Thread 3066658148 joined [14:06:51]Waiting for new connection... [14:06:51] Sock 9.Parse request [14:06:51]Sock 9.Check first char [14:06:51]Sock 9.First char is OK [14:06:51]request: POST /json_proto HTTP/1.0 [14:06:51]Method: POST [14:06:51]URL: /json_proto [14:06:51]Method is POST - this is cgi request [14:06:51]url: /json_proto [14:06:51]query_string will be loaded in cgi processing [14:06:51]execute_cgi json_proto POST (null) [14:06:51]execute_cgi path=json_proto method=POST [14:06:51]POST find Content-Length [14:06:51]Host: 172.17.62.5:8080 [14:06:51]Content-Length: 331 [14:06:51]Content-Type: application/json [14:06:51] [14:06:51]POST finish read [14:06:51]Found Content-Length = 331 [14:06:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:06:51]execute_script... [14:06:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:06:51]POST & json_proto [14:06:51]process_json_proto [14:06:51]json parsed OK: [14:06:51]protocol is kg_v1.0 [14:06:51]action value=get_value [14:06:51]process_action get_value [14:06:51]cmd_get_value [14:06:51]process_action get_value done [14:06:51]requested_data is exist [14:06:51]produce_requested_data [14:06:51]requested_item fm.sale.total is exist - process it [14:06:51]SAM_PROTO_GetFMData [14:06:51]wFMCommunicate request_size=4 [14:06:51]MH_SAM_APDU [14:06:51]CAPDU: 80 13 03 00 [14:06:51]Write to MH i2c: E2 08 00 C2 04 80 13 03 00 00 00 00 00 45 [14:06:51]Write i2c OK [14:06:51]MH_I2C_Read... [14:06:51]OFD Sender: No OFD packet to send [14:06:52]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:06:52]Read from MH i2c: E2 [14:06:52]MH_I2C_Read... [14:06:52]Read from MH i2c: E2 FD 00 [14:06:52]MH_I2C_Read... [14:06:52]Read from MH i2c: E2 FD 00 C2 04 00 C8 04 85 04 C4 04 6E 04 04 00 49 29 01 00 69 04 A3 00 6F 04 04 00 59 27 01 00 B1 04 05 00 8F 06 7D BA 02 70 04 05 00 60 6D 91 76 02 72 04 04 00 2F 99 EB 43 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 24 AB 2F 4A 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 C0 92 2E 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F0 01 00 00 B1 04 05 00 F4 E2 DA 15 01 70 04 05 00 F4 E2 DA 15 01 72 04 00 00 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 1F BE 81 1D EF 90 00 BD [14:06:52]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 49 29 01 00 69 04 A3 00 6F 04 04 00 59 27 01 00 B1 04 05 00 8F 06 7D BA 02 70 04 05 00 60 6D 91 76 02 72 04 04 00 2F 99 EB 43 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 24 AB 2F 4A 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 C0 92 2E 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F0 01 00 00 B1 04 05 00 F4 E2 DA 15 01 70 04 05 00 F4 E2 DA 15 01 72 04 00 00 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 1F BE 81 1D EF 90 00 [14:06:52]wFMCommunicate OK [14:06:52]wFMCommunicate request_size=4 [14:06:52]MH_SAM_APDU [14:06:52]CAPDU: 80 17 00 00 [14:06:52]Write to MH i2c: E2 08 00 C3 04 80 17 00 00 00 00 00 00 47 [14:06:52]Write i2c OK [14:06:52]MH_I2C_Read... [14:06:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:06:52]Read from MH i2c: E2 [14:06:52]MH_I2C_Read... [14:06:52]Read from MH i2c: E2 FD 00 [14:06:52]MH_I2C_Read... [14:06:52]Read from MH i2c: E2 FD 00 C3 04 00 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 66 7A 75 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 90 00 AD [14:06:52]RAPDU: 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 66 7A 75 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 90 00 [14:06:52]wFMCommunicate OK [14:06:52]wFMCommunicate request_size=4 [14:06:52]MH_SAM_APDU [14:06:52]CAPDU: 80 17 00 00 [14:06:52]Write to MH i2c: E2 08 00 C4 04 80 17 00 00 00 00 00 00 48 [14:06:52]Write i2c OK [14:06:52]MH_I2C_Read... [14:06:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:06:52]Read from MH i2c: E2 [14:06:52]MH_I2C_Read... [14:06:52]Read from MH i2c: E2 FD 00 [14:06:52]MH_I2C_Read... [14:06:52]Read from MH i2c: E2 FD 00 C4 04 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 20 [14:06:52]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [14:06:52]wFMCommunicate OK [14:06:52]wFMCommunicate request_size=4 [14:06:52]MH_SAM_APDU [14:06:52]CAPDU: 80 17 00 00 [14:06:52]Write to MH i2c: E2 08 00 C5 04 80 17 00 00 00 00 00 00 49 [14:06:52]Write i2c OK [14:06:52]MH_I2C_Read... [14:06:52]int line is 0 - check status [14:06:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:06:52]Read from MH i2c: E2 [14:06:52]MH_I2C_Read... [14:06:52]Read from MH i2c: E2 FD 00 [14:06:52]MH_I2C_Read... [14:06:52]Read from MH i2c: E2 FD 00 C5 04 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 C1 [14:06:52]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [14:06:52]wFMCommunicate OK [14:06:52]wFMCommunicate request_size=4 [14:06:52]MH_SAM_APDU [14:06:52]CAPDU: 80 17 00 00 [14:06:53]Write to MH i2c: 01 00 00 C6 04 CA [14:06:53]Write i2c OK [14:06:53]MH_I2C_Read... [14:06:53]Read from MH i2c: 01 [14:06:53]MH_I2C_Read... [14:06:53]Read from MH i2c: 01 07 00 [14:06:53]MH_I2C_Read... [14:06:53]Read from MH i2c: 01 07 00 C6 04 00 00 00 00 00 FF 0F DF [14:06:53]state=0 [14:06:53]Write to MH i2c: E2 08 00 C7 04 80 17 00 00 00 00 00 00 4B [14:06:53]Write i2c OK [14:06:53]MH_I2C_Read... [14:06:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [14:06:53]Read from MH i2c: E2 [14:06:53]MH_I2C_Read... [14:06:53]Read from MH i2c: E2 E5 00 [14:06:53]MH_I2C_Read... [14:06:53]Read from MH i2c: E2 E5 00 C7 04 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 2F [14:06:53]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:06:53]wFMCommunicate OK [14:06:53]SAM_PROTO_GetFMData done [14:06:53]requested_item fm.sale_refund.total is exist - process it [14:06:53]requested_item fm.buy.total is exist - process it [14:06:53]requested_item shift.sale.total is exist - process it [14:06:53]SAM_PROTO_GetShiftData [14:06:53]wFMCommunicate request_size=4 [14:06:53]MH_SAM_APDU [14:06:53]CAPDU: 80 13 02 00 [14:06:53]Write to MH i2c: E2 08 00 C8 04 80 13 02 00 00 00 00 00 4A [14:06:53]Write i2c OK [14:06:53]MH_I2C_Read... [14:06:53]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:06:53]Read from MH i2c: E2 [14:06:53]MH_I2C_Read... [14:06:53]Read from MH i2c: E2 FD 00 [14:06:53]MH_I2C_Read... [14:06:53]Read from MH i2c: E2 FD 00 C8 04 00 AF 04 AA 04 AB 04 6E 04 04 00 69 00 00 00 69 04 9C 00 6F 04 04 00 69 00 00 00 B1 04 03 00 40 E8 C0 70 04 03 00 D4 FE 95 72 04 03 00 6C E9 2A 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 56 7D 14 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 1D B5 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 74 [14:06:53]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 69 00 00 00 69 04 9C 00 6F 04 04 00 69 00 00 00 B1 04 03 00 40 E8 C0 70 04 03 00 D4 FE 95 72 04 03 00 6C E9 2A 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 56 7D 14 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 1D B5 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [14:06:53]wFMCommunicate OK [14:06:53]wFMCommunicate request_size=4 [14:06:53]MH_SAM_APDU [14:06:53]CAPDU: 80 17 00 00 [14:06:53]Write to MH i2c: E2 08 00 C9 04 80 17 00 00 00 00 00 00 4D [14:06:53]Write i2c OK [14:06:53]MH_I2C_Read... [14:06:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:06:53]Read from MH i2c: E2 [14:06:53]MH_I2C_Read... [14:06:53]Read from MH i2c: E2 FD 00 [14:06:53]MH_I2C_Read... [14:06:53]Read from MH i2c: E2 FD 00 C9 04 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 66 [14:06:53]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [14:06:53]wFMCommunicate OK [14:06:53]wFMCommunicate request_size=4 [14:06:53]MH_SAM_APDU [14:06:53]CAPDU: 80 17 00 00 [14:06:53]Write to MH i2c: E2 08 00 CA 04 80 17 00 00 00 00 00 00 4E [14:06:53]Write i2c OK [14:06:53]MH_I2C_Read... [14:06:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:06:54]Read from MH i2c: E2 [14:06:54]MH_I2C_Read... [14:06:54]Read from MH i2c: E2 FD 00 [14:06:54]MH_I2C_Read... [14:06:54]Read from MH i2c: E2 FD 00 CA 04 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 02 [14:06:54]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [14:06:54]wFMCommunicate OK [14:06:54]wFMCommunicate request_size=4 [14:06:54]MH_SAM_APDU [14:06:54]CAPDU: 80 17 00 00 [14:06:54]Write to MH i2c: E2 08 00 CB 04 80 17 00 00 00 00 00 00 4F [14:06:54]Write i2c OK [14:06:54]MH_I2C_Read... [14:06:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:06:54]Read from MH i2c: E2 [14:06:54]MH_I2C_Read... [14:06:54]Read from MH i2c: E2 FD 00 [14:06:54]MH_I2C_Read... [14:06:54]Read from MH i2c: E2 FD 00 CB 04 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 CD [14:06:54]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [14:06:54]wFMCommunicate OK [14:06:54]wFMCommunicate request_size=4 [14:06:54]MH_SAM_APDU [14:06:54]CAPDU: 80 17 00 00 [14:06:54]Write to MH i2c: E2 08 00 CC 04 80 17 00 00 00 00 00 00 50 [14:06:54]Write i2c OK [14:06:54]MH_I2C_Read... [14:06:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [14:06:54]Read from MH i2c: E2 [14:06:54]MH_I2C_Read... [14:06:54]Read from MH i2c: E2 CC 00 [14:06:54]MH_I2C_Read... [14:06:54]Read from MH i2c: E2 CC 00 CC 04 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 31 [14:06:54]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:06:54]wFMCommunicate OK [14:06:54]SAM_PROTO_GetShiftData done [14:06:54]requested_item shift.sale.total_cash is exist - process it [14:06:54]requested_item shift.sale_refund.total is exist - process it [14:06:54]requested_item shift.sale_refund.total_cash is exist - process it [14:06:54]requested_item shift.buy.total is exist - process it [14:06:54]requested_item shift.buy.total_cash is exist - process it [14:06:54]produce_requested_data done [14:06:54]produce_requested_data return {"fm.sale.total":117186904.47,"fm.sale_refund.total":46616337.80,"fm.buy.total":0.00,"shift.sale.total":126423.68,"shift.sale.total_cash":98301.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [14:06:54]process_action_free get_value [14:06:54]json_value_free [14:06:54]json_value_free done [14:06:54]process_json_proto returns [14:06:54]Send response to host [14:06:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":117186904.47,"fm.sale_refund.total":46616337.80,"fm.buy.total":0.00,"shift.sale.total":126423.68,"shift.sale.total_cash":98301.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [14:06:54]free response buf [14:06:54]execute_script done [14:06:54]execute_script returns [14:06:54]free content buf [14:06:54]Sock 9.Close socket [14:06:54]Sock 9.Thread stoped [14:06:56]OFD Sender: No OFD packet to send [14:07:01]OFD Sender: No OFD packet to send [14:07:06]OFD Sender: No OFD packet to send [14:07:11]OFD Sender: No OFD packet to send [14:07:13]accept exits with 7 [14:07:13]New connection [14:07:13]New thread 3066658148 created [14:07:13]Thread 3066801508 joined [14:07:13]Waiting for new connection... [14:07:13] Sock 7.Parse request [14:07:13]Sock 7.Check first char [14:07:13]Sock 7.First char is OK [14:07:13]request: POST /json_proto HTTP/1.0 [14:07:13]Method: POST [14:07:13]URL: /json_proto [14:07:13]Method is POST - this is cgi request [14:07:13]url: /json_proto [14:07:13]query_string will be loaded in cgi processing [14:07:13]execute_cgi json_proto POST (null) [14:07:13]execute_cgi path=json_proto method=POST [14:07:13]POST find Content-Length [14:07:13]Host: 172.17.62.5:8080 [14:07:13]Content-Length: 682 [14:07:13]Content-Type: application/json [14:07:13] [14:07:13]POST finish read [14:07:13]Found Content-Length = 682 [14:07:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191388", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:07:13]execute_script... [14:07: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)191388", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:07:13]POST & json_proto [14:07:13]process_json_proto [14:07:13]json parsed OK: [14:07:13]protocol is kg_v1.0 [14:07:13]action value=close_receipt [14:07:13]process_action close_receipt [14:07:13]cmd_close_receipt [14:07:13]MH_GetDate [14:07:13]Write to MH i2c: F0 00 00 CD 04 C0 [14:07:13]Write i2c OK [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: F0 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: F0 09 00 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: F0 09 00 CD 04 00 92 1D 25 66 F4 E9 65 64 A9 [14:07:13]GetLastDocTimeStamp 1713708009 [14:07:13]current date 1713708434 [14:07:13]FM_GetShiftState [14:07:13]SAM_PROTO_GetShiftState [14:07:13]wFMCommunicate request_size=4 [14:07:13]MH_SAM_APDU [14:07:13]CAPDU: 80 13 01 00 [14:07:13]Write to MH i2c: E2 08 00 CE 04 80 13 01 00 00 00 00 00 4F [14:07:13]Write i2c OK [14:07:13]MH_I2C_Read... [14:07:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:13]Read from MH i2c: E2 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: E2 0E 00 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: E2 0E 00 CE 04 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 96 [14:07:13]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [14:07:13]wFMCommunicate OK [14:07:13]SAM_PROTO_GetShiftState done [14:07:13]FM_GetShiftState done [14:07:13]opened in 1713658965 [14:07:13]opened+sec_in_day 1713745365 [14:07:13]quantity*price = 100013 [14:07:13]sum+1 = 100014 [14:07:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 106 21.04.2024 14:07 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76850 ФПД: 121100099709935 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T140714&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76850&fm=121100099709935&tin=02508201610067®Number=0000000000091573&sum=100000 [14:07:14]StoreToDocumentArchive [14:07:14]shift 372 fd 76850 [14:07:14]save to /storage/0372/doc_00076850 [14:07:14]save last doc name /storage/0372/doc_00076850 to /storage/kkm_last_doc_name [14:07:14]save OK [14:07:14]Clear old archive folders... [14:07:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:07:14]tlvbuf is 010AFBC0 [14:07:14]SAM_PROTO_ClearQueue [14:07:14]wFMCommunicate request_size=4 [14:07:14]MH_SAM_APDU [14:07:14]CAPDU: 80 09 00 00 [14:07:14]Write to MH i2c: E2 08 00 DB 04 80 09 00 00 00 00 00 00 51 [14:07:14]Write i2c OK [14:07:14]MH_I2C_Read... [14:07:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:07:14]Read from MH i2c: E2 [14:07:14]MH_I2C_Read... [14:07:14]Read from MH i2c: E2 03 00 [14:07:14]MH_I2C_Read... [14:07:14]Read from MH i2c: E2 03 00 DB 04 00 90 00 53 [14:07:14]RAPDU: 90 00 [14:07:14]wFMCommunicate OK [14:07:14]SAM_PROTO_ClearQueue done [14:07:14]KKMCreateOFDPacket [14:07:14]OFDProtocolAddRootSTLVToBuf [14:07:14]FM_MakeSignedData [14:07:14]FM_MakeSignedData [14:07:14]SAM_PROTO_SignData [14:07:14]wFMCommunicate request_size=4 [14:07:14]MH_SAM_APDU [14:07:14]CAPDU: 80 0D 01 02 [14:07:14]Write to MH i2c: E2 08 00 DC 04 80 0D 01 02 00 00 00 00 59 [14:07:14]Write i2c OK [14:07:14]MH_I2C_Read... [14:07:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:07:14]Read from MH i2c: E2 [14:07:14]MH_I2C_Read... [14:07:14]Read from MH i2c: E2 03 00 [14:07:14]MH_I2C_Read... [14:07:14]Read from MH i2c: E2 03 00 DC 04 00 90 00 54 [14:07:14]RAPDU: 90 00 [14:07:14]wFMCommunicate OK [14:07:14]wFMCommunicate request_size=255 [14:07:14]MH_SAM_APDU [14:07: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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 92 1D 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 32 2C 01 00 35 04 06 00 6E [14:07:14]Write to MH i2c: E2 02 01 DD 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 92 1D 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 32 2C 01 00 35 04 06 00 6E 00 00 10 [14:07:14]Write i2c OK [14:07:14]MH_I2C_Read... [14:07:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:15]Read from MH i2c: E2 [14:07:15]MH_I2C_Read... [14:07:15]Read from MH i2c: E2 03 00 [14:07:15]MH_I2C_Read... [14:07:15]Read from MH i2c: E2 03 00 DD 04 00 90 00 55 [14:07:15]RAPDU: 90 00 [14:07:15]wFMCommunicate OK [14:07:15]wFMCommunicate request_size=10 [14:07:15]MH_SAM_APDU [14:07:15]CAPDU: 80 0D 02 02 05 23 D0 6C EB EF [14:07:15]Write to MH i2c: E2 0D 00 DE 04 80 0D 02 02 05 00 23 D0 6C EB EF 00 00 9F [14:07:15]Write i2c OK [14:07:15]MH_I2C_Read... [14:07:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:15]Read from MH i2c: E2 [14:07:15]MH_I2C_Read... [14:07:15]Read from MH i2c: E2 03 00 [14:07:15]MH_I2C_Read... [14:07:15]Read from MH i2c: E2 03 00 DE 04 00 90 00 56 [14:07:15]RAPDU: 90 00 [14:07:15]wFMCommunicate OK [14:07:15]wFMCommunicate request_size=4 [14:07:15]MH_SAM_APDU [14:07:15]CAPDU: 80 0D 03 02 [14:07:15]Write to MH i2c: E2 08 00 DF 04 80 0D 03 02 00 00 00 00 5E [14:07:15]Write i2c OK [14:07:15]MH_I2C_Read... [14:07:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:07:15]Read from MH i2c: E2 [14:07:15]MH_I2C_Read... [14:07:15]Read from MH i2c: E2 0B 00 [14:07:15]MH_I2C_Read... [14:07:15]Read from MH i2c: E2 0B 00 DF 04 00 C7 57 38 13 63 7E B4 32 90 00 8F [14:07:15]RAPDU: C7 57 38 13 63 7E B4 32 90 00 [14:07:15]wFMCommunicate OK [14:07:15]SAM_PROTO_SignData done [14:07:15]FM_MakeSignedData done [14:07:15]CreateOFDProtocolMessage [14:07:15]wFMCommunicate request_size=4 [14:07:15]MH_SAM_APDU [14:07:15]CAPDU: 80 11 00 00 [14:07:15]Write to MH i2c: E2 08 00 E0 04 80 11 00 00 00 00 00 00 5E [14:07:15]Write i2c OK [14:07:15]MH_I2C_Read... [14:07:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:15]Read from MH i2c: E2 [14:07:15]MH_I2C_Read... [14:07:15]Read from MH i2c: E2 17 00 [14:07:15]MH_I2C_Read... [14:07:15]Read from MH i2c: E2 17 00 E0 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 B1 [14:07:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:07:15]wFMCommunicate OK [14:07:15]CreateOFDProtocolMessage done [14:07:15]OFDSenderStorePacket 76850 [14:07:15]StoreOFDPacket docnum=76850 [14:07:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 FE 15 07 01 07 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 92 1D 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 32 2C 01 00 35 04 06 00 6E 23 D0 6C EB EF C7 57 38 13 63 7E B4 32 [14:07:15]CheckFolder [14:07:15]dirname=/storage/ofd_packets [14:07:15]CheckFolder done [14:07:15]ProducePacketName [14:07:15]name=ofd_packets/00076850 [14:07:15]NVStorageSaveData ofd_packets/00076850 [14:07:15]File name is /storage/ofd_packets/00076850 [14:07:15]Write 301 bytes [14:07:15]NVStorageSaveData done [14:07:15]OFDSenderStorePacket done [14:07:15]KKMCreateOFDPacket done [14:07:15]NVStorageSaveData kkm_last_timestamp [14:07:15]File name is /storage/kkm_last_timestamp [14:07:15]Write 4 bytes [14:07:15]NVStorageSaveData done [14:07:15]ExternCall_PrintAddStr [14:07:15]wPrintStart [14:07:15]Write to MH i2c: 01 00 00 E1 04 E5 [14:07:15]Write i2c OK [14:07:15]MH_I2C_Read... [14:07:15]Read from MH i2c: 01 [14:07:15]MH_I2C_Read... [14:07:15]Read from MH i2c: 01 07 00 [14:07:15]MH_I2C_Read... [14:07:15]Read from MH i2c: 01 07 00 E1 04 00 00 00 00 00 FF 0F FA [14:07:15]RasterBufferAndPrint [14:07:15]line Счет N : (1)191388 [14:07:15]line ИНН: 02508201610067 [14:07:15]line Контрольно-Кассовый Чек [14:07:15]line ПРОДАЖА [14:07:15]line ТРК (МРК, ГНК) : 43 [14:07:15]line Товар: 2710124130 [14:07:15]line Аи-92-К-5 [14:07:15]line 15.530 * 64.40 [14:07:15]line = 1000.13 [14:07:15]line НДС 12% НСП 1% [14:07:15]line > о реализуемом товаре [14:07:15]line ОКРУГЛЕНИЕ: -0.13 [14:07:15]line ИТОГО: 1000.00 [14:07:15]line Внесено: 1000.00 [14:07:15]line СДАЧА: 0.00 [14:07:15]line НСП 1% : 8.85 [14:07:15]line НДС 12% : 106.21 [14:07:15]line Наличными: 1000.00 [14:07:15]line Безнал.: 0.00 [14:07:15]line Место: АЗС № 106 "Партнер Нефть" [14:07:15]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [14:07:15]line СНО: Общий режим [14:07:15]line Чек 106 21.04.2024 14:07 [14:07:15]line Смена: 372 ФФД: 1.0 [14:07:15]line ЗНМ: 0300000141 [14:07:15]line РНМ: 0000000000091573 [14:07:15]line Версия ККМ: 001 [14:07:15]line ФМ: 0000000000874652 [14:07:15]line ФД: 76850 [14:07:15]line ФПД: 121100099709935 [14:07:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T140714&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76850&fm=121100099709935&tin=02508201610067®Number=0000000000091573&sum=100000 [14:07:15]written 0, free lines is 4095 [14:07:15]OFD Sender: Processing packet 76850 [packets to send 129, broken 128] [14:07:15]ProducePacketName [14:07:15]name=ofd_packets/00076850 [14:07:15]OFD Sender: To server: pG, [14:07:15]CommunicateWithHost lk.salyk.kg:30040 [14:07:15]ConnectInit lk.salyk.kg [14:07:15]Connected sock=10 [14:07:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 FE 15 07 01 07 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 92 1D 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 32 2C 01 00 35 04 06 00 6E 23 D0 6C EB EF C7 57 38 13 63 7E B4 32 [14:07:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 90 A3 47 00 8F 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 34 36 35 32 10 04 04 00 32 2C 01 00 F4 03 04 00 17 C5 24 66 B6 04 01 00 00 93 F4 68 80 1C E3 C2 8B [14:07:15]CommunicateWithHost err = 0 [14:07:15]CheckOFDResponse [14:07:15]1017 (14) - 77093643461234 [14:07:15]1041 (16) - 0000000000874652 [14:07:15]1040 (4) - 76850 [14:07:15]1012 (4) - 21.04.2024 07:49 [14:07:15]1206 (1) - 0 [14:07:15]OFD Sender: Remove packet 76850 [14:07:15]ProducePacketName [14:07:15]name=ofd_packets/00076850 [14:07:15]NVStorageDeleteData [14:07:15]Write to MH i2c: 01 00 00 0B 05 10 [14:07:15]Write i2c OK [14:07:15]MH_I2C_Read... [14:07:15]Read from MH i2c: 01 [14:07:15]MH_I2C_Read... [14:07:15]Read from MH i2c: 01 07 00 [14:07:15]MH_I2C_Read... [14:07:15]Read from MH i2c: 01 07 00 0B 05 00 00 00 00 00 F2 0C 15 [14:07:15]RasterBufferAndPrint [14:07:15]line [14:07:15]line [14:07:15]line [14:07:15]line [14:07:15]line [14:07:15]written 0, free lines is 3322 [14:07:15]MH_Cut [14:07:15]Write to MH i2c: D1 01 00 12 05 01 E9 [14:07:15]Write i2c OK [14:07:15]MH_I2C_Read... [14:07:15]Read from MH i2c: D1 [14:07:15]MH_I2C_Read... [14:07:15]Read from MH i2c: D1 01 00 [14:07:15]MH_I2C_Read... [14:07:15]Read from MH i2c: D1 01 00 12 05 00 E8 [14:07:15]Write to MH i2c: 01 00 00 13 05 18 [14:07:15]Write i2c OK [14:07:15]MH_I2C_Read... [14:07:16]int [14:07:16]*** FLAG_PRN_PAP1 set [14:07:16]*** Cut start [14:07:16]*** Partial cut [14:07:16]*** CUTSNS_PIN = 1 [14:07:16]*** CUTSNS_PIN = 0 [14:07:16]OFD Sender: No OFD packet to send [14:07:16]*** Brake cut motor [14:07:16]Read from MH i2c: 01 [14:07:16]MH_I2C_Read... [14:07:16]*** Stop cut motor [14:07:16]*** Cut end [14:07:16]*** FLAG_PRN_PAP1 reset [14:07:16]Read from MH i2c: 01 07 00 [14:07:16]MH_I2C_Read... [14:07:16]Read from MH i2c: 01 07 00 13 05 00 00 00 00 00 FF 0F 2D [14:07:16]process_action close_receipt done [14:07:16]requested_data is exist [14:07:16]produce_requested_data [14:07:16]requested_item fm.sn is exist - process it [14:07:16]wFMCommunicate request_size=4 [14:07:16]MH_SAM_APDU [14:07:16]CAPDU: 80 11 00 00 [14:07:16]Write to MH i2c: E2 08 00 14 05 80 11 00 00 00 00 00 00 93 [14:07:16]Write i2c OK [14:07:16]MH_I2C_Read... [14:07:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:16]Read from MH i2c: E2 [14:07:16]MH_I2C_Read... [14:07:16]Read from MH i2c: E2 17 00 [14:07:16]MH_I2C_Read... [14:07:16]Read from MH i2c: E2 17 00 14 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 E6 [14:07:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:07:16]wFMCommunicate OK [14:07:16]requested_item fd.num is exist - process it [14:07:16]SAM_PROTO_GetFieldsCounters [14:07:16]wFMCommunicate request_size=4 [14:07:16]MH_SAM_APDU [14:07:16]CAPDU: 80 13 00 00 [14:07:16]Write to MH i2c: E2 08 00 15 05 80 13 00 00 00 00 00 00 96 [14:07:16]Write i2c OK [14:07:16]MH_I2C_Read... [14:07:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:07:16]Read from MH i2c: E2 [14:07:16]MH_I2C_Read... [14:07:16]Read from MH i2c: E2 62 00 [14:07:16]MH_I2C_Read... [14:07:16]Read from MH i2c: E2 62 00 15 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 32 2C 01 00 0E 04 04 00 74 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 C9 [14:07:16]RAPDU: Write to MH i2c: 5D 01 00 00 B9 00 04 16 01 05 00 1B 01 [14:07:16]11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 Write i2c OK [14:07:16]30 MH_I2C_Read... [14:07:16]30 30 30 Read from MH i2c: 30 01 30 [14:07:16]39 MH_I2C_Read... [14:07:16]31 35 37 33 10 Read from MH i2c: 04 01 04 07 00 00 32 2C [14:07:16]01 MH_I2C_Read... [14:07:16]00 0E 04 04 00 74 01 00 00 12 04 04 00 6A Read from MH i2c: 00 01 07 00 00 16 00 5E 05 00 00 00 00 00 FF 0F 30 [14:07:16]state=0 [14:07:16]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 [14:07:16]wFMCommunicate OK [14:07:16]SAM_PROTO_GetFieldsCounters done [14:07:16]requested_item shift.num is exist - process it [14:07:16]requested_item shift.opened is exist - process it [14:07:16]req_shift_opened [14:07:16]FM_GetShiftState [14:07:16]SAM_PROTO_GetShiftState [14:07:16]wFMCommunicate request_size=4 [14:07:16]MH_SAM_APDU [14:07:16]CAPDU: 80 13 01 00 [14:07:16]Write to MH i2c: E2 08 00 17 05 80 13 01 00 00 00 00 00 99 [14:07:16]Write i2c OK [14:07:16]MH_I2C_Read... [14:07:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:17]Read from MH i2c: E2 [14:07:17]MH_I2C_Read... [14:07:17]Read from MH i2c: E2 0E 00 [14:07:17]MH_I2C_Read... [14:07:17]Read from MH i2c: E2 0E 00 17 05 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 E0 [14:07:17]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [14:07:17]wFMCommunicate OK [14:07:17]SAM_PROTO_GetShiftState done [14:07:17]FM_GetShiftState done [14:07:17]req_shift_opened done [14:07:17]requested_item shift.open_date is exist - process it [14:07:17]req_shift_open_date [14:07:17]req_shift_open_date done [14:07:17]produce_requested_data done [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]/dev/ttyS4 opened [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CA FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 6F [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:09]*** [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:09]*** MH1903S init start (LINUX_LIGHT) [00:00:09]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:09]*** Serial: 3139303353513838 54000000005725CA (1903SQ88T) [00:00:09]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:09]*** step 0: 5000 (2650, 2350 REF) [00:00:09]*** step 1: 4835 (2500, 2335 REF) [00:00:09]*** step 2: 4676 (2440, 2236 REF) [00:00:09]*** step 3: 4523 (2280, 2243 REF) [00:00:09]*** step 4: 4376 (2160, 2216 REF) [00:00:09]*** step 5: 4235 (2050, 2185 REF) [00:00:09]*** step 6: 4098 (1950, 2148 REF) [00:00:09]*** step 7: 3967 (1870, 2097 REF) [00:00:09]*** step 8: 3840 (1828, 2012 REF) [00:00:09]*** step 9: 3719 (1728, 1991 REF) [00:00:09]*** step 10: 3601 (1675, 1926 REF) [00:00:09]*** step 11: 3488 (1635, 1853 REF) [00:00:09]*** step 12: 3379 (1595, 1784 REF) [00:00:09]*** step 13: 3275 (1565, 1710 REF) [00:00:09]*** step 14: 3174 (1543, 1631 REF) [00:00:09]*** step 15: 3077 (1523, 1554 REF) [00:00:09]*** step 16: 2983 (1503, 1480 REF) [00:00:09]*** step 17: 2893 (1486, 1407 REF) [00:00:09]*** step 18: 2806 (1466, 1340 REF) [00:00:09]*** step 19: 2723 (1426, 1297 REF) [00:00:09]*** step 20: 2642 (1406, 1236 REF) [00:00:09]*** step 21: 2565 (1384, 1181 REF) [00:00:09]*** step 22: 2490 (1364, 1126 REF) [00:00:09]*** step 23: 2418 (1344, 1074 REF) [00:00:09]*** step 24: 2349 (1322, 1027 REF) [00:00:09]*** step 25: 2283 (1302, 981 REF) [00:00:09]*** step 26: 2218 (1282, 936 REF) [00:00:09]*** step 27: 2157 (1262, 895 REF) [00:00:09]*** step 28: 2097 (1242, 855 REF) [00:00:09]*** step 29: 2040 (1222, 818 REF) [00:00:09]*** step 30: 1985 (1202, 783 REF) [00:00:09]*** step 31: 1932 (1191, 741 REF) [00:00:09]*** step 32: 1880 (1181, 699 REF) [00:00:09]*** step 33: 1831 (1171, 660 REF) [00:00:09]*** step 34: 1784 (1161, 623 REF) [00:00:09]*** step 35: 1738 (1151, 587 REF) [00:00:09]*** step 36: 1694 (1141, 553 REF) [00:00:09]*** step 37: 1652 (1131, 521 REF) [00:00:09]*** step 38: 1611 (1121, 490 REF) [00:00:09]*** step 39: 1572 (1111, 461 REF) [00:00:09]*** step 40: 1534 (1103, 431 REF) [00:00:09]*** step 41: 1497 (1093, 404 REF) [00:00:09]*** step 42: 1462 (1083, 379 REF) [00:00:09]*** step 43: 1428 (1073, 355 REF) [00:00:09]*** step 44: 1396 (1063, 333 REF) [00:00:09]*** step 45: 1365 (1053, 312 REF) [00:00:09]*** step 46: 1334 (1043, 291 REF) [00:00:09]*** step 47: 1305 (1033, 272 REF) [00:00:09]*** step 48: 1277 (1023, 254 REF) [00:00:09]*** step 49: 1250 (1013, 237 REF) [00:00:09]*** step 50: 1224 (990, 234 REF) [00:00:09]*** step 51: 1199 (980, 219 REF) [00:00:09]*** step 52: 1175 (970, 205 REF) [00:00:09]*** step 53: 1152 (960, 192 REF) [00:00:09]*** step 54: 1130 (950, 180 REF) [00:00:09]*** step 55: 1108 (940, 168 REF) [00:00:09]*** step 56: 1088 (930, 158 REF) [00:00:09]*** step 57: 1068 (920, 148 REF) [00:00:09]*** step 58: 1049 (910, 139 REF) [00:00:09]*** step 59: 1030 (900, 130 REF) [00:00:09]*** step 60: 1012 (890, 122 REF) [00:00:09]*** step 61: 995 (880, 115 REF) [00:00:09]*** step 62: 979 (870, 109 REF) [00:00:09]*** step 63: 963 (860, 103 REF) [00:00:09]*** step 64: 948 (850, 98 REF) [00:00:09]*** step 65: 933 (840, 93 REF) [00:00:09]*** step 66: 919 (830, 89 REF) [00:00:09]*** step 67: 905 (820, 85 REF) [00:00:09]*** step 68: 892 (810, 82 REF) [00:00:09]*** step 69: 879 (800, 79 REF) [00:00:09]*** step 70: 867 (790, 77 REF) [00:00:09]*** step 71: 855 (780, 75 REF) [00:00:09]*** step 72: 844 (770, 74 REF) [00:00:09]*** step 73: 833 (760, 73 REF) [00:00:09]*** step 74: 822 (750, 72 REF) [00:00:09]*** step 75: 812 (740, 72 REF) [00:00:09]*** step 76: 803 (730, 73 REF) [00:00:09]*** step 77: 793 (720, 73 REF) [00:00:09]*** step 78: 784 (710, 74 REF) [00:00:09]*** step 79: 776 (700, 76 REF) [00:00:09]*** step 80: 767 (690, 77 REF) [00:00:09]*** step 81: 759 (680, 79 REF) [00:00:09]*** step 82: 751 (670, 81 REF) [00:00:09]*** step 83: 744 (660, 84 REF) [00:00:09]*** step 84: 737 (650, 87 REF) [00:00:09]*** step 85: 730 (640, 90 REF) [00:00:09]*** step 86: 723 (630, 93 REF) [00:00:09]*** step 87: 717 (620, 97 REF) [00:00:09]*** step 88: 710 (610, 100 REF) [00:00:09]*** step 89: 705 (600, 105 REF) [00:00:09]*** step 90: 699 [00:00:09]*** step 91: 693 [00:00:09]*** step 92: 688 [00:00:09]*** step 93: 683 [00:00:09]*** step 94: 678 [00:00:09]*** step 95: 673 [00:00:09]*** step 96: 669 [00:00:09]*** step 97: 664 [00:00:09]*** step 98: 660 [00:00:09]*** step 99: 656 [00:00:09]*** step 100: 652 [00:00:09]*** step 101: 648 [00:00:09]*** step 102: 644 [00:00:09]*** step 103: 641 [00:00:09]*** step 104: 638 [00:00:09]*** step 105: 634 [00:00:09]*** step 106: 631 [00:00:09]*** step 107: 628 [00:00:09]*** step 108: 625 [00:00:09]*** step 109: 622 [00:00:09]*** step 110: 620 [00:00:09]*** step 111: 617 [00:00:09]*** step 112: 615 [00:00:09]*** step 113: 612 [00:00:09]*** step 114: 610 [00:00:09]*** step 115: 608 [00:00:09]*** step 116: 605 [00:00:09]*** step 117: 603 [00:00:09]*** step 118: 601 [00:00:09]*** step 119: 599 [00:00:09]*** printer: Printer HW initialized [00:00:09]*** initSamCard finished [00:00:09]*** RTC: 29307833+1684400628=1713708461 [00:00:09]*** BPK Status Register BPK_RDY = 0x0 [00:00:09]*** SEN State Register SEN_STATE = 0x220ff [00:00:09]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:09]*** Analog Control Register 0 SEN_ANA0 = 0x33540623 [00:00:09]*** Is cutter blocked? [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CA FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 70 [00:00:10]Are we in boot? [00:00:10]We are not in boot now [00:00:10]Write to MH i2c: 01 00 00 04 00 04 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:10]Model is 3 [00:00:10]MH firmware is 30620 [00:00:10]MH boot firmware is 3 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:10]Write to MH i2c: D5 00 00 06 00 DA [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 07 00 F6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 07 00 00 AD 1D 25 66 F4 E9 65 64 FA [14:07:41]Current date/time: 21.04.2024 14:07 [14:07:41]FM_Init [14:07:41]wFMConnect [14:07:41]MH_SAM_On [14:07:41]Write to MH i2c: E0 00 00 08 00 E7 [14:07:41]Write i2c OK [14:07:41]MH_I2C_Read... [14:07:41]*** iso7816_init finished! [14:07:41]*** atr: [14:07:41]*** 0F 3B D5 18 FF 81 91 FE [14:07:41]*** 1F C3 80 73 C8 21 10 0A [14:07:41]*** 00 00 00 00 00 00 00 00 [14:07:41]*** 00 00 00 00 00 00 00 00 [14:07:41]*** 00 00 00 00 00 00 00 00 [14:07:41]*** 00 00 00 00 00 00 00 00 [14:07:41]*** 00 00 00 00 00 00 00 00 [14:07:41]*** 00 00 00 00 00 00 00 00 [14:07:41]Read from MH i2c: E0 [14:07:41]MH_I2C_Read... [14:07:41]Read from MH i2c: E0 10 00 [14:07:41]MH_I2C_Read... [14:07:41]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [14:07:41]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [14:07:41]wFMCommunicate request_size=10 [14:07:41]MH_SAM_APDU [14:07:41]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [14:07:41]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [14:07:41]Write i2c OK [14:07:41]MH_I2C_Read... [14:07:41]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [14:07:41]Read from MH i2c: E2 [14:07:41]MH_I2C_Read... [14:07:41]Read from MH i2c: E2 03 00 [14:07:41]MH_I2C_Read... [14:07:41]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [14:07:41]RAPDU: 90 00 [14:07:41]wFMCommunicate OK [14:07:41]wFMCommunicate request_size=4 [14:07:41]MH_SAM_APDU [14:07:41]CAPDU: 80 11 00 00 [14:07:41]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [14:07:41]Write i2c OK [14:07:41]MH_I2C_Read... [14:07:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:41]Read from MH i2c: E2 [14:07:41]MH_I2C_Read... [14:07:41]Read from MH i2c: E2 17 00 [14:07:41]MH_I2C_Read... [14:07:41]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 34 36 35 32 90 00 D7 [14:07:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:07:41]wFMCommunicate OK [14:07:41]Detected FM SN is 0000000000874652 [14:07:41]Stored FM SN is 0000000000874652 [14:07:41]wFMCommunicate request_size=9 [14:07:41]MH_SAM_APDU [14:07:41]CAPDU: 80 16 00 00 04 68 2F 01 00 [14:07:41]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 68 2F 01 00 00 00 2A [14:07:41]Write i2c OK [14:07:41]MH_I2C_Read... [14:07:41]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [14:07:41]Read from MH i2c: E2 [14:07:41]MH_I2C_Read... [14:07:41]Read from MH i2c: E2 03 00 [14:07:41]MH_I2C_Read... [14:07:41]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [14:07:41]RAPDU: 90 00 [14:07:41]wFMCommunicate OK [14:07:41]FM PIN OK [14:07:41]wFMCommunicate request_size=8 [14:07:41]MH_SAM_APDU [14:07:41]CAPDU: 80 14 04 00 03 02 00 01 [14:07:41]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [14:07:41]Write i2c OK [14:07:41]MH_I2C_Read... [14:07:41]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [14:07:41]Read from MH i2c: E2 [14:07:41]MH_I2C_Read... [14:07:41]Read from MH i2c: E2 03 00 [14:07:41]MH_I2C_Read... [14:07:41]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [14:07:41]RAPDU: 90 00 [14:07:41]wFMCommunicate OK [14:07:41]wFMCommunicate request_size=13 [14:07:41]MH_SAM_APDU [14:07:41]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [14:07:41]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [14:07:41]Write i2c OK [14:07:41]MH_I2C_Read... [14:07:41]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [14:07:41]Read from MH i2c: E2 [14:07:41]MH_I2C_Read... [14:07:41]Read from MH i2c: E2 03 00 [14:07:41]MH_I2C_Read... [14:07:41]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [14:07:41]RAPDU: 90 00 [14:07:41]wFMCommunicate OK [14:07:41]wFMCommunicate request_size=4 [14:07:41]MH_SAM_APDU [14:07:41]CAPDU: 80 11 00 00 [14:07:41]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [14:07:41]Write i2c OK [14:07:41]MH_I2C_Read... [14:07:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:41]Read from MH i2c: E2 [14:07:41]MH_I2C_Read... [14:07:41]Read from MH i2c: E2 17 00 [14:07:41]MH_I2C_Read... [14:07:41]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 34 36 35 32 90 00 DB [14:07:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:07:41]wFMCommunicate OK [14:07:41]DocumentArchiveInit [14:07:41]Start Httpd... [14:07:41]Httpd thread 3067747684 created [14:07:41]Write to MH i2c: 01 00 00 0F 00 0F [14:07:41]Write i2c OK [14:07:41]MH_I2C_Read... [14:07:41]Read from MH i2c: 01 [14:07:41]MH_I2C_Read... [14:07:41]Read from MH i2c: 01 07 00 [14:07:41]MH_I2C_Read... [14:07:41]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [14:07:41]MH Int Process started [14:07:41]Allocated Socket 8 [14:07:41]Bind OK [14:07:41]Listen OK [14:07:41]httpd running on port 8080 [14:07:41]Waiting for new connection... [14:07:41]OFD Sender: No OFD packet to send [14:07:46]OFD Sender: No OFD packet to send [14:07:51]OFD Sender: No OFD packet to send [14:07:52]accept exits with 9 [14:07:52]New connection [14:07:52]New thread 3067460964 created [14:07:52]Waiting for new connection... [14:07:52] Sock 9.Parse request [14:07:52]Sock 9.Check first char [14:07:52]Sock 9.First char is OK [14:07:52]request: POST /json_proto HTTP/1.0 [14:07:52]Method: POST [14:07:52]URL: /json_proto [14:07:52]Method is POST - this is cgi request [14:07:52]url: /json_proto [14:07:52]query_string will be loaded in cgi processing [14:07:52]execute_cgi json_proto POST (null) [14:07:52]execute_cgi path=json_proto method=POST [14:07:52]POST find Content-Length [14:07:52]Host: 172.17.62.5:8080 [14:07:52]Content-Length: 215 [14:07:52]Content-Type: application/json [14:07:52] [14:07:52]POST finish read [14:07:52]Found Content-Length = 215 [14:07:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:07:52]execute_script... [14:07:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:07:52]POST & json_proto [14:07:52]process_json_proto [14:07:52]json parsed OK: [14:07:52]protocol is kg_v1.0 [14:07:52]action value=get_value [14:07:52]process_action get_value [14:07:52]cmd_get_value [14:07:52]process_action get_value done [14:07:52]requested_data is exist [14:07:52]produce_requested_data [14:07:52]requested_item kkm.sn is exist - process it [14:07:52]requested_item kkm.ver is exist - process it [14:07:52]requested_item fm.sn is exist - process it [14:07:52]wFMCommunicate request_size=4 [14:07:52]MH_SAM_APDU [14:07:52]CAPDU: 80 11 00 00 [14:07:52]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [14:07:52]Write i2c OK [14:07:52]MH_I2C_Read... [14:07:52]Read from MH i2c: E2 [14:07:52]MH_I2C_Read... [14:07:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:52]Read from MH i2c: E2 17 00 [14:07:52]MH_I2C_Read... [14:07:52]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 34 36 35 32 90 00 DD [14:07:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:07:52]wFMCommunicate OK [14:07:52]requested_item fd.num is exist - process it [14:07:52]SAM_PROTO_GetFieldsCounters [14:07:52]wFMCommunicate request_size=4 [14:07:52]MH_SAM_APDU [14:07:52]CAPDU: 80 13 00 00 [14:07:52]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [14:07:52]Write i2c OK [14:07:52]MH_I2C_Read... [14:07:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:07:52]Read from MH i2c: E2 [14:07:52]MH_I2C_Read... [14:07:52]Read from MH i2c: E2 62 00 [14:07:52]MH_I2C_Read... [14:07:52]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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 32 2C 01 00 0E 04 04 00 74 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 C0 [14:07: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 32 2C 01 00 0E 04 04 00 74 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 [14:07:52]wFMCommunicate OK [14:07:52]SAM_PROTO_GetFieldsCounters done [14:07:52]requested_item shift.num is exist - process it [14:07:52]requested_item shift.opened is exist - process it [14:07:52]req_shift_opened [14:07:52]FM_GetShiftState [14:07:52]SAM_PROTO_GetShiftState [14:07:52]wFMCommunicate request_size=4 [14:07:52]MH_SAM_APDU [14:07:52]CAPDU: 80 13 01 00 [14:07:52]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [14:07:52]Write i2c OK [14:07:52]MH_I2C_Read... [14:07:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:52]Read from MH i2c: E2 [14:07:52]MH_I2C_Read... [14:07:52]Read from MH i2c: E2 0E 00 [14:07:52]MH_I2C_Read... [14:07:52]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 D6 [14:07:52]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [14:07:52]wFMCommunicate OK [14:07:52]SAM_PROTO_GetShiftState done [14:07:52]FM_GetShiftState done [14:07:52]req_shift_opened done [14:07:52]requested_item shift.open_date is exist - process it [14:07:52]req_shift_open_date [14:07:52]req_shift_open_date done [14:07:52]produce_requested_data done [14:07:52]produce_requested_data return {"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76850,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [14:07:52]process_action_free get_value [14:07:52]json_value_free [14:07:52]json_value_free done [14:07:52]process_json_proto returns [14:07:52]Send response to host [14:07:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76850,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [14:07:52]free response buf [14:07:52]execute_script done [14:07:52]execute_script returns [14:07:52]free content buf [14:07:52]Sock 9.Close socket [14:07:52]Sock 9.Thread stoped [14:07:52]accept exits with 7 [14:07:52]New connection [14:07:52]New thread 3067317604 created [14:07:52]Thread 3067460964 joined [14:07:52]Waiting for new connection... [14:07:52] Sock 7.Parse request [14:07:52]Sock 7.Check first char [14:07:52]Sock 7.First char is OK [14:07:52]request: POST /json_proto HTTP/1.0 [14:07:52]Method: POST [14:07:52]URL: /json_proto [14:07:52]Method is POST - this is cgi request [14:07:52]url: /json_proto [14:07:52]query_string will be loaded in cgi processing [14:07:52]execute_cgi json_proto POST (null) [14:07:52]execute_cgi path=json_proto method=POST [14:07:52]POST find Content-Length [14:07:52]Host: 172.17.62.5:8080 [14:07:52]Content-Length: 331 [14:07:52]Content-Type: application/json [14:07:52] [14:07:52]POST finish read [14:07:52]Found Content-Length = 331 [14:07:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:07:52]execute_script... [14:07:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:07:52]POST & json_proto [14:07:52]process_json_proto [14:07:52]json parsed OK: [14:07:52]protocol is kg_v1.0 [14:07:52]action value=get_value [14:07:52]process_action get_value [14:07:52]cmd_get_value [14:07:52]process_action get_value done [14:07:52]requested_data is exist [14:07:52]produce_requested_data [14:07:52]requested_item fm.sale.total is exist - process it [14:07:52]SAM_PROTO_GetFMData [14:07:52]wFMCommunicate request_size=4 [14:07:52]MH_SAM_APDU [14:07:52]CAPDU: 80 13 03 00 [14:07:52]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [14:07:52]Write i2c OK [14:07:52]MH_I2C_Read... [14:07:53]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:07:53]Read from MH i2c: E2 [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: E2 FD 00 [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: E2 FD 00 13 00 00 C8 04 85 04 C4 04 6E 04 04 00 4A 29 01 00 69 04 A3 00 6F 04 04 00 5A 27 01 00 B1 04 05 00 2F 8D 7E BA 02 70 04 05 00 00 F4 92 76 02 72 04 04 00 2F 99 EB 43 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 A1 D4 2F 4A 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 35 96 2E 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F0 01 00 00 B1 04 05 00 F4 E2 DA 15 01 70 04 05 00 F4 E2 DA 15 01 72 04 00 00 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 1F BE 81 1D EF 90 00 7B [14:07:53]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 4A 29 01 00 69 04 A3 00 6F 04 04 00 5A 27 01 00 B1 04 05 00 2F 8D 7E BA 02 70 04 05 00 00 F4 92 76 02 72 04 04 00 2F 99 EB 43 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 A1 D4 2F 4A 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 35 96 2E 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F0 01 00 00 B1 04 05 00 F4 E2 DA 15 01 70 04 05 00 F4 E2 DA 15 01 72 04 00 00 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 1F BE 81 1D EF 90 00 [14:07:53]wFMCommunicate OK [14:07:53]wFMCommunicate request_size=4 [14:07:53]MH_SAM_APDU [14:07:53]CAPDU: 80 17 00 00 [14:07:53]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [14:07:53]Write i2c OK [14:07:53]MH_I2C_Read... [14:07:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:07:53]Read from MH i2c: E2 [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: E2 FD 00 [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: E2 FD 00 14 00 00 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 66 7A 75 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 90 00 FA [14:07:53]RAPDU: 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 66 7A 75 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 90 00 [14:07:53]wFMCommunicate OK [14:07:53]wFMCommunicate request_size=4 [14:07:53]MH_SAM_APDU [14:07:53]CAPDU: 80 17 00 00 [14:07:53]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [14:07:53]Write i2c OK [14:07:53]MH_I2C_Read... [14:07:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:07:53]Read from MH i2c: E2 [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: E2 FD 00 [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: E2 FD 00 15 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 6D [14:07:53]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [14:07:53]wFMCommunicate OK [14:07:53]wFMCommunicate request_size=4 [14:07:53]MH_SAM_APDU [14:07:53]CAPDU: 80 17 00 00 [14:07:53]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [14:07:53]Write i2c OK [14:07:53]MH_I2C_Read... [14:07:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:07:54]Read from MH i2c: E2 [14:07:54]MH_I2C_Read... [14:07:54]Read from MH i2c: E2 FD 00 [14:07:54]MH_I2C_Read... [14:07:54]Read from MH i2c: E2 FD 00 16 00 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 0E [14:07:54]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [14:07:54]wFMCommunicate OK [14:07:54]wFMCommunicate request_size=4 [14:07:54]MH_SAM_APDU [14:07:54]CAPDU: 80 17 00 00 [14:07:54]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [14:07:54]Write i2c OK [14:07:54]MH_I2C_Read... [14:07:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [14:07:54]Read from MH i2c: E2 [14:07:54]MH_I2C_Read... [14:07:54]Read from MH i2c: E2 E5 00 [14:07:54]MH_I2C_Read... [14:07:54]Read from MH i2c: E2 E5 00 17 00 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7B [14:07:54]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:07:54]wFMCommunicate OK [14:07:54]SAM_PROTO_GetFMData done [14:07:54]requested_item fm.sale_refund.total is exist - process it [14:07:54]requested_item fm.buy.total is exist - process it [14:07:54]requested_item shift.sale.total is exist - process it [14:07:54]SAM_PROTO_GetShiftData [14:07:54]wFMCommunicate request_size=4 [14:07:54]MH_SAM_APDU [14:07:54]CAPDU: 80 13 02 00 [14:07:54]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [14:07:54]Write i2c OK [14:07:54]MH_I2C_Read... [14:07:54]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:07:54]Read from MH i2c: E2 [14:07:54]MH_I2C_Read... [14:07:54]Read from MH i2c: E2 FD 00 [14:07:54]MH_I2C_Read... [14:07:54]Read from MH i2c: E2 FD 00 18 00 00 AF 04 AA 04 AB 04 6E 04 04 00 6A 00 00 00 69 04 9C 00 6F 04 04 00 6A 00 00 00 B1 04 03 00 E0 6E C2 70 04 03 00 74 85 97 72 04 03 00 6C E9 2A 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 D3 A6 14 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 B8 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 31 [14:07:54]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 6A 00 00 00 69 04 9C 00 6F 04 04 00 6A 00 00 00 B1 04 03 00 E0 6E C2 70 04 03 00 74 85 97 72 04 03 00 6C E9 2A 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 D3 A6 14 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 B8 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [14:07:54]wFMCommunicate OK [14:07:54]wFMCommunicate request_size=4 [14:07:54]MH_SAM_APDU [14:07:54]CAPDU: 80 17 00 00 [14:07:54]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [14:07:54]Write i2c OK [14:07:54]MH_I2C_Read... [14:07:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:07:55]Read from MH i2c: E2 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 FD 00 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 FD 00 19 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 B2 [14:07:55]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [14:07:55]wFMCommunicate OK [14:07:55]wFMCommunicate request_size=4 [14:07:55]MH_SAM_APDU [14:07:55]CAPDU: 80 17 00 00 [14:07:55]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [14:07:55]Write i2c OK [14:07:55]MH_I2C_Read... [14:07:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:07:55]Read from MH i2c: E2 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 FD 00 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 FD 00 1A 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 4E [14:07:55]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [14:07:55]wFMCommunicate OK [14:07:55]wFMCommunicate request_size=4 [14:07:55]MH_SAM_APDU [14:07:55]CAPDU: 80 17 00 00 [14:07:55]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [14:07:55]Write i2c OK [14:07:55]MH_I2C_Read... [14:07:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:07:55]Read from MH i2c: E2 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 FD 00 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 FD 00 1B 00 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 19 [14:07:55]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [14:07:55]wFMCommunicate OK [14:07:55]wFMCommunicate request_size=4 [14:07:55]MH_SAM_APDU [14:07:55]CAPDU: 80 17 00 00 [14:07:55]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [14:07:55]Write i2c OK [14:07:55]MH_I2C_Read... [14:07:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [14:07:55]Read from MH i2c: E2 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 CC 00 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 CC 00 1C 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7D [14:07:56]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:07:56]wFMCommunicate OK [14:07:56]SAM_PROTO_GetShiftData done [14:07:56]requested_item shift.sale.total_cash is exist - process it [14:07:56]requested_item shift.sale_refund.total is exist - process it [14:07:56]requested_item shift.sale_refund.total_cash is exist - process it [14:07:56]requested_item shift.buy.total is exist - process it [14:07:56]requested_item shift.buy.total_cash is exist - process it [14:07:56]produce_requested_data done [14:07:56]produce_requested_data return {"fm.sale.total":117187904.47,"fm.sale_refund.total":46616337.80,"fm.buy.total":0.00,"shift.sale.total":127423.68,"shift.sale.total_cash":99301.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [14:07:56]process_action_free get_value [14:07:56]json_value_free [14:07:56]json_value_free done [14:07:56]process_json_proto returns [14:07:56]Send response to host [14:07:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":117187904.47,"fm.sale_refund.total":46616337.80,"fm.buy.total":0.00,"shift.sale.total":127423.68,"shift.sale.total_cash":99301.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [14:07:56]free response buf [14:07:56]execute_script done [14:07:56]execute_script returns [14:07:56]free content buf [14:07:56]Sock 7.Close socket [14:07:56]Sock 7.Thread stoped [14:07:56]OFD Sender: No OFD packet to send [14:08:01]OFD Sender: No OFD packet to send [14:08:06]OFD Sender: No OFD packet to send [14:08:11]OFD Sender: No OFD packet to send [14:08:16]OFD Sender: No OFD packet to send [14:08:21]OFD Sender: No OFD packet to send [14:08:26]OFD Sender: No OFD packet to send [14:08:31]OFD Sender: No OFD packet to send [14:08:36]OFD Sender: No OFD packet to send [14:08:41]OFD Sender: No OFD packet to send [14:08:46]OFD Sender: No OFD packet to send [14:08:51]OFD Sender: No OFD packet to send [14:08:56]OFD Sender: No OFD packet to send [14:09:01]OFD Sender: No OFD packet to send [14:09:06]OFD Sender: No OFD packet to send [14:09:11]OFD Sender: No OFD packet to send [14:09:16]OFD Sender: No OFD packet to send [14:09:21]OFD Sender: No OFD packet to send [14:09:26]OFD Sender: No OFD packet to send [14:09:31]OFD Sender: No OFD packet to send [14:09:36]OFD Sender: No OFD packet to send [14:09:41]OFD Sender: No OFD packet to send [14:09:46]OFD Sender: No OFD packet to send [14:09:51]OFD Sender: No OFD packet to send [14:09:56]OFD Sender: No OFD packet to send [14:10:01]OFD Sender: No OFD packet to send [14:10:06]OFD Sender: No OFD packet to send [14:10:11]OFD Sender: No OFD packet to send [14:10:16]OFD Sender: No OFD packet to send [14:10:21]OFD Sender: No OFD packet to send [14:10:26]OFD Sender: No OFD packet to send [14:10:31]OFD Sender: No OFD packet to send [14:10:32]accept exits with 9 [14:10:32]New connection [14:10:32]New thread 3067460964 created [14:10:32]Thread 3067317604 joined [14:10:32]Waiting for new connection... [14:10:32] Sock 9.Parse request [14:10:32]Sock 9.Check first char [14:10:32]Sock 9.First char is OK [14:10:32]request: POST /json_proto HTTP/1.0 [14:10:32]Method: POST [14:10:32]URL: /json_proto [14:10:32]Method is POST - this is cgi request [14:10:32]url: /json_proto [14:10:32]query_string will be loaded in cgi processing [14:10:32]execute_cgi json_proto POST (null) [14:10:32]execute_cgi path=json_proto method=POST [14:10:32]POST find Content-Length [14:10:32]Host: 172.17.62.5:8080 [14:10:32]Content-Length: 978 [14:10:32]Content-Type: application/json [14:10:32] [14:10:32]POST finish read [14:10:32]Found Content-Length = 978 [14:10:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 33.800, "sum" : 2430.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 33.80 \u0441\u043E\u043C", "deposit" : 2430.00, "total" : 2430.00, "payments": [ { "type": 0, "sum" : 2430.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:32]execute_script... [14:10: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)191389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 33.800, "sum" : 2430.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 33.80 \u0441\u043E\u043C", "deposit" : 2430.00, "total" : 2430.00, "payments": [ { "type": 0, "sum" : 2430.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:32]POST & json_proto [14:10:32]process_json_proto [14:10:32]json parsed OK: [14:10:32]protocol is kg_v1.0 [14:10:32]action value=close_receipt [14:10:32]process_action close_receipt [14:10:32]cmd_close_receipt [14:10:32]MH_GetDate [14:10:32]Write to MH i2c: F0 00 00 1D 00 0C [14:10:32]Write i2c OK [14:10:32]MH_I2C_Read... [14:10:32]Read from MH i2c: F0 [14:10:32]MH_I2C_Read... [14:10:32]Read from MH i2c: F0 09 00 [14:10:32]MH_I2C_Read... [14:10:32]Read from MH i2c: F0 09 00 1D 00 00 59 1E 25 66 F4 E9 65 64 BD [14:10:32]GetLastDocTimeStamp 97 [14:10:32]current date 1713708633 [14:10:32]FM_GetShiftState [14:10:32]SAM_PROTO_GetShiftState [14:10:32]wFMCommunicate request_size=4 [14:10:32]MH_SAM_APDU [14:10:32]CAPDU: 80 13 01 00 [14:10:32]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [14:10:32]Write i2c OK [14:10:32]MH_I2C_Read... [14:10:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:32]Read from MH i2c: E2 [14:10:32]MH_I2C_Read... [14:10:32]Read from MH i2c: E2 0E 00 [14:10:32]MH_I2C_Read... [14:10:32]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 E2 [14:10:32]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [14:10:32]wFMCommunicate OK [14:10:32]SAM_PROTO_GetShiftState done [14:10:32]FM_GetShiftState done [14:10:32]opened in 1713658965 [14:10:32]opened+sec_in_day 1713745365 [14:10:32]quantity*price = 243022 [14:10:32]sum+1 = 243023 [14:10:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 2430.00 Внесено: 2430.00 СДАЧА: 0.00 НСП 1% : 21.51 НДС 12% : 258.08 Наличными: 2430.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 107 21.04.2024 14:10 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 33.80 сом ФМ: 0000000000874652 ФД: 76851 ФПД: 127400932937429 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T141033&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76851&fm=127400932937429&tin=02508201610067®Number=0000000000091573&sum=243000 [14:10:33]StoreToDocumentArchive [14:10:33]shift 372 fd 76851 [14:10:33]save to /storage/0372/doc_00076851 [14:10:33]save last doc name /storage/0372/doc_00076851 to /storage/kkm_last_doc_name [14:10:33]save OK [14:10:33]Clear old archive folders... [14:10:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:10:33]tlvbuf is 017F70F0 [14:10:33]SAM_PROTO_ClearQueue [14:10:33]wFMCommunicate request_size=4 [14:10:33]MH_SAM_APDU [14:10:33]CAPDU: 80 09 00 00 [14:10:33]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [14:10:33]Write i2c OK [14:10:33]MH_I2C_Read... [14:10:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:10:33]Read from MH i2c: E2 [14:10:33]MH_I2C_Read... [14:10:33]Read from MH i2c: E2 03 00 [14:10:33]MH_I2C_Read... [14:10:33]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [14:10:33]RAPDU: 90 00 [14:10:33]wFMCommunicate OK [14:10:33]SAM_PROTO_ClearQueue done [14:10:33]KKMCreateOFDPacket [14:10:33]OFDProtocolAddRootSTLVToBuf [14:10:33]FM_MakeSignedData [14:10:33]FM_MakeSignedData [14:10:33]SAM_PROTO_SignData [14:10:33]wFMCommunicate request_size=4 [14:10:33]MH_SAM_APDU [14:10:33]CAPDU: 80 0D 01 02 [14:10:33]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [14:10:33]Write i2c OK [14:10:33]MH_I2C_Read... [14:10:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:10:33]Read from MH i2c: E2 [14:10:33]MH_I2C_Read... [14:10:33]Read from MH i2c: E2 03 00 [14:10:33]MH_I2C_Read... [14:10:33]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [14:10:33]RAPDU: 90 00 [14:10:33]wFMCommunicate OK [14:10:33]wFMCommunicate request_size=255 [14:10:33]MH_SAM_APDU [14:10:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 84 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 4E B5 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 B5 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 64 00 00 00 00 07 04 06 00 38 B5 03 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 59 1E 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 33 2C 01 00 35 04 06 00 73 DE D7 5A [14:10:33]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 84 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 4E B5 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 B5 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 64 00 00 00 00 07 04 06 00 38 B5 03 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 59 1E 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 33 2C 01 00 35 04 06 00 73 DE D7 5A 00 00 0D [14:10:33]Write i2c OK [14:10:33]MH_I2C_Read... [14:10:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:33]Read from MH i2c: E2 [14:10:33]MH_I2C_Read... [14:10:33]Read from MH i2c: E2 03 00 [14:10:33]MH_I2C_Read... [14:10:33]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [14:10:33]RAPDU: 90 00 [14:10:33]wFMCommunicate OK [14:10:33]wFMCommunicate request_size=7 [14:10:33]MH_SAM_APDU [14:10:33]CAPDU: 80 0D 02 02 02 0E D5 [14:10:33]Write to MH i2c: E2 0A 00 2E 00 80 0D 02 02 02 00 0E D5 00 00 8F [14:10:33]Write i2c OK [14:10:33]MH_I2C_Read... [14:10:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:33]Read from MH i2c: E2 [14:10:33]MH_I2C_Read... [14:10:33]Read from MH i2c: E2 03 00 [14:10:33]MH_I2C_Read... [14:10:33]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [14:10:33]RAPDU: 90 00 [14:10:33]wFMCommunicate OK [14:10:33]wFMCommunicate request_size=4 [14:10:33]MH_SAM_APDU [14:10:33]CAPDU: 80 0D 03 02 [14:10:33]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [14:10:33]Write i2c OK [14:10:33]MH_I2C_Read... [14:10:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:10:33]Read from MH i2c: E2 [14:10:33]MH_I2C_Read... [14:10:33]Read from MH i2c: E2 0B 00 [14:10:33]MH_I2C_Read... [14:10:33]Read from MH i2c: E2 0B 00 2F 00 00 1D F7 1D 82 3F F3 78 F1 90 00 F9 [14:10:33]RAPDU: 1D F7 1D 82 3F F3 78 F1 90 00 [14:10:33]wFMCommunicate OK [14:10:33]SAM_PROTO_SignData done [14:10:33]FM_MakeSignedData done [14:10:33]CreateOFDProtocolMessage [14:10:33]wFMCommunicate request_size=4 [14:10:33]MH_SAM_APDU [14:10:33]CAPDU: 80 11 00 00 [14:10:33]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [14:10:33]Write i2c OK [14:10:33]MH_I2C_Read... [14:10:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:33]Read from MH i2c: E2 [14:10:33]MH_I2C_Read... [14:10:33]Read from MH i2c: E2 17 00 [14:10:33]MH_I2C_Read... [14:10:33]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 FD [14:10:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:10:33]wFMCommunicate OK [14:10:33]CreateOFDProtocolMessage done [14:10:33]OFDSenderStorePacket 76851 [14:10:33]StoreOFDPacket docnum=76851 [14:10:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 A9 E4 04 01 AE 01 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 84 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 4E B5 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 B5 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 64 00 00 00 00 07 04 06 00 38 B5 03 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 59 1E 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 33 2C 01 00 35 04 06 00 73 DE D7 5A 0E D5 1D F7 1D 82 3F F3 78 F1 [14:10:33]CheckFolder [14:10:33]dirname=/storage/ofd_packets [14:10:33]CheckFolder done [14:10:33]ProducePacketName [14:10:33]name=ofd_packets/00076851 [14:10:33]NVStorageSaveData ofd_packets/00076851 [14:10:33]File name is /storage/ofd_packets/00076851 [14:10:33]Write 298 bytes [14:10:33]NVStorageSaveData done [14:10:33]OFDSenderStorePacket done [14:10:33]KKMCreateOFDPacket done [14:10:33]NVStorageSaveData kkm_last_timestamp [14:10:33]File name is /storage/kkm_last_timestamp [14:10:33]Write 4 bytes [14:10:33]NVStorageSaveData done [14:10:33]ExternCall_PrintAddStr [14:10:33]wPrintStart [14:10:33]Write to MH i2c: 01 00 00 31 00 31 [14:10:33]Write i2c OK [14:10:33]MH_I2C_Read... [14:10:33]Read from MH i2c: 01 [14:10:33]MH_I2C_Read... [14:10:33]Read from MH i2c: 01 07 00 [14:10:33]MH_I2C_Read... [14:10:33]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [14:10:33]RasterBufferAndPrint [14:10:33]line Счет N : (1)191389 [14:10:33]line ИНН: 02508201610067 [14:10:33]line Контрольно-Кассовый Чек [14:10:33]line ПРОДАЖА [14:10:33]line ТРК (МРК, ГНК) : 51 [14:10:33]line Товар: 2710194210 [14:10:33]line ДТ-К-5 [14:10:33]line 33.800 * 71.90 [14:10:33]line = 2430.22 [14:10:33]line НДС 12% НСП 1% [14:10:33]line > о реализуемом товаре [14:10:33]line ОКРУГЛЕНИЕ: -0.22 [14:10:33]line ИТОГО: 2430.00 [14:10:33]line Внесено: 2430.00 [14:10:33]line СДАЧА: 0.00 [14:10:33]line НСП 1% : 21.51 [14:10:33]line НДС 12% : 258.08 [14:10:33]line Наличными: 2430.00 [14:10:33]line Безнал.: 0.00 [14:10:33]line Место: АЗС № 106 "Партнер Нефть" [14:10:33]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [14:10:33]line СНО: Общий режим [14:10:33]line Чек 107 21.04.2024 14:10 [14:10:33]line Смена: 372 ФФД: 1.0 [14:10:33]line ЗНМ: 0300000141 [14:10:33]line РНМ: 0000000000091573 [14:10:33]line Версия ККМ: 001 [14:10:33]line [14:10:33]line Дисконтная программа [14:10:33]line ДТ [14:10:33]line номер 106 [14:10:33]line сэкономлено 33.80 сом [14:10:33]line ФМ: 0000000000874652 [14:10:33]line ФД: 76851 [14:10:33]line ФПД: 127400932937429 [14:10:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T141033&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76851&fm=127400932937429&tin=02508201610067®Number=0000000000091573&sum=243000 [14:10:34]OFD Sender: Processing packet 76851 [packets to send 129, broken 128] [14:10:34]ProducePacketName [14:10:34]name=ofd_packets/00076851 [14:10:34]OFD Sender: To server: pG, [14:10:34]CommunicateWithHost lk.salyk.kg:30040 [14:10:34]ConnectInit lk.salyk.kg [14:10:34]written 0, free lines is 4095 [14:10:34]Connected sock=10 [14:10:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 A9 E4 04 01 AE 01 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 84 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 4E B5 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 B5 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 64 00 00 00 00 07 04 06 00 38 B5 03 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 59 1E 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 33 2C 01 00 35 04 06 00 73 DE D7 5A 0E D5 1D F7 1D 82 3F F3 78 F1 [14:10:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 14 28 47 00 EF 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 34 36 35 32 10 04 04 00 33 2C 01 00 F4 03 04 00 DE C5 24 66 B6 04 01 00 00 AC 8A 6B 54 1E BD 42 AF [14:10:34]CommunicateWithHost err = 0 [14:10:34]CheckOFDResponse [14:10:34]1017 (14) - 77093643461234 [14:10:34]1041 (16) - 0000000000874652 [14:10:34]1040 (4) - 76851 [14:10:34]1012 (4) - 21.04.2024 07:53 [14:10:34]1206 (1) - 0 [14:10:34]OFD Sender: Remove packet 76851 [14:10:34]ProducePacketName [14:10:34]name=ofd_packets/00076851 [14:10:34]NVStorageDeleteData [14:10:34]Write to MH i2c: 01 00 00 60 00 60 [14:10:34]Write i2c OK [14:10:34]MH_I2C_Read... [14:10:34]Read from MH i2c: 01 [14:10:34]MH_I2C_Read... [14:10:34]Read from MH i2c: 01 07 00 [14:10:34]MH_I2C_Read... [14:10:34]Read from MH i2c: 01 07 00 60 00 00 00 00 00 00 A1 0C 14 [14:10:34]RasterBufferAndPrint [14:10:34]line [14:10:34]line [14:10:34]line [14:10:34]line [14:10:34]line [14:10:34]written 0, free lines is 3239 [14:10:34]MH_Cut [14:10:34]Write to MH i2c: D1 01 00 67 00 01 39 [14:10:34]Write i2c OK [14:10:34]MH_I2C_Read... [14:10:34]Read from MH i2c: D1 [14:10:34]MH_I2C_Read... [14:10:34]Read from MH i2c: D1 01 00 [14:10:34]MH_I2C_Read... [14:10:34]Read from MH i2c: D1 01 00 67 00 00 38 [14:10:34]Write to MH i2c: 01 00 00 68 00 68 [14:10:34]Write i2c OK [14:10:34]MH_I2C_Read... [14:10:35]OFD Sender: No OFD packet to send [14:10:35]*** Cut start [14:10:35]*** Partial cut [14:10:35]*** CUTSNS_PIN = 1 [14:10:35]*** CUTSNS_PIN = 0 [14:10:35]*** Brake cut motor [14:10:36]Read from MH i2c: 01 [14:10:36]MH_I2C_Read... [14:10:36]*** Stop cut motor [14:10:36]*** Cut end [14:10:36]Read from MH i2c: 01 07 00 [14:10:36]MH_I2C_Read... [14:10:36]Read from MH i2c: 01 07 00 68 00 00 00 00 00 00 FF 0F 7D [14:10:36]process_action close_receipt done [14:10:36]requested_data is exist [14:10:36]produce_requested_data [14:10:36]requested_item fm.sn is exist - process it [14:10:36]wFMCommunicate request_size=4 [14:10:36]MH_SAM_APDU [14:10:36]CAPDU: 80 11 00 00 [14:10:36]Write to MH i2c: E2 08 00 69 00 80 11 00 00 00 00 00 00 E3 [14:10:36]Write i2c OK [14:10:36]MH_I2C_Read... [14:10:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:36]Read from MH i2c: E2 [14:10:36]MH_I2C_Read... [14:10:36]Read from MH i2c: E2 17 00 [14:10:36]MH_I2C_Read... [14:10:36]Read from MH i2c: E2 17 00 69 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 36 [14:10:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:10:36]wFMCommunicate OK [14:10:36]requested_item fd.num is exist - process it [14:10:36]SAM_PROTO_GetFieldsCounters [14:10:36]wFMCommunicate request_size=4 [14:10:36]MH_SAM_APDU [14:10:36]CAPDU: 80 13 00 00 [14:10:36]Write to MH i2c: E2 08 00 6A 00 80 13 00 00 00 00 00 00 E6 [14:10:36]Write i2c OK [14:10:36]MH_I2C_Read... [14:10:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:10:36]Read from MH i2c: E2 [14:10:36]MH_I2C_Read... [14:10:36]Read from MH i2c: E2 62 00 [14:10:36]MH_I2C_Read... [14:10:36]Read from MH i2c: E2 62 00 6A 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 33 2C 01 00 0E 04 04 00 74 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 1D [14:10: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 33 2C 01 00 0E 04 04 00 74 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 [14:10:36]wFMCommunicate OK [14:10:36]SAM_PROTO_GetFieldsCounters done [14:10:36]requested_item shift.num is exist - process it [14:10:36]requested_item shift.opened is exist - process it [14:10:36]req_shift_opened [14:10:36]FM_GetShiftState [14:10:36]SAM_PROTO_GetShiftState [14:10:36]wFMCommunicate request_size=4 [14:10:36]MH_SAM_APDU [14:10:36]CAPDU: 80 13 01 00 [14:10:36]Write to MH i2c: E2 08 00 6B 00 80 13 01 00 00 00 00 00 E8 [14:10:36]Write i2c OK [14:10:36]MH_I2C_Read... [14:10:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:36]Read from MH i2c: E2 [14:10:36]MH_I2C_Read... [14:10:36]Read from MH i2c: E2 0E 00 [14:10:36]MH_I2C_Read... [14:10:36]Read from MH i2c: E2 0E 00 6B 00 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 2F [14:10:36]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [14:10:36]wFMCommunicate OK [14:10:36]SAM_PROTO_GetShiftState done [14:10:36]FM_GetShiftState done [14:10:36]req_shift_opened done [14:10:36]requested_item shift.open_date is exist - process it [14:10:36]req_shift_open_date [14:10:36]req_shift_open_date done [14:10:36]produce_requested_data done [14:10:36]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76851,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [14:10:36]process_action_free close_receipt [14:10:36]json_value_free [14:10:36]json_value_free done [14:10:36]process_json_proto returns [14:10:36]Send response to host [14:10:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76851,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [14:10:36]free response buf [14:10:36]execute_script done [14:10:36]execute_script returns [14:10:36]free content buf [14:10:36]Sock 9.Close socket [14:10:36]Sock 9.Thread stoped [14:10:40]OFD Sender: No OFD packet to send [14:10:45]OFD Sender: No OFD packet to send [14:10:50]OFD Sender: No OFD packet to send [14:10:55]OFD Sender: No OFD packet to send [14:11:00]OFD Sender: No OFD packet to send [14:11:05]OFD Sender: No OFD packet to send [14:11:10]OFD Sender: No OFD packet to send [14:11:15]OFD Sender: No OFD packet to send [14:11:20]OFD Sender: No OFD packet to send [14:11:25]OFD Sender: No OFD packet to send [14:11:30]OFD Sender: No OFD packet to send [14:11:35]OFD Sender: No OFD packet to send [14:11:40]OFD Sender: No OFD packet to send [14:11:45]OFD Sender: No OFD packet to send [14:11:50]OFD Sender: No OFD packet to send [14:11:55]OFD Sender: No OFD packet to send [14:12:00]OFD Sender: No OFD packet to send [14:12:05]OFD Sender: No OFD packet to send [14:12:10]OFD Sender: No OFD packet to send [14:12:15]OFD Sender: No OFD packet to send [14:12:20]OFD Sender: No OFD packet to send [14:12:25]OFD Sender: No OFD packet to send [14:12:30]OFD Sender: No OFD packet to send [14:12:35]OFD Sender: No OFD packet to send [14:12:40]OFD Sender: No OFD packet to send [14:12:45]OFD Sender: No OFD packet to send [14:12:50]OFD Sender: No OFD packet to send [14:12:55]OFD Sender: No OFD packet to send [14:13:00]OFD Sender: No OFD packet to send [14:13:05]OFD Sender: No OFD packet to send [14:13:10]OFD Sender: No OFD packet to send [14:13:15]OFD Sender: No OFD packet to send [14:13:20]OFD Sender: No OFD packet to send [14:13:25]OFD Sender: No OFD packet to send [14:13:30]OFD Sender: No OFD packet to send [14:13:35]OFD Sender: No OFD packet to send [14:13:40]OFD Sender: No OFD packet to send [14:13:45]OFD Sender: No OFD packet to send [14:13:50]OFD Sender: No OFD packet to send [14:13:55]OFD Sender: No OFD packet to send [14:14:00]OFD Sender: No OFD packet to send [14:14:05]OFD Sender: No OFD packet to send [14:14:10]OFD Sender: No OFD packet to send [14:14:15]OFD Sender: No OFD packet to send [14:14:20]OFD Sender: No OFD packet to send [14:14:25]OFD Sender: No OFD packet to send [14:14:30]OFD Sender: No OFD packet to send [14:14:35]OFD Sender: No OFD packet to send [14:14:40]OFD Sender: No OFD packet to send [14:14:45]OFD Sender: No OFD packet to send [14:14:50]OFD Sender: No OFD packet to send [14:14:55]OFD Sender: No OFD packet to send [14:15:00]OFD Sender: No OFD packet to send [14:15:05]OFD Sender: No OFD packet to send [14:15:10]OFD Sender: No OFD packet to send [14:15:15]OFD Sender: No OFD packet to send [14:15:20]OFD Sender: No OFD packet to send [14:15:25]OFD Sender: No OFD packet to send [14:15:30]OFD Sender: No OFD packet to send [14:15:35]OFD Sender: No OFD packet to send [14:15:40]OFD Sender: No OFD packet to send [14:15:45]OFD Sender: No OFD packet to send [14:15:50]OFD Sender: No OFD packet to send [14:15:55]OFD Sender: No OFD packet to send [14:16:00]OFD Sender: No OFD packet to send [14:16:05]OFD Sender: No OFD packet to send [14:16:10]OFD Sender: No OFD packet to send [14:16:15]OFD Sender: No OFD packet to send [14:16:20]OFD Sender: No OFD packet to send [14:16:25]OFD Sender: No OFD packet to send [14:16:30]OFD Sender: No OFD packet to send [14:16:35]OFD Sender: No OFD packet to send [14:16:40]OFD Sender: No OFD packet to send [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:20]OFD Sender: No OFD packet to send [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:45]OFD Sender: No OFD packet to send [14:21:50]OFD Sender: No OFD packet to send [14:21:55]OFD Sender: No OFD packet to send [14:22:00]OFD Sender: No OFD packet to send [14:22:05]OFD Sender: No OFD packet to send [14:22:10]OFD Sender: No OFD packet to send [14:22:15]OFD Sender: No OFD packet to send [14:22:20]OFD Sender: No OFD packet to send [14:22:25]OFD Sender: No OFD packet to send [14:22:30]OFD Sender: No OFD packet to send [14:22:35]OFD Sender: No OFD packet to send [14:22:40]OFD Sender: No OFD packet to send [14:22:45]OFD Sender: No OFD packet to send [14:22:50]OFD Sender: No OFD packet to send [14:22:56]OFD Sender: No OFD packet to send [14:23:01]OFD Sender: No OFD packet to send [14:23:06]OFD Sender: No OFD packet to send [14:23:11]OFD Sender: No OFD packet to send [14:23:16]OFD Sender: No OFD packet to send [14:23:21]OFD Sender: No OFD packet to send [14:23:26]OFD Sender: No OFD packet to send [14:23:31]OFD Sender: No OFD packet to send [14:23:36]OFD Sender: No OFD packet to send [14:23:41]OFD Sender: No OFD packet to send [14:23:46]OFD Sender: No OFD packet to send [14:23:51]OFD Sender: No OFD packet to send [14:23:56]OFD Sender: No OFD packet to send [14:24:01]OFD Sender: No OFD packet to send [14:24:06]OFD Sender: No OFD packet to send [14:24:11]OFD Sender: No OFD packet to send [14:24:16]OFD Sender: No OFD packet to send [14:24:21]OFD Sender: No OFD packet to send [14:24:26]OFD Sender: No OFD packet to send [14:24:31]OFD Sender: No OFD packet to send [14:24:36]OFD Sender: No OFD packet to send [14:24: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:38]accept exits with 7 [14:27:38]New connection [14:27:38]New thread 3067317604 created [14:27:38]Thread 3067460964 joined [14:27:38]Waiting for new connection... [14:27:38] Sock 7.Parse request [14:27:38]Sock 7.Check first char [14:27:38]Sock 7.First char is OK [14:27:38]request: POST /json_proto HTTP/1.0 [14:27:38]Method: POST [14:27:38]URL: /json_proto [14:27:38]Method is POST - this is cgi request [14:27:38]url: /json_proto [14:27:38]query_string will be loaded in cgi processing [14:27:38]execute_cgi json_proto POST (null) [14:27:38]execute_cgi path=json_proto method=POST [14:27:38]POST find Content-Length [14:27:38]Host: 172.17.62.5:8080 [14:27:38]Content-Length: 978 [14:27:38]Content-Type: application/json [14:27:38] [14:27:38]POST finish read [14:27:38]Found Content-Length = 978 [14:27:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191390", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 55.640, "sum" : 4000.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 55.64 \u0441\u043E\u043C", "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" ] } } [14:27:38]execute_script... [14:27: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)191390", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 55.640, "sum" : 4000.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 55.64 \u0441\u043E\u043C", "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" ] } } [14:27:38]POST & json_proto [14:27:38]process_json_proto [14:27:38]json parsed OK: [14:27:38]protocol is kg_v1.0 [14:27:38]action value=close_receipt [14:27:38]process_action close_receipt [14:27:38]cmd_close_receipt [14:27:38]MH_GetDate [14:27:38]Write to MH i2c: F0 00 00 6C 00 5B [14:27:38]Write i2c OK [14:27:38]MH_I2C_Read... [14:27:38]Read from MH i2c: F0 [14:27:38]MH_I2C_Read... [14:27:38]Read from MH i2c: F0 09 00 [14:27:38]MH_I2C_Read... [14:27:38]Read from MH i2c: F0 09 00 6C 00 00 5B 22 25 66 F4 E9 65 64 12 [14:27:38]GetLastDocTimeStamp 1713708633 [14:27:38]current date 1713709659 [14:27:38]FM_GetShiftState [14:27:38]SAM_PROTO_GetShiftState [14:27:38]wFMCommunicate request_size=4 [14:27:38]MH_SAM_APDU [14:27:38]CAPDU: 80 13 01 00 [14:27:38]Write to MH i2c: E2 08 00 6D 00 80 13 01 00 00 00 00 00 EA [14:27:38]Write i2c OK [14:27:38]MH_I2C_Read... [14:27:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:38]Read from MH i2c: E2 [14:27:38]MH_I2C_Read... [14:27:38]Read from MH i2c: E2 0E 00 [14:27:38]MH_I2C_Read... [14:27:38]Read from MH i2c: E2 0E 00 6D 00 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 31 [14:27:38]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [14:27:38]wFMCommunicate OK [14:27:38]SAM_PROTO_GetShiftState done [14:27:38]FM_GetShiftState done [14:27:38]opened in 1713658965 [14:27:38]opened+sec_in_day 1713745365 [14:27:38]quantity*price = 400051 [14:27:38]sum+1 = 400053 [14:27:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 108 21.04.2024 14:27 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 55.64 сом ФМ: 0000000000874652 ФД: 76852 ФПД: 207327038311282 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T142739&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76852&fm=207327038311282&tin=02508201610067®Number=0000000000091573&sum=400000 [14:27:39]StoreToDocumentArchive [14:27:39]shift 372 fd 76852 [14:27:39]save to /storage/0372/doc_00076852 [14:27:39]save last doc name /storage/0372/doc_00076852 to /storage/kkm_last_doc_name [14:27:39]save OK [14:27:39]Clear old archive folders... [14:27:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:27:39]tlvbuf is 017EDC70 [14:27:39]SAM_PROTO_ClearQueue [14:27:39]wFMCommunicate request_size=4 [14:27:39]MH_SAM_APDU [14:27:39]CAPDU: 80 09 00 00 [14:27:39]Write to MH i2c: E2 08 00 7A 00 80 09 00 00 00 00 00 00 EC [14:27:39]Write i2c OK [14:27:39]MH_I2C_Read... [14:27:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:27:39]Read from MH i2c: E2 [14:27:39]MH_I2C_Read... [14:27:39]Read from MH i2c: E2 03 00 [14:27:39]MH_I2C_Read... [14:27:39]Read from MH i2c: E2 03 00 7A 00 00 90 00 EE [14:27:39]RAPDU: 90 00 [14:27:39]wFMCommunicate OK [14:27:39]SAM_PROTO_ClearQueue done [14:27:39]KKMCreateOFDPacket [14:27:39]OFDProtocolAddRootSTLVToBuf [14:27:39]FM_MakeSignedData [14:27:39]FM_MakeSignedData [14:27:39]SAM_PROTO_SignData [14:27:39]wFMCommunicate request_size=4 [14:27:39]MH_SAM_APDU [14:27:39]CAPDU: 80 0D 01 02 [14:27:39]Write to MH i2c: E2 08 00 7B 00 80 0D 01 02 00 00 00 00 F4 [14:27:39]Write i2c OK [14:27:39]MH_I2C_Read... [14:27:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:27:39]Read from MH i2c: E2 [14:27:39]MH_I2C_Read... [14:27:39]Read from MH i2c: E2 03 00 [14:27:39]MH_I2C_Read... [14:27:39]Read from MH i2c: E2 03 00 7B 00 00 90 00 EF [14:27:39]RAPDU: 90 00 [14:27:39]wFMCommunicate OK [14:27:39]wFMCommunicate request_size=255 [14:27:39]MH_SAM_APDU [14:27:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 58 D9 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B4 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 F3 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 6C 00 00 00 F4 03 04 00 5B 22 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 34 2C 01 00 35 04 06 00 BC 90 16 78 [14:27:39]Write to MH i2c: E2 02 01 7C 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 58 D9 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B4 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 F3 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 6C 00 00 00 F4 03 04 00 5B 22 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 34 2C 01 00 35 04 06 00 BC 90 16 78 00 00 65 [14:27:39]Write i2c OK [14:27:39]MH_I2C_Read... [14:27:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:40]Read from MH i2c: E2 [14:27:40]MH_I2C_Read... [14:27:40]Read from MH i2c: E2 03 00 [14:27:40]MH_I2C_Read... [14:27:40]Read from MH i2c: E2 03 00 7C 00 00 90 00 F0 [14:27:40]RAPDU: 90 00 [14:27:40]wFMCommunicate OK [14:27:40]wFMCommunicate request_size=7 [14:27:40]MH_SAM_APDU [14:27:40]CAPDU: 80 0D 02 02 02 8B 72 [14:27:40]Write to MH i2c: E2 0A 00 7D 00 80 0D 02 02 02 00 8B 72 00 00 F8 [14:27:40]Write i2c OK [14:27:40]MH_I2C_Read... [14:27:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:40]Read from MH i2c: E2 [14:27:40]MH_I2C_Read... [14:27:40]Read from MH i2c: E2 03 00 [14:27:40]MH_I2C_Read... [14:27:40]Read from MH i2c: E2 03 00 7D 00 00 90 00 F1 [14:27:40]RAPDU: 90 00 [14:27:40]wFMCommunicate OK [14:27:40]wFMCommunicate request_size=4 [14:27:40]MH_SAM_APDU [14:27:40]CAPDU: 80 0D 03 02 [14:27:40]Write to MH i2c: E2 08 00 7E 00 80 0D 03 02 00 00 00 00 F9 [14:27:40]Write i2c OK [14:27:40]MH_I2C_Read... [14:27:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:27:40]Read from MH i2c: E2 [14:27:40]MH_I2C_Read... [14:27:40]Read from MH i2c: E2 0B 00 [14:27:40]MH_I2C_Read... [14:27:40]Read from MH i2c: E2 0B 00 7E 00 00 73 6B 85 7F 24 FE 02 71 90 00 71 [14:27:40]RAPDU: 73 6B 85 7F 24 FE 02 71 90 00 [14:27:40]wFMCommunicate OK [14:27:40]SAM_PROTO_SignData done [14:27:40]FM_MakeSignedData done [14:27:40]CreateOFDProtocolMessage [14:27:40]wFMCommunicate request_size=4 [14:27:40]MH_SAM_APDU [14:27:40]CAPDU: 80 11 00 00 [14:27:40]Write to MH i2c: E2 08 00 7F 00 80 11 00 00 00 00 00 00 F9 [14:27:40]Write i2c OK [14:27:40]MH_I2C_Read... [14:27:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:40]Read from MH i2c: E2 [14:27:40]MH_I2C_Read... [14:27:40]Read from MH i2c: E2 17 00 [14:27:40]MH_I2C_Read... [14:27:40]Read from MH i2c: E2 17 00 7F 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 4C [14:27:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:27:40]wFMCommunicate OK [14:27:40]CreateOFDProtocolMessage done [14:27:40]OFDSenderStorePacket 76852 [14:27:40]StoreOFDPacket docnum=76852 [14:27:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 5E BC 04 01 AC F5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 58 D9 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B4 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 F3 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 6C 00 00 00 F4 03 04 00 5B 22 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 34 2C 01 00 35 04 06 00 BC 90 16 78 8B 72 73 6B 85 7F 24 FE 02 71 [14:27:40]CheckFolder [14:27:40]dirname=/storage/ofd_packets [14:27:40]CheckFolder done [14:27:40]ProducePacketName [14:27:40]name=ofd_packets/00076852 [14:27:40]NVStorageSaveData ofd_packets/00076852 [14:27:40]File name is /storage/ofd_packets/00076852 [14:27:40]Write 298 bytes [14:27:40]NVStorageSaveData done [14:27:40]OFDSenderStorePacket done [14:27:40]KKMCreateOFDPacket done [14:27:40]NVStorageSaveData kkm_last_timestamp [14:27:40]File name is /storage/kkm_last_timestamp [14:27:40]Write 4 bytes [14:27:40]NVStorageSaveData done [14:27:40]ExternCall_PrintAddStr [14:27:40]wPrintStart [14:27:40]Write to MH i2c: 01 00 00 80 00 80 [14:27:40]Write i2c OK [14:27:40]MH_I2C_Read... [14:27:40]Read from MH i2c: 01 [14:27:40]MH_I2C_Read... [14:27:40]Read from MH i2c: 01 07 00 [14:27:40]MH_I2C_Read... [14:27:40]Read from MH i2c: 01 07 00 80 00 00 00 00 00 00 FF 0F 95 [14:27:40]RasterBufferAndPrint [14:27:40]line Счет N : (1)191390 [14:27:40]line ИНН: 02508201610067 [14:27:40]line Контрольно-Кассовый Чек [14:27:40]line ПРОДАЖА [14:27:40]line ТРК (МРК, ГНК) : 61 [14:27:40]line Товар: 2710194210 [14:27:40]line ДТ-К-5 [14:27:40]line 55.640 * 71.90 [14:27:40]line = 4000.52 [14:27:40]line НДС 12% НСП 1% [14:27:40]line > о реализуемом товаре [14:27:40]line ОКРУГЛЕНИЕ: -0.52 [14:27:40]line ИТОГО: 4000.00 [14:27:40]line Внесено: 4000.00 [14:27:40]line СДАЧА: 0.00 [14:27:40]line НСП 1% : 35.40 [14:27:40]line НДС 12% : 424.83 [14:27:40]line Наличными: 4000.00 [14:27:40]line Безнал.: 0.00 [14:27:40]line Место: АЗС № 106 "Партнер Нефть" [14:27:40]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [14:27:40]line СНО: Общий режим [14:27:40]line Чек 108 21.04.2024 14:27 [14:27:40]line Смена: 372 ФФД: 1.0 [14:27:40]line ЗНМ: 0300000141 [14:27:40]line РНМ: 0000000000091573 [14:27:40]line Версия ККМ: 001 [14:27:40]line [14:27:40]line Дисконтная программа [14:27:40]line ДТ [14:27:40]line номер 106 [14:27:40]line сэкономлено 55.64 сом [14:27:40]line ФМ: 0000000000874652 [14:27:40]line ФД: 76852 [14:27:40]line ФПД: 207327038311282 [14:27:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T142739&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76852&fm=207327038311282&tin=02508201610067®Number=0000000000091573&sum=400000 [14:27:40]OFD Sender: Processing packet 76852 [packets to send 129, broken 128] [14:27:40]ProducePacketName [14:27:40]name=ofd_packets/00076852 [14:27:40]OFD Sender: To server: pG, [14:27:40]CommunicateWithHost lk.salyk.kg:30040 [14:27:40]ConnectInit lk.salyk.kg [14:27:40]written 0, free lines is 4095 [14:27:40]Connected sock=10 [14:27:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 5E BC 04 01 AC F5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 58 D9 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B4 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 F3 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 6C 00 00 00 F4 03 04 00 5B 22 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 34 2C 01 00 35 04 06 00 BC 90 16 78 8B 72 73 6B 85 7F 24 FE 02 71 [14:27:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 C0 AC 47 00 A0 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 34 36 35 32 10 04 04 00 34 2C 01 00 F4 03 04 00 E0 C9 24 66 B6 04 01 00 00 08 78 DA 4B BA 69 FD 3C [14:27:40]CommunicateWithHost err = 0 [14:27:40]CheckOFDResponse [14:27:40]1017 (14) - 77093643461234 [14:27:40]1041 (16) - 0000000000874652 [14:27:40]1040 (4) - 76852 [14:27:40]1012 (4) - 21.04.2024 08:10 [14:27:40]1206 (1) - 0 [14:27:40]OFD Sender: Remove packet 76852 [14:27:40]ProducePacketName [14:27:40]name=ofd_packets/00076852 [14:27:40]NVStorageDeleteData [14:27:41]Write to MH i2c: 01 00 00 AF 00 AF [14:27:41]Write i2c OK [14:27:41]MH_I2C_Read... [14:27:41]Read from MH i2c: 01 [14:27:41]MH_I2C_Read... [14:27:41]Read from MH i2c: 01 07 00 [14:27:41]MH_I2C_Read... [14:27:41]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 9B 0C 5D [14:27:41]RasterBufferAndPrint [14:27:41]line [14:27:41]line [14:27:41]line [14:27:41]line [14:27:41]line [14:27:41]written 0, free lines is 3233 [14:27:41]MH_Cut [14:27:41]Write to MH i2c: D1 01 00 B6 00 01 88 [14:27:41]Write i2c OK [14:27:41]MH_I2C_Read... [14:27:41]Read from MH i2c: D1 [14:27:41]MH_I2C_Read... [14:27:41]Read from MH i2c: D1 01 00 [14:27:41]MH_I2C_Read... [14:27:41]Read from MH i2c: D1 01 00 B6 00 00 87 [14:27:41]Write to MH i2c: 01 00 00 B7 00 B7 [14:27:41]Write i2c OK [14:27:41]MH_I2C_Read... [14:27:41]OFD Sender: No OFD packet to send [14:27:41]*** Cut start [14:27:41]*** Partial cut [14:27:41]*** CUTSNS_PIN = 1 [14:27:41]*** CUTSNS_PIN = 0 [14:27:42]*** Brake cut motor [14:27:42]Read from MH i2c: 01 [14:27:42]MH_I2C_Read... [14:27:42]*** Stop cut motor [14:27:42]*** Cut end [14:27:42]Read from MH i2c: 01 07 00 [14:27:42]MH_I2C_Read... [14:27:42]Read from MH i2c: 01 07 00 B7 00 00 00 00 00 00 FF 0F CC [14:27:42]process_action close_receipt done [14:27:42]requested_data is exist [14:27:42]produce_requested_data [14:27:42]requested_item fm.sn is exist - process it [14:27:42]wFMCommunicate request_size=4 [14:27:42]MH_SAM_APDU [14:27:42]CAPDU: 80 11 00 00 [14:27:42]Write to MH i2c: E2 08 00 B8 00 80 11 00 00 00 00 00 00 32 [14:27:42]Write i2c OK [14:27:42]MH_I2C_Read... [14:27:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:42]Read from MH i2c: E2 [14:27:42]MH_I2C_Read... [14:27:42]Read from MH i2c: E2 17 00 [14:27:42]MH_I2C_Read... [14:27:42]Read from MH i2c: E2 17 00 B8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 85 [14:27:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:27:42]wFMCommunicate OK [14:27:42]requested_item fd.num is exist - process it [14:27:42]SAM_PROTO_GetFieldsCounters [14:27:42]wFMCommunicate request_size=4 [14:27:42]MH_SAM_APDU [14:27:42]CAPDU: 80 13 00 00 [14:27:42]Write to MH i2c: E2 08 00 B9 00 80 13 00 00 00 00 00 00 35 [14:27:42]Write i2c OK [14:27:42]MH_I2C_Read... [14:27:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:27:42]Read from MH i2c: E2 [14:27:42]MH_I2C_Read... [14:27:42]Read from MH i2c: E2 62 00 [14:27:42]MH_I2C_Read... [14:27:42]Read from MH i2c: E2 62 00 B9 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 34 2C 01 00 0E 04 04 00 74 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 70 [14:27: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 34 2C 01 00 0E 04 04 00 74 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 [14:27:42]wFMCommunicate OK [14:27:42]SAM_PROTO_GetFieldsCounters done [14:27:42]requested_item shift.num is exist - process it [14:27:42]requested_item shift.opened is exist - process it [14:27:42]req_shift_opened [14:27:42]FM_GetShiftState [14:27:42]SAM_PROTO_GetShiftState [14:27:42]wFMCommunicate request_size=4 [14:27:42]MH_SAM_APDU [14:27:42]CAPDU: 80 13 01 00 [14:27:42]Write to MH i2c: E2 08 00 BA 00 80 13 01 00 00 00 00 00 37 [14:27:42]Write i2c OK [14:27:42]MH_I2C_Read... [14:27:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:42]Read from MH i2c: E2 [14:27:42]MH_I2C_Read... [14:27:42]Read from MH i2c: E2 0E 00 [14:27:42]MH_I2C_Read... [14:27:42]Read from MH i2c: E2 0E 00 BA 00 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 7E [14:27:42]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [14:27:42]wFMCommunicate OK [14:27:42]SAM_PROTO_GetShiftState done [14:27:42]FM_GetShiftState done [14:27:42]req_shift_opened done [14:27:42]requested_item shift.open_date is exist - process it [14:27:42]req_shift_open_date [14:27:42]req_shift_open_date done [14:27:42]produce_requested_data done [14:27:42]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76852,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [14:27:42]process_action_free close_receipt [14:27:42]json_value_free [14:27:42]json_value_free done [14:27:42]process_json_proto returns [14:27:42]Send response to host [14:27:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76852,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [14:27:42]free response buf [14:27:42]execute_script done [14:27:42]execute_script returns [14:27:42]free content buf [14:27:42]Sock 7.Close socket [14:27:42]Sock 7.Thread stoped [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:21]OFD Sender: No OFD packet to send [14:28:26]OFD Sender: No OFD packet to send [14:28:31]OFD Sender: No OFD packet to send [14:28:36]OFD Sender: No OFD packet to send [14:28:41]OFD Sender: No OFD packet to send [14:28:46]OFD Sender: No OFD packet to send [14:28:51]OFD Sender: No OFD packet to send [14:28:56]OFD Sender: No OFD packet to send [14:29:01]OFD Sender: No OFD packet to send [14:29:06]OFD Sender: No OFD packet to send [14:29:11]OFD Sender: No OFD packet to send [14:29:16]OFD Sender: No OFD packet to send [14:29:21]OFD Sender: No OFD packet to send [14:29:26]OFD Sender: No OFD packet to send [14:29:31]OFD Sender: No OFD packet to send [14:29:36]OFD Sender: No OFD packet to send [14:29:41]OFD Sender: No OFD packet to send [14:29:46]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:26]OFD Sender: No OFD packet to send [14:30:31]OFD Sender: No OFD packet to send [14:30:36]OFD Sender: No OFD packet to send [14:30:41]OFD Sender: No OFD packet to send [14:30:46]OFD Sender: No OFD packet to send [14:30:51]OFD Sender: No OFD packet to send [14:30:56]OFD Sender: No OFD packet to send [14:31:01]OFD Sender: No OFD packet to send [14:31:06]OFD Sender: No OFD packet to send [14:31:11]OFD Sender: No OFD packet to send [14:31:16]OFD Sender: No OFD packet to send [14:31:21]OFD Sender: No OFD packet to send [14:31:26]OFD Sender: No OFD packet to send [14:31:31]OFD Sender: No OFD packet to send [14:31:36]OFD Sender: No OFD packet to send [14:31:41]OFD Sender: No OFD packet to send [14:31:46]OFD Sender: No OFD packet to send [14:31:51]OFD Sender: No OFD packet to send [14:31:56]OFD Sender: No OFD packet to send [14:32:01]OFD Sender: No OFD packet to send [14:32:06]OFD Sender: No OFD packet to send [14:32:11]OFD Sender: No OFD packet to send [14:32:16]OFD Sender: No OFD packet to send [14:32:21]OFD Sender: No OFD packet to send [14:32:26]OFD Sender: No OFD packet to send [14:32:31]OFD Sender: No OFD packet to send [14:32:36]OFD Sender: No OFD packet to send [14:32:41]OFD Sender: No OFD packet to send [14:32:46]OFD Sender: No OFD packet to send [14:32:51]OFD Sender: No OFD packet to send [14:32:56]OFD Sender: No OFD packet to send [14:33:01]OFD Sender: No OFD packet to send [14:33:06]OFD Sender: No OFD packet to send [14:33:11]OFD Sender: No OFD packet to send [14:33:16]OFD Sender: No OFD packet to send [14:33:21]OFD Sender: No OFD packet to send [14:33:26]OFD Sender: No OFD packet to send [14:33:31]OFD Sender: No OFD packet to send [14:33:36]OFD Sender: No OFD packet to send [14:33:41]OFD Sender: No OFD packet to send [14:33:46]OFD Sender: No OFD packet to send [14:33:51]OFD Sender: No OFD packet to send [14:33:56]OFD Sender: No OFD packet to send [14:34:01]OFD Sender: No OFD packet to send [14:34:06]OFD Sender: No OFD packet to send [14:34:11]OFD Sender: No OFD packet to send [14:34:16]OFD Sender: No OFD packet to send [14:34:21]OFD Sender: No OFD packet to send [14:34:26]OFD Sender: No OFD packet to send [14:34:31]OFD Sender: No OFD packet to send [14:34:36]OFD Sender: No OFD packet to send [14:34:41]OFD Sender: No OFD packet to send [14:34:46]OFD Sender: No OFD packet to send [14:34:51]OFD Sender: No OFD packet to send [14:34:57]OFD Sender: No OFD packet to send [14:35:02]OFD Sender: No OFD packet to send [14:35:07]OFD Sender: No OFD packet to send [14:35:12]OFD Sender: No OFD packet to send [14:35:17]OFD Sender: No OFD packet to send [14:35:22]OFD Sender: No OFD packet to send [14:35:27]OFD Sender: No OFD packet to send [14:35:32]OFD Sender: No OFD packet to send [14:35:37]OFD Sender: No OFD packet to send [14:35:42]OFD Sender: No OFD packet to send [14:35:47]OFD Sender: No OFD packet to send [14:35:52]OFD Sender: No OFD packet to send [14:35:57]OFD Sender: No OFD packet to send [14:36:02]OFD Sender: No OFD packet to send [14:36:07]OFD Sender: No OFD packet to send [14:36:12]OFD Sender: No OFD packet to send [14:36:17]OFD Sender: No OFD packet to send [14:36:22]OFD Sender: No OFD packet to send [14:36:22]accept exits with 9 [14:36:22]New connection [14:36:22]New thread 3067460964 created [14:36:22]Thread 3067317604 joined [14:36:22]Waiting for new connection... [14:36:22] Sock 9.Parse request [14:36:22]Sock 9.Check first char [14:36:22]Sock 9.First char is OK [14:36:22]request: POST /json_proto HTTP/1.0 [14:36:22]Method: POST [14:36:22]URL: /json_proto [14:36:22]Method is POST - this is cgi request [14:36:22]url: /json_proto [14:36:22]query_string will be loaded in cgi processing [14:36:22]execute_cgi json_proto POST (null) [14:36:22]execute_cgi path=json_proto method=POST [14:36:22]POST find Content-Length [14:36:22]Host: 172.17.62.5:8080 [14:36:22]Content-Length: 682 [14:36:22]Content-Type: application/json [14:36:22] [14:36:22]POST finish read [14:36:22]Found Content-Length = 682 [14:36:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191391", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:36:22]execute_script... [14:36:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191391", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:36:22]POST & json_proto [14:36:22]process_json_proto [14:36:22]json parsed OK: [14:36:22]protocol is kg_v1.0 [14:36:22]action value=close_receipt [14:36:22]process_action close_receipt [14:36:22]cmd_close_receipt [14:36:22]MH_GetDate [14:36:22]Write to MH i2c: F0 00 00 BB 00 AA [14:36:22]Write i2c OK [14:36:22]MH_I2C_Read... [14:36:22]Read from MH i2c: F0 [14:36:22]MH_I2C_Read... [14:36:22]Read from MH i2c: F0 09 00 [14:36:22]MH_I2C_Read... [14:36:22]Read from MH i2c: F0 09 00 BB 00 00 67 24 25 66 F4 E9 65 64 6F [14:36:22]GetLastDocTimeStamp 1713709659 [14:36:22]current date 1713710183 [14:36:22]FM_GetShiftState [14:36:22]SAM_PROTO_GetShiftState [14:36:22]wFMCommunicate request_size=4 [14:36:22]MH_SAM_APDU [14:36:22]CAPDU: 80 13 01 00 [14:36:22]Write to MH i2c: E2 08 00 BC 00 80 13 01 00 00 00 00 00 39 [14:36:22]Write i2c OK [14:36:22]MH_I2C_Read... [14:36:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:22]Read from MH i2c: E2 [14:36:22]MH_I2C_Read... [14:36:22]Read from MH i2c: E2 0E 00 [14:36:22]MH_I2C_Read... [14:36:22]Read from MH i2c: E2 0E 00 BC 00 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 80 [14:36:22]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [14:36:22]wFMCommunicate OK [14:36:22]SAM_PROTO_GetShiftState done [14:36:22]FM_GetShiftState done [14:36:22]opened in 1713658965 [14:36:22]opened+sec_in_day 1713745365 [14:36:22]quantity*price = 100013 [14:36:22]sum+1 = 100014 [14:36:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 109 21.04.2024 14:36 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76853 ФПД: 224554153891630 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T143623&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76853&fm=224554153891630&tin=02508201610067®Number=0000000000091573&sum=100000 [14:36:23]StoreToDocumentArchive [14:36:23]shift 372 fd 76853 [14:36:23]save to /storage/0372/doc_00076853 [14:36:23]save last doc name /storage/0372/doc_00076853 to /storage/kkm_last_doc_name [14:36:23]save OK [14:36:23]Clear old archive folders... [14:36:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:36:23]tlvbuf is 017E4A60 [14:36:23]SAM_PROTO_ClearQueue [14:36:23]wFMCommunicate request_size=4 [14:36:23]MH_SAM_APDU [14:36:23]CAPDU: 80 09 00 00 [14:36:23]Write to MH i2c: E2 08 00 C9 00 80 09 00 00 00 00 00 00 3B [14:36:23]Write i2c OK [14:36:23]MH_I2C_Read... [14:36:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:36:23]Read from MH i2c: E2 [14:36:23]MH_I2C_Read... [14:36:23]Read from MH i2c: E2 03 00 [14:36:23]MH_I2C_Read... [14:36:23]Read from MH i2c: E2 03 00 C9 00 00 90 00 3D [14:36:23]RAPDU: 90 00 [14:36:23]wFMCommunicate OK [14:36:23]SAM_PROTO_ClearQueue done [14:36:23]KKMCreateOFDPacket [14:36:23]OFDProtocolAddRootSTLVToBuf [14:36:23]FM_MakeSignedData [14:36:23]FM_MakeSignedData [14:36:23]SAM_PROTO_SignData [14:36:23]wFMCommunicate request_size=4 [14:36:23]MH_SAM_APDU [14:36:23]CAPDU: 80 0D 01 02 [14:36:23]Write to MH i2c: E2 08 00 CA 00 80 0D 01 02 00 00 00 00 43 [14:36:23]Write i2c OK [14:36:23]MH_I2C_Read... [14:36:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:36:23]Read from MH i2c: E2 [14:36:23]MH_I2C_Read... [14:36:23]Read from MH i2c: E2 03 00 [14:36:23]MH_I2C_Read... [14:36:23]Read from MH i2c: E2 03 00 CA 00 00 90 00 3E [14:36:23]RAPDU: 90 00 [14:36:23]wFMCommunicate OK [14:36:23]wFMCommunicate request_size=255 [14:36:23]MH_SAM_APDU [14:36:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 67 24 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 35 2C 01 00 35 04 06 00 CC [14:36:23]Write to MH i2c: E2 02 01 CB 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 67 24 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 35 2C 01 00 35 04 06 00 CC 00 00 3A [14:36:23]Write i2c OK [14:36:23]MH_I2C_Read... [14:36:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:24]Read from MH i2c: E2 [14:36:24]MH_I2C_Read... [14:36:24]Read from MH i2c: E2 03 00 [14:36:24]MH_I2C_Read... [14:36:24]Read from MH i2c: E2 03 00 CB 00 00 90 00 3F [14:36:24]RAPDU: 90 00 [14:36:24]wFMCommunicate OK [14:36:24]wFMCommunicate request_size=10 [14:36:24]MH_SAM_APDU [14:36:24]CAPDU: 80 0D 02 02 05 3B 16 93 57 2E [14:36:24]Write to MH i2c: E2 0D 00 CC 00 80 0D 02 02 05 00 3B 16 93 57 2E 00 00 B9 [14:36:24]Write i2c OK [14:36:24]MH_I2C_Read... [14:36:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:24]Read from MH i2c: E2 [14:36:24]MH_I2C_Read... [14:36:24]Read from MH i2c: E2 03 00 [14:36:24]MH_I2C_Read... [14:36:24]Read from MH i2c: E2 03 00 CC 00 00 90 00 40 [14:36:24]RAPDU: 90 00 [14:36:24]wFMCommunicate OK [14:36:24]wFMCommunicate request_size=4 [14:36:24]MH_SAM_APDU [14:36:24]CAPDU: 80 0D 03 02 [14:36:24]Write to MH i2c: E2 08 00 CD 00 80 0D 03 02 00 00 00 00 48 [14:36:24]Write i2c OK [14:36:24]MH_I2C_Read... [14:36:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:36:24]Read from MH i2c: E2 [14:36:24]MH_I2C_Read... [14:36:24]Read from MH i2c: E2 0B 00 [14:36:24]MH_I2C_Read... [14:36:24]Read from MH i2c: E2 0B 00 CD 00 00 A4 DF 3C 04 7C 16 D0 22 90 00 90 [14:36:24]RAPDU: A4 DF 3C 04 7C 16 D0 22 90 00 [14:36:24]wFMCommunicate OK [14:36:24]SAM_PROTO_SignData done [14:36:24]FM_MakeSignedData done [14:36:24]CreateOFDProtocolMessage [14:36:24]wFMCommunicate request_size=4 [14:36:24]MH_SAM_APDU [14:36:24]CAPDU: 80 11 00 00 [14:36:24]Write to MH i2c: E2 08 00 CE 00 80 11 00 00 00 00 00 00 48 [14:36:24]Write i2c OK [14:36:24]MH_I2C_Read... [14:36:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:24]Read from MH i2c: E2 [14:36:24]MH_I2C_Read... [14:36:24]Read from MH i2c: E2 17 00 [14:36:24]MH_I2C_Read... [14:36:24]Read from MH i2c: E2 17 00 CE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 9B [14:36:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:36:24]wFMCommunicate OK [14:36:24]CreateOFDProtocolMessage done [14:36:24]OFDSenderStorePacket 76853 [14:36:24]StoreOFDPacket docnum=76853 [14:36:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 F9 95 07 01 13 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 67 24 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 35 2C 01 00 35 04 06 00 CC 3B 16 93 57 2E A4 DF 3C 04 7C 16 D0 22 [14:36:24]CheckFolder [14:36:24]dirname=/storage/ofd_packets [14:36:24]CheckFolder done [14:36:24]ProducePacketName [14:36:24]name=ofd_packets/00076853 [14:36:24]NVStorageSaveData ofd_packets/00076853 [14:36:24]File name is /storage/ofd_packets/00076853 [14:36:24]Write 301 bytes [14:36:24]NVStorageSaveData done [14:36:24]OFDSenderStorePacket done [14:36:24]KKMCreateOFDPacket done [14:36:24]NVStorageSaveData kkm_last_timestamp [14:36:24]File name is /storage/kkm_last_timestamp [14:36:24]Write 4 bytes [14:36:24]NVStorageSaveData done [14:36:24]ExternCall_PrintAddStr [14:36:24]wPrintStart [14:36:24]Write to MH i2c: 01 00 00 CF 00 CF [14:36:24]Write i2c OK [14:36:24]MH_I2C_Read... [14:36:24]Read from MH i2c: 01 [14:36:24]MH_I2C_Read... [14:36:24]Read from MH i2c: 01 07 00 [14:36:24]MH_I2C_Read... [14:36:24]Read from MH i2c: 01 07 00 CF 00 00 00 00 00 00 FF 0F E4 [14:36:24]RasterBufferAndPrint [14:36:24]line Счет N : (1)191391 [14:36:24]line ИНН: 02508201610067 [14:36:24]line Контрольно-Кассовый Чек [14:36:24]line ПРОДАЖА [14:36:24]line ТРК (МРК, ГНК) : 12 [14:36:24]line Товар: 2710124130 [14:36:24]line Аи-92-К-5 [14:36:24]line 15.530 * 64.40 [14:36:24]line = 1000.13 [14:36:24]line НДС 12% НСП 1% [14:36:24]line > о реализуемом товаре [14:36:24]line ОКРУГЛЕНИЕ: -0.13 [14:36:24]line ИТОГО: 1000.00 [14:36:24]line Внесено: 1000.00 [14:36:24]line СДАЧА: 0.00 [14:36:24]line НСП 1% : 8.85 [14:36:24]line НДС 12% : 106.21 [14:36:24]line Наличными: 1000.00 [14:36:24]line Безнал.: 0.00 [14:36:24]line Место: АЗС № 106 "Партнер Нефть" [14:36:24]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [14:36:24]line СНО: Общий режим [14:36:24]line Чек 109 21.04.2024 14:36 [14:36:24]line Смена: 372 ФФД: 1.0 [14:36:24]line ЗНМ: 0300000141 [14:36:24]line РНМ: 0000000000091573 [14:36:24]line Версия ККМ: 001 [14:36:24]line ФМ: 0000000000874652 [14:36:24]line ФД: 76853 [14:36:24]line ФПД: 224554153891630 [14:36:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T143623&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76853&fm=224554153891630&tin=02508201610067®Number=0000000000091573&sum=100000 [14:36:24]OFD Sender: Processing packet 76853 [packets to send 129, broken 128] [14:36:24]ProducePacketName [14:36:24]name=ofd_packets/00076853 [14:36:24]OFD Sender: To server: pG, [14:36:24]CommunicateWithHost lk.salyk.kg:30040 [14:36:24]ConnectInit lk.salyk.kg [14:36:24]written 0, free lines is 4095 [14:36:24]Connected sock=10 [14:36:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 F9 95 07 01 13 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 67 24 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 35 2C 01 00 35 04 06 00 CC 3B 16 93 57 2E A4 DF 3C 04 7C 16 D0 22 [14:36:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 B8 5C 47 00 0B 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 34 36 35 32 10 04 04 00 35 2C 01 00 F4 03 04 00 EC CB 24 66 B6 04 01 00 00 E5 D3 CD E3 FF E4 B3 FE [14:36:24]CommunicateWithHost err = 0 [14:36:24]CheckOFDResponse [14:36:24]1017 (14) - 77093643461234 [14:36:24]1041 (16) - 0000000000874652 [14:36:24]1040 (4) - 76853 [14:36:24]1012 (4) - 21.04.2024 08:18 [14:36:24]1206 (1) - 0 [14:36:24]OFD Sender: Remove packet 76853 [14:36:24]ProducePacketName [14:36:24]name=ofd_packets/00076853 [14:36:24]NVStorageDeleteData [14:36:24]Write to MH i2c: 01 00 00 F9 00 F9 [14:36:24]Write i2c OK [14:36:24]MH_I2C_Read... [14:36:24]Read from MH i2c: 01 [14:36:24]MH_I2C_Read... [14:36:24]Read from MH i2c: 01 07 00 [14:36:24]MH_I2C_Read... [14:36:24]Read from MH i2c: 01 07 00 F9 00 00 00 00 00 00 F6 0C 02 [14:36:24]RasterBufferAndPrint [14:36:24]line [14:36:24]line [14:36:24]line [14:36:24]line [14:36:24]line [14:36:24]written 0, free lines is 3326 [14:36:24]MH_Cut [14:36:24]Write to MH i2c: D1 01 00 00 01 01 D3 [14:36:24]Write i2c OK [14:36:24]MH_I2C_Read... [14:36:24]Read from MH i2c: D1 [14:36:24]MH_I2C_Read... [14:36:24]Read from MH i2c: D1 01 00 [14:36:24]MH_I2C_Read... [14:36:24]Read from MH i2c: D1 01 00 00 01 00 D2 [14:36:24]Write to MH i2c: 01 00 00 01 01 02 [14:36:25]Write i2c OK [14:36:25]MH_I2C_Read... [14:36:25]OFD Sender: No OFD packet to send [14:36:25]*** Cut start [14:36:25]*** Partial cut [14:36:25]*** CUTSNS_PIN = 1 [14:36:25]*** CUTSNS_PIN = 0 [14:36:25]*** Brake cut motor [14:36:26]Read from MH i2c: 01 [14:36:26]MH_I2C_Read... [14:36:26]*** Stop cut motor [14:36:26]*** Cut end [14:36:26]Read from MH i2c: 01 07 00 [14:36:26]MH_I2C_Read... [14:36:26]Read from MH i2c: 01 07 00 01 01 00 00 00 00 00 FF 0F 17 [14:36:26]process_action close_receipt done [14:36:26]requested_data is exist [14:36:26]produce_requested_data [14:36:26]requested_item fm.sn is exist - process it [14:36:26]wFMCommunicate request_size=4 [14:36:26]MH_SAM_APDU [14:36:26]CAPDU: 80 11 00 00 [14:36:26]Write to MH i2c: E2 08 00 02 01 80 11 00 00 00 00 00 00 7D [14:36:26]Write i2c OK [14:36:26]MH_I2C_Read... [14:36:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:26]Read from MH i2c: E2 [14:36:26]MH_I2C_Read... [14:36:26]Read from MH i2c: E2 17 00 [14:36:26]MH_I2C_Read... [14:36:26]Read from MH i2c: E2 17 00 02 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 D0 [14:36:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:36:26]wFMCommunicate OK [14:36:26]requested_item fd.num is exist - process it [14:36:26]SAM_PROTO_GetFieldsCounters [14:36:26]wFMCommunicate request_size=4 [14:36:26]MH_SAM_APDU [14:36:26]CAPDU: 80 13 00 00 [14:36:26]Write to MH i2c: E2 08 00 03 01 80 13 00 00 00 00 00 00 80 [14:36:26]Write i2c OK [14:36:26]MH_I2C_Read... [14:36:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:36:26]Read from MH i2c: E2 [14:36:26]MH_I2C_Read... [14:36:26]Read from MH i2c: E2 62 00 [14:36:26]MH_I2C_Read... [14:36:26]Read from MH i2c: E2 62 00 03 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 35 2C 01 00 0E 04 04 00 74 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 BF [14:36:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 35 2C 01 00 0E 04 04 00 74 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 [14:36:26]wFMCommunicate OK [14:36:26]SAM_PROTO_GetFieldsCounters done [14:36:26]requested_item shift.num is exist - process it [14:36:26]requested_item shift.opened is exist - process it [14:36:26]req_shift_opened [14:36:26]FM_GetShiftState [14:36:26]SAM_PROTO_GetShiftState [14:36:26]wFMCommunicate request_size=4 [14:36:26]MH_SAM_APDU [14:36:26]CAPDU: 80 13 01 00 [14:36:26]Write to MH i2c: E2 08 00 04 01 80 13 01 00 00 00 00 00 82 [14:36:26]Write i2c OK [14:36:26]MH_I2C_Read... [14:36:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:26]Read from MH i2c: E2 [14:36:26]MH_I2C_Read... [14:36:26]Read from MH i2c: E2 0E 00 [14:36:26]MH_I2C_Read... [14:36:26]Read from MH i2c: E2 0E 00 04 01 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 C9 [14:36:26]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [14:36:26]wFMCommunicate OK [14:36:26]SAM_PROTO_GetShiftState done [14:36:26]FM_GetShiftState done [14:36:26]req_shift_opened done [14:36:26]requested_item shift.open_date is exist - process it [14:36:26]req_shift_open_date [14:36:26]req_shift_open_date done [14:36:26]produce_requested_data done [14:36:26]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76853,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [14:36:26]process_action_free close_receipt [14:36:26]json_value_free [14:36:26]json_value_free done [14:36:26]process_json_proto returns [14:36:26]Send response to host [14:36:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76853,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [14:36:26]free response buf [14:36:26]execute_script done [14:36:26]execute_script returns [14:36:26]free content buf [14:36:26]Sock 9.Close socket [14:36:26]Sock 9.Thread stoped [14:36:30]OFD Sender: No OFD packet to send [14:36:35]OFD Sender: No OFD packet to send [14:36:40]OFD Sender: No OFD packet to send [14:36:45]OFD Sender: No OFD packet to send [14:36:50]OFD Sender: No OFD packet to send [14:36:55]OFD Sender: No OFD packet to send [14:37:00]OFD Sender: No OFD packet to send [14:37:05]OFD Sender: No OFD packet to send [14:37:10]OFD Sender: No OFD packet to send [14:37:15]OFD Sender: No OFD packet to send [14:37:20]OFD Sender: No OFD packet to send [14:37:25]OFD Sender: No OFD packet to send [14:37:30]OFD Sender: No OFD packet to send [14:37:35]OFD Sender: No OFD packet to send [14:37:40]OFD Sender: No OFD packet to send [14:37:45]OFD Sender: No OFD packet to send [14:37:50]OFD Sender: No OFD packet to send [14:37:55]OFD Sender: No OFD packet to send [14:38:00]OFD Sender: No OFD packet to send [14:38:05]OFD Sender: No OFD packet to send [14:38:10]OFD Sender: No OFD packet to send [14:38:15]OFD Sender: No OFD packet to send [14:38:20]OFD Sender: No OFD packet to send [14:38:25]OFD Sender: No OFD packet to send [14:38:30]OFD Sender: No OFD packet to send [14:38:35]OFD Sender: No OFD packet to send [14:38:40]OFD Sender: No OFD packet to send [14:38:45]OFD Sender: No OFD packet to send [14:38:50]OFD Sender: No OFD packet to send [14:38:55]OFD Sender: No OFD packet to send [14:39:00]OFD Sender: No OFD packet to send [14:39:05]OFD Sender: No OFD packet to send [14:39:10]OFD Sender: No OFD packet to send [14:39:15]OFD Sender: No OFD packet to send [14:39:20]OFD Sender: No OFD packet to send [14:39:25]OFD Sender: No OFD packet to send [14:39:30]OFD Sender: No OFD packet to send [14:39:35]OFD Sender: No OFD packet to send [14:39:40]OFD Sender: No OFD packet to send [14:39:45]OFD Sender: No OFD packet to send [14:39:50]OFD Sender: No OFD packet to send [14:39:55]OFD Sender: No OFD packet to send [14:40:00]OFD Sender: No OFD packet to send [14:40:05]OFD Sender: No OFD packet to send [14:40:10]OFD Sender: No OFD packet to send [14:40:15]OFD Sender: No OFD packet to send [14:40:20]OFD Sender: No OFD packet to send [14:40:25]OFD Sender: No OFD packet to send [14:40:30]OFD Sender: No OFD packet to send [14:40:35]OFD Sender: No OFD packet to send [14:40:40]OFD Sender: No OFD packet to send [14:40:45]OFD Sender: No OFD packet to send [14:40:50]OFD Sender: No OFD packet to send [14:40:55]OFD Sender: No OFD packet to send [14:41:00]OFD Sender: No OFD packet to send [14:41:05]OFD Sender: No OFD packet to send [14:41:10]OFD Sender: No OFD packet to send [14:41:15]OFD Sender: No OFD packet to send [14:41:20]OFD Sender: No OFD packet to send [14:41:25]OFD Sender: No OFD packet to send [14:41:30]OFD Sender: No OFD packet to send [14:41:35]OFD Sender: No OFD packet to send [14:41:40]OFD Sender: No OFD packet to send [14:41:45]OFD Sender: No OFD packet to send [14:41:50]OFD Sender: No OFD packet to send [14:41:55]OFD Sender: No OFD packet to send [14:42:00]OFD Sender: No OFD packet to send [14:42:05]OFD Sender: No OFD packet to send [14:42:10]OFD Sender: No OFD packet to send [14:42:15]OFD Sender: No OFD packet to send [14:42:20]OFD Sender: No OFD packet to send [14:42:25]OFD Sender: No OFD packet to send [14:42:30]OFD Sender: No OFD packet to send [14:42:35]OFD Sender: No OFD packet to send [14:42:40]OFD Sender: No OFD packet to send [14:42:45]OFD Sender: No OFD packet to send [14:42:50]OFD Sender: No OFD packet to send [14:42:55]OFD Sender: No OFD packet to send [14:43:00]OFD Sender: No OFD packet to send [14:43:05]OFD Sender: No OFD packet to send [14:43:10]OFD Sender: No OFD packet to send [14:43:15]OFD Sender: No OFD packet to send [14:43:20]OFD Sender: No OFD packet to send [14:43:25]OFD Sender: No OFD packet to send [14:43:30]OFD Sender: No OFD packet to send [14:43:35]OFD Sender: No OFD packet to send [14:43:40]OFD Sender: No OFD packet to send [14:43:45]OFD Sender: No OFD packet to send [14:43:50]OFD Sender: No OFD packet to send [14:43:55]OFD Sender: No OFD packet to send [14:44:00]OFD Sender: No OFD packet to send [14:44:05]OFD Sender: No OFD packet to send [14:44:10]OFD Sender: No OFD packet to send [14:44:15]OFD Sender: No OFD packet to send [14:44:20]OFD Sender: No OFD packet to send [14:44:25]OFD Sender: No OFD packet to send [14:44:30]OFD Sender: No OFD packet to send [14:44:35]OFD Sender: No OFD packet to send [14:44:40]OFD Sender: No OFD packet to send [14:44:45]OFD Sender: No OFD packet to send [14:44:50]OFD Sender: No OFD packet to send [14:44:55]OFD Sender: No OFD packet to send [14:45:00]OFD Sender: No OFD packet to send [14:45:06]OFD Sender: No OFD packet to send [14:45:11]OFD Sender: No OFD packet to send [14:45:16]OFD Sender: No OFD packet to send [14:45:21]OFD Sender: No OFD packet to send [14:45:26]OFD Sender: No OFD packet to send [14:45:31]OFD Sender: No OFD packet to send [14:45:36]OFD Sender: No OFD packet to send [14:45:41]OFD Sender: No OFD packet to send [14:45:46]OFD Sender: No OFD packet to send [14:45:51]OFD Sender: No OFD packet to send [14:45:56]OFD Sender: No OFD packet to send [14:46:01]OFD Sender: No OFD packet to send [14:46:06]OFD Sender: No OFD packet to send [14:46:11]OFD Sender: No OFD packet to send [14:46:16]OFD Sender: No OFD packet to send [14:46:21]OFD Sender: No OFD packet to send [14:46:26]OFD Sender: No OFD packet to send [14:46:30]accept exits with 7 [14:46:30]New connection [14:46:30]New thread 3067317604 created [14:46:30]Thread 3067460964 joined [14:46:30]Waiting for new connection... [14:46:30] Sock 7.Parse request [14:46:30]Sock 7.Check first char [14:46:30]Sock 7.First char is OK [14:46:30]request: POST /json_proto HTTP/1.0 [14:46:30]Method: POST [14:46:30]URL: /json_proto [14:46:30]Method is POST - this is cgi request [14:46:30]url: /json_proto [14:46:30]query_string will be loaded in cgi processing [14:46:30]execute_cgi json_proto POST (null) [14:46:30]execute_cgi path=json_proto method=POST [14:46:30]POST find Content-Length [14:46:30]Host: 172.17.62.5:8080 [14:46:30]Content-Length: 978 [14:46:30]Content-Type: application/json [14:46:30] [14:46:30]POST finish read [14:46:30]Found Content-Length = 978 [14:46:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 69.550, "sum" : 5000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 69.55 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:30]execute_script... [14:46:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 69.550, "sum" : 5000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 69.55 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:30]POST & json_proto [14:46:30]process_json_proto [14:46:30]json parsed OK: [14:46:30]protocol is kg_v1.0 [14:46:30]action value=close_receipt [14:46:30]process_action close_receipt [14:46:30]cmd_close_receipt [14:46:30]MH_GetDate [14:46:30]Write to MH i2c: F0 00 00 05 01 F5 [14:46:30]Write i2c OK [14:46:30]MH_I2C_Read... [14:46:30]Read from MH i2c: F0 [14:46:30]MH_I2C_Read... [14:46:30]Read from MH i2c: F0 09 00 [14:46:30]MH_I2C_Read... [14:46:30]Read from MH i2c: F0 09 00 05 01 00 C7 26 25 66 F4 E9 65 64 1C [14:46:30]GetLastDocTimeStamp 1713710183 [14:46:30]current date 1713710791 [14:46:30]FM_GetShiftState [14:46:30]SAM_PROTO_GetShiftState [14:46:30]wFMCommunicate request_size=4 [14:46:30]MH_SAM_APDU [14:46:30]CAPDU: 80 13 01 00 [14:46:30]Write to MH i2c: E2 08 00 06 01 80 13 01 00 00 00 00 00 84 [14:46:30]Write i2c OK [14:46:30]MH_I2C_Read... [14:46:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:30]Read from MH i2c: E2 [14:46:30]MH_I2C_Read... [14:46:30]Read from MH i2c: E2 0E 00 [14:46:30]MH_I2C_Read... [14:46:30]Read from MH i2c: E2 0E 00 06 01 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 CB [14:46:30]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [14:46:30]wFMCommunicate OK [14:46:30]SAM_PROTO_GetShiftState done [14:46:30]FM_GetShiftState done [14:46:30]opened in 1713658965 [14:46:30]opened+sec_in_day 1713745365 [14:46:30]quantity*price = 500064 [14:46:30]sum+1 = 500066 [14:46:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 531.04 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 110 21.04.2024 14:46 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 69.55 сом ФМ: 0000000000874652 ФД: 76854 ФПД: 217752002445355 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T144631&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76854&fm=217752002445355&tin=02508201610067®Number=0000000000091573&sum=500000 [14:46:31]StoreToDocumentArchive [14:46:31]shift 372 fd 76854 [14:46:31]save to /storage/0372/doc_00076854 [14:46:31]save last doc name /storage/0372/doc_00076854 to /storage/kkm_last_doc_name [14:46:31]save OK [14:46:31]Clear old archive folders... [14:46:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:46:31]tlvbuf is 017EB100 [14:46:31]SAM_PROTO_ClearQueue [14:46:31]wFMCommunicate request_size=4 [14:46:31]MH_SAM_APDU [14:46:31]CAPDU: 80 09 00 00 [14:46:31]Write to MH i2c: E2 08 00 13 01 80 09 00 00 00 00 00 00 86 [14:46:31]Write i2c OK [14:46:31]MH_I2C_Read... [14:46:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:31]Read from MH i2c: E2 [14:46:31]MH_I2C_Read... [14:46:31]Read from MH i2c: E2 03 00 [14:46:31]MH_I2C_Read... [14:46:31]Read from MH i2c: E2 03 00 13 01 00 90 00 88 [14:46:31]RAPDU: 90 00 [14:46:31]wFMCommunicate OK [14:46:31]SAM_PROTO_ClearQueue done [14:46:31]KKMCreateOFDPacket [14:46:31]OFDProtocolAddRootSTLVToBuf [14:46:31]FM_MakeSignedData [14:46:31]FM_MakeSignedData [14:46:31]SAM_PROTO_SignData [14:46:31]wFMCommunicate request_size=4 [14:46:31]MH_SAM_APDU [14:46:31]CAPDU: 80 0D 01 02 [14:46:31]Write to MH i2c: E2 08 00 14 01 80 0D 01 02 00 00 00 00 8E [14:46:31]Write i2c OK [14:46:31]MH_I2C_Read... [14:46:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:31]Read from MH i2c: E2 [14:46:31]MH_I2C_Read... [14:46:31]Read from MH i2c: E2 03 00 [14:46:31]MH_I2C_Read... [14:46:31]Read from MH i2c: E2 03 00 14 01 00 90 00 89 [14:46:31]RAPDU: 90 00 [14:46:31]wFMCommunicate OK [14:46:31]wFMCommunicate request_size=255 [14:46:31]MH_SAM_APDU [14:46:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 0F 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 61 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 70 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 6E 00 00 00 F4 03 04 00 C7 26 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 36 2C 01 00 35 04 06 00 C6 0B 56 C1 [14:46:31]Write to MH i2c: E2 02 01 15 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 0F 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 61 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 70 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 6E 00 00 00 F4 03 04 00 C7 26 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 36 2C 01 00 35 04 06 00 C6 0B 56 C1 00 00 B3 [14:46:31]Write i2c OK [14:46:31]MH_I2C_Read... [14:46:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:32]Read from MH i2c: E2 [14:46:32]MH_I2C_Read... [14:46:32]Read from MH i2c: E2 03 00 [14:46:32]MH_I2C_Read... [14:46:32]Read from MH i2c: E2 03 00 15 01 00 90 00 8A [14:46:32]RAPDU: 90 00 [14:46:32]wFMCommunicate OK [14:46:32]wFMCommunicate request_size=7 [14:46:32]MH_SAM_APDU [14:46:32]CAPDU: 80 0D 02 02 02 40 2B [14:46:32]Write to MH i2c: E2 0A 00 16 01 80 0D 02 02 02 00 40 2B 00 00 00 [14:46:32]Write i2c OK [14:46:32]MH_I2C_Read... [14:46:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:32]Read from MH i2c: E2 [14:46:32]MH_I2C_Read... [14:46:32]Read from MH i2c: E2 03 00 [14:46:32]MH_I2C_Read... [14:46:32]Read from MH i2c: E2 03 00 16 01 00 90 00 8B [14:46:32]RAPDU: 90 00 [14:46:32]wFMCommunicate OK [14:46:32]wFMCommunicate request_size=4 [14:46:32]MH_SAM_APDU [14:46:32]CAPDU: 80 0D 03 02 [14:46:32]Write to MH i2c: E2 08 00 17 01 80 0D 03 02 00 00 00 00 93 [14:46:32]Write i2c OK [14:46:32]MH_I2C_Read... [14:46:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:46:32]Read from MH i2c: E2 [14:46:32]MH_I2C_Read... [14:46:32]Read from MH i2c: E2 0B 00 [14:46:32]MH_I2C_Read... [14:46:32]Read from MH i2c: E2 0B 00 17 01 00 63 49 BE AE C5 D2 16 DF 90 00 38 [14:46:32]RAPDU: 63 49 BE AE C5 D2 16 DF 90 00 [14:46:32]wFMCommunicate OK [14:46:32]SAM_PROTO_SignData done [14:46:32]FM_MakeSignedData done [14:46:32]CreateOFDProtocolMessage [14:46:32]wFMCommunicate request_size=4 [14:46:32]MH_SAM_APDU [14:46:32]CAPDU: 80 11 00 00 [14:46:32]Write to MH i2c: E2 08 00 18 01 80 11 00 00 00 00 00 00 93 [14:46:32]Write i2c OK [14:46:32]MH_I2C_Read... [14:46:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:32]Read from MH i2c: E2 [14:46:32]MH_I2C_Read... [14:46:32]Read from MH i2c: E2 17 00 [14:46:32]MH_I2C_Read... [14:46:32]Read from MH i2c: E2 17 00 18 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 E6 [14:46:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:46:32]wFMCommunicate OK [14:46:32]CreateOFDProtocolMessage done [14:46:32]OFDSenderStorePacket 76854 [14:46:32]StoreOFDPacket docnum=76854 [14:46:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 A1 FE 04 01 55 76 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 0F 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 61 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 70 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 6E 00 00 00 F4 03 04 00 C7 26 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 36 2C 01 00 35 04 06 00 C6 0B 56 C1 40 2B 63 49 BE AE C5 D2 16 DF [14:46:32]CheckFolder [14:46:32]dirname=/storage/ofd_packets [14:46:32]CheckFolder done [14:46:32]ProducePacketName [14:46:32]name=ofd_packets/00076854 [14:46:32]NVStorageSaveData ofd_packets/00076854 [14:46:32]File name is /storage/ofd_packets/00076854 [14:46:32]Write 298 bytes [14:46:32]NVStorageSaveData done [14:46:32]OFDSenderStorePacket done [14:46:32]KKMCreateOFDPacket done [14:46:32]NVStorageSaveData kkm_last_timestamp [14:46:32]File name is /storage/kkm_last_timestamp [14:46:32]Write 4 bytes [14:46:32]NVStorageSaveData done [14:46:32]ExternCall_PrintAddStr [14:46:32]wPrintStart [14:46:32]Write to MH i2c: 01 00 00 19 01 1A [14:46:32]Write i2c OK [14:46:32]MH_I2C_Read... [14:46:32]Read from MH i2c: 01 [14:46:32]MH_I2C_Read... [14:46:32]Read from MH i2c: 01 07 00 [14:46:32]MH_I2C_Read... [14:46:32]Read from MH i2c: 01 07 00 19 01 00 00 00 00 00 FF 0F 2F [14:46:32]RasterBufferAndPrint [14:46:32]line Счет N : (1)191393 [14:46:32]line ИНН: 02508201610067 [14:46:32]line Контрольно-Кассовый Чек [14:46:32]line ПРОДАЖА [14:46:32]line ТРК (МРК, ГНК) : 51 [14:46:32]line Товар: 2710194210 [14:46:32]line ДТ-К-5 [14:46:32]line 69.550 * 71.90 [14:46:32]line = 5000.65 [14:46:32]line НДС 12% НСП 1% [14:46:32]line > о реализуемом товаре [14:46:32]line ОКРУГЛЕНИЕ: -0.65 [14:46:32]line ИТОГО: 5000.00 [14:46:32]line Внесено: 5000.00 [14:46:32]line СДАЧА: 0.00 [14:46:32]line НСП 1% : 44.25 [14:46:32]line НДС 12% : 531.04 [14:46:32]line Наличными: 5000.00 [14:46:32]line Безнал.: 0.00 [14:46:32]line Место: АЗС № 106 "Партнер Нефть" [14:46:32]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [14:46:32]line СНО: Общий режим [14:46:32]line Чек 110 21.04.2024 14:46 [14:46:32]line Смена: 372 ФФД: 1.0 [14:46:32]line ЗНМ: 0300000141 [14:46:32]line РНМ: 0000000000091573 [14:46:32]line Версия ККМ: 001 [14:46:32]line [14:46:32]line Дисконтная программа [14:46:32]line ДТ [14:46:32]line номер 106 [14:46:32]line сэкономлено 69.55 сом [14:46:32]line ФМ: 0000000000874652 [14:46:32]line ФД: 76854 [14:46:32]line ФПД: 217752002445355 [14:46:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T144631&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76854&fm=217752002445355&tin=02508201610067®Number=0000000000091573&sum=500000 [14:46:32]OFD Sender: Processing packet 76854 [packets to send 129, broken 128] [14:46:32]ProducePacketName [14:46:32]name=ofd_packets/00076854 [14:46:32]OFD Sender: To server: pG, [14:46:32]CommunicateWithHost lk.salyk.kg:30040 [14:46:32]ConnectInit lk.salyk.kg [14:46:32]written 0, free lines is 4095 [14:46:32]Connected sock=10 [14:46:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 A1 FE 04 01 55 76 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 0F 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 61 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 70 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 6E 00 00 00 F4 03 04 00 C7 26 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 36 2C 01 00 35 04 06 00 C6 0B 56 C1 40 2B 63 49 BE AE C5 D2 16 DF [14:46:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 21 0F 47 00 AE 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 34 36 35 32 10 04 04 00 36 2C 01 00 F4 03 04 00 4C CE 24 66 B6 04 01 00 00 90 38 C5 CC 4C 5D D7 A2 [14:46:32]CommunicateWithHost err = 0 [14:46:32]CheckOFDResponse [14:46:32]1017 (14) - 77093643461234 [14:46:32]1041 (16) - 0000000000874652 [14:46:32]1040 (4) - 76854 [14:46:32]1012 (4) - 21.04.2024 08:29 [14:46:32]1206 (1) - 0 [14:46:32]OFD Sender: Remove packet 76854 [14:46:32]ProducePacketName [14:46:32]name=ofd_packets/00076854 [14:46:32]NVStorageDeleteData [14:46:33]Write to MH i2c: 01 00 00 48 01 49 [14:46:33]Write i2c OK [14:46:33]MH_I2C_Read... [14:46:33]Read from MH i2c: 01 [14:46:33]MH_I2C_Read... [14:46:33]Read from MH i2c: 01 07 00 [14:46:33]MH_I2C_Read... [14:46:33]Read from MH i2c: 01 07 00 48 01 00 00 00 00 00 8A 0C E6 [14:46:33]RasterBufferAndPrint [14:46:33]line [14:46:33]line [14:46:33]line [14:46:33]line [14:46:33]line [14:46:33]written 0, free lines is 3217 [14:46:33]MH_Cut [14:46:33]Write to MH i2c: D1 01 00 4F 01 01 22 [14:46:33]Write i2c OK [14:46:33]MH_I2C_Read... [14:46:33]Read from MH i2c: D1 [14:46:33]MH_I2C_Read... [14:46:33]Read from MH i2c: D1 01 00 [14:46:33]MH_I2C_Read... [14:46:33]Read from MH i2c: D1 01 00 4F 01 00 21 [14:46:33]Write to MH i2c: 01 00 00 50 01 51 [14:46:33]Write i2c OK [14:46:33]MH_I2C_Read... [14:46:33]OFD Sender: No OFD packet to send [14:46:33]*** Cut start [14:46:33]*** Partial cut [14:46:33]*** CUTSNS_PIN = 1 [14:46:33]*** CUTSNS_PIN = 0 [14:46:34]*** Brake cut motor [14:46:34]Read from MH i2c: 01 [14:46:34]MH_I2C_Read... [14:46:34]*** Stop cut motor [14:46:34]*** Cut end [14:46:34]Read from MH i2c: 01 07 00 [14:46:34]MH_I2C_Read... [14:46:34]Read from MH i2c: 01 07 00 50 01 00 00 00 00 00 FF 0F 66 [14:46:34]process_action close_receipt done [14:46:34]requested_data is exist [14:46:34]produce_requested_data [14:46:34]requested_item fm.sn is exist - process it [14:46:34]wFMCommunicate request_size=4 [14:46:34]MH_SAM_APDU [14:46:34]CAPDU: 80 11 00 00 [14:46:34]Write to MH i2c: E2 08 00 51 01 80 11 00 00 00 00 00 00 CC [14:46:34]Write i2c OK [14:46:34]MH_I2C_Read... [14:46:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:34]Read from MH i2c: E2 [14:46:34]MH_I2C_Read... [14:46:34]Read from MH i2c: E2 17 00 [14:46:34]MH_I2C_Read... [14:46:34]Read from MH i2c: E2 17 00 51 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 1F [14:46:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:46:34]wFMCommunicate OK [14:46:34]requested_item fd.num is exist - process it [14:46:34]SAM_PROTO_GetFieldsCounters [14:46:34]wFMCommunicate request_size=4 [14:46:34]MH_SAM_APDU [14:46:34]CAPDU: 80 13 00 00 [14:46:34]Write to MH i2c: E2 08 00 52 01 80 13 00 00 00 00 00 00 CF [14:46:34]Write i2c OK [14:46:34]MH_I2C_Read... [14:46:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:34]Read from MH i2c: E2 [14:46:34]MH_I2C_Read... [14:46:34]Read from MH i2c: E2 62 00 [14:46:34]MH_I2C_Read... [14:46:34]Read from MH i2c: E2 62 00 52 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 36 2C 01 00 0E 04 04 00 74 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 12 [14:46:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 36 2C 01 00 0E 04 04 00 74 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 [14:46:34]wFMCommunicate OK [14:46:34]SAM_PROTO_GetFieldsCounters done [14:46:34]requested_item shift.num is exist - process it [14:46:34]requested_item shift.opened is exist - process it [14:46:34]req_shift_opened [14:46:34]FM_GetShiftState [14:46:34]SAM_PROTO_GetShiftState [14:46:34]wFMCommunicate request_size=4 [14:46:34]MH_SAM_APDU [14:46:34]CAPDU: 80 13 01 00 [14:46:34]Write to MH i2c: E2 08 00 53 01 80 13 01 00 00 00 00 00 D1 [14:46:34]Write i2c OK [14:46:34]MH_I2C_Read... [14:46:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:34]Read from MH i2c: E2 [14:46:34]MH_I2C_Read... [14:46:34]Read from MH i2c: E2 0E 00 [14:46:34]MH_I2C_Read... [14:46:34]Read from MH i2c: E2 0E 00 53 01 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 18 [14:46:34]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [14:46:34]wFMCommunicate OK [14:46:34]SAM_PROTO_GetShiftState done [14:46:34]FM_GetShiftState done [14:46:34]req_shift_opened done [14:46:34]requested_item shift.open_date is exist - process it [14:46:34]req_shift_open_date [14:46:34]req_shift_open_date done [14:46:34]produce_requested_data done [14:46:34]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76854,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [14:46:34]process_action_free close_receipt [14:46:34]json_value_free [14:46:34]json_value_free done [14:46:34]process_json_proto returns [14:46:34]Send response to host [14:46:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76854,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [14:46:34]free response buf [14:46:34]execute_script done [14:46:34]execute_script returns [14:46:34]free content buf [14:46:34]Sock 7.Close socket [14:46:34]Sock 7.Thread stoped [14:46:38]OFD Sender: No OFD packet to send [14:46:43]OFD Sender: No OFD packet to send [14:46:48]OFD Sender: No OFD packet to send [14:46:53]OFD Sender: No OFD packet to send [14:46:58]OFD Sender: No OFD packet to send [14:47:03]OFD Sender: No OFD packet to send [14:47:08]OFD Sender: No OFD packet to send [14:47:13]OFD Sender: No OFD packet to send [14:47:18]OFD Sender: No OFD packet to send [14:47:23]OFD Sender: No OFD packet to send [14:47:28]OFD Sender: No OFD packet to send [14:47:33]OFD Sender: No OFD packet to send [14:47:38]OFD Sender: No OFD packet to send [14:47:43]OFD Sender: No OFD packet to send [14:47:48]OFD Sender: No OFD packet to send [14:47:53]OFD Sender: No OFD packet to send [14:47:58]OFD Sender: No OFD packet to send [14:48:03]OFD Sender: No OFD packet to send [14:48:08]OFD Sender: No OFD packet to send [14:48:13]OFD Sender: No OFD packet to send [14:48:18]OFD Sender: No OFD packet to send [14:48:23]OFD Sender: No OFD packet to send [14:48:28]OFD Sender: No OFD packet to send [14:48:33]OFD Sender: No OFD packet to send [14:48:38]OFD Sender: No OFD packet to send [14:48:43]OFD Sender: No OFD packet to send [14:48:48]OFD Sender: No OFD packet to send [14:48:53]OFD Sender: No OFD packet to send [14:48:58]OFD Sender: No OFD packet to send [14:49:03]OFD Sender: No OFD packet to send [14:49:06]accept exits with 9 [14:49:06]New connection [14:49:06]New thread 3067460964 created [14:49:06]Thread 3067317604 joined [14:49:06]Waiting for new connection... [14:49:06] Sock 9.Parse request [14:49:06]Sock 9.Check first char [14:49:06]Sock 9.First char is OK [14:49:06]request: POST /json_proto HTTP/1.0 [14:49:06]Method: POST [14:49:06]URL: /json_proto [14:49:06]Method is POST - this is cgi request [14:49:06]url: /json_proto [14:49:06]query_string will be loaded in cgi processing [14:49:06]execute_cgi json_proto POST (null) [14:49:06]execute_cgi path=json_proto method=POST [14:49:06]POST find Content-Length [14:49:06]Host: 172.17.62.5:8080 [14:49:06]Content-Length: 808 [14:49:06]Content-Type: application/json [14:49:06] [14:49:06]POST finish read [14:49:06]Found Content-Length = 808 [14:49:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 23.300, "sum" : 1500.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:06]execute_script... [14:49: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)191394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 23.300, "sum" : 1500.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:06]POST & json_proto [14:49:06]process_json_proto [14:49:06]json parsed OK: [14:49:06]protocol is kg_v1.0 [14:49:06]action value=close_receipt [14:49:06]process_action close_receipt [14:49:06]cmd_close_receipt [14:49:06]MH_GetDate [14:49:06]Write to MH i2c: F0 00 00 54 01 44 [14:49:06]Write i2c OK [14:49:06]MH_I2C_Read... [14:49:06]Read from MH i2c: F0 [14:49:06]MH_I2C_Read... [14:49:06]Read from MH i2c: F0 09 00 [14:49:06]MH_I2C_Read... [14:49:06]Read from MH i2c: F0 09 00 54 01 00 63 27 25 66 F4 E9 65 64 08 [14:49:06]GetLastDocTimeStamp 1713710791 [14:49:06]current date 1713710947 [14:49:06]FM_GetShiftState [14:49:06]SAM_PROTO_GetShiftState [14:49:06]wFMCommunicate request_size=4 [14:49:06]MH_SAM_APDU [14:49:06]CAPDU: 80 13 01 00 [14:49:06]Write to MH i2c: E2 08 00 55 01 80 13 01 00 00 00 00 00 D3 [14:49:06]Write i2c OK [14:49:06]MH_I2C_Read... [14:49:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:06]Read from MH i2c: E2 [14:49:06]MH_I2C_Read... [14:49:06]Read from MH i2c: E2 0E 00 [14:49:06]MH_I2C_Read... [14:49:06]Read from MH i2c: E2 0E 00 55 01 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 1A [14:49:06]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [14:49:06]wFMCommunicate OK [14:49:06]SAM_PROTO_GetShiftState done [14:49:06]FM_GetShiftState done [14:49:06]opened in 1713658965 [14:49:06]opened+sec_in_day 1713745365 [14:49:06]quantity*price = 150052 [14:49:06]sum+1 = 150053 [14:49:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.52 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.52 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 111 21.04.2024 14:49 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 76855 ФПД: 41396322646672 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T144907&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76855&fm=41396322646672&tin=02508201610067®Number=0000000000091573&sum=150052 [14:49:07]StoreToDocumentArchive [14:49:07]shift 372 fd 76855 [14:49:07]save to /storage/0372/doc_00076855 [14:49:07]save last doc name /storage/0372/doc_00076855 to /storage/kkm_last_doc_name [14:49:07]save OK [14:49:07]Clear old archive folders... [14:49:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:49:07]tlvbuf is 017E3550 [14:49:07]SAM_PROTO_ClearQueue [14:49:07]wFMCommunicate request_size=4 [14:49:07]MH_SAM_APDU [14:49:07]CAPDU: 80 09 00 00 [14:49:07]Write to MH i2c: E2 08 00 62 01 80 09 00 00 00 00 00 00 D5 [14:49:07]Write i2c OK [14:49:07]MH_I2C_Read... [14:49:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:49:07]Read from MH i2c: E2 [14:49:07]MH_I2C_Read... [14:49:07]Read from MH i2c: E2 03 00 [14:49:07]MH_I2C_Read... [14:49:07]Read from MH i2c: E2 03 00 62 01 00 90 00 D7 [14:49:07]RAPDU: 90 00 [14:49:07]wFMCommunicate OK [14:49:07]SAM_PROTO_ClearQueue done [14:49:07]KKMCreateOFDPacket [14:49:07]OFDProtocolAddRootSTLVToBuf [14:49:07]FM_MakeSignedData [14:49:07]FM_MakeSignedData [14:49:07]SAM_PROTO_SignData [14:49:07]wFMCommunicate request_size=4 [14:49:07]MH_SAM_APDU [14:49:07]CAPDU: 80 0D 01 02 [14:49:07]Write to MH i2c: E2 08 00 63 01 80 0D 01 02 00 00 00 00 DD [14:49:07]Write i2c OK [14:49:07]MH_I2C_Read... [14:49:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:49:07]Read from MH i2c: E2 [14:49:07]MH_I2C_Read... [14:49:07]Read from MH i2c: E2 03 00 [14:49:07]MH_I2C_Read... [14:49:07]Read from MH i2c: E2 03 00 63 01 00 90 00 D8 [14:49:07]RAPDU: 90 00 [14:49:07]wFMCommunicate OK [14:49:07]wFMCommunicate request_size=255 [14:49:07]MH_SAM_APDU [14:49: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 04 5B 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 24 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 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 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 63 27 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 37 2C 01 00 35 04 06 00 25 [14:49:07]Write to MH i2c: E2 02 01 64 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 04 5B 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 24 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 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 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 63 27 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 37 2C 01 00 35 04 06 00 25 00 00 0B [14:49:07]Write i2c OK [14:49:07]MH_I2C_Read... [14:49:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:08]Read from MH i2c: E2 [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: E2 03 00 [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: E2 03 00 64 01 00 90 00 D9 [14:49:08]RAPDU: 90 00 [14:49:08]wFMCommunicate OK [14:49:08]wFMCommunicate request_size=10 [14:49:08]MH_SAM_APDU [14:49:08]CAPDU: 80 0D 02 02 05 A6 55 1B 3A 90 [14:49:08]Write to MH i2c: E2 0D 00 65 01 80 0D 02 02 05 00 A6 55 1B 3A 90 00 00 CA [14:49:08]Write i2c OK [14:49:08]MH_I2C_Read... [14:49:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:08]Read from MH i2c: E2 [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: E2 03 00 [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: E2 03 00 65 01 00 90 00 DA [14:49:08]RAPDU: 90 00 [14:49:08]wFMCommunicate OK [14:49:08]wFMCommunicate request_size=4 [14:49:08]MH_SAM_APDU [14:49:08]CAPDU: 80 0D 03 02 [14:49:08]Write to MH i2c: E2 08 00 66 01 80 0D 03 02 00 00 00 00 E2 [14:49:08]Write i2c OK [14:49:08]MH_I2C_Read... [14:49:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:49:08]Read from MH i2c: E2 [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: E2 0B 00 [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: E2 0B 00 66 01 00 3C C5 11 ED EC 65 E0 05 90 00 18 [14:49:08]RAPDU: 3C C5 11 ED EC 65 E0 05 90 00 [14:49:08]wFMCommunicate OK [14:49:08]SAM_PROTO_SignData done [14:49:08]FM_MakeSignedData done [14:49:08]CreateOFDProtocolMessage [14:49:08]wFMCommunicate request_size=4 [14:49:08]MH_SAM_APDU [14:49:08]CAPDU: 80 11 00 00 [14:49:08]Write to MH i2c: E2 08 00 67 01 80 11 00 00 00 00 00 00 E2 [14:49:08]Write i2c OK [14:49:08]MH_I2C_Read... [14:49:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:08]Read from MH i2c: E2 [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: E2 17 00 [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: E2 17 00 67 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 35 [14:49:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:49:08]wFMCommunicate OK [14:49:08]CreateOFDProtocolMessage done [14:49:08]OFDSenderStorePacket 76855 [14:49:08]StoreOFDPacket docnum=76855 [14:49:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 DE EB 07 01 7E CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 04 5B 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 24 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 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 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 63 27 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 37 2C 01 00 35 04 06 00 25 A6 55 1B 3A 90 3C C5 11 ED EC 65 E0 05 [14:49:08]CheckFolder [14:49:08]dirname=/storage/ofd_packets [14:49:08]CheckFolder done [14:49:08]ProducePacketName [14:49:08]name=ofd_packets/00076855 [14:49:08]NVStorageSaveData ofd_packets/00076855 [14:49:08]File name is /storage/ofd_packets/00076855 [14:49:08]Write 301 bytes [14:49:08]NVStorageSaveData done [14:49:08]OFDSenderStorePacket done [14:49:08]KKMCreateOFDPacket done [14:49:08]NVStorageSaveData kkm_last_timestamp [14:49:08]File name is /storage/kkm_last_timestamp [14:49:08]Write 4 bytes [14:49:08]NVStorageSaveData done [14:49:08]ExternCall_PrintAddStr [14:49:08]wPrintStart [14:49:08]Write to MH i2c: 01 00 00 68 01 69 [14:49:08]Write i2c OK [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: 01 [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: 01 07 00 [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: 01 07 00 68 01 00 00 00 00 00 FF 0F 7E [14:49:08]RasterBufferAndPrint [14:49:08]line Счет N : (1)191394 [14:49:08]line ИНН: 02508201610067 [14:49:08]line Контрольно-Кассовый Чек [14:49:08]line ПРОДАЖА [14:49:08]line ТРК (МРК, ГНК) : 43 [14:49:08]line Товар: 2710124130 [14:49:08]line Аи-92-К-5 [14:49:08]line 23.300 * 64.40 [14:49:08]line = 1500.52 [14:49:08]line НДС 12% НСП 1% [14:49:08]line > о реализуемом товаре [14:49:08]line ИТОГО: 1500.52 [14:49:08]line НСП 1% : 13.28 [14:49:08]line НДС 12% : 159.35 [14:49:08]line Наличными: 0.00 [14:49:08]line Безнал.: 1500.52 [14:49:08]line Место: АЗС № 106 "Партнер Нефть" [14:49:08]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [14:49:08]line СНО: Общий режим [14:49:08]line Чек 111 21.04.2024 14:49 [14:49:08]line Смена: 372 ФФД: 1.0 [14:49:08]line ЗНМ: 0300000141 [14:49:08]line РНМ: 0000000000091573 [14:49:08]line Версия ККМ: 001 [14:49:08]line Платежная система: О! деньги [14:49:08]line ФМ: 0000000000874652 [14:49:08]line ФД: 76855 [14:49:08]line ФПД: 41396322646672 [14:49:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T144907&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76855&fm=41396322646672&tin=02508201610067®Number=0000000000091573&sum=150052 [14:49:08]OFD Sender: Processing packet 76855 [packets to send 129, broken 128] [14:49:08]ProducePacketName [14:49:08]name=ofd_packets/00076855 [14:49:08]OFD Sender: To server: pG, [14:49:08]CommunicateWithHost lk.salyk.kg:30040 [14:49:08]ConnectInit lk.salyk.kg [14:49:08]written 0, free lines is 4095 [14:49:08]Connected sock=10 [14:49:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 DE EB 07 01 7E CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 04 5B 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 24 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 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 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 63 27 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 37 2C 01 00 35 04 06 00 25 A6 55 1B 3A 90 3C C5 11 ED EC 65 E0 05 [14:49:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 A8 5D 47 00 E9 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 34 36 35 32 10 04 04 00 37 2C 01 00 F4 03 04 00 E8 CE 24 66 B6 04 01 00 00 46 62 DD F7 C7 17 9C 04 [14:49:08]CommunicateWithHost err = 0 [14:49:08]CheckOFDResponse [14:49:08]1017 (14) - 77093643461234 [14:49:08]1041 (16) - 0000000000874652 [14:49:08]1040 (4) - 76855 [14:49:08]1012 (4) - 21.04.2024 08:31 [14:49:08]1206 (1) - 0 [14:49:08]OFD Sender: Remove packet 76855 [14:49:08]ProducePacketName [14:49:08]name=ofd_packets/00076855 [14:49:08]NVStorageDeleteData [14:49:09]Write to MH i2c: 01 00 00 91 01 92 [14:49:09]Write i2c OK [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: 01 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: 01 07 00 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: 01 07 00 91 01 00 00 00 00 00 FC 0C A1 [14:49:09]RasterBufferAndPrint [14:49:09]line [14:49:09]line [14:49:09]line [14:49:09]line [14:49:09]line [14:49:09]written 0, free lines is 3330 [14:49:09]MH_Cut [14:49:09]Write to MH i2c: D1 01 00 98 01 01 6B [14:49:09]Write i2c OK [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: D1 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: D1 01 00 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: D1 01 00 98 01 00 6A [14:49:09]Write to MH i2c: 01 00 00 99 01 9A [14:49:09]Write i2c OK [14:49:09]MH_I2C_Read... [14:49:09]OFD Sender: No OFD packet to send [14:49:09]*** Cut start [14:49:09]*** Partial cut [14:49:09]*** CUTSNS_PIN = 1 [14:49:09]*** CUTSNS_PIN = 0 [14:49:10]*** Brake cut motor [14:49:10]Read from MH i2c: 01 [14:49:10]MH_I2C_Read... [14:49:10]*** Stop cut motor [14:49:10]*** Cut end [14:49:10]Read from MH i2c: 01 07 00 [14:49:10]MH_I2C_Read... [14:49:10]Read from MH i2c: 01 07 00 99 01 00 00 00 00 00 FF 0F AF [14:49:10]process_action close_receipt done [14:49:10]requested_data is exist [14:49:10]produce_requested_data [14:49:10]requested_item fm.sn is exist - process it [14:49:10]wFMCommunicate request_size=4 [14:49:10]MH_SAM_APDU [14:49:10]CAPDU: 80 11 00 00 [14:49:10]Write to MH i2c: E2 08 00 9A 01 80 11 00 00 00 00 00 00 15 [14:49:10]Write i2c OK [14:49:10]MH_I2C_Read... [14:49:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:10]Read from MH i2c: E2 [14:49:10]MH_I2C_Read... [14:49:10]Read from MH i2c: E2 17 00 [14:49:10]MH_I2C_Read... [14:49:10]Read from MH i2c: E2 17 00 9A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 68 [14:49:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:49:10]wFMCommunicate OK [14:49:10]requested_item fd.num is exist - process it [14:49:10]SAM_PROTO_GetFieldsCounters [14:49:10]wFMCommunicate request_size=4 [14:49:10]MH_SAM_APDU [14:49:10]CAPDU: 80 13 00 00 [14:49:10]Write to MH i2c: E2 08 00 9B 01 80 13 00 00 00 00 00 00 18 [14:49:10]Write i2c OK [14:49:10]MH_I2C_Read... [14:49:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:10]Read from MH i2c: E2 [14:49:10]MH_I2C_Read... [14:49:10]Read from MH i2c: E2 62 00 [14:49:10]MH_I2C_Read... [14:49:10]Read from MH i2c: E2 62 00 9B 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 37 2C 01 00 0E 04 04 00 74 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 5F [14:49: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 37 2C 01 00 0E 04 04 00 74 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 [14:49:10]wFMCommunicate OK [14:49:10]SAM_PROTO_GetFieldsCounters done [14:49:10]requested_item shift.num is exist - process it [14:49:10]requested_item shift.opened is exist - process it [14:49:10]req_shift_opened [14:49:10]FM_GetShiftState [14:49:10]SAM_PROTO_GetShiftState [14:49:10]wFMCommunicate request_size=4 [14:49:10]MH_SAM_APDU [14:49:10]CAPDU: 80 13 01 00 [14:49:10]Write to MH i2c: E2 08 00 9C 01 80 13 01 00 00 00 00 00 1A [14:49:10]Write i2c OK [14:49:10]MH_I2C_Read... [14:49:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:10]Read from MH i2c: E2 [14:49:10]MH_I2C_Read... [14:49:10]Read from MH i2c: E2 0E 00 [14:49:10]MH_I2C_Read... [14:49:10]Read from MH i2c: E2 0E 00 9C 01 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 61 [14:49:10]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [14:49:10]wFMCommunicate OK [14:49:10]SAM_PROTO_GetShiftState done [14:49:10]FM_GetShiftState done [14:49:10]req_shift_opened done [14:49:10]requested_item shift.open_date is exist - process it [14:49:10]req_shift_open_date [14:49:10]req_shift_open_date done [14:49:10]produce_requested_data done [14:49:10]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76855,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [14:49:10]process_action_free close_receipt [14:49:10]json_value_free [14:49:10]json_value_free done [14:49:10]process_json_proto returns [14:49:10]Send response to host [14:49:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76855,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [14:49:10]free response buf [14:49:10]execute_script done [14:49:10]execute_script returns [14:49:10]free content buf [14:49:10]Sock 9.Close socket [14:49:10]Sock 9.Thread stoped [14:49:14]OFD Sender: No OFD packet to send [14:49:19]OFD Sender: No OFD packet to send [14:49:24]OFD Sender: No OFD packet to send [14:49:29]OFD Sender: No OFD packet to send [14:49:34]OFD Sender: No OFD packet to send [14:49:39]OFD Sender: No OFD packet to send [14:49:44]OFD Sender: No OFD packet to send [14:49:49]OFD Sender: No OFD packet to send [14:49:54]OFD Sender: No OFD packet to send [14:49:59]OFD Sender: No OFD packet to send [14:50:04]OFD Sender: No OFD packet to send [14:50:09]OFD Sender: No OFD packet to send [14:50:14]OFD Sender: No OFD packet to send [14:50:19]OFD Sender: No OFD packet to send [14:50:24]OFD Sender: No OFD packet to send [14:50:29]OFD Sender: No OFD packet to send [14:50:34]OFD Sender: No OFD packet to send [14:50:39]OFD Sender: No OFD packet to send [14:50:44]OFD Sender: No OFD packet to send [14:50:49]OFD Sender: No OFD packet to send [14:50:54]OFD Sender: No OFD packet to send [14:50:59]OFD Sender: No OFD packet to send [14:51:04]OFD Sender: No OFD packet to send [14:51:09]OFD Sender: No OFD packet to send [14:51:14]OFD Sender: No OFD packet to send [14:51:19]OFD Sender: No OFD packet to send [14:51:24]OFD Sender: No OFD packet to send [14:51:29]OFD Sender: No OFD packet to send [14:51:34]OFD Sender: No OFD packet to send [14:51:38]accept exits with 7 [14:51:38]New connection [14:51:38]New thread 3067317604 created [14:51:38]Thread 3067460964 joined [14:51:38]Waiting for new connection... [14:51:38] Sock 7.Parse request [14:51:38]Sock 7.Check first char [14:51:38]Sock 7.First char is OK [14:51:38]request: POST /json_proto HTTP/1.0 [14:51:38]Method: POST [14:51:38]URL: /json_proto [14:51:38]Method is POST - this is cgi request [14:51:38]url: /json_proto [14:51:38]query_string will be loaded in cgi processing [14:51:38]execute_cgi json_proto POST (null) [14:51:38]execute_cgi path=json_proto method=POST [14:51:38]POST find Content-Length [14:51:38]Host: 172.17.62.5:8080 [14:51:38]Content-Length: 677 [14:51:38]Content-Type: application/json [14:51:38] [14:51:38]POST finish read [14:51:38]Found Content-Length = 677 [14:51:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 5.280, "sum" : 340.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:38]execute_script... [14:51: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)191396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 5.280, "sum" : 340.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:38]POST & json_proto [14:51:38]process_json_proto [14:51:38]json parsed OK: [14:51:38]protocol is kg_v1.0 [14:51:38]action value=close_receipt [14:51:38]process_action close_receipt [14:51:38]cmd_close_receipt [14:51:38]MH_GetDate [14:51:38]Write to MH i2c: F0 00 00 9D 01 8D [14:51:38]Write i2c OK [14:51:38]MH_I2C_Read... [14:51:38]Read from MH i2c: F0 [14:51:38]MH_I2C_Read... [14:51:38]Read from MH i2c: F0 09 00 [14:51:38]MH_I2C_Read... [14:51:38]Read from MH i2c: F0 09 00 9D 01 00 FB 27 25 66 F4 E9 65 64 E9 [14:51:38]GetLastDocTimeStamp 1713710947 [14:51:38]current date 1713711099 [14:51:38]FM_GetShiftState [14:51:38]SAM_PROTO_GetShiftState [14:51:38]wFMCommunicate request_size=4 [14:51:38]MH_SAM_APDU [14:51:38]CAPDU: 80 13 01 00 [14:51:38]Write to MH i2c: E2 08 00 9E 01 80 13 01 00 00 00 00 00 1C [14:51:38]Write i2c OK [14:51:38]MH_I2C_Read... [14:51:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:38]Read from MH i2c: E2 [14:51:38]MH_I2C_Read... [14:51:38]Read from MH i2c: E2 0E 00 [14:51:38]MH_I2C_Read... [14:51:38]Read from MH i2c: E2 0E 00 9E 01 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 63 [14:51:38]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [14:51:38]wFMCommunicate OK [14:51:38]SAM_PROTO_GetShiftState done [14:51:38]FM_GetShiftState done [14:51:38]opened in 1713658965 [14:51:38]opened+sec_in_day 1713745365 [14:51:38]quantity*price = 34003 [14:51:38]sum+1 = 34004 [14:51:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.11 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 112 21.04.2024 14:51 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76856 ФПД: 78963986057686 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T145139&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76856&fm=78963986057686&tin=02508201610067®Number=0000000000091573&sum=34000 [14:51:39]StoreToDocumentArchive [14:51:39]shift 372 fd 76856 [14:51:39]save to /storage/0372/doc_00076856 [14:51:39]save last doc name /storage/0372/doc_00076856 to /storage/kkm_last_doc_name [14:51:39]save OK [14:51:39]Clear old archive folders... [14:51:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:51:39]tlvbuf is 017E4E60 [14:51:39]SAM_PROTO_ClearQueue [14:51:39]wFMCommunicate request_size=4 [14:51:39]MH_SAM_APDU [14:51:39]CAPDU: 80 09 00 00 [14:51:39]Write to MH i2c: E2 08 00 AB 01 80 09 00 00 00 00 00 00 1E [14:51:39]Write i2c OK [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: E2 [14:51:39]MH_I2C_Read... [14:51:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:51:39]Read from MH i2c: E2 03 00 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: E2 03 00 AB 01 00 90 00 20 [14:51:39]RAPDU: 90 00 [14:51:39]wFMCommunicate OK [14:51:39]SAM_PROTO_ClearQueue done [14:51:39]KKMCreateOFDPacket [14:51:39]OFDProtocolAddRootSTLVToBuf [14:51:39]FM_MakeSignedData [14:51:39]FM_MakeSignedData [14:51:39]SAM_PROTO_SignData [14:51:39]wFMCommunicate request_size=4 [14:51:39]MH_SAM_APDU [14:51:39]CAPDU: 80 0D 01 02 [14:51:39]Write to MH i2c: E2 08 00 AC 01 80 0D 01 02 00 00 00 00 26 [14:51:39]Write i2c OK [14:51:39]MH_I2C_Read... [14:51:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:51:39]Read from MH i2c: E2 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: E2 03 00 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: E2 03 00 AC 01 00 90 00 21 [14:51:39]RAPDU: 90 00 [14:51:39]wFMCommunicate OK [14:51:39]wFMCommunicate request_size=255 [14:51:39]MH_SAM_APDU [14:51: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 A0 14 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 D3 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 FB 27 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 38 2C 01 00 35 04 06 00 47 [14:51:39]Write to MH i2c: E2 02 01 AD 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 A0 14 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 D3 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 FB 27 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 38 2C 01 00 35 04 06 00 47 00 00 B9 [14:51:39]Write i2c OK [14:51:39]MH_I2C_Read... [14:51:39]OFD Sender: No OFD packet to send [14:51:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:39]Read from MH i2c: E2 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: E2 03 00 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: E2 03 00 AD 01 00 90 00 22 [14:51:39]RAPDU: 90 00 [14:51:39]wFMCommunicate OK [14:51:39]wFMCommunicate request_size=10 [14:51:39]MH_SAM_APDU [14:51:39]CAPDU: 80 0D 02 02 05 D1 3C 56 C9 D6 [14:51:39]Write to MH i2c: E2 0D 00 AE 01 80 0D 02 02 05 00 D1 3C 56 C9 D6 00 00 35 [14:51:39]Write i2c OK [14:51:39]MH_I2C_Read... [14:51:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:39]Read from MH i2c: E2 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: E2 03 00 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: E2 03 00 AE 01 00 90 00 23 [14:51:39]RAPDU: 90 00 [14:51:39]wFMCommunicate OK [14:51:39]wFMCommunicate request_size=4 [14:51:39]MH_SAM_APDU [14:51:39]CAPDU: 80 0D 03 02 [14:51:39]Write to MH i2c: E2 08 00 AF 01 80 0D 03 02 00 00 00 00 2B [14:51:39]Write i2c OK [14:51:39]MH_I2C_Read... [14:51:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:51:39]Read from MH i2c: E2 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: E2 0B 00 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: E2 0B 00 AF 01 00 00 55 70 98 C4 A4 5C AA 90 00 F7 [14:51:39]RAPDU: 00 55 70 98 C4 A4 5C AA 90 00 [14:51:39]wFMCommunicate OK [14:51:39]SAM_PROTO_SignData done [14:51:39]FM_MakeSignedData done [14:51:39]CreateOFDProtocolMessage [14:51:39]wFMCommunicate request_size=4 [14:51:39]MH_SAM_APDU [14:51:39]CAPDU: 80 11 00 00 [14:51:39]Write to MH i2c: E2 08 00 B0 01 80 11 00 00 00 00 00 00 2B [14:51:39]Write i2c OK [14:51:39]MH_I2C_Read... [14:51:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:39]Read from MH i2c: E2 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: E2 17 00 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: E2 17 00 B0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 7E [14:51:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:51:39]wFMCommunicate OK [14:51:39]CreateOFDProtocolMessage done [14:51:39]OFDSenderStorePacket 76856 [14:51:39]StoreOFDPacket docnum=76856 [14:51:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 E1 BB 07 01 07 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 D3 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 FB 27 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 38 2C 01 00 35 04 06 00 47 D1 3C 56 C9 D6 00 55 70 98 C4 A4 5C AA [14:51:39]CheckFolder [14:51:39]dirname=/storage/ofd_packets [14:51:39]CheckFolder done [14:51:39]ProducePacketName [14:51:39]name=ofd_packets/00076856 [14:51:39]NVStorageSaveData ofd_packets/00076856 [14:51:39]File name is /storage/ofd_packets/00076856 [14:51:39]Write 301 bytes [14:51:39]NVStorageSaveData done [14:51:39]OFDSenderStorePacket done [14:51:39]KKMCreateOFDPacket done [14:51:39]NVStorageSaveData kkm_last_timestamp [14:51:39]File name is /storage/kkm_last_timestamp [14:51:39]Write 4 bytes [14:51:39]NVStorageSaveData done [14:51:39]ExternCall_PrintAddStr [14:51:39]wPrintStart [14:51:39]Write to MH i2c: 01 00 00 B1 01 B2 [14:51:39]Write i2c OK [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: 01 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: 01 07 00 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: 01 07 00 B1 01 00 00 00 00 00 FF 0F C7 [14:51:39]RasterBufferAndPrint [14:51:39]line Счет N : (1)191396 [14:51:39]line ИНН: 02508201610067 [14:51:39]line Контрольно-Кассовый Чек [14:51:39]line ПРОДАЖА [14:51:39]line ТРК (МРК, ГНК) : 33 [14:51:39]line Товар: 2710124130 [14:51:39]line Аи-92-К-5 [14:51:39]line 5.280 * 64.40 [14:51:39]line = 340.03 [14:51:39]line НДС 12% НСП 1% [14:51:39]line > о реализуемом товаре [14:51:39]line ОКРУГЛЕНИЕ: -0.03 [14:51:39]line ИТОГО: 340.00 [14:51:39]line Внесено: 340.00 [14:51:39]line СДАЧА: 0.00 [14:51:39]line НСП 1% : 3.01 [14:51:39]line НДС 12% : 36.11 [14:51:39]line Наличными: 340.00 [14:51:39]line Безнал.: 0.00 [14:51:39]line Место: АЗС № 106 "Партнер Нефть" [14:51:39]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [14:51:39]line СНО: Общий режим [14:51:39]line Чек 112 21.04.2024 14:51 [14:51:39]line Смена: 372 ФФД: 1.0 [14:51:39]line ЗНМ: 0300000141 [14:51:39]line РНМ: 0000000000091573 [14:51:39]line Версия ККМ: 001 [14:51:39]line ФМ: 0000000000874652 [14:51:39]line ФД: 76856 [14:51:39]line ФПД: 78963986057686 [14:51:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T145139&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76856&fm=78963986057686&tin=02508201610067®Number=0000000000091573&sum=34000 [14:51:39]written 0, free lines is 4095 [14:51:39]OFD Sender: Processing packet 76856 [packets to send 129, broken 128] [14:51:39]ProducePacketName [14:51:39]name=ofd_packets/00076856 [14:51:39]OFD Sender: To server: pG, [14:51:39]CommunicateWithHost lk.salyk.kg:30040 [14:51:39]ConnectInit lk.salyk.kg [14:51:40]Connected sock=11 [14:51:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 E1 BB 07 01 07 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 D3 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 FB 27 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 38 2C 01 00 35 04 06 00 47 D1 3C 56 C9 D6 00 55 70 98 C4 A4 5C AA [14:51:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 04 1A 47 00 B6 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 38 2C 01 00 F4 03 04 00 80 CF 24 66 B6 04 01 00 00 41 15 33 50 B1 FE DF 8B [14:51:40]CommunicateWithHost err = 0 [14:51:40]CheckOFDResponse [14:51:40]1017 (14) - 77093643461234 [14:51:40]1041 (16) - 0000000000874652 [14:51:40]1040 (4) - 76856 [14:51:40]1012 (4) - 21.04.2024 08:34 [14:51:40]1206 (1) - 0 [14:51:40]OFD Sender: Remove packet 76856 [14:51:40]ProducePacketName [14:51:40]name=ofd_packets/00076856 [14:51:40]NVStorageDeleteData [14:51:40]Write to MH i2c: 01 00 00 DB 01 DC [14:51:40]Write i2c OK [14:51:40]MH_I2C_Read... [14:51:40]Read from MH i2c: 01 [14:51:40]MH_I2C_Read... [14:51:40]Read from MH i2c: 01 07 00 [14:51:40]MH_I2C_Read... [14:51:40]Read from MH i2c: 01 07 00 DB 01 00 00 00 00 00 F6 0C E5 [14:51:40]RasterBufferAndPrint [14:51:40]line [14:51:40]line [14:51:40]line [14:51:40]line [14:51:40]line [14:51:40]written 0, free lines is 3326 [14:51:40]MH_Cut [14:51:40]Write to MH i2c: D1 01 00 E2 01 01 B5 [14:51:40]Write i2c OK [14:51:40]MH_I2C_Read... [14:51:40]Read from MH i2c: D1 [14:51:40]MH_I2C_Read... [14:51:40]Read from MH i2c: D1 01 00 [14:51:40]MH_I2C_Read... [14:51:40]Read from MH i2c: D1 01 00 E2 01 00 B4 [14:51:40]Write to MH i2c: 01 00 00 E3 01 E4 [14:51:40]Write i2c OK [14:51:40]MH_I2C_Read... [14:51:40]OFD Sender: No OFD packet to send [14:51:41]*** Cut start [14:51:41]*** Partial cut [14:51:41]*** CUTSNS_PIN = 1 [14:51:41]*** CUTSNS_PIN = 0 [14:51:41]*** Brake cut motor [14:51:41]Read from MH i2c: 01 [14:51:41]MH_I2C_Read... [14:51:41]*** Stop cut motor [14:51:41]*** Cut end [14:51:41]Read from MH i2c: 01 07 00 [14:51:41]MH_I2C_Read... [14:51:41]Read from MH i2c: 01 07 00 E3 01 00 00 00 00 00 FF 0F F9 [14:51:41]process_action close_receipt done [14:51:41]requested_data is exist [14:51:41]produce_requested_data [14:51:41]requested_item fm.sn is exist - process it [14:51:41]wFMCommunicate request_size=4 [14:51:41]MH_SAM_APDU [14:51:41]CAPDU: 80 11 00 00 [14:51:41]Write to MH i2c: E2 08 00 E4 01 80 11 00 00 00 00 00 00 5F [14:51:41]Write i2c OK [14:51:41]MH_I2C_Read... [14:51:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:41]Read from MH i2c: E2 [14:51:41]MH_I2C_Read... [14:51:41]Read from MH i2c: E2 17 00 [14:51:41]MH_I2C_Read... [14:51:41]Read from MH i2c: E2 17 00 E4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 B2 [14:51:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:51:41]wFMCommunicate OK [14:51:41]requested_item fd.num is exist - process it [14:51:41]SAM_PROTO_GetFieldsCounters [14:51:41]wFMCommunicate request_size=4 [14:51:41]MH_SAM_APDU [14:51:41]CAPDU: 80 13 00 00 [14:51:41]Write to MH i2c: E2 08 00 E5 01 80 13 00 00 00 00 00 00 62 [14:51:41]Write i2c OK [14:51:41]MH_I2C_Read... [14:51:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:51:41]Read from MH i2c: E2 [14:51:41]MH_I2C_Read... [14:51:41]Read from MH i2c: E2 62 00 [14:51:41]MH_I2C_Read... [14:51:41]Read from MH i2c: E2 62 00 E5 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 38 2C 01 00 0E 04 04 00 74 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 AD [14:51: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 38 2C 01 00 0E 04 04 00 74 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 [14:51:41]wFMCommunicate OK [14:51:41]SAM_PROTO_GetFieldsCounters done [14:51:41]requested_item shift.num is exist - process it [14:51:41]requested_item shift.opened is exist - process it [14:51:41]req_shift_opened [14:51:41]FM_GetShiftState [14:51:41]SAM_PROTO_GetShiftState [14:51:41]wFMCommunicate request_size=4 [14:51:41]MH_SAM_APDU [14:51:41]CAPDU: 80 13 01 00 [14:51:41]Write to MH i2c: E2 08 00 E6 01 80 13 01 00 00 00 00 00 64 [14:51:41]Write i2c OK [14:51:41]MH_I2C_Read... [14:51:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:41]Read from MH i2c: E2 [14:51:41]MH_I2C_Read... [14:51:41]Read from MH i2c: E2 0E 00 [14:51:41]MH_I2C_Read... [14:51:41]Read from MH i2c: E2 0E 00 E6 01 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 AB [14:51:41]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [14:51:41]wFMCommunicate OK [14:51:41]SAM_PROTO_GetShiftState done [14:51:41]FM_GetShiftState done [14:51:41]req_shift_opened done [14:51:41]requested_item shift.open_date is exist - process it [14:51:41]req_shift_open_date [14:51:41]req_shift_open_date done [14:51:41]produce_requested_data done [14:51:41]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76856,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [14:51:41]process_action_free close_receipt [14:51:41]json_value_free [14:51:41]json_value_free done [14:51:41]process_json_proto returns [14:51:41]Send response to host [14:51:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76856,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [14:51:41]free response buf [14:51:41]execute_script done [14:51:41]execute_script returns [14:51:41]free content buf [14:51:41]Sock 7.Close socket [14:51:41]Sock 7.Thread stoped [14:51:45]OFD Sender: No OFD packet to send [14:51:50]OFD Sender: No OFD packet to send [14:51:55]OFD Sender: No OFD packet to send [14:52:00]OFD Sender: No OFD packet to send [14:52:05]OFD Sender: No OFD packet to send [14:52:10]OFD Sender: No OFD packet to send [14:52:15]OFD Sender: No OFD packet to send [14:52:18]accept exits with 9 [14:52:18]New connection [14:52:18]New thread 3067460964 created [14:52:18]Thread 3067317604 joined [14:52:18]Waiting for new connection... [14:52:18] Sock 9.Parse request [14:52:18]Sock 9.Check first char [14:52:18]Sock 9.First char is OK [14:52:18]request: POST /json_proto HTTP/1.0 [14:52:18]Method: POST [14:52:18]URL: /json_proto [14:52:18]Method is POST - this is cgi request [14:52:18]url: /json_proto [14:52:18]query_string will be loaded in cgi processing [14:52:18]execute_cgi json_proto POST (null) [14:52:18]execute_cgi path=json_proto method=POST [14:52:18]POST find Content-Length [14:52:18]Host: 172.17.62.5:8080 [14:52:18]Content-Length: 816 [14:52:18]Content-Type: application/json [14:52:18] [14:52:18]POST finish read [14:52:18]Found Content-Length = 816 [14:52:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 80.000, "sum" : 5832.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" : 5832.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:18]execute_script... [14:52: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)191395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 80.000, "sum" : 5832.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" : 5832.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:18]POST & json_proto [14:52:18]process_json_proto [14:52:18]json parsed OK: [14:52:18]protocol is kg_v1.0 [14:52:18]action value=close_receipt [14:52:18]process_action close_receipt [14:52:18]cmd_close_receipt [14:52:18]MH_GetDate [14:52:18]Write to MH i2c: F0 00 00 E7 01 D7 [14:52:18]Write i2c OK [14:52:18]MH_I2C_Read... [14:52:18]Read from MH i2c: F0 [14:52:18]MH_I2C_Read... [14:52:18]Read from MH i2c: F0 09 00 [14:52:18]MH_I2C_Read... [14:52:18]Read from MH i2c: F0 09 00 E7 01 00 23 28 25 66 F4 E9 65 64 5C [14:52:18]GetLastDocTimeStamp 1713711099 [14:52:18]current date 1713711139 [14:52:18]FM_GetShiftState [14:52:18]SAM_PROTO_GetShiftState [14:52:18]wFMCommunicate request_size=4 [14:52:18]MH_SAM_APDU [14:52:18]CAPDU: 80 13 01 00 [14:52:18]Write to MH i2c: E2 08 00 E8 01 80 13 01 00 00 00 00 00 66 [14:52:18]Write i2c OK [14:52:18]MH_I2C_Read... [14:52:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:18]Read from MH i2c: E2 [14:52:18]MH_I2C_Read... [14:52:18]Read from MH i2c: E2 0E 00 [14:52:18]MH_I2C_Read... [14:52:18]Read from MH i2c: E2 0E 00 E8 01 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 AD [14:52:18]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [14:52:18]wFMCommunicate OK [14:52:18]SAM_PROTO_GetShiftState done [14:52:18]FM_GetShiftState done [14:52:18]opened in 1713658965 [14:52:18]opened+sec_in_day 1713745365 [14:52:18]quantity*price = 583200 [14:52:18]sum+1 = 583201 [14:52:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5832.00 НСП 1% : 51.61 НДС 12% : 619.33 Наличными: 0.00 Безнал.: 5832.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 113 21.04.2024 14:52 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 76857 ФПД: 208317195442121 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T145219&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76857&fm=208317195442121&tin=02508201610067®Number=0000000000091573&sum=583200 [14:52:19]StoreToDocumentArchive [14:52:19]shift 372 fd 76857 [14:52:19]save to /storage/0372/doc_00076857 [14:52:19]save last doc name /storage/0372/doc_00076857 to /storage/kkm_last_doc_name [14:52:19]save OK [14:52:19]Clear old archive folders... [14:52:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:52:19]tlvbuf is 0180FD30 [14:52:19]SAM_PROTO_ClearQueue [14:52:19]wFMCommunicate request_size=4 [14:52:19]MH_SAM_APDU [14:52:19]CAPDU: 80 09 00 00 [14:52:19]Write to MH i2c: E2 08 00 F5 01 80 09 00 00 00 00 00 00 68 [14:52:19]Write i2c OK [14:52:19]MH_I2C_Read... [14:52:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:52:19]Read from MH i2c: E2 [14:52:19]MH_I2C_Read... [14:52:19]Read from MH i2c: E2 03 00 [14:52:19]MH_I2C_Read... [14:52:19]Read from MH i2c: E2 03 00 F5 01 00 90 00 6A [14:52:19]RAPDU: 90 00 [14:52:19]wFMCommunicate OK [14:52:19]SAM_PROTO_ClearQueue done [14:52:19]KKMCreateOFDPacket [14:52:19]OFDProtocolAddRootSTLVToBuf [14:52:19]FM_MakeSignedData [14:52:19]FM_MakeSignedData [14:52:19]SAM_PROTO_SignData [14:52:19]wFMCommunicate request_size=4 [14:52:19]MH_SAM_APDU [14:52:19]CAPDU: 80 0D 01 02 [14:52:19]Write to MH i2c: E2 08 00 F6 01 80 0D 01 02 00 00 00 00 70 [14:52:19]Write i2c OK [14:52:19]MH_I2C_Read... [14:52:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:52:19]Read from MH i2c: E2 [14:52:19]MH_I2C_Read... [14:52:19]Read from MH i2c: E2 03 00 [14:52:19]MH_I2C_Read... [14:52:19]Read from MH i2c: E2 03 00 F6 01 00 90 00 6B [14:52:19]RAPDU: 90 00 [14:52:19]wFMCommunicate OK [14:52:19]wFMCommunicate request_size=255 [14:52:19]MH_SAM_APDU [14:52:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 80 38 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 20 E6 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 E6 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F1 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 E6 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 23 28 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 39 2C 01 00 35 04 06 00 BD 76 A0 6F [14:52:19]Write to MH i2c: E2 02 01 F7 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 80 38 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 20 E6 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 E6 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F1 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 E6 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 23 28 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 39 2C 01 00 35 04 06 00 BD 76 A0 6F 00 00 C5 [14:52:19]Write i2c OK [14:52:19]MH_I2C_Read... [14:52:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:19]Read from MH i2c: E2 [14:52:19]MH_I2C_Read... [14:52:19]Read from MH i2c: E2 03 00 [14:52:19]MH_I2C_Read... [14:52:19]Read from MH i2c: E2 03 00 F7 01 00 90 00 6C [14:52:19]RAPDU: 90 00 [14:52:19]wFMCommunicate OK [14:52:19]wFMCommunicate request_size=7 [14:52:19]MH_SAM_APDU [14:52:19]CAPDU: 80 0D 02 02 02 57 C9 [14:52:19]Write to MH i2c: E2 0A 00 F8 01 80 0D 02 02 02 00 57 C9 00 00 97 [14:52:19]Write i2c OK [14:52:19]MH_I2C_Read... [14:52:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:19]Read from MH i2c: E2 [14:52:19]MH_I2C_Read... [14:52:19]Read from MH i2c: E2 03 00 [14:52:19]MH_I2C_Read... [14:52:19]Read from MH i2c: E2 03 00 F8 01 00 90 00 6D [14:52:19]RAPDU: 90 00 [14:52:19]wFMCommunicate OK [14:52:19]wFMCommunicate request_size=4 [14:52:19]MH_SAM_APDU [14:52:19]CAPDU: 80 0D 03 02 [14:52:19]Write to MH i2c: E2 08 00 F9 01 80 0D 03 02 00 00 00 00 75 [14:52:19]Write i2c OK [14:52:19]MH_I2C_Read... [14:52:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:52:19]Read from MH i2c: E2 [14:52:19]MH_I2C_Read... [14:52:19]Read from MH i2c: E2 0B 00 [14:52:19]MH_I2C_Read... [14:52:19]Read from MH i2c: E2 0B 00 F9 01 00 12 49 F9 53 DB 84 74 16 90 00 06 [14:52:19]RAPDU: 12 49 F9 53 DB 84 74 16 90 00 [14:52:19]wFMCommunicate OK [14:52:19]SAM_PROTO_SignData done [14:52:19]FM_MakeSignedData done [14:52:19]CreateOFDProtocolMessage [14:52:19]wFMCommunicate request_size=4 [14:52:19]MH_SAM_APDU [14:52:19]CAPDU: 80 11 00 00 [14:52:19]Write to MH i2c: E2 08 00 FA 01 80 11 00 00 00 00 00 00 75 [14:52:19]Write i2c OK [14:52:19]MH_I2C_Read... [14:52:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:19]Read from MH i2c: E2 [14:52:19]MH_I2C_Read... [14:52:19]Read from MH i2c: E2 17 00 [14:52:19]MH_I2C_Read... [14:52:19]Read from MH i2c: E2 17 00 FA 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 C8 [14:52:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:52:19]wFMCommunicate OK [14:52:19]CreateOFDProtocolMessage done [14:52:19]OFDSenderStorePacket 76857 [14:52:19]StoreOFDPacket docnum=76857 [14:52:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 4D F3 04 01 86 84 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 80 38 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 20 E6 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 E6 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F1 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 E6 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 23 28 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 39 2C 01 00 35 04 06 00 BD 76 A0 6F 57 C9 12 49 F9 53 DB 84 74 16 [14:52:19]CheckFolder [14:52:19]dirname=/storage/ofd_packets [14:52:19]CheckFolder done [14:52:19]ProducePacketName [14:52:19]name=ofd_packets/00076857 [14:52:19]NVStorageSaveData ofd_packets/00076857 [14:52:19]File name is /storage/ofd_packets/00076857 [14:52:19]Write 298 bytes [14:52:19]NVStorageSaveData done [14:52:19]OFDSenderStorePacket done [14:52:19]KKMCreateOFDPacket done [14:52:19]NVStorageSaveData kkm_last_timestamp [14:52:19]File name is /storage/kkm_last_timestamp [14:52:19]Write 4 bytes [14:52:19]NVStorageSaveData done [14:52:19]ExternCall_PrintAddStr [14:52:19]wPrintStart [14:52:19]Write to MH i2c: 01 00 00 FB 01 FC [14:52:19]Write i2c OK [14:52:19]MH_I2C_Read... [14:52:19]Read from MH i2c: 01 [14:52:19]MH_I2C_Read... [14:52:19]Read from MH i2c: 01 07 00 [14:52:20]MH_I2C_Read... [14:52:20]Read from MH i2c: 01 07 00 FB 01 00 00 00 00 00 FF 0F 11 [14:52:20]RasterBufferAndPrint [14:52:20]line Счет N : (1)191395 [14:52:20]line ИНН: 02508201610067 [14:52:20]line Контрольно-Кассовый Чек [14:52:20]line ПРОДАЖА [14:52:20]line ТРК (МРК, ГНК) : 61 [14:52:20]line Товар: 2710194210 [14:52:20]line ДТ-К-5 [14:52:20]line 80.000 * 72.90 [14:52:20]line = 5832.00 [14:52:20]line НДС 12% НСП 1% [14:52:20]line > о реализуемом товаре [14:52:20]line ИТОГО: 5832.00 [14:52:20]line НСП 1% : 51.61 [14:52:20]line НДС 12% : 619.33 [14:52:20]line Наличными: 0.00 [14:52:20]line Безнал.: 5832.00 [14:52:20]line Место: АЗС № 106 "Партнер Нефть" [14:52:20]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [14:52:20]line СНО: Общий режим [14:52:20]line Чек 113 21.04.2024 14:52 [14:52:20]line Смена: 372 ФФД: 1.0 [14:52:20]line ЗНМ: 0300000141 [14:52:20]line РНМ: 0000000000091573 [14:52:20]line Версия ККМ: 001 [14:52:20]line Платежная система: Бакай Банк [14:52:20]line ФМ: 0000000000874652 [14:52:20]line ФД: 76857 [14:52:20]line ФПД: 208317195442121 [14:52:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T145219&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76857&fm=208317195442121&tin=02508201610067®Number=0000000000091573&sum=583200 [14:52:20]OFD Sender: Processing packet 76857 [packets to send 129, broken 128] [14:52:20]ProducePacketName [14:52:20]name=ofd_packets/00076857 [14:52:20]OFD Sender: To server: pG, [14:52:20]CommunicateWithHost lk.salyk.kg:30040 [14:52:20]ConnectInit lk.salyk.kg [14:52:20]written 0, free lines is 4095 [14:52:20]Connected sock=10 [14:52:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 4D F3 04 01 86 84 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 80 38 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 20 E6 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 E6 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F1 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 E6 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 23 28 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 39 2C 01 00 35 04 06 00 BD 76 A0 6F 57 C9 12 49 F9 53 DB 84 74 16 [14:52:20]Write to MH i2c: 01 00 00 24 02 26 [14:52:20]Write i2c OK [14:52:20]MH_I2C_Read... [14:52:20]Read from MH i2c: 01 [14:52:20]MH_I2C_Read... [14:52:20]Read from MH i2c: 01 07 00 [14:52:20]MH_I2C_Read... [14:52:20]Read from MH i2c: 01 07 00 24 02 00 00 00 00 00 02 0D 3C [14:52:20]RasterBufferAndPrint [14:52:20]line [14:52:20]line [14:52:20]line [14:52:20]line [14:52:20]line [14:52:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 69 81 47 00 5D 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 34 36 35 32 10 04 04 00 39 2C 01 00 F4 03 04 00 A8 CF 24 66 B6 04 01 00 00 A2 3A B4 A6 96 7E 91 14 [14:52:20]CommunicateWithHost err = 0 [14:52:20]CheckOFDResponse [14:52:20]1017 (14) - 77093643461234 [14:52:20]1041 (16) - 0000000000874652 [14:52:20]1040 (4) - 76857 [14:52:20]1012 (4) - 21.04.2024 08:34 [14:52:20]1206 (1) - 0 [14:52:20]OFD Sender: Remove packet 76857 [14:52:20]ProducePacketName [14:52:20]name=ofd_packets/00076857 [14:52:20]NVStorageDeleteData [14:52:20]written 0, free lines is 3347 [14:52:20]MH_Cut [14:52:20]Write to MH i2c: D1 01 00 2B 02 01 FF [14:52:20]Write i2c OK [14:52:20]MH_I2C_Read... [14:52:20]Read from MH i2c: D1 [14:52:20]MH_I2C_Read... [14:52:20]Read from MH i2c: D1 01 00 [14:52:20]MH_I2C_Read... [14:52:20]Read from MH i2c: D1 01 00 2B 02 00 FE [14:52:20]Write to MH i2c: 01 00 00 2C 02 2E [14:52:20]Write i2c OK [14:52:20]MH_I2C_Read... [14:52:21]OFD Sender: No OFD packet to send [14:52:21]*** Cut start [14:52:21]*** Partial cut [14:52:21]*** CUTSNS_PIN = 1 [14:52:21]*** CUTSNS_PIN = 0 [14:52:21]*** Brake cut motor [14:52:22]Read from MH i2c: 01 [14:52:22]MH_I2C_Read... [14:52:22]*** Stop cut motor [14:52:22]*** Cut end [14:52:22]Read from MH i2c: 01 07 00 [14:52:22]MH_I2C_Read... [14:52:22]Read from MH i2c: 01 07 00 2C 02 00 00 00 00 00 FF 0F 43 [14:52:22]process_action close_receipt done [14:52:22]requested_data is exist [14:52:22]produce_requested_data [14:52:22]requested_item fm.sn is exist - process it [14:52:22]wFMCommunicate request_size=4 [14:52:22]MH_SAM_APDU [14:52:22]CAPDU: 80 11 00 00 [14:52:22]Write to MH i2c: E2 08 00 2D 02 80 11 00 00 00 00 00 00 A9 [14:52:22]Write i2c OK [14:52:22]MH_I2C_Read... [14:52:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:22]Read from MH i2c: E2 [14:52:22]MH_I2C_Read... [14:52:22]Read from MH i2c: E2 17 00 [14:52:22]MH_I2C_Read... [14:52:22]Read from MH i2c: E2 17 00 2D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 FC [14:52:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:52:22]wFMCommunicate OK [14:52:22]requested_item fd.num is exist - process it [14:52:22]SAM_PROTO_GetFieldsCounters [14:52:22]wFMCommunicate request_size=4 [14:52:22]MH_SAM_APDU [14:52:22]CAPDU: 80 13 00 00 [14:52:22]Write to MH i2c: E2 08 00 2E 02 80 13 00 00 00 00 00 00 AC [14:52:22]Write i2c OK [14:52:22]MH_I2C_Read... [14:52:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:52:22]Read from MH i2c: E2 [14:52:22]MH_I2C_Read... [14:52:22]Read from MH i2c: E2 62 00 [14:52:22]MH_I2C_Read... [14:52:22]Read from MH i2c: E2 62 00 2E 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 39 2C 01 00 0E 04 04 00 74 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 FB [14:52: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 39 2C 01 00 0E 04 04 00 74 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:52:22]wFMCommunicate OK [14:52:22]SAM_PROTO_GetFieldsCounters done [14:52:22]requested_item shift.num is exist - process it [14:52:22]requested_item shift.opened is exist - process it [14:52:22]req_shift_opened [14:52:22]FM_GetShiftState [14:52:22]SAM_PROTO_GetShiftState [14:52:22]wFMCommunicate request_size=4 [14:52:22]MH_SAM_APDU [14:52:22]CAPDU: 80 13 01 00 [14:52:22]Write to MH i2c: E2 08 00 2F 02 80 13 01 00 00 00 00 00 AE [14:52:22]Write i2c OK [14:52:22]MH_I2C_Read... [14:52:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:22]Read from MH i2c: E2 [14:52:22]MH_I2C_Read... [14:52:22]Read from MH i2c: E2 0E 00 [14:52:22]MH_I2C_Read... [14:52:22]Read from MH i2c: E2 0E 00 2F 02 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 F5 [14:52:22]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [14:52:22]wFMCommunicate OK [14:52:22]SAM_PROTO_GetShiftState done [14:52:22]FM_GetShiftState done [14:52:22]req_shift_opened done [14:52:22]requested_item shift.open_date is exist - process it [14:52:22]req_shift_open_date [14:52:22]req_shift_open_date done [14:52:22]produce_requested_data done [14:52:22]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76857,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [14:52:22]process_action_free close_receipt [14:52:22]json_value_free [14:52:22]json_value_free done [14:52:22]process_json_proto returns [14:52:22]Send response to host [14:52:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76857,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [14:52:22]free response buf [14:52:22]execute_script done [14:52:22]execute_script returns [14:52:22]free content buf [14:52:22]Sock 9.Close socket [14:52:22]Sock 9.Thread stoped [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:41]OFD Sender: No OFD packet to send [14:52:46]OFD Sender: No OFD packet to send [14:52:51]OFD Sender: No OFD packet to send [14:52:56]OFD Sender: No OFD packet to send [14:53:01]OFD Sender: No OFD packet to send [14:53:06]OFD Sender: No OFD packet to send [14:53:11]OFD Sender: No OFD packet to send [14:53:16]OFD Sender: No OFD packet to send [14:53:21]OFD Sender: No OFD packet to send [14:53:26]OFD Sender: No OFD packet to send [14:53:31]OFD Sender: No OFD packet to send [14:53:36]OFD Sender: No OFD packet to send [14:53:41]OFD Sender: No OFD packet to send [14:53:46]OFD Sender: No OFD packet to send [14:53:51]OFD Sender: No OFD packet to send [14:53:56]OFD Sender: No OFD packet to send [14:54:01]OFD Sender: No OFD packet to send [14:54:06]OFD Sender: No OFD packet to send [14:54:11]OFD Sender: No OFD packet to send [14:54:14]accept exits with 7 [14:54:14]New connection [14:54:14]New thread 3067317604 created [14:54:14]Thread 3067460964 joined [14:54:14]Waiting for new connection... [14:54:14] Sock 7.Parse request [14:54:14]Sock 7.Check first char [14:54:14]Sock 7.First char is OK [14:54:14]request: POST /json_proto HTTP/1.0 [14:54:14]Method: POST [14:54:14]URL: /json_proto [14:54:14]Method is POST - this is cgi request [14:54:14]url: /json_proto [14:54:14]query_string will be loaded in cgi processing [14:54:14]execute_cgi json_proto POST (null) [14:54:14]execute_cgi path=json_proto method=POST [14:54:14]POST find Content-Length [14:54:14]Host: 172.17.62.5:8080 [14:54:14]Content-Length: 938 [14:54:14]Content-Type: application/json [14:54:14] [14:54:14]POST finish read [14:54:14]Found Content-Length = 938 [14:54:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 50.000, "sum" : 3595.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 50.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 3595.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:14]execute_script... [14:54: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)191397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 50.000, "sum" : 3595.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 50.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 3595.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:14]POST & json_proto [14:54:14]process_json_proto [14:54:14]json parsed OK: [14:54:14]protocol is kg_v1.0 [14:54:14]action value=close_receipt [14:54:14]process_action close_receipt [14:54:14]cmd_close_receipt [14:54:14]MH_GetDate [14:54:14]Write to MH i2c: F0 00 00 30 02 21 [14:54:14]Write i2c OK [14:54:14]MH_I2C_Read... [14:54:14]Read from MH i2c: F0 [14:54:14]MH_I2C_Read... [14:54:14]Read from MH i2c: F0 09 00 [14:54:14]MH_I2C_Read... [14:54:14]Read from MH i2c: F0 09 00 30 02 00 96 28 25 66 F4 E9 65 64 19 [14:54:14]GetLastDocTimeStamp 1713711139 [14:54:14]current date 1713711254 [14:54:14]FM_GetShiftState [14:54:14]SAM_PROTO_GetShiftState [14:54:14]wFMCommunicate request_size=4 [14:54:14]MH_SAM_APDU [14:54:14]CAPDU: 80 13 01 00 [14:54:14]Write to MH i2c: E2 08 00 31 02 80 13 01 00 00 00 00 00 B0 [14:54:14]Write i2c OK [14:54:14]MH_I2C_Read... [14:54:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:14]Read from MH i2c: E2 [14:54:14]MH_I2C_Read... [14:54:14]Read from MH i2c: E2 0E 00 [14:54:14]MH_I2C_Read... [14:54:14]Read from MH i2c: E2 0E 00 31 02 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 F7 [14:54:14]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [14:54:14]wFMCommunicate OK [14:54:14]SAM_PROTO_GetShiftState done [14:54:14]FM_GetShiftState done [14:54:14]opened in 1713658965 [14:54:14]opened+sec_in_day 1713745365 [14:54:14]quantity*price = 359500 [14:54:14]sum+1 = 359501 [14:54:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3595.00 НСП 1% : 31.81 НДС 12% : 381.77 Наличными: 3595.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 114 21.04.2024 14:54 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 50.00 сом ФМ: 0000000000874652 ФД: 76858 ФПД: 28861063127828 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T145415&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76858&fm=28861063127828&tin=02508201610067®Number=0000000000091573&sum=359500 [14:54:15]StoreToDocumentArchive [14:54:15]shift 372 fd 76858 [14:54:15]save to /storage/0372/doc_00076858 [14:54:15]save last doc name /storage/0372/doc_00076858 to /storage/kkm_last_doc_name [14:54:15]save OK [14:54:15]Clear old archive folders... [14:54:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:54:15]tlvbuf is 01811930 [14:54:15]SAM_PROTO_ClearQueue [14:54:15]wFMCommunicate request_size=4 [14:54:15]MH_SAM_APDU [14:54:15]CAPDU: 80 09 00 00 [14:54:15]Write to MH i2c: E2 08 00 3E 02 80 09 00 00 00 00 00 00 B2 [14:54:15]Write i2c OK [14:54:15]MH_I2C_Read... [14:54:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:54:15]Read from MH i2c: E2 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: E2 03 00 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: E2 03 00 3E 02 00 90 00 B4 [14:54:15]RAPDU: 90 00 [14:54:15]wFMCommunicate OK [14:54:15]SAM_PROTO_ClearQueue done [14:54:15]KKMCreateOFDPacket [14:54:15]OFDProtocolAddRootSTLVToBuf [14:54:15]FM_MakeSignedData [14:54:15]FM_MakeSignedData [14:54:15]SAM_PROTO_SignData [14:54:15]wFMCommunicate request_size=4 [14:54:15]MH_SAM_APDU [14:54:15]CAPDU: 80 0D 01 02 [14:54:15]Write to MH i2c: E2 08 00 3F 02 80 0D 01 02 00 00 00 00 BA [14:54:15]Write i2c OK [14:54:15]MH_I2C_Read... [14:54:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:54:15]Read from MH i2c: E2 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: E2 03 00 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: E2 03 00 3F 02 00 90 00 B5 [14:54:15]RAPDU: 90 00 [14:54:15]wFMCommunicate OK [14:54:15]wFMCommunicate request_size=255 [14:54:15]MH_SAM_APDU [14:54:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 4C 7C 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 7C 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 95 00 00 00 00 07 04 06 00 4C 7C 05 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 97 28 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 3A 2C 01 00 35 04 06 00 1A 3F BD 6A [14:54:15]Write to MH i2c: E2 02 01 40 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 4C 7C 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 7C 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 95 00 00 00 00 07 04 06 00 4C 7C 05 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 97 28 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 3A 2C 01 00 35 04 06 00 1A 3F BD 6A 00 00 0A [14:54:15]Write i2c OK [14:54:15]MH_I2C_Read... [14:54:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:15]Read from MH i2c: E2 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: E2 03 00 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: E2 03 00 40 02 00 90 00 B6 [14:54:15]RAPDU: 90 00 [14:54:15]wFMCommunicate OK [14:54:15]wFMCommunicate request_size=7 [14:54:15]MH_SAM_APDU [14:54:15]CAPDU: 80 0D 02 02 02 63 14 [14:54:15]Write to MH i2c: E2 0A 00 41 02 80 0D 02 02 02 00 63 14 00 00 38 [14:54:15]Write i2c OK [14:54:15]MH_I2C_Read... [14:54:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:15]Read from MH i2c: E2 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: E2 03 00 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: E2 03 00 41 02 00 90 00 B7 [14:54:15]RAPDU: 90 00 [14:54:15]wFMCommunicate OK [14:54:15]wFMCommunicate request_size=4 [14:54:15]MH_SAM_APDU [14:54:15]CAPDU: 80 0D 03 02 [14:54:15]Write to MH i2c: E2 08 00 42 02 80 0D 03 02 00 00 00 00 BF [14:54:15]Write i2c OK [14:54:15]MH_I2C_Read... [14:54:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:54:15]Read from MH i2c: E2 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: E2 0B 00 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: E2 0B 00 42 02 00 93 55 4A E5 BC 6B 3D B2 90 00 ED [14:54:15]RAPDU: 93 55 4A E5 BC 6B 3D B2 90 00 [14:54:15]wFMCommunicate OK [14:54:15]SAM_PROTO_SignData done [14:54:15]FM_MakeSignedData done [14:54:15]CreateOFDProtocolMessage [14:54:15]wFMCommunicate request_size=4 [14:54:15]MH_SAM_APDU [14:54:15]CAPDU: 80 11 00 00 [14:54:15]Write to MH i2c: E2 08 00 43 02 80 11 00 00 00 00 00 00 BF [14:54:15]Write i2c OK [14:54:15]MH_I2C_Read... [14:54:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:15]Read from MH i2c: E2 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: E2 17 00 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: E2 17 00 43 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 12 [14:54:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:54:15]wFMCommunicate OK [14:54:15]CreateOFDProtocolMessage done [14:54:15]OFDSenderStorePacket 76858 [14:54:15]StoreOFDPacket docnum=76858 [14:54:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 0F 14 04 01 52 DA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 4C 7C 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 7C 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 95 00 00 00 00 07 04 06 00 4C 7C 05 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 97 28 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 3A 2C 01 00 35 04 06 00 1A 3F BD 6A 63 14 93 55 4A E5 BC 6B 3D B2 [14:54:15]CheckFolder [14:54:15]dirname=/storage/ofd_packets [14:54:15]CheckFolder done [14:54:15]ProducePacketName [14:54:15]name=ofd_packets/00076858 [14:54:15]NVStorageSaveData ofd_packets/00076858 [14:54:15]File name is /storage/ofd_packets/00076858 [14:54:15]Write 298 bytes [14:54:15]NVStorageSaveData done [14:54:15]OFDSenderStorePacket done [14:54:15]KKMCreateOFDPacket done [14:54:15]NVStorageSaveData kkm_last_timestamp [14:54:15]File name is /storage/kkm_last_timestamp [14:54:15]Write 4 bytes [14:54:15]NVStorageSaveData done [14:54:15]ExternCall_PrintAddStr [14:54:15]wPrintStart [14:54:15]Write to MH i2c: 01 00 00 44 02 46 [14:54:15]Write i2c OK [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: 01 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: 01 07 00 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: 01 07 00 44 02 00 00 00 00 00 FF 0F 5B [14:54:15]RasterBufferAndPrint [14:54:15]line Счет N : (1)191397 [14:54:15]line ИНН: 02508201610067 [14:54:15]line Контрольно-Кассовый Чек [14:54:15]line ПРОДАЖА [14:54:15]line ТРК (МРК, ГНК) : 51 [14:54:15]line Товар: 2710194210 [14:54:15]line ДТ-К-5 [14:54:15]line 50.000 * 71.90 [14:54:15]line = 3595.00 [14:54:15]line НДС 12% НСП 1% [14:54:15]line > о реализуемом товаре [14:54:15]line ИТОГО: 3595.00 [14:54:15]line НСП 1% : 31.81 [14:54:15]line НДС 12% : 381.77 [14:54:15]line Наличными: 3595.00 [14:54:15]line Безнал.: 0.00 [14:54:15]line Место: АЗС № 106 "Партнер Нефть" [14:54:15]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [14:54:15]line СНО: Общий режим [14:54:15]line Чек 114 21.04.2024 14:54 [14:54:15]line Смена: 372 ФФД: 1.0 [14:54:15]line ЗНМ: 0300000141 [14:54:15]line РНМ: 0000000000091573 [14:54:15]line Версия ККМ: 001 [14:54:15]line [14:54:15]line Дисконтная программа [14:54:15]line ДТ [14:54:15]line номер 106 [14:54:15]line сэкономлено 50.00 сом [14:54:15]line ФМ: 0000000000874652 [14:54:15]line ФД: 76858 [14:54:15]line ФПД: 28861063127828 [14:54:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T145415&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76858&fm=28861063127828&tin=02508201610067®Number=0000000000091573&sum=359500 [14:54:16]OFD Sender: Processing packet 76858 [packets to send 129, broken 128] [14:54:16]ProducePacketName [14:54:16]name=ofd_packets/00076858 [14:54:16]OFD Sender: To server: pG, [14:54:16]CommunicateWithHost lk.salyk.kg:30040 [14:54:16]ConnectInit lk.salyk.kg [14:54:16]written 0, free lines is 4095 [14:54:16]Connected sock=10 [14:54:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 0F 14 04 01 52 DA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 4C 7C 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 7C 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 95 00 00 00 00 07 04 06 00 4C 7C 05 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 97 28 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 3A 2C 01 00 35 04 06 00 1A 3F BD 6A 63 14 93 55 4A E5 BC 6B 3D B2 [14:54:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 36 4D 47 00 20 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 34 36 35 32 10 04 04 00 3A 2C 01 00 F4 03 04 00 1C D0 24 66 B6 04 01 00 00 36 D3 F7 E6 8E A1 DE 38 [14:54:16]CommunicateWithHost err = 0 [14:54:16]CheckOFDResponse [14:54:16]1017 (14) - 77093643461234 [14:54:16]1041 (16) - 0000000000874652 [14:54:16]1040 (4) - 76858 [14:54:16]1012 (4) - 21.04.2024 08:36 [14:54:16]1206 (1) - 0 [14:54:16]OFD Sender: Remove packet 76858 [14:54:16]ProducePacketName [14:54:16]name=ofd_packets/00076858 [14:54:16]NVStorageDeleteData [14:54:16]Write to MH i2c: 01 00 00 70 02 72 [14:54:16]Write i2c OK [14:54:16]MH_I2C_Read... [14:54:16]Read from MH i2c: 01 [14:54:16]MH_I2C_Read... [14:54:16]Read from MH i2c: 01 07 00 [14:54:16]MH_I2C_Read... [14:54:16]Read from MH i2c: 01 07 00 70 02 00 00 00 00 00 CF 0C 54 [14:54:16]RasterBufferAndPrint [14:54:16]line [14:54:16]line [14:54:16]line [14:54:16]line [14:54:16]line [14:54:16]written 0, free lines is 3285 [14:54:16]MH_Cut [14:54:16]Write to MH i2c: D1 01 00 77 02 01 4B [14:54:16]Write i2c OK [14:54:16]MH_I2C_Read... [14:54:16]Read from MH i2c: D1 [14:54:16]MH_I2C_Read... [14:54:16]Read from MH i2c: D1 01 00 [14:54:16]MH_I2C_Read... [14:54:16]Read from MH i2c: D1 01 00 77 02 00 4A [14:54:16]Write to MH i2c: 01 00 00 78 02 7A [14:54:16]Write i2c OK [14:54:16]MH_I2C_Read... [14:54:16]OFD Sender: No OFD packet to send [14:54:17]*** Cut start [14:54:17]*** Partial cut [14:54:17]*** CUTSNS_PIN = 1 [14:54:17]*** CUTSNS_PIN = 0 [14:54:17]*** Brake cut motor [14:54:17]Read from MH i2c: 01 [14:54:17]MH_I2C_Read... [14:54:17]*** Stop cut motor [14:54:17]*** Cut end [14:54:17]Read from MH i2c: 01 07 00 [14:54:17]MH_I2C_Read... [14:54:17]Read from MH i2c: 01 07 00 78 02 00 00 00 00 00 FF 0F 8F [14:54:17]process_action close_receipt done [14:54:17]requested_data is exist [14:54:17]produce_requested_data [14:54:17]requested_item fm.sn is exist - process it [14:54:17]wFMCommunicate request_size=4 [14:54:17]MH_SAM_APDU [14:54:17]CAPDU: 80 11 00 00 [14:54:17]Write to MH i2c: E2 08 00 79 02 80 11 00 00 00 00 00 00 F5 [14:54:17]Write i2c OK [14:54:17]MH_I2C_Read... [14:54:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:17]Read from MH i2c: E2 [14:54:17]MH_I2C_Read... [14:54:17]Read from MH i2c: E2 17 00 [14:54:17]MH_I2C_Read... [14:54:17]Read from MH i2c: E2 17 00 79 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 48 [14:54:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:54:17]wFMCommunicate OK [14:54:17]requested_item fd.num is exist - process it [14:54:17]SAM_PROTO_GetFieldsCounters [14:54:17]wFMCommunicate request_size=4 [14:54:17]MH_SAM_APDU [14:54:17]CAPDU: 80 13 00 00 [14:54:17]Write to MH i2c: E2 08 00 7A 02 80 13 00 00 00 00 00 00 F8 [14:54:17]Write i2c OK [14:54:17]MH_I2C_Read... [14:54:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:18]Read from MH i2c: E2 [14:54:18]MH_I2C_Read... [14:54:18]Read from MH i2c: E2 62 00 [14:54:18]MH_I2C_Read... [14:54:18]Read from MH i2c: E2 62 00 7A 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 3A 2C 01 00 0E 04 04 00 74 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 4B [14:54: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 3A 2C 01 00 0E 04 04 00 74 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:54:18]wFMCommunicate OK [14:54:18]SAM_PROTO_GetFieldsCounters done [14:54:18]requested_item shift.num is exist - process it [14:54:18]requested_item shift.opened is exist - process it [14:54:18]req_shift_opened [14:54:18]FM_GetShiftState [14:54:18]SAM_PROTO_GetShiftState [14:54:18]wFMCommunicate request_size=4 [14:54:18]MH_SAM_APDU [14:54:18]CAPDU: 80 13 01 00 [14:54:18]Write to MH i2c: E2 08 00 7B 02 80 13 01 00 00 00 00 00 FA [14:54:18]Write i2c OK [14:54:18]MH_I2C_Read... [14:54:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:18]Read from MH i2c: E2 [14:54:18]MH_I2C_Read... [14:54:18]Read from MH i2c: E2 0E 00 [14:54:18]MH_I2C_Read... [14:54:18]Read from MH i2c: E2 0E 00 7B 02 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 41 [14:54:18]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [14:54:18]wFMCommunicate OK [14:54:18]SAM_PROTO_GetShiftState done [14:54:18]FM_GetShiftState done [14:54:18]req_shift_opened done [14:54:18]requested_item shift.open_date is exist - process it [14:54:18]req_shift_open_date [14:54:18]req_shift_open_date done [14:54:18]produce_requested_data done [14:54:18]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76858,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [14:54:18]process_action_free close_receipt [14:54:18]json_value_free [14:54:18]json_value_free done [14:54:18]process_json_proto returns [14:54:18]Send response to host [14:54:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76858,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [14:54:18]free response buf [14:54:18]execute_script done [14:54:18]execute_script returns [14:54:18]free content buf [14:54:18]Sock 7.Close socket [14:54:18]Sock 7.Thread stoped [14:54:21]OFD Sender: No OFD packet to send [14:54:26]OFD Sender: No OFD packet to send [14:54:31]OFD Sender: No OFD packet to send [14:54:36]OFD Sender: No OFD packet to send [14:54:41]OFD Sender: No OFD packet to send [14:54:46]OFD Sender: No OFD packet to send [14:54:51]accept exits with 9 [14:54:51]New connection [14:54:51]New thread 3067460964 created [14:54:51]Thread 3067317604 joined [14:54:51]Waiting for new connection... [14:54:51] Sock 9.Parse request [14:54:51]Sock 9.Check first char [14:54:51]Sock 9.First char is OK [14:54:51]request: POST /json_proto HTTP/1.0 [14:54:51]Method: POST [14:54:51]URL: /json_proto [14:54:51]Method is POST - this is cgi request [14:54:51]url: /json_proto [14:54:51]query_string will be loaded in cgi processing [14:54:51]execute_cgi json_proto POST (null) [14:54:51]execute_cgi path=json_proto method=POST [14:54:51]POST find Content-Length [14:54:51]Host: 172.17.62.5:8080 [14:54:51]Content-Length: 679 [14:54:51]Content-Type: application/json [14:54:51] [14:54:51]POST finish read [14:54:51]Found Content-Length = 679 [14:54:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:51]execute_script... [14:54: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)191398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:51]POST & json_proto [14:54:51]process_json_proto [14:54:51]json parsed OK: [14:54:51]protocol is kg_v1.0 [14:54:51]action value=close_receipt [14:54:51]process_action close_receipt [14:54:51]cmd_close_receipt [14:54:51]MH_GetDate [14:54:51]Write to MH i2c: F0 00 00 7C 02 6D [14:54:51]Write i2c OK [14:54:51]MH_I2C_Read... [14:54:51]Read from MH i2c: F0 [14:54:51]MH_I2C_Read... [14:54:51]Read from MH i2c: F0 09 00 [14:54:51]MH_I2C_Read... [14:54:51]Read from MH i2c: F0 09 00 7C 02 00 BC 28 25 66 F4 E9 65 64 8B [14:54:51]GetLastDocTimeStamp 1713711255 [14:54:51]current date 1713711292 [14:54:51]FM_GetShiftState [14:54:51]SAM_PROTO_GetShiftState [14:54:51]wFMCommunicate request_size=4 [14:54:51]MH_SAM_APDU [14:54:51]CAPDU: 80 13 01 00 [14:54:51]Write to MH i2c: E2 08 00 7D 02 80 13 01 00 00 00 00 00 FC [14:54:51]Write i2c OK [14:54:51]MH_I2C_Read... [14:54:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:51]Read from MH i2c: E2 [14:54:51]MH_I2C_Read... [14:54:51]Read from MH i2c: E2 0E 00 [14:54:51]MH_I2C_Read... [14:54:51]Read from MH i2c: E2 0E 00 7D 02 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 43 [14:54:51]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [14:54:51]wFMCommunicate OK [14:54:51]SAM_PROTO_GetShiftState done [14:54:51]FM_GetShiftState done [14:54:51]opened in 1713658965 [14:54:51]opened+sec_in_day 1713745365 [14:54:51]quantity*price = 100018 [14:54:51]sum+1 = 100020 [14:54:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 115 21.04.2024 14:54 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76859 ФПД: 25046675763833 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T145452&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76859&fm=25046675763833&tin=02508201610067®Number=0000000000091573&sum=100000 [14:54:52]StoreToDocumentArchive [14:54:52]shift 372 fd 76859 [14:54:52]save to /storage/0372/doc_00076859 [14:54:52]save last doc name /storage/0372/doc_00076859 to /storage/kkm_last_doc_name [14:54:52]save OK [14:54:52]Clear old archive folders... [14:54:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:54:52]tlvbuf is 01801F10 [14:54:52]SAM_PROTO_ClearQueue [14:54:52]wFMCommunicate request_size=4 [14:54:52]MH_SAM_APDU [14:54:52]CAPDU: 80 09 00 00 [14:54:52]Write to MH i2c: E2 08 00 8A 02 80 09 00 00 00 00 00 00 FE [14:54:52]Write i2c OK [14:54:52]MH_I2C_Read... [14:54:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:54:52]Read from MH i2c: E2 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: E2 03 00 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: E2 03 00 8A 02 00 90 00 00 [14:54:52]RAPDU: 90 00 [14:54:52]wFMCommunicate OK [14:54:52]SAM_PROTO_ClearQueue done [14:54:52]KKMCreateOFDPacket [14:54:52]OFDProtocolAddRootSTLVToBuf [14:54:52]FM_MakeSignedData [14:54:52]FM_MakeSignedData [14:54:52]SAM_PROTO_SignData [14:54:52]wFMCommunicate request_size=4 [14:54:52]MH_SAM_APDU [14:54:52]CAPDU: 80 0D 01 02 [14:54:52]Write to MH i2c: E2 08 00 8B 02 80 0D 01 02 00 00 00 00 06 [14:54:52]Write i2c OK [14:54:52]MH_I2C_Read... [14:54:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:54:52]Read from MH i2c: E2 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: E2 03 00 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: E2 03 00 8B 02 00 90 00 01 [14:54:52]RAPDU: 90 00 [14:54:52]wFMCommunicate OK [14:54:52]wFMCommunicate request_size=255 [14:54:52]MH_SAM_APDU [14:54:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 73 00 00 00 F4 03 04 00 BC 28 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 3B 2C 01 00 35 04 06 00 16 C7 A2 36 [14:54:52]Write to MH i2c: E2 02 01 8C 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 73 00 00 00 F4 03 04 00 BC 28 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 3B 2C 01 00 35 04 06 00 16 C7 A2 36 00 00 E0 [14:54:52]Write i2c OK [14:54:52]MH_I2C_Read... [14:54:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:52]Read from MH i2c: E2 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: E2 03 00 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: E2 03 00 8C 02 00 90 00 02 [14:54:52]RAPDU: 90 00 [14:54:52]wFMCommunicate OK [14:54:52]wFMCommunicate request_size=7 [14:54:52]MH_SAM_APDU [14:54:52]CAPDU: 80 0D 02 02 02 32 79 [14:54:52]Write to MH i2c: E2 0A 00 8D 02 80 0D 02 02 02 00 32 79 00 00 B8 [14:54:52]Write i2c OK [14:54:52]MH_I2C_Read... [14:54:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:52]Read from MH i2c: E2 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: E2 03 00 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: E2 03 00 8D 02 00 90 00 03 [14:54:52]RAPDU: 90 00 [14:54:52]wFMCommunicate OK [14:54:52]wFMCommunicate request_size=4 [14:54:52]MH_SAM_APDU [14:54:52]CAPDU: 80 0D 03 02 [14:54:52]Write to MH i2c: E2 08 00 8E 02 80 0D 03 02 00 00 00 00 0B [14:54:52]Write i2c OK [14:54:52]MH_I2C_Read... [14:54:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:54:52]Read from MH i2c: E2 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: E2 0B 00 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: E2 0B 00 8E 02 00 63 73 32 C2 EF 6B 37 A0 90 00 07 [14:54:52]RAPDU: 63 73 32 C2 EF 6B 37 A0 90 00 [14:54:52]wFMCommunicate OK [14:54:52]SAM_PROTO_SignData done [14:54:52]FM_MakeSignedData done [14:54:52]CreateOFDProtocolMessage [14:54:52]wFMCommunicate request_size=4 [14:54:52]MH_SAM_APDU [14:54:52]CAPDU: 80 11 00 00 [14:54:52]Write to MH i2c: E2 08 00 8F 02 80 11 00 00 00 00 00 00 0B [14:54:52]Write i2c OK [14:54:52]MH_I2C_Read... [14:54:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:52]Read from MH i2c: E2 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: E2 17 00 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: E2 17 00 8F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 5E [14:54:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:54:52]wFMCommunicate OK [14:54:52]CreateOFDProtocolMessage done [14:54:52]OFDSenderStorePacket 76859 [14:54:52]StoreOFDPacket docnum=76859 [14:54:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 59 11 04 01 45 92 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 73 00 00 00 F4 03 04 00 BC 28 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 3B 2C 01 00 35 04 06 00 16 C7 A2 36 32 79 63 73 32 C2 EF 6B 37 A0 [14:54:52]CheckFolder [14:54:52]dirname=/storage/ofd_packets [14:54:52]CheckFolder done [14:54:52]ProducePacketName [14:54:52]name=ofd_packets/00076859 [14:54:52]NVStorageSaveData ofd_packets/00076859 [14:54:52]File name is /storage/ofd_packets/00076859 [14:54:52]Write 298 bytes [14:54:52]NVStorageSaveData done [14:54:52]OFDSenderStorePacket done [14:54:52]KKMCreateOFDPacket done [14:54:52]NVStorageSaveData kkm_last_timestamp [14:54:52]File name is /storage/kkm_last_timestamp [14:54:52]Write 4 bytes [14:54:52]NVStorageSaveData done [14:54:52]ExternCall_PrintAddStr [14:54:52]wPrintStart [14:54:52]Write to MH i2c: 01 00 00 90 02 92 [14:54:52]Write i2c OK [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: 01 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: 01 07 00 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: 01 07 00 90 02 00 00 00 00 00 FF 0F A7 [14:54:52]RasterBufferAndPrint [14:54:52]line Счет N : (1)191398 [14:54:52]line ИНН: 02508201610067 [14:54:52]line Контрольно-Кассовый Чек [14:54:52]line ПРОДАЖА [14:54:52]line ТРК (МРК, ГНК) : 23 [14:54:52]line Товар: 2710194210 [14:54:52]line ДТ-К-5 [14:54:52]line 13.720 * 72.90 [14:54:52]line = 1000.19 [14:54:52]line НДС 12% НСП 1% [14:54:52]line > о реализуемом товаре [14:54:52]line ОКРУГЛЕНИЕ: -0.19 [14:54:52]line ИТОГО: 1000.00 [14:54:52]line Внесено: 1000.00 [14:54:52]line СДАЧА: 0.00 [14:54:52]line НСП 1% : 8.85 [14:54:52]line НДС 12% : 106.21 [14:54:52]line Наличными: 1000.00 [14:54:52]line Безнал.: 0.00 [14:54:52]line Место: АЗС № 106 "Партнер Нефть" [14:54:52]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [14:54:52]line СНО: Общий режим [14:54:52]line Чек 115 21.04.2024 14:54 [14:54:52]line Смена: 372 ФФД: 1.0 [14:54:52]line ЗНМ: 0300000141 [14:54:52]line РНМ: 0000000000091573 [14:54:52]line Версия ККМ: 001 [14:54:53]line ФМ: 0000000000874652 [14:54:53]line ФД: 76859 [14:54:53]line ФПД: 25046675763833 [14:54:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T145452&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76859&fm=25046675763833&tin=02508201610067®Number=0000000000091573&sum=100000 [14:54:53]OFD Sender: Processing packet 76859 [packets to send 129, broken 128] [14:54:53]ProducePacketName [14:54:53]name=ofd_packets/00076859 [14:54:53]OFD Sender: To server: pG, [14:54:53]CommunicateWithHost lk.salyk.kg:30040 [14:54:53]ConnectInit lk.salyk.kg [14:54:53]written 0, free lines is 4095 [14:54:53]Write to MH i2c: 01 00 00 BA 02 BC [14:54:53]Write i2c OK [14:54:53]MH_I2C_Read... [14:54:53]Read from MH i2c: 01 [14:54:53]MH_I2C_Read... [14:54:53]Read from MH i2c: 01 07 00 [14:54:53]MH_I2C_Read... [14:54:53]Read from MH i2c: 01 07 00 BA 02 00 00 00 00 00 E4 0C B3 [14:54:53]RasterBufferAndPrint [14:54:53]line [14:54:53]line [14:54:53]line [14:54:53]line [14:54:53]line [14:54:53]written 0, free lines is 3303 [14:54:53]MH_Cut [14:54:53]Write to MH i2c: D1 01 00 C1 02 01 95 [14:54:53]Write i2c OK [14:54:53]MH_I2C_Read... [14:54:53]Read from MH i2c: D1 [14:54:53]MH_I2C_Read... [14:54:53]Read from MH i2c: D1 01 00 [14:54:53]MH_I2C_Read... [14:54:53]Read from MH i2c: D1 01 00 C1 02 00 94 [14:54:53]Write to MH i2c: 01 00 00 C2 02 C4 [14:54:53]Write i2c OK [14:54:53]MH_I2C_Read... [14:54:54]*** Cut start [14:54:54]*** Partial cut [14:54:54]*** CUTSNS_PIN = 1 [14:54:54]*** CUTSNS_PIN = 0 [14:54:54]*** Brake cut motor [14:54:54]Read from MH i2c: 01 [14:54:54]MH_I2C_Read... [14:54:54]*** Stop cut motor [14:54:54]*** Cut end [14:54:54]Read from MH i2c: 01 07 00 [14:54:54]MH_I2C_Read... [14:54:54]Read from MH i2c: 01 07 00 C2 02 00 00 00 00 00 FF 0F D9 [14:54:54]process_action close_receipt done [14:54:54]requested_data is exist [14:54:54]produce_requested_data [14:54:54]requested_item fm.sn is exist - process it [14:54:54]wFMCommunicate request_size=4 [14:54:54]MH_SAM_APDU [14:54:54]CAPDU: 80 11 00 00 [14:54:54]Write to MH i2c: E2 08 00 C3 02 80 11 00 00 00 00 00 00 3F [14:54:54]Write i2c OK [14:54:54]MH_I2C_Read... [14:54:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:54]Read from MH i2c: E2 [14:54:54]MH_I2C_Read... [14:54:54]Read from MH i2c: E2 17 00 [14:54:54]MH_I2C_Read... [14:54:55]Read from MH i2c: E2 17 00 C3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 92 [14:54:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:54:55]wFMCommunicate OK [14:54:55]requested_item fd.num is exist - process it [14:54:55]SAM_PROTO_GetFieldsCounters [14:54:55]wFMCommunicate request_size=4 [14:54:55]MH_SAM_APDU [14:54:55]CAPDU: 80 13 00 00 [14:54:55]Write to MH i2c: E2 08 00 C4 02 80 13 00 00 00 00 00 00 42 [14:54:55]Write i2c OK [14:54:55]MH_I2C_Read... [14:54:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:55]Read from MH i2c: E2 [14:54:55]MH_I2C_Read... [14:54:55]Read from MH i2c: E2 62 00 [14:54:55]MH_I2C_Read... [14:54:55]Read from MH i2c: E2 62 00 C4 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 3B 2C 01 00 0E 04 04 00 74 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 99 [14:54: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 3B 2C 01 00 0E 04 04 00 74 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:54:55]wFMCommunicate OK [14:54:55]SAM_PROTO_GetFieldsCounters done [14:54:55]requested_item shift.num is exist - process it [14:54:55]requested_item shift.opened is exist - process it [14:54:55]req_shift_opened [14:54:55]FM_GetShiftState [14:54:55]SAM_PROTO_GetShiftState [14:54:55]wFMCommunicate request_size=4 [14:54:55]MH_SAM_APDU [14:54:55]CAPDU: 80 13 01 00 [14:54:55]Write to MH i2c: E2 08 00 C5 02 80 13 01 00 00 00 00 00 44 [14:54:55]Write i2c OK [14:54:55]MH_I2C_Read... [14:54:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:55]Read from MH i2c: E2 [14:54:55]MH_I2C_Read... [14:54:55]Read from MH i2c: E2 0E 00 [14:54:55]MH_I2C_Read... [14:54:55]Read from MH i2c: E2 0E 00 C5 02 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 8B [14:54:55]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [14:54:55]wFMCommunicate OK [14:54:55]SAM_PROTO_GetShiftState done [14:54:55]FM_GetShiftState done [14:54:55]req_shift_opened done [14:54:55]requested_item shift.open_date is exist - process it [14:54:55]req_shift_open_date [14:54:55]req_shift_open_date done [14:54:55]produce_requested_data done [14:54:55]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76859,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [14:54:55]process_action_free close_receipt [14:54:55]json_value_free [14:54:55]json_value_free done [14:54:55]process_json_proto returns [14:54:55]Send response to host [14:54:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76859,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [14:54:55]free response buf [14:54:55]execute_script done [14:54:55]execute_script returns [14:54:55]free content buf [14:54:55]Sock 9.Close socket [14:54:55]Sock 9.Thread stoped [14:54:55]Connected sock=11 [14:54:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 59 11 04 01 45 92 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 73 00 00 00 F4 03 04 00 BC 28 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 3B 2C 01 00 35 04 06 00 16 C7 A2 36 32 79 63 73 32 C2 EF 6B 37 A0 [14:54:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 44 81 47 00 25 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 3B 2C 01 00 F4 03 04 00 43 D0 24 66 B6 04 01 00 00 4A 4E F7 B2 76 88 7A 9C [14:54:55]CommunicateWithHost err = 0 [14:54:55]CheckOFDResponse [14:54:55]1017 (14) - 77093643461234 [14:54:55]1041 (16) - 0000000000874652 [14:54:55]1040 (4) - 76859 [14:54:55]1012 (4) - 21.04.2024 08:37 [14:54:55]1206 (1) - 0 [14:54:55]OFD Sender: Remove packet 76859 [14:54:55]ProducePacketName [14:54:55]name=ofd_packets/00076859 [14:54:55]NVStorageDeleteData [14:54:56]OFD Sender: No OFD packet to send [14:55:01]OFD Sender: No OFD packet to send [14:55:06]OFD Sender: No OFD packet to send [14:55:11]OFD Sender: No OFD packet to send [14:55:16]OFD Sender: No OFD packet to send [14:55:21]OFD Sender: No OFD packet to send [14:55:26]OFD Sender: No OFD packet to send [14:55:31]OFD Sender: No OFD packet to send [14:55:36]OFD Sender: No OFD packet to send [14:55:41]OFD Sender: No OFD packet to send [14:55:46]OFD Sender: No OFD packet to send [14:55:51]OFD Sender: No OFD packet to send [14:55:56]OFD Sender: No OFD packet to send [14:56:01]OFD Sender: No OFD packet to send [14:56:06]OFD Sender: No OFD packet to send [14:56:11]OFD Sender: No OFD packet to send [14:56:16]OFD Sender: No OFD packet to send [14:56:21]OFD Sender: No OFD packet to send [14:56:26]OFD Sender: No OFD packet to send [14:56:31]OFD Sender: No OFD packet to send [14:56:36]OFD Sender: No OFD packet to send [14:56:41]OFD Sender: No OFD packet to send [14:56:46]OFD Sender: No OFD packet to send [14:56:51]OFD Sender: No OFD packet to send [14:56:56]OFD Sender: No OFD packet to send [14:57:01]OFD Sender: No OFD packet to send [14:57:06]OFD Sender: No OFD packet to send [14:57:11]OFD Sender: No OFD packet to send [14:57:16]OFD Sender: No OFD packet to send [14:57:20]accept exits with 7 [14:57:20]New connection [14:57:20]New thread 3067317604 created [14:57:20]Thread 3067460964 joined [14:57:20]Waiting for new connection... [14:57:20] Sock 7.Parse request [14:57:20]Sock 7.Check first char [14:57:20]Sock 7.First char is OK [14:57:20]request: POST /json_proto HTTP/1.0 [14:57:20]Method: POST [14:57:20]URL: /json_proto [14:57:20]Method is POST - this is cgi request [14:57:20]url: /json_proto [14:57:20]query_string will be loaded in cgi processing [14:57:20]execute_cgi json_proto POST (null) [14:57:20]execute_cgi path=json_proto method=POST [14:57:20]POST find Content-Length [14:57:20]Host: 172.17.62.5:8080 [14:57:20]Content-Length: 670 [14:57:20]Content-Type: application/json [14:57:20] [14:57:20]POST finish read [14:57:20]Found Content-Length = 670 [14:57:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 9.180, "sum" : 600.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:20]execute_script... [14:57: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)191399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 9.180, "sum" : 600.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:20]POST & json_proto [14:57:20]process_json_proto [14:57:20]json parsed OK: [14:57:20]protocol is kg_v1.0 [14:57:20]action value=close_receipt [14:57:20]process_action close_receipt [14:57:20]cmd_close_receipt [14:57:20]MH_GetDate [14:57:20]Write to MH i2c: F0 00 00 C6 02 B7 [14:57:20]Write i2c OK [14:57:20]MH_I2C_Read... [14:57:20]Read from MH i2c: F0 [14:57:20]MH_I2C_Read... [14:57:20]Read from MH i2c: F0 09 00 [14:57:20]MH_I2C_Read... [14:57:20]Read from MH i2c: F0 09 00 C6 02 00 51 29 25 66 F4 E9 65 64 6B [14:57:20]GetLastDocTimeStamp 1713711292 [14:57:20]current date 1713711441 [14:57:20]FM_GetShiftState [14:57:20]SAM_PROTO_GetShiftState [14:57:20]wFMCommunicate request_size=4 [14:57:20]MH_SAM_APDU [14:57:20]CAPDU: 80 13 01 00 [14:57:20]Write to MH i2c: E2 08 00 C7 02 80 13 01 00 00 00 00 00 46 [14:57:20]Write i2c OK [14:57:20]MH_I2C_Read... [14:57:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:20]Read from MH i2c: E2 [14:57:20]MH_I2C_Read... [14:57:20]Read from MH i2c: E2 0E 00 [14:57:20]MH_I2C_Read... [14:57:20]Read from MH i2c: E2 0E 00 C7 02 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 8D [14:57:20]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [14:57:20]wFMCommunicate OK [14:57:20]SAM_PROTO_GetShiftState done [14:57:20]FM_GetShiftState done [14:57:20]opened in 1713658965 [14:57:20]opened+sec_in_day 1713745365 [14:57:20]quantity*price = 60037 [14:57:20]sum+1 = 60038 [14:57:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 116 21.04.2024 14:57 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76860 ФПД: 15677674870735 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T145721&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76860&fm=15677674870735&tin=02508201610067®Number=0000000000091573&sum=60000 [14:57:22]StoreToDocumentArchive [14:57:22]shift 372 fd 76860 [14:57:22]save to /storage/0372/doc_00076860 [14:57:22]save last doc name /storage/0372/doc_00076860 to /storage/kkm_last_doc_name [14:57:22]save OK [14:57:22]Clear old archive folders... [14:57:22]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:57:22]tlvbuf is 017EA5D0 [14:57:22]SAM_PROTO_ClearQueue [14:57:22]wFMCommunicate request_size=4 [14:57:22]MH_SAM_APDU [14:57:22]CAPDU: 80 09 00 00 [14:57:22]Write to MH i2c: E2 08 00 D4 02 80 09 00 00 00 00 00 00 48 [14:57:22]Write i2c OK [14:57:22]MH_I2C_Read... [14:57:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:22]Read from MH i2c: E2 [14:57:22]MH_I2C_Read... [14:57:22]Read from MH i2c: E2 03 00 [14:57:22]MH_I2C_Read... [14:57:22]Read from MH i2c: E2 03 00 D4 02 00 90 00 4A [14:57:22]RAPDU: 90 00 [14:57:22]wFMCommunicate OK [14:57:22]SAM_PROTO_ClearQueue done [14:57:22]KKMCreateOFDPacket [14:57:22]OFDProtocolAddRootSTLVToBuf [14:57:22]FM_MakeSignedData [14:57:22]FM_MakeSignedData [14:57:22]SAM_PROTO_SignData [14:57:22]wFMCommunicate request_size=4 [14:57:22]MH_SAM_APDU [14:57:22]CAPDU: 80 0D 01 02 [14:57:22]Write to MH i2c: E2 08 00 D5 02 80 0D 01 02 00 00 00 00 50 [14:57:22]Write i2c OK [14:57:22]MH_I2C_Read... [14:57:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:22]Read from MH i2c: E2 [14:57:22]MH_I2C_Read... [14:57:22]Read from MH i2c: E2 03 00 [14:57:22]MH_I2C_Read... [14:57:22]Read from MH i2c: E2 03 00 D5 02 00 90 00 4B [14:57:22]RAPDU: 90 00 [14:57:22]wFMCommunicate OK [14:57:22]wFMCommunicate request_size=255 [14:57:22]MH_SAM_APDU [14:57: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 23 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 85 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 E8 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 74 00 00 00 F4 03 04 00 51 29 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 3C 2C 01 00 35 04 06 00 [14:57:22]Write to MH i2c: E2 02 01 D6 02 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 23 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 85 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 E8 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 74 00 00 00 F4 03 04 00 51 29 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 3C 2C 01 00 35 04 06 00 00 00 0A [14:57:22]Write i2c OK [14:57:22]MH_I2C_Read... [14:57:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:22]Read from MH i2c: E2 [14:57:22]MH_I2C_Read... [14:57:22]Read from MH i2c: E2 03 00 [14:57:22]MH_I2C_Read... [14:57:22]Read from MH i2c: E2 03 00 D6 02 00 90 00 4C [14:57:22]RAPDU: 90 00 [14:57:22]wFMCommunicate OK [14:57:22]wFMCommunicate request_size=11 [14:57:22]MH_SAM_APDU [14:57:22]CAPDU: 80 0D 02 02 06 0E 42 3E 3D D7 CF [14:57:22]Write to MH i2c: E2 0E 00 D7 02 80 0D 02 02 06 00 0E 42 3E 3D D7 CF 00 00 D0 [14:57:22]Write i2c OK [14:57:22]MH_I2C_Read... [14:57:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:22]Read from MH i2c: E2 [14:57:22]MH_I2C_Read... [14:57:22]Read from MH i2c: E2 03 00 [14:57:22]MH_I2C_Read... [14:57:22]Read from MH i2c: E2 03 00 D7 02 00 90 00 4D [14:57:22]RAPDU: 90 00 [14:57:22]wFMCommunicate OK [14:57:22]wFMCommunicate request_size=4 [14:57:22]MH_SAM_APDU [14:57:22]CAPDU: 80 0D 03 02 [14:57:22]Write to MH i2c: E2 08 00 D8 02 80 0D 03 02 00 00 00 00 55 [14:57:22]Write i2c OK [14:57:22]MH_I2C_Read... [14:57:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:22]Read from MH i2c: E2 [14:57:22]MH_I2C_Read... [14:57:22]Read from MH i2c: E2 0B 00 [14:57:22]MH_I2C_Read... [14:57:22]Read from MH i2c: E2 0B 00 D8 02 00 D8 D4 23 FF 1C A3 E0 A0 90 00 63 [14:57:22]RAPDU: D8 D4 23 FF 1C A3 E0 A0 90 00 [14:57:22]wFMCommunicate OK [14:57:22]SAM_PROTO_SignData done [14:57:22]FM_MakeSignedData done [14:57:22]CreateOFDProtocolMessage [14:57:22]wFMCommunicate request_size=4 [14:57:22]MH_SAM_APDU [14:57:22]CAPDU: 80 11 00 00 [14:57:22]Write to MH i2c: E2 08 00 D9 02 80 11 00 00 00 00 00 00 55 [14:57:22]Write i2c OK [14:57:22]MH_I2C_Read... [14:57:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:22]Read from MH i2c: E2 [14:57:22]MH_I2C_Read... [14:57:22]Read from MH i2c: E2 17 00 [14:57:22]MH_I2C_Read... [14:57:22]Read from MH i2c: E2 17 00 D9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 A8 [14:57:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:57:22]wFMCommunicate OK [14:57:22]CreateOFDProtocolMessage done [14:57:22]OFDSenderStorePacket 76860 [14:57:22]StoreOFDPacket docnum=76860 [14:57:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 14 45 08 01 4F 11 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 23 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 85 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 E8 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 74 00 00 00 F4 03 04 00 51 29 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 3C 2C 01 00 35 04 06 00 0E 42 3E 3D D7 CF D8 D4 23 FF 1C A3 E0 A0 [14:57:22]CheckFolder [14:57:22]dirname=/storage/ofd_packets [14:57:22]CheckFolder done [14:57:22]ProducePacketName [14:57:22]name=ofd_packets/00076860 [14:57:22]NVStorageSaveData ofd_packets/00076860 [14:57:22]File name is /storage/ofd_packets/00076860 [14:57:22]Write 302 bytes [14:57:22]NVStorageSaveData done [14:57:22]OFDSenderStorePacket done [14:57:22]KKMCreateOFDPacket done [14:57:22]NVStorageSaveData kkm_last_timestamp [14:57:22]File name is /storage/kkm_last_timestamp [14:57:22]Write 4 bytes [14:57:22]NVStorageSaveData done [14:57:22]ExternCall_PrintAddStr [14:57:22]wPrintStart [14:57:22]Write to MH i2c: 01 00 00 DA 02 DC [14:57:22]Write i2c OK [14:57:22]MH_I2C_Read... [14:57:22]Read from MH i2c: 01 [14:57:22]MH_I2C_Read... [14:57:22]Read from MH i2c: 01 07 00 [14:57:22]MH_I2C_Read... [14:57:22]Read from MH i2c: 01 07 00 DA 02 00 00 00 00 00 FF 0F F1 [14:57:22]RasterBufferAndPrint [14:57:22]line Счет N : (1)191399 [14:57:22]line ИНН: 02508201610067 [14:57:22]line Контрольно-Кассовый Чек [14:57:22]line ПРОДАЖА [14:57:22]line ТРК (МРК, ГНК) : 31 [14:57:22]line Товар: 2710124130 [14:57:22]line SUPER 92-К-5 [14:57:22]line 9.180 * 65.40 [14:57:22]line = 600.37 [14:57:22]line НДС 12% НСП 1% [14:57:22]line > о реализуемом товаре [14:57:22]line ОКРУГЛЕНИЕ: -0.37 [14:57:22]line ИТОГО: 600.00 [14:57:22]line Внесено: 600.00 [14:57:22]line СДАЧА: 0.00 [14:57:22]line НСП 1% : 5.31 [14:57:22]line НДС 12% : 63.76 [14:57:22]line Наличными: 600.00 [14:57:22]line Безнал.: 0.00 [14:57:22]line Место: АЗС № 106 "Партнер Нефть" [14:57:22]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [14:57:22]line СНО: Общий режим [14:57:22]line Чек 116 21.04.2024 14:57 [14:57:22]line Смена: 372 ФФД: 1.0 [14:57:22]line ЗНМ: 0300000141 [14:57:22]line РНМ: 0000000000091573 [14:57:22]line Версия ККМ: 001 [14:57:22]line ФМ: 0000000000874652 [14:57:22]line ФД: 76860 [14:57:22]line ФПД: 15677674870735 [14:57:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T145721&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76860&fm=15677674870735&tin=02508201610067®Number=0000000000091573&sum=60000 [14:57:22]OFD Sender: Processing packet 76860 [packets to send 129, broken 128] [14:57:22]ProducePacketName [14:57:22]name=ofd_packets/00076860 [14:57:22]OFD Sender: To server: pG, [14:57:22]CommunicateWithHost lk.salyk.kg:30040 [14:57:22]ConnectInit lk.salyk.kg [14:57:22]written 0, free lines is 4095 [14:57:23]Connected sock=9 [14:57:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 14 45 08 01 4F 11 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 23 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 85 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 E8 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 74 00 00 00 F4 03 04 00 51 29 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 3C 2C 01 00 35 04 06 00 0E 42 3E 3D D7 CF D8 D4 23 FF 1C A3 E0 A0 [14:57:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 FA 63 47 00 1D A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 3C 2C 01 00 F4 03 04 00 D7 D0 24 66 B6 04 01 00 00 9B CA C2 28 6C 92 B4 73 [14:57:23]CommunicateWithHost err = 0 [14:57:23]CheckOFDResponse [14:57:23]1017 (14) - 77093643461234 [14:57:23]1041 (16) - 0000000000874652 [14:57:23]1040 (4) - 76860 [14:57:23]1012 (4) - 21.04.2024 08:39 [14:57:23]1206 (1) - 0 [14:57:23]OFD Sender: Remove packet 76860 [14:57:23]ProducePacketName [14:57:23]name=ofd_packets/00076860 [14:57:23]NVStorageDeleteData [14:57:23]Write to MH i2c: 01 00 00 04 03 07 [14:57:23]Write i2c OK [14:57:23]MH_I2C_Read... [14:57:23]Read from MH i2c: 01 [14:57:23]MH_I2C_Read... [14:57:23]Read from MH i2c: 01 07 00 [14:57:23]MH_I2C_Read... [14:57:23]Read from MH i2c: 01 07 00 04 03 00 00 00 00 00 E5 0C FF [14:57:23]RasterBufferAndPrint [14:57:23]line [14:57:23]line [14:57:23]line [14:57:23]line [14:57:23]line [14:57:23]written 0, free lines is 3307 [14:57:23]MH_Cut [14:57:23]Write to MH i2c: D1 01 00 0B 03 01 E0 [14:57:23]Write i2c OK [14:57:23]MH_I2C_Read... [14:57:23]Read from MH i2c: D1 [14:57:23]MH_I2C_Read... [14:57:23]Read from MH i2c: D1 01 00 [14:57:23]MH_I2C_Read... [14:57:23]Read from MH i2c: D1 01 00 0B 03 00 DF [14:57:23]Write to MH i2c: 01 00 00 0C 03 0F [14:57:23]Write i2c OK [14:57:23]MH_I2C_Read... [14:57:23]OFD Sender: No OFD packet to send [14:57:24]*** Cut start [14:57:24]*** Partial cut [14:57:24]*** CUTSNS_PIN = 1 [14:57:24]*** CUTSNS_PIN = 0 [14:57:24]*** Brake cut motor [14:57:24]Read from MH i2c: 01 [14:57:24]MH_I2C_Read... [14:57:24]*** Stop cut motor [14:57:24]*** Cut end [14:57:24]Read from MH i2c: 01 07 00 [14:57:24]MH_I2C_Read... [14:57:24]Read from MH i2c: 01 07 00 0C 03 00 00 00 00 00 FF 0F 24 [14:57:24]process_action close_receipt done [14:57:24]requested_data is exist [14:57:24]produce_requested_data [14:57:24]requested_item fm.sn is exist - process it [14:57:24]wFMCommunicate request_size=4 [14:57:24]MH_SAM_APDU [14:57:24]CAPDU: 80 11 00 00 [14:57:24]Write to MH i2c: E2 08 00 0D 03 80 11 00 00 00 00 00 00 8A [14:57:24]Write i2c OK [14:57:24]MH_I2C_Read... [14:57:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:24]Read from MH i2c: E2 [14:57:24]MH_I2C_Read... [14:57:24]Read from MH i2c: E2 17 00 [14:57:24]MH_I2C_Read... [14:57:24]Read from MH i2c: E2 17 00 0D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 DD [14:57:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:57:24]wFMCommunicate OK [14:57:24]requested_item fd.num is exist - process it [14:57:24]SAM_PROTO_GetFieldsCounters [14:57:24]wFMCommunicate request_size=4 [14:57:24]MH_SAM_APDU [14:57:24]CAPDU: 80 13 00 00 [14:57:24]Write to MH i2c: E2 08 00 0E 03 80 13 00 00 00 00 00 00 8D [14:57:24]Write i2c OK [14:57:24]MH_I2C_Read... [14:57:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:24]Read from MH i2c: E2 [14:57:24]MH_I2C_Read... [14:57:24]Read from MH i2c: E2 62 00 [14:57:24]MH_I2C_Read... [14:57:24]Read from MH i2c: E2 62 00 0E 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 3C 2C 01 00 0E 04 04 00 74 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 E8 [14:57: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 3C 2C 01 00 0E 04 04 00 74 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:57:24]wFMCommunicate OK [14:57:24]SAM_PROTO_GetFieldsCounters done [14:57:24]requested_item shift.num is exist - process it [14:57:24]requested_item shift.opened is exist - process it [14:57:24]req_shift_opened [14:57:24]FM_GetShiftState [14:57:24]SAM_PROTO_GetShiftState [14:57:24]wFMCommunicate request_size=4 [14:57:24]MH_SAM_APDU [14:57:24]CAPDU: 80 13 01 00 [14:57:24]Write to MH i2c: E2 08 00 0F 03 80 13 01 00 00 00 00 00 8F [14:57:24]Write i2c OK [14:57:24]MH_I2C_Read... [14:57:24]Read from MH i2c: E2 [14:57:24]MH_I2C_Read... [14:57:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:25]Read from MH i2c: E2 0E 00 [14:57:25]MH_I2C_Read... [14:57:25]Read from MH i2c: E2 0E 00 0F 03 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 D6 [14:57:25]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [14:57:25]wFMCommunicate OK [14:57:25]SAM_PROTO_GetShiftState done [14:57:25]FM_GetShiftState done [14:57:25]req_shift_opened done [14:57:25]requested_item shift.open_date is exist - process it [14:57:25]req_shift_open_date [14:57:25]req_shift_open_date done [14:57:25]produce_requested_data done [14:57:25]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76860,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [14:57:25]process_action_free close_receipt [14:57:25]json_value_free [14:57:25]json_value_free done [14:57:25]process_json_proto returns [14:57:25]Send response to host [14:57:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76860,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [14:57:25]free response buf [14:57:25]execute_script done [14:57:25]execute_script returns [14:57:25]free content buf [14:57:25]Sock 7.Close socket [14:57:25]Sock 7.Thread stoped [14:57:28]OFD Sender: No OFD packet to send [14:57:33]OFD Sender: No OFD packet to send [14:57:38]OFD Sender: No OFD packet to send [14:57:43]OFD Sender: No OFD packet to send [14:57:48]OFD Sender: No OFD packet to send [14:57:53]OFD Sender: No OFD packet to send [14:57:58]OFD Sender: No OFD packet to send [14:58:03]OFD Sender: No OFD packet to send [14:58:08]OFD Sender: No OFD packet to send [14:58:13]OFD Sender: No OFD packet to send [14:58:18]OFD Sender: No OFD packet to send [14:58:23]OFD Sender: No OFD packet to send [14:58:28]OFD Sender: No OFD packet to send [14:58:33]OFD Sender: No OFD packet to send [14:58:38]OFD Sender: No OFD packet to send [14:58:43]OFD Sender: No OFD packet to send [14:58:48]OFD Sender: No OFD packet to send [14:58:53]OFD Sender: No OFD packet to send [14:58:58]OFD Sender: No OFD packet to send [14:59:03]OFD Sender: No OFD packet to send [14:59:08]OFD Sender: No OFD packet to send [14:59:13]OFD Sender: No OFD packet to send [14:59:18]OFD Sender: No OFD packet to send [14:59:23]OFD Sender: No OFD packet to send [14:59:28]OFD Sender: No OFD packet to send [14:59:33]OFD Sender: No OFD packet to send [14:59:38]OFD Sender: No OFD packet to send [14:59:44]OFD Sender: No OFD packet to send [14:59:49]OFD Sender: No OFD packet to send [14:59:54]OFD Sender: No OFD packet to send [14:59:59]OFD Sender: No OFD packet to send [15:00:04]OFD Sender: No OFD packet to send [15:00:09]OFD Sender: No OFD packet to send [15:00:14]OFD Sender: No OFD packet to send [15:00: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:19]OFD Sender: No OFD packet to send [15:01:24]OFD Sender: No OFD packet to send [15:01:29]OFD Sender: No OFD packet to send [15:01:34]OFD Sender: No OFD packet to send [15:01:39]OFD Sender: No OFD packet to send [15:01:44]OFD Sender: No OFD packet to send [15:01:49]OFD Sender: No OFD packet to send [15:01:54]OFD Sender: No OFD packet to send [15:01:59]OFD Sender: No OFD packet to send [15:02:04]OFD Sender: No OFD packet to send [15:02:09]OFD Sender: No OFD packet to send [15:02:14]OFD Sender: No OFD packet to send [15:02:19]OFD Sender: No OFD packet to send [15:02:24]OFD Sender: No OFD packet to send [15:02:29]OFD Sender: No OFD packet to send [15:02:34]OFD Sender: No OFD packet to send [15:02:39]OFD Sender: No OFD packet to send [15:02:44]OFD Sender: No OFD packet to send [15:02:49]OFD Sender: No OFD packet to send [15:02:54]OFD Sender: No OFD packet to send [15:02:59]OFD Sender: No OFD packet to send [15:03:04]OFD Sender: No OFD packet to send [15:03:09]OFD Sender: No OFD packet to send [15:03:14]OFD Sender: No OFD packet to send [15:03:19]OFD Sender: No OFD packet to send [15:03:24]OFD Sender: No OFD packet to send [15:03:29]OFD Sender: No OFD packet to send [15:03:34]OFD Sender: No OFD packet to send [15:03:39]OFD Sender: No OFD packet to send [15:03:44]OFD Sender: No OFD packet to send [15:03:49]OFD Sender: No OFD packet to send [15:03:49]accept exits with 10 [15:03:49]New connection [15:03:49]New thread 3067460964 created [15:03:49]Thread 3067317604 joined [15:03:49]Waiting for new connection... [15:03:49] Sock 10.Parse request [15:03:49]Sock 10.Check first char [15:03:49]Sock 10.First char is OK [15:03:49]request: POST /json_proto HTTP/1.0 [15:03:49]Method: POST [15:03:49]URL: /json_proto [15:03:49]Method is POST - this is cgi request [15:03:49]url: /json_proto [15:03:49]query_string will be loaded in cgi processing [15:03:49]execute_cgi json_proto POST (null) [15:03:49]execute_cgi path=json_proto method=POST [15:03:49]POST find Content-Length [15:03:49]Host: 172.17.62.5:8080 [15:03:49]Content-Length: 670 [15:03:49]Content-Type: application/json [15:03:49] [15:03:49]POST finish read [15:03:49]Found Content-Length = 670 [15:03:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 7.650, "sum" : 500.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:03:49]execute_script... [15:03: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)191400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 7.650, "sum" : 500.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:03:49]POST & json_proto [15:03:49]process_json_proto [15:03:49]json parsed OK: [15:03:49]protocol is kg_v1.0 [15:03:49]action value=close_receipt [15:03:49]process_action close_receipt [15:03:49]cmd_close_receipt [15:03:49]MH_GetDate [15:03:49]Write to MH i2c: F0 00 00 10 03 02 [15:03:49]Write i2c OK [15:03:49]MH_I2C_Read... [15:03:49]Read from MH i2c: F0 [15:03:49]MH_I2C_Read... [15:03:49]Read from MH i2c: F0 09 00 [15:03:49]MH_I2C_Read... [15:03:49]Read from MH i2c: F0 09 00 10 03 00 D6 2A 25 66 F4 E9 65 64 3C [15:03:49]GetLastDocTimeStamp 1713711441 [15:03:49]current date 1713711830 [15:03:49]FM_GetShiftState [15:03:49]SAM_PROTO_GetShiftState [15:03:49]wFMCommunicate request_size=4 [15:03:49]MH_SAM_APDU [15:03:49]CAPDU: 80 13 01 00 [15:03:49]Write to MH i2c: E2 08 00 11 03 80 13 01 00 00 00 00 00 91 [15:03:49]Write i2c OK [15:03:49]MH_I2C_Read... [15:03:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:49]Read from MH i2c: E2 [15:03:49]MH_I2C_Read... [15:03:49]Read from MH i2c: E2 0E 00 [15:03:49]MH_I2C_Read... [15:03:49]Read from MH i2c: E2 0E 00 11 03 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 D8 [15:03:49]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [15:03:49]wFMCommunicate OK [15:03:49]SAM_PROTO_GetShiftState done [15:03:49]FM_GetShiftState done [15:03:49]opened in 1713658965 [15:03:49]opened+sec_in_day 1713745365 [15:03:49]quantity*price = 50031 [15:03:49]sum+1 = 50032 [15:03:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 117 21.04.2024 15:03 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76861 ФПД: 167598185061576 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T150350&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76861&fm=167598185061576&tin=02508201610067®Number=0000000000091573&sum=50000 [15:03:50]StoreToDocumentArchive [15:03:50]shift 372 fd 76861 [15:03:50]save to /storage/0372/doc_00076861 [15:03:50]save last doc name /storage/0372/doc_00076861 to /storage/kkm_last_doc_name [15:03:50]save OK [15:03:50]Clear old archive folders... [15:03:50]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:03:50]tlvbuf is 017E7160 [15:03:50]SAM_PROTO_ClearQueue [15:03:50]wFMCommunicate request_size=4 [15:03:50]MH_SAM_APDU [15:03:50]CAPDU: 80 09 00 00 [15:03:50]Write to MH i2c: E2 08 00 1E 03 80 09 00 00 00 00 00 00 93 [15:03:50]Write i2c OK [15:03:50]MH_I2C_Read... [15:03:50]Read from MH i2c: E2 [15:03:50]MH_I2C_Read... [15:03:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:03:50]Read from MH i2c: E2 03 00 [15:03:50]MH_I2C_Read... [15:03:50]Read from MH i2c: E2 03 00 1E 03 00 90 00 95 [15:03:50]RAPDU: 90 00 [15:03:50]wFMCommunicate OK [15:03:50]SAM_PROTO_ClearQueue done [15:03:50]KKMCreateOFDPacket [15:03:50]OFDProtocolAddRootSTLVToBuf [15:03:50]FM_MakeSignedData [15:03:50]FM_MakeSignedData [15:03:50]SAM_PROTO_SignData [15:03:50]wFMCommunicate request_size=4 [15:03:50]MH_SAM_APDU [15:03:50]CAPDU: 80 0D 01 02 [15:03:50]Write to MH i2c: E2 08 00 1F 03 80 0D 01 02 00 00 00 00 9B [15:03:50]Write i2c OK [15:03:50]MH_I2C_Read... [15:03:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:03:50]Read from MH i2c: E2 [15:03:50]MH_I2C_Read... [15:03:50]Read from MH i2c: E2 03 00 [15:03:50]MH_I2C_Read... [15:03:50]Read from MH i2c: E2 03 00 1F 03 00 90 00 96 [15:03:50]RAPDU: 90 00 [15:03:50]wFMCommunicate OK [15:03:50]wFMCommunicate request_size=255 [15:03:50]MH_SAM_APDU [15:03: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 1D 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 75 00 00 00 F4 03 04 00 D6 2A 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 3D 2C 01 00 35 04 06 00 [15:03:50]Write to MH i2c: E2 02 01 20 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 1D 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 75 00 00 00 F4 03 04 00 D6 2A 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 3D 2C 01 00 35 04 06 00 00 00 AE [15:03:50]Write i2c OK [15:03:50]MH_I2C_Read... [15:03:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:51]Read from MH i2c: E2 [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: E2 03 00 [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: E2 03 00 20 03 00 90 00 97 [15:03:51]RAPDU: 90 00 [15:03:51]wFMCommunicate OK [15:03:51]wFMCommunicate request_size=11 [15:03:51]MH_SAM_APDU [15:03:51]CAPDU: 80 0D 02 02 06 98 6D FE 49 1C C8 [15:03:51]Write to MH i2c: E2 0E 00 21 03 80 0D 02 02 06 00 98 6D FE 49 1C C8 00 00 DA [15:03:51]Write i2c OK [15:03:51]MH_I2C_Read... [15:03:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:51]Read from MH i2c: E2 [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: E2 03 00 [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: E2 03 00 21 03 00 90 00 98 [15:03:51]RAPDU: 90 00 [15:03:51]wFMCommunicate OK [15:03:51]wFMCommunicate request_size=4 [15:03:51]MH_SAM_APDU [15:03:51]CAPDU: 80 0D 03 02 [15:03:51]Write to MH i2c: E2 08 00 22 03 80 0D 03 02 00 00 00 00 A0 [15:03:51]Write i2c OK [15:03:51]MH_I2C_Read... [15:03:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:03:51]Read from MH i2c: E2 [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: E2 0B 00 [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: E2 0B 00 22 03 00 43 F2 F6 18 18 EE 27 CE 90 00 DF [15:03:51]RAPDU: 43 F2 F6 18 18 EE 27 CE 90 00 [15:03:51]wFMCommunicate OK [15:03:51]SAM_PROTO_SignData done [15:03:51]FM_MakeSignedData done [15:03:51]CreateOFDProtocolMessage [15:03:51]wFMCommunicate request_size=4 [15:03:51]MH_SAM_APDU [15:03:51]CAPDU: 80 11 00 00 [15:03:51]Write to MH i2c: E2 08 00 23 03 80 11 00 00 00 00 00 00 A0 [15:03:51]Write i2c OK [15:03:51]MH_I2C_Read... [15:03:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:51]Read from MH i2c: E2 [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: E2 17 00 [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: E2 17 00 23 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F3 [15:03:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [15:03:51]wFMCommunicate OK [15:03:51]CreateOFDProtocolMessage done [15:03:51]OFDSenderStorePacket 76861 [15:03:51]StoreOFDPacket docnum=76861 [15:03:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 36 0E 08 01 7B 21 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 1D 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 75 00 00 00 F4 03 04 00 D6 2A 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 3D 2C 01 00 35 04 06 00 98 6D FE 49 1C C8 43 F2 F6 18 18 EE 27 CE [15:03:51]CheckFolder [15:03:51]dirname=/storage/ofd_packets [15:03:51]CheckFolder done [15:03:51]ProducePacketName [15:03:51]name=ofd_packets/00076861 [15:03:51]NVStorageSaveData ofd_packets/00076861 [15:03:51]File name is /storage/ofd_packets/00076861 [15:03:51]Write 302 bytes [15:03:51]NVStorageSaveData done [15:03:51]OFDSenderStorePacket done [15:03:51]KKMCreateOFDPacket done [15:03:51]NVStorageSaveData kkm_last_timestamp [15:03:51]File name is /storage/kkm_last_timestamp [15:03:51]Write 4 bytes [15:03:51]NVStorageSaveData done [15:03:51]ExternCall_PrintAddStr [15:03:51]wPrintStart [15:03:51]Write to MH i2c: 01 00 00 24 03 27 [15:03:51]Write i2c OK [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: 01 [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: 01 07 00 [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: 01 07 00 24 03 00 00 00 00 00 FF 0F 3C [15:03:51]RasterBufferAndPrint [15:03:51]line Счет N : (1)191400 [15:03:51]line ИНН: 02508201610067 [15:03:51]line Контрольно-Кассовый Чек [15:03:51]line ПРОДАЖА [15:03:51]line ТРК (МРК, ГНК) : 31 [15:03:51]line Товар: 2710124130 [15:03:51]line SUPER 92-К-5 [15:03:51]line 7.650 * 65.40 [15:03:51]line = 500.31 [15:03:51]line НДС 12% НСП 1% [15:03:51]line > о реализуемом товаре [15:03:51]line ОКРУГЛЕНИЕ: -0.31 [15:03:51]line ИТОГО: 500.00 [15:03:51]line Внесено: 500.00 [15:03:51]line СДАЧА: 0.00 [15:03:51]line НСП 1% : 4.43 [15:03:51]line НДС 12% : 53.13 [15:03:51]line Наличными: 500.00 [15:03:51]line Безнал.: 0.00 [15:03:51]line Место: АЗС № 106 "Партнер Нефть" [15:03:51]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [15:03:51]line СНО: Общий режим [15:03:51]line Чек 117 21.04.2024 15:03 [15:03:51]line Смена: 372 ФФД: 1.0 [15:03:51]line ЗНМ: 0300000141 [15:03:51]line РНМ: 0000000000091573 [15:03:51]line Версия ККМ: 001 [15:03:51]line ФМ: 0000000000874652 [15:03:51]line ФД: 76861 [15:03:51]line ФПД: 167598185061576 [15:03:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T150350&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76861&fm=167598185061576&tin=02508201610067®Number=0000000000091573&sum=50000 [15:03:51]written 0, free lines is 4095 [15:03:51]OFD Sender: Processing packet 76861 [packets to send 129, broken 128] [15:03:51]ProducePacketName [15:03:51]name=ofd_packets/00076861 [15:03:51]OFD Sender: To server: pG, [15:03:51]CommunicateWithHost lk.salyk.kg:30040 [15:03:51]ConnectInit lk.salyk.kg [15:03:51]Write to MH i2c: 01 00 00 4E 03 51 [15:03:51]Write i2c OK [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: 01 [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: 01 07 00 [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: 01 07 00 4E 03 00 00 00 00 00 E5 0C 49 [15:03:51]RasterBufferAndPrint [15:03:51]line [15:03:51]line [15:03:51]line [15:03:51]line [15:03:51]line [15:03:51]written 0, free lines is 3307 [15:03:51]MH_Cut [15:03:51]Write to MH i2c: D1 01 00 55 03 01 2A [15:03:51]Write i2c OK [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: D1 [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: D1 01 00 [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: D1 01 00 55 03 00 29 [15:03:51]Write to MH i2c: 01 00 00 56 03 59 [15:03:51]Write i2c OK [15:03:51]MH_I2C_Read... [15:03:52]Connected sock=11 [15:03:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 36 0E 08 01 7B 21 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 1D 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 75 00 00 00 F4 03 04 00 D6 2A 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 3D 2C 01 00 35 04 06 00 98 6D FE 49 1C C8 43 F2 F6 18 18 EE 27 CE [15:03:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 81 4E 47 00 88 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 34 36 35 32 10 04 04 00 3D 2C 01 00 F4 03 04 00 5C D2 24 66 B6 04 01 00 00 46 B5 F1 E8 34 90 99 D0 [15:03:52]CommunicateWithHost err = 0 [15:03:52]CheckOFDResponse [15:03:52]1017 (14) - 77093643461234 [15:03:52]1041 (16) - 0000000000874652 [15:03:52]1040 (4) - 76861 [15:03:52]1012 (4) - 21.04.2024 08:46 [15:03:52]1206 (1) - 0 [15:03:52]OFD Sender: Remove packet 76861 [15:03:52]ProducePacketName [15:03:52]name=ofd_packets/00076861 [15:03:52]NVStorageDeleteData [15:03:52]*** Cut start [15:03:52]*** Partial cut [15:03:52]*** CUTSNS_PIN = 1 [15:03:52]*** CUTSNS_PIN = 0 [15:03:52]*** Brake cut motor [15:03:53]OFD Sender: No OFD packet to send [15:03:53]Read from MH i2c: 01 [15:03:53]MH_I2C_Read... [15:03:53]*** Stop cut motor [15:03:53]*** Cut end [15:03:53]Read from MH i2c: 01 07 00 [15:03:53]MH_I2C_Read... [15:03:53]Read from MH i2c: 01 07 00 56 03 00 00 00 00 00 FF 0F 6E [15:03:53]process_action close_receipt done [15:03:53]requested_data is exist [15:03:53]produce_requested_data [15:03:53]requested_item fm.sn is exist - process it [15:03:53]wFMCommunicate request_size=4 [15:03:53]MH_SAM_APDU [15:03:53]CAPDU: 80 11 00 00 [15:03:53]Write to MH i2c: E2 08 00 57 03 80 11 00 00 00 00 00 00 D4 [15:03:53]Write i2c OK [15:03:53]MH_I2C_Read... [15:03:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:53]Read from MH i2c: E2 [15:03:53]MH_I2C_Read... [15:03:53]Read from MH i2c: E2 17 00 [15:03:53]MH_I2C_Read... [15:03:53]Read from MH i2c: E2 17 00 57 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 27 [15:03:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [15:03:53]wFMCommunicate OK [15:03:53]requested_item fd.num is exist - process it [15:03:53]SAM_PROTO_GetFieldsCounters [15:03:53]wFMCommunicate request_size=4 [15:03:53]MH_SAM_APDU [15:03:53]CAPDU: 80 13 00 00 [15:03:53]Write to MH i2c: E2 08 00 58 03 80 13 00 00 00 00 00 00 D7 [15:03:53]Write i2c OK [15:03:53]MH_I2C_Read... [15:03:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:03:53]Read from MH i2c: E2 [15:03:53]MH_I2C_Read... [15:03:53]Read from MH i2c: E2 62 00 [15:03:53]MH_I2C_Read... [15:03:53]Read from MH i2c: E2 62 00 58 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 3D 2C 01 00 0E 04 04 00 74 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 36 [15:03: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 3D 2C 01 00 0E 04 04 00 74 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 [15:03:53]wFMCommunicate OK [15:03:53]SAM_PROTO_GetFieldsCounters done [15:03:53]requested_item shift.num is exist - process it [15:03:53]requested_item shift.opened is exist - process it [15:03:53]req_shift_opened [15:03:53]FM_GetShiftState [15:03:53]SAM_PROTO_GetShiftState [15:03:53]wFMCommunicate request_size=4 [15:03:53]MH_SAM_APDU [15:03:53]CAPDU: 80 13 01 00 [15:03:53]Write to MH i2c: E2 08 00 59 03 80 13 01 00 00 00 00 00 D9 [15:03:53]Write i2c OK [15:03:53]MH_I2C_Read... [15:03:53]Read from MH i2c: E2 [15:03:53]MH_I2C_Read... [15:03:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:53]Read from MH i2c: E2 0E 00 [15:03:53]MH_I2C_Read... [15:03:53]Read from MH i2c: E2 0E 00 59 03 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 20 [15:03:53]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [15:03:53]wFMCommunicate OK [15:03:53]SAM_PROTO_GetShiftState done [15:03:53]FM_GetShiftState done [15:03:53]req_shift_opened done [15:03:53]requested_item shift.open_date is exist - process it [15:03:53]req_shift_open_date [15:03:53]req_shift_open_date done [15:03:53]produce_requested_data done [15:03:53]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76861,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [15:03:53]process_action_free close_receipt [15:03:53]json_value_free [15:03:53]json_value_free done [15:03:53]process_json_proto returns [15:03:53]Send response to host [15:03:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76861,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [15:03:53]free response buf [15:03:53]execute_script done [15:03:53]execute_script returns [15:03:53]free content buf [15:03:53]Sock 10.Close socket [15:03:53]Sock 10.Thread stoped [15:03:58]OFD Sender: No OFD packet to send [15:04:03]OFD Sender: No OFD packet to send [15:04:08]OFD Sender: No OFD packet to send [15:04:13]OFD Sender: No OFD packet to send [15:04:18]OFD Sender: No OFD packet to send [15:04:23]OFD Sender: No OFD packet to send [15:04:28]OFD Sender: No OFD packet to send [15:04:33]OFD Sender: No OFD packet to send [15:04:38]OFD Sender: No OFD packet to send [15:04:43]OFD Sender: No OFD packet to send [15:04:48]OFD Sender: No OFD packet to send [15:04:53]OFD Sender: No OFD packet to send [15:04:58]OFD Sender: No OFD packet to send [15:05:03]OFD Sender: No OFD packet to send [15:05:08]OFD Sender: No OFD packet to send [15:05:13]OFD Sender: No OFD packet to send [15:05:18]OFD Sender: No OFD packet to send [15:05:23]OFD Sender: No OFD packet to send [15:05:28]OFD Sender: No OFD packet to send [15:05:33]OFD Sender: No OFD packet to send [15:05:38]OFD Sender: No OFD packet to send [15:05:43]OFD Sender: No OFD packet to send [15:05:48]OFD Sender: No OFD packet to send [15:05:53]OFD Sender: No OFD packet to send [15:05:58]OFD Sender: No OFD packet to send [15:06:03]OFD Sender: No OFD packet to send [15:06:08]OFD Sender: No OFD packet to send [15:06:13]OFD Sender: No OFD packet to send [15:06:18]OFD Sender: No OFD packet to send [15:06:23]OFD Sender: No OFD packet to send [15:06:28]OFD Sender: No OFD packet to send [15:06:33]OFD Sender: No OFD packet to send [15:06:38]OFD Sender: No OFD packet to send [15:06:43]OFD Sender: No OFD packet to send [15:06:48]OFD Sender: No OFD packet to send [15:06:53]OFD Sender: No OFD packet to send [15:06:58]OFD Sender: No OFD packet to send [15:07:03]OFD Sender: No OFD packet to send [15:07:08]OFD Sender: No OFD packet to send [15:07:13]OFD Sender: No OFD packet to send [15:07:18]OFD Sender: No OFD packet to send [15:07:23]OFD Sender: No OFD packet to send [15:07:28]OFD Sender: No OFD packet to send [15:07:33]OFD Sender: No OFD packet to send [15:07:38]OFD Sender: No OFD packet to send [15:07:43]OFD Sender: No OFD packet to send [15:07:48]OFD Sender: No OFD packet to send [15:07:53]OFD Sender: No OFD packet to send [15:07:58]OFD Sender: No OFD packet to send [15:08:03]OFD Sender: No OFD packet to send [15:08:08]OFD Sender: No OFD packet to send [15:08:13]OFD Sender: No OFD packet to send [15:08:18]OFD Sender: No OFD packet to send [15:08:23]OFD Sender: No OFD packet to send [15:08:28]OFD Sender: No OFD packet to send [15:08:33]OFD Sender: No OFD packet to send [15:08:38]OFD Sender: No OFD packet to send [15:08:43]OFD Sender: No OFD packet to send [15:08:48]OFD Sender: No OFD packet to send [15:08:53]OFD Sender: No OFD packet to send [15:08:58]OFD Sender: No OFD packet to send [15:09:03]OFD Sender: No OFD packet to send [15:09:08]OFD Sender: No OFD packet to send [15:09:13]OFD Sender: No OFD packet to send [15:09:18]OFD Sender: No OFD packet to send [15:09:23]OFD Sender: No OFD packet to send [15:09:28]OFD Sender: No OFD packet to send [15:09:33]OFD Sender: No OFD packet to send [15:09:38]OFD Sender: No OFD packet to send [15:09:43]OFD Sender: No OFD packet to send [15:09:48]OFD Sender: No OFD packet to send [15:09:53]OFD Sender: No OFD packet to send [15:09:58]OFD Sender: No OFD packet to send [15:10:03]OFD Sender: No OFD packet to send [15:10:08]OFD Sender: No OFD packet to send [15:10:13]OFD Sender: No OFD packet to send [15:10:18]OFD Sender: No OFD packet to send [15:10:23]OFD Sender: No OFD packet to send [15:10:28]OFD Sender: No OFD packet to send [15:10:33]OFD Sender: No OFD packet to send [15:10:38]OFD Sender: No OFD packet to send [15:10:43]OFD Sender: No OFD packet to send [15:10:48]OFD Sender: No OFD packet to send [15:10:53]OFD Sender: No OFD packet to send [15:10:58]OFD Sender: No OFD packet to send [15:11:03]OFD Sender: No OFD packet to send [15:11:08]OFD Sender: No OFD packet to send [15:11:13]OFD Sender: No OFD packet to send [15:11:18]OFD Sender: No OFD packet to send [15:11:23]OFD Sender: No OFD packet to send [15:11:28]OFD Sender: No OFD packet to send [15:11:33]OFD Sender: No OFD packet to send [15:11:38]OFD Sender: No OFD packet to send [15:11:43]OFD Sender: No OFD packet to send [15:11:48]OFD Sender: No OFD packet to send [15:11:53]OFD Sender: No OFD packet to send [15:11:58]OFD Sender: No OFD packet to send [15:12:03]OFD Sender: No OFD packet to send [15:12:08]OFD Sender: No OFD packet to send [15:12:13]OFD Sender: No OFD packet to send [15:12:18]OFD Sender: No OFD packet to send [15:12:23]OFD Sender: No OFD packet to send [15:12:28]OFD Sender: No OFD packet to send [15:12:33]OFD Sender: No OFD packet to send [15:12:38]OFD Sender: No OFD packet to send [15:12:43]OFD Sender: No OFD packet to send [15:12:48]OFD Sender: No OFD packet to send [15:12:53]OFD Sender: No OFD packet to send [15:12:58]OFD Sender: No OFD packet to send [15:13:03]OFD Sender: No OFD packet to send [15:13:08]OFD Sender: No OFD packet to send [15:13:13]OFD Sender: No OFD packet to send [15:13:18]OFD Sender: No OFD packet to send [15:13:23]OFD Sender: No OFD packet to send [15:13:28]OFD Sender: No OFD packet to send [15:13:33]OFD Sender: No OFD packet to send [15:13:38]OFD Sender: No OFD packet to send [15:13:43]OFD Sender: No OFD packet to send [15:13:48]OFD Sender: No OFD packet to send [15:13:53]OFD Sender: No OFD packet to send [15:13:58]OFD Sender: No OFD packet to send [15:14:03]OFD Sender: No OFD packet to send [15:14:08]OFD Sender: No OFD packet to send [15:14:13]OFD Sender: No OFD packet to send [15:14:18]OFD Sender: No OFD packet to send [15:14:23]OFD Sender: No OFD packet to send [15:14:28]OFD Sender: No OFD packet to send [15:14:33]OFD Sender: No OFD packet to send [15:14:38]OFD Sender: No OFD packet to send [15:14:43]OFD Sender: No OFD packet to send [15:14:48]OFD Sender: No OFD packet to send [15:14:53]OFD Sender: No OFD packet to send [15:14:58]OFD Sender: No OFD packet to send [15:15:03]OFD Sender: No OFD packet to send [15:15:08]OFD Sender: No OFD packet to send [15:15:13]OFD Sender: No OFD packet to send [15:15:18]OFD Sender: No OFD packet to send [15:15:23]OFD Sender: No OFD packet to send [15:15:28]OFD Sender: No OFD packet to send [15:15:33]OFD Sender: No OFD packet to send [15:15:38]OFD Sender: No OFD packet to send [15:15:43]OFD Sender: No OFD packet to send [15:15:48]OFD Sender: No OFD packet to send [15:15:53]OFD Sender: No OFD packet to send [15:15:58]OFD Sender: No OFD packet to send [15:16:03]OFD Sender: No OFD packet to send [15:16:08]OFD Sender: No OFD packet to send [15:16:13]OFD Sender: No OFD packet to send [15:16:18]OFD Sender: No OFD packet to send [15:16:23]OFD Sender: No OFD packet to send [15:16:28]OFD Sender: No OFD packet to send [15:16:33]OFD Sender: No OFD packet to send [15:16:38]OFD Sender: No OFD packet to send [15:16:43]OFD Sender: No OFD packet to send [15:16:48]OFD Sender: No OFD packet to send [15:16:53]OFD Sender: No OFD packet to send [15:16:58]OFD Sender: No OFD packet to send [15:17:03]OFD Sender: No OFD packet to send [15:17:08]OFD Sender: No OFD packet to send [15:17:13]OFD Sender: No OFD packet to send [15:17:18]OFD Sender: No OFD packet to send [15:17:23]OFD Sender: No OFD packet to send [15:17:28]OFD Sender: No OFD packet to send [15:17:33]OFD Sender: No OFD packet to send [15:17:38]OFD Sender: No OFD packet to send [15:17:44]OFD Sender: No OFD packet to send [15:17:49]OFD Sender: No OFD packet to send [15:17:54]OFD Sender: No OFD packet to send [15:17:59]OFD Sender: No OFD packet to send [15:18:04]OFD Sender: No OFD packet to send [15:18:09]OFD Sender: No OFD packet to send [15:18:14]OFD Sender: No OFD packet to send [15:18:19]OFD Sender: No OFD packet to send [15:18:24]OFD Sender: No OFD packet to send [15:18:29]OFD Sender: No OFD packet to send [15:18:34]OFD Sender: No OFD packet to send [15:18:39]OFD Sender: No OFD packet to send [15:18:44]OFD Sender: No OFD packet to send [15:18:49]OFD Sender: No OFD packet to send [15:18:54]OFD Sender: No OFD packet to send [15:18:59]OFD Sender: No OFD packet to send [15:19:04]OFD Sender: No OFD packet to send [15:19:09]OFD Sender: No OFD packet to send [15:19:14]OFD Sender: No OFD packet to send [15:19:19]OFD Sender: No OFD packet to send [15:19:24]OFD Sender: No OFD packet to send [15:19:29]OFD Sender: No OFD packet to send [15:19:34]OFD Sender: No OFD packet to send [15:19:39]OFD Sender: No OFD packet to send [15:19:44]OFD Sender: No OFD packet to send [15:19:49]OFD Sender: No OFD packet to send [15:19:54]OFD Sender: No OFD packet to send [15:19:59]OFD Sender: No OFD packet to send [15:20:04]OFD Sender: No OFD packet to send [15:20:09]OFD Sender: No OFD packet to send [15:20:14]OFD Sender: No OFD packet to send [15:20:19]OFD Sender: No OFD packet to send [15:20:24]OFD Sender: No OFD packet to send [15:20:29]OFD Sender: No OFD packet to send [15:20:34]OFD Sender: No OFD packet to send [15:20:39]OFD Sender: No OFD packet to send [15:20:44]OFD Sender: No OFD packet to send [15:20:49]OFD Sender: No OFD packet to send [15:20:54]OFD Sender: No OFD packet to send [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:59]OFD Sender: No OFD packet to send [15:22:04]OFD Sender: No OFD packet to send [15:22:09]OFD Sender: No OFD packet to send [15:22:14]OFD Sender: No OFD packet to send [15:22:19]OFD Sender: No OFD packet to send [15:22:24]OFD Sender: No OFD packet to send [15:22:29]OFD Sender: No OFD packet to send [15:22:34]OFD Sender: No OFD packet to send [15:22:39]OFD Sender: No OFD packet to send [15:22:44]OFD Sender: No OFD packet to send [15:22:49]OFD Sender: No OFD packet to send [15:22:54]OFD Sender: No OFD packet to send [15:22:59]OFD Sender: No OFD packet to send [15:23:04]OFD Sender: No OFD packet to send [15:23:09]OFD Sender: No OFD packet to send [15:23:14]OFD Sender: No OFD packet to send [15:23:19]OFD Sender: No OFD packet to send [15:23:24]OFD Sender: No OFD packet to send [15:23:29]OFD Sender: No OFD packet to send [15:23:34]OFD Sender: No OFD packet to send [15:23:39]OFD Sender: No OFD packet to send [15:23:44]OFD Sender: No OFD packet to send [15:23:49]OFD Sender: No OFD packet to send [15:23:54]OFD Sender: No OFD packet to send [15:23:59]OFD Sender: No OFD packet to send [15:24:04]OFD Sender: No OFD packet to send [15:24:09]OFD Sender: No OFD packet to send [15:24:14]OFD Sender: No OFD packet to send [15:24:19]OFD Sender: No OFD packet to send [15:24:24]OFD Sender: No OFD packet to send [15:24:29]OFD Sender: No OFD packet to send [15:24:34]OFD Sender: No OFD packet to send [15:24:39]OFD Sender: No OFD packet to send [15:24:44]OFD Sender: No OFD packet to send [15:24:49]OFD Sender: No OFD packet to send [15:24:54]OFD Sender: No OFD packet to send [15:24:59]OFD Sender: No OFD packet to send [15:25:04]OFD Sender: No OFD packet to send [15:25:09]OFD Sender: No OFD packet to send [15:25:14]OFD Sender: No OFD packet to send [15:25:19]OFD Sender: No OFD packet to send [15:25:24]OFD Sender: No OFD packet to send [15:25:29]OFD Sender: No OFD packet to send [15:25:34]OFD Sender: No OFD packet to send [15:25:36]accept exits with 7 [15:25:36]New connection [15:25:36]New thread 3067317604 created [15:25:36]Thread 3067460964 joined [15:25:36]Waiting for new connection... [15:25:36] Sock 7.Parse request [15:25:36]Sock 7.Check first char [15:25:36]Sock 7.First char is OK [15:25:36]request: POST /json_proto HTTP/1.0 [15:25:36]Method: POST [15:25:36]URL: /json_proto [15:25:36]Method is POST - this is cgi request [15:25:36]url: /json_proto [15:25:36]query_string will be loaded in cgi processing [15:25:36]execute_cgi json_proto POST (null) [15:25:36]execute_cgi path=json_proto method=POST [15:25:36]POST find Content-Length [15:25:36]Host: 172.17.62.5:8080 [15:25:36]Content-Length: 671 [15:25:36]Content-Type: application/json [15:25:36] [15:25:36]POST finish read [15:25:36]Found Content-Length = 671 [15:25:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 10.710, "sum" : 700.43, "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:25:36]execute_script... [15:25: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)191402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 10.710, "sum" : 700.43, "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:25:36]POST & json_proto [15:25:36]process_json_proto [15:25:36]json parsed OK: [15:25:36]protocol is kg_v1.0 [15:25:36]action value=close_receipt [15:25:36]process_action close_receipt [15:25:36]cmd_close_receipt [15:25:36]MH_GetDate [15:25:36]Write to MH i2c: F0 00 00 5A 03 4C [15:25:36]Write i2c OK [15:25:36]MH_I2C_Read... [15:25:36]Read from MH i2c: F0 [15:25:36]MH_I2C_Read... [15:25:36]Read from MH i2c: F0 09 00 [15:25:36]MH_I2C_Read... [15:25:36]Read from MH i2c: F0 09 00 5A 03 00 F1 2F 25 66 F4 E9 65 64 A6 [15:25:36]GetLastDocTimeStamp 1713711830 [15:25:36]current date 1713713137 [15:25:36]FM_GetShiftState [15:25:36]SAM_PROTO_GetShiftState [15:25:36]wFMCommunicate request_size=4 [15:25:36]MH_SAM_APDU [15:25:36]CAPDU: 80 13 01 00 [15:25:36]Write to MH i2c: E2 08 00 5B 03 80 13 01 00 00 00 00 00 DB [15:25:36]Write i2c OK [15:25:36]MH_I2C_Read... [15:25:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:36]Read from MH i2c: E2 [15:25:36]MH_I2C_Read... [15:25:36]Read from MH i2c: E2 0E 00 [15:25:36]MH_I2C_Read... [15:25:36]Read from MH i2c: E2 0E 00 5B 03 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 22 [15:25:36]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [15:25:36]wFMCommunicate OK [15:25:36]SAM_PROTO_GetShiftState done [15:25:36]FM_GetShiftState done [15:25:36]opened in 1713658965 [15:25:36]opened+sec_in_day 1713745365 [15:25:36]quantity*price = 70043 [15:25:36]sum+1 = 70044 [15:25:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 118 21.04.2024 15:25 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76862 ФПД: 255109258685427 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T152537&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76862&fm=255109258685427&tin=02508201610067®Number=0000000000091573&sum=70000 [15:25:37]StoreToDocumentArchive [15:25:37]shift 372 fd 76862 [15:25:37]save to /storage/0372/doc_00076862 [15:25:37]save last doc name /storage/0372/doc_00076862 to /storage/kkm_last_doc_name [15:25:37]save OK [15:25:37]Clear old archive folders... [15:25:37]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:25:37]tlvbuf is 017EA500 [15:25:37]SAM_PROTO_ClearQueue [15:25:37]wFMCommunicate request_size=4 [15:25:37]MH_SAM_APDU [15:25:37]CAPDU: 80 09 00 00 [15:25:37]Write to MH i2c: E2 08 00 68 03 80 09 00 00 00 00 00 00 DD [15:25:37]Write i2c OK [15:25:37]MH_I2C_Read... [15:25:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:25:37]Read from MH i2c: E2 [15:25:37]MH_I2C_Read... [15:25:37]Read from MH i2c: E2 03 00 [15:25:37]MH_I2C_Read... [15:25:37]Read from MH i2c: E2 03 00 68 03 00 90 00 DF [15:25:37]RAPDU: 90 00 [15:25:37]wFMCommunicate OK [15:25:37]SAM_PROTO_ClearQueue done [15:25:37]KKMCreateOFDPacket [15:25:37]OFDProtocolAddRootSTLVToBuf [15:25:37]FM_MakeSignedData [15:25:37]FM_MakeSignedData [15:25:37]SAM_PROTO_SignData [15:25:37]wFMCommunicate request_size=4 [15:25:37]MH_SAM_APDU [15:25:37]CAPDU: 80 0D 01 02 [15:25:37]Write to MH i2c: E2 08 00 69 03 80 0D 01 02 00 00 00 00 E5 [15:25:37]Write i2c OK [15:25:37]MH_I2C_Read... [15:25:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:25:37]Read from MH i2c: E2 [15:25:37]MH_I2C_Read... [15:25:37]Read from MH i2c: E2 03 00 [15:25:37]MH_I2C_Read... [15:25:37]Read from MH i2c: E2 03 00 69 03 00 90 00 E0 [15:25:37]RAPDU: 90 00 [15:25:37]wFMCommunicate OK [15:25:37]wFMCommunicate request_size=255 [15:25:37]MH_SAM_APDU [15:25:37]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 29 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 9B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 F1 2F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 3E 2C 01 00 35 04 06 00 [15:25:37]Write to MH i2c: E2 02 01 6A 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 29 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 9B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 F1 2F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 3E 2C 01 00 35 04 06 00 00 00 7B [15:25:37]Write i2c OK [15:25:37]MH_I2C_Read... [15:25:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:38]Read from MH i2c: E2 [15:25:38]MH_I2C_Read... [15:25:38]Read from MH i2c: E2 03 00 [15:25:38]MH_I2C_Read... [15:25:38]Read from MH i2c: E2 03 00 6A 03 00 90 00 E1 [15:25:38]RAPDU: 90 00 [15:25:38]wFMCommunicate OK [15:25:38]wFMCommunicate request_size=11 [15:25:38]MH_SAM_APDU [15:25:38]CAPDU: 80 0D 02 02 06 E8 05 40 BE 2B F3 [15:25:38]Write to MH i2c: E2 0E 00 6B 03 80 0D 02 02 06 00 E8 05 40 BE 2B F3 00 00 FD [15:25:38]Write i2c OK [15:25:38]MH_I2C_Read... [15:25:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:38]Read from MH i2c: E2 [15:25:38]MH_I2C_Read... [15:25:38]Read from MH i2c: E2 03 00 [15:25:38]MH_I2C_Read... [15:25:38]Read from MH i2c: E2 03 00 6B 03 00 90 00 E2 [15:25:38]RAPDU: 90 00 [15:25:38]wFMCommunicate OK [15:25:38]wFMCommunicate request_size=4 [15:25:38]MH_SAM_APDU [15:25:38]CAPDU: 80 0D 03 02 [15:25:38]Write to MH i2c: E2 08 00 6C 03 80 0D 03 02 00 00 00 00 EA [15:25:38]Write i2c OK [15:25:38]MH_I2C_Read... [15:25:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:25:38]Read from MH i2c: E2 [15:25:38]MH_I2C_Read... [15:25:38]Read from MH i2c: E2 0B 00 [15:25:38]MH_I2C_Read... [15:25:38]Read from MH i2c: E2 0B 00 6C 03 00 6B E7 CB 32 A2 ED AA F4 90 00 67 [15:25:38]RAPDU: 6B E7 CB 32 A2 ED AA F4 90 00 [15:25:38]wFMCommunicate OK [15:25:38]SAM_PROTO_SignData done [15:25:38]FM_MakeSignedData done [15:25:38]CreateOFDProtocolMessage [15:25:38]wFMCommunicate request_size=4 [15:25:38]MH_SAM_APDU [15:25:38]CAPDU: 80 11 00 00 [15:25:38]Write to MH i2c: E2 08 00 6D 03 80 11 00 00 00 00 00 00 EA [15:25:38]Write i2c OK [15:25:38]MH_I2C_Read... [15:25:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:38]Read from MH i2c: E2 [15:25:38]MH_I2C_Read... [15:25:38]Read from MH i2c: E2 17 00 [15:25:38]MH_I2C_Read... [15:25:38]Read from MH i2c: E2 17 00 6D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 3D [15:25:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [15:25:38]wFMCommunicate OK [15:25:38]CreateOFDProtocolMessage done [15:25:38]OFDSenderStorePacket 76862 [15:25:38]StoreOFDPacket docnum=76862 [15:25:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 7D F2 08 01 18 4F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 29 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 9B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 F1 2F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 3E 2C 01 00 35 04 06 00 E8 05 40 BE 2B F3 6B E7 CB 32 A2 ED AA F4 [15:25:38]CheckFolder [15:25:38]dirname=/storage/ofd_packets [15:25:38]CheckFolder done [15:25:38]ProducePacketName [15:25:38]name=ofd_packets/00076862 [15:25:38]NVStorageSaveData ofd_packets/00076862 [15:25:38]File name is /storage/ofd_packets/00076862 [15:25:38]Write 302 bytes [15:25:38]NVStorageSaveData done [15:25:38]OFDSenderStorePacket done [15:25:38]KKMCreateOFDPacket done [15:25:38]NVStorageSaveData kkm_last_timestamp [15:25:38]File name is /storage/kkm_last_timestamp [15:25:38]Write 4 bytes [15:25:38]NVStorageSaveData done [15:25:38]ExternCall_PrintAddStr [15:25:38]wPrintStart [15:25:38]Write to MH i2c: 01 00 00 6E 03 71 [15:25:38]Write i2c OK [15:25:38]MH_I2C_Read... [15:25:38]Read from MH i2c: 01 [15:25:38]MH_I2C_Read... [15:25:38]Read from MH i2c: 01 07 00 [15:25:38]MH_I2C_Read... [15:25:38]Read from MH i2c: 01 07 00 6E 03 00 00 00 00 00 FF 0F 86 [15:25:38]RasterBufferAndPrint [15:25:38]line Счет N : (1)191402 [15:25:38]line ИНН: 02508201610067 [15:25:38]line Контрольно-Кассовый Чек [15:25:38]line ПРОДАЖА [15:25:38]line ТРК (МРК, ГНК) : 31 [15:25:38]line Товар: 2710124130 [15:25:38]line SUPER 92-К-5 [15:25:38]line 10.710 * 65.40 [15:25:38]line = 700.43 [15:25:38]line НДС 12% НСП 1% [15:25:38]line > о реализуемом товаре [15:25:38]line ОКРУГЛЕНИЕ: -0.43 [15:25:38]line ИТОГО: 700.00 [15:25:38]line Внесено: 700.00 [15:25:38]line СДАЧА: 0.00 [15:25:38]line НСП 1% : 6.20 [15:25:38]line НДС 12% : 74.38 [15:25:38]line Наличными: 700.00 [15:25:38]line Безнал.: 0.00 [15:25:38]line Место: АЗС № 106 "Партнер Нефть" [15:25:38]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [15:25:38]line СНО: Общий режим [15:25:38]line Чек 118 21.04.2024 15:25 [15:25:38]line Смена: 372 ФФД: 1.0 [15:25:38]line ЗНМ: 0300000141 [15:25:38]line РНМ: 0000000000091573 [15:25:38]line Версия ККМ: 001 [15:25:38]line ФМ: 0000000000874652 [15:25:38]line ФД: 76862 [15:25:38]line ФПД: 255109258685427 [15:25:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T152537&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76862&fm=255109258685427&tin=02508201610067®Number=0000000000091573&sum=70000 [15:25:38]written 0, free lines is 4095 [15:25:38]OFD Sender: Processing packet 76862 [packets to send 129, broken 128] [15:25:38]ProducePacketName [15:25:38]name=ofd_packets/00076862 [15:25:38]OFD Sender: To server: pG, [15:25:38]CommunicateWithHost lk.salyk.kg:30040 [15:25:38]ConnectInit lk.salyk.kg [15:25:38]Connected sock=10 [15:25:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 7D F2 08 01 18 4F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 29 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 9B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 F1 2F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 3E 2C 01 00 35 04 06 00 E8 05 40 BE 2B F3 6B E7 CB 32 A2 ED AA F4 [15:25:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 56 96 47 00 A9 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 34 36 35 32 10 04 04 00 3E 2C 01 00 F4 03 04 00 76 D7 24 66 B6 04 01 00 00 7D D3 D0 30 C7 69 7E 7B [15:25:38]CommunicateWithHost err = 0 [15:25:38]CheckOFDResponse [15:25:38]1017 (14) - 77093643461234 [15:25:38]1041 (16) - 0000000000874652 [15:25:38]1040 (4) - 76862 [15:25:38]1012 (4) - 21.04.2024 09:08 [15:25:38]1206 (1) - 0 [15:25:38]OFD Sender: Remove packet 76862 [15:25:38]ProducePacketName [15:25:38]name=ofd_packets/00076862 [15:25:38]NVStorageDeleteData [15:25:39]Write to MH i2c: 01 00 00 98 03 9B [15:25:39]Write i2c OK [15:25:39]MH_I2C_Read... [15:25:39]Read from MH i2c: 01 [15:25:39]MH_I2C_Read... [15:25:39]Read from MH i2c: 01 07 00 [15:25:39]MH_I2C_Read... [15:25:39]Read from MH i2c: 01 07 00 98 03 00 00 00 00 00 F7 0C A5 [15:25:39]RasterBufferAndPrint [15:25:39]line [15:25:39]line [15:25:39]line [15:25:39]line [15:25:39]line [15:25:39]written 0, free lines is 3327 [15:25:39]MH_Cut [15:25:39]Write to MH i2c: D1 01 00 9F 03 01 74 [15:25:39]Write i2c OK [15:25:39]MH_I2C_Read... [15:25:39]Read from MH i2c: D1 [15:25:39]MH_I2C_Read... [15:25:39]Read from MH i2c: D1 01 00 [15:25:39]MH_I2C_Read... [15:25:39]Read from MH i2c: D1 01 00 9F 03 00 73 [15:25:39]Write to MH i2c: 01 00 00 A0 03 A3 [15:25:39]Write i2c OK [15:25:39]MH_I2C_Read... [15:25:39]OFD Sender: No OFD packet to send [15:25:39]*** Cut start [15:25:39]*** Partial cut [15:25:39]*** CUTSNS_PIN = 1 [15:25:39]*** CUTSNS_PIN = 0 [15:25:40]*** Brake cut motor [15:25:40]Read from MH i2c: 01 [15:25:40]MH_I2C_Read... [15:25:40]*** Stop cut motor [15:25:40]*** Cut end [15:25:40]Read from MH i2c: 01 07 00 [15:25:40]MH_I2C_Read... [15:25:40]Read from MH i2c: 01 07 00 A0 03 00 00 00 00 00 FF 0F B8 [15:25:40]process_action close_receipt done [15:25:40]requested_data is exist [15:25:40]produce_requested_data [15:25:40]requested_item fm.sn is exist - process it [15:25:40]wFMCommunicate request_size=4 [15:25:40]MH_SAM_APDU [15:25:40]CAPDU: 80 11 00 00 [15:25:40]Write to MH i2c: E2 08 00 A1 03 80 11 00 00 00 00 00 00 1E [15:25:40]Write i2c OK [15:25:40]MH_I2C_Read... [15:25:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:40]Read from MH i2c: E2 [15:25:40]MH_I2C_Read... [15:25:40]Read from MH i2c: E2 17 00 [15:25:40]MH_I2C_Read... [15:25:40]Read from MH i2c: E2 17 00 A1 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 71 [15:25:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [15:25:40]wFMCommunicate OK [15:25:40]requested_item fd.num is exist - process it [15:25:40]SAM_PROTO_GetFieldsCounters [15:25:40]wFMCommunicate request_size=4 [15:25:40]MH_SAM_APDU [15:25:40]CAPDU: 80 13 00 00 [15:25:40]Write to MH i2c: E2 08 00 A2 03 80 13 00 00 00 00 00 00 21 [15:25:40]Write i2c OK [15:25:40]MH_I2C_Read... [15:25:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:25:40]Read from MH i2c: E2 [15:25:40]MH_I2C_Read... [15:25:40]Read from MH i2c: E2 62 00 [15:25:40]MH_I2C_Read... [15:25:40]Read from MH i2c: E2 62 00 A2 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 3E 2C 01 00 0E 04 04 00 74 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 84 [15:25: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 3E 2C 01 00 0E 04 04 00 74 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 [15:25:40]wFMCommunicate OK [15:25:40]SAM_PROTO_GetFieldsCounters done [15:25:40]requested_item shift.num is exist - process it [15:25:40]requested_item shift.opened is exist - process it [15:25:40]req_shift_opened [15:25:40]FM_GetShiftState [15:25:40]SAM_PROTO_GetShiftState [15:25:40]wFMCommunicate request_size=4 [15:25:40]MH_SAM_APDU [15:25:40]CAPDU: 80 13 01 00 [15:25:40]Write to MH i2c: E2 08 00 A3 03 80 13 01 00 00 00 00 00 23 [15:25:40]Write i2c OK [15:25:40]MH_I2C_Read... [15:25:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:40]Read from MH i2c: E2 [15:25:40]MH_I2C_Read... [15:25:40]Read from MH i2c: E2 0E 00 [15:25:40]MH_I2C_Read... [15:25:40]Read from MH i2c: E2 0E 00 A3 03 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 6A [15:25:40]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [15:25:40]wFMCommunicate OK [15:25:40]SAM_PROTO_GetShiftState done [15:25:40]FM_GetShiftState done [15:25:40]req_shift_opened done [15:25:40]requested_item shift.open_date is exist - process it [15:25:40]req_shift_open_date [15:25:40]req_shift_open_date done [15:25:40]produce_requested_data done [15:25:40]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76862,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [15:25:40]process_action_free close_receipt [15:25:40]json_value_free [15:25:40]json_value_free done [15:25:40]process_json_proto returns [15:25:40]Send response to host [15:25:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76862,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [15:25:40]free response buf [15:25:40]execute_script done [15:25:40]execute_script returns [15:25:40]free content buf [15:25:40]Sock 7.Close socket [15:25:40]Sock 7.Thread stoped [15:25:43]accept exits with 9 [15:25:43]New connection [15:25:43]New thread 3067460964 created [15:25:43]Thread 3067317604 joined [15:25:43]Waiting for new connection... [15:25:43] Sock 9.Parse request [15:25:43]Sock 9.Check first char [15:25:43]Sock 9.First char is OK [15:25:43]request: POST /json_proto HTTP/1.0 [15:25:43]Method: POST [15:25:43]URL: /json_proto [15:25:43]Method is POST - this is cgi request [15:25:43]url: /json_proto [15:25:43]query_string will be loaded in cgi processing [15:25:43]execute_cgi json_proto POST (null) [15:25:43]execute_cgi path=json_proto method=POST [15:25:43]POST find Content-Length [15:25:43]Host: 172.17.62.5:8080 [15:25:43]Content-Length: 812 [15:25:43]Content-Type: application/json [15:25:43] [15:25:43]POST finish read [15:25:43]Found Content-Length = 812 [15:25:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191401", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 15.300, "sum" : 1000.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:43]execute_script... [15:25: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)191401", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 15.300, "sum" : 1000.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:43]POST & json_proto [15:25:43]process_json_proto [15:25:43]json parsed OK: [15:25:43]protocol is kg_v1.0 [15:25:43]action value=close_receipt [15:25:43]process_action close_receipt [15:25:43]cmd_close_receipt [15:25:43]MH_GetDate [15:25:43]Write to MH i2c: F0 00 00 A4 03 96 [15:25:43]Write i2c OK [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: F0 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: F0 09 00 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: F0 09 00 A4 03 00 F8 2F 25 66 F4 E9 65 64 F7 [15:25:43]GetLastDocTimeStamp 1713713137 [15:25:43]current date 1713713144 [15:25:43]FM_GetShiftState [15:25:43]SAM_PROTO_GetShiftState [15:25:43]wFMCommunicate request_size=4 [15:25:43]MH_SAM_APDU [15:25:43]CAPDU: 80 13 01 00 [15:25:43]Write to MH i2c: E2 08 00 A5 03 80 13 01 00 00 00 00 00 25 [15:25:43]Write i2c OK [15:25:43]MH_I2C_Read... [15:25:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:43]Read from MH i2c: E2 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: E2 0E 00 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: E2 0E 00 A5 03 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 6C [15:25:43]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [15:25:43]wFMCommunicate OK [15:25:43]SAM_PROTO_GetShiftState done [15:25:43]FM_GetShiftState done [15:25:43]opened in 1713658965 [15:25:43]opened+sec_in_day 1713745365 [15:25:43]quantity*price = 100062 [15:25:43]sum+1 = 100063 [15:25:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.62 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.62 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 119 21.04.2024 15:25 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 76863 ФПД: 126523293396847 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T152544&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76863&fm=126523293396847&tin=02508201610067®Number=0000000000091573&sum=100062 [15:25:44]StoreToDocumentArchive [15:25:44]shift 372 fd 76863 [15:25:44]save to /storage/0372/doc_00076863 [15:25:44]save last doc name /storage/0372/doc_00076863 to /storage/kkm_last_doc_name [15:25:44]save OK [15:25:44]Clear old archive folders... [15:25:44]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:25:44]tlvbuf is 017EBE80 [15:25:44]SAM_PROTO_ClearQueue [15:25:44]wFMCommunicate request_size=4 [15:25:44]MH_SAM_APDU [15:25:44]CAPDU: 80 09 00 00 [15:25:44]Write to MH i2c: E2 08 00 B2 03 80 09 00 00 00 00 00 00 27 [15:25:44]Write i2c OK [15:25:44]MH_I2C_Read... [15:25:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:25:44]Read from MH i2c: E2 [15:25:44]MH_I2C_Read... [15:25:44]Read from MH i2c: E2 03 00 [15:25:44]MH_I2C_Read... [15:25:44]Read from MH i2c: E2 03 00 B2 03 00 90 00 29 [15:25:44]RAPDU: 90 00 [15:25:44]wFMCommunicate OK [15:25:44]SAM_PROTO_ClearQueue done [15:25:44]KKMCreateOFDPacket [15:25:44]OFDProtocolAddRootSTLVToBuf [15:25:44]FM_MakeSignedData [15:25:44]FM_MakeSignedData [15:25:44]SAM_PROTO_SignData [15:25:44]wFMCommunicate request_size=4 [15:25:44]MH_SAM_APDU [15:25:44]CAPDU: 80 0D 01 02 [15:25:44]Write to MH i2c: E2 08 00 B3 03 80 0D 01 02 00 00 00 00 2F [15:25:44]Write i2c OK [15:25:44]MH_I2C_Read... [15:25:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:25:44]Read from MH i2c: E2 [15:25:44]MH_I2C_Read... [15:25:44]Read from MH i2c: E2 03 00 [15:25:44]MH_I2C_Read... [15:25:44]Read from MH i2c: E2 03 00 B3 03 00 90 00 2A [15:25:44]RAPDU: 90 00 [15:25:44]wFMCommunicate OK [15:25:44]wFMCommunicate request_size=255 [15:25:44]MH_SAM_APDU [15:25: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DE 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 DE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 F8 2F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 3F 2C 01 00 35 04 06 00 [15:25:44]Write to MH i2c: E2 02 01 B4 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DE 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 DE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 F8 2F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 3F 2C 01 00 35 04 06 00 00 00 D6 [15:25:44]Write i2c OK [15:25:44]MH_I2C_Read... [15:25:44]OFD Sender: No OFD packet to send [15:25:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:44]Read from MH i2c: E2 [15:25:44]MH_I2C_Read... [15:25:44]Read from MH i2c: E2 03 00 [15:25:44]MH_I2C_Read... [15:25:44]Read from MH i2c: E2 03 00 B4 03 00 90 00 2B [15:25:44]RAPDU: 90 00 [15:25:44]wFMCommunicate OK [15:25:44]wFMCommunicate request_size=11 [15:25:44]MH_SAM_APDU [15:25:44]CAPDU: 80 0D 02 02 06 73 12 7F F5 6F 6F [15:25:44]Write to MH i2c: E2 0E 00 B5 03 80 0D 02 02 06 00 73 12 7F F5 6F 6F 00 00 15 [15:25:44]Write i2c OK [15:25:44]MH_I2C_Read... [15:25:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:44]Read from MH i2c: E2 [15:25:44]MH_I2C_Read... [15:25:44]Read from MH i2c: E2 03 00 [15:25:44]MH_I2C_Read... [15:25:44]Read from MH i2c: E2 03 00 B5 03 00 90 00 2C [15:25:44]RAPDU: 90 00 [15:25:44]wFMCommunicate OK [15:25:44]wFMCommunicate request_size=4 [15:25:44]MH_SAM_APDU [15:25:44]CAPDU: 80 0D 03 02 [15:25:44]Write to MH i2c: E2 08 00 B6 03 80 0D 03 02 00 00 00 00 34 [15:25:44]Write i2c OK [15:25:44]MH_I2C_Read... [15:25:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:25:44]Read from MH i2c: E2 [15:25:44]MH_I2C_Read... [15:25:44]Read from MH i2c: E2 0B 00 [15:25:44]MH_I2C_Read... [15:25:44]Read from MH i2c: E2 0B 00 B6 03 00 57 9B 61 2F 46 AA A0 88 90 00 CF [15:25:44]RAPDU: 57 9B 61 2F 46 AA A0 88 90 00 [15:25:44]wFMCommunicate OK [15:25:44]SAM_PROTO_SignData done [15:25:44]FM_MakeSignedData done [15:25:44]CreateOFDProtocolMessage [15:25:44]wFMCommunicate request_size=4 [15:25:44]MH_SAM_APDU [15:25:44]CAPDU: 80 11 00 00 [15:25:44]Write to MH i2c: E2 08 00 B7 03 80 11 00 00 00 00 00 00 34 [15:25:44]Write i2c OK [15:25:44]MH_I2C_Read... [15:25:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:44]Read from MH i2c: E2 [15:25:44]MH_I2C_Read... [15:25:44]Read from MH i2c: E2 17 00 [15:25:44]MH_I2C_Read... [15:25:44]Read from MH i2c: E2 17 00 B7 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 87 [15:25:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [15:25:44]wFMCommunicate OK [15:25:44]CreateOFDProtocolMessage done [15:25:44]OFDSenderStorePacket 76863 [15:25:44]StoreOFDPacket docnum=76863 [15:25:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 CC B5 08 01 FD 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DE 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 DE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 F8 2F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 3F 2C 01 00 35 04 06 00 73 12 7F F5 6F 6F 57 9B 61 2F 46 AA A0 88 [15:25:44]CheckFolder [15:25:44]dirname=/storage/ofd_packets [15:25:44]CheckFolder done [15:25:44]ProducePacketName [15:25:44]name=ofd_packets/00076863 [15:25:44]NVStorageSaveData ofd_packets/00076863 [15:25:44]File name is /storage/ofd_packets/00076863 [15:25:44]Write 302 bytes [15:25:44]NVStorageSaveData done [15:25:44]OFDSenderStorePacket done [15:25:44]KKMCreateOFDPacket done [15:25:44]NVStorageSaveData kkm_last_timestamp [15:25:44]File name is /storage/kkm_last_timestamp [15:25:44]Write 4 bytes [15:25:44]NVStorageSaveData done [15:25:44]ExternCall_PrintAddStr [15:25:44]wPrintStart [15:25:44]Write to MH i2c: 01 00 00 B8 03 BB [15:25:44]Write i2c OK [15:25:44]MH_I2C_Read... [15:25:44]Read from MH i2c: 01 [15:25:44]MH_I2C_Read... [15:25:44]Read from MH i2c: 01 07 00 [15:25:44]MH_I2C_Read... [15:25:44]Read from MH i2c: 01 07 00 B8 03 00 00 00 00 00 FF 0F D0 [15:25:44]RasterBufferAndPrint [15:25:44]line Счет N : (1)191401 [15:25:44]line ИНН: 02508201610067 [15:25:44]line Контрольно-Кассовый Чек [15:25:44]line ПРОДАЖА [15:25:44]line ТРК (МРК, ГНК) : 41 [15:25:44]line Товар: 2710124130 [15:25:44]line SUPER 92-К-5 [15:25:44]line 15.300 * 65.40 [15:25:44]line = 1000.62 [15:25:44]line НДС 12% НСП 1% [15:25:44]line > о реализуемом товаре [15:25:44]line ИТОГО: 1000.62 [15:25:44]line НСП 1% : 8.85 [15:25:44]line НДС 12% : 106.26 [15:25:44]line Наличными: 0.00 [15:25:44]line Безнал.: 1000.62 [15:25:44]line Место: АЗС № 106 "Партнер Нефть" [15:25:44]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [15:25:44]line СНО: Общий режим [15:25:44]line Чек 119 21.04.2024 15:25 [15:25:44]line Смена: 372 ФФД: 1.0 [15:25:44]line ЗНМ: 0300000141 [15:25:44]line РНМ: 0000000000091573 [15:25:44]line Версия ККМ: 001 [15:25:44]line Платежная система: Бакай Банк [15:25:44]line ФМ: 0000000000874652 [15:25:44]line ФД: 76863 [15:25:44]line ФПД: 126523293396847 [15:25:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T152544&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76863&fm=126523293396847&tin=02508201610067®Number=0000000000091573&sum=100062 [15:25:44]OFD Sender: Processing packet 76863 [packets to send 129, broken 128] [15:25:44]ProducePacketName [15:25:44]name=ofd_packets/00076863 [15:25:44]OFD Sender: To server: pG, [15:25:44]CommunicateWithHost lk.salyk.kg:30040 [15:25:44]ConnectInit lk.salyk.kg [15:25:44]written 0, free lines is 4095 [15:25:44]Connected sock=10 [15:25:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 CC B5 08 01 FD 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DE 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 DE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 F8 2F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 3F 2C 01 00 35 04 06 00 73 12 7F F5 6F 6F 57 9B 61 2F 46 AA A0 88 [15:25:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 C0 4E 47 00 9A CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 3F 2C 01 00 F4 03 04 00 7D D7 24 66 B6 04 01 00 00 92 0A 58 04 9F 86 29 86 [15:25:45]CommunicateWithHost err = 0 [15:25:45]CheckOFDResponse [15:25:45]1017 (14) - 77093643461234 [15:25:45]1041 (16) - 0000000000874652 [15:25:45]1040 (4) - 76863 [15:25:45]1012 (4) - 21.04.2024 09:08 [15:25:45]1206 (1) - 0 [15:25:45]OFD Sender: Remove packet 76863 [15:25:45]ProducePacketName [15:25:45]name=ofd_packets/00076863 [15:25:45]NVStorageDeleteData [15:25:45]Write to MH i2c: 01 00 00 E1 03 E4 [15:25:45]Write i2c OK [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: 01 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: 01 07 00 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: 01 07 00 E1 03 00 00 00 00 00 0A 0D 02 [15:25:45]RasterBufferAndPrint [15:25:45]line [15:25:45]line [15:25:45]line [15:25:45]line [15:25:45]line [15:25:45]written 0, free lines is 3348 [15:25:45]MH_Cut [15:25:45]Write to MH i2c: D1 01 00 E8 03 01 BD [15:25:45]Write i2c OK [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: D1 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: D1 01 00 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: D1 01 00 E8 03 00 BC [15:25:45]Write to MH i2c: 01 00 00 E9 03 EC [15:25:45]Write i2c OK [15:25:45]MH_I2C_Read... [15:25:45]OFD Sender: No OFD packet to send [15:25:45]*** Cut start [15:25:45]*** Partial cut [15:25:45]*** CUTSNS_PIN = 1 [15:25:46]*** CUTSNS_PIN = 0 [15:25:46]*** Brake cut motor [15:25:46]Read from MH i2c: 01 [15:25:46]MH_I2C_Read... [15:25:46]*** Stop cut motor [15:25:46]*** Cut end [15:25:46]Read from MH i2c: 01 07 00 [15:25:46]MH_I2C_Read... [15:25:46]Read from MH i2c: 01 07 00 E9 03 00 00 00 00 00 FF 0F 01 [15:25:46]process_action close_receipt done [15:25:46]requested_data is exist [15:25:46]produce_requested_data [15:25:46]requested_item fm.sn is exist - process it [15:25:46]wFMCommunicate request_size=4 [15:25:46]MH_SAM_APDU [15:25:46]CAPDU: 80 11 00 00 [15:25:46]Write to MH i2c: E2 08 00 EA 03 80 11 00 00 00 00 00 00 67 [15:25:46]Write i2c OK [15:25:46]MH_I2C_Read... [15:25:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:46]Read from MH i2c: E2 [15:25:46]MH_I2C_Read... [15:25:46]Read from MH i2c: E2 17 00 [15:25:46]MH_I2C_Read... [15:25:46]Read from MH i2c: E2 17 00 EA 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 BA [15:25:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [15:25:46]wFMCommunicate OK [15:25:46]requested_item fd.num is exist - process it [15:25:46]SAM_PROTO_GetFieldsCounters [15:25:46]wFMCommunicate request_size=4 [15:25:46]MH_SAM_APDU [15:25:46]CAPDU: 80 13 00 00 [15:25:46]Write to MH i2c: E2 08 00 EB 03 80 13 00 00 00 00 00 00 6A [15:25:46]Write i2c OK [15:25:46]MH_I2C_Read... [15:25:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:25:46]Read from MH i2c: E2 [15:25:46]MH_I2C_Read... [15:25:46]Read from MH i2c: E2 62 00 [15:25:46]MH_I2C_Read... [15:25:46]Read from MH i2c: E2 62 00 EB 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 3F 2C 01 00 0E 04 04 00 74 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 D1 [15:25: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 3F 2C 01 00 0E 04 04 00 74 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 [15:25:46]wFMCommunicate OK [15:25:46]SAM_PROTO_GetFieldsCounters done [15:25:46]requested_item shift.num is exist - process it [15:25:46]requested_item shift.opened is exist - process it [15:25:46]req_shift_opened [15:25:46]FM_GetShiftState [15:25:46]SAM_PROTO_GetShiftState [15:25:46]wFMCommunicate request_size=4 [15:25:46]MH_SAM_APDU [15:25:46]CAPDU: 80 13 01 00 [15:25:46]Write to MH i2c: E2 08 00 EC 03 80 13 01 00 00 00 00 00 6C [15:25:46]Write i2c OK [15:25:46]MH_I2C_Read... [15:25:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:46]Read from MH i2c: E2 [15:25:46]MH_I2C_Read... [15:25:46]Read from MH i2c: E2 0E 00 [15:25:46]MH_I2C_Read... [15:25:46]Read from MH i2c: E2 0E 00 EC 03 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 B3 [15:25:46]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [15:25:46]wFMCommunicate OK [15:25:46]SAM_PROTO_GetShiftState done [15:25:46]FM_GetShiftState done [15:25:46]req_shift_opened done [15:25:46]requested_item shift.open_date is exist - process it [15:25:46]req_shift_open_date [15:25:46]req_shift_open_date done [15:25:46]produce_requested_data done [15:25:46]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76863,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [15:25:46]process_action_free close_receipt [15:25:46]json_value_free [15:25:46]json_value_free done [15:25:46]process_json_proto returns [15:25:46]Send response to host [15:25:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76863,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [15:25:46]free response buf [15:25:46]execute_script done [15:25:46]execute_script returns [15:25:46]free content buf [15:25:46]Sock 9.Close socket [15:25:46]Sock 9.Thread stoped [15:25:50]OFD Sender: No OFD packet to send [15:25:55]OFD Sender: No OFD packet to send [15:26:00]OFD Sender: No OFD packet to send [15:26:05]OFD Sender: No OFD packet to send [15:26:10]OFD Sender: No OFD packet to send [15:26:15]OFD Sender: No OFD packet to send [15:26:20]OFD Sender: No OFD packet to send [15:26:25]OFD Sender: No OFD packet to send [15:26:30]OFD Sender: No OFD packet to send [15:26:35]OFD Sender: No OFD packet to send [15:26:40]OFD Sender: No OFD packet to send [15:26:45]OFD Sender: No OFD packet to send [15:26:50]OFD Sender: No OFD packet to send [15:26:55]OFD Sender: No OFD packet to send [15:27:00]OFD Sender: No OFD packet to send [15:27:05]OFD Sender: No OFD packet to send [15:27:10]OFD Sender: No OFD packet to send [15:27:15]OFD Sender: No OFD packet to send [15:27:20]OFD Sender: No OFD packet to send [15:27:25]OFD Sender: No OFD packet to send [15:27:30]OFD Sender: No OFD packet to send [15:27:35]OFD Sender: No OFD packet to send [15:27:40]OFD Sender: No OFD packet to send [15:27:45]OFD Sender: No OFD packet to send [15:27:50]OFD Sender: No OFD packet to send [15:27:55]OFD Sender: No OFD packet to send [15:28:00]OFD Sender: No OFD packet to send [15:28:05]OFD Sender: No OFD packet to send [15:28:10]OFD Sender: No OFD packet to send [15:28:15]OFD Sender: No OFD packet to send [15:28:20]OFD Sender: No OFD packet to send [15:28:25]OFD Sender: No OFD packet to send [15:28:30]OFD Sender: No OFD packet to send [15:28:35]OFD Sender: No OFD packet to send [15:28:40]OFD Sender: No OFD packet to send [15:28:45]OFD Sender: No OFD packet to send [15:28:50]OFD Sender: No OFD packet to send [15:28:55]OFD Sender: No OFD packet to send [15:29:00]OFD Sender: No OFD packet to send [15:29:05]OFD Sender: No OFD packet to send [15:29:10]OFD Sender: No OFD packet to send [15:29:15]OFD Sender: No OFD packet to send [15:29:20]OFD Sender: No OFD packet to send [15:29:25]OFD Sender: No OFD packet to send [15:29:30]OFD Sender: No OFD packet to send [15:29:35]OFD Sender: No OFD packet to send [15:29:41]OFD Sender: No OFD packet to send [15:29:46]OFD Sender: No OFD packet to send [15:29:51]OFD Sender: No OFD packet to send [15:29:56]OFD Sender: No OFD packet to send [15:30:01]OFD Sender: No OFD packet to send [15:30:06]OFD Sender: No OFD packet to send [15:30:11]OFD Sender: No OFD packet to send [15:30:16]OFD Sender: No OFD packet to send [15:30:21]OFD Sender: No OFD packet to send [15:30:26]OFD Sender: No OFD packet to send [15:30:31]OFD Sender: No OFD packet to send [15:30:36]OFD Sender: No OFD packet to send [15:30:41]OFD Sender: No OFD packet to send [15:30:46]OFD Sender: No OFD packet to send [15:30:51]OFD Sender: No OFD packet to send [15:30:56]OFD Sender: No OFD packet to send [15:31:01]OFD Sender: No OFD packet to send [15:31:06]OFD Sender: No OFD packet to send [15:31:11]OFD Sender: No OFD packet to send [15:31:16]OFD Sender: No OFD packet to send [15:31:21]OFD Sender: No OFD packet to send [15:31:26]OFD Sender: No OFD packet to send [15:31:31]OFD Sender: No OFD packet to send [15:31:36]OFD Sender: No OFD packet to send [15:31:41]OFD Sender: No OFD packet to send [15:31:46]OFD Sender: No OFD packet to send [15:31:51]OFD Sender: No OFD packet to send [15:31:56]OFD Sender: No OFD packet to send [15:32:01]OFD Sender: No OFD packet to send [15:32:06]OFD Sender: No OFD packet to send [15:32:11]OFD Sender: No OFD packet to send [15:32:16]OFD Sender: No OFD packet to send [15:32:21]OFD Sender: No OFD packet to send [15:32:26]OFD Sender: No OFD packet to send [15:32:31]OFD Sender: No OFD packet to send [15:32:36]OFD Sender: No OFD packet to send [15:32:41]OFD Sender: No OFD packet to send [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:32]accept exits with 7 [15:35:32]New connection [15:35:32]New thread 3067317604 created [15:35:32]Thread 3067460964 joined [15:35:32]Waiting for new connection... [15:35:32] Sock 7.Parse request [15:35:32]Sock 7.Check first char [15:35:32]Sock 7.First char is OK [15:35:32]request: POST /json_proto HTTP/1.0 [15:35:32]Method: POST [15:35:32]URL: /json_proto [15:35:32]Method is POST - this is cgi request [15:35:32]url: /json_proto [15:35:32]query_string will be loaded in cgi processing [15:35:32]execute_cgi json_proto POST (null) [15:35:32]execute_cgi path=json_proto method=POST [15:35:32]POST find Content-Length [15:35:32]Host: 172.17.62.5:8080 [15:35:32]Content-Length: 677 [15:35:32]Content-Type: application/json [15:35:32] [15:35:32]POST finish read [15:35:32]Found Content-Length = 677 [15:35:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 9.320, "sum" : 600.21, "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:35:32]execute_script... [15:35: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)191403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 9.320, "sum" : 600.21, "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:35:32]POST & json_proto [15:35:32]process_json_proto [15:35:32]json parsed OK: [15:35:32]protocol is kg_v1.0 [15:35:32]action value=close_receipt [15:35:32]process_action close_receipt [15:35:32]cmd_close_receipt [15:35:32]MH_GetDate [15:35:32]Write to MH i2c: F0 00 00 ED 03 DF [15:35:32]Write i2c OK [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: F0 [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: F0 09 00 [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: F0 09 00 ED 03 00 45 32 25 66 F4 E9 65 64 90 [15:35:32]GetLastDocTimeStamp 1713713144 [15:35:32]current date 1713713733 [15:35:32]FM_GetShiftState [15:35:32]SAM_PROTO_GetShiftState [15:35:32]wFMCommunicate request_size=4 [15:35:32]MH_SAM_APDU [15:35:32]CAPDU: 80 13 01 00 [15:35:32]Write to MH i2c: E2 08 00 EE 03 80 13 01 00 00 00 00 00 6E [15:35:32]Write i2c OK [15:35:32]MH_I2C_Read... [15:35:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:32]Read from MH i2c: E2 [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: E2 0E 00 [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: E2 0E 00 EE 03 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 B5 [15:35:32]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [15:35:32]wFMCommunicate OK [15:35:32]SAM_PROTO_GetShiftState done [15:35:32]FM_GetShiftState done [15:35:32]opened in 1713658965 [15:35:32]opened+sec_in_day 1713745365 [15:35:32]quantity*price = 60020 [15:35:32]sum+1 = 60022 [15:35:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 120 21.04.2024 15:35 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76864 ФПД: 24614641115527 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T153533&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76864&fm=24614641115527&tin=02508201610067®Number=0000000000091573&sum=60000 [15:35:33]StoreToDocumentArchive [15:35:33]shift 372 fd 76864 [15:35:33]save to /storage/0372/doc_00076864 [15:35:33]save last doc name /storage/0372/doc_00076864 to /storage/kkm_last_doc_name [15:35:33]save OK [15:35:33]Clear old archive folders... [15:35:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:35:33]tlvbuf is 017ECC00 [15:35:33]SAM_PROTO_ClearQueue [15:35:33]wFMCommunicate request_size=4 [15:35:33]MH_SAM_APDU [15:35:33]CAPDU: 80 09 00 00 [15:35:33]Write to MH i2c: E2 08 00 FB 03 80 09 00 00 00 00 00 00 70 [15:35:33]Write i2c OK [15:35:33]MH_I2C_Read... [15:35:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:35:33]Read from MH i2c: E2 [15:35:33]MH_I2C_Read... [15:35:33]Read from MH i2c: E2 03 00 [15:35:33]MH_I2C_Read... [15:35:33]Read from MH i2c: E2 03 00 FB 03 00 90 00 72 [15:35:33]RAPDU: 90 00 [15:35:33]wFMCommunicate OK [15:35:33]SAM_PROTO_ClearQueue done [15:35:33]KKMCreateOFDPacket [15:35:33]OFDProtocolAddRootSTLVToBuf [15:35:33]FM_MakeSignedData [15:35:33]FM_MakeSignedData [15:35:33]SAM_PROTO_SignData [15:35:33]wFMCommunicate request_size=4 [15:35:33]MH_SAM_APDU [15:35:33]CAPDU: 80 0D 01 02 [15:35:33]Write to MH i2c: E2 08 00 FC 03 80 0D 01 02 00 00 00 00 78 [15:35:33]Write i2c OK [15:35:33]MH_I2C_Read... [15:35:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:35:33]Read from MH i2c: E2 [15:35:33]MH_I2C_Read... [15:35:33]Read from MH i2c: E2 03 00 [15:35:33]MH_I2C_Read... [15:35:33]Read from MH i2c: E2 03 00 FC 03 00 90 00 73 [15:35:33]RAPDU: 90 00 [15:35:33]wFMCommunicate OK [15:35:33]wFMCommunicate request_size=255 [15:35:33]MH_SAM_APDU [15:35: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 68 24 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 75 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 78 00 00 00 F4 03 04 00 45 32 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 40 2C 01 00 35 04 06 00 16 [15:35:33]Write to MH i2c: E2 02 01 FD 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 68 24 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 75 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 78 00 00 00 F4 03 04 00 45 32 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 40 2C 01 00 35 04 06 00 16 00 00 C7 [15:35:33]Write i2c OK [15:35:33]MH_I2C_Read... [15:35:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:33]Read from MH i2c: E2 [15:35:33]MH_I2C_Read... [15:35:33]Read from MH i2c: E2 03 00 [15:35:33]MH_I2C_Read... [15:35:33]Read from MH i2c: E2 03 00 FD 03 00 90 00 74 [15:35:33]RAPDU: 90 00 [15:35:33]wFMCommunicate OK [15:35:33]wFMCommunicate request_size=10 [15:35:33]MH_SAM_APDU [15:35:33]CAPDU: 80 0D 02 02 05 63 0A F0 A1 87 [15:35:33]Write to MH i2c: E2 0D 00 FE 03 80 0D 02 02 05 00 63 0A F0 A1 87 00 00 0A [15:35:33]Write i2c OK [15:35:33]MH_I2C_Read... [15:35:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:33]Read from MH i2c: E2 [15:35:33]MH_I2C_Read... [15:35:33]Read from MH i2c: E2 03 00 [15:35:33]MH_I2C_Read... [15:35:33]Read from MH i2c: E2 03 00 FE 03 00 90 00 75 [15:35:33]RAPDU: 90 00 [15:35:33]wFMCommunicate OK [15:35:33]wFMCommunicate request_size=4 [15:35:33]MH_SAM_APDU [15:35:33]CAPDU: 80 0D 03 02 [15:35:33]Write to MH i2c: E2 08 00 FF 03 80 0D 03 02 00 00 00 00 7D [15:35:33]Write i2c OK [15:35:33]MH_I2C_Read... [15:35:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:35:33]Read from MH i2c: E2 [15:35:33]MH_I2C_Read... [15:35:33]Read from MH i2c: E2 0B 00 [15:35:33]MH_I2C_Read... [15:35:33]Read from MH i2c: E2 0B 00 FF 03 00 EC 85 C5 67 31 66 22 F3 90 00 C7 [15:35:33]RAPDU: EC 85 C5 67 31 66 22 F3 90 00 [15:35:33]wFMCommunicate OK [15:35:33]SAM_PROTO_SignData done [15:35:33]FM_MakeSignedData done [15:35:33]CreateOFDProtocolMessage [15:35:33]wFMCommunicate request_size=4 [15:35:33]MH_SAM_APDU [15:35:33]CAPDU: 80 11 00 00 [15:35:33]Write to MH i2c: E2 08 00 00 04 80 11 00 00 00 00 00 00 7E [15:35:33]Write i2c OK [15:35:33]MH_I2C_Read... [15:35:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:33]Read from MH i2c: E2 [15:35:33]MH_I2C_Read... [15:35:33]Read from MH i2c: E2 17 00 [15:35:33]MH_I2C_Read... [15:35:33]Read from MH i2c: E2 17 00 00 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 D1 [15:35:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [15:35:33]wFMCommunicate OK [15:35:33]CreateOFDProtocolMessage done [15:35:33]OFDSenderStorePacket 76864 [15:35:33]StoreOFDPacket docnum=76864 [15:35:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 57 BA 07 01 36 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 68 24 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 75 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 78 00 00 00 F4 03 04 00 45 32 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 40 2C 01 00 35 04 06 00 16 63 0A F0 A1 87 EC 85 C5 67 31 66 22 F3 [15:35:33]CheckFolder [15:35:33]dirname=/storage/ofd_packets [15:35:33]CheckFolder done [15:35:33]ProducePacketName [15:35:33]name=ofd_packets/00076864 [15:35:33]NVStorageSaveData ofd_packets/00076864 [15:35:33]File name is /storage/ofd_packets/00076864 [15:35:33]Write 301 bytes [15:35:33]NVStorageSaveData done [15:35:33]OFDSenderStorePacket done [15:35:33]KKMCreateOFDPacket done [15:35:33]NVStorageSaveData kkm_last_timestamp [15:35:33]File name is /storage/kkm_last_timestamp [15:35:33]Write 4 bytes [15:35:33]NVStorageSaveData done [15:35:33]ExternCall_PrintAddStr [15:35:33]wPrintStart [15:35:33]Write to MH i2c: 01 00 00 01 04 05 [15:35:33]Write i2c OK [15:35:33]MH_I2C_Read... [15:35:33]Read from MH i2c: 01 [15:35:33]MH_I2C_Read... [15:35:33]Read from MH i2c: 01 07 00 [15:35:33]MH_I2C_Read... [15:35:33]Read from MH i2c: 01 07 00 01 04 00 00 00 00 00 FF 0F 1A [15:35:33]RasterBufferAndPrint [15:35:33]line Счет N : (1)191403 [15:35:33]line ИНН: 02508201610067 [15:35:33]line Контрольно-Кассовый Чек [15:35:33]line ПРОДАЖА [15:35:33]line ТРК (МРК, ГНК) : 33 [15:35:33]line Товар: 2710124130 [15:35:33]line Аи-92-К-5 [15:35:33]line 9.320 * 64.40 [15:35:33]line = 600.21 [15:35:33]line НДС 12% НСП 1% [15:35:33]line > о реализуемом товаре [15:35:33]line ОКРУГЛЕНИЕ: -0.21 [15:35:33]line ИТОГО: 600.00 [15:35:33]line Внесено: 600.00 [15:35:33]line СДАЧА: 0.00 [15:35:33]line НСП 1% : 5.31 [15:35:33]line НДС 12% : 63.74 [15:35:33]line Наличными: 600.00 [15:35:33]line Безнал.: 0.00 [15:35:33]line Место: АЗС № 106 "Партнер Нефть" [15:35:33]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [15:35:33]line СНО: Общий режим [15:35:33]line Чек 120 21.04.2024 15:35 [15:35:33]line Смена: 372 ФФД: 1.0 [15:35:33]line ЗНМ: 0300000141 [15:35:33]line РНМ: 0000000000091573 [15:35:33]line Версия ККМ: 001 [15:35:33]line ФМ: 0000000000874652 [15:35:33]line ФД: 76864 [15:35:33]line ФПД: 24614641115527 [15:35:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T153533&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76864&fm=24614641115527&tin=02508201610067®Number=0000000000091573&sum=60000 [15:35:34]written 0, free lines is 4095 [15:35:34]OFD Sender: Processing packet 76864 [packets to send 129, broken 128] [15:35:34]ProducePacketName [15:35:34]name=ofd_packets/00076864 [15:35:34]OFD Sender: To server: pG, [15:35:34]CommunicateWithHost lk.salyk.kg:30040 [15:35:34]ConnectInit lk.salyk.kg [15:35:34]Connected sock=10 [15:35:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 57 BA 07 01 36 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 68 24 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 75 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 78 00 00 00 F4 03 04 00 45 32 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 40 2C 01 00 35 04 06 00 16 63 0A F0 A1 87 EC 85 C5 67 31 66 22 F3 [15:35:34]Write to MH i2c: 01 00 00 2B 04 2F [15:35:34]Write i2c OK [15:35:34]MH_I2C_Read... [15:35:34]Read from MH i2c: 01 [15:35:34]MH_I2C_Read... [15:35:34]Read from MH i2c: 01 07 00 [15:35:34]MH_I2C_Read... [15:35:34]Read from MH i2c: 01 07 00 2B 04 00 00 00 00 00 DF 0C 21 [15:35:34]RasterBufferAndPrint [15:35:34]line [15:35:34]line [15:35:34]line [15:35:34]line [15:35:34]line [15:35:34]written 0, free lines is 3301 [15:35:34]MH_Cut [15:35:34]Write to MH i2c: D1 01 00 32 04 01 08 [15:35:34]Write i2c OK [15:35:34]MH_I2C_Read... [15:35:34]Read from MH i2c: D1 [15:35:34]MH_I2C_Read... [15:35:34]Read from MH i2c: D1 01 00 [15:35:34]MH_I2C_Read... [15:35:34]Read from MH i2c: D1 01 00 32 04 00 07 [15:35:34]Write to MH i2c: 01 00 00 33 04 37 [15:35:34]Write i2c OK [15:35:34]MH_I2C_Read... [15:35:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 EB 95 47 00 D8 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 34 36 35 32 10 04 04 00 40 2C 01 00 F4 03 04 00 CA D9 24 66 B6 04 01 00 00 13 6F 20 D3 80 91 AB 21 [15:35:34]CommunicateWithHost err = 0 [15:35:34]CheckOFDResponse [15:35:34]1017 (14) - 77093643461234 [15:35:34]1041 (16) - 0000000000874652 [15:35:34]1040 (4) - 76864 [15:35:34]1012 (4) - 21.04.2024 09:18 [15:35:34]1206 (1) - 0 [15:35:34]OFD Sender: Remove packet 76864 [15:35:34]ProducePacketName [15:35:34]name=ofd_packets/00076864 [15:35:34]NVStorageDeleteData [15:35:35]OFD Sender: No OFD packet to send [15:35:35]*** Cut start [15:35:35]*** Partial cut [15:35:35]*** CUTSNS_PIN = 1 [15:35:35]*** CUTSNS_PIN = 0 [15:35:35]*** Brake cut motor [15:35:35]Read from MH i2c: 01 [15:35:35]MH_I2C_Read... [15:35:35]*** Stop cut motor [15:35:35]*** Cut end [15:35:35]Read from MH i2c: 01 07 00 [15:35:35]MH_I2C_Read... [15:35:35]Read from MH i2c: 01 07 00 33 04 00 00 00 00 00 FF 0F 4C [15:35:35]process_action close_receipt done [15:35:35]requested_data is exist [15:35:35]produce_requested_data [15:35:35]requested_item fm.sn is exist - process it [15:35:35]wFMCommunicate request_size=4 [15:35:35]MH_SAM_APDU [15:35:35]CAPDU: 80 11 00 00 [15:35:35]Write to MH i2c: E2 08 00 34 04 80 11 00 00 00 00 00 00 B2 [15:35:35]Write i2c OK [15:35:35]MH_I2C_Read... [15:35:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:35]Read from MH i2c: E2 [15:35:35]MH_I2C_Read... [15:35:35]Read from MH i2c: E2 17 00 [15:35:35]MH_I2C_Read... [15:35:35]Read from MH i2c: E2 17 00 34 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 05 [15:35:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [15:35:35]wFMCommunicate OK [15:35:35]requested_item fd.num is exist - process it [15:35:35]SAM_PROTO_GetFieldsCounters [15:35:35]wFMCommunicate request_size=4 [15:35:35]MH_SAM_APDU [15:35:35]CAPDU: 80 13 00 00 [15:35:35]Write to MH i2c: E2 08 00 35 04 80 13 00 00 00 00 00 00 B5 [15:35:35]Write i2c OK [15:35:35]MH_I2C_Read... [15:35:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:35:36]Read from MH i2c: E2 [15:35:36]MH_I2C_Read... [15:35:36]Read from MH i2c: E2 62 00 [15:35:36]MH_I2C_Read... [15:35:36]Read from MH i2c: E2 62 00 35 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 40 2C 01 00 0E 04 04 00 74 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 20 [15:35: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 40 2C 01 00 0E 04 04 00 74 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 [15:35:36]wFMCommunicate OK [15:35:36]SAM_PROTO_GetFieldsCounters done [15:35:36]requested_item shift.num is exist - process it [15:35:36]requested_item shift.opened is exist - process it [15:35:36]req_shift_opened [15:35:36]FM_GetShiftState [15:35:36]SAM_PROTO_GetShiftState [15:35:36]wFMCommunicate request_size=4 [15:35:36]MH_SAM_APDU [15:35:36]CAPDU: 80 13 01 00 [15:35:36]Write to MH i2c: E2 08 00 36 04 80 13 01 00 00 00 00 00 B7 [15:35:36]Write i2c OK [15:35:36]MH_I2C_Read... [15:35:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:36]Read from MH i2c: E2 [15:35:36]MH_I2C_Read... [15:35:36]Read from MH i2c: E2 0E 00 [15:35:36]MH_I2C_Read... [15:35:36]Read from MH i2c: E2 0E 00 36 04 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 FE [15:35:36]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [15:35:36]wFMCommunicate OK [15:35:36]SAM_PROTO_GetShiftState done [15:35:36]FM_GetShiftState done [15:35:36]req_shift_opened done [15:35:36]requested_item shift.open_date is exist - process it [15:35:36]req_shift_open_date [15:35:36]req_shift_open_date done [15:35:36]produce_requested_data done [15:35:36]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76864,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [15:35:36]process_action_free close_receipt [15:35:36]json_value_free [15:35:36]json_value_free done [15:35:36]process_json_proto returns [15:35:36]Send response to host [15:35:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76864,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [15:35:36]free response buf [15:35:36]execute_script done [15:35:36]execute_script returns [15:35:36]free content buf [15:35:36]Sock 7.Close socket [15:35:36]Sock 7.Thread stoped [15:35:40]OFD Sender: No OFD packet to send [15:35:45]OFD Sender: No OFD packet to send [15:35:50]OFD Sender: No OFD packet to send [15:35:55]OFD Sender: No OFD packet to send [15:36:00]OFD Sender: No OFD packet to send [15:36:05]OFD Sender: No OFD packet to send [15:36:10]OFD Sender: No OFD packet to send [15:36:15]OFD Sender: No OFD packet to send [15:36:20]OFD Sender: No OFD packet to send [15:36:25]OFD Sender: No OFD packet to send [15:36:30]OFD Sender: No OFD packet to send [15:36:35]OFD Sender: No OFD packet to send [15:36:40]OFD Sender: No OFD packet to send [15:36:45]OFD Sender: No OFD packet to send [15:36:50]OFD Sender: No OFD packet to send [15:36:55]OFD Sender: No OFD packet to send [15:37:00]OFD Sender: No OFD packet to send [15:37:05]OFD Sender: No OFD packet to send [15:37:10]OFD Sender: No OFD packet to send [15:37:15]OFD Sender: No OFD packet to send [15:37:20]OFD Sender: No OFD packet to send [15:37:25]OFD Sender: No OFD packet to send [15:37:30]OFD Sender: No OFD packet to send [15:37:35]OFD Sender: No OFD packet to send [15:37:40]OFD Sender: No OFD packet to send [15:37:45]OFD Sender: No OFD packet to send [15:37:50]OFD Sender: No OFD packet to send [15:37:55]OFD Sender: No OFD packet to send [15:38:00]OFD Sender: No OFD packet to send [15:38:05]OFD Sender: No OFD packet to send [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:05]OFD Sender: No OFD packet to send [15:39:07]accept exits with 9 [15:39:07]New connection [15:39:07]New thread 3067460964 created [15:39:07]Thread 3067317604 joined [15:39:07]Waiting for new connection... [15:39:07] Sock 9.Parse request [15:39:07]Sock 9.Check first char [15:39:07]Sock 9.First char is OK [15:39:07]request: POST /json_proto HTTP/1.0 [15:39:07]Method: POST [15:39:07]URL: /json_proto [15:39:07]Method is POST - this is cgi request [15:39:07]url: /json_proto [15:39:07]query_string will be loaded in cgi processing [15:39:07]execute_cgi json_proto POST (null) [15:39:07]execute_cgi path=json_proto method=POST [15:39:07]POST find Content-Length [15:39:07]Host: 172.17.62.5:8080 [15:39:07]Content-Length: 1155 [15:39:07]Content-Type: application/json [15:39:07] [15:39:07]POST finish read [15:39:07]Found Content-Length = 1155 [15:39: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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041B\u044B\u043C\u0430\u0440\u0435\u0432\u0430 \u0412. \u000A\u0421\u0447\u0435\u0442 N : (1)191404\u000A21.04.2024 15:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 7290.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30054359\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:07]execute_script... [15:39: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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041B\u044B\u043C\u0430\u0440\u0435\u0432\u0430 \u0412. \u000A\u0421\u0447\u0435\u0442 N : (1)191404\u000A21.04.2024 15:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 7290.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30054359\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:07]POST & json_proto [15:39:07]process_json_proto [15:39:07]json parsed OK: [15:39:07]protocol is kg_v1.0 [15:39:07]action value=print_text [15:39:07]process_action print_text [15:39:07]cmd_print_text [15:39:07]ExternCall_PrintAddStr [15:39:07]wPrintStart [15:39:07]Write to MH i2c: 01 00 00 37 04 3B [15:39:07]Write i2c OK [15:39:07]MH_I2C_Read... [15:39:07]Read from MH i2c: 01 [15:39:07]MH_I2C_Read... [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 37 04 00 00 00 00 00 FF 0F 50 [15:39:07]RasterBufferAndPrint [15:39:07]line *****ТОВАРНЫЙ ЧЕК***** [15:39:07]line АЗС 106 [15:39:07]line Партнер нефть [15:39:07]line 02508201610067 [15:39:07]line Кассир : Лымарева В. [15:39:07]line Счет N : (1)191404 [15:39:07]line 21.04.2024 15:20 [15:39:07]line ПРОДАЖА [15:39:07]line ТРК (МРК, ГНК): 51 [15:39:07]line Вид ГСМ : 2710194210 [15:39:07]line ДТ-К-5 [15:39:07]line 100.000 x 72.90 [15:39:07]line ИТОГ: 7290.00 [15:39:07]line Тип оплаты: Талоны: ТК ГПНА Online [15:39:07]line 30054359 [15:39:07]line ______________________ [15:39:07]line (подпись) [15:39:07]written 0, free lines is 4095 [15:39:07]Write to MH i2c: 01 00 00 4B 04 4F [15:39:07]Write i2c OK [15:39:07]MH_I2C_Read... [15:39:07]Read from MH i2c: 01 [15:39:07]MH_I2C_Read... [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 4B 04 00 00 00 00 00 0E 0E 72 [15:39:07]RasterBufferAndPrint [15:39:07]line [15:39:07]line [15:39:07]line [15:39:07]line [15:39:07]line [15:39:07]written 0, free lines is 3600 [15:39:07]MH_Cut [15:39:07]Write to MH i2c: D1 01 00 52 04 01 28 [15:39:07]Write i2c OK [15:39:07]MH_I2C_Read... [15:39:07]Read from MH i2c: D1 [15:39:07]MH_I2C_Read... [15:39:07]Read from MH i2c: D1 01 00 [15:39:07]MH_I2C_Read... [15:39:07]Read from MH i2c: D1 01 00 52 04 00 27 [15:39:07]Write to MH i2c: 01 00 00 53 04 57 [15:39:07]Write i2c OK [15:39:07]MH_I2C_Read... [15:39:07]*** Cut start [15:39:07]*** Partial cut [15:39:07]*** CUTSNS_PIN = 1 [15:39:07]*** CUTSNS_PIN = 0 [15:39:08]*** Brake cut motor [15:39:08]Read from MH i2c: 01 [15:39:08]MH_I2C_Read... [15:39:08]*** Stop cut motor [15:39:08]Read from MH i2c: 01 07 00 [15:39:08]MH_I2C_Read... [15:39:08]*** Cut end [15:39:08]Read from MH i2c: 01 07 00 53 04 00 00 00 00 00 FF 0F 6C [15:39:08]process_action print_text done [15:39:08]requested_data is exist [15:39:08]produce_requested_data [15:39:08]requested_item fm.sn is exist - process it [15:39:08]wFMCommunicate request_size=4 [15:39:08]MH_SAM_APDU [15:39:08]CAPDU: 80 11 00 00 [15:39:08]Write to MH i2c: E2 08 00 54 04 80 11 00 00 00 00 00 00 D2 [15:39:08]Write i2c OK [15:39:08]MH_I2C_Read... [15:39:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:08]Read from MH i2c: E2 [15:39:08]MH_I2C_Read... [15:39:08]Read from MH i2c: E2 17 00 [15:39:08]MH_I2C_Read... [15:39:08]Read from MH i2c: E2 17 00 54 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 25 [15:39:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [15:39:08]wFMCommunicate OK [15:39:08]requested_item fd.num is exist - process it [15:39:08]SAM_PROTO_GetFieldsCounters [15:39:08]wFMCommunicate request_size=4 [15:39:08]MH_SAM_APDU [15:39:08]CAPDU: 80 13 00 00 [15:39:08]Write to MH i2c: E2 08 00 55 04 80 13 00 00 00 00 00 00 D5 [15:39:08]Write i2c OK [15:39:08]MH_I2C_Read... [15:39:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:39:08]Read from MH i2c: E2 [15:39:08]MH_I2C_Read... [15:39:08]Read from MH i2c: E2 62 00 [15:39:08]MH_I2C_Read... [15:39:08]Read from MH i2c: E2 62 00 55 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 40 2C 01 00 0E 04 04 00 74 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 40 [15:39: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 40 2C 01 00 0E 04 04 00 74 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 [15:39:08]wFMCommunicate OK [15:39:08]SAM_PROTO_GetFieldsCounters done [15:39:08]requested_item shift.num is exist - process it [15:39:08]requested_item shift.opened is exist - process it [15:39:08]req_shift_opened [15:39:08]FM_GetShiftState [15:39:08]SAM_PROTO_GetShiftState [15:39:08]wFMCommunicate request_size=4 [15:39:08]MH_SAM_APDU [15:39:08]CAPDU: 80 13 01 00 [15:39:08]Write to MH i2c: E2 08 00 56 04 80 13 01 00 00 00 00 00 D7 [15:39:08]Write i2c OK [15:39:08]MH_I2C_Read... [15:39:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:08]Read from MH i2c: E2 [15:39:08]MH_I2C_Read... [15:39:08]Read from MH i2c: E2 0E 00 [15:39:08]MH_I2C_Read... [15:39:08]Read from MH i2c: E2 0E 00 56 04 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 1E [15:39:08]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [15:39:08]wFMCommunicate OK [15:39:08]SAM_PROTO_GetShiftState done [15:39:08]FM_GetShiftState done [15:39:08]req_shift_opened done [15:39:08]requested_item shift.open_date is exist - process it [15:39:08]req_shift_open_date [15:39:08]req_shift_open_date done [15:39:08]produce_requested_data done [15:39:08]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76864,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [15:39:08]process_action_free print_text [15:39:08]json_value_free [15:39:08]json_value_free done [15:39:08]process_json_proto returns [15:39:08]Send response to host [15:39:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76864,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [15:39:08]free response buf [15:39:08]execute_script done [15:39:08]execute_script returns [15:39:08]free content buf [15:39:08]Sock 9.Close socket [15:39:08]Sock 9.Thread stoped [15:39:10]OFD Sender: No OFD packet to send [15:39:15]OFD Sender: No OFD packet to send [15:39:20]OFD Sender: No OFD packet to send [15:39:25]OFD Sender: No OFD packet to send [15:39:30]OFD Sender: No OFD packet to send [15:39:35]OFD Sender: No OFD packet to send [15:39:40]OFD Sender: No OFD packet to send [15:39:45]OFD Sender: No OFD packet to send [15:39:50]OFD Sender: No OFD packet to send [15:39:55]OFD Sender: No OFD packet to send [15:40:00]OFD Sender: No OFD packet to send [15:40:05]OFD Sender: No OFD packet to send [15:40:10]OFD Sender: No OFD packet to send [15:40:15]OFD Sender: No OFD packet to send [15:40:20]OFD Sender: No OFD packet to send [15:40:25]OFD Sender: No OFD packet to send [15:40:30]OFD Sender: No OFD packet to send [15:40:35]OFD Sender: No OFD packet to send [15:40:40]OFD Sender: No OFD packet to send [15:40:45]OFD Sender: No OFD packet to send [15:40:50]OFD Sender: No OFD packet to send [15:40:55]OFD Sender: No OFD packet to send [15:41:00]OFD Sender: No OFD packet to send [15:41:05]OFD Sender: No OFD packet to send [15:41:10]OFD Sender: No OFD packet to send [15:41:15]OFD Sender: No OFD packet to send [15:41:20]OFD Sender: No OFD packet to send [15:41:25]OFD Sender: No OFD packet to send [15:41:30]OFD Sender: No OFD packet to send [15:41:35]OFD Sender: No OFD packet to send [15:41:40]OFD Sender: No OFD packet to send [15:41:45]OFD Sender: No OFD packet to send [15:41:50]OFD Sender: No OFD packet to send [15:41:55]OFD Sender: No OFD packet to send [15:42:00]OFD Sender: No OFD packet to send [15:42:05]OFD Sender: No OFD packet to send [15:42:10]OFD Sender: No OFD packet to send [15:42:15]OFD Sender: No OFD packet to send [15:42:20]OFD Sender: No OFD packet to send [15:42:25]OFD Sender: No OFD packet to send [15:42:30]OFD Sender: No OFD packet to send [15:42:35]OFD Sender: No OFD packet to send [15:42:40]OFD Sender: No OFD packet to send [15:42:45]OFD Sender: No OFD packet to send [15:42:50]OFD Sender: No OFD packet to send [15:42:55]OFD Sender: No OFD packet to send [15:43:00]OFD Sender: No OFD packet to send [15:43:05]OFD Sender: No OFD packet to send [15:43:10]OFD Sender: No OFD packet to send [15:43:15]OFD Sender: No OFD packet to send [15:43:20]OFD Sender: No OFD packet to send [15:43:25]OFD Sender: No OFD packet to send [15:43:30]OFD Sender: No OFD packet to send [15:43:35]OFD Sender: No OFD packet to send [15:43:40]OFD Sender: No OFD packet to send [15:43:45]OFD Sender: No OFD packet to send [15:43:50]OFD Sender: No OFD packet to send [15:43:55]OFD Sender: No OFD packet to send [15:44:00]OFD Sender: No OFD packet to send [15:44:05]OFD Sender: No OFD packet to send [15:44:10]OFD Sender: No OFD packet to send [15:44:15]OFD Sender: No OFD packet to send [15:44:20]OFD Sender: No OFD packet to send [15:44:25]OFD Sender: No OFD packet to send [15:44:30]OFD Sender: No OFD packet to send [15:44:35]OFD Sender: No OFD packet to send [15:44:40]OFD Sender: No OFD packet to send [15:44:45]OFD Sender: No OFD packet to send [15:44:50]OFD Sender: No OFD packet to send [15:44:55]OFD Sender: No OFD packet to send [15:45:00]OFD Sender: No OFD packet to send [15:45:05]OFD Sender: No OFD packet to send [15:45:10]OFD Sender: No OFD packet to send [15:45:15]OFD Sender: No OFD packet to send [15:45:20]OFD Sender: No OFD packet to send [15:45:25]OFD Sender: No OFD packet to send [15:45:30]OFD Sender: No OFD packet to send [15:45:35]OFD Sender: No OFD packet to send [15:45:40]OFD Sender: No OFD packet to send [15:45:45]OFD Sender: No OFD packet to send [15:45:50]OFD Sender: No OFD packet to send [15:45:55]OFD Sender: No OFD packet to send [15:46:00]OFD Sender: No OFD packet to send [15:46:05]OFD Sender: No OFD packet to send [15:46:10]OFD Sender: No OFD packet to send [15:46:15]OFD Sender: No OFD packet to send [15:46:20]OFD Sender: No OFD packet to send [15:46:25]OFD Sender: No OFD packet to send [15:46:30]OFD Sender: No OFD packet to send [15:46:35]OFD Sender: No OFD packet to send [15:46:40]OFD Sender: No OFD packet to send [15:46:45]OFD Sender: No OFD packet to send [15:46:50]OFD Sender: No OFD packet to send [15:46:55]OFD Sender: No OFD packet to send [15:47:00]OFD Sender: No OFD packet to send [15:47:05]OFD Sender: No OFD packet to send [15:47:10]OFD Sender: No OFD packet to send [15:47:15]OFD Sender: No OFD packet to send [15:47:20]OFD Sender: No OFD packet to send [15:47:25]OFD Sender: No OFD packet to send [15:47:30]OFD Sender: No OFD packet to send [15:47:35]OFD Sender: No OFD packet to send [15:47:40]OFD Sender: No OFD packet to send [15:47:45]OFD Sender: No OFD packet to send [15:47:50]OFD Sender: No OFD packet to send [15:47:55]OFD Sender: No OFD packet to send [15:48:00]OFD Sender: No OFD packet to send [15:48:05]OFD Sender: No OFD packet to send [15:48:10]OFD Sender: No OFD packet to send [15:48:16]OFD Sender: No OFD packet to send [15:48:21]OFD Sender: No OFD packet to send [15:48:26]OFD Sender: No OFD packet to send [15:48:31]OFD Sender: No OFD packet to send [15:48:36]OFD Sender: No OFD packet to send [15:48:41]OFD Sender: No OFD packet to send [15:48: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:26]OFD Sender: No OFD packet to send [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:04]accept exits with 7 [15:53:04]New connection [15:53:04]New thread 3067317604 created [15:53:04]Thread 3067460964 joined [15:53:04]Waiting for new connection... [15:53:04] Sock 7.Parse request [15:53:04]Sock 7.Check first char [15:53:04]Sock 7.First char is OK [15:53:04]request: POST /json_proto HTTP/1.0 [15:53:04]Method: POST [15:53:04]URL: /json_proto [15:53:04]Method is POST - this is cgi request [15:53:04]url: /json_proto [15:53:04]query_string will be loaded in cgi processing [15:53:04]execute_cgi json_proto POST (null) [15:53:04]execute_cgi path=json_proto method=POST [15:53:04]POST find Content-Length [15:53:04]Host: 172.17.62.5:8080 [15:53:04]Content-Length: 677 [15:53:04]Content-Type: application/json [15:53:04] [15:53:04]POST finish read [15:53:04]Found Content-Length = 677 [15:53:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 1.230, "sum" : 40.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 40.00, "payments": [ { "type": 0, "sum" : 40.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:04]execute_script... [15:53: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)191405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 1.230, "sum" : 40.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 40.00, "payments": [ { "type": 0, "sum" : 40.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:04]POST & json_proto [15:53:04]process_json_proto [15:53:04]json parsed OK: [15:53:04]protocol is kg_v1.0 [15:53:04]action value=close_receipt [15:53:04]process_action close_receipt [15:53:04]cmd_close_receipt [15:53:04]MH_GetDate [15:53:04]Write to MH i2c: F0 00 00 57 04 4A [15:53:04]Write i2c OK [15:53:04]MH_I2C_Read... [15:53:04]Read from MH i2c: F0 [15:53:04]MH_I2C_Read... [15:53:04]Read from MH i2c: F0 09 00 [15:53:04]MH_I2C_Read... [15:53:04]Read from MH i2c: F0 09 00 57 04 00 62 36 25 66 F4 E9 65 64 1C [15:53:04]GetLastDocTimeStamp 1713713733 [15:53:04]current date 1713714786 [15:53:04]FM_GetShiftState [15:53:04]SAM_PROTO_GetShiftState [15:53:04]wFMCommunicate request_size=4 [15:53:04]MH_SAM_APDU [15:53:04]CAPDU: 80 13 01 00 [15:53:04]Write to MH i2c: E2 08 00 58 04 80 13 01 00 00 00 00 00 D9 [15:53:04]Write i2c OK [15:53:04]MH_I2C_Read... [15:53:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:04]Read from MH i2c: E2 [15:53:04]MH_I2C_Read... [15:53:04]Read from MH i2c: E2 0E 00 [15:53:04]MH_I2C_Read... [15:53:04]Read from MH i2c: E2 0E 00 58 04 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 20 [15:53:04]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [15:53:04]wFMCommunicate OK [15:53:04]SAM_PROTO_GetShiftState done [15:53:04]FM_GetShiftState done [15:53:04]opened in 1713658965 [15:53:04]opened+sec_in_day 1713745365 [15:53:04]quantity*price = 4022 [15:53:04]sum+1 = 4023 [15:53:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 40.00 Внесено: 100.00 СДАЧА: 60.00 НСП 1% : 0.36 НДС 12% : 4.27 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 121 21.04.2024 15:53 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76865 ФПД: 180778164846475 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T155306&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76865&fm=180778164846475&tin=02508201610067®Number=0000000000091573&sum=4000 [15:53:06]StoreToDocumentArchive [15:53:06]shift 372 fd 76865 [15:53:06]save to /storage/0372/doc_00076865 [15:53:06]save last doc name /storage/0372/doc_00076865 to /storage/kkm_last_doc_name [15:53:06]save OK [15:53:06]Clear old archive folders... [15:53:06]ProcessDocumentItem done err = 0, tmpTLVsize=250 [15:53:06]tlvbuf is 01801500 [15:53:06]SAM_PROTO_ClearQueue [15:53:06]wFMCommunicate request_size=4 [15:53:06]MH_SAM_APDU [15:53:06]CAPDU: 80 09 00 00 [15:53:06]Write to MH i2c: E2 08 00 65 04 80 09 00 00 00 00 00 00 DB [15:53:06]Write i2c OK [15:53:06]MH_I2C_Read... [15:53:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:53:06]Read from MH i2c: E2 [15:53:06]MH_I2C_Read... [15:53:06]Read from MH i2c: E2 03 00 [15:53:06]MH_I2C_Read... [15:53:06]Read from MH i2c: E2 03 00 65 04 00 90 00 DD [15:53:06]RAPDU: 90 00 [15:53:06]wFMCommunicate OK [15:53:06]SAM_PROTO_ClearQueue done [15:53:06]KKMCreateOFDPacket [15:53:06]OFDProtocolAddRootSTLVToBuf [15:53:06]FM_MakeSignedData [15:53:06]FM_MakeSignedData [15:53:06]SAM_PROTO_SignData [15:53:06]wFMCommunicate request_size=4 [15:53:06]MH_SAM_APDU [15:53:06]CAPDU: 80 0D 01 02 [15:53:06]Write to MH i2c: E2 08 00 66 04 80 0D 01 02 00 00 00 00 E3 [15:53:06]Write i2c OK [15:53:06]MH_I2C_Read... [15:53:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:53:06]Read from MH i2c: E2 [15:53:06]MH_I2C_Read... [15:53:06]Read from MH i2c: E2 03 00 [15:53:06]MH_I2C_Read... [15:53:06]Read from MH i2c: E2 03 00 66 04 00 90 00 DE [15:53:06]RAPDU: 90 00 [15:53:06]wFMCommunicate OK [15:53:06]wFMCommunicate request_size=255 [15:53:06]MH_SAM_APDU [15:53:06]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 CE 04 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 B6 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 62 36 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 41 2C 01 00 35 04 06 00 A4 6A [15:53:06]Write to MH i2c: E2 02 01 67 04 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 CE 04 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 B6 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 62 36 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 41 2C 01 00 35 04 06 00 A4 6A 00 00 B8 [15:53:06]Write i2c OK [15:53:06]MH_I2C_Read... [15:53:06]OFD Sender: No OFD packet to send [15:53:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:06]Read from MH i2c: E2 [15:53:06]MH_I2C_Read... [15:53:06]Read from MH i2c: E2 03 00 [15:53:06]MH_I2C_Read... [15:53:06]Read from MH i2c: E2 03 00 67 04 00 90 00 DF [15:53:06]RAPDU: 90 00 [15:53:06]wFMCommunicate OK [15:53:06]wFMCommunicate request_size=9 [15:53:06]MH_SAM_APDU [15:53:06]CAPDU: 80 0D 02 02 04 B2 4C 7F 8B [15:53:06]Write to MH i2c: E2 0C 00 68 04 80 0D 02 02 04 00 B2 4C 7F 8B 00 00 F6 [15:53:06]Write i2c OK [15:53:06]MH_I2C_Read... [15:53:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:06]Read from MH i2c: E2 [15:53:06]MH_I2C_Read... [15:53:06]Read from MH i2c: E2 03 00 [15:53:06]MH_I2C_Read... [15:53:06]Read from MH i2c: E2 03 00 68 04 00 90 00 E0 [15:53:06]RAPDU: 90 00 [15:53:06]wFMCommunicate OK [15:53:06]wFMCommunicate request_size=4 [15:53:06]MH_SAM_APDU [15:53:06]CAPDU: 80 0D 03 02 [15:53:06]Write to MH i2c: E2 08 00 69 04 80 0D 03 02 00 00 00 00 E8 [15:53:06]Write i2c OK [15:53:06]MH_I2C_Read... [15:53:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:53:06]Read from MH i2c: E2 [15:53:06]MH_I2C_Read... [15:53:06]Read from MH i2c: E2 0B 00 [15:53:06]MH_I2C_Read... [15:53:06]Read from MH i2c: E2 0B 00 69 04 00 25 80 33 73 C6 DA A8 83 90 00 FF [15:53:06]RAPDU: 25 80 33 73 C6 DA A8 83 90 00 [15:53:06]wFMCommunicate OK [15:53:06]SAM_PROTO_SignData done [15:53:06]FM_MakeSignedData done [15:53:06]CreateOFDProtocolMessage [15:53:06]wFMCommunicate request_size=4 [15:53:06]MH_SAM_APDU [15:53:06]CAPDU: 80 11 00 00 [15:53:06]Write to MH i2c: E2 08 00 6A 04 80 11 00 00 00 00 00 00 E8 [15:53:06]Write i2c OK [15:53:06]MH_I2C_Read... [15:53:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:06]Read from MH i2c: E2 [15:53:06]MH_I2C_Read... [15:53:06]Read from MH i2c: E2 17 00 [15:53:06]MH_I2C_Read... [15:53:06]Read from MH i2c: E2 17 00 6A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 3B [15:53:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [15:53:06]wFMCommunicate OK [15:53:06]CreateOFDProtocolMessage done [15:53:06]OFDSenderStorePacket 76865 [15:53:06]StoreOFDPacket docnum=76865 [15:53:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 E7 5B 06 01 6D 1B 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 CE 04 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 B6 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 62 36 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 41 2C 01 00 35 04 06 00 A4 6A B2 4C 7F 8B 25 80 33 73 C6 DA A8 83 [15:53:06]CheckFolder [15:53:06]dirname=/storage/ofd_packets [15:53:06]CheckFolder done [15:53:06]ProducePacketName [15:53:06]name=ofd_packets/00076865 [15:53:06]NVStorageSaveData ofd_packets/00076865 [15:53:06]File name is /storage/ofd_packets/00076865 [15:53:06]Write 300 bytes [15:53:06]NVStorageSaveData done [15:53:06]OFDSenderStorePacket done [15:53:06]KKMCreateOFDPacket done [15:53:06]NVStorageSaveData kkm_last_timestamp [15:53:06]File name is /storage/kkm_last_timestamp [15:53:06]Write 4 bytes [15:53:06]NVStorageSaveData done [15:53:06]ExternCall_PrintAddStr [15:53:06]wPrintStart [15:53:06]Write to MH i2c: 01 00 00 6B 04 6F [15:53:06]Write i2c OK [15:53:06]MH_I2C_Read... [15:53:06]Read from MH i2c: 01 [15:53:06]MH_I2C_Read... [15:53:06]Read from MH i2c: 01 07 00 [15:53:06]MH_I2C_Read... [15:53:06]Read from MH i2c: 01 07 00 6B 04 00 00 00 00 00 FF 0F 84 [15:53:06]RasterBufferAndPrint [15:53:06]line Счет N : (1)191405 [15:53:06]line ИНН: 02508201610067 [15:53:06]line Контрольно-Кассовый Чек [15:53:06]line ПРОДАЖА [15:53:06]line ТРК (МРК, ГНК) : 71 [15:53:06]line Товар: 2711190000 [15:53:06]line ГАЗ-К-5 [15:53:06]line 1.230 * 32.70 [15:53:06]line = 40.22 [15:53:06]line НДС 12% НСП 1% [15:53:06]line > о реализуемом товаре [15:53:06]line ОКРУГЛЕНИЕ: -0.22 [15:53:06]line ИТОГО: 40.00 [15:53:06]line Внесено: 100.00 [15:53:06]line СДАЧА: 60.00 [15:53:06]line НСП 1% : 0.36 [15:53:06]line НДС 12% : 4.27 [15:53:06]line Наличными: 40.00 [15:53:06]line Безнал.: 0.00 [15:53:06]line Место: АЗС № 106 "Партнер Нефть" [15:53:06]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [15:53:06]line СНО: Общий режим [15:53:06]line Чек 121 21.04.2024 15:53 [15:53:06]line Смена: 372 ФФД: 1.0 [15:53:06]line ЗНМ: 0300000141 [15:53:06]line РНМ: 0000000000091573 [15:53:06]line Версия ККМ: 001 [15:53:06]line ФМ: 0000000000874652 [15:53:06]line ФД: 76865 [15:53:06]line ФПД: 180778164846475 [15:53:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T155306&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76865&fm=180778164846475&tin=02508201610067®Number=0000000000091573&sum=4000 [15:53:06]written 0, free lines is 4095 [15:53:06]OFD Sender: Processing packet 76865 [packets to send 129, broken 128] [15:53:06]ProducePacketName [15:53:06]name=ofd_packets/00076865 [15:53:06]OFD Sender: To server: pG, [15:53:06]CommunicateWithHost lk.salyk.kg:30040 [15:53:06]ConnectInit lk.salyk.kg [15:53:06]Connected sock=10 [15:53:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 E7 5B 06 01 6D 1B 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 CE 04 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 B6 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 62 36 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 41 2C 01 00 35 04 06 00 A4 6A B2 4C 7F 8B 25 80 33 73 C6 DA A8 83 [15:53:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 E5 7F 47 00 85 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 41 2C 01 00 F4 03 04 00 E6 DD 24 66 B6 04 01 00 00 41 9C 42 40 9E C7 2B 10 [15:53:06]CommunicateWithHost err = 0 [15:53:06]CheckOFDResponse [15:53:06]1017 (14) - 77093643461234 [15:53:06]1041 (16) - 0000000000874652 [15:53:06]1040 (4) - 76865 [15:53:06]1012 (4) - 21.04.2024 09:35 [15:53:06]1206 (1) - 0 [15:53:06]OFD Sender: Remove packet 76865 [15:53:06]ProducePacketName [15:53:06]name=ofd_packets/00076865 [15:53:06]NVStorageDeleteData [15:53:07]Write to MH i2c: 01 00 00 95 04 99 [15:53:07]Write i2c OK [15:53:07]MH_I2C_Read... [15:53:07]Read from MH i2c: 01 [15:53:07]MH_I2C_Read... [15:53:07]Read from MH i2c: 01 07 00 [15:53:07]MH_I2C_Read... [15:53:07]Read from MH i2c: 01 07 00 95 04 00 00 00 00 00 E8 0C 94 [15:53:07]RasterBufferAndPrint [15:53:07]line [15:53:07]line [15:53:07]line [15:53:07]line [15:53:07]line [15:53:07]written 0, free lines is 3308 [15:53:07]MH_Cut [15:53:07]Write to MH i2c: D1 01 00 9C 04 01 72 [15:53:07]Write i2c OK [15:53:07]MH_I2C_Read... [15:53:07]Read from MH i2c: D1 [15:53:07]MH_I2C_Read... [15:53:07]Read from MH i2c: D1 01 00 [15:53:07]MH_I2C_Read... [15:53:07]Read from MH i2c: D1 01 00 9C 04 00 71 [15:53:07]Write to MH i2c: 01 00 00 9D 04 A1 [15:53:07]Write i2c OK [15:53:07]MH_I2C_Read... [15:53:07]OFD Sender: No OFD packet to send [15:53:07]*** Cut start [15:53:07]*** Partial cut [15:53:07]*** CUTSNS_PIN = 1 [15:53:07]*** CUTSNS_PIN = 0 [15:53:08]*** Brake cut motor [15:53:08]Read from MH i2c: 01 [15:53:08]MH_I2C_Read... [15:53:08]*** Stop cut motor [15:53:08]*** Cut end [15:53:08]Read from MH i2c: 01 07 00 [15:53:08]MH_I2C_Read... [15:53:08]Read from MH i2c: 01 07 00 9D 04 00 00 00 00 00 FF 0F B6 [15:53:08]process_action close_receipt done [15:53:08]requested_data is exist [15:53:08]produce_requested_data [15:53:08]requested_item fm.sn is exist - process it [15:53:08]wFMCommunicate request_size=4 [15:53:08]MH_SAM_APDU [15:53:08]CAPDU: 80 11 00 00 [15:53:08]Write to MH i2c: E2 08 00 9E 04 80 11 00 00 00 00 00 00 1C [15:53:08]Write i2c OK [15:53:08]MH_I2C_Read... [15:53:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:08]Read from MH i2c: E2 [15:53:08]MH_I2C_Read... [15:53:08]Read from MH i2c: E2 17 00 [15:53:08]MH_I2C_Read... [15:53:08]Read from MH i2c: E2 17 00 9E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 6F [15:53:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [15:53:08]wFMCommunicate OK [15:53:08]requested_item fd.num is exist - process it [15:53:08]SAM_PROTO_GetFieldsCounters [15:53:08]wFMCommunicate request_size=4 [15:53:08]MH_SAM_APDU [15:53:08]CAPDU: 80 13 00 00 [15:53:08]Write to MH i2c: E2 08 00 9F 04 80 13 00 00 00 00 00 00 1F [15:53:08]Write i2c OK [15:53:08]MH_I2C_Read... [15:53:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:53:08]Read from MH i2c: E2 [15:53:08]MH_I2C_Read... [15:53:08]Read from MH i2c: E2 62 00 [15:53:08]MH_I2C_Read... [15:53:08]Read from MH i2c: E2 62 00 9F 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 41 2C 01 00 0E 04 04 00 74 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 8E [15:53: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 41 2C 01 00 0E 04 04 00 74 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 [15:53:08]wFMCommunicate OK [15:53:08]SAM_PROTO_GetFieldsCounters done [15:53:08]requested_item shift.num is exist - process it [15:53:08]requested_item shift.opened is exist - process it [15:53:08]req_shift_opened [15:53:08]FM_GetShiftState [15:53:08]SAM_PROTO_GetShiftState [15:53:08]wFMCommunicate request_size=4 [15:53:08]MH_SAM_APDU [15:53:08]CAPDU: 80 13 01 00 [15:53:08]Write to MH i2c: E2 08 00 A0 04 80 13 01 00 00 00 00 00 21 [15:53:08]Write i2c OK [15:53:08]MH_I2C_Read... [15:53:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:08]Read from MH i2c: E2 [15:53:08]MH_I2C_Read... [15:53:08]Read from MH i2c: E2 0E 00 [15:53:08]MH_I2C_Read... [15:53:08]Read from MH i2c: E2 0E 00 A0 04 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 68 [15:53:08]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [15:53:08]wFMCommunicate OK [15:53:08]SAM_PROTO_GetShiftState done [15:53:08]FM_GetShiftState done [15:53:08]req_shift_opened done [15:53:08]requested_item shift.open_date is exist - process it [15:53:08]req_shift_open_date [15:53:08]req_shift_open_date done [15:53:08]produce_requested_data done [15:53:08]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76865,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [15:53:08]process_action_free close_receipt [15:53:08]json_value_free [15:53:08]json_value_free done [15:53:08]process_json_proto returns [15:53:08]Send response to host [15:53:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76865,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [15:53:08]free response buf [15:53:08]execute_script done [15:53:08]execute_script returns [15:53:08]free content buf [15:53:08]Sock 7.Close socket [15:53:08]Sock 7.Thread stoped [15:53:12]OFD Sender: No OFD packet to send [15:53:17]OFD Sender: No OFD packet to send [15:53:22]OFD Sender: No OFD packet to send [15:53:27]OFD Sender: No OFD packet to send [15:53:32]OFD Sender: No OFD packet to send [15:53:37]OFD Sender: No OFD packet to send [15:53:42]OFD Sender: No OFD packet to send [15:53:47]OFD Sender: No OFD packet to send [15:53:52]OFD Sender: No OFD packet to send [15:53:57]OFD Sender: No OFD packet to send [15:54:02]OFD Sender: No OFD packet to send [15:54:05]accept exits with 9 [15:54:05]New connection [15:54:05]New thread 3067460964 created [15:54:05]Thread 3067317604 joined [15:54:05]Waiting for new connection... [15:54:05] Sock 9.Parse request [15:54:05]Sock 9.Check first char [15:54:05]Sock 9.First char is OK [15:54:05]request: POST /json_proto HTTP/1.0 [15:54:05]Method: POST [15:54:05]URL: /json_proto [15:54:05]Method is POST - this is cgi request [15:54:05]url: /json_proto [15:54:05]query_string will be loaded in cgi processing [15:54:05]execute_cgi json_proto POST (null) [15:54:05]execute_cgi path=json_proto method=POST [15:54:05]POST find Content-Length [15:54:05]Host: 172.17.62.5:8080 [15:54:05]Content-Length: 676 [15:54:05]Content-Type: application/json [15:54:05] [15:54:05]POST finish read [15:54:05]Found Content-Length = 676 [15:54:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 1.000, "sum" : 32.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 32.00, "total" : 32.00, "payments": [ { "type": 0, "sum" : 32.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:54:05]execute_script... [15:54: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)191406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 1.000, "sum" : 32.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 32.00, "total" : 32.00, "payments": [ { "type": 0, "sum" : 32.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:54:05]POST & json_proto [15:54:05]process_json_proto [15:54:05]json parsed OK: [15:54:05]protocol is kg_v1.0 [15:54:05]action value=close_receipt [15:54:05]process_action close_receipt [15:54:05]cmd_close_receipt [15:54:05]MH_GetDate [15:54:05]Write to MH i2c: F0 00 00 A1 04 94 [15:54:05]Write i2c OK [15:54:05]MH_I2C_Read... [15:54:05]Read from MH i2c: F0 [15:54:05]MH_I2C_Read... [15:54:05]Read from MH i2c: F0 09 00 [15:54:05]MH_I2C_Read... [15:54:05]Read from MH i2c: F0 09 00 A1 04 00 9E 36 25 66 F4 E9 65 64 A2 [15:54:05]GetLastDocTimeStamp 1713714786 [15:54:05]current date 1713714846 [15:54:05]FM_GetShiftState [15:54:05]SAM_PROTO_GetShiftState [15:54:05]wFMCommunicate request_size=4 [15:54:05]MH_SAM_APDU [15:54:05]CAPDU: 80 13 01 00 [15:54:05]Write to MH i2c: E2 08 00 A2 04 80 13 01 00 00 00 00 00 23 [15:54:05]Write i2c OK [15:54:05]MH_I2C_Read... [15:54:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:54:05]Read from MH i2c: E2 [15:54:05]MH_I2C_Read... [15:54:05]Read from MH i2c: E2 0E 00 [15:54:05]MH_I2C_Read... [15:54:05]Read from MH i2c: E2 0E 00 A2 04 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 6A [15:54:05]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [15:54:05]wFMCommunicate OK [15:54:05]SAM_PROTO_GetShiftState done [15:54:05]FM_GetShiftState done [15:54:05]opened in 1713658965 [15:54:05]opened+sec_in_day 1713745365 [15:54:05]quantity*price = 3270 [15:54:05]sum+1 = 3271 [15:54:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 32.00 Внесено: 32.00 СДАЧА: 0.00 НСП 1% : 0.29 НДС 12% : 3.47 Наличными: 32.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 122 21.04.2024 15:54 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76866 ФПД: 94782155055239 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T155406&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76866&fm=94782155055239&tin=02508201610067®Number=0000000000091573&sum=3200 [15:54:06]StoreToDocumentArchive [15:54:06]shift 372 fd 76866 [15:54:06]save to /storage/0372/doc_00076866 [15:54:06]save last doc name /storage/0372/doc_00076866 to /storage/kkm_last_doc_name [15:54:06]save OK [15:54:06]Clear old archive folders... [15:54:06]ProcessDocumentItem done err = 0, tmpTLVsize=250 [15:54:06]tlvbuf is 017EA550 [15:54:06]SAM_PROTO_ClearQueue [15:54:06]wFMCommunicate request_size=4 [15:54:06]MH_SAM_APDU [15:54:06]CAPDU: 80 09 00 00 [15:54:06]Write to MH i2c: E2 08 00 AF 04 80 09 00 00 00 00 00 00 25 [15:54:06]Write i2c OK [15:54:06]MH_I2C_Read... [15:54:06]Read from MH i2c: E2 [15:54:06]MH_I2C_Read... [15:54:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:54:06]Read from MH i2c: E2 03 00 [15:54:06]MH_I2C_Read... [15:54:06]Read from MH i2c: E2 03 00 AF 04 00 90 00 27 [15:54:06]RAPDU: 90 00 [15:54:06]wFMCommunicate OK [15:54:06]SAM_PROTO_ClearQueue done [15:54:06]KKMCreateOFDPacket [15:54:06]OFDProtocolAddRootSTLVToBuf [15:54:06]FM_MakeSignedData [15:54:06]FM_MakeSignedData [15:54:06]SAM_PROTO_SignData [15:54:06]wFMCommunicate request_size=4 [15:54:06]MH_SAM_APDU [15:54:06]CAPDU: 80 0D 01 02 [15:54:06]Write to MH i2c: E2 08 00 B0 04 80 0D 01 02 00 00 00 00 2D [15:54:06]Write i2c OK [15:54:06]MH_I2C_Read... [15:54:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:54:06]Read from MH i2c: E2 [15:54:06]MH_I2C_Read... [15:54:06]Read from MH i2c: E2 03 00 [15:54:06]MH_I2C_Read... [15:54:06]Read from MH i2c: E2 03 00 B0 04 00 90 00 28 [15:54:06]RAPDU: 90 00 [15:54:06]wFMCommunicate OK [15:54:06]wFMCommunicate request_size=255 [15:54:06]MH_SAM_APDU [15:54:06]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 C6 0C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 0C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 01 00 00 00 00 07 04 06 00 80 0C 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 9E 36 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 42 2C 01 00 35 04 06 00 56 34 [15:54:06]Write to MH i2c: E2 02 01 B1 04 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 C6 0C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 0C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 01 00 00 00 00 07 04 06 00 80 0C 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 9E 36 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 42 2C 01 00 35 04 06 00 56 34 00 00 45 [15:54:06]Write i2c OK [15:54:06]MH_I2C_Read... [15:54:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:54:06]Read from MH i2c: E2 [15:54:06]MH_I2C_Read... [15:54:06]Read from MH i2c: E2 03 00 [15:54:06]MH_I2C_Read... [15:54:06]Read from MH i2c: E2 03 00 B1 04 00 90 00 29 [15:54:06]RAPDU: 90 00 [15:54:06]wFMCommunicate OK [15:54:06]wFMCommunicate request_size=9 [15:54:06]MH_SAM_APDU [15:54:06]CAPDU: 80 0D 02 02 04 30 AE E0 87 [15:54:06]Write to MH i2c: E2 0C 00 B2 04 80 0D 02 02 04 00 30 AE E0 87 00 00 7D [15:54:06]Write i2c OK [15:54:06]MH_I2C_Read... [15:54:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:54:06]Read from MH i2c: E2 [15:54:06]MH_I2C_Read... [15:54:06]Read from MH i2c: E2 03 00 [15:54:06]MH_I2C_Read... [15:54:06]Read from MH i2c: E2 03 00 B2 04 00 90 00 2A [15:54:06]RAPDU: 90 00 [15:54:06]wFMCommunicate OK [15:54:06]wFMCommunicate request_size=4 [15:54:06]MH_SAM_APDU [15:54:06]CAPDU: 80 0D 03 02 [15:54:06]Write to MH i2c: E2 08 00 B3 04 80 0D 03 02 00 00 00 00 32 [15:54:06]Write i2c OK [15:54:06]MH_I2C_Read... [15:54:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:54:06]Read from MH i2c: E2 [15:54:06]MH_I2C_Read... [15:54:06]Read from MH i2c: E2 0B 00 [15:54:06]MH_I2C_Read... [15:54:06]Read from MH i2c: E2 0B 00 B3 04 00 85 2F C0 43 7A 75 F8 9B 90 00 6C [15:54:06]RAPDU: 85 2F C0 43 7A 75 F8 9B 90 00 [15:54:06]wFMCommunicate OK [15:54:06]SAM_PROTO_SignData done [15:54:06]FM_MakeSignedData done [15:54:06]CreateOFDProtocolMessage [15:54:06]wFMCommunicate request_size=4 [15:54:06]MH_SAM_APDU [15:54:06]CAPDU: 80 11 00 00 [15:54:06]Write to MH i2c: E2 08 00 B4 04 80 11 00 00 00 00 00 00 32 [15:54:06]Write i2c OK [15:54:06]MH_I2C_Read... [15:54:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:54:06]Read from MH i2c: E2 [15:54:06]MH_I2C_Read... [15:54:06]Read from MH i2c: E2 17 00 [15:54:06]MH_I2C_Read... [15:54:06]Read from MH i2c: E2 17 00 B4 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 85 [15:54:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [15:54:06]wFMCommunicate OK [15:54:06]CreateOFDProtocolMessage done [15:54:06]OFDSenderStorePacket 76866 [15:54:06]StoreOFDPacket docnum=76866 [15:54:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 03 3B 06 01 6E D1 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 C6 0C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 0C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 01 00 00 00 00 07 04 06 00 80 0C 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 9E 36 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 42 2C 01 00 35 04 06 00 56 34 30 AE E0 87 85 2F C0 43 7A 75 F8 9B [15:54:06]CheckFolder [15:54:06]dirname=/storage/ofd_packets [15:54:06]CheckFolder done [15:54:06]ProducePacketName [15:54:06]name=ofd_packets/00076866 [15:54:06]NVStorageSaveData ofd_packets/00076866 [15:54:06]File name is /storage/ofd_packets/00076866 [15:54:06]Write 300 bytes [15:54:06]NVStorageSaveData done [15:54:06]OFDSenderStorePacket done [15:54:06]KKMCreateOFDPacket done [15:54:06]NVStorageSaveData kkm_last_timestamp [15:54:06]File name is /storage/kkm_last_timestamp [15:54:06]Write 4 bytes [15:54:06]NVStorageSaveData done [15:54:06]ExternCall_PrintAddStr [15:54:06]wPrintStart [15:54:06]Write to MH i2c: 01 00 00 B5 04 B9 [15:54:06]Write i2c OK [15:54:06]MH_I2C_Read... [15:54:06]Read from MH i2c: 01 [15:54:06]MH_I2C_Read... [15:54:06]Read from MH i2c: 01 07 00 [15:54:06]MH_I2C_Read... [15:54:06]Read from MH i2c: 01 07 00 B5 04 00 00 00 00 00 FF 0F CE [15:54:06]RasterBufferAndPrint [15:54:06]line Счет N : (1)191406 [15:54:06]line ИНН: 02508201610067 [15:54:06]line Контрольно-Кассовый Чек [15:54:06]line ПРОДАЖА [15:54:06]line ТРК (МРК, ГНК) : 71 [15:54:06]line Товар: 2711190000 [15:54:06]line ГАЗ-К-5 [15:54:06]line 1.000 * 32.70 [15:54:06]line = 32.70 [15:54:06]line НДС 12% НСП 1% [15:54:06]line > о реализуемом товаре [15:54:06]line ОКРУГЛЕНИЕ: -0.70 [15:54:06]line ИТОГО: 32.00 [15:54:06]line Внесено: 32.00 [15:54:06]line СДАЧА: 0.00 [15:54:06]line НСП 1% : 0.29 [15:54:06]line НДС 12% : 3.47 [15:54:06]line Наличными: 32.00 [15:54:06]line Безнал.: 0.00 [15:54:06]line Место: АЗС № 106 "Партнер Нефть" [15:54:06]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [15:54:06]line СНО: Общий режим [15:54:06]line Чек 122 21.04.2024 15:54 [15:54:06]line Смена: 372 ФФД: 1.0 [15:54:06]line ЗНМ: 0300000141 [15:54:06]line РНМ: 0000000000091573 [15:54:06]line Версия ККМ: 001 [15:54:06]line ФМ: 0000000000874652 [15:54:06]line ФД: 76866 [15:54:06]line ФПД: 94782155055239 [15:54:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T155406&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76866&fm=94782155055239&tin=02508201610067®Number=0000000000091573&sum=3200 [15:54:07]OFD Sender: Processing packet 76866 [packets to send 129, broken 128] [15:54:07]ProducePacketName [15:54:07]name=ofd_packets/00076866 [15:54:07]OFD Sender: To server: pG, [15:54:07]CommunicateWithHost lk.salyk.kg:30040 [15:54:07]ConnectInit lk.salyk.kg [15:54:07]written 0, free lines is 4095 [15:54:07]Connected sock=7 [15:54:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 03 3B 06 01 6E D1 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 C6 0C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 0C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 01 00 00 00 00 07 04 06 00 80 0C 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 9E 36 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 42 2C 01 00 35 04 06 00 56 34 30 AE E0 87 85 2F C0 43 7A 75 F8 9B [15:54:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 8C E0 47 00 8D 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 34 36 35 32 10 04 04 00 42 2C 01 00 F4 03 04 00 23 DE 24 66 B6 04 01 00 00 E4 AD 64 66 A6 43 09 B2 [15:54:07]CommunicateWithHost err = 0 [15:54:07]CheckOFDResponse [15:54:07]1017 (14) - 77093643461234 [15:54:07]1041 (16) - 0000000000874652 [15:54:07]1040 (4) - 76866 [15:54:07]1012 (4) - 21.04.2024 09:36 [15:54:07]1206 (1) - 0 [15:54:07]OFD Sender: Remove packet 76866 [15:54:07]ProducePacketName [15:54:07]name=ofd_packets/00076866 [15:54:07]NVStorageDeleteData [15:54:07]Write to MH i2c: 01 00 00 DF 04 E3 [15:54:07]Write i2c OK [15:54:07]MH_I2C_Read... [15:54:07]Read from MH i2c: 01 [15:54:07]MH_I2C_Read... [15:54:07]Read from MH i2c: 01 07 00 [15:54:07]MH_I2C_Read... [15:54:07]Read from MH i2c: 01 07 00 DF 04 00 00 00 00 00 D9 0C CF [15:54:07]RasterBufferAndPrint [15:54:07]line [15:54:07]line [15:54:07]line [15:54:07]line [15:54:07]line [15:54:07]written 0, free lines is 3296 [15:54:07]MH_Cut [15:54:07]Write to MH i2c: D1 01 00 E6 04 01 BC [15:54:07]Write i2c OK [15:54:07]MH_I2C_Read... [15:54:07]Read from MH i2c: D1 [15:54:07]MH_I2C_Read... [15:54:07]Read from MH i2c: D1 01 00 [15:54:07]MH_I2C_Read... [15:54:07]Read from MH i2c: D1 01 00 E6 04 00 BB [15:54:07]Write to MH i2c: 01 00 00 E7 04 EB [15:54:07]Write i2c OK [15:54:07]MH_I2C_Read... [15:54:08]OFD Sender: No OFD packet to send [15:54:08]*** Cut start [15:54:08]*** Partial cut [15:54:08]*** CUTSNS_PIN = 1 [15:54:08]*** CUTSNS_PIN = 0 [15:54:08]*** Brake cut motor [15:54:08]Read from MH i2c: 01 [15:54:08]MH_I2C_Read... [15:54:08]*** Stop cut motor [15:54:08]*** Cut end [15:54:08]Read from MH i2c: 01 07 00 [15:54:08]MH_I2C_Read... [15:54:08]Read from MH i2c: 01 07 00 E7 04 00 00 00 00 00 FF 0F 00 [15:54:08]process_action close_receipt done [15:54:08]requested_data is exist [15:54:08]produce_requested_data [15:54:08]requested_item fm.sn is exist - process it [15:54:08]wFMCommunicate request_size=4 [15:54:08]MH_SAM_APDU [15:54:08]CAPDU: 80 11 00 00 [15:54:08]Write to MH i2c: E2 08 00 E8 04 80 11 00 00 00 00 00 00 66 [15:54:08]Write i2c OK [15:54:08]MH_I2C_Read... [15:54:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:54:08]Read from MH i2c: E2 [15:54:08]MH_I2C_Read... [15:54:08]Read from MH i2c: E2 17 00 [15:54:08]MH_I2C_Read... [15:54:08]Read from MH i2c: E2 17 00 E8 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 B9 [15:54:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [15:54:08]wFMCommunicate OK [15:54:08]requested_item fd.num is exist - process it [15:54:08]SAM_PROTO_GetFieldsCounters [15:54:08]wFMCommunicate request_size=4 [15:54:08]MH_SAM_APDU [15:54:08]CAPDU: 80 13 00 00 [15:54:08]Write to MH i2c: E2 08 00 E9 04 80 13 00 00 00 00 00 00 69 [15:54:08]Write i2c OK [15:54:08]MH_I2C_Read... [15:54:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:54:09]Read from MH i2c: E2 [15:54:09]MH_I2C_Read... [15:54:09]Read from MH i2c: E2 62 00 [15:54:09]MH_I2C_Read... [15:54:09]Read from MH i2c: E2 62 00 E9 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 42 2C 01 00 0E 04 04 00 74 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 DC [15:54: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 42 2C 01 00 0E 04 04 00 74 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 [15:54:09]wFMCommunicate OK [15:54:09]SAM_PROTO_GetFieldsCounters done [15:54:09]requested_item shift.num is exist - process it [15:54:09]requested_item shift.opened is exist - process it [15:54:09]req_shift_opened [15:54:09]FM_GetShiftState [15:54:09]SAM_PROTO_GetShiftState [15:54:09]wFMCommunicate request_size=4 [15:54:09]MH_SAM_APDU [15:54:09]CAPDU: 80 13 01 00 [15:54:09]Write to MH i2c: E2 08 00 EA 04 80 13 01 00 00 00 00 00 6B [15:54:09]Write i2c OK [15:54:09]MH_I2C_Read... [15:54:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:54:09]Read from MH i2c: E2 [15:54:09]MH_I2C_Read... [15:54:09]Read from MH i2c: E2 0E 00 [15:54:09]MH_I2C_Read... [15:54:09]Read from MH i2c: E2 0E 00 EA 04 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 B2 [15:54:09]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [15:54:09]wFMCommunicate OK [15:54:09]SAM_PROTO_GetShiftState done [15:54:09]FM_GetShiftState done [15:54:09]req_shift_opened done [15:54:09]requested_item shift.open_date is exist - process it [15:54:09]req_shift_open_date [15:54:09]req_shift_open_date done [15:54:09]produce_requested_data done [15:54:09]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76866,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [15:54:09]process_action_free close_receipt [15:54:09]json_value_free [15:54:09]json_value_free done [15:54:09]process_json_proto returns [15:54:09]Send response to host [15:54:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76866,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [15:54:09]free response buf [15:54:09]execute_script done [15:54:09]execute_script returns [15:54:09]free content buf [15:54:09]Sock 9.Close socket [15:54:09]Sock 9.Thread stoped [15:54:13]OFD Sender: No OFD packet to send [15:54:18]OFD Sender: No OFD packet to send [15:54:23]OFD Sender: No OFD packet to send [15:54:27]accept exits with 10 [15:54:27]New connection [15:54:27]New thread 3067317604 created [15:54:27]Thread 3067460964 joined [15:54:27]Waiting for new connection... [15:54:27] Sock 10.Parse request [15:54:27]Sock 10.Check first char [15:54:27]Sock 10.First char is OK [15:54:27]request: POST /json_proto HTTP/1.0 [15:54:27]Method: POST [15:54:27]URL: /json_proto [15:54:27]Method is POST - this is cgi request [15:54:27]url: /json_proto [15:54:27]query_string will be loaded in cgi processing [15:54:27]execute_cgi json_proto POST (null) [15:54:27]execute_cgi path=json_proto method=POST [15:54:27]POST find Content-Length [15:54:27]Host: 172.17.62.5:8080 [15:54:27]Content-Length: 732 [15:54:27]Content-Type: application/json [15:54:27] [15:54:27]POST finish read [15:54:27]Found Content-Length = 732 [15:54:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 76866, "base_FM": "0000000000874652", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 1.000, "sum" : 32.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 32.00, "total" : 32.00, "payments": [ { "type": 0, "sum" : 32.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:54:27]execute_script... [15:54:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 76866, "base_FM": "0000000000874652", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 1.000, "sum" : 32.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 32.00, "total" : 32.00, "payments": [ { "type": 0, "sum" : 32.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:54:27]POST & json_proto [15:54:27]process_json_proto [15:54:27]json parsed OK: [15:54:27]protocol is kg_v1.0 [15:54:27]action value=close_receipt [15:54:27]process_action close_receipt [15:54:27]cmd_close_receipt [15:54:27]MH_GetDate [15:54:27]Write to MH i2c: F0 00 00 EB 04 DE [15:54:27]Write i2c OK [15:54:27]MH_I2C_Read... [15:54:27]Read from MH i2c: F0 [15:54:27]MH_I2C_Read... [15:54:27]Read from MH i2c: F0 09 00 [15:54:27]MH_I2C_Read... [15:54:27]Read from MH i2c: F0 09 00 EB 04 00 B4 36 25 66 F4 E9 65 64 02 [15:54:27]GetLastDocTimeStamp 1713714846 [15:54:27]current date 1713714868 [15:54:27]FM_GetShiftState [15:54:27]SAM_PROTO_GetShiftState [15:54:27]wFMCommunicate request_size=4 [15:54:27]MH_SAM_APDU [15:54:27]CAPDU: 80 13 01 00 [15:54:27]Write to MH i2c: E2 08 00 EC 04 80 13 01 00 00 00 00 00 6D [15:54:27]Write i2c OK [15:54:27]MH_I2C_Read... [15:54:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:54:27]Read from MH i2c: E2 [15:54:27]MH_I2C_Read... [15:54:27]Read from MH i2c: E2 0E 00 [15:54:27]MH_I2C_Read... [15:54:27]Read from MH i2c: E2 0E 00 EC 04 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 B4 [15:54:27]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [15:54:27]wFMCommunicate OK [15:54:27]SAM_PROTO_GetShiftState done [15:54:27]FM_GetShiftState done [15:54:27]opened in 1713658965 [15:54:27]opened+sec_in_day 1713745365 [15:54:27]quantity*price = 3270 [15:54:27]sum+1 = 3271 [15:54:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 32.00 НСП 1% : 0.29 НДС 12% : 3.47 Наличными: 32.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 123 21.04.2024 15:54 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФД осн.: 76866 ФМ осн.: 0000000000874652 ФМ: 0000000000874652 ФД: 76867 ФПД: 155583623553380 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T155429&type=2&operation_type=1&fn_number=0000000000874652&fd_number=76867&fm=155583623553380&tin=02508201610067®Number=0000000000091573&sum=3200 [15:54:29]StoreToDocumentArchive [15:54:29]shift 372 fd 76867 [15:54:29]save to /storage/0372/doc_00076867 [15:54:29]save last doc name /storage/0372/doc_00076867 to /storage/kkm_last_doc_name [15:54:29]save OK [15:54:29]Clear old archive folders... [15:54:29]ProcessDocumentItem done err = 0, tmpTLVsize=278 [15:54:29]tlvbuf is 017EC150 [15:54:29]SAM_PROTO_ClearQueue [15:54:29]wFMCommunicate request_size=4 [15:54:29]MH_SAM_APDU [15:54:29]CAPDU: 80 09 00 00 [15:54:29]Write to MH i2c: E2 08 00 FB 04 80 09 00 00 00 00 00 00 71 [15:54:29]Write i2c OK [15:54:29]MH_I2C_Read... [15:54:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:54:29]Read from MH i2c: E2 [15:54:29]MH_I2C_Read... [15:54:29]Read from MH i2c: E2 03 00 [15:54:29]MH_I2C_Read... [15:54:29]Read from MH i2c: E2 03 00 FB 04 00 90 00 73 [15:54:29]RAPDU: 90 00 [15:54:29]wFMCommunicate OK [15:54:29]SAM_PROTO_ClearQueue done [15:54:29]KKMCreateOFDPacket [15:54:29]OFDProtocolAddRootSTLVToBuf [15:54:29]FM_MakeSignedData [15:54:29]FM_MakeSignedData [15:54:29]SAM_PROTO_SignData [15:54:29]wFMCommunicate request_size=4 [15:54:29]MH_SAM_APDU [15:54:29]CAPDU: 80 0D 01 02 [15:54:29]Write to MH i2c: E2 08 00 FC 04 80 0D 01 02 00 00 00 00 79 [15:54:29]Write i2c OK [15:54:29]MH_I2C_Read... [15:54:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:54:29]Read from MH i2c: E2 [15:54:29]MH_I2C_Read... [15:54:29]Read from MH i2c: E2 03 00 [15:54:29]MH_I2C_Read... [15:54:29]Read from MH i2c: E2 03 00 FC 04 00 90 00 74 [15:54:29]RAPDU: 90 00 [15:54:29]wFMCommunicate OK [15:54:29]wFMCommunicate request_size=255 [15:54:29]MH_SAM_APDU [15:54:29]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 02 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 C6 0C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 0C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 01 00 00 00 00 07 04 06 00 80 0C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 B5 36 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 27 04 04 00 42 2C 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 11 04 10 00 30 30 [15:54:29]Write to MH i2c: E2 02 01 FD 04 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 02 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 C6 0C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 0C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 01 00 00 00 00 07 04 06 00 80 0C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 B5 36 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 27 04 04 00 42 2C 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 11 04 10 00 30 30 00 00 B1 [15:54:29]Write i2c OK [15:54:29]MH_I2C_Read... [15:54:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:54:29]Read from MH i2c: E2 [15:54:29]MH_I2C_Read... [15:54:29]Read from MH i2c: E2 03 00 [15:54:29]MH_I2C_Read... [15:54:29]Read from MH i2c: E2 03 00 FD 04 00 90 00 75 [15:54:29]RAPDU: 90 00 [15:54:29]wFMCommunicate OK [15:54:29]wFMCommunicate request_size=37 [15:54:29]MH_SAM_APDU [15:54:29]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 43 2C 01 00 35 04 06 00 8D 80 A2 9D 61 64 [15:54:29]Write to MH i2c: E2 28 00 FE 04 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 43 2C 01 00 35 04 06 00 8D 80 A2 9D 61 64 00 00 54 [15:54:29]Write i2c OK [15:54:29]MH_I2C_Read... [15:54:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:54:29]Read from MH i2c: E2 [15:54:29]MH_I2C_Read... [15:54:29]Read from MH i2c: E2 03 00 [15:54:29]MH_I2C_Read... [15:54:29]Read from MH i2c: E2 03 00 FE 04 00 90 00 76 [15:54:29]RAPDU: 90 00 [15:54:29]wFMCommunicate OK [15:54:29]wFMCommunicate request_size=4 [15:54:29]MH_SAM_APDU [15:54:29]CAPDU: 80 0D 03 02 [15:54:29]Write to MH i2c: E2 08 00 FF 04 80 0D 03 02 00 00 00 00 7E [15:54:29]Write i2c OK [15:54:29]MH_I2C_Read... [15:54:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:54:29]Read from MH i2c: E2 [15:54:29]MH_I2C_Read... [15:54:29]Read from MH i2c: E2 0B 00 [15:54:29]MH_I2C_Read... [15:54:29]Read from MH i2c: E2 0B 00 FF 04 00 8F C1 D4 F1 BD 7D 32 FD 90 00 FD [15:54:29]RAPDU: 8F C1 D4 F1 BD 7D 32 FD 90 00 [15:54:29]wFMCommunicate OK [15:54:29]SAM_PROTO_SignData done [15:54:29]FM_MakeSignedData done [15:54:29]CreateOFDProtocolMessage [15:54:29]wFMCommunicate request_size=4 [15:54:29]MH_SAM_APDU [15:54:29]CAPDU: 80 11 00 00 [15:54:29]Write to MH i2c: E2 08 00 00 05 80 11 00 00 00 00 00 00 7F [15:54:29]Write i2c OK [15:54:29]MH_I2C_Read... [15:54:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:54:29]Read from MH i2c: E2 [15:54:29]MH_I2C_Read... [15:54:29]Read from MH i2c: E2 17 00 [15:54:29]MH_I2C_Read... [15:54:29]Read from MH i2c: E2 17 00 00 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 D2 [15:54:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [15:54:29]wFMCommunicate OK [15:54:29]CreateOFDProtocolMessage done [15:54:29]OFDSenderStorePacket 76867 [15:54:29]StoreOFDPacket docnum=76867 [15:54:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 2A 01 00 00 D6 63 22 01 ED EF 5A 03 01 00 03 00 16 01 1E 04 01 00 02 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 C6 0C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 0C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 01 00 00 00 00 07 04 06 00 80 0C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 B5 36 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 27 04 04 00 42 2C 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 43 2C 01 00 35 04 06 00 8D 80 A2 9D 61 64 8F C1 D4 F1 BD 7D 32 FD [15:54:29]CheckFolder [15:54:29]dirname=/storage/ofd_packets [15:54:29]CheckFolder done [15:54:29]ProducePacketName [15:54:29]name=ofd_packets/00076867 [15:54:29]NVStorageSaveData ofd_packets/00076867 [15:54:29]File name is /storage/ofd_packets/00076867 [15:54:29]Write 328 bytes [15:54:29]NVStorageSaveData done [15:54:29]OFDSenderStorePacket done [15:54:29]KKMCreateOFDPacket done [15:54:29]NVStorageSaveData kkm_last_timestamp [15:54:29]File name is /storage/kkm_last_timestamp [15:54:29]Write 4 bytes [15:54:29]NVStorageSaveData done [15:54:29]ExternCall_PrintAddStr [15:54:29]wPrintStart [15:54:29]Write to MH i2c: 01 00 00 01 05 06 [15:54:29]Write i2c OK [15:54:29]MH_I2C_Read... [15:54:29]Read from MH i2c: 01 [15:54:29]MH_I2C_Read... [15:54:29]Read from MH i2c: 01 07 00 [15:54:29]MH_I2C_Read... [15:54:29]Read from MH i2c: 01 07 00 01 05 00 00 00 00 00 FF 0F 1B [15:54:29]RasterBufferAndPrint [15:54:29]line Счет N : (1)191406 [15:54:29]line ИНН: 02508201610067 [15:54:29]line Контрольно-Кассовый Чек [15:54:29]line ВОЗВРАТ ПРОДАЖИ [15:54:29]line ТРК (МРК, ГНК) : 71 [15:54:29]line Товар: 2711190000 [15:54:29]line ГАЗ-К-5 [15:54:29]line 1.000 * 32.70 [15:54:29]line = 32.70 [15:54:29]line НДС 12% НСП 1% [15:54:29]line > о реализуемом товаре [15:54:29]line ОКРУГЛЕНИЕ: -0.70 [15:54:29]line ИТОГО: 32.00 [15:54:29]line НСП 1% : 0.29 [15:54:29]line НДС 12% : 3.47 [15:54:29]line Наличными: 32.00 [15:54:29]line Безнал.: 0.00 [15:54:29]line Место: АЗС № 106 "Партнер Нефть" [15:54:29]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [15:54:29]line СНО: Общий режим [15:54:29]line Чек 123 21.04.2024 15:54 [15:54:29]line Смена: 372 ФФД: 1.0 [15:54:29]line ЗНМ: 0300000141 [15:54:29]line РНМ: 0000000000091573 [15:54:29]line Версия ККМ: 001 [15:54:29]line ФД осн.: 76866 [15:54:29]line ФМ осн.: 0000000000874652 [15:54:29]line ФМ: 0000000000874652 [15:54:29]line ФД: 76867 [15:54:29]line ФПД: 155583623553380 [15:54:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T155429&type=2&operation_type=1&fn_number=0000000000874652&fd_number=76867&fm=155583623553380&tin=02508201610067®Number=0000000000091573&sum=3200 [15:54:29]OFD Sender: Processing packet 76867 [packets to send 129, broken 128] [15:54:29]ProducePacketName [15:54:29]name=ofd_packets/00076867 [15:54:29]OFD Sender: To server: pG, [15:54:29]CommunicateWithHost lk.salyk.kg:30040 [15:54:29]ConnectInit lk.salyk.kg [15:54:29]written 0, free lines is 4095 [15:54:30]Connected sock=9 [15:54:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 2A 01 00 00 D6 63 22 01 ED EF 5A 03 01 00 03 00 16 01 1E 04 01 00 02 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 C6 0C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 0C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 01 00 00 00 00 07 04 06 00 80 0C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 B5 36 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 27 04 04 00 42 2C 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 43 2C 01 00 35 04 06 00 8D 80 A2 9D 61 64 8F C1 D4 F1 BD 7D 32 FD [15:54:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 D8 84 47 00 76 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 43 2C 01 00 F4 03 04 00 3A DE 24 66 B6 04 01 00 00 DC 61 4D 58 D4 86 D0 D9 [15:54:30]CommunicateWithHost err = 0 [15:54:30]CheckOFDResponse [15:54:30]1017 (14) - 77093643461234 [15:54:30]1041 (16) - 0000000000874652 [15:54:30]1040 (4) - 76867 [15:54:30]1012 (4) - 21.04.2024 09:36 [15:54:30]1206 (1) - 0 [15:54:30]OFD Sender: Remove packet 76867 [15:54:30]ProducePacketName [15:54:30]name=ofd_packets/00076867 [15:54:30]NVStorageDeleteData [15:54:30]Write to MH i2c: 01 00 00 2B 05 30 [15:54:30]Write i2c OK [15:54:30]MH_I2C_Read... [15:54:30]Read from MH i2c: 01 [15:54:30]MH_I2C_Read... [15:54:30]Read from MH i2c: 01 07 00 [15:54:30]MH_I2C_Read... [15:54:30]Read from MH i2c: 01 07 00 2B 05 00 00 00 00 00 EE 0C 31 [15:54:30]RasterBufferAndPrint [15:54:30]line [15:54:30]line [15:54:30]line [15:54:30]line [15:54:30]line [15:54:30]written 0, free lines is 3316 [15:54:30]MH_Cut [15:54:30]Write to MH i2c: D1 01 00 32 05 01 09 [15:54:30]Write i2c OK [15:54:30]MH_I2C_Read... [15:54:30]Read from MH i2c: D1 [15:54:30]MH_I2C_Read... [15:54:30]Read from MH i2c: D1 01 00 [15:54:30]MH_I2C_Read... [15:54:30]Read from MH i2c: D1 01 00 32 05 00 08 [15:54:30]Write to MH i2c: 01 00 00 33 05 38 [15:54:30]Write i2c OK [15:54:30]MH_I2C_Read... [15:54:30]OFD Sender: No OFD packet to send [15:54:31]*** Cut start [15:54:31]*** Partial cut [15:54:31]*** CUTSNS_PIN = 1 [15:54:31]*** CUTSNS_PIN = 0 [15:54:31]*** Brake cut motor [15:54:31]Read from MH i2c: 01 [15:54:31]MH_I2C_Read... [15:54:31]*** Stop cut motor [15:54:31]*** Cut end [15:54:31]Read from MH i2c: 01 07 00 [15:54:31]MH_I2C_Read... [15:54:31]Read from MH i2c: 01 07 00 33 05 00 00 00 00 00 FF 0F 4D [15:54:31]process_action close_receipt done [15:54:31]requested_data is exist [15:54:31]produce_requested_data [15:54:31]requested_item fm.sn is exist - process it [15:54:31]wFMCommunicate request_size=4 [15:54:31]MH_SAM_APDU [15:54:31]CAPDU: 80 11 00 00 [15:54:31]Write to MH i2c: E2 08 00 34 05 80 11 00 00 00 00 00 00 B3 [15:54:31]Write i2c OK [15:54:31]MH_I2C_Read... [15:54:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:54:31]Read from MH i2c: E2 [15:54:31]MH_I2C_Read... [15:54:31]Read from MH i2c: E2 17 00 [15:54:31]MH_I2C_Read... [15:54:31]Read from MH i2c: E2 17 00 34 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 06 [15:54:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [15:54:31]wFMCommunicate OK [15:54:31]requested_item fd.num is exist - process it [15:54:31]SAM_PROTO_GetFieldsCounters [15:54:31]wFMCommunicate request_size=4 [15:54:31]MH_SAM_APDU [15:54:31]CAPDU: 80 13 00 00 [15:54:31]Write to MH i2c: E2 08 00 35 05 80 13 00 00 00 00 00 00 B6 [15:54:31]Write i2c OK [15:54:31]MH_I2C_Read... [15:54:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:54:31]Read from MH i2c: E2 [15:54:31]MH_I2C_Read... [15:54:31]Read from MH i2c: E2 62 00 [15:54:31]MH_I2C_Read... [15:54:31]Read from MH i2c: E2 62 00 35 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 43 2C 01 00 0E 04 04 00 74 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 2D [15:54: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 43 2C 01 00 0E 04 04 00 74 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 [15:54:31]wFMCommunicate OK [15:54:31]SAM_PROTO_GetFieldsCounters done [15:54:31]requested_item shift.num is exist - process it [15:54:31]requested_item shift.opened is exist - process it [15:54:31]req_shift_opened [15:54:31]FM_GetShiftState [15:54:31]SAM_PROTO_GetShiftState [15:54:31]wFMCommunicate request_size=4 [15:54:31]MH_SAM_APDU [15:54:31]CAPDU: 80 13 01 00 [15:54:31]Write to MH i2c: E2 08 00 36 05 80 13 01 00 00 00 00 00 B8 [15:54:31]Write i2c OK [15:54:31]MH_I2C_Read... [15:54:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:54:32]Read from MH i2c: E2 [15:54:32]MH_I2C_Read... [15:54:32]Read from MH i2c: E2 0E 00 [15:54:32]MH_I2C_Read... [15:54:32]Read from MH i2c: E2 0E 00 36 05 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 FF [15:54:32]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [15:54:32]wFMCommunicate OK [15:54:32]SAM_PROTO_GetShiftState done [15:54:32]FM_GetShiftState done [15:54:32]req_shift_opened done [15:54:32]requested_item shift.open_date is exist - process it [15:54:32]req_shift_open_date [15:54:32]req_shift_open_date done [15:54:32]produce_requested_data done [15:54:32]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76867,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [15:54:32]process_action_free close_receipt [15:54:32]json_value_free [15:54:32]json_value_free done [15:54:32]process_json_proto returns [15:54:32]Send response to host [15:54:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76867,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [15:54:32]free response buf [15:54:32]execute_script done [15:54:32]execute_script returns [15:54:32]free content buf [15:54:32]Sock 10.Close socket [15:54:32]Sock 10.Thread stoped [15:54:35]OFD Sender: No OFD packet to send [15:54:40]OFD Sender: No OFD packet to send [15:54:45]OFD Sender: No OFD packet to send [15:54:50]OFD Sender: No OFD packet to send [15:54:55]OFD Sender: No OFD packet to send [15:55:00]OFD Sender: No OFD packet to send [15:55:05]OFD Sender: No OFD packet to send [15:55:10]OFD Sender: No OFD packet to send [15:55:15]OFD Sender: No OFD packet to send [15:55:20]OFD Sender: No OFD packet to send [15:55:25]OFD Sender: No OFD packet to send [15:55:30]OFD Sender: No OFD packet to send [15:55:35]OFD Sender: No OFD packet to send [15:55:40]OFD Sender: No OFD packet to send [15:55:45]OFD Sender: No OFD packet to send [15:55:50]OFD Sender: No OFD packet to send [15:55:55]OFD Sender: No OFD packet to send [15:56:00]OFD Sender: No OFD packet to send [15:56:05]OFD Sender: No OFD packet to send [15:56:10]OFD Sender: No OFD packet to send [15:56:15]OFD Sender: No OFD packet to send [15:56:20]OFD Sender: No OFD packet to send [15:56:25]OFD Sender: No OFD packet to send [15:56:30]accept exits with 7 [15:56:30]New connection [15:56:30]New thread 3067460964 created [15:56:30]Thread 3067317604 joined [15:56:30]Waiting for new connection... [15:56:30] Sock 7.Parse request [15:56:30]Sock 7.Check first char [15:56:30]Sock 7.First char is OK [15:56:30]request: POST /json_proto HTTP/1.0 [15:56:30]Method: POST [15:56:30]URL: /json_proto [15:56:30]Method is POST - this is cgi request [15:56:30]url: /json_proto [15:56:30]query_string will be loaded in cgi processing [15:56:30]execute_cgi json_proto POST (null) [15:56:30]execute_cgi path=json_proto method=POST [15:56:30]POST find Content-Length [15:56:30]Host: 172.17.62.5:8080 [15:56:30]Content-Length: 215 [15:56:30]Content-Type: application/json [15:56:30] [15:56:30]POST finish read [15:56:30]Found Content-Length = 215 [15:56:30]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" ] } } [15:56:30]execute_script... [15:56:30]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" ] } } [15:56:30]POST & json_proto [15:56:30]process_json_proto [15:56:30]json parsed OK: [15:56:30]protocol is kg_v1.0 [15:56:30]action value=get_value [15:56:30]process_action get_value [15:56:30]cmd_get_value [15:56:30]process_action get_value done [15:56:30]requested_data is exist [15:56:30]produce_requested_data [15:56:30]requested_item kkm.sn is exist - process it [15:56:30]requested_item kkm.ver is exist - process it [15:56:30]requested_item fm.sn is exist - process it [15:56:30]wFMCommunicate request_size=4 [15:56:30]MH_SAM_APDU [15:56:30]CAPDU: 80 11 00 00 [15:56:30]Write to MH i2c: E2 08 00 37 05 80 11 00 00 00 00 00 00 B6 [15:56:30]Write i2c OK [15:56:30]MH_I2C_Read... [15:56:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:30]Read from MH i2c: E2 [15:56:30]MH_I2C_Read... [15:56:30]Read from MH i2c: E2 17 00 [15:56:30]MH_I2C_Read... [15:56:30]Read from MH i2c: E2 17 00 37 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 09 [15:56:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [15:56:30]wFMCommunicate OK [15:56:30]requested_item fd.num is exist - process it [15:56:30]SAM_PROTO_GetFieldsCounters [15:56:30]wFMCommunicate request_size=4 [15:56:30]MH_SAM_APDU [15:56:30]CAPDU: 80 13 00 00 [15:56:30]Write to MH i2c: E2 08 00 38 05 80 13 00 00 00 00 00 00 B9 [15:56:30]Write i2c OK [15:56:30]MH_I2C_Read... [15:56:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:56:30]Read from MH i2c: E2 [15:56:30]MH_I2C_Read... [15:56:30]Read from MH i2c: E2 62 00 [15:56:30]MH_I2C_Read... [15:56:30]Read from MH i2c: E2 62 00 38 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 43 2C 01 00 0E 04 04 00 74 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 30 [15:56: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 43 2C 01 00 0E 04 04 00 74 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 [15:56:30]wFMCommunicate OK [15:56:30]SAM_PROTO_GetFieldsCounters done [15:56:30]requested_item shift.num is exist - process it [15:56:30]requested_item shift.opened is exist - process it [15:56:30]req_shift_opened [15:56:30]FM_GetShiftState [15:56:30]SAM_PROTO_GetShiftState [15:56:30]wFMCommunicate request_size=4 [15:56:30]MH_SAM_APDU [15:56:30]CAPDU: 80 13 01 00 [15:56:30]Write to MH i2c: E2 08 00 39 05 80 13 01 00 00 00 00 00 BB [15:56:30]Write i2c OK [15:56:30]MH_I2C_Read... [15:56:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:30]Read from MH i2c: E2 [15:56:30]MH_I2C_Read... [15:56:30]Read from MH i2c: E2 0E 00 [15:56:30]MH_I2C_Read... [15:56:30]Read from MH i2c: E2 0E 00 39 05 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 02 [15:56:30]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [15:56:30]wFMCommunicate OK [15:56:30]SAM_PROTO_GetShiftState done [15:56:30]FM_GetShiftState done [15:56:30]req_shift_opened done [15:56:30]requested_item shift.open_date is exist - process it [15:56:30]req_shift_open_date [15:56:30]req_shift_open_date done [15:56:30]produce_requested_data done [15:56:30]produce_requested_data return {"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76867,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [15:56:30]process_action_free get_value [15:56:30]json_value_free [15:56:30]json_value_free done [15:56:30]process_json_proto returns [15:56:30]Send response to host [15:56:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76867,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [15:56:30]free response buf [15:56:30]execute_script done [15:56:30]execute_script returns [15:56:30]free content buf [15:56:30]Sock 7.Close socket [15:56:30]Sock 7.Thread stoped [15:56:30]accept exits with 9 [15:56:30]New connection [15:56:30]New thread 3067317604 created [15:56:30]Thread 3067460964 joined [15:56:30]Waiting for new connection... [15:56:30] Sock 9.Parse request [15:56:30]Sock 9.Check first char [15:56:30]Sock 9.First char is OK [15:56:30]request: POST /json_proto HTTP/1.0 [15:56:30]Method: POST [15:56:30]URL: /json_proto [15:56:30]Method is POST - this is cgi request [15:56:30]url: /json_proto [15:56:30]query_string will be loaded in cgi processing [15:56:30]execute_cgi json_proto POST (null) [15:56:30]execute_cgi path=json_proto method=POST [15:56:30]POST find Content-Length [15:56:30]Host: 172.17.62.5:8080 [15:56:30]Content-Length: 331 [15:56:30]Content-Type: application/json [15:56:30] [15:56:30]POST finish read [15:56:30]Found Content-Length = 331 [15:56: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" ] } } [15:56:30]execute_script... [15:56: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" ] } } [15:56:30]POST & json_proto [15:56:30]process_json_proto [15:56:30]json parsed OK: [15:56:30]protocol is kg_v1.0 [15:56:30]action value=get_value [15:56:30]process_action get_value [15:56:30]cmd_get_value [15:56:30]process_action get_value done [15:56:30]requested_data is exist [15:56:30]produce_requested_data [15:56:30]requested_item fm.sale.total is exist - process it [15:56:30]SAM_PROTO_GetFMData [15:56:30]wFMCommunicate request_size=4 [15:56:30]MH_SAM_APDU [15:56:30]CAPDU: 80 13 03 00 [15:56:30]Write to MH i2c: E2 08 00 3A 05 80 13 03 00 00 00 00 00 BE [15:56:30]Write i2c OK [15:56:30]MH_I2C_Read... [15:56:30]OFD Sender: No OFD packet to send [15:56:31]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:56:31]Read from MH i2c: E2 [15:56:31]MH_I2C_Read... [15:56:31]Read from MH i2c: E2 FD 00 [15:56:31]MH_I2C_Read... [15:56:31]Read from MH i2c: E2 FD 00 3A 05 00 C8 04 85 04 C4 04 6E 04 04 00 5B 29 01 00 69 04 A3 00 6F 04 04 00 6A 27 01 00 B1 04 05 00 25 89 A9 BA 02 70 04 05 00 D4 38 B1 76 02 72 04 04 00 51 50 F8 43 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 5B 65 34 4A 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 99 F7 2E 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F1 01 00 00 B1 04 05 00 74 EF DA 15 01 70 04 05 00 74 EF DA 15 01 72 04 00 00 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 7A BF 81 1D EF 90 00 8E [15:56:31]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 5B 29 01 00 69 04 A3 00 6F 04 04 00 6A 27 01 00 B1 04 05 00 25 89 A9 BA 02 70 04 05 00 D4 38 B1 76 02 72 04 04 00 51 50 F8 43 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 5B 65 34 4A 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 99 F7 2E 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F1 01 00 00 B1 04 05 00 74 EF DA 15 01 70 04 05 00 74 EF DA 15 01 72 04 00 00 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 7A BF 81 1D EF 90 00 [15:56:31]wFMCommunicate OK [15:56:31]wFMCommunicate request_size=4 [15:56:31]MH_SAM_APDU [15:56:31]CAPDU: 80 17 00 00 [15:56:31]Write to MH i2c: E2 08 00 3B 05 80 17 00 00 00 00 00 00 C0 [15:56:31]Write i2c OK [15:56:31]MH_I2C_Read... [15:56:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:56:31]Read from MH i2c: E2 [15:56:31]MH_I2C_Read... [15:56:31]Read from MH i2c: E2 FD 00 [15:56:31]MH_I2C_Read... [15:56:31]Read from MH i2c: E2 FD 00 3B 05 00 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 83 7A 75 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 90 00 43 [15:56:31]RAPDU: 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 83 7A 75 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 90 00 [15:56:31]wFMCommunicate OK [15:56:31]wFMCommunicate request_size=4 [15:56:31]MH_SAM_APDU [15:56:31]CAPDU: 80 17 00 00 [15:56:31]Write to MH i2c: E2 08 00 3C 05 80 17 00 00 00 00 00 00 C1 [15:56:31]Write i2c OK [15:56:31]MH_I2C_Read... [15:56:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:56:31]Read from MH i2c: E2 [15:56:31]MH_I2C_Read... [15:56:31]Read from MH i2c: E2 FD 00 [15:56:31]MH_I2C_Read... [15:56:31]Read from MH i2c: E2 FD 00 3C 05 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 99 [15:56:31]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [15:56:31]wFMCommunicate OK [15:56:31]wFMCommunicate request_size=4 [15:56:31]MH_SAM_APDU [15:56:31]CAPDU: 80 17 00 00 [15:56:31]Write to MH i2c: E2 08 00 3D 05 80 17 00 00 00 00 00 00 C2 [15:56:31]Write i2c OK [15:56:31]MH_I2C_Read... [15:56:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:56:32]Read from MH i2c: E2 [15:56:32]MH_I2C_Read... [15:56:32]Read from MH i2c: E2 FD 00 [15:56:32]MH_I2C_Read... [15:56:32]Read from MH i2c: E2 FD 00 3D 05 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 3A [15:56:32]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [15:56:32]wFMCommunicate OK [15:56:32]wFMCommunicate request_size=4 [15:56:32]MH_SAM_APDU [15:56:32]CAPDU: 80 17 00 00 [15:56:32]Write to MH i2c: E2 08 00 3E 05 80 17 00 00 00 00 00 00 C3 [15:56:32]Write i2c OK [15:56:32]MH_I2C_Read... [15:56:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [15:56:32]Read from MH i2c: E2 [15:56:32]MH_I2C_Read... [15:56:32]Read from MH i2c: E2 E5 00 [15:56:32]MH_I2C_Read... [15:56:32]Read from MH i2c: E2 E5 00 3E 05 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A7 [15:56:32]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:56:32]wFMCommunicate OK [15:56:32]SAM_PROTO_GetFMData done [15:56:32]requested_item fm.sale_refund.total is exist - process it [15:56:32]requested_item fm.buy.total is exist - process it [15:56:32]requested_item shift.sale.total is exist - process it [15:56:32]SAM_PROTO_GetShiftData [15:56:32]wFMCommunicate request_size=4 [15:56:32]MH_SAM_APDU [15:56:32]CAPDU: 80 13 02 00 [15:56:32]Write to MH i2c: E2 08 00 3F 05 80 13 02 00 00 00 00 00 C2 [15:56:32]Write i2c OK [15:56:32]MH_I2C_Read... [15:56:32]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:56:32]Read from MH i2c: E2 [15:56:32]MH_I2C_Read... [15:56:32]Read from MH i2c: E2 FD 00 [15:56:32]MH_I2C_Read... [15:56:32]Read from MH i2c: E2 FD 00 3F 05 00 B6 04 AA 04 B2 04 6E 04 04 00 7B 00 00 00 69 04 9C 00 6F 04 04 00 7A 00 00 00 B1 04 03 00 D6 6A ED 70 04 03 00 48 CA B5 72 04 03 00 8E A0 37 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 8D 37 19 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 F6 19 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 80 0C 70 04 02 00 80 0C 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 5B 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 90 00 69 [15:56:32]RAPDU: B6 04 AA 04 B2 04 6E 04 04 00 7B 00 00 00 69 04 9C 00 6F 04 04 00 7A 00 00 00 B1 04 03 00 D6 6A ED 70 04 03 00 48 CA B5 72 04 03 00 8E A0 37 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 8D 37 19 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 F6 19 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 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 80 0C 70 04 02 00 80 0C 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 5B 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 90 00 [15:56:32]wFMCommunicate OK [15:56:32]wFMCommunicate request_size=4 [15:56:32]MH_SAM_APDU [15:56:32]CAPDU: 80 17 00 00 [15:56:32]Write to MH i2c: E2 08 00 40 05 80 17 00 00 00 00 00 00 C5 [15:56:32]Write i2c OK [15:56:32]MH_I2C_Read... [15:56:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:56:33]Read from MH i2c: E2 [15:56:33]MH_I2C_Read... [15:56:33]Read from MH i2c: E2 FD 00 [15:56:33]MH_I2C_Read... [15:56:33]Read from MH i2c: E2 FD 00 40 05 00 00 F6 03 01 00 01 F7 03 01 00 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F5 [15:56:33]RAPDU: 00 F6 03 01 00 01 F7 03 01 00 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:56:33]wFMCommunicate OK [15:56:33]wFMCommunicate request_size=4 [15:56:33]MH_SAM_APDU [15:56:33]CAPDU: 80 17 00 00 [15:56:33]Write to MH i2c: E2 08 00 41 05 80 17 00 00 00 00 00 00 C6 [15:56:33]Write i2c OK [15:56:33]MH_I2C_Read... [15:56:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:56:33]Read from MH i2c: E2 [15:56:33]MH_I2C_Read... [15:56:33]Read from MH i2c: E2 FD 00 [15:56:33]MH_I2C_Read... [15:56:33]Read from MH i2c: E2 FD 00 41 05 00 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 86 [15:56:33]RAPDU: 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:56:33]wFMCommunicate OK [15:56:33]wFMCommunicate request_size=4 [15:56:33]MH_SAM_APDU [15:56:33]CAPDU: 80 17 00 00 [15:56:33]Write to MH i2c: E2 08 00 42 05 80 17 00 00 00 00 00 00 C7 [15:56:33]Write i2c OK [15:56:33]MH_I2C_Read... [15:56:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:56:33]Read from MH i2c: E2 [15:56:33]MH_I2C_Read... [15:56:33]Read from MH i2c: E2 FD 00 [15:56:33]MH_I2C_Read... [15:56:33]Read from MH i2c: E2 FD 00 42 05 00 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 90 00 36 [15:56:33]RAPDU: 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 90 00 [15:56:33]wFMCommunicate OK [15:56:33]wFMCommunicate request_size=4 [15:56:33]MH_SAM_APDU [15:56:33]CAPDU: 80 17 00 00 [15:56:33]Write to MH i2c: E2 08 00 43 05 80 17 00 00 00 00 00 00 C8 [15:56:33]Write i2c OK [15:56:33]MH_I2C_Read... [15:56:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 208! [15:56:34]Read from MH i2c: E2 [15:56:34]MH_I2C_Read... [15:56:34]Read from MH i2c: E2 D3 00 [15:56:34]MH_I2C_Read... [15:56:34]Read from MH i2c: E2 D3 00 43 05 00 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B5 [15:56:34]RAPDU: 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [15:56:34]wFMCommunicate OK [15:56:34]SAM_PROTO_GetShiftData done [15:56:34]requested_item shift.sale.total_cash is exist - process it [15:56:34]requested_item shift.sale_refund.total is exist - process it [15:56:34]requested_item shift.sale_refund.total_cash is exist - process it [15:56:34]requested_item shift.buy.total is exist - process it [15:56:34]requested_item shift.buy.total_cash is exist - process it [15:56:34]produce_requested_data done [15:56:34]produce_requested_data return {"fm.sale.total":117216074.61,"fm.sale_refund.total":46616369.80,"fm.buy.total":0.00,"shift.sale.total":155593.82,"shift.sale.total_cash":119138.00,"shift.sale_refund.total":32.00,"shift.sale_refund.total_cash":32.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [15:56:34]process_action_free get_value [15:56:34]json_value_free [15:56:34]json_value_free done [15:56:34]process_json_proto returns [15:56:34]Send response to host [15:56:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":117216074.61,"fm.sale_refund.total":46616369.80,"fm.buy.total":0.00,"shift.sale.total":155593.82,"shift.sale.total_cash":119138.00,"shift.sale_refund.total":32.00,"shift.sale_refund.total_cash":32.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [15:56:34]free response buf [15:56:34]execute_script done [15:56:34]execute_script returns [15:56:34]free content buf [15:56:34]Sock 9.Close socket [15:56:34]Sock 9.Thread stoped [15:56:36]OFD Sender: No OFD packet to send [15:56:41]OFD Sender: No OFD packet to send [15:56:46]OFD Sender: No OFD packet to send [15:56:51]OFD Sender: No OFD packet to send [15:56:56]OFD Sender: No OFD packet to send [15:57:01]OFD Sender: No OFD packet to send [15:57:06]OFD Sender: No OFD packet to send [15:57:11]OFD Sender: No OFD packet to send [15:57:16]OFD Sender: No OFD packet to send [15:57:21]OFD Sender: No OFD packet to send [15:57:26]OFD Sender: No OFD packet to send [15:57:31]OFD Sender: No OFD packet to send [15:57:36]OFD Sender: No OFD packet to send [15:57:41]OFD Sender: No OFD packet to send [15:57:46]OFD Sender: No OFD packet to send [15:57:51]OFD Sender: No OFD packet to send [15:57:56]OFD Sender: No OFD packet to send [15:58:01]OFD Sender: No OFD packet to send [15:58:06]OFD Sender: No OFD packet to send [15:58:11]OFD Sender: No OFD packet to send [15:58:16]OFD Sender: No OFD packet to send [15:58:21]OFD Sender: No OFD packet to send [15:58:26]OFD Sender: No OFD packet to send [15:58:31]OFD Sender: No OFD packet to send [15:58:36]OFD Sender: No OFD packet to send [15:58:41]OFD Sender: No OFD packet to send [15:58:46]OFD Sender: No OFD packet to send [15:58:51]OFD Sender: No OFD packet to send [15:58:56]OFD Sender: No OFD packet to send [15:59:01]OFD Sender: No OFD packet to send [15:59:06]OFD Sender: No OFD packet to send [15:59:11]OFD Sender: No OFD packet to send [15:59:16]OFD Sender: No OFD packet to send [15:59:21]OFD Sender: No OFD packet to send [15:59:26]OFD Sender: No OFD packet to send [15:59:31]OFD Sender: No OFD packet to send [15:59:36]OFD Sender: No OFD packet to send [15:59:37]accept exits with 10 [15:59:37]New connection [15:59:37]New thread 3067460964 created [15:59:37]Thread 3067317604 joined [15:59:37]Waiting for new connection... [15:59:37] Sock 10.Parse request [15:59:37]Sock 10.Check first char [15:59:37]Sock 10.First char is OK [15:59:37]request: POST /json_proto HTTP/1.0 [15:59:37]Method: POST [15:59:37]URL: /json_proto [15:59:37]Method is POST - this is cgi request [15:59:37]url: /json_proto [15:59:37]query_string will be loaded in cgi processing [15:59:37]execute_cgi json_proto POST (null) [15:59:37]execute_cgi path=json_proto method=POST [15:59:37]POST find Content-Length [15:59:37]Host: 172.17.62.5:8080 [15:59:37]Content-Length: 676 [15:59:37]Content-Type: application/json [15:59:37] [15:59:37]POST finish read [15:59:37]Found Content-Length = 676 [15:59:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 1.840, "sum" : 60.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 60.00, "total" : 60.00, "payments": [ { "type": 0, "sum" : 60.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:37]execute_script... [15:59:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 1.840, "sum" : 60.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 60.00, "total" : 60.00, "payments": [ { "type": 0, "sum" : 60.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:37]POST & json_proto [15:59:37]process_json_proto [15:59:37]json parsed OK: [15:59:37]protocol is kg_v1.0 [15:59:37]action value=close_receipt [15:59:37]process_action close_receipt [15:59:37]cmd_close_receipt [15:59:37]MH_GetDate [15:59:37]Write to MH i2c: F0 00 00 44 05 38 [15:59:37]Write i2c OK [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: F0 [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: F0 09 00 [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: F0 09 00 44 05 00 EB 37 25 66 F4 E9 65 64 94 [15:59:37]GetLastDocTimeStamp 1713714869 [15:59:37]current date 1713715179 [15:59:37]FM_GetShiftState [15:59:37]SAM_PROTO_GetShiftState [15:59:37]wFMCommunicate request_size=4 [15:59:37]MH_SAM_APDU [15:59:37]CAPDU: 80 13 01 00 [15:59:37]Write to MH i2c: E2 08 00 45 05 80 13 01 00 00 00 00 00 C7 [15:59:37]Write i2c OK [15:59:37]MH_I2C_Read... [15:59:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:38]Read from MH i2c: E2 [15:59:38]MH_I2C_Read... [15:59:38]Read from MH i2c: E2 0E 00 [15:59:38]MH_I2C_Read... [15:59:38]Read from MH i2c: E2 0E 00 45 05 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 0E [15:59:38]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [15:59:38]wFMCommunicate OK [15:59:38]SAM_PROTO_GetShiftState done [15:59:38]FM_GetShiftState done [15:59:38]opened in 1713658965 [15:59:38]opened+sec_in_day 1713745365 [15:59:38]quantity*price = 6016 [15:59:38]sum+1 = 6018 [15:59:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 60.00 Внесено: 60.00 СДАЧА: 0.00 НСП 1% : 0.53 НДС 12% : 6.39 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 124 21.04.2024 15:59 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76868 ФПД: 157851269042878 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T155939&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76868&fm=157851269042878&tin=02508201610067®Number=0000000000091573&sum=6000 [15:59:39]StoreToDocumentArchive [15:59:39]shift 372 fd 76868 [15:59:39]save to /storage/0372/doc_00076868 [15:59:39]save last doc name /storage/0372/doc_00076868 to /storage/kkm_last_doc_name [15:59:39]save OK [15:59:39]Clear old archive folders... [15:59:39]ProcessDocumentItem done err = 0, tmpTLVsize=250 [15:59:39]tlvbuf is 017E60C0 [15:59:39]SAM_PROTO_ClearQueue [15:59:39]wFMCommunicate request_size=4 [15:59:39]MH_SAM_APDU [15:59:39]CAPDU: 80 09 00 00 [15:59:39]Write to MH i2c: E2 08 00 52 05 80 09 00 00 00 00 00 00 C9 [15:59:39]Write i2c OK [15:59:39]MH_I2C_Read... [15:59:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:59:39]Read from MH i2c: E2 [15:59:39]MH_I2C_Read... [15:59:39]Read from MH i2c: E2 03 00 [15:59:39]MH_I2C_Read... [15:59:39]Read from MH i2c: E2 03 00 52 05 00 90 00 CB [15:59:39]RAPDU: 90 00 [15:59:39]wFMCommunicate OK [15:59:39]SAM_PROTO_ClearQueue done [15:59:39]KKMCreateOFDPacket [15:59:39]OFDProtocolAddRootSTLVToBuf [15:59:39]FM_MakeSignedData [15:59:39]FM_MakeSignedData [15:59:39]SAM_PROTO_SignData [15:59:39]wFMCommunicate request_size=4 [15:59:39]MH_SAM_APDU [15:59:39]CAPDU: 80 0D 01 02 [15:59:39]Write to MH i2c: E2 08 00 53 05 80 0D 01 02 00 00 00 00 D1 [15:59:39]Write i2c OK [15:59:39]MH_I2C_Read... [15:59:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:59:39]Read from MH i2c: E2 [15:59:39]MH_I2C_Read... [15:59:39]Read from MH i2c: E2 03 00 [15:59:39]MH_I2C_Read... [15:59:39]Read from MH i2c: E2 03 00 53 05 00 90 00 CC [15:59:39]RAPDU: 90 00 [15:59:39]wFMCommunicate OK [15:59:39]wFMCommunicate request_size=255 [15:59:39]MH_SAM_APDU [15:59:39]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 30 07 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 81 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 EB 37 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 44 2C 01 00 35 04 06 00 8F 90 [15:59:39]Write to MH i2c: E2 02 01 54 05 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 30 07 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 81 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 EB 37 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 44 2C 01 00 35 04 06 00 8F 90 00 00 15 [15:59:39]Write i2c OK [15:59:39]MH_I2C_Read... [15:59:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:39]Read from MH i2c: E2 [15:59:39]MH_I2C_Read... [15:59:39]Read from MH i2c: E2 03 00 [15:59:39]MH_I2C_Read... [15:59:39]Read from MH i2c: E2 03 00 54 05 00 90 00 CD [15:59:39]RAPDU: 90 00 [15:59:39]wFMCommunicate OK [15:59:39]wFMCommunicate request_size=9 [15:59:39]MH_SAM_APDU [15:59:39]CAPDU: 80 0D 02 02 04 9C D1 92 BE [15:59:39]Write to MH i2c: E2 0C 00 55 05 80 0D 02 02 04 00 9C D1 92 BE 00 00 99 [15:59:39]Write i2c OK [15:59:39]MH_I2C_Read... [15:59:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:39]Read from MH i2c: E2 [15:59:39]MH_I2C_Read... [15:59:39]Read from MH i2c: E2 03 00 [15:59:39]MH_I2C_Read... [15:59:39]Read from MH i2c: E2 03 00 55 05 00 90 00 CE [15:59:39]RAPDU: 90 00 [15:59:39]wFMCommunicate OK [15:59:39]wFMCommunicate request_size=4 [15:59:39]MH_SAM_APDU [15:59:39]CAPDU: 80 0D 03 02 [15:59:39]Write to MH i2c: E2 08 00 56 05 80 0D 03 02 00 00 00 00 D6 [15:59:39]Write i2c OK [15:59:39]MH_I2C_Read... [15:59:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:59:39]Read from MH i2c: E2 [15:59:39]MH_I2C_Read... [15:59:39]Read from MH i2c: E2 0B 00 [15:59:39]MH_I2C_Read... [15:59:39]Read from MH i2c: E2 0B 00 56 05 00 7F CD CA C5 1E D9 7A 9E 90 00 C1 [15:59:39]RAPDU: 7F CD CA C5 1E D9 7A 9E 90 00 [15:59:39]wFMCommunicate OK [15:59:39]SAM_PROTO_SignData done [15:59:39]FM_MakeSignedData done [15:59:39]CreateOFDProtocolMessage [15:59:39]wFMCommunicate request_size=4 [15:59:39]MH_SAM_APDU [15:59:39]CAPDU: 80 11 00 00 [15:59:39]Write to MH i2c: E2 08 00 57 05 80 11 00 00 00 00 00 00 D6 [15:59:39]Write i2c OK [15:59:39]MH_I2C_Read... [15:59:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:39]Read from MH i2c: E2 [15:59:39]MH_I2C_Read... [15:59:39]Read from MH i2c: E2 17 00 [15:59:39]MH_I2C_Read... [15:59:39]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 34 36 35 32 90 00 29 [15:59:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [15:59:39]wFMCommunicate OK [15:59:39]CreateOFDProtocolMessage done [15:59:39]OFDSenderStorePacket 76868 [15:59:39]StoreOFDPacket docnum=76868 [15:59:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 55 8C 06 01 4A 09 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 30 07 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 81 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 EB 37 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 44 2C 01 00 35 04 06 00 8F 90 9C D1 92 BE 7F CD CA C5 1E D9 7A 9E [15:59:39]CheckFolder [15:59:39]dirname=/storage/ofd_packets [15:59:39]CheckFolder done [15:59:39]ProducePacketName [15:59:39]name=ofd_packets/00076868 [15:59:39]NVStorageSaveData ofd_packets/00076868 [15:59:39]File name is /storage/ofd_packets/00076868 [15:59:39]Write 300 bytes [15:59:39]NVStorageSaveData done [15:59:39]OFDSenderStorePacket done [15:59:39]KKMCreateOFDPacket done [15:59:39]NVStorageSaveData kkm_last_timestamp [15:59:39]File name is /storage/kkm_last_timestamp [15:59:39]Write 4 bytes [15:59:39]NVStorageSaveData done [15:59:39]ExternCall_PrintAddStr [15:59:39]wPrintStart [15:59:39]Write to MH i2c: 01 00 00 58 05 5D [15:59:39]Write i2c OK [15:59:39]MH_I2C_Read... [15:59:39]Read from MH i2c: 01 [15:59:39]MH_I2C_Read... [15:59:39]Read from MH i2c: 01 07 00 [15:59:39]MH_I2C_Read... [15:59:39]Read from MH i2c: 01 07 00 58 05 00 00 00 00 00 FF 0F 72 [15:59:39]RasterBufferAndPrint [15:59:39]line Счет N : (1)191411 [15:59:39]line ИНН: 02508201610067 [15:59:39]line Контрольно-Кассовый Чек [15:59:39]line ПРОДАЖА [15:59:39]line ТРК (МРК, ГНК) : 71 [15:59:39]line Товар: 2711190000 [15:59:39]line ГАЗ-К-5 [15:59:39]line 1.840 * 32.70 [15:59:39]line = 60.17 [15:59:39]line НДС 12% НСП 1% [15:59:39]line > о реализуемом товаре [15:59:39]line ОКРУГЛЕНИЕ: -0.17 [15:59:39]line ИТОГО: 60.00 [15:59:39]line Внесено: 60.00 [15:59:39]line СДАЧА: 0.00 [15:59:39]line НСП 1% : 0.53 [15:59:39]line НДС 12% : 6.39 [15:59:39]line Наличными: 60.00 [15:59:39]line Безнал.: 0.00 [15:59:39]line Место: АЗС № 106 "Партнер Нефть" [15:59:39]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [15:59:39]line СНО: Общий режим [15:59:39]line Чек 124 21.04.2024 15:59 [15:59:39]line Смена: 372 ФФД: 1.0 [15:59:39]line ЗНМ: 0300000141 [15:59:39]line РНМ: 0000000000091573 [15:59:39]line Версия ККМ: 001 [15:59:39]line ФМ: 0000000000874652 [15:59:39]line ФД: 76868 [15:59:39]line ФПД: 157851269042878 [15:59:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T155939&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76868&fm=157851269042878&tin=02508201610067®Number=0000000000091573&sum=6000 [15:59:39]written 0, free lines is 4095 [15:59:39]OFD Sender: Processing packet 76868 [packets to send 129, broken 128] [15:59:39]ProducePacketName [15:59:39]name=ofd_packets/00076868 [15:59:39]OFD Sender: To server: pG, [15:59:39]CommunicateWithHost lk.salyk.kg:30040 [15:59:39]ConnectInit lk.salyk.kg [15:59:39]Connected sock=9 [15:59:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 55 8C 06 01 4A 09 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 30 07 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 81 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 EB 37 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 44 2C 01 00 35 04 06 00 8F 90 9C D1 92 BE 7F CD CA C5 1E D9 7A 9E [15:59:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 AA 82 47 00 13 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 44 2C 01 00 F4 03 04 00 70 DF 24 66 B6 04 01 00 00 22 CB 02 50 C4 88 53 AC [15:59:40]CommunicateWithHost err = 0 [15:59:40]CheckOFDResponse [15:59:40]1017 (14) - 77093643461234 [15:59:40]1041 (16) - 0000000000874652 [15:59:40]1040 (4) - 76868 [15:59:40]1012 (4) - 21.04.2024 09:42 [15:59:40]1206 (1) - 0 [15:59:40]OFD Sender: Remove packet 76868 [15:59:40]ProducePacketName [15:59:40]name=ofd_packets/00076868 [15:59:40]NVStorageDeleteData [15:59:40]Write to MH i2c: 01 00 00 82 05 87 [15:59:40]Write i2c OK [15:59:40]MH_I2C_Read... [15:59:40]Read from MH i2c: 01 [15:59:40]MH_I2C_Read... [15:59:40]Read from MH i2c: 01 07 00 [15:59:40]MH_I2C_Read... [15:59:40]Read from MH i2c: 01 07 00 82 05 00 00 00 00 00 FC 0C 96 [15:59:40]RasterBufferAndPrint [15:59:40]line [15:59:40]line [15:59:40]line [15:59:40]line [15:59:40]line [15:59:40]written 0, free lines is 3330 [15:59:40]MH_Cut [15:59:40]Write to MH i2c: D1 01 00 89 05 01 60 [15:59:40]Write i2c OK [15:59:40]MH_I2C_Read... [15:59:40]Read from MH i2c: D1 [15:59:40]MH_I2C_Read... [15:59:40]Read from MH i2c: D1 01 00 [15:59:40]MH_I2C_Read... [15:59:40]Read from MH i2c: D1 01 00 89 05 00 5F [15:59:40]Write to MH i2c: 01 00 00 8A 05 8F [15:59:40]Write i2c OK [15:59:40]MH_I2C_Read... [15:59:40]OFD Sender: No OFD packet to send [15:59:40]*** Cut start [15:59:40]*** Partial cut [15:59:40]*** CUTSNS_PIN = 1 [15:59:40]*** CUTSNS_PIN = 0 [15:59:41]*** Brake cut motor [15:59:41]Read from MH i2c: 01 [15:59:41]MH_I2C_Read... [15:59:41]*** Stop cut motor [15:59:41]*** Cut end [15:59:41]Read from MH i2c: 01 07 00 [15:59:41]MH_I2C_Read... [15:59:41]Read from MH i2c: 01 07 00 8A 05 00 00 00 00 00 FF 0F A4 [15:59:41]process_action close_receipt done [15:59:41]requested_data is exist [15:59:41]produce_requested_data [15:59:41]requested_item fm.sn is exist - process it [15:59:41]wFMCommunicate request_size=4 [15:59:41]MH_SAM_APDU [15:59:41]CAPDU: 80 11 00 00 [15:59:41]Write to MH i2c: E2 08 00 8B 05 80 11 00 00 00 00 00 00 0A [15:59:41]Write i2c OK [15:59:41]MH_I2C_Read... [15:59:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:41]Read from MH i2c: E2 [15:59:41]MH_I2C_Read... [15:59:41]Read from MH i2c: E2 17 00 [15:59:41]MH_I2C_Read... [15:59:41]Read from MH i2c: E2 17 00 8B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 5D [15:59:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [15:59:41]wFMCommunicate OK [15:59:41]requested_item fd.num is exist - process it [15:59:41]SAM_PROTO_GetFieldsCounters [15:59:41]wFMCommunicate request_size=4 [15:59:41]MH_SAM_APDU [15:59:41]CAPDU: 80 13 00 00 [15:59:41]Write to MH i2c: E2 08 00 8C 05 80 13 00 00 00 00 00 00 0D [15:59:41]Write i2c OK [15:59:41]MH_I2C_Read... [15:59:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:59:41]Read from MH i2c: E2 [15:59:41]MH_I2C_Read... [15:59:41]Read from MH i2c: E2 62 00 [15:59:41]MH_I2C_Read... [15:59:41]Read from MH i2c: E2 62 00 8C 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 44 2C 01 00 0E 04 04 00 74 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 88 [15:59: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 44 2C 01 00 0E 04 04 00 74 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 [15:59:41]wFMCommunicate OK [15:59:41]SAM_PROTO_GetFieldsCounters done [15:59:41]requested_item shift.num is exist - process it [15:59:41]requested_item shift.opened is exist - process it [15:59:41]req_shift_opened [15:59:41]FM_GetShiftState [15:59:41]SAM_PROTO_GetShiftState [15:59:41]wFMCommunicate request_size=4 [15:59:41]MH_SAM_APDU [15:59:41]CAPDU: 80 13 01 00 [15:59:41]Write to MH i2c: E2 08 00 8D 05 80 13 01 00 00 00 00 00 0F [15:59:41]Write i2c OK [15:59:41]MH_I2C_Read... [15:59:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:41]Read from MH i2c: E2 [15:59:41]MH_I2C_Read... [15:59:41]Read from MH i2c: E2 0E 00 [15:59:41]MH_I2C_Read... [15:59:41]Read from MH i2c: E2 0E 00 8D 05 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 56 [15:59:41]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [15:59:41]wFMCommunicate OK [15:59:41]SAM_PROTO_GetShiftState done [15:59:41]FM_GetShiftState done [15:59:41]req_shift_opened done [15:59:41]requested_item shift.open_date is exist - process it [15:59:41]req_shift_open_date [15:59:41]req_shift_open_date done [15:59:41]produce_requested_data done [15:59:41]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76868,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [15:59:41]process_action_free close_receipt [15:59:41]json_value_free [15:59:41]json_value_free done [15:59:41]process_json_proto returns [15:59:41]Send response to host [15:59:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76868,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [15:59:41]free response buf [15:59:41]execute_script done [15:59:41]execute_script returns [15:59:41]free content buf [15:59:41]Sock 10.Close socket [15:59:41]Sock 10.Thread stoped [15:59:45]OFD Sender: No OFD packet to send [15:59:50]OFD Sender: No OFD packet to send [15:59:55]OFD Sender: No OFD packet to send [16:00:00]OFD Sender: No OFD packet to send [16:00:05]OFD Sender: No OFD packet to send [16:00:10]OFD Sender: No OFD packet to send [16:00:15]OFD Sender: No OFD packet to send [16:00:20]OFD Sender: No OFD packet to send [16:00:25]OFD Sender: No OFD packet to send [16:00:30]OFD Sender: No OFD packet to send [16:00:35]OFD Sender: No OFD packet to send [16:00:40]OFD Sender: No OFD packet to send [16:00:45]OFD Sender: No OFD packet to send [16:00:50]OFD Sender: No OFD packet to send [16:00:55]OFD Sender: No OFD packet to send [16:01:00]OFD Sender: No OFD packet to send [16:01:05]OFD Sender: No OFD packet to send [16:01:10]OFD Sender: No OFD packet to send [16:01:15]OFD Sender: No OFD packet to send [16:01:20]OFD Sender: No OFD packet to send [16:01:25]OFD Sender: No OFD packet to send [16:01:30]OFD Sender: No OFD packet to send [16:01:35]OFD Sender: No OFD packet to send [16:01:40]OFD Sender: No OFD packet to send [16:01:45]OFD Sender: No OFD packet to send [16:01:50]OFD Sender: No OFD packet to send [16:01:53]accept exits with 7 [16:01:53]New connection [16:01:53]New thread 3067317604 created [16:01:53]Thread 3067460964 joined [16:01:53]Waiting for new connection... [16:01:53] Sock 7.Parse request [16:01:53]Sock 7.Check first char [16:01:53]Sock 7.First char is OK [16:01:53]request: POST /json_proto HTTP/1.0 [16:01:53]Method: POST [16:01:53]URL: /json_proto [16:01:53]Method is POST - this is cgi request [16:01:53]url: /json_proto [16:01:53]query_string will be loaded in cgi processing [16:01:53]execute_cgi json_proto POST (null) [16:01:53]execute_cgi path=json_proto method=POST [16:01:53]POST find Content-Length [16:01:53]Host: 172.17.62.5:8080 [16:01:53]Content-Length: 675 [16:01:53]Content-Type: application/json [16:01:53] [16:01:53]POST finish read [16:01:53]Found Content-Length = 675 [16:01:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 15.300, "sum" : 1000.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:01:53]execute_script... [16:01: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)191412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 15.300, "sum" : 1000.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:01:53]POST & json_proto [16:01:53]process_json_proto [16:01:53]json parsed OK: [16:01:53]protocol is kg_v1.0 [16:01:53]action value=close_receipt [16:01:53]process_action close_receipt [16:01:53]cmd_close_receipt [16:01:53]MH_GetDate [16:01:53]Write to MH i2c: F0 00 00 8E 05 82 [16:01:53]Write i2c OK [16:01:53]MH_I2C_Read... [16:01:53]Read from MH i2c: F0 [16:01:53]MH_I2C_Read... [16:01:53]Read from MH i2c: F0 09 00 [16:01:53]MH_I2C_Read... [16:01:53]Read from MH i2c: F0 09 00 8E 05 00 73 38 25 66 F4 E9 65 64 67 [16:01:53]GetLastDocTimeStamp 1713715179 [16:01:53]current date 1713715315 [16:01:53]FM_GetShiftState [16:01:53]SAM_PROTO_GetShiftState [16:01:53]wFMCommunicate request_size=4 [16:01:53]MH_SAM_APDU [16:01:53]CAPDU: 80 13 01 00 [16:01:53]Write to MH i2c: E2 08 00 8F 05 80 13 01 00 00 00 00 00 11 [16:01:53]Write i2c OK [16:01:53]MH_I2C_Read... [16:01:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:53]Read from MH i2c: E2 [16:01:53]MH_I2C_Read... [16:01:53]Read from MH i2c: E2 0E 00 [16:01:53]MH_I2C_Read... [16:01:53]Read from MH i2c: E2 0E 00 8F 05 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 58 [16:01:53]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [16:01:53]wFMCommunicate OK [16:01:53]SAM_PROTO_GetShiftState done [16:01:53]FM_GetShiftState done [16:01:53]opened in 1713658965 [16:01:53]opened+sec_in_day 1713745365 [16:01:53]quantity*price = 100062 [16:01:53]sum+1 = 100063 [16:01:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 125 21.04.2024 16:01 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76869 ФПД: 222326852550104 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T160155&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76869&fm=222326852550104&tin=02508201610067®Number=0000000000091573&sum=100000 [16:01:55]StoreToDocumentArchive [16:01:55]shift 372 fd 76869 [16:01:55]save to /storage/0372/doc_00076869 [16:01:55]save last doc name /storage/0372/doc_00076869 to /storage/kkm_last_doc_name [16:01:55]save OK [16:01:55]Clear old archive folders... [16:01:55]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:01:55]tlvbuf is 017FF090 [16:01:55]SAM_PROTO_ClearQueue [16:01:55]wFMCommunicate request_size=4 [16:01:55]MH_SAM_APDU [16:01:55]CAPDU: 80 09 00 00 [16:01:55]Write to MH i2c: E2 08 00 9C 05 80 09 00 00 00 00 00 00 13 [16:01:55]Write i2c OK [16:01:55]MH_I2C_Read... [16:01:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:01:55]Read from MH i2c: E2 [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: E2 03 00 [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: E2 03 00 9C 05 00 90 00 15 [16:01:55]RAPDU: 90 00 [16:01:55]wFMCommunicate OK [16:01:55]SAM_PROTO_ClearQueue done [16:01:55]KKMCreateOFDPacket [16:01:55]OFDProtocolAddRootSTLVToBuf [16:01:55]FM_MakeSignedData [16:01:55]FM_MakeSignedData [16:01:55]SAM_PROTO_SignData [16:01:55]wFMCommunicate request_size=4 [16:01:55]MH_SAM_APDU [16:01:55]CAPDU: 80 0D 01 02 [16:01:55]Write to MH i2c: E2 08 00 9D 05 80 0D 01 02 00 00 00 00 1B [16:01:55]Write i2c OK [16:01:55]MH_I2C_Read... [16:01:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:01:55]Read from MH i2c: E2 [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: E2 03 00 [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: E2 03 00 9D 05 00 90 00 16 [16:01:55]RAPDU: 90 00 [16:01:55]wFMCommunicate OK [16:01:55]wFMCommunicate request_size=255 [16:01:55]MH_SAM_APDU [16:01: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 7D 00 00 00 F4 03 04 00 73 38 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 45 2C 01 00 35 04 06 00 [16:01:55]Write to MH i2c: E2 02 01 9E 05 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 7D 00 00 00 F4 03 04 00 73 38 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 45 2C 01 00 35 04 06 00 00 00 D6 [16:01:55]Write i2c OK [16:01:55]MH_I2C_Read... [16:01:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:55]Read from MH i2c: E2 [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: E2 03 00 [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: E2 03 00 9E 05 00 90 00 17 [16:01:55]RAPDU: 90 00 [16:01:55]wFMCommunicate OK [16:01:55]wFMCommunicate request_size=11 [16:01:55]MH_SAM_APDU [16:01:55]CAPDU: 80 0D 02 02 06 CA 34 81 11 FD D8 [16:01:55]Write to MH i2c: E2 0E 00 9F 05 80 0D 02 02 06 00 CA 34 81 11 FD D8 00 00 8F [16:01:55]Write i2c OK [16:01:55]MH_I2C_Read... [16:01:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:55]Read from MH i2c: E2 [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: E2 03 00 [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: E2 03 00 9F 05 00 90 00 18 [16:01:55]RAPDU: 90 00 [16:01:55]wFMCommunicate OK [16:01:55]wFMCommunicate request_size=4 [16:01:55]MH_SAM_APDU [16:01:55]CAPDU: 80 0D 03 02 [16:01:55]Write to MH i2c: E2 08 00 A0 05 80 0D 03 02 00 00 00 00 20 [16:01:55]Write i2c OK [16:01:55]MH_I2C_Read... [16:01:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:01:55]Read from MH i2c: E2 [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: E2 0B 00 [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: E2 0B 00 A0 05 00 C2 D4 39 74 03 73 A4 E4 90 00 62 [16:01:55]RAPDU: C2 D4 39 74 03 73 A4 E4 90 00 [16:01:55]wFMCommunicate OK [16:01:55]SAM_PROTO_SignData done [16:01:55]FM_MakeSignedData done [16:01:55]CreateOFDProtocolMessage [16:01:55]wFMCommunicate request_size=4 [16:01:55]MH_SAM_APDU [16:01:55]CAPDU: 80 11 00 00 [16:01:55]Write to MH i2c: E2 08 00 A1 05 80 11 00 00 00 00 00 00 20 [16:01:55]Write i2c OK [16:01:55]MH_I2C_Read... [16:01:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:55]Read from MH i2c: E2 [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: E2 17 00 [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: E2 17 00 A1 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 73 [16:01:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:01:55]wFMCommunicate OK [16:01:55]CreateOFDProtocolMessage done [16:01:55]OFDSenderStorePacket 76869 [16:01:55]StoreOFDPacket docnum=76869 [16:01:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 31 33 08 01 E5 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 7D 00 00 00 F4 03 04 00 73 38 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 45 2C 01 00 35 04 06 00 CA 34 81 11 FD D8 C2 D4 39 74 03 73 A4 E4 [16:01:55]CheckFolder [16:01:55]dirname=/storage/ofd_packets [16:01:55]CheckFolder done [16:01:55]ProducePacketName [16:01:55]name=ofd_packets/00076869 [16:01:55]NVStorageSaveData ofd_packets/00076869 [16:01:55]File name is /storage/ofd_packets/00076869 [16:01:55]Write 302 bytes [16:01:55]NVStorageSaveData done [16:01:55]OFDSenderStorePacket done [16:01:55]KKMCreateOFDPacket done [16:01:55]NVStorageSaveData kkm_last_timestamp [16:01:55]File name is /storage/kkm_last_timestamp [16:01:55]Write 4 bytes [16:01:55]NVStorageSaveData done [16:01:55]OFD Sender: Processing packet 76869 [packets to send 129, broken 128] [16:01:55]ProducePacketName [16:01:55]name=ofd_packets/00076869 [16:01:55]OFD Sender: To server: pG, [16:01:55]CommunicateWithHost lk.salyk.kg:30040 [16:01:55]ConnectInit lk.salyk.kg [16:01:55]ExternCall_PrintAddStr [16:01:55]wPrintStart [16:01:55]Write to MH i2c: 01 00 00 A2 05 A7 [16:01:55]Write i2c OK [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: 01 [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: 01 07 00 [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: 01 07 00 A2 05 00 00 00 00 00 FF 0F BC [16:01:55]RasterBufferAndPrint [16:01:55]line Счет N : (1)191412 [16:01:55]line ИНН: 02508201610067 [16:01:55]line Контрольно-Кассовый Чек [16:01:55]line ПРОДАЖА [16:01:55]line ТРК (МРК, ГНК) : 41 [16:01:55]line Товар: 2710124130 [16:01:55]line SUPER 92-К-5 [16:01:55]line 15.300 * 65.40 [16:01:55]line = 1000.62 [16:01:55]line НДС 12% НСП 1% [16:01:55]line > о реализуемом товаре [16:01:55]line ОКРУГЛЕНИЕ: -0.62 [16:01:55]line ИТОГО: 1000.00 [16:01:55]line Внесено: 1000.00 [16:01:55]line СДАЧА: 0.00 [16:01:55]line НСП 1% : 8.85 [16:01:55]line НДС 12% : 106.26 [16:01:55]line Наличными: 1000.00 [16:01:55]line Безнал.: 0.00 [16:01:55]line Место: АЗС № 106 "Партнер Нефть" [16:01:55]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [16:01:55]line СНО: Общий режим [16:01:55]line Чек 125 21.04.2024 16:01 [16:01:55]line Смена: 372 ФФД: 1.0 [16:01:55]line ЗНМ: 0300000141 [16:01:55]line РНМ: 0000000000091573 [16:01:55]line Версия ККМ: 001 [16:01:55]line ФМ: 0000000000874652 [16:01:55]line ФД: 76869 [16:01:55]line ФПД: 222326852550104 [16:01:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T160155&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76869&fm=222326852550104&tin=02508201610067®Number=0000000000091573&sum=100000 [16:01:55]Connected sock=11 [16:01:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 31 33 08 01 E5 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 7D 00 00 00 F4 03 04 00 73 38 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 45 2C 01 00 35 04 06 00 CA 34 81 11 FD D8 C2 D4 39 74 03 73 A4 E4 [16:01:55]written 0, free lines is 4095 [16:01:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 5C 63 47 00 93 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 45 2C 01 00 F4 03 04 00 F7 DF 24 66 B6 04 01 00 00 73 64 B4 DD E4 DA 88 96 [16:01:56]CommunicateWithHost err = 0 [16:01:56]CheckOFDResponse [16:01:56]1017 (14) - 77093643461234 [16:01:56]1041 (16) - 0000000000874652 [16:01:56]1040 (4) - 76869 [16:01:56]1012 (4) - 21.04.2024 09:44 [16:01:56]1206 (1) - 0 [16:01:56]OFD Sender: Remove packet 76869 [16:01:56]ProducePacketName [16:01:56]name=ofd_packets/00076869 [16:01:56]NVStorageDeleteData [16:01:56]Write to MH i2c: 01 00 00 CC 05 D1 [16:01:56]Write i2c OK [16:01:56]MH_I2C_Read... [16:01:56]Read from MH i2c: 01 [16:01:56]MH_I2C_Read... [16:01:56]Read from MH i2c: 01 07 00 [16:01:56]MH_I2C_Read... [16:01:56]Read from MH i2c: 01 07 00 CC 05 00 00 00 00 00 FC 0C E0 [16:01:56]RasterBufferAndPrint [16:01:56]line [16:01:56]line [16:01:56]line [16:01:56]line [16:01:56]line [16:01:56]written 0, free lines is 3330 [16:01:56]MH_Cut [16:01:56]Write to MH i2c: D1 01 00 D3 05 01 AA [16:01:56]Write i2c OK [16:01:56]MH_I2C_Read... [16:01:56]Read from MH i2c: D1 [16:01:56]MH_I2C_Read... [16:01:56]Read from MH i2c: D1 01 00 [16:01:56]MH_I2C_Read... [16:01:56]Read from MH i2c: D1 01 00 D3 05 00 A9 [16:01:56]Write to MH i2c: 01 00 00 D4 05 D9 [16:01:56]Write i2c OK [16:01:56]MH_I2C_Read... [16:01:56]OFD Sender: No OFD packet to send [16:01:57]*** Cut start [16:01:57]*** Partial cut [16:01:57]*** CUTSNS_PIN = 1 [16:01:57]*** CUTSNS_PIN = 0 [16:01:57]*** Brake cut motor [16:01:57]Read from MH i2c: 01 [16:01:57]MH_I2C_Read... [16:01:57]*** Stop cut motor [16:01:57]*** Cut end [16:01:57]Read from MH i2c: 01 07 00 [16:01:57]MH_I2C_Read... [16:01:57]Read from MH i2c: 01 07 00 D4 05 00 00 00 00 00 FF 0F EE [16:01:57]process_action close_receipt done [16:01:57]requested_data is exist [16:01:57]produce_requested_data [16:01:57]requested_item fm.sn is exist - process it [16:01:57]wFMCommunicate request_size=4 [16:01:57]MH_SAM_APDU [16:01:57]CAPDU: 80 11 00 00 [16:01:57]Write to MH i2c: E2 08 00 D5 05 80 11 00 00 00 00 00 00 54 [16:01:57]Write i2c OK [16:01:57]MH_I2C_Read... [16:01:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:57]Read from MH i2c: E2 [16:01:57]MH_I2C_Read... [16:01:57]Read from MH i2c: E2 17 00 [16:01:57]MH_I2C_Read... [16:01:57]Read from MH i2c: E2 17 00 D5 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 A7 [16:01:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:01:57]wFMCommunicate OK [16:01:57]requested_item fd.num is exist - process it [16:01:57]SAM_PROTO_GetFieldsCounters [16:01:57]wFMCommunicate request_size=4 [16:01:57]MH_SAM_APDU [16:01:57]CAPDU: 80 13 00 00 [16:01:57]Write to MH i2c: E2 08 00 D6 05 80 13 00 00 00 00 00 00 57 [16:01:57]Write i2c OK [16:01:57]MH_I2C_Read... [16:01:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:01:57]Read from MH i2c: E2 [16:01:57]MH_I2C_Read... [16:01:57]Read from MH i2c: E2 62 00 [16:01:57]MH_I2C_Read... [16:01:57]Read from MH i2c: E2 62 00 D6 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 45 2C 01 00 0E 04 04 00 74 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 D6 [16:01: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 45 2C 01 00 0E 04 04 00 74 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 [16:01:57]wFMCommunicate OK [16:01:57]SAM_PROTO_GetFieldsCounters done [16:01:57]requested_item shift.num is exist - process it [16:01:57]requested_item shift.opened is exist - process it [16:01:57]req_shift_opened [16:01:57]FM_GetShiftState [16:01:57]SAM_PROTO_GetShiftState [16:01:57]wFMCommunicate request_size=4 [16:01:57]MH_SAM_APDU [16:01:57]CAPDU: 80 13 01 00 [16:01:57]Write to MH i2c: E2 08 00 D7 05 80 13 01 00 00 00 00 00 59 [16:01:57]Write i2c OK [16:01:57]MH_I2C_Read... [16:01:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:57]Read from MH i2c: E2 [16:01:57]MH_I2C_Read... [16:01:57]Read from MH i2c: E2 0E 00 [16:01:57]MH_I2C_Read... [16:01:57]Read from MH i2c: E2 0E 00 D7 05 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 A0 [16:01:57]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [16:01:57]wFMCommunicate OK [16:01:57]SAM_PROTO_GetShiftState done [16:01:57]FM_GetShiftState done [16:01:57]req_shift_opened done [16:01:57]requested_item shift.open_date is exist - process it [16:01:57]req_shift_open_date [16:01:57]req_shift_open_date done [16:01:57]produce_requested_data done [16:01:57]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76869,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [16:01:57]process_action_free close_receipt [16:01:57]json_value_free [16:01:57]json_value_free done [16:01:57]process_json_proto returns [16:01:57]Send response to host [16:01:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76869,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [16:01:57]free response buf [16:01:57]execute_script done [16:01:57]execute_script returns [16:01:57]free content buf [16:01:57]Sock 7.Close socket [16:01:57]Sock 7.Thread stoped [16:02:01]OFD Sender: No OFD packet to send [16:02:06]OFD Sender: No OFD packet to send [16:02:11]OFD Sender: No OFD packet to send [16:02:16]OFD Sender: No OFD packet to send [16:02:17]accept exits with 9 [16:02:17]New connection [16:02:17]New thread 3067460964 created [16:02:17]Thread 3067317604 joined [16:02:17]Waiting for new connection... [16:02:17] Sock 9.Parse request [16:02:17]Sock 9.Check first char [16:02:17]Sock 9.First char is OK [16:02:17]request: POST /json_proto HTTP/1.0 [16:02:17]Method: POST [16:02:17]URL: /json_proto [16:02:17]Method is POST - this is cgi request [16:02:17]url: /json_proto [16:02:17]query_string will be loaded in cgi processing [16:02:17]execute_cgi json_proto POST (null) [16:02:17]execute_cgi path=json_proto method=POST [16:02:17]POST find Content-Length [16:02:17]Host: 172.17.62.5:8080 [16:02:17]Content-Length: 978 [16:02:17]Content-Type: application/json [16:02:17] [16:02:17]POST finish read [16:02:17]Found Content-Length = 978 [16:02:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 20.87 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:17]execute_script... [16:02: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)191413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 20.87 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:17]POST & json_proto [16:02:17]process_json_proto [16:02:17]json parsed OK: [16:02:17]protocol is kg_v1.0 [16:02:17]action value=close_receipt [16:02:17]process_action close_receipt [16:02:17]cmd_close_receipt [16:02:17]MH_GetDate [16:02:17]Write to MH i2c: F0 00 00 D8 05 CC [16:02:17]Write i2c OK [16:02:17]MH_I2C_Read... [16:02:17]Read from MH i2c: F0 [16:02:17]MH_I2C_Read... [16:02:17]Read from MH i2c: F0 09 00 [16:02:17]MH_I2C_Read... [16:02:17]Read from MH i2c: F0 09 00 D8 05 00 8A 38 25 66 F4 E9 65 64 C8 [16:02:17]GetLastDocTimeStamp 1713715315 [16:02:17]current date 1713715338 [16:02:17]FM_GetShiftState [16:02:17]SAM_PROTO_GetShiftState [16:02:17]wFMCommunicate request_size=4 [16:02:17]MH_SAM_APDU [16:02:17]CAPDU: 80 13 01 00 [16:02:17]Write to MH i2c: E2 08 00 D9 05 80 13 01 00 00 00 00 00 5B [16:02:17]Write i2c OK [16:02:17]MH_I2C_Read... [16:02:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:17]Read from MH i2c: E2 [16:02:17]MH_I2C_Read... [16:02:17]Read from MH i2c: E2 0E 00 [16:02:17]MH_I2C_Read... [16:02:17]Read from MH i2c: E2 0E 00 D9 05 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 A2 [16:02:17]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [16:02:17]wFMCommunicate OK [16:02:17]SAM_PROTO_GetShiftState done [16:02:17]FM_GetShiftState done [16:02:17]opened in 1713658965 [16:02:17]opened+sec_in_day 1713745365 [16:02:17]quantity*price = 150055 [16:02:17]sum+1 = 150056 [16:02:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 126 21.04.2024 16:02 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 20.87 сом ФМ: 0000000000874652 ФД: 76870 ФПД: 114538163363316 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T160218&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76870&fm=114538163363316&tin=02508201610067®Number=0000000000091573&sum=150000 [16:02:18]StoreToDocumentArchive [16:02:18]shift 372 fd 76870 [16:02:18]save to /storage/0372/doc_00076870 [16:02:18]save last doc name /storage/0372/doc_00076870 to /storage/kkm_last_doc_name [16:02:18]save OK [16:02:18]Clear old archive folders... [16:02:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:02:18]tlvbuf is 018022C0 [16:02:18]SAM_PROTO_ClearQueue [16:02:18]wFMCommunicate request_size=4 [16:02:18]MH_SAM_APDU [16:02:18]CAPDU: 80 09 00 00 [16:02:18]Write to MH i2c: E2 08 00 E6 05 80 09 00 00 00 00 00 00 5D [16:02:18]Write i2c OK [16:02:18]MH_I2C_Read... [16:02:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:02:18]Read from MH i2c: E2 [16:02:18]MH_I2C_Read... [16:02:18]Read from MH i2c: E2 03 00 [16:02:18]MH_I2C_Read... [16:02:18]Read from MH i2c: E2 03 00 E6 05 00 90 00 5F [16:02:18]RAPDU: 90 00 [16:02:18]wFMCommunicate OK [16:02:18]SAM_PROTO_ClearQueue done [16:02:18]KKMCreateOFDPacket [16:02:18]OFDProtocolAddRootSTLVToBuf [16:02:18]FM_MakeSignedData [16:02:18]FM_MakeSignedData [16:02:18]SAM_PROTO_SignData [16:02:18]wFMCommunicate request_size=4 [16:02:18]MH_SAM_APDU [16:02:18]CAPDU: 80 0D 01 02 [16:02:18]Write to MH i2c: E2 08 00 E7 05 80 0D 01 02 00 00 00 00 65 [16:02:18]Write i2c OK [16:02:18]MH_I2C_Read... [16:02:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:02:18]Read from MH i2c: E2 [16:02:18]MH_I2C_Read... [16:02:18]Read from MH i2c: E2 03 00 [16:02:18]MH_I2C_Read... [16:02:18]Read from MH i2c: E2 03 00 E7 05 00 90 00 60 [16:02:18]RAPDU: 90 00 [16:02:18]wFMCommunicate OK [16:02:18]wFMCommunicate request_size=255 [16:02:18]MH_SAM_APDU [16:02:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 8A 38 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 46 2C 01 00 35 04 06 00 68 2B FE 8A [16:02:18]Write to MH i2c: E2 02 01 E8 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 8A 38 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 46 2C 01 00 35 04 06 00 68 2B FE 8A 00 00 34 [16:02:18]Write i2c OK [16:02:18]MH_I2C_Read... [16:02:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:18]Read from MH i2c: E2 [16:02:18]MH_I2C_Read... [16:02:18]Read from MH i2c: E2 03 00 [16:02:18]MH_I2C_Read... [16:02:18]Read from MH i2c: E2 03 00 E8 05 00 90 00 61 [16:02:18]RAPDU: 90 00 [16:02:18]wFMCommunicate OK [16:02:18]wFMCommunicate request_size=7 [16:02:18]MH_SAM_APDU [16:02:18]CAPDU: 80 0D 02 02 02 5D F4 [16:02:18]Write to MH i2c: E2 0A 00 E9 05 80 0D 02 02 02 00 5D F4 00 00 BD [16:02:18]Write i2c OK [16:02:18]MH_I2C_Read... [16:02:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:18]Read from MH i2c: E2 [16:02:18]MH_I2C_Read... [16:02:18]Read from MH i2c: E2 03 00 [16:02:18]MH_I2C_Read... [16:02:18]Read from MH i2c: E2 03 00 E9 05 00 90 00 62 [16:02:18]RAPDU: 90 00 [16:02:18]wFMCommunicate OK [16:02:18]wFMCommunicate request_size=4 [16:02:18]MH_SAM_APDU [16:02:18]CAPDU: 80 0D 03 02 [16:02:18]Write to MH i2c: E2 08 00 EA 05 80 0D 03 02 00 00 00 00 6A [16:02:18]Write i2c OK [16:02:18]MH_I2C_Read... [16:02:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:02:18]Read from MH i2c: E2 [16:02:18]MH_I2C_Read... [16:02:18]Read from MH i2c: E2 0B 00 [16:02:18]MH_I2C_Read... [16:02:18]Read from MH i2c: E2 0B 00 EA 05 00 AB 69 3E 44 63 C0 A6 2B 90 00 F5 [16:02:18]RAPDU: AB 69 3E 44 63 C0 A6 2B 90 00 [16:02:18]wFMCommunicate OK [16:02:18]SAM_PROTO_SignData done [16:02:18]FM_MakeSignedData done [16:02:18]CreateOFDProtocolMessage [16:02:18]wFMCommunicate request_size=4 [16:02:18]MH_SAM_APDU [16:02:18]CAPDU: 80 11 00 00 [16:02:18]Write to MH i2c: E2 08 00 EB 05 80 11 00 00 00 00 00 00 6A [16:02:18]Write i2c OK [16:02:18]MH_I2C_Read... [16:02:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:19]Read from MH i2c: E2 [16:02:19]MH_I2C_Read... [16:02:19]Read from MH i2c: E2 17 00 [16:02:19]MH_I2C_Read... [16:02:19]Read from MH i2c: E2 17 00 EB 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 BD [16:02:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:02:19]wFMCommunicate OK [16:02:19]CreateOFDProtocolMessage done [16:02:19]OFDSenderStorePacket 76870 [16:02:19]StoreOFDPacket docnum=76870 [16:02:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 AF 5C 04 01 96 13 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 8A 38 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 46 2C 01 00 35 04 06 00 68 2B FE 8A 5D F4 AB 69 3E 44 63 C0 A6 2B [16:02:19]CheckFolder [16:02:19]dirname=/storage/ofd_packets [16:02:19]CheckFolder done [16:02:19]ProducePacketName [16:02:19]name=ofd_packets/00076870 [16:02:19]NVStorageSaveData ofd_packets/00076870 [16:02:19]File name is /storage/ofd_packets/00076870 [16:02:19]Write 298 bytes [16:02:19]NVStorageSaveData done [16:02:19]OFDSenderStorePacket done [16:02:19]KKMCreateOFDPacket done [16:02:19]NVStorageSaveData kkm_last_timestamp [16:02:19]File name is /storage/kkm_last_timestamp [16:02:19]Write 4 bytes [16:02:19]NVStorageSaveData done [16:02:19]ExternCall_PrintAddStr [16:02:19]wPrintStart [16:02:19]Write to MH i2c: 01 00 00 EC 05 F1 [16:02:19]Write i2c OK [16:02:19]MH_I2C_Read... [16:02:19]Read from MH i2c: 01 [16:02:19]MH_I2C_Read... [16:02:19]Read from MH i2c: 01 07 00 [16:02:19]MH_I2C_Read... [16:02:19]Read from MH i2c: 01 07 00 EC 05 00 00 00 00 00 FF 0F 06 [16:02:19]RasterBufferAndPrint [16:02:19]line Счет N : (1)191413 [16:02:19]line ИНН: 02508201610067 [16:02:19]line Контрольно-Кассовый Чек [16:02:19]line ПРОДАЖА [16:02:19]line ТРК (МРК, ГНК) : 23 [16:02:19]line Товар: 2710194210 [16:02:19]line ДТ-К-5 [16:02:19]line 20.870 * 71.90 [16:02:19]line = 1500.55 [16:02:19]line НДС 12% НСП 1% [16:02:19]line > о реализуемом товаре [16:02:19]line ОКРУГЛЕНИЕ: -0.55 [16:02:19]line ИТОГО: 1500.00 [16:02:19]line Внесено: 1500.00 [16:02:19]line СДАЧА: 0.00 [16:02:19]line НСП 1% : 13.28 [16:02:19]line НДС 12% : 159.35 [16:02:19]line Наличными: 1500.00 [16:02:19]line Безнал.: 0.00 [16:02:19]line Место: АЗС № 106 "Партнер Нефть" [16:02:19]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [16:02:19]line СНО: Общий режим [16:02:19]line Чек 126 21.04.2024 16:02 [16:02:19]line Смена: 372 ФФД: 1.0 [16:02:19]line ЗНМ: 0300000141 [16:02:19]line РНМ: 0000000000091573 [16:02:19]line Версия ККМ: 001 [16:02:19]line [16:02:19]line Дисконтная программа [16:02:19]line ДТ [16:02:19]line номер 106 [16:02:19]line сэкономлено 20.87 сом [16:02:19]line ФМ: 0000000000874652 [16:02:19]line ФД: 76870 [16:02:19]line ФПД: 114538163363316 [16:02:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T160218&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76870&fm=114538163363316&tin=02508201610067®Number=0000000000091573&sum=150000 [16:02:19]OFD Sender: Processing packet 76870 [packets to send 129, broken 128] [16:02:19]ProducePacketName [16:02:19]name=ofd_packets/00076870 [16:02:19]OFD Sender: To server: pG, [16:02:19]CommunicateWithHost lk.salyk.kg:30040 [16:02:19]ConnectInit lk.salyk.kg [16:02:19]written 0, free lines is 4095 [16:02:19]Connected sock=10 [16:02:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 AF 5C 04 01 96 13 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 8A 38 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 46 2C 01 00 35 04 06 00 68 2B FE 8A 5D F4 AB 69 3E 44 63 C0 A6 2B [16:02:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 99 39 47 00 26 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 34 36 35 32 10 04 04 00 46 2C 01 00 F4 03 04 00 0F E0 24 66 B6 04 01 00 00 FE DE EF 0A 81 D3 6A 8C [16:02:19]CommunicateWithHost err = 0 [16:02:19]CheckOFDResponse [16:02:19]1017 (14) - 77093643461234 [16:02:19]1041 (16) - 0000000000874652 [16:02:19]1040 (4) - 76870 [16:02:19]1012 (4) - 21.04.2024 09:44 [16:02:19]1206 (1) - 0 [16:02:19]OFD Sender: Remove packet 76870 [16:02:19]ProducePacketName [16:02:19]name=ofd_packets/00076870 [16:02:19]NVStorageDeleteData [16:02:19]Write to MH i2c: 01 00 00 1B 06 21 [16:02:19]Write i2c OK [16:02:19]MH_I2C_Read... [16:02:19]Read from MH i2c: 01 [16:02:19]MH_I2C_Read... [16:02:19]Read from MH i2c: 01 07 00 [16:02:19]MH_I2C_Read... [16:02:19]Read from MH i2c: 01 07 00 1B 06 00 00 00 00 00 B0 0C E4 [16:02:19]RasterBufferAndPrint [16:02:19]line [16:02:19]line [16:02:19]line [16:02:19]line [16:02:19]line [16:02:19]written 0, free lines is 3255 [16:02:19]MH_Cut [16:02:19]Write to MH i2c: D1 01 00 22 06 01 FA [16:02:19]Write i2c OK [16:02:19]MH_I2C_Read... [16:02:19]Read from MH i2c: D1 [16:02:19]MH_I2C_Read... [16:02:19]Read from MH i2c: D1 01 00 [16:02:19]MH_I2C_Read... [16:02:19]Read from MH i2c: D1 01 00 22 06 00 F9 [16:02:19]Write to MH i2c: 01 00 00 23 06 29 [16:02:19]Write i2c OK [16:02:19]MH_I2C_Read... [16:02:20]OFD Sender: No OFD packet to send [16:02:20]*** Cut start [16:02:20]*** Partial cut [16:02:20]*** CUTSNS_PIN = 1 [16:02:20]*** CUTSNS_PIN = 0 [16:02:20]*** Brake cut motor [16:02:21]Read from MH i2c: 01 [16:02:21]MH_I2C_Read... [16:02:21]*** Stop cut motor [16:02:21]*** Cut end [16:02:21]Read from MH i2c: 01 07 00 [16:02:21]MH_I2C_Read... [16:02:21]Read from MH i2c: 01 07 00 23 06 00 00 00 00 00 FF 0F 3E [16:02:21]process_action close_receipt done [16:02:21]requested_data is exist [16:02:21]produce_requested_data [16:02:21]requested_item fm.sn is exist - process it [16:02:21]wFMCommunicate request_size=4 [16:02:21]MH_SAM_APDU [16:02:21]CAPDU: 80 11 00 00 [16:02:21]Write to MH i2c: E2 08 00 24 06 80 11 00 00 00 00 00 00 A4 [16:02:21]Write i2c OK [16:02:21]MH_I2C_Read... [16:02:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:21]Read from MH i2c: E2 [16:02:21]MH_I2C_Read... [16:02:21]Read from MH i2c: E2 17 00 [16:02:21]MH_I2C_Read... [16:02:21]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 34 36 35 32 90 00 F7 [16:02:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:02:21]wFMCommunicate OK [16:02:21]requested_item fd.num is exist - process it [16:02:21]SAM_PROTO_GetFieldsCounters [16:02:21]wFMCommunicate request_size=4 [16:02:21]MH_SAM_APDU [16:02:21]CAPDU: 80 13 00 00 [16:02:21]Write to MH i2c: E2 08 00 25 06 80 13 00 00 00 00 00 00 A7 [16:02:21]Write i2c OK [16:02:21]MH_I2C_Read... [16:02:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:02:21]Read from MH i2c: E2 [16:02:21]MH_I2C_Read... [16:02:21]Read from MH i2c: E2 62 00 [16:02:21]MH_I2C_Read... [16:02:21]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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 46 2C 01 00 0E 04 04 00 74 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 2A [16:02: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 46 2C 01 00 0E 04 04 00 74 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 [16:02:21]wFMCommunicate OK [16:02:21]SAM_PROTO_GetFieldsCounters done [16:02:21]requested_item shift.num is exist - process it [16:02:21]requested_item shift.opened is exist - process it [16:02:21]req_shift_opened [16:02:21]FM_GetShiftState [16:02:21]SAM_PROTO_GetShiftState [16:02:21]wFMCommunicate request_size=4 [16:02:21]MH_SAM_APDU [16:02:21]CAPDU: 80 13 01 00 [16:02:21]Write to MH i2c: E2 08 00 26 06 80 13 01 00 00 00 00 00 A9 [16:02:21]Write i2c OK [16:02:21]MH_I2C_Read... [16:02:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:21]Read from MH i2c: E2 [16:02:21]MH_I2C_Read... [16:02:21]Read from MH i2c: E2 0E 00 [16:02:21]MH_I2C_Read... [16:02:21]Read from MH i2c: E2 0E 00 26 06 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 F0 [16:02:21]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [16:02:21]wFMCommunicate OK [16:02:21]SAM_PROTO_GetShiftState done [16:02:21]FM_GetShiftState done [16:02:21]req_shift_opened done [16:02:21]requested_item shift.open_date is exist - process it [16:02:21]req_shift_open_date [16:02:21]req_shift_open_date done [16:02:21]produce_requested_data done [16:02:21]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76870,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [16:02:21]process_action_free close_receipt [16:02:21]json_value_free [16:02:21]json_value_free done [16:02:21]process_json_proto returns [16:02:21]Send response to host [16:02:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76870,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [16:02:21]free response buf [16:02:21]execute_script done [16:02:21]execute_script returns [16:02:21]free content buf [16:02:21]Sock 9.Close socket [16:02:21]Sock 9.Thread stoped [16:02:25]OFD Sender: No OFD packet to send [16:02:30]OFD Sender: No OFD packet to send [16:02:35]OFD Sender: No OFD packet to send [16:02:40]OFD Sender: No OFD packet to send [16:02:45]OFD Sender: No OFD packet to send [16:02:50]OFD Sender: No OFD packet to send [16:02:55]OFD Sender: No OFD packet to send [16:03:00]OFD Sender: No OFD packet to send [16:03:05]OFD Sender: No OFD packet to send [16:03:10]OFD Sender: No OFD packet to send [16:03:15]OFD Sender: No OFD packet to send [16:03:20]OFD Sender: No OFD packet to send [16:03:25]OFD Sender: No OFD packet to send [16:03:30]OFD Sender: No OFD packet to send [16:03:35]OFD Sender: No OFD packet to send [16:03:40]OFD Sender: No OFD packet to send [16:03:45]OFD Sender: No OFD packet to send [16:03:50]OFD Sender: No OFD packet to send [16:03:55]OFD Sender: No OFD packet to send [16:04:00]OFD Sender: No OFD packet to send [16:04:05]OFD Sender: No OFD packet to send [16:04:10]OFD Sender: No OFD packet to send [16:04:15]OFD Sender: No OFD packet to send [16:04:20]OFD Sender: No OFD packet to send [16:04:25]OFD Sender: No OFD packet to send [16:04:30]OFD Sender: No OFD packet to send [16:04:35]OFD Sender: No OFD packet to send [16:04:40]OFD Sender: No OFD packet to send [16:04:45]OFD Sender: No OFD packet to send [16:04:50]OFD Sender: No OFD packet to send [16:04:55]OFD Sender: No OFD packet to send [16:05:00]OFD Sender: No OFD packet to send [16:05:05]OFD Sender: No OFD packet to send [16:05:10]OFD Sender: No OFD packet to send [16:05:15]OFD Sender: No OFD packet to send [16:05:20]OFD Sender: No OFD packet to send [16:05:25]OFD Sender: No OFD packet to send [16:05:30]OFD Sender: No OFD packet to send [16:05:35]OFD Sender: No OFD packet to send [16:05:40]OFD Sender: No OFD packet to send [16:05:45]OFD Sender: No OFD packet to send [16:05:50]OFD Sender: No OFD packet to send [16:05:55]OFD Sender: No OFD packet to send [16:06:00]OFD Sender: No OFD packet to send [16:06:05]OFD Sender: No OFD packet to send [16:06:10]OFD Sender: No OFD packet to send [16:06:15]OFD Sender: No OFD packet to send [16:06:20]OFD Sender: No OFD packet to send [16:06:25]OFD Sender: No OFD packet to send [16:06:30]OFD Sender: No OFD packet to send [16:06:35]OFD Sender: No OFD packet to send [16:06:40]OFD Sender: No OFD packet to send [16:06:45]OFD Sender: No OFD packet to send [16:06:50]OFD Sender: No OFD packet to send [16:06:55]OFD Sender: No OFD packet to send [16:07:00]OFD Sender: No OFD packet to send [16:07:05]OFD Sender: No OFD packet to send [16:07:10]OFD Sender: No OFD packet to send [16:07:15]OFD Sender: No OFD packet to send [16:07:20]OFD Sender: No OFD packet to send [16:07:25]OFD Sender: No OFD packet to send [16:07:30]OFD Sender: No OFD packet to send [16:07:35]OFD Sender: No OFD packet to send [16:07:40]OFD Sender: No OFD packet to send [16:07:45]OFD Sender: No OFD packet to send [16:07:50]OFD Sender: No OFD packet to send [16:07:55]OFD Sender: No OFD packet to send [16:08:00]OFD Sender: No OFD packet to send [16:08:02]accept exits with 7 [16:08:02]New connection [16:08:02]New thread 3067317604 created [16:08:02]Thread 3067460964 joined [16:08:02]Waiting for new connection... [16:08:02] Sock 7.Parse request [16:08:02]Sock 7.Check first char [16:08:02]Sock 7.First char is OK [16:08:02]request: POST /json_proto HTTP/1.0 [16:08:02]Method: POST [16:08:02]URL: /json_proto [16:08:02]Method is POST - this is cgi request [16:08:02]url: /json_proto [16:08:02]query_string will be loaded in cgi processing [16:08:02]execute_cgi json_proto POST (null) [16:08:02]execute_cgi path=json_proto method=POST [16:08:02]POST find Content-Length [16:08:02]Host: 172.17.62.5:8080 [16:08:02]Content-Length: 677 [16:08:02]Content-Type: application/json [16:08:02] [16:08:02]POST finish read [16:08:02]Found Content-Length = 677 [16:08:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 5.440, "sum" : 350.34, "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" ] } } [16:08:02]execute_script... [16:08: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)191414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 5.440, "sum" : 350.34, "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" ] } } [16:08:02]POST & json_proto [16:08:02]process_json_proto [16:08:02]json parsed OK: [16:08:02]protocol is kg_v1.0 [16:08:02]action value=close_receipt [16:08:02]process_action close_receipt [16:08:02]cmd_close_receipt [16:08:02]MH_GetDate [16:08:02]Write to MH i2c: F0 00 00 27 06 1C [16:08:02]Write i2c OK [16:08:02]MH_I2C_Read... [16:08:02]Read from MH i2c: F0 [16:08:02]MH_I2C_Read... [16:08:02]Read from MH i2c: F0 09 00 [16:08:02]MH_I2C_Read... [16:08:02]Read from MH i2c: F0 09 00 27 06 00 E3 39 25 66 F4 E9 65 64 72 [16:08:02]GetLastDocTimeStamp 1713715338 [16:08:02]current date 1713715683 [16:08:02]FM_GetShiftState [16:08:02]SAM_PROTO_GetShiftState [16:08:02]wFMCommunicate request_size=4 [16:08:02]MH_SAM_APDU [16:08:02]CAPDU: 80 13 01 00 [16:08:02]Write to MH i2c: E2 08 00 28 06 80 13 01 00 00 00 00 00 AB [16:08:02]Write i2c OK [16:08:02]MH_I2C_Read... [16:08:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:02]Read from MH i2c: E2 [16:08:02]MH_I2C_Read... [16:08:02]Read from MH i2c: E2 0E 00 [16:08:02]MH_I2C_Read... [16:08:02]Read from MH i2c: E2 0E 00 28 06 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 F2 [16:08:02]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [16:08:02]wFMCommunicate OK [16:08:02]SAM_PROTO_GetShiftState done [16:08:02]FM_GetShiftState done [16:08:02]opened in 1713658965 [16:08:02]opened+sec_in_day 1713745365 [16:08:02]quantity*price = 35033 [16:08:02]sum+1 = 35035 [16:08:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.20 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 127 21.04.2024 16:08 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76871 ФПД: 133328338871225 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T160803&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76871&fm=133328338871225&tin=02508201610067®Number=0000000000091573&sum=35000 [16:08:03]StoreToDocumentArchive [16:08:03]shift 372 fd 76871 [16:08:03]save to /storage/0372/doc_00076871 [16:08:03]save last doc name /storage/0372/doc_00076871 to /storage/kkm_last_doc_name [16:08:03]save OK [16:08:03]Clear old archive folders... [16:08:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:08:03]tlvbuf is 017E7B60 [16:08:03]SAM_PROTO_ClearQueue [16:08:03]wFMCommunicate request_size=4 [16:08:03]MH_SAM_APDU [16:08:03]CAPDU: 80 09 00 00 [16:08:03]Write to MH i2c: E2 08 00 35 06 80 09 00 00 00 00 00 00 AD [16:08:03]Write i2c OK [16:08:03]MH_I2C_Read... [16:08:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:08:03]Read from MH i2c: E2 [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: E2 03 00 [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: E2 03 00 35 06 00 90 00 AF [16:08:03]RAPDU: 90 00 [16:08:03]wFMCommunicate OK [16:08:03]SAM_PROTO_ClearQueue done [16:08:03]KKMCreateOFDPacket [16:08:03]OFDProtocolAddRootSTLVToBuf [16:08:03]FM_MakeSignedData [16:08:03]FM_MakeSignedData [16:08:03]SAM_PROTO_SignData [16:08:03]wFMCommunicate request_size=4 [16:08:03]MH_SAM_APDU [16:08:03]CAPDU: 80 0D 01 02 [16:08:03]Write to MH i2c: E2 08 00 36 06 80 0D 01 02 00 00 00 00 B5 [16:08:03]Write i2c OK [16:08:03]MH_I2C_Read... [16:08:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:08:03]Read from MH i2c: E2 [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: E2 03 00 [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: E2 03 00 36 06 00 90 00 B0 [16:08:03]RAPDU: 90 00 [16:08:03]wFMCommunicate OK [16:08:03]wFMCommunicate request_size=255 [16:08:03]MH_SAM_APDU [16:08:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 15 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 DA 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 88 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 7F 00 00 00 F4 03 04 00 E3 39 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 47 2C 01 00 35 04 06 00 79 [16:08:03]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 40 15 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 DA 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 88 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 7F 00 00 00 F4 03 04 00 E3 39 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 47 2C 01 00 35 04 06 00 79 00 00 8C [16:08:03]Write i2c OK [16:08:03]MH_I2C_Read... [16:08:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:03]Read from MH i2c: E2 [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: E2 03 00 [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: E2 03 00 37 06 00 90 00 B1 [16:08:03]RAPDU: 90 00 [16:08:03]wFMCommunicate OK [16:08:03]wFMCommunicate request_size=10 [16:08:03]MH_SAM_APDU [16:08:03]CAPDU: 80 0D 02 02 05 42 EC 46 E3 B9 [16:08:03]Write to MH i2c: E2 0D 00 38 06 80 0D 02 02 05 00 42 EC 46 E3 B9 00 00 D2 [16:08:03]Write i2c OK [16:08:03]MH_I2C_Read... [16:08:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:03]Read from MH i2c: E2 [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: E2 03 00 [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: E2 03 00 38 06 00 90 00 B2 [16:08:03]RAPDU: 90 00 [16:08:03]wFMCommunicate OK [16:08:03]wFMCommunicate request_size=4 [16:08:03]MH_SAM_APDU [16:08:03]CAPDU: 80 0D 03 02 [16:08:03]Write to MH i2c: E2 08 00 39 06 80 0D 03 02 00 00 00 00 BA [16:08:03]Write i2c OK [16:08:03]MH_I2C_Read... [16:08:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:08:03]Read from MH i2c: E2 [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: E2 0B 00 [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: E2 0B 00 39 06 00 23 FB DF CC 7D 9F F5 91 90 00 26 [16:08:03]RAPDU: 23 FB DF CC 7D 9F F5 91 90 00 [16:08:03]wFMCommunicate OK [16:08:03]SAM_PROTO_SignData done [16:08:03]FM_MakeSignedData done [16:08:03]CreateOFDProtocolMessage [16:08:03]wFMCommunicate request_size=4 [16:08:03]MH_SAM_APDU [16:08:03]CAPDU: 80 11 00 00 [16:08:03]Write to MH i2c: E2 08 00 3A 06 80 11 00 00 00 00 00 00 BA [16:08:03]Write i2c OK [16:08:03]MH_I2C_Read... [16:08:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:03]Read from MH i2c: E2 [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: E2 17 00 [16:08:03]MH_I2C_Read... [16:08:03]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 34 36 35 32 90 00 0D [16:08:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:08:03]wFMCommunicate OK [16:08:03]CreateOFDProtocolMessage done [16:08:03]OFDSenderStorePacket 76871 [16:08:03]StoreOFDPacket docnum=76871 [16:08:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 81 2E 07 01 04 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 15 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 DA 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 88 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 7F 00 00 00 F4 03 04 00 E3 39 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 47 2C 01 00 35 04 06 00 79 42 EC 46 E3 B9 23 FB DF CC 7D 9F F5 91 [16:08:03]CheckFolder [16:08:03]dirname=/storage/ofd_packets [16:08:03]CheckFolder done [16:08:03]ProducePacketName [16:08:03]name=ofd_packets/00076871 [16:08:03]NVStorageSaveData ofd_packets/00076871 [16:08:03]File name is /storage/ofd_packets/00076871 [16:08:03]Write 301 bytes [16:08:03]NVStorageSaveData done [16:08:03]OFDSenderStorePacket done [16:08:03]KKMCreateOFDPacket done [16:08:03]NVStorageSaveData kkm_last_timestamp [16:08:03]File name is /storage/kkm_last_timestamp [16:08:03]Write 4 bytes [16:08:03]NVStorageSaveData done [16:08:03]ExternCall_PrintAddStr [16:08:03]wPrintStart [16:08:03]Write to MH i2c: 01 00 00 3B 06 41 [16:08:03]Write i2c OK [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: 01 [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: 01 07 00 [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: 01 07 00 3B 06 00 00 00 00 00 FF 0F 56 [16:08:03]RasterBufferAndPrint [16:08:03]line Счет N : (1)191414 [16:08:03]line ИНН: 02508201610067 [16:08:03]line Контрольно-Кассовый Чек [16:08:03]line ПРОДАЖА [16:08:03]line ТРК (МРК, ГНК) : 12 [16:08:03]line Товар: 2710124130 [16:08:03]line Аи-92-К-5 [16:08:03]line 5.440 * 64.40 [16:08:03]line = 350.34 [16:08:03]line НДС 12% НСП 1% [16:08:03]line > о реализуемом товаре [16:08:03]line ОКРУГЛЕНИЕ: -0.34 [16:08:03]line ИТОГО: 350.00 [16:08:03]line Внесено: 350.00 [16:08:03]line СДАЧА: 0.00 [16:08:03]line НСП 1% : 3.10 [16:08:03]line НДС 12% : 37.20 [16:08:03]line Наличными: 350.00 [16:08:03]line Безнал.: 0.00 [16:08:03]line Место: АЗС № 106 "Партнер Нефть" [16:08:03]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [16:08:03]line СНО: Общий режим [16:08:03]line Чек 127 21.04.2024 16:08 [16:08:03]line Смена: 372 ФФД: 1.0 [16:08:03]line ЗНМ: 0300000141 [16:08:03]line РНМ: 0000000000091573 [16:08:03]line Версия ККМ: 001 [16:08:03]line ФМ: 0000000000874652 [16:08:03]line ФД: 76871 [16:08:03]line ФПД: 133328338871225 [16:08:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T160803&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76871&fm=133328338871225&tin=02508201610067®Number=0000000000091573&sum=35000 [16:08:04]written 0, free lines is 4095 [16:08:04]OFD Sender: Processing packet 76871 [packets to send 129, broken 128] [16:08:04]ProducePacketName [16:08:04]name=ofd_packets/00076871 [16:08:04]OFD Sender: To server: pG, [16:08:04]CommunicateWithHost lk.salyk.kg:30040 [16:08:04]ConnectInit lk.salyk.kg [16:08:04]Connected sock=10 [16:08:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 81 2E 07 01 04 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 15 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 DA 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 88 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 7F 00 00 00 F4 03 04 00 E3 39 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 47 2C 01 00 35 04 06 00 79 42 EC 46 E3 B9 23 FB DF CC 7D 9F F5 91 [16:08:04]Write to MH i2c: 01 00 00 65 06 6B [16:08:04]Write i2c OK [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: 01 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: 01 07 00 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: 01 07 00 65 06 00 00 00 00 00 E4 0C 62 [16:08:04]RasterBufferAndPrint [16:08:04]line [16:08:04]line [16:08:04]line [16:08:04]line [16:08:04]line [16:08:04]written 0, free lines is 3306 [16:08:04]MH_Cut [16:08:04]Write to MH i2c: D1 01 00 6C 06 01 44 [16:08:04]Write i2c OK [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: D1 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: D1 01 00 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: D1 01 00 6C 06 00 43 [16:08:04]Write to MH i2c: 01 00 00 6D 06 73 [16:08:04]Write i2c OK [16:08:04]MH_I2C_Read... [16:08:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 52 AE 47 00 1E 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 34 36 35 32 10 04 04 00 47 2C 01 00 F4 03 04 00 68 E1 24 66 B6 04 01 00 00 49 F4 D7 DA 4F 22 A4 57 [16:08:04]CommunicateWithHost err = 0 [16:08:04]CheckOFDResponse [16:08:04]1017 (14) - 77093643461234 [16:08:04]1041 (16) - 0000000000874652 [16:08:04]1040 (4) - 76871 [16:08:04]1012 (4) - 21.04.2024 09:50 [16:08:04]1206 (1) - 0 [16:08:04]OFD Sender: Remove packet 76871 [16:08:04]ProducePacketName [16:08:04]name=ofd_packets/00076871 [16:08:04]NVStorageDeleteData [16:08:05]OFD Sender: No OFD packet to send [16:08:05]*** Cut start [16:08:05]*** Partial cut [16:08:05]*** CUTSNS_PIN = 1 [16:08:05]*** CUTSNS_PIN = 0 [16:08:05]*** Brake cut motor [16:08:05]Read from MH i2c: 01 [16:08:05]MH_I2C_Read... [16:08:06]*** Stop cut motor [16:08:06]*** Cut end [16:08:06]Read from MH i2c: 01 07 00 [16:08:06]MH_I2C_Read... [16:08:06]Read from MH i2c: 01 07 00 6D 06 00 00 00 00 00 FF 0F 88 [16:08:06]process_action close_receipt done [16:08:06]requested_data is exist [16:08:06]produce_requested_data [16:08:06]requested_item fm.sn is exist - process it [16:08:06]wFMCommunicate request_size=4 [16:08:06]MH_SAM_APDU [16:08:06]CAPDU: 80 11 00 00 [16:08:06]Write to MH i2c: E2 08 00 6E 06 80 11 00 00 00 00 00 00 EE [16:08:06]Write i2c OK [16:08:06]MH_I2C_Read... [16:08:06]Read from MH i2c: E2 [16:08:06]MH_I2C_Read... [16:08:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:06]Read from MH i2c: E2 17 00 [16:08:06]MH_I2C_Read... [16:08:06]Read from MH i2c: E2 17 00 6E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 41 [16:08:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:08:06]wFMCommunicate OK [16:08:06]requested_item fd.num is exist - process it [16:08:06]SAM_PROTO_GetFieldsCounters [16:08:06]wFMCommunicate request_size=4 [16:08:06]MH_SAM_APDU [16:08:06]CAPDU: 80 13 00 00 [16:08:06]Write to MH i2c: E2 08 00 6F 06 80 13 00 00 00 00 00 00 F1 [16:08:06]Write i2c OK [16:08:06]MH_I2C_Read... [16:08:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:08:06]Read from MH i2c: E2 [16:08:06]MH_I2C_Read... [16:08:06]Read from MH i2c: E2 62 00 [16:08:06]MH_I2C_Read... [16:08:06]Read from MH i2c: E2 62 00 6F 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 47 2C 01 00 0E 04 04 00 74 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 78 [16:08: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 47 2C 01 00 0E 04 04 00 74 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 [16:08:06]wFMCommunicate OK [16:08:06]SAM_PROTO_GetFieldsCounters done [16:08:06]requested_item shift.num is exist - process it [16:08:06]requested_item shift.opened is exist - process it [16:08:06]req_shift_opened [16:08:06]FM_GetShiftState [16:08:06]SAM_PROTO_GetShiftState [16:08:06]wFMCommunicate request_size=4 [16:08:06]MH_SAM_APDU [16:08:06]CAPDU: 80 13 01 00 [16:08:06]Write to MH i2c: E2 08 00 70 06 80 13 01 00 00 00 00 00 F3 [16:08:06]Write i2c OK [16:08:06]MH_I2C_Read... [16:08:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:06]Read from MH i2c: E2 [16:08:06]MH_I2C_Read... [16:08:06]Read from MH i2c: E2 0E 00 [16:08:06]MH_I2C_Read... [16:08:06]Read from MH i2c: E2 0E 00 70 06 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 3A [16:08:06]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [16:08:06]wFMCommunicate OK [16:08:06]SAM_PROTO_GetShiftState done [16:08:06]FM_GetShiftState done [16:08:06]req_shift_opened done [16:08:06]requested_item shift.open_date is exist - process it [16:08:06]req_shift_open_date [16:08:06]req_shift_open_date done [16:08:06]produce_requested_data done [16:08:06]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76871,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [16:08:06]process_action_free close_receipt [16:08:06]json_value_free [16:08:06]json_value_free done [16:08:06]process_json_proto returns [16:08:06]Send response to host [16:08:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76871,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [16:08:06]free response buf [16:08:06]execute_script done [16:08:06]execute_script returns [16:08:06]free content buf [16:08:06]Sock 7.Close socket [16:08:06]Sock 7.Thread stoped [16:08:10]OFD Sender: No OFD packet to send [16:08:15]OFD Sender: No OFD packet to send [16:08:20]OFD Sender: No OFD packet to send [16:08:25]OFD Sender: No OFD packet to send [16:08:30]OFD Sender: No OFD packet to send [16:08:35]OFD Sender: No OFD packet to send [16:08:40]OFD Sender: No OFD packet to send [16:08:45]OFD Sender: No OFD packet to send [16:08:50]OFD Sender: No OFD packet to send [16:08:55]OFD Sender: No OFD packet to send [16:09:00]OFD Sender: No OFD packet to send [16:09:05]OFD Sender: No OFD packet to send [16:09:10]OFD Sender: No OFD packet to send [16:09:15]OFD Sender: No OFD packet to send [16:09:20]OFD Sender: No OFD packet to send [16:09:25]OFD Sender: No OFD packet to send [16:09:30]OFD Sender: No OFD packet to send [16:09:35]OFD Sender: No OFD packet to send [16:09:40]OFD Sender: No OFD packet to send [16:09:45]OFD Sender: No OFD packet to send [16:09:50]OFD Sender: No OFD packet to send [16:09:55]OFD Sender: No OFD packet to send [16:10:00]OFD Sender: No OFD packet to send [16:10:05]OFD Sender: No OFD packet to send [16:10:10]OFD Sender: No OFD packet to send [16:10:15]OFD Sender: No OFD packet to send [16:10:20]OFD Sender: No OFD packet to send [16:10:25]OFD Sender: No OFD packet to send [16:10:30]OFD Sender: No OFD packet to send [16:10:35]OFD Sender: No OFD packet to send [16:10:40]OFD Sender: No OFD packet to send [16:10:45]OFD Sender: No OFD packet to send [16:10:50]OFD Sender: No OFD packet to send [16:10:55]OFD Sender: No OFD packet to send [16:11:00]OFD Sender: No OFD packet to send [16:11:05]OFD Sender: No OFD packet to send [16:11:10]OFD Sender: No OFD packet to send [16:11:15]OFD Sender: No OFD packet to send [16:11:20]OFD Sender: No OFD packet to send [16:11:25]OFD Sender: No OFD packet to send [16:11:30]OFD Sender: No OFD packet to send [16:11:35]OFD Sender: No OFD packet to send [16:11:40]OFD Sender: No OFD packet to send [16:11:45]OFD Sender: No OFD packet to send [16:11:50]OFD Sender: No OFD packet to send [16:11:55]OFD Sender: No OFD packet to send [16:12:00]OFD Sender: No OFD packet to send [16:12:05]OFD Sender: No OFD packet to send [16:12:10]OFD Sender: No OFD packet to send [16:12:15]OFD Sender: No OFD packet to send [16:12:20]OFD Sender: No OFD packet to send [16:12:25]OFD Sender: No OFD packet to send [16:12:30]OFD Sender: No OFD packet to send [16:12:35]OFD Sender: No OFD packet to send [16:12:40]OFD Sender: No OFD packet to send [16:12:45]OFD Sender: No OFD packet to send [16:12:50]OFD Sender: No OFD packet to send [16:12:55]OFD Sender: No OFD packet to send [16:13:00]OFD Sender: No OFD packet to send [16:13:05]OFD Sender: No OFD packet to send [16:13:10]OFD Sender: No OFD packet to send [16:13:15]OFD Sender: No OFD packet to send [16:13:20]OFD Sender: No OFD packet to send [16:13:25]OFD Sender: No OFD packet to send [16:13:30]OFD Sender: No OFD packet to send [16:13:35]OFD Sender: No OFD packet to send [16:13:40]OFD Sender: No OFD packet to send [16:13:45]OFD Sender: No OFD packet to send [16:13:50]OFD Sender: No OFD packet to send [16:13:55]OFD Sender: No OFD packet to send [16:14:00]OFD Sender: No OFD packet to send [16:14: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:55]OFD Sender: No OFD packet to send [16:16:00]OFD Sender: No OFD packet to send [16:16:05]OFD Sender: No OFD packet to send [16:16:10]OFD Sender: No OFD packet to send [16:16:15]OFD Sender: No OFD packet to send [16:16:20]OFD Sender: No OFD packet to send [16:16:25]OFD Sender: No OFD packet to send [16:16:30]OFD Sender: No OFD packet to send [16:16:35]OFD Sender: No OFD packet to send [16:16:40]OFD Sender: No OFD packet to send [16:16:45]OFD Sender: No OFD packet to send [16:16:50]OFD Sender: No OFD packet to send [16:16:55]OFD Sender: No OFD packet to send [16:17:00]OFD Sender: No OFD packet to send [16:17:05]OFD Sender: No OFD packet to send [16:17:10]OFD Sender: No OFD packet to send [16:17:15]OFD Sender: No OFD packet to send [16:17:20]OFD Sender: No OFD packet to send [16:17:25]OFD Sender: No OFD packet to send [16:17:30]OFD Sender: No OFD packet to send [16:17:35]OFD Sender: No OFD packet to send [16:17:40]OFD Sender: No OFD packet to send [16:17:45]OFD Sender: No OFD packet to send [16:17:50]OFD Sender: No OFD packet to send [16:17:55]OFD Sender: No OFD packet to send [16:18:00]OFD Sender: No OFD packet to send [16:18:05]OFD Sender: No OFD packet to send [16:18:10]OFD Sender: No OFD packet to send [16:18:15]OFD Sender: No OFD packet to send [16:18:20]OFD Sender: No OFD packet to send [16:18:25]OFD Sender: No OFD packet to send [16:18:30]OFD Sender: No OFD packet to send [16:18:35]OFD Sender: No OFD packet to send [16:18:40]OFD Sender: No OFD packet to send [16:18:45]OFD Sender: No OFD packet to send [16:18:50]OFD Sender: No OFD packet to send [16:18:55]OFD Sender: No OFD packet to send [16:19:00]OFD Sender: No OFD packet to send [16:19:05]OFD Sender: No OFD packet to send [16:19:10]OFD Sender: No OFD packet to send [16:19:15]OFD Sender: No OFD packet to send [16:19:20]OFD Sender: No OFD packet to send [16:19:25]OFD Sender: No OFD packet to send [16:19:31]OFD Sender: No OFD packet to send [16:19:36]OFD Sender: No OFD packet to send [16:19:41]OFD Sender: No OFD packet to send [16:19:46]OFD Sender: No OFD packet to send [16:19:51]OFD Sender: No OFD packet to send [16:19:56]OFD Sender: No OFD packet to send [16:20:01]OFD Sender: No OFD packet to send [16:20:06]OFD Sender: No OFD packet to send [16:20:11]OFD Sender: No OFD packet to send [16:20:16]OFD Sender: No OFD packet to send [16:20:21]OFD Sender: No OFD packet to send [16:20:26]OFD Sender: No OFD packet to send [16:20:31]OFD Sender: No OFD packet to send [16:20:36]OFD Sender: No OFD packet to send [16:20:41]OFD Sender: No OFD packet to send [16:20:46]OFD Sender: No OFD packet to send [16:20:51]OFD Sender: No OFD packet to send [16:20:56]OFD Sender: No OFD packet to send [16:21:01]OFD Sender: No OFD packet to send [16:21:06]OFD Sender: No OFD packet to send [16:21:11]OFD Sender: No OFD packet to send [16:21:16]OFD Sender: No OFD packet to send [16:21:21]OFD Sender: No OFD packet to send [16:21:26]OFD Sender: No OFD packet to send [16:21:31]OFD Sender: No OFD packet to send [16:21:36]OFD Sender: No OFD packet to send [16:21:41]OFD Sender: No OFD packet to send [16:21:46]OFD Sender: No OFD packet to send [16:21:51]OFD Sender: No OFD packet to send [16:21:56]OFD Sender: No OFD packet to send [16:22:01]OFD Sender: No OFD packet to send [16:22:06]OFD Sender: No OFD packet to send [16:22:11]OFD Sender: No OFD packet to send [16:22:16]OFD Sender: No OFD packet to send [16:22:21]OFD Sender: No OFD packet to send [16:22:26]OFD Sender: No OFD packet to send [16:22:31]OFD Sender: No OFD packet to send [16:22:36]OFD Sender: No OFD packet to send [16:22:41]OFD Sender: No OFD packet to send [16:22:46]OFD Sender: No OFD packet to send [16:22:51]OFD Sender: No OFD packet to send [16:22:56]OFD Sender: No OFD packet to send [16:23:01]OFD Sender: No OFD packet to send [16:23:06]OFD Sender: No OFD packet to send [16:23:11]OFD Sender: No OFD packet to send [16:23:16]OFD Sender: No OFD packet to send [16:23:21]OFD Sender: No OFD packet to send [16:23:26]OFD Sender: No OFD packet to send [16:23:26]accept exits with 9 [16:23:26]New connection [16:23:26]New thread 3067460964 created [16:23:26]Thread 3067317604 joined [16:23:26]Waiting for new connection... [16:23:26] Sock 9.Parse request [16:23:26]Sock 9.Check first char [16:23:26]Sock 9.First char is OK [16:23:26]request: POST /json_proto HTTP/1.0 [16:23:26]Method: POST [16:23:26]URL: /json_proto [16:23:26]Method is POST - this is cgi request [16:23:26]url: /json_proto [16:23:26]query_string will be loaded in cgi processing [16:23:26]execute_cgi json_proto POST (null) [16:23:26]execute_cgi path=json_proto method=POST [16:23:26]POST find Content-Length [16:23:26]Host: 172.17.62.5:8080 [16:23:26]Content-Length: 677 [16:23:26]Content-Type: application/json [16:23:26] [16:23:26]POST finish read [16:23:26]Found Content-Length = 677 [16:23:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191416", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:26]execute_script... [16:23: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)191416", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:26]POST & json_proto [16:23:26]process_json_proto [16:23:26]json parsed OK: [16:23:26]protocol is kg_v1.0 [16:23:26]action value=close_receipt [16:23:26]process_action close_receipt [16:23:26]cmd_close_receipt [16:23:26]MH_GetDate [16:23:26]Write to MH i2c: F0 00 00 71 06 66 [16:23:26]Write i2c OK [16:23:26]MH_I2C_Read... [16:23:26]Read from MH i2c: F0 [16:23:26]MH_I2C_Read... [16:23:26]Read from MH i2c: F0 09 00 [16:23:26]MH_I2C_Read... [16:23:26]Read from MH i2c: F0 09 00 71 06 00 7F 3D 25 66 F4 E9 65 64 5C [16:23:26]GetLastDocTimeStamp 1713715683 [16:23:26]current date 1713716607 [16:23:26]FM_GetShiftState [16:23:26]SAM_PROTO_GetShiftState [16:23:26]wFMCommunicate request_size=4 [16:23:26]MH_SAM_APDU [16:23:26]CAPDU: 80 13 01 00 [16:23:26]Write to MH i2c: E2 08 00 72 06 80 13 01 00 00 00 00 00 F5 [16:23:26]Write i2c OK [16:23:26]MH_I2C_Read... [16:23:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:26]Read from MH i2c: E2 [16:23:26]MH_I2C_Read... [16:23:26]Read from MH i2c: E2 0E 00 [16:23:26]MH_I2C_Read... [16:23:26]Read from MH i2c: E2 0E 00 72 06 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 3C [16:23:26]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [16:23:26]wFMCommunicate OK [16:23:26]SAM_PROTO_GetShiftState done [16:23:26]FM_GetShiftState done [16:23:26]opened in 1713658965 [16:23:26]opened+sec_in_day 1713745365 [16:23:26]quantity*price = 50038 [16:23:26]sum+1 = 50040 [16:23:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 128 21.04.2024 16:23 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76872 ФПД: 156448772018622 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T162327&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76872&fm=156448772018622&tin=02508201610067®Number=0000000000091573&sum=50000 [16:23:27]StoreToDocumentArchive [16:23:27]shift 372 fd 76872 [16:23:27]save to /storage/0372/doc_00076872 [16:23:27]save last doc name /storage/0372/doc_00076872 to /storage/kkm_last_doc_name [16:23:27]save OK [16:23:27]Clear old archive folders... [16:23:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:23:27]tlvbuf is 017E66A0 [16:23:27]SAM_PROTO_ClearQueue [16:23:27]wFMCommunicate request_size=4 [16:23:27]MH_SAM_APDU [16:23:27]CAPDU: 80 09 00 00 [16:23:27]Write to MH i2c: E2 08 00 7F 06 80 09 00 00 00 00 00 00 F7 [16:23:27]Write i2c OK [16:23:27]MH_I2C_Read... [16:23:27]Read from MH i2c: E2 [16:23:27]MH_I2C_Read... [16:23:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:23:27]Read from MH i2c: E2 03 00 [16:23:27]MH_I2C_Read... [16:23:27]Read from MH i2c: E2 03 00 7F 06 00 90 00 F9 [16:23:27]RAPDU: 90 00 [16:23:27]wFMCommunicate OK [16:23:27]SAM_PROTO_ClearQueue done [16:23:27]KKMCreateOFDPacket [16:23:27]OFDProtocolAddRootSTLVToBuf [16:23:27]FM_MakeSignedData [16:23:27]FM_MakeSignedData [16:23:27]SAM_PROTO_SignData [16:23:27]wFMCommunicate request_size=4 [16:23:27]MH_SAM_APDU [16:23:27]CAPDU: 80 0D 01 02 [16:23:27]Write to MH i2c: E2 08 00 80 06 80 0D 01 02 00 00 00 00 FF [16:23:27]Write i2c OK [16:23:27]MH_I2C_Read... [16:23:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:23:27]Read from MH i2c: E2 [16:23:27]MH_I2C_Read... [16:23:27]Read from MH i2c: E2 03 00 [16:23:27]MH_I2C_Read... [16:23:27]Read from MH i2c: E2 03 00 80 06 00 90 00 FA [16:23:27]RAPDU: 90 00 [16:23:27]wFMCommunicate OK [16:23:27]wFMCommunicate request_size=255 [16:23:27]MH_SAM_APDU [16:23: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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 7F 3D 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 48 2C 01 00 35 04 06 00 8E [16:23:27]Write to MH i2c: E2 02 01 81 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 7F 3D 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 48 2C 01 00 35 04 06 00 8E 00 00 F3 [16:23:27]Write i2c OK [16:23:27]MH_I2C_Read... [16:23:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:28]Read from MH i2c: E2 [16:23:28]MH_I2C_Read... [16:23:28]Read from MH i2c: E2 03 00 [16:23:28]MH_I2C_Read... [16:23:28]Read from MH i2c: E2 03 00 81 06 00 90 00 FB [16:23:28]RAPDU: 90 00 [16:23:28]wFMCommunicate OK [16:23:28]wFMCommunicate request_size=10 [16:23:28]MH_SAM_APDU [16:23:28]CAPDU: 80 0D 02 02 05 4A 11 7B 51 BE [16:23:28]Write to MH i2c: E2 0D 00 82 06 80 0D 02 02 05 00 4A 11 7B 51 BE 00 00 F1 [16:23:28]Write i2c OK [16:23:28]MH_I2C_Read... [16:23:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:28]Read from MH i2c: E2 [16:23:28]MH_I2C_Read... [16:23:28]Read from MH i2c: E2 03 00 [16:23:28]MH_I2C_Read... [16:23:28]Read from MH i2c: E2 03 00 82 06 00 90 00 FC [16:23:28]RAPDU: 90 00 [16:23:28]wFMCommunicate OK [16:23:28]wFMCommunicate request_size=4 [16:23:28]MH_SAM_APDU [16:23:28]CAPDU: 80 0D 03 02 [16:23:28]Write to MH i2c: E2 08 00 83 06 80 0D 03 02 00 00 00 00 04 [16:23:28]Write i2c OK [16:23:28]MH_I2C_Read... [16:23:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:23:28]Read from MH i2c: E2 [16:23:28]MH_I2C_Read... [16:23:28]Read from MH i2c: E2 0B 00 [16:23:28]MH_I2C_Read... [16:23:28]Read from MH i2c: E2 0B 00 83 06 00 2F DC D4 B1 4E 20 11 C9 90 00 DD [16:23:28]RAPDU: 2F DC D4 B1 4E 20 11 C9 90 00 [16:23:28]wFMCommunicate OK [16:23:28]SAM_PROTO_SignData done [16:23:28]FM_MakeSignedData done [16:23:28]CreateOFDProtocolMessage [16:23:28]wFMCommunicate request_size=4 [16:23:28]MH_SAM_APDU [16:23:28]CAPDU: 80 11 00 00 [16:23:28]Write to MH i2c: E2 08 00 84 06 80 11 00 00 00 00 00 00 04 [16:23:28]Write i2c OK [16:23:28]MH_I2C_Read... [16:23:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:28]Read from MH i2c: E2 [16:23:28]MH_I2C_Read... [16:23:28]Read from MH i2c: E2 17 00 [16:23:28]MH_I2C_Read... [16:23:28]Read from MH i2c: E2 17 00 84 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 57 [16:23:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:23:28]wFMCommunicate OK [16:23:28]CreateOFDProtocolMessage done [16:23:28]OFDSenderStorePacket 76872 [16:23:28]StoreOFDPacket docnum=76872 [16:23:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 04 2F 07 01 08 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 7F 3D 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 48 2C 01 00 35 04 06 00 8E 4A 11 7B 51 BE 2F DC D4 B1 4E 20 11 C9 [16:23:28]CheckFolder [16:23:28]dirname=/storage/ofd_packets [16:23:28]CheckFolder done [16:23:28]ProducePacketName [16:23:28]name=ofd_packets/00076872 [16:23:28]NVStorageSaveData ofd_packets/00076872 [16:23:28]File name is /storage/ofd_packets/00076872 [16:23:28]Write 301 bytes [16:23:28]NVStorageSaveData done [16:23:28]OFDSenderStorePacket done [16:23:28]KKMCreateOFDPacket done [16:23:28]NVStorageSaveData kkm_last_timestamp [16:23:28]File name is /storage/kkm_last_timestamp [16:23:28]Write 4 bytes [16:23:28]NVStorageSaveData done [16:23:28]ExternCall_PrintAddStr [16:23:28]wPrintStart [16:23:28]Write to MH i2c: 01 00 00 85 06 8B [16:23:28]Write i2c OK [16:23:28]MH_I2C_Read... [16:23:28]Read from MH i2c: 01 [16:23:28]MH_I2C_Read... [16:23:28]Read from MH i2c: 01 07 00 [16:23:28]MH_I2C_Read... [16:23:28]Read from MH i2c: 01 07 00 85 06 00 00 00 00 00 FF 0F A0 [16:23:28]RasterBufferAndPrint [16:23:28]line Счет N : (1)191416 [16:23:28]line ИНН: 02508201610067 [16:23:28]line Контрольно-Кассовый Чек [16:23:28]line ПРОДАЖА [16:23:28]line ТРК (МРК, ГНК) : 22 [16:23:28]line Товар: 2710124130 [16:23:28]line Аи-92-К-5 [16:23:28]line 7.770 * 64.40 [16:23:28]line = 500.39 [16:23:28]line НДС 12% НСП 1% [16:23:28]line > о реализуемом товаре [16:23:28]line ОКРУГЛЕНИЕ: -0.39 [16:23:28]line ИТОГО: 500.00 [16:23:28]line Внесено: 500.00 [16:23:28]line СДАЧА: 0.00 [16:23:28]line НСП 1% : 4.43 [16:23:28]line НДС 12% : 53.14 [16:23:28]line Наличными: 500.00 [16:23:28]line Безнал.: 0.00 [16:23:28]line Место: АЗС № 106 "Партнер Нефть" [16:23:28]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [16:23:28]line СНО: Общий режим [16:23:28]line Чек 128 21.04.2024 16:23 [16:23:28]line Смена: 372 ФФД: 1.0 [16:23:28]line ЗНМ: 0300000141 [16:23:28]line РНМ: 0000000000091573 [16:23:28]line Версия ККМ: 001 [16:23:28]line ФМ: 0000000000874652 [16:23:28]line ФД: 76872 [16:23:28]line ФПД: 156448772018622 [16:23:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T162327&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76872&fm=156448772018622&tin=02508201610067®Number=0000000000091573&sum=50000 [16:23:28]OFD Sender: Processing packet 76872 [packets to send 129, broken 128] [16:23:28]ProducePacketName [16:23:28]name=ofd_packets/00076872 [16:23:28]OFD Sender: To server: pG, [16:23:28]CommunicateWithHost lk.salyk.kg:30040 [16:23:28]ConnectInit lk.salyk.kg [16:23:28]written 0, free lines is 4095 [16:23:28]Connected sock=7 [16:23:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 04 2F 07 01 08 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 7F 3D 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 48 2C 01 00 35 04 06 00 8E 4A 11 7B 51 BE 2F DC D4 B1 4E 20 11 C9 [16:23:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 21 C6 47 00 7C A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 48 2C 01 00 F4 03 04 00 04 E5 24 66 B6 04 01 00 00 72 0B A3 73 D9 4E 86 D1 [16:23:28]CommunicateWithHost err = 0 [16:23:28]CheckOFDResponse [16:23:28]1017 (14) - 77093643461234 [16:23:28]1041 (16) - 0000000000874652 [16:23:28]1040 (4) - 76872 [16:23:28]1012 (4) - 21.04.2024 10:05 [16:23:28]1206 (1) - 0 [16:23:28]OFD Sender: Remove packet 76872 [16:23:28]ProducePacketName [16:23:28]name=ofd_packets/00076872 [16:23:28]NVStorageDeleteData [16:23:28]Write to MH i2c: 01 00 00 AF 06 B5 [16:23:28]Write i2c OK [16:23:28]MH_I2C_Read... [16:23:28]Read from MH i2c: 01 [16:23:28]MH_I2C_Read... [16:23:28]Read from MH i2c: 01 07 00 [16:23:28]MH_I2C_Read... [16:23:28]Read from MH i2c: 01 07 00 AF 06 00 00 00 00 00 FA 0C C2 [16:23:28]RasterBufferAndPrint [16:23:28]line [16:23:28]line [16:23:28]line [16:23:28]line [16:23:28]line [16:23:28]written 0, free lines is 3328 [16:23:28]MH_Cut [16:23:28]Write to MH i2c: D1 01 00 B6 06 01 8E [16:23:28]Write i2c OK [16:23:28]MH_I2C_Read... [16:23:28]Read from MH i2c: D1 [16:23:28]MH_I2C_Read... [16:23:28]Read from MH i2c: D1 01 00 [16:23:28]MH_I2C_Read... [16:23:28]Read from MH i2c: D1 01 00 B6 06 00 8D [16:23:28]Write to MH i2c: 01 00 00 B7 06 BD [16:23:28]Write i2c OK [16:23:28]MH_I2C_Read... [16:23:29]OFD Sender: No OFD packet to send [16:23:29]*** Cut start [16:23:29]*** Partial cut [16:23:29]*** CUTSNS_PIN = 1 [16:23:29]*** CUTSNS_PIN = 0 [16:23:29]*** Brake cut motor [16:23:30]Read from MH i2c: 01 [16:23:30]MH_I2C_Read... [16:23:30]*** Stop cut motor [16:23:30]*** Cut end [16:23:30]Read from MH i2c: 01 07 00 [16:23:30]MH_I2C_Read... [16:23:30]Read from MH i2c: 01 07 00 B7 06 00 00 00 00 00 FF 0F D2 [16:23:30]process_action close_receipt done [16:23:30]requested_data is exist [16:23:30]produce_requested_data [16:23:30]requested_item fm.sn is exist - process it [16:23:30]wFMCommunicate request_size=4 [16:23:30]MH_SAM_APDU [16:23:30]CAPDU: 80 11 00 00 [16:23:30]Write to MH i2c: E2 08 00 B8 06 80 11 00 00 00 00 00 00 38 [16:23:30]Write i2c OK [16:23:30]MH_I2C_Read... [16:23:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:30]Read from MH i2c: E2 [16:23:30]MH_I2C_Read... [16:23:30]Read from MH i2c: E2 17 00 [16:23:30]MH_I2C_Read... [16:23:30]Read from MH i2c: E2 17 00 B8 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 8B [16:23:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:23:30]wFMCommunicate OK [16:23:30]requested_item fd.num is exist - process it [16:23:30]SAM_PROTO_GetFieldsCounters [16:23:30]wFMCommunicate request_size=4 [16:23:30]MH_SAM_APDU [16:23:30]CAPDU: 80 13 00 00 [16:23:30]Write to MH i2c: E2 08 00 B9 06 80 13 00 00 00 00 00 00 3B [16:23:30]Write i2c OK [16:23:30]MH_I2C_Read... [16:23:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:23:30]Read from MH i2c: E2 [16:23:30]MH_I2C_Read... [16:23:30]Read from MH i2c: E2 62 00 [16:23:30]MH_I2C_Read... [16:23:30]Read from MH i2c: E2 62 00 B9 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 48 2C 01 00 0E 04 04 00 74 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 C6 [16:23: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 48 2C 01 00 0E 04 04 00 74 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 [16:23:30]wFMCommunicate OK [16:23:30]SAM_PROTO_GetFieldsCounters done [16:23:30]requested_item shift.num is exist - process it [16:23:30]requested_item shift.opened is exist - process it [16:23:30]req_shift_opened [16:23:30]FM_GetShiftState [16:23:30]SAM_PROTO_GetShiftState [16:23:30]wFMCommunicate request_size=4 [16:23:30]MH_SAM_APDU [16:23:30]CAPDU: 80 13 01 00 [16:23:30]Write to MH i2c: E2 08 00 BA 06 80 13 01 00 00 00 00 00 3D [16:23:30]Write i2c OK [16:23:30]MH_I2C_Read... [16:23:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:30]Read from MH i2c: E2 [16:23:30]MH_I2C_Read... [16:23:30]Read from MH i2c: E2 0E 00 [16:23:30]MH_I2C_Read... [16:23:30]Read from MH i2c: E2 0E 00 BA 06 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 84 [16:23:30]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [16:23:30]wFMCommunicate OK [16:23:30]SAM_PROTO_GetShiftState done [16:23:30]FM_GetShiftState done [16:23:30]req_shift_opened done [16:23:30]requested_item shift.open_date is exist - process it [16:23:30]req_shift_open_date [16:23:30]req_shift_open_date done [16:23:30]produce_requested_data done [16:23:30]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76872,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [16:23:30]process_action_free close_receipt [16:23:30]json_value_free [16:23:30]json_value_free done [16:23:30]process_json_proto returns [16:23:30]Send response to host [16:23:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76872,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [16:23:30]free response buf [16:23:30]execute_script done [16:23:30]execute_script returns [16:23:30]free content buf [16:23:30]Sock 9.Close socket [16:23:30]Sock 9.Thread stoped [16:23:34]OFD Sender: No OFD packet to send [16:23:39]OFD Sender: No OFD packet to send [16:23:44]OFD Sender: No OFD packet to send [16:23:49]OFD Sender: No OFD packet to send [16:23:54]OFD Sender: No OFD packet to send [16:23:59]OFD Sender: No OFD packet to send [16:24:04]OFD Sender: No OFD packet to send [16:24:09]OFD Sender: No OFD packet to send [16:24:14]OFD Sender: No OFD packet to send [16:24:19]OFD Sender: No OFD packet to send [16:24:24]OFD Sender: No OFD packet to send [16:24:29]OFD Sender: No OFD packet to send [16:24:34]OFD Sender: No OFD packet to send [16:24:39]OFD Sender: No OFD packet to send [16:24:44]OFD Sender: No OFD packet to send [16:24:49]OFD Sender: No OFD packet to send [16:24:54]OFD Sender: No OFD packet to send [16:24:59]OFD Sender: No OFD packet to send [16:25:04]OFD Sender: No OFD packet to send [16:25:09]OFD Sender: No OFD packet to send [16:25:14]OFD Sender: No OFD packet to send [16:25:19]OFD Sender: No OFD packet to send [16:25:24]OFD Sender: No OFD packet to send [16:25:29]OFD Sender: No OFD packet to send [16:25:34]OFD Sender: No OFD packet to send [16:25:39]OFD Sender: No OFD packet to send [16:25:44]OFD Sender: No OFD packet to send [16:25:49]OFD Sender: No OFD packet to send [16:25:51]accept exits with 10 [16:25:51]New connection [16:25:52]New thread 3067317604 created [16:25:52]Thread 3067460964 joined [16:25:52]Waiting for new connection... [16:25:52] Sock 10.Parse request [16:25:52]Sock 10.Check first char [16:25:52]Sock 10.First char is OK [16:25:52]request: POST /json_proto HTTP/1.0 [16:25:52]Method: POST [16:25:52]URL: /json_proto [16:25:52]Method is POST - this is cgi request [16:25:52]url: /json_proto [16:25:52]query_string will be loaded in cgi processing [16:25:52]execute_cgi json_proto POST (null) [16:25:52]execute_cgi path=json_proto method=POST [16:25:52]POST find Content-Length [16:25:52]Host: 172.17.62.5:8080 [16:25:52]Content-Length: 990 [16:25:52]Content-Type: application/json [16:25:52] [16:25:52]POST finish read [16:25:52]Found Content-Length = 990 [16:25:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191415", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 48.430, "sum" : 1535.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 48.43 \u0441\u043E\u043C", "deposit" : 3000.00, "total" : 1535.00, "payments": [ { "type": 0, "sum" : 1535.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:52]execute_script... [16:25: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)191415", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 48.430, "sum" : 1535.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 48.43 \u0441\u043E\u043C", "deposit" : 3000.00, "total" : 1535.00, "payments": [ { "type": 0, "sum" : 1535.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:52]POST & json_proto [16:25:52]process_json_proto [16:25:52]json parsed OK: [16:25:52]protocol is kg_v1.0 [16:25:52]action value=close_receipt [16:25:52]process_action close_receipt [16:25:52]cmd_close_receipt [16:25:52]MH_GetDate [16:25:52]Write to MH i2c: F0 00 00 BB 06 B0 [16:25:52]Write i2c OK [16:25:52]MH_I2C_Read... [16:25:52]Read from MH i2c: F0 [16:25:52]MH_I2C_Read... [16:25:52]Read from MH i2c: F0 09 00 [16:25:52]MH_I2C_Read... [16:25:52]Read from MH i2c: F0 09 00 BB 06 00 11 3E 25 66 F4 E9 65 64 39 [16:25:52]GetLastDocTimeStamp 1713716607 [16:25:52]current date 1713716753 [16:25:52]FM_GetShiftState [16:25:52]SAM_PROTO_GetShiftState [16:25:52]wFMCommunicate request_size=4 [16:25:52]MH_SAM_APDU [16:25:52]CAPDU: 80 13 01 00 [16:25:52]Write to MH i2c: E2 08 00 BC 06 80 13 01 00 00 00 00 00 3F [16:25:52]Write i2c OK [16:25:52]MH_I2C_Read... [16:25:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:52]Read from MH i2c: E2 [16:25:52]MH_I2C_Read... [16:25:52]Read from MH i2c: E2 0E 00 [16:25:52]MH_I2C_Read... [16:25:52]Read from MH i2c: E2 0E 00 BC 06 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 86 [16:25:52]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [16:25:52]wFMCommunicate OK [16:25:52]SAM_PROTO_GetShiftState done [16:25:52]FM_GetShiftState done [16:25:52]opened in 1713658965 [16:25:52]opened+sec_in_day 1713745365 [16:25:52]quantity*price = 153523 [16:25:52]sum+1 = 153524 [16:25:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 1535.00 Внесено: 3000.00 СДАЧА: 1465.00 НСП 1% : 13.59 НДС 12% : 163.03 Наличными: 1535.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 129 21.04.2024 16:25 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 48.43 сом ФМ: 0000000000874652 ФД: 76873 ФПД: 53976085502164 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T162553&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76873&fm=53976085502164&tin=02508201610067®Number=0000000000091573&sum=153500 [16:25:53]StoreToDocumentArchive [16:25:53]shift 372 fd 76873 [16:25:53]save to /storage/0372/doc_00076873 [16:25:53]save last doc name /storage/0372/doc_00076873 to /storage/kkm_last_doc_name [16:25:53]save OK [16:25:53]Clear old archive folders... [16:25:53]ProcessDocumentItem done err = 0, tmpTLVsize=250 [16:25:53]tlvbuf is 017E8560 [16:25:53]SAM_PROTO_ClearQueue [16:25:53]wFMCommunicate request_size=4 [16:25:53]MH_SAM_APDU [16:25:53]CAPDU: 80 09 00 00 [16:25:53]Write to MH i2c: E2 08 00 C9 06 80 09 00 00 00 00 00 00 41 [16:25:53]Write i2c OK [16:25:53]MH_I2C_Read... [16:25:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:25:53]Read from MH i2c: E2 [16:25:53]MH_I2C_Read... [16:25:53]Read from MH i2c: E2 03 00 [16:25:53]MH_I2C_Read... [16:25:53]Read from MH i2c: E2 03 00 C9 06 00 90 00 43 [16:25:53]RAPDU: 90 00 [16:25:53]wFMCommunicate OK [16:25:53]SAM_PROTO_ClearQueue done [16:25:53]KKMCreateOFDPacket [16:25:53]OFDProtocolAddRootSTLVToBuf [16:25:53]FM_MakeSignedData [16:25:53]FM_MakeSignedData [16:25:53]SAM_PROTO_SignData [16:25:53]wFMCommunicate request_size=4 [16:25:53]MH_SAM_APDU [16:25:53]CAPDU: 80 0D 01 02 [16:25:53]Write to MH i2c: E2 08 00 CA 06 80 0D 01 02 00 00 00 00 49 [16:25:53]Write i2c OK [16:25:53]MH_I2C_Read... [16:25:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:25:53]Read from MH i2c: E2 [16:25:53]MH_I2C_Read... [16:25:53]Read from MH i2c: E2 03 00 [16:25:53]MH_I2C_Read... [16:25:53]Read from MH i2c: E2 03 00 CA 06 00 90 00 44 [16:25:53]RAPDU: 90 00 [16:25:53]wFMCommunicate OK [16:25:53]wFMCommunicate request_size=255 [16:25:53]MH_SAM_APDU [16:25:53]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 2E BD 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 B3 57 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 57 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 3F 00 00 00 00 07 04 06 00 9C 57 02 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 11 3E 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 49 2C 01 00 35 04 06 00 31 17 [16:25:53]Write to MH i2c: E2 02 01 CB 06 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 2E BD 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 B3 57 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 57 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 3F 00 00 00 00 07 04 06 00 9C 57 02 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 11 3E 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 49 2C 01 00 35 04 06 00 31 17 00 00 19 [16:25:53]Write i2c OK [16:25:53]MH_I2C_Read... [16:25:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:53]Read from MH i2c: E2 [16:25:53]MH_I2C_Read... [16:25:53]Read from MH i2c: E2 03 00 [16:25:53]MH_I2C_Read... [16:25:53]Read from MH i2c: E2 03 00 CB 06 00 90 00 45 [16:25:53]RAPDU: 90 00 [16:25:53]wFMCommunicate OK [16:25:53]wFMCommunicate request_size=9 [16:25:53]MH_SAM_APDU [16:25:53]CAPDU: 80 0D 02 02 04 49 67 18 D4 [16:25:53]Write to MH i2c: E2 0C 00 CC 06 80 0D 02 02 04 00 49 67 18 D4 00 00 F0 [16:25:53]Write i2c OK [16:25:53]MH_I2C_Read... [16:25:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:53]Read from MH i2c: E2 [16:25:53]MH_I2C_Read... [16:25:53]Read from MH i2c: E2 03 00 [16:25:53]MH_I2C_Read... [16:25:53]Read from MH i2c: E2 03 00 CC 06 00 90 00 46 [16:25:53]RAPDU: 90 00 [16:25:53]wFMCommunicate OK [16:25:53]wFMCommunicate request_size=4 [16:25:53]MH_SAM_APDU [16:25:53]CAPDU: 80 0D 03 02 [16:25:53]Write to MH i2c: E2 08 00 CD 06 80 0D 03 02 00 00 00 00 4E [16:25:53]Write i2c OK [16:25:53]MH_I2C_Read... [16:25:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:25:53]Read from MH i2c: E2 [16:25:53]MH_I2C_Read... [16:25:53]Read from MH i2c: E2 0B 00 [16:25:53]MH_I2C_Read... [16:25:53]Read from MH i2c: E2 0B 00 CD 06 00 9F 6C BF B0 6E 76 24 21 90 00 F2 [16:25:53]RAPDU: 9F 6C BF B0 6E 76 24 21 90 00 [16:25:53]wFMCommunicate OK [16:25:53]SAM_PROTO_SignData done [16:25:53]FM_MakeSignedData done [16:25:53]CreateOFDProtocolMessage [16:25:53]wFMCommunicate request_size=4 [16:25:53]MH_SAM_APDU [16:25:53]CAPDU: 80 11 00 00 [16:25:53]Write to MH i2c: E2 08 00 CE 06 80 11 00 00 00 00 00 00 4E [16:25:53]Write i2c OK [16:25:53]MH_I2C_Read... [16:25:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:53]Read from MH i2c: E2 [16:25:53]MH_I2C_Read... [16:25:53]Read from MH i2c: E2 17 00 [16:25:53]MH_I2C_Read... [16:25:53]Read from MH i2c: E2 17 00 CE 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 A1 [16:25:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:25:53]wFMCommunicate OK [16:25:53]CreateOFDProtocolMessage done [16:25:53]OFDSenderStorePacket 76873 [16:25:53]StoreOFDPacket docnum=76873 [16:25:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 FB C3 06 01 42 2F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 2E BD 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 B3 57 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 57 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 3F 00 00 00 00 07 04 06 00 9C 57 02 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 11 3E 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 49 2C 01 00 35 04 06 00 31 17 49 67 18 D4 9F 6C BF B0 6E 76 24 21 [16:25:53]CheckFolder [16:25:53]dirname=/storage/ofd_packets [16:25:53]CheckFolder done [16:25:53]ProducePacketName [16:25:53]name=ofd_packets/00076873 [16:25:53]NVStorageSaveData ofd_packets/00076873 [16:25:53]File name is /storage/ofd_packets/00076873 [16:25:53]Write 300 bytes [16:25:53]NVStorageSaveData done [16:25:53]OFDSenderStorePacket done [16:25:53]KKMCreateOFDPacket done [16:25:53]NVStorageSaveData kkm_last_timestamp [16:25:53]File name is /storage/kkm_last_timestamp [16:25:53]Write 4 bytes [16:25:53]NVStorageSaveData done [16:25:53]ExternCall_PrintAddStr [16:25:53]wPrintStart [16:25:53]Write to MH i2c: 01 00 00 CF 06 D5 [16:25:53]Write i2c OK [16:25:53]MH_I2C_Read... [16:25:53]Read from MH i2c: 01 [16:25:53]MH_I2C_Read... [16:25:53]Read from MH i2c: 01 07 00 [16:25:53]MH_I2C_Read... [16:25:53]Read from MH i2c: 01 07 00 CF 06 00 00 00 00 00 FF 0F EA [16:25:53]RasterBufferAndPrint [16:25:53]line Счет N : (1)191415 [16:25:53]line ИНН: 02508201610067 [16:25:53]line Контрольно-Кассовый Чек [16:25:53]line ПРОДАЖА [16:25:53]line ТРК (МРК, ГНК) : 71 [16:25:53]line Товар: 2711190000 [16:25:53]line ГАЗ-К-5 [16:25:53]line 48.430 * 31.70 [16:25:53]line = 1535.23 [16:25:53]line НДС 12% НСП 1% [16:25:53]line > о реализуемом товаре [16:25:53]line ОКРУГЛЕНИЕ: -0.23 [16:25:53]line ИТОГО: 1535.00 [16:25:53]line Внесено: 3000.00 [16:25:53]line СДАЧА: 1465.00 [16:25:53]line НСП 1% : 13.59 [16:25:53]line НДС 12% : 163.03 [16:25:53]line Наличными: 1535.00 [16:25:53]line Безнал.: 0.00 [16:25:53]line Место: АЗС № 106 "Партнер Нефть" [16:25:53]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [16:25:53]line СНО: Общий режим [16:25:53]line Чек 129 21.04.2024 16:25 [16:25:53]line Смена: 372 ФФД: 1.0 [16:25:53]line ЗНМ: 0300000141 [16:25:53]line РНМ: 0000000000091573 [16:25:53]line Версия ККМ: 001 [16:25:53]line [16:25:53]line Дисконтная программа [16:25:53]line СУГ [16:25:53]line номер 106 [16:25:53]line сэкономлено 48.43 сом [16:25:53]line ФМ: 0000000000874652 [16:25:53]line ФД: 76873 [16:25:53]line ФПД: 53976085502164 [16:25:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T162553&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76873&fm=53976085502164&tin=02508201610067®Number=0000000000091573&sum=153500 [16:25:54]OFD Sender: Processing packet 76873 [packets to send 129, broken 128] [16:25:54]ProducePacketName [16:25:54]name=ofd_packets/00076873 [16:25:54]OFD Sender: To server: pG, [16:25:54]CommunicateWithHost lk.salyk.kg:30040 [16:25:54]ConnectInit lk.salyk.kg [16:25:54]written 0, free lines is 4095 [16:25:54]Connected sock=9 [16:25:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 FB C3 06 01 42 2F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 2E BD 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 B3 57 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 57 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 3F 00 00 00 00 07 04 06 00 9C 57 02 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 11 3E 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 49 2C 01 00 35 04 06 00 31 17 49 67 18 D4 9F 6C BF B0 6E 76 24 21 [16:25:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 2E 7D 47 00 A5 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 49 2C 01 00 F4 03 04 00 96 E5 24 66 B6 04 01 00 00 22 E1 3F AC F5 0A 0D 5F [16:25:54]CommunicateWithHost err = 0 [16:25:54]CheckOFDResponse [16:25:54]1017 (14) - 77093643461234 [16:25:54]1041 (16) - 0000000000874652 [16:25:54]1040 (4) - 76873 [16:25:54]1012 (4) - 21.04.2024 10:08 [16:25:54]1206 (1) - 0 [16:25:54]OFD Sender: Remove packet 76873 [16:25:54]ProducePacketName [16:25:54]name=ofd_packets/00076873 [16:25:54]NVStorageDeleteData [16:25:54]Write to MH i2c: 01 00 00 FE 06 04 [16:25:54]Write i2c OK [16:25:54]MH_I2C_Read... [16:25:54]Read from MH i2c: 01 [16:25:54]MH_I2C_Read... [16:25:54]Read from MH i2c: 01 07 00 [16:25:54]MH_I2C_Read... [16:25:54]Read from MH i2c: 01 07 00 FE 06 00 00 00 00 00 94 0C AB [16:25:54]RasterBufferAndPrint [16:25:54]line [16:25:54]line [16:25:54]line [16:25:54]line [16:25:54]line [16:25:54]written 0, free lines is 3226 [16:25:54]MH_Cut [16:25:54]Write to MH i2c: D1 01 00 05 07 01 DE [16:25:54]Write i2c OK [16:25:54]MH_I2C_Read... [16:25:54]Read from MH i2c: D1 [16:25:54]MH_I2C_Read... [16:25:54]Read from MH i2c: D1 01 00 [16:25:54]MH_I2C_Read... [16:25:54]Read from MH i2c: D1 01 00 05 07 00 DD [16:25:54]Write to MH i2c: 01 00 00 06 07 0D [16:25:54]Write i2c OK [16:25:54]MH_I2C_Read... [16:25:54]OFD Sender: No OFD packet to send [16:25:55]*** Cut start [16:25:55]*** Partial cut [16:25:55]*** CUTSNS_PIN = 1 [16:25:55]*** CUTSNS_PIN = 0 [16:25:55]*** Brake cut motor [16:25:55]Read from MH i2c: 01 [16:25:55]MH_I2C_Read... [16:25:55]*** Stop cut motor [16:25:55]*** Cut end [16:25:55]Read from MH i2c: 01 07 00 [16:25:55]MH_I2C_Read... [16:25:55]Read from MH i2c: 01 07 00 06 07 00 00 00 00 00 FF 0F 22 [16:25:55]process_action close_receipt done [16:25:55]requested_data is exist [16:25:55]produce_requested_data [16:25:55]requested_item fm.sn is exist - process it [16:25:55]wFMCommunicate request_size=4 [16:25:55]MH_SAM_APDU [16:25:55]CAPDU: 80 11 00 00 [16:25:55]Write to MH i2c: E2 08 00 07 07 80 11 00 00 00 00 00 00 88 [16:25:55]Write i2c OK [16:25:55]MH_I2C_Read... [16:25:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:56]Read from MH i2c: E2 [16:25:56]MH_I2C_Read... [16:25:56]Read from MH i2c: E2 17 00 [16:25:56]MH_I2C_Read... [16:25:56]Read from MH i2c: E2 17 00 07 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 DB [16:25:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:25:56]wFMCommunicate OK [16:25:56]requested_item fd.num is exist - process it [16:25:56]SAM_PROTO_GetFieldsCounters [16:25:56]wFMCommunicate request_size=4 [16:25:56]MH_SAM_APDU [16:25:56]CAPDU: 80 13 00 00 [16:25:56]Write to MH i2c: E2 08 00 08 07 80 13 00 00 00 00 00 00 8B [16:25:56]Write i2c OK [16:25:56]MH_I2C_Read... [16:25:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:25:56]Read from MH i2c: E2 [16:25:56]MH_I2C_Read... [16:25:56]Read from MH i2c: E2 62 00 [16:25:56]MH_I2C_Read... [16:25:56]Read from MH i2c: E2 62 00 08 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 49 2C 01 00 0E 04 04 00 74 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 1A [16:25: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 49 2C 01 00 0E 04 04 00 74 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 [16:25:56]wFMCommunicate OK [16:25:56]SAM_PROTO_GetFieldsCounters done [16:25:56]requested_item shift.num is exist - process it [16:25:56]requested_item shift.opened is exist - process it [16:25:56]req_shift_opened [16:25:56]FM_GetShiftState [16:25:56]SAM_PROTO_GetShiftState [16:25:56]wFMCommunicate request_size=4 [16:25:56]MH_SAM_APDU [16:25:56]CAPDU: 80 13 01 00 [16:25:56]Write to MH i2c: E2 08 00 09 07 80 13 01 00 00 00 00 00 8D [16:25:56]Write i2c OK [16:25:56]MH_I2C_Read... [16:25:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:56]Read from MH i2c: E2 [16:25:56]MH_I2C_Read... [16:25:56]Read from MH i2c: E2 0E 00 [16:25:56]MH_I2C_Read... [16:25:56]Read from MH i2c: E2 0E 00 09 07 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 D4 [16:25:56]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [16:25:56]wFMCommunicate OK [16:25:56]SAM_PROTO_GetShiftState done [16:25:56]FM_GetShiftState done [16:25:56]req_shift_opened done [16:25:56]requested_item shift.open_date is exist - process it [16:25:56]req_shift_open_date [16:25:56]req_shift_open_date done [16:25:56]produce_requested_data done [16:25:56]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76873,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [16:25:56]process_action_free close_receipt [16:25:56]json_value_free [16:25:56]json_value_free done [16:25:56]process_json_proto returns [16:25:56]Send response to host [16:25:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76873,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [16:25:56]free response buf [16:25:56]execute_script done [16:25:56]execute_script returns [16:25:56]free content buf [16:25:56]Sock 10.Close socket [16:25:56]Sock 10.Thread stoped [16:25:59]OFD Sender: No OFD packet to send [16:26:04]OFD Sender: No OFD packet to send [16:26:09]OFD Sender: No OFD packet to send [16:26:14]OFD Sender: No OFD packet to send [16:26:19]OFD Sender: No OFD packet to send [16:26:24]OFD Sender: No OFD packet to send [16:26:29]OFD Sender: No OFD packet to send [16:26:34]OFD Sender: No OFD packet to send [16:26:39]OFD Sender: No OFD packet to send [16:26:44]OFD Sender: No OFD packet to send [16:26:49]OFD Sender: No OFD packet to send [16:26:54]OFD Sender: No OFD packet to send [16:26:59]OFD Sender: No OFD packet to send [16:27:04]OFD Sender: No OFD packet to send [16:27:09]OFD Sender: No OFD packet to send [16:27:14]OFD Sender: No OFD packet to send [16:27:19]OFD Sender: No OFD packet to send [16:27:24]OFD Sender: No OFD packet to send [16:27:30]OFD Sender: No OFD packet to send [16:27:35]OFD Sender: No OFD packet to send [16:27:40]OFD Sender: No OFD packet to send [16:27:45]OFD Sender: No OFD packet to send [16:27:50]OFD Sender: No OFD packet to send [16:27:55]OFD Sender: No OFD packet to send [16:28:00]OFD Sender: No OFD packet to send [16:28:05]OFD Sender: No OFD packet to send [16:28:10]OFD Sender: No OFD packet to send [16:28:15]OFD Sender: No OFD packet to send [16:28:20]OFD Sender: No OFD packet to send [16:28:25]OFD Sender: No OFD packet to send [16:28:30]OFD Sender: No OFD packet to send [16:28:35]OFD Sender: No OFD packet to send [16:28:40]OFD Sender: No OFD packet to send [16:28:45]OFD Sender: No OFD packet to send [16:28:50]OFD Sender: No OFD packet to send [16:28:55]OFD Sender: No OFD packet to send [16:29:00]OFD Sender: No OFD packet to send [16:29:05]OFD Sender: No OFD packet to send [16:29:10]OFD Sender: No OFD packet to send [16:29:12]accept exits with 7 [16:29:12]New connection [16:29:12]New thread 3067460964 created [16:29:12]Thread 3067317604 joined [16:29:12]Waiting for new connection... [16:29:12] Sock 7.Parse request [16:29:12]Sock 7.Check first char [16:29:12]Sock 7.First char is OK [16:29:12]request: POST /json_proto HTTP/1.0 [16:29:12]Method: POST [16:29:12]URL: /json_proto [16:29:12]Method is POST - this is cgi request [16:29:12]url: /json_proto [16:29:12]query_string will be loaded in cgi processing [16:29:12]execute_cgi json_proto POST (null) [16:29:12]execute_cgi path=json_proto method=POST [16:29:12]POST find Content-Length [16:29:12]Host: 172.17.62.5:8080 [16:29:12]Content-Length: 640 [16:29:12]Content-Type: application/json [16:29:12] [16:29:12]POST finish read [16:29:12]Found Content-Length = 640 [16:29:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 10.000, "sum" : 644.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 644.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:12]execute_script... [16:29: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)191419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 10.000, "sum" : 644.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 644.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:12]POST & json_proto [16:29:12]process_json_proto [16:29:12]json parsed OK: [16:29:12]protocol is kg_v1.0 [16:29:12]action value=close_receipt [16:29:12]process_action close_receipt [16:29:12]cmd_close_receipt [16:29:12]MH_GetDate [16:29:12]Write to MH i2c: F0 00 00 0A 07 00 [16:29:12]Write i2c OK [16:29:12]MH_I2C_Read... [16:29:12]Read from MH i2c: F0 [16:29:12]MH_I2C_Read... [16:29:12]Read from MH i2c: F0 09 00 [16:29:12]MH_I2C_Read... [16:29:12]Read from MH i2c: F0 09 00 0A 07 00 DA 3E 25 66 F4 E9 65 64 52 [16:29:12]GetLastDocTimeStamp 1713716753 [16:29:12]current date 1713716954 [16:29:12]FM_GetShiftState [16:29:12]SAM_PROTO_GetShiftState [16:29:12]wFMCommunicate request_size=4 [16:29:12]MH_SAM_APDU [16:29:12]CAPDU: 80 13 01 00 [16:29:12]Write to MH i2c: E2 08 00 0B 07 80 13 01 00 00 00 00 00 8F [16:29:12]Write i2c OK [16:29:12]MH_I2C_Read... [16:29:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:12]Read from MH i2c: E2 [16:29:12]MH_I2C_Read... [16:29:12]Read from MH i2c: E2 0E 00 [16:29:12]MH_I2C_Read... [16:29:12]Read from MH i2c: E2 0E 00 0B 07 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 D6 [16:29:12]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [16:29:12]wFMCommunicate OK [16:29:12]SAM_PROTO_GetShiftState done [16:29:12]FM_GetShiftState done [16:29:12]opened in 1713658965 [16:29:12]opened+sec_in_day 1713745365 [16:29:12]quantity*price = 64400 [16:29:12]sum+1 = 64401 [16:29:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 644.00 НСП 1% : 5.70 НДС 12% : 68.39 Наличными: 644.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 130 21.04.2024 16:29 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76874 ФПД: 239792605945579 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T162914&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76874&fm=239792605945579&tin=02508201610067®Number=0000000000091573&sum=64400 [16:29:13]StoreToDocumentArchive [16:29:13]shift 372 fd 76874 [16:29:13]save to /storage/0372/doc_00076874 [16:29:13]save last doc name /storage/0372/doc_00076874 to /storage/kkm_last_doc_name [16:29:13]save OK [16:29:13]Clear old archive folders... [16:29:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:29:13]tlvbuf is 017E7100 [16:29:13]SAM_PROTO_ClearQueue [16:29:13]wFMCommunicate request_size=4 [16:29:13]MH_SAM_APDU [16:29:13]CAPDU: 80 09 00 00 [16:29:13]Write to MH i2c: E2 08 00 18 07 80 09 00 00 00 00 00 00 91 [16:29:13]Write i2c OK [16:29:13]MH_I2C_Read... [16:29:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:29:13]Read from MH i2c: E2 [16:29:13]MH_I2C_Read... [16:29:13]Read from MH i2c: E2 03 00 [16:29:13]MH_I2C_Read... [16:29:13]Read from MH i2c: E2 03 00 18 07 00 90 00 93 [16:29:13]RAPDU: 90 00 [16:29:13]wFMCommunicate OK [16:29:13]SAM_PROTO_ClearQueue done [16:29:13]KKMCreateOFDPacket [16:29:13]OFDProtocolAddRootSTLVToBuf [16:29:13]FM_MakeSignedData [16:29:13]FM_MakeSignedData [16:29:13]SAM_PROTO_SignData [16:29:13]wFMCommunicate request_size=4 [16:29:13]MH_SAM_APDU [16:29:13]CAPDU: 80 0D 01 02 [16:29:13]Write to MH i2c: E2 08 00 19 07 80 0D 01 02 00 00 00 00 99 [16:29:13]Write i2c OK [16:29:13]MH_I2C_Read... [16:29:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:29:14]Read from MH i2c: E2 [16:29:14]MH_I2C_Read... [16:29:14]Read from MH i2c: E2 03 00 [16:29:14]MH_I2C_Read... [16:29:14]Read from MH i2c: E2 03 00 19 07 00 90 00 94 [16:29:14]RAPDU: 90 00 [16:29:14]wFMCommunicate OK [16:29:14]wFMCommunicate request_size=255 [16:29:14]MH_SAM_APDU [16:29:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 90 FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 1A 00 00 00 00 07 04 06 00 90 FB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 DA 3E 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 4A 2C 01 00 35 04 06 00 DA [16:29:14]Write to MH i2c: E2 02 01 1A 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 10 27 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 90 FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 1A 00 00 00 00 07 04 06 00 90 FB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 DA 3E 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 4A 2C 01 00 35 04 06 00 DA 00 00 B4 [16:29:14]Write i2c OK [16:29:14]MH_I2C_Read... [16:29:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:14]Read from MH i2c: E2 [16:29:14]MH_I2C_Read... [16:29:14]Read from MH i2c: E2 03 00 [16:29:14]MH_I2C_Read... [16:29:14]Read from MH i2c: E2 03 00 1A 07 00 90 00 95 [16:29:14]RAPDU: 90 00 [16:29:14]wFMCommunicate OK [16:29:14]wFMCommunicate request_size=10 [16:29:14]MH_SAM_APDU [16:29:14]CAPDU: 80 0D 02 02 05 17 11 18 DE EB [16:29:14]Write to MH i2c: E2 0D 00 1B 07 80 0D 02 02 05 00 17 11 18 DE EB 00 00 AF [16:29:14]Write i2c OK [16:29:14]MH_I2C_Read... [16:29:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:14]Read from MH i2c: E2 [16:29:14]MH_I2C_Read... [16:29:14]Read from MH i2c: E2 03 00 [16:29:14]MH_I2C_Read... [16:29:14]Read from MH i2c: E2 03 00 1B 07 00 90 00 96 [16:29:14]RAPDU: 90 00 [16:29:14]wFMCommunicate OK [16:29:14]wFMCommunicate request_size=4 [16:29:14]MH_SAM_APDU [16:29:14]CAPDU: 80 0D 03 02 [16:29:14]Write to MH i2c: E2 08 00 1C 07 80 0D 03 02 00 00 00 00 9E [16:29:14]Write i2c OK [16:29:14]MH_I2C_Read... [16:29:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:29:14]Read from MH i2c: E2 [16:29:14]MH_I2C_Read... [16:29:14]Read from MH i2c: E2 0B 00 [16:29:14]MH_I2C_Read... [16:29:14]Read from MH i2c: E2 0B 00 1C 07 00 D8 F6 6E B6 C7 B5 E8 3D 90 00 32 [16:29:14]RAPDU: D8 F6 6E B6 C7 B5 E8 3D 90 00 [16:29:14]wFMCommunicate OK [16:29:14]SAM_PROTO_SignData done [16:29:14]FM_MakeSignedData done [16:29:14]CreateOFDProtocolMessage [16:29:14]wFMCommunicate request_size=4 [16:29:14]MH_SAM_APDU [16:29:14]CAPDU: 80 11 00 00 [16:29:14]Write to MH i2c: E2 08 00 1D 07 80 11 00 00 00 00 00 00 9E [16:29:14]Write i2c OK [16:29:14]MH_I2C_Read... [16:29:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:14]Read from MH i2c: E2 [16:29:14]MH_I2C_Read... [16:29:14]Read from MH i2c: E2 17 00 [16:29:14]MH_I2C_Read... [16:29:14]Read from MH i2c: E2 17 00 1D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F1 [16:29:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:29:14]wFMCommunicate OK [16:29:14]CreateOFDProtocolMessage done [16:29:14]OFDSenderStorePacket 76874 [16:29:14]StoreOFDPacket docnum=76874 [16:29:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 E1 FA 07 01 63 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 10 27 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 90 FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 1A 00 00 00 00 07 04 06 00 90 FB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 DA 3E 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 4A 2C 01 00 35 04 06 00 DA 17 11 18 DE EB D8 F6 6E B6 C7 B5 E8 3D [16:29:14]CheckFolder [16:29:14]dirname=/storage/ofd_packets [16:29:14]CheckFolder done [16:29:14]ProducePacketName [16:29:14]name=ofd_packets/00076874 [16:29:14]NVStorageSaveData ofd_packets/00076874 [16:29:14]File name is /storage/ofd_packets/00076874 [16:29:14]Write 301 bytes [16:29:14]NVStorageSaveData done [16:29:14]OFDSenderStorePacket done [16:29:14]KKMCreateOFDPacket done [16:29:14]NVStorageSaveData kkm_last_timestamp [16:29:14]File name is /storage/kkm_last_timestamp [16:29:14]Write 4 bytes [16:29:14]NVStorageSaveData done [16:29:14]ExternCall_PrintAddStr [16:29:14]wPrintStart [16:29:14]Write to MH i2c: 01 00 00 1E 07 25 [16:29:14]Write i2c OK [16:29:14]MH_I2C_Read... [16:29:14]Read from MH i2c: 01 [16:29:14]MH_I2C_Read... [16:29:14]Read from MH i2c: 01 07 00 [16:29:14]MH_I2C_Read... [16:29:14]Read from MH i2c: 01 07 00 1E 07 00 00 00 00 00 FF 0F 3A [16:29:14]RasterBufferAndPrint [16:29:14]line Счет N : (1)191419 [16:29:14]line ИНН: 02508201610067 [16:29:14]line Контрольно-Кассовый Чек [16:29:14]line ПРОДАЖА [16:29:14]line ТРК (МРК, ГНК) : 43 [16:29:14]line Товар: 2710124130 [16:29:14]line Аи-92-К-5 [16:29:14]line 10.000 * 64.40 [16:29:14]line = 644.00 [16:29:14]line НДС 12% НСП 1% [16:29:14]line > о реализуемом товаре [16:29:14]line ИТОГО: 644.00 [16:29:14]line НСП 1% : 5.70 [16:29:14]line НДС 12% : 68.39 [16:29:14]line Наличными: 644.00 [16:29:14]line Безнал.: 0.00 [16:29:14]line Место: АЗС № 106 "Партнер Нефть" [16:29:14]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [16:29:14]line СНО: Общий режим [16:29:14]line Чек 130 21.04.2024 16:29 [16:29:14]line Смена: 372 ФФД: 1.0 [16:29:14]line ЗНМ: 0300000141 [16:29:14]line РНМ: 0000000000091573 [16:29:14]line Версия ККМ: 001 [16:29:14]line ФМ: 0000000000874652 [16:29:14]line ФД: 76874 [16:29:14]line ФПД: 239792605945579 [16:29:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T162914&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76874&fm=239792605945579&tin=02508201610067®Number=0000000000091573&sum=64400 [16:29:14]OFD Sender: Processing packet 76874 [packets to send 129, broken 128] [16:29:14]ProducePacketName [16:29:14]name=ofd_packets/00076874 [16:29:14]OFD Sender: To server: pG, [16:29:14]CommunicateWithHost lk.salyk.kg:30040 [16:29:14]ConnectInit lk.salyk.kg [16:29:14]written 0, free lines is 4095 [16:29:14]Connected sock=11 [16:29:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 E1 FA 07 01 63 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 10 27 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 90 FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 1A 00 00 00 00 07 04 06 00 90 FB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 DA 3E 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 4A 2C 01 00 35 04 06 00 DA 17 11 18 DE EB D8 F6 6E B6 C7 B5 E8 3D [16:29:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 8C 0D 47 00 3D 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 4A 2C 01 00 F4 03 04 00 5F E6 24 66 B6 04 01 00 00 1C 5A AE A7 CF AE 95 59 [16:29:15]CommunicateWithHost err = 0 [16:29:15]CheckOFDResponse [16:29:15]1017 (14) - 77093643461234 [16:29:15]1041 (16) - 0000000000874652 [16:29:15]1040 (4) - 76874 [16:29:15]1012 (4) - 21.04.2024 10:11 [16:29:15]1206 (1) - 0 [16:29:15]OFD Sender: Remove packet 76874 [16:29:15]ProducePacketName [16:29:15]name=ofd_packets/00076874 [16:29:15]NVStorageDeleteData [16:29:15]Write to MH i2c: 01 00 00 45 07 4C [16:29:15]Write i2c OK [16:29:15]MH_I2C_Read... [16:29:15]Read from MH i2c: 01 [16:29:15]MH_I2C_Read... [16:29:15]Read from MH i2c: 01 07 00 [16:29:15]MH_I2C_Read... [16:29:15]Read from MH i2c: 01 07 00 45 07 00 00 00 00 00 1F 0D 7F [16:29:15]RasterBufferAndPrint [16:29:15]line [16:29:15]line [16:29:15]line [16:29:15]line [16:29:15]line [16:29:15]written 0, free lines is 3366 [16:29:15]MH_Cut [16:29:15]Write to MH i2c: D1 01 00 4C 07 01 25 [16:29:15]Write i2c OK [16:29:15]MH_I2C_Read... [16:29:15]Read from MH i2c: D1 [16:29:15]MH_I2C_Read... [16:29:15]Read from MH i2c: D1 01 00 [16:29:15]MH_I2C_Read... [16:29:15]Read from MH i2c: D1 01 00 4C 07 00 24 [16:29:15]Write to MH i2c: 01 00 00 4D 07 54 [16:29:15]Write i2c OK [16:29:15]MH_I2C_Read... [16:29:15]OFD Sender: No OFD packet to send [16:29:15]*** Cut start [16:29:15]*** Partial cut [16:29:15]*** CUTSNS_PIN = 1 [16:29:15]*** CUTSNS_PIN = 0 [16:29:16]*** Brake cut motor [16:29:16]Read from MH i2c: 01 [16:29:16]MH_I2C_Read... [16:29:16]*** Stop cut motor [16:29:16]*** Cut end [16:29:16]Read from MH i2c: 01 07 00 [16:29:16]MH_I2C_Read... [16:29:16]Read from MH i2c: 01 07 00 4D 07 00 00 00 00 00 FF 0F 69 [16:29:16]process_action close_receipt done [16:29:16]requested_data is exist [16:29:16]produce_requested_data [16:29:16]requested_item fm.sn is exist - process it [16:29:16]wFMCommunicate request_size=4 [16:29:16]MH_SAM_APDU [16:29:16]CAPDU: 80 11 00 00 [16:29:16]Write to MH i2c: E2 08 00 4E 07 80 11 00 00 00 00 00 00 CF [16:29:16]Write i2c OK [16:29:16]MH_I2C_Read... [16:29:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:16]Read from MH i2c: E2 [16:29:16]MH_I2C_Read... [16:29:16]Read from MH i2c: E2 17 00 [16:29:16]MH_I2C_Read... [16:29:16]Read from MH i2c: E2 17 00 4E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 22 [16:29:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:29:16]wFMCommunicate OK [16:29:16]requested_item fd.num is exist - process it [16:29:16]SAM_PROTO_GetFieldsCounters [16:29:16]wFMCommunicate request_size=4 [16:29:16]MH_SAM_APDU [16:29:16]CAPDU: 80 13 00 00 [16:29:16]Write to MH i2c: E2 08 00 4F 07 80 13 00 00 00 00 00 00 D2 [16:29:16]Write i2c OK [16:29:16]MH_I2C_Read... [16:29:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:29:16]Read from MH i2c: E2 [16:29:16]MH_I2C_Read... [16:29:16]Read from MH i2c: E2 62 00 [16:29:16]MH_I2C_Read... [16:29:16]Read from MH i2c: E2 62 00 4F 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 4A 2C 01 00 0E 04 04 00 74 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 65 [16:29: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 4A 2C 01 00 0E 04 04 00 74 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 [16:29:16]wFMCommunicate OK [16:29:16]SAM_PROTO_GetFieldsCounters done [16:29:16]requested_item shift.num is exist - process it [16:29:16]requested_item shift.opened is exist - process it [16:29:16]req_shift_opened [16:29:16]FM_GetShiftState [16:29:16]SAM_PROTO_GetShiftState [16:29:16]wFMCommunicate request_size=4 [16:29:16]MH_SAM_APDU [16:29:16]CAPDU: 80 13 01 00 [16:29:16]Write to MH i2c: E2 08 00 50 07 80 13 01 00 00 00 00 00 D4 [16:29:16]Write i2c OK [16:29:16]MH_I2C_Read... [16:29:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:16]Read from MH i2c: E2 [16:29:16]MH_I2C_Read... [16:29:16]Read from MH i2c: E2 0E 00 [16:29:16]MH_I2C_Read... [16:29:16]Read from MH i2c: E2 0E 00 50 07 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 1B [16:29:16]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [16:29:16]wFMCommunicate OK [16:29:16]SAM_PROTO_GetShiftState done [16:29:16]FM_GetShiftState done [16:29:16]req_shift_opened done [16:29:16]requested_item shift.open_date is exist - process it [16:29:16]req_shift_open_date [16:29:16]req_shift_open_date done [16:29:16]produce_requested_data done [16:29:16]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76874,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [16:29:16]process_action_free close_receipt [16:29:16]json_value_free [16:29:16]json_value_free done [16:29:16]process_json_proto returns [16:29:16]Send response to host [16:29:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76874,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [16:29:16]free response buf [16:29:16]execute_script done [16:29:16]execute_script returns [16:29:16]free content buf [16:29:16]Sock 7.Close socket [16:29:16]Sock 7.Thread stoped [16:29:20]accept exits with 9 [16:29:20]New connection [16:29:20]New thread 3067317604 created [16:29:20]Thread 3067460964 joined [16:29:20]Waiting for new connection... [16:29:20] Sock 9.Parse request [16:29:20]Sock 9.Check first char [16:29:20]Sock 9.First char is OK [16:29:20]request: POST /json_proto HTTP/1.0 [16:29:20]Method: POST [16:29:20]URL: /json_proto [16:29:20]Method is POST - this is cgi request [16:29:20]url: /json_proto [16:29:20]query_string will be loaded in cgi processing [16:29:20]execute_cgi json_proto POST (null) [16:29:20]execute_cgi path=json_proto method=POST [16:29:20]POST find Content-Length [16:29:20]Host: 172.17.62.5:8080 [16:29:20]Content-Length: 1156 [16:29:20]Content-Type: application/json [16:29:20] [16:29:20]POST finish read [16:29:20]Found Content-Length = 1156 [16:29: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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041B\u044B\u043C\u0430\u0440\u0435\u0432\u0430 \u0412. \u000A\u0421\u0447\u0435\u0442 N : (1)191418\u000A21.04.2024 16:10\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 : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 644.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30000667\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:20]execute_script... [16:29: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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041B\u044B\u043C\u0430\u0440\u0435\u0432\u0430 \u0412. \u000A\u0421\u0447\u0435\u0442 N : (1)191418\u000A21.04.2024 16:10\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 : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 644.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30000667\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:20]POST & json_proto [16:29:20]process_json_proto [16:29:20]json parsed OK: [16:29:20]protocol is kg_v1.0 [16:29:20]action value=print_text [16:29:20]process_action print_text [16:29:20]cmd_print_text [16:29:20]ExternCall_PrintAddStr [16:29:20]wPrintStart [16:29:20]Write to MH i2c: 01 00 00 51 07 58 [16:29:20]Write i2c OK [16:29:20]MH_I2C_Read... [16:29:20]Read from MH i2c: 01 [16:29:20]MH_I2C_Read... [16:29:20]Read from MH i2c: 01 07 00 [16:29:20]MH_I2C_Read... [16:29:20]Read from MH i2c: 01 07 00 51 07 00 00 00 00 00 FF 0F 6D [16:29:20]RasterBufferAndPrint [16:29:20]line *****ТОВАРНЫЙ ЧЕК***** [16:29:20]line АЗС 106 [16:29:20]line Партнер нефть [16:29:20]line 02508201610067 [16:29:20]line Кассир : Лымарева В. [16:29:20]line Счет N : (1)191418 [16:29:20]line 21.04.2024 16:10 [16:29:20]line ПРОДАЖА [16:29:20]line ТРК (МРК, ГНК): 33 [16:29:20]line Вид ГСМ : 2710124130 [16:29:20]line Аи-92-К-5 [16:29:20]line 10.000 x 64.40 [16:29:20]line ИТОГ: 644.00 [16:29:20]line Тип оплаты: Талоны: ТК ГПНА Online [16:29:20]line 30000667 [16:29:20]line ______________________ [16:29:20]line (подпись) [16:29:20]written 0, free lines is 4095 [16:29:20]Write to MH i2c: 01 00 00 65 07 6C [16:29:20]Write i2c OK [16:29:20]MH_I2C_Read... [16:29:20]Read from MH i2c: 01 [16:29:20]MH_I2C_Read... [16:29:20]Read from MH i2c: 01 07 00 [16:29:20]MH_I2C_Read... [16:29:20]Read from MH i2c: 01 07 00 65 07 00 00 00 00 00 0E 0E 8F [16:29:20]RasterBufferAndPrint [16:29:20]line [16:29:20]line [16:29:20]line [16:29:20]line [16:29:20]line [16:29:20]written 0, free lines is 3600 [16:29:20]MH_Cut [16:29:20]Write to MH i2c: D1 01 00 6C 07 01 45 [16:29:20]Write i2c OK [16:29:20]MH_I2C_Read... [16:29:20]Read from MH i2c: D1 [16:29:20]MH_I2C_Read... [16:29:20]Read from MH i2c: D1 01 00 [16:29:20]MH_I2C_Read... [16:29:20]Read from MH i2c: D1 01 00 6C 07 00 44 [16:29:20]Write to MH i2c: 01 00 00 6D 07 74 [16:29:20]Write i2c OK [16:29:20]MH_I2C_Read... [16:29:20]OFD Sender: No OFD packet to send [16:29:20]*** Cut start [16:29:20]*** Partial cut [16:29:20]*** CUTSNS_PIN = 1 [16:29:20]*** CUTSNS_PIN = 0 [16:29:21]*** Brake cut motor [16:29:21]Read from MH i2c: 01 [16:29:21]MH_I2C_Read... [16:29:21]*** Stop cut motor [16:29:21]Read from MH i2c: 01 07 00 [16:29:21]MH_I2C_Read... [16:29:21]*** Cut end [16:29:21]Read from MH i2c: 01 07 00 6D 07 00 00 00 00 00 FF 0F 89 [16:29:21]process_action print_text done [16:29:21]requested_data is exist [16:29:21]produce_requested_data [16:29:21]requested_item fm.sn is exist - process it [16:29:21]wFMCommunicate request_size=4 [16:29:21]MH_SAM_APDU [16:29:21]CAPDU: 80 11 00 00 [16:29:21]Write to MH i2c: E2 08 00 6E 07 80 11 00 00 00 00 00 00 EF [16:29:21]Write i2c OK [16:29:21]MH_I2C_Read... [16:29:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:21]Read from MH i2c: E2 [16:29:21]MH_I2C_Read... [16:29:21]Read from MH i2c: E2 17 00 [16:29:21]MH_I2C_Read... [16:29:21]Read from MH i2c: E2 17 00 6E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 42 [16:29:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:29:21]wFMCommunicate OK [16:29:21]requested_item fd.num is exist - process it [16:29:21]SAM_PROTO_GetFieldsCounters [16:29:21]wFMCommunicate request_size=4 [16:29:21]MH_SAM_APDU [16:29:21]CAPDU: 80 13 00 00 [16:29:21]Write to MH i2c: E2 08 00 6F 07 80 13 00 00 00 00 00 00 F2 [16:29:21]Write i2c OK [16:29:21]MH_I2C_Read... [16:29:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:29:21]Read from MH i2c: E2 [16:29:21]MH_I2C_Read... [16:29:21]Read from MH i2c: E2 62 00 [16:29:21]MH_I2C_Read... [16:29:21]Read from MH i2c: E2 62 00 6F 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 4A 2C 01 00 0E 04 04 00 74 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 85 [16:29: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 4A 2C 01 00 0E 04 04 00 74 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 [16:29:21]wFMCommunicate OK [16:29:21]SAM_PROTO_GetFieldsCounters done [16:29:21]requested_item shift.num is exist - process it [16:29:21]requested_item shift.opened is exist - process it [16:29:21]req_shift_opened [16:29:21]FM_GetShiftState [16:29:21]SAM_PROTO_GetShiftState [16:29:21]wFMCommunicate request_size=4 [16:29:21]MH_SAM_APDU [16:29:21]CAPDU: 80 13 01 00 [16:29:21]Write to MH i2c: E2 08 00 70 07 80 13 01 00 00 00 00 00 F4 [16:29:21]Write i2c OK [16:29:21]MH_I2C_Read... [16:29:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:21]Read from MH i2c: E2 [16:29:21]MH_I2C_Read... [16:29:21]Read from MH i2c: E2 0E 00 [16:29:21]MH_I2C_Read... [16:29:21]Read from MH i2c: E2 0E 00 70 07 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 3B [16:29:21]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [16:29:21]wFMCommunicate OK [16:29:21]SAM_PROTO_GetShiftState done [16:29:21]FM_GetShiftState done [16:29:21]req_shift_opened done [16:29:21]requested_item shift.open_date is exist - process it [16:29:21]req_shift_open_date [16:29:21]req_shift_open_date done [16:29:21]produce_requested_data done [16:29:21]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76874,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [16:29:21]process_action_free print_text [16:29:21]json_value_free [16:29:21]json_value_free done [16:29:21]process_json_proto returns [16:29:21]Send response to host [16:29:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76874,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [16:29:21]free response buf [16:29:21]execute_script done [16:29:21]execute_script returns [16:29:21]free content buf [16:29:21]Sock 9.Close socket [16:29:21]Sock 9.Thread stoped [16:29:25]OFD Sender: No OFD packet to send [16:29:30]OFD Sender: No OFD packet to send [16:29:35]OFD Sender: No OFD packet to send [16:29:40]OFD Sender: No OFD packet to send [16:29:45]OFD Sender: No OFD packet to send [16:29:50]OFD Sender: No OFD packet to send [16:29:55]OFD Sender: No OFD packet to send [16:29:57]accept exits with 10 [16:29:57]New connection [16:29:57]New thread 3067460964 created [16:29:57]Thread 3067317604 joined [16:29:57]Waiting for new connection... [16:29:57] Sock 10.Parse request [16:29:57]Sock 10.Check first char [16:29:57]Sock 10.First char is OK [16:29:57]request: POST /json_proto HTTP/1.0 [16:29:57]Method: POST [16:29:57]URL: /json_proto [16:29:57]Method is POST - this is cgi request [16:29:57]url: /json_proto [16:29:57]query_string will be loaded in cgi processing [16:29:57]execute_cgi json_proto POST (null) [16:29:57]execute_cgi path=json_proto method=POST [16:29:57]POST find Content-Length [16:29:57]Host: 172.17.62.5:8080 [16:29:57]Content-Length: 696 [16:29:57]Content-Type: application/json [16:29:57] [16:29:57]POST finish read [16:29:57]Found Content-Length = 696 [16:29:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 76874, "base_FM": "0000000000874652", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 10.000, "sum" : 644.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 644.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:57]execute_script... [16:29:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 76874, "base_FM": "0000000000874652", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 10.000, "sum" : 644.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 644.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:57]POST & json_proto [16:29:57]process_json_proto [16:29:57]json parsed OK: [16:29:57]protocol is kg_v1.0 [16:29:57]action value=close_receipt [16:29:57]process_action close_receipt [16:29:57]cmd_close_receipt [16:29:57]MH_GetDate [16:29:57]Write to MH i2c: F0 00 00 71 07 67 [16:29:57]Write i2c OK [16:29:57]MH_I2C_Read... [16:29:57]Read from MH i2c: F0 [16:29:57]MH_I2C_Read... [16:29:57]Read from MH i2c: F0 09 00 [16:29:57]MH_I2C_Read... [16:29:57]Read from MH i2c: F0 09 00 71 07 00 07 3F 25 66 F4 E9 65 64 E7 [16:29:57]GetLastDocTimeStamp 1713716954 [16:29:57]current date 1713716999 [16:29:57]FM_GetShiftState [16:29:57]SAM_PROTO_GetShiftState [16:29:57]wFMCommunicate request_size=4 [16:29:57]MH_SAM_APDU [16:29:57]CAPDU: 80 13 01 00 [16:29:57]Write to MH i2c: E2 08 00 72 07 80 13 01 00 00 00 00 00 F6 [16:29:57]Write i2c OK [16:29:57]MH_I2C_Read... [16:29:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:57]Read from MH i2c: E2 [16:29:57]MH_I2C_Read... [16:29:57]Read from MH i2c: E2 0E 00 [16:29:57]MH_I2C_Read... [16:29:57]Read from MH i2c: E2 0E 00 72 07 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 3D [16:29:57]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [16:29:57]wFMCommunicate OK [16:29:57]SAM_PROTO_GetShiftState done [16:29:57]FM_GetShiftState done [16:29:57]opened in 1713658965 [16:29:57]opened+sec_in_day 1713745365 [16:29:57]quantity*price = 64400 [16:29:57]sum+1 = 64401 [16:29:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 644.00 НСП 1% : 5.70 НДС 12% : 68.39 Наличными: 644.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 131 21.04.2024 16:29 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФД осн.: 76874 ФМ осн.: 0000000000874652 ФМ: 0000000000874652 ФД: 76875 ФПД: 119832233999519 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T162959&type=2&operation_type=1&fn_number=0000000000874652&fd_number=76875&fm=119832233999519&tin=02508201610067®Number=0000000000091573&sum=64400 [16:29:59]StoreToDocumentArchive [16:29:59]shift 372 fd 76875 [16:29:59]save to /storage/0372/doc_00076875 [16:29:59]save last doc name /storage/0372/doc_00076875 to /storage/kkm_last_doc_name [16:29:59]save OK [16:29:59]Clear old archive folders... [16:29:59]ProcessDocumentItem done err = 0, tmpTLVsize=279 [16:29:59]tlvbuf is 017E6A30 [16:29:59]SAM_PROTO_ClearQueue [16:29:59]wFMCommunicate request_size=4 [16:29:59]MH_SAM_APDU [16:29:59]CAPDU: 80 09 00 00 [16:29:59]Write to MH i2c: E2 08 00 81 07 80 09 00 00 00 00 00 00 FA [16:29:59]Write i2c OK [16:29:59]MH_I2C_Read... [16:29:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:29:59]Read from MH i2c: E2 [16:29:59]MH_I2C_Read... [16:29:59]Read from MH i2c: E2 03 00 [16:29:59]MH_I2C_Read... [16:29:59]Read from MH i2c: E2 03 00 81 07 00 90 00 FC [16:29:59]RAPDU: 90 00 [16:29:59]wFMCommunicate OK [16:29:59]SAM_PROTO_ClearQueue done [16:29:59]KKMCreateOFDPacket [16:29:59]OFDProtocolAddRootSTLVToBuf [16:29:59]FM_MakeSignedData [16:29:59]FM_MakeSignedData [16:29:59]SAM_PROTO_SignData [16:29:59]wFMCommunicate request_size=4 [16:29:59]MH_SAM_APDU [16:29:59]CAPDU: 80 0D 01 02 [16:29:59]Write to MH i2c: E2 08 00 82 07 80 0D 01 02 00 00 00 00 02 [16:29:59]Write i2c OK [16:29:59]MH_I2C_Read... [16:29:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:29:59]Read from MH i2c: E2 [16:29:59]MH_I2C_Read... [16:29:59]Read from MH i2c: E2 03 00 [16:29:59]MH_I2C_Read... [16:29:59]Read from MH i2c: E2 03 00 82 07 00 90 00 FD [16:29:59]RAPDU: 90 00 [16:29:59]wFMCommunicate OK [16:29:59]wFMCommunicate request_size=255 [16:29:59]MH_SAM_APDU [16:29:59]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 10 27 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 90 FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 1A 00 00 00 00 07 04 06 00 90 FB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 07 3F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 27 04 04 00 4A 2C 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 11 04 10 00 30 [16:29:59]Write to MH i2c: E2 02 01 83 07 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 10 27 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 90 FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 1A 00 00 00 00 07 04 06 00 90 FB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 07 3F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 27 04 04 00 4A 2C 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 11 04 10 00 30 00 00 D4 [16:29:59]Write i2c OK [16:29:59]MH_I2C_Read... [16:29:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:59]Read from MH i2c: E2 [16:29:59]MH_I2C_Read... [16:29:59]Read from MH i2c: E2 03 00 [16:29:59]MH_I2C_Read... [16:29:59]Read from MH i2c: E2 03 00 83 07 00 90 00 FE [16:29:59]RAPDU: 90 00 [16:29:59]wFMCommunicate OK [16:29:59]wFMCommunicate request_size=38 [16:29:59]MH_SAM_APDU [16:29:59]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 4B 2C 01 00 35 04 06 00 6C FC 9D BD 7C 9F [16:29:59]Write to MH i2c: E2 29 00 84 07 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 4B 2C 01 00 35 04 06 00 6C FC 9D BD 7C 9F 00 00 E3 [16:29:59]Write i2c OK [16:29:59]MH_I2C_Read... [16:29:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:59]Read from MH i2c: E2 [16:29:59]MH_I2C_Read... [16:29:59]Read from MH i2c: E2 03 00 [16:29:59]MH_I2C_Read... [16:29:59]Read from MH i2c: E2 03 00 84 07 00 90 00 FF [16:29:59]RAPDU: 90 00 [16:29:59]wFMCommunicate OK [16:29:59]wFMCommunicate request_size=4 [16:29:59]MH_SAM_APDU [16:29:59]CAPDU: 80 0D 03 02 [16:29:59]Write to MH i2c: E2 08 00 85 07 80 0D 03 02 00 00 00 00 07 [16:29:59]Write i2c OK [16:29:59]MH_I2C_Read... [16:29:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:29:59]Read from MH i2c: E2 [16:29:59]MH_I2C_Read... [16:29:59]Read from MH i2c: E2 0B 00 [16:29:59]MH_I2C_Read... [16:29:59]Read from MH i2c: E2 0B 00 85 07 00 54 9E 49 4E 4E BA 49 B7 90 00 99 [16:29:59]RAPDU: 54 9E 49 4E 4E BA 49 B7 90 00 [16:29:59]wFMCommunicate OK [16:29:59]SAM_PROTO_SignData done [16:29:59]FM_MakeSignedData done [16:29:59]CreateOFDProtocolMessage [16:29:59]wFMCommunicate request_size=4 [16:29:59]MH_SAM_APDU [16:29:59]CAPDU: 80 11 00 00 [16:29:59]Write to MH i2c: E2 08 00 86 07 80 11 00 00 00 00 00 00 07 [16:29:59]Write i2c OK [16:29:59]MH_I2C_Read... [16:29:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:59]Read from MH i2c: E2 [16:29:59]MH_I2C_Read... [16:29:59]Read from MH i2c: E2 17 00 [16:29:59]MH_I2C_Read... [16:29:59]Read from MH i2c: E2 17 00 86 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 5A [16:29:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:29:59]wFMCommunicate OK [16:29:59]CreateOFDProtocolMessage done [16:29:59]OFDSenderStorePacket 76875 [16:29:59]StoreOFDPacket docnum=76875 [16:29:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 2B 01 00 00 B3 01 23 01 6E 2B 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 10 27 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 90 FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 1A 00 00 00 00 07 04 06 00 90 FB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 07 3F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 27 04 04 00 4A 2C 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 4B 2C 01 00 35 04 06 00 6C FC 9D BD 7C 9F 54 9E 49 4E 4E BA 49 B7 [16:29:59]CheckFolder [16:29:59]dirname=/storage/ofd_packets [16:29:59]CheckFolder done [16:29:59]ProducePacketName [16:29:59]name=ofd_packets/00076875 [16:29:59]NVStorageSaveData ofd_packets/00076875 [16:29:59]File name is /storage/ofd_packets/00076875 [16:29:59]Write 329 bytes [16:29:59]NVStorageSaveData done [16:29:59]OFDSenderStorePacket done [16:29:59]KKMCreateOFDPacket done [16:29:59]NVStorageSaveData kkm_last_timestamp [16:29:59]File name is /storage/kkm_last_timestamp [16:29:59]Write 4 bytes [16:29:59]NVStorageSaveData done [16:29:59]ExternCall_PrintAddStr [16:29:59]wPrintStart [16:29:59]Write to MH i2c: 01 00 00 87 07 8E [16:29:59]Write i2c OK [16:29:59]MH_I2C_Read... [16:29:59]Read from MH i2c: 01 [16:29:59]MH_I2C_Read... [16:29:59]Read from MH i2c: 01 07 00 [16:29:59]MH_I2C_Read... [16:29:59]Read from MH i2c: 01 07 00 87 07 00 00 00 00 00 FF 0F A3 [16:29:59]RasterBufferAndPrint [16:29:59]line Счет N : (1)191419 [16:29:59]line ИНН: 02508201610067 [16:29:59]line Контрольно-Кассовый Чек [16:29:59]line ВОЗВРАТ ПРОДАЖИ [16:29:59]line ТРК (МРК, ГНК) : 43 [16:29:59]line Товар: 2710124130 [16:29:59]line Аи-92-К-5 [16:29:59]line 10.000 * 64.40 [16:29:59]line = 644.00 [16:29:59]line НДС 12% НСП 1% [16:29:59]line > о реализуемом товаре [16:29:59]line ИТОГО: 644.00 [16:29:59]line НСП 1% : 5.70 [16:29:59]line НДС 12% : 68.39 [16:29:59]line Наличными: 644.00 [16:29:59]line Безнал.: 0.00 [16:29:59]line Место: АЗС № 106 "Партнер Нефть" [16:29:59]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [16:29:59]line СНО: Общий режим [16:29:59]line Чек 131 21.04.2024 16:29 [16:29:59]line Смена: 372 ФФД: 1.0 [16:29:59]line ЗНМ: 0300000141 [16:29:59]line РНМ: 0000000000091573 [16:29:59]line Версия ККМ: 001 [16:29:59]line ФД осн.: 76874 [16:29:59]line ФМ осн.: 0000000000874652 [16:29:59]line ФМ: 0000000000874652 [16:29:59]line ФД: 76875 [16:29:59]line ФПД: 119832233999519 [16:29:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T162959&type=2&operation_type=1&fn_number=0000000000874652&fd_number=76875&fm=119832233999519&tin=02508201610067®Number=0000000000091573&sum=64400 [16:29:59]OFD Sender: Processing packet 76875 [packets to send 129, broken 128] [16:29:59]ProducePacketName [16:29:59]name=ofd_packets/00076875 [16:29:59]OFD Sender: To server: pG, [16:29:59]CommunicateWithHost lk.salyk.kg:30040 [16:29:59]ConnectInit lk.salyk.kg [16:29:59]written 0, free lines is 4095 [16:30:00]Connected sock=7 [16:30:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 2B 01 00 00 B3 01 23 01 6E 2B 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 10 27 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 90 FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 1A 00 00 00 00 07 04 06 00 90 FB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 07 3F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 27 04 04 00 4A 2C 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 4B 2C 01 00 35 04 06 00 6C FC 9D BD 7C 9F 54 9E 49 4E 4E BA 49 B7 [16:30:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 77 35 47 00 B9 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 4B 2C 01 00 F4 03 04 00 8C E6 24 66 B6 04 01 00 00 A2 9F 2D 12 DC 79 70 A2 [16:30:00]CommunicateWithHost err = 0 [16:30:00]CheckOFDResponse [16:30:00]1017 (14) - 77093643461234 [16:30:00]1041 (16) - 0000000000874652 [16:30:00]1040 (4) - 76875 [16:30:00]1012 (4) - 21.04.2024 10:12 [16:30:00]1206 (1) - 0 [16:30:00]OFD Sender: Remove packet 76875 [16:30:00]ProducePacketName [16:30:00]name=ofd_packets/00076875 [16:30:00]NVStorageDeleteData [16:30:00]Write to MH i2c: 01 00 00 B0 07 B7 [16:30:00]Write i2c OK [16:30:00]MH_I2C_Read... [16:30:00]Read from MH i2c: 01 [16:30:00]MH_I2C_Read... [16:30:00]Read from MH i2c: 01 07 00 [16:30:00]MH_I2C_Read... [16:30:00]Read from MH i2c: 01 07 00 B0 07 00 00 00 00 00 1D 0D E8 [16:30:00]RasterBufferAndPrint [16:30:00]line [16:30:00]line [16:30:00]line [16:30:00]line [16:30:00]line [16:30:00]written 0, free lines is 3365 [16:30:00]MH_Cut [16:30:00]Write to MH i2c: D1 01 00 B7 07 01 90 [16:30:00]Write i2c OK [16:30:00]MH_I2C_Read... [16:30:00]Read from MH i2c: D1 [16:30:00]MH_I2C_Read... [16:30:00]Read from MH i2c: D1 01 00 [16:30:00]MH_I2C_Read... [16:30:00]Read from MH i2c: D1 01 00 B7 07 00 8F [16:30:00]Write to MH i2c: 01 00 00 B8 07 BF [16:30:00]Write i2c OK [16:30:00]MH_I2C_Read... [16:30:00]OFD Sender: No OFD packet to send [16:30:01]*** Cut start [16:30:01]*** Partial cut [16:30:01]*** CUTSNS_PIN = 1 [16:30:01]*** CUTSNS_PIN = 0 [16:30:01]*** Brake cut motor [16:30:01]Read from MH i2c: 01 [16:30:01]MH_I2C_Read... [16:30:01]*** Stop cut motor [16:30:01]*** Cut end [16:30:01]Read from MH i2c: 01 07 00 [16:30:01]MH_I2C_Read... [16:30:01]Read from MH i2c: 01 07 00 B8 07 00 00 00 00 00 FF 0F D4 [16:30:01]process_action close_receipt done [16:30:01]requested_data is exist [16:30:01]produce_requested_data [16:30:01]requested_item fm.sn is exist - process it [16:30:01]wFMCommunicate request_size=4 [16:30:01]MH_SAM_APDU [16:30:01]CAPDU: 80 11 00 00 [16:30:01]Write to MH i2c: E2 08 00 B9 07 80 11 00 00 00 00 00 00 3A [16:30:01]Write i2c OK [16:30:01]MH_I2C_Read... [16:30:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:01]Read from MH i2c: E2 [16:30:01]MH_I2C_Read... [16:30:01]Read from MH i2c: E2 17 00 [16:30:01]MH_I2C_Read... [16:30:01]Read from MH i2c: E2 17 00 B9 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 8D [16:30:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:30:01]wFMCommunicate OK [16:30:01]requested_item fd.num is exist - process it [16:30:01]SAM_PROTO_GetFieldsCounters [16:30:01]wFMCommunicate request_size=4 [16:30:01]MH_SAM_APDU [16:30:01]CAPDU: 80 13 00 00 [16:30:01]Write to MH i2c: E2 08 00 BA 07 80 13 00 00 00 00 00 00 3D [16:30:01]Write i2c OK [16:30:01]MH_I2C_Read... [16:30:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:30:01]Read from MH i2c: E2 [16:30:01]MH_I2C_Read... [16:30:01]Read from MH i2c: E2 62 00 [16:30:01]MH_I2C_Read... [16:30:01]Read from MH i2c: E2 62 00 BA 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 4B 2C 01 00 0E 04 04 00 74 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 D4 [16:30: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 4B 2C 01 00 0E 04 04 00 74 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 [16:30:01]wFMCommunicate OK [16:30:01]SAM_PROTO_GetFieldsCounters done [16:30:01]requested_item shift.num is exist - process it [16:30:01]requested_item shift.opened is exist - process it [16:30:01]req_shift_opened [16:30:01]FM_GetShiftState [16:30:01]SAM_PROTO_GetShiftState [16:30:01]wFMCommunicate request_size=4 [16:30:01]MH_SAM_APDU [16:30:01]CAPDU: 80 13 01 00 [16:30:01]Write to MH i2c: E2 08 00 BB 07 80 13 01 00 00 00 00 00 3F [16:30:01]Write i2c OK [16:30:01]MH_I2C_Read... [16:30:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:02]Read from MH i2c: E2 [16:30:02]MH_I2C_Read... [16:30:02]Read from MH i2c: E2 0E 00 [16:30:02]MH_I2C_Read... [16:30:02]Read from MH i2c: E2 0E 00 BB 07 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 86 [16:30:02]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [16:30:02]wFMCommunicate OK [16:30:02]SAM_PROTO_GetShiftState done [16:30:02]FM_GetShiftState done [16:30:02]req_shift_opened done [16:30:02]requested_item shift.open_date is exist - process it [16:30:02]req_shift_open_date [16:30:02]req_shift_open_date done [16:30:02]produce_requested_data done [16:30:02]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76875,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [16:30:02]process_action_free close_receipt [16:30:02]json_value_free [16:30:02]json_value_free done [16:30:02]process_json_proto returns [16:30:02]Send response to host [16:30:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76875,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [16:30:02]free response buf [16:30:02]execute_script done [16:30:02]execute_script returns [16:30:02]free content buf [16:30:02]Sock 10.Close socket [16:30:02]Sock 10.Thread stoped [16:30:05]OFD Sender: No OFD packet to send [16:30:10]OFD Sender: No OFD packet to send [16:30:15]OFD Sender: No OFD packet to send [16:30:20]OFD Sender: No OFD packet to send [16:30:25]OFD Sender: No OFD packet to send [16:30:30]OFD Sender: No OFD packet to send [16:30:35]OFD Sender: No OFD packet to send [16:30:40]OFD Sender: No OFD packet to send [16:30:45]OFD Sender: No OFD packet to send [16:30:50]OFD Sender: No OFD packet to send [16:30:55]OFD Sender: No OFD packet to send [16:31:00]OFD Sender: No OFD packet to send [16:31:05]OFD Sender: No OFD packet to send [16:31:10]OFD Sender: No OFD packet to send [16:31:15]OFD Sender: No OFD packet to send [16:31:20]OFD Sender: No OFD packet to send [16:31:25]OFD Sender: No OFD packet to send [16:31:30]OFD Sender: No OFD packet to send [16:31:35]OFD Sender: No OFD packet to send [16:31:40]OFD Sender: No OFD packet to send [16:31:45]OFD Sender: No OFD packet to send [16:31:50]OFD Sender: No OFD packet to send [16:31:55]OFD Sender: No OFD packet to send [16:32:01]OFD Sender: No OFD packet to send [16:32:06]OFD Sender: No OFD packet to send [16:32:11]OFD Sender: No OFD packet to send [16:32:16]OFD Sender: No OFD packet to send [16:32:21]OFD Sender: No OFD packet to send [16:32:26]OFD Sender: No OFD packet to send [16:32:31]OFD Sender: No OFD packet to send [16:32:36]OFD Sender: No OFD packet to send [16:32:41]OFD Sender: No OFD packet to send [16:32:46]OFD Sender: No OFD packet to send [16:32:51]OFD Sender: No OFD packet to send [16:32:56]OFD Sender: No OFD packet to send [16:33:01]OFD Sender: No OFD packet to send [16:33:06]OFD Sender: No OFD packet to send [16:33:10]accept exits with 9 [16:33:10]New connection [16:33:10]New thread 3067317604 created [16:33:10]Thread 3067460964 joined [16:33:10]Waiting for new connection... [16:33:10] Sock 9.Parse request [16:33:10]Sock 9.Check first char [16:33:10]Sock 9.First char is OK [16:33:10]request: POST /json_proto HTTP/1.0 [16:33:10]Method: POST [16:33:10]URL: /json_proto [16:33:10]Method is POST - this is cgi request [16:33:10]url: /json_proto [16:33:10]query_string will be loaded in cgi processing [16:33:10]execute_cgi json_proto POST (null) [16:33:10]execute_cgi path=json_proto method=POST [16:33:10]POST find Content-Length [16:33:10]Host: 172.17.62.5:8080 [16:33:10]Content-Length: 682 [16:33:10]Content-Type: application/json [16:33:10] [16:33:10]POST finish read [16:33:10]Found Content-Length = 682 [16:33:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191420", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:33:10]execute_script... [16:33: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)191420", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:33:10]POST & json_proto [16:33:10]process_json_proto [16:33:10]json parsed OK: [16:33:10]protocol is kg_v1.0 [16:33:10]action value=close_receipt [16:33:10]process_action close_receipt [16:33:10]cmd_close_receipt [16:33:10]MH_GetDate [16:33:10]Write to MH i2c: F0 00 00 BC 07 B2 [16:33:10]Write i2c OK [16:33:10]MH_I2C_Read... [16:33:10]Read from MH i2c: F0 [16:33:10]MH_I2C_Read... [16:33:10]Read from MH i2c: F0 09 00 [16:33:10]MH_I2C_Read... [16:33:10]Read from MH i2c: F0 09 00 BC 07 00 C7 3F 25 66 F4 E9 65 64 F2 [16:33:10]GetLastDocTimeStamp 1713716999 [16:33:10]current date 1713717191 [16:33:10]FM_GetShiftState [16:33:10]SAM_PROTO_GetShiftState [16:33:10]wFMCommunicate request_size=4 [16:33:10]MH_SAM_APDU [16:33:10]CAPDU: 80 13 01 00 [16:33:10]Write to MH i2c: E2 08 00 BD 07 80 13 01 00 00 00 00 00 41 [16:33:10]Write i2c OK [16:33:10]MH_I2C_Read... [16:33:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:10]Read from MH i2c: E2 [16:33:10]MH_I2C_Read... [16:33:10]Read from MH i2c: E2 0E 00 [16:33:10]MH_I2C_Read... [16:33:10]Read from MH i2c: E2 0E 00 BD 07 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 88 [16:33:10]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [16:33:10]wFMCommunicate OK [16:33:10]SAM_PROTO_GetShiftState done [16:33:10]FM_GetShiftState done [16:33:10]opened in 1713658965 [16:33:10]opened+sec_in_day 1713745365 [16:33:10]quantity*price = 100013 [16:33:10]sum+1 = 100014 [16:33:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 132 21.04.2024 16:33 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76876 ФПД: 181587942131994 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T163311&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76876&fm=181587942131994&tin=02508201610067®Number=0000000000091573&sum=100000 [16:33:11]StoreToDocumentArchive [16:33:11]shift 372 fd 76876 [16:33:11]save to /storage/0372/doc_00076876 [16:33:11]save last doc name /storage/0372/doc_00076876 to /storage/kkm_last_doc_name [16:33:11]save OK [16:33:11]Clear old archive folders... [16:33:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:33:11]tlvbuf is 017FBD20 [16:33:11]SAM_PROTO_ClearQueue [16:33:11]wFMCommunicate request_size=4 [16:33:11]MH_SAM_APDU [16:33:11]CAPDU: 80 09 00 00 [16:33:11]Write to MH i2c: E2 08 00 CA 07 80 09 00 00 00 00 00 00 43 [16:33:11]Write i2c OK [16:33:11]MH_I2C_Read... [16:33:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:33:11]Read from MH i2c: E2 [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: E2 03 00 [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: E2 03 00 CA 07 00 90 00 45 [16:33:11]RAPDU: 90 00 [16:33:11]wFMCommunicate OK [16:33:11]SAM_PROTO_ClearQueue done [16:33:11]KKMCreateOFDPacket [16:33:11]OFDProtocolAddRootSTLVToBuf [16:33:11]FM_MakeSignedData [16:33:11]FM_MakeSignedData [16:33:11]SAM_PROTO_SignData [16:33:11]wFMCommunicate request_size=4 [16:33:11]MH_SAM_APDU [16:33:11]CAPDU: 80 0D 01 02 [16:33:11]Write to MH i2c: E2 08 00 CB 07 80 0D 01 02 00 00 00 00 4B [16:33:11]Write i2c OK [16:33:11]MH_I2C_Read... [16:33:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:33:11]Read from MH i2c: E2 [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: E2 03 00 [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: E2 03 00 CB 07 00 90 00 46 [16:33:11]RAPDU: 90 00 [16:33:11]wFMCommunicate OK [16:33:11]wFMCommunicate request_size=255 [16:33:11]MH_SAM_APDU [16:33: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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 C7 3F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 4C 2C 01 00 35 04 06 00 A5 [16:33:11]Write to MH i2c: E2 02 01 CC 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 C7 3F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 4C 2C 01 00 35 04 06 00 A5 00 00 C4 [16:33:11]Write i2c OK [16:33:11]MH_I2C_Read... [16:33:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:11]Read from MH i2c: E2 [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: E2 03 00 [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: E2 03 00 CC 07 00 90 00 47 [16:33:11]RAPDU: 90 00 [16:33:11]wFMCommunicate OK [16:33:11]wFMCommunicate request_size=10 [16:33:11]MH_SAM_APDU [16:33:11]CAPDU: 80 0D 02 02 05 27 3C C9 49 1A [16:33:11]Write to MH i2c: E2 0D 00 CD 07 80 0D 02 02 05 00 27 3C C9 49 1A 00 00 E7 [16:33:11]Write i2c OK [16:33:11]MH_I2C_Read... [16:33:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:11]Read from MH i2c: E2 [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: E2 03 00 [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: E2 03 00 CD 07 00 90 00 48 [16:33:11]RAPDU: 90 00 [16:33:11]wFMCommunicate OK [16:33:11]wFMCommunicate request_size=4 [16:33:11]MH_SAM_APDU [16:33:11]CAPDU: 80 0D 03 02 [16:33:11]Write to MH i2c: E2 08 00 CE 07 80 0D 03 02 00 00 00 00 50 [16:33:11]Write i2c OK [16:33:11]MH_I2C_Read... [16:33:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:33:11]Read from MH i2c: E2 [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: E2 0B 00 [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: E2 0B 00 CE 07 00 37 A9 0D 3F 95 42 5F D9 90 00 8C [16:33:11]RAPDU: 37 A9 0D 3F 95 42 5F D9 90 00 [16:33:11]wFMCommunicate OK [16:33:11]SAM_PROTO_SignData done [16:33:11]FM_MakeSignedData done [16:33:11]CreateOFDProtocolMessage [16:33:11]wFMCommunicate request_size=4 [16:33:11]MH_SAM_APDU [16:33:11]CAPDU: 80 11 00 00 [16:33:11]Write to MH i2c: E2 08 00 CF 07 80 11 00 00 00 00 00 00 50 [16:33:11]Write i2c OK [16:33:11]MH_I2C_Read... [16:33:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:11]Read from MH i2c: E2 [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: E2 17 00 [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: E2 17 00 CF 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 A3 [16:33:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:33:11]wFMCommunicate OK [16:33:11]CreateOFDProtocolMessage done [16:33:11]OFDSenderStorePacket 76876 [16:33:11]StoreOFDPacket docnum=76876 [16:33:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 73 D0 07 01 5C AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 C7 3F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 4C 2C 01 00 35 04 06 00 A5 27 3C C9 49 1A 37 A9 0D 3F 95 42 5F D9 [16:33:11]CheckFolder [16:33:11]dirname=/storage/ofd_packets [16:33:11]CheckFolder done [16:33:11]ProducePacketName [16:33:11]name=ofd_packets/00076876 [16:33:11]NVStorageSaveData ofd_packets/00076876 [16:33:11]File name is /storage/ofd_packets/00076876 [16:33:11]Write 301 bytes [16:33:11]NVStorageSaveData done [16:33:11]OFDSenderStorePacket done [16:33:11]KKMCreateOFDPacket done [16:33:11]NVStorageSaveData kkm_last_timestamp [16:33:11]File name is /storage/kkm_last_timestamp [16:33:11]Write 4 bytes [16:33:11]NVStorageSaveData done [16:33:11]ExternCall_PrintAddStr [16:33:11]wPrintStart [16:33:11]Write to MH i2c: 01 00 00 D0 07 D7 [16:33:11]Write i2c OK [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: 01 [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: 01 07 00 [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: 01 07 00 D0 07 00 00 00 00 00 FF 0F EC [16:33:11]RasterBufferAndPrint [16:33:11]line Счет N : (1)191420 [16:33:11]line ИНН: 02508201610067 [16:33:11]line Контрольно-Кассовый Чек [16:33:11]line ПРОДАЖА [16:33:11]line ТРК (МРК, ГНК) : 12 [16:33:11]line Товар: 2710124130 [16:33:11]line Аи-92-К-5 [16:33:11]line 15.530 * 64.40 [16:33:11]line = 1000.13 [16:33:11]line НДС 12% НСП 1% [16:33:11]line > о реализуемом товаре [16:33:11]line ОКРУГЛЕНИЕ: -0.13 [16:33:11]line ИТОГО: 1000.00 [16:33:11]line Внесено: 1000.00 [16:33:11]line СДАЧА: 0.00 [16:33:11]line НСП 1% : 8.85 [16:33:11]line НДС 12% : 106.21 [16:33:11]line Наличными: 1000.00 [16:33:11]line Безнал.: 0.00 [16:33:11]line Место: АЗС № 106 "Партнер Нефть" [16:33:11]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [16:33:11]line СНО: Общий режим [16:33:11]line Чек 132 21.04.2024 16:33 [16:33:11]line Смена: 372 ФФД: 1.0 [16:33:11]line ЗНМ: 0300000141 [16:33:11]line РНМ: 0000000000091573 [16:33:11]line Версия ККМ: 001 [16:33:11]line ФМ: 0000000000874652 [16:33:11]line ФД: 76876 [16:33:11]line ФПД: 181587942131994 [16:33:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T163311&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76876&fm=181587942131994&tin=02508201610067®Number=0000000000091573&sum=100000 [16:33:12]written 0, free lines is 4095 [16:33:12]OFD Sender: Processing packet 76876 [packets to send 129, broken 128] [16:33:12]ProducePacketName [16:33:12]name=ofd_packets/00076876 [16:33:12]OFD Sender: To server: pG, [16:33:12]CommunicateWithHost lk.salyk.kg:30040 [16:33:12]ConnectInit lk.salyk.kg [16:33:12]Connected sock=10 [16:33:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 73 D0 07 01 5C AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 C7 3F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 4C 2C 01 00 35 04 06 00 A5 27 3C C9 49 1A 37 A9 0D 3F 95 42 5F D9 [16:33:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 E4 F3 47 00 FE 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 34 36 35 32 10 04 04 00 4C 2C 01 00 F4 03 04 00 4C E7 24 66 B6 04 01 00 00 B1 E7 B7 5E 8D BE 01 CE [16:33:12]CommunicateWithHost err = 0 [16:33:12]CheckOFDResponse [16:33:12]1017 (14) - 77093643461234 [16:33:12]1041 (16) - 0000000000874652 [16:33:12]1040 (4) - 76876 [16:33:12]1012 (4) - 21.04.2024 10:15 [16:33:12]1206 (1) - 0 [16:33:12]OFD Sender: Remove packet 76876 [16:33:12]ProducePacketName [16:33:12]name=ofd_packets/00076876 [16:33:12]NVStorageDeleteData [16:33:12]Write to MH i2c: 01 00 00 FA 07 01 [16:33:12]Write i2c OK [16:33:12]MH_I2C_Read... [16:33:12]Read from MH i2c: 01 [16:33:12]MH_I2C_Read... [16:33:12]Read from MH i2c: 01 07 00 [16:33:12]MH_I2C_Read... [16:33:12]Read from MH i2c: 01 07 00 FA 07 00 00 00 00 00 EB 0C FF [16:33:12]RasterBufferAndPrint [16:33:12]line [16:33:12]line [16:33:12]line [16:33:12]line [16:33:12]line [16:33:12]written 0, free lines is 3313 [16:33:12]MH_Cut [16:33:12]Write to MH i2c: D1 01 00 01 08 01 DB [16:33:12]Write i2c OK [16:33:12]MH_I2C_Read... [16:33:12]Read from MH i2c: D1 [16:33:12]MH_I2C_Read... [16:33:12]Read from MH i2c: D1 01 00 [16:33:12]MH_I2C_Read... [16:33:12]Read from MH i2c: D1 01 00 01 08 00 DA [16:33:12]Write to MH i2c: 01 00 00 02 08 0A [16:33:12]Write i2c OK [16:33:12]MH_I2C_Read... [16:33:12]OFD Sender: No OFD packet to send [16:33:13]*** Cut start [16:33:13]*** Partial cut [16:33:13]*** CUTSNS_PIN = 1 [16:33:13]*** CUTSNS_PIN = 0 [16:33:13]*** Brake cut motor [16:33:13]Read from MH i2c: 01 [16:33:13]MH_I2C_Read... [16:33:13]*** Stop cut motor [16:33:13]*** Cut end [16:33:13]Read from MH i2c: 01 07 00 [16:33:13]MH_I2C_Read... [16:33:13]Read from MH i2c: 01 07 00 02 08 00 00 00 00 00 FF 0F 1F [16:33:13]process_action close_receipt done [16:33:13]requested_data is exist [16:33:13]produce_requested_data [16:33:13]requested_item fm.sn is exist - process it [16:33:13]wFMCommunicate request_size=4 [16:33:13]MH_SAM_APDU [16:33:13]CAPDU: 80 11 00 00 [16:33:13]Write to MH i2c: E2 08 00 03 08 80 11 00 00 00 00 00 00 85 [16:33:13]Write i2c OK [16:33:13]MH_I2C_Read... [16:33:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:13]Read from MH i2c: E2 [16:33:13]MH_I2C_Read... [16:33:13]Read from MH i2c: E2 17 00 [16:33:13]MH_I2C_Read... [16:33:13]Read from MH i2c: E2 17 00 03 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 D8 [16:33:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:33:13]wFMCommunicate OK [16:33:13]requested_item fd.num is exist - process it [16:33:13]SAM_PROTO_GetFieldsCounters [16:33:13]wFMCommunicate request_size=4 [16:33:13]MH_SAM_APDU [16:33:13]CAPDU: 80 13 00 00 [16:33:13]Write to MH i2c: E2 08 00 04 08 80 13 00 00 00 00 00 00 88 [16:33:13]Write i2c OK [16:33:13]MH_I2C_Read... [16:33:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:33:14]Read from MH i2c: E2 [16:33:14]MH_I2C_Read... [16:33:14]Read from MH i2c: E2 62 00 [16:33:14]MH_I2C_Read... [16:33:14]Read from MH i2c: E2 62 00 04 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 4C 2C 01 00 0E 04 04 00 74 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 23 [16:33: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 4C 2C 01 00 0E 04 04 00 74 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 [16:33:14]wFMCommunicate OK [16:33:14]SAM_PROTO_GetFieldsCounters done [16:33:14]requested_item shift.num is exist - process it [16:33:14]requested_item shift.opened is exist - process it [16:33:14]req_shift_opened [16:33:14]FM_GetShiftState [16:33:14]SAM_PROTO_GetShiftState [16:33:14]wFMCommunicate request_size=4 [16:33:14]MH_SAM_APDU [16:33:14]CAPDU: 80 13 01 00 [16:33:14]Write to MH i2c: E2 08 00 05 08 80 13 01 00 00 00 00 00 8A [16:33:14]Write i2c OK [16:33:14]MH_I2C_Read... [16:33:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:14]Read from MH i2c: E2 [16:33:14]MH_I2C_Read... [16:33:14]Read from MH i2c: E2 0E 00 [16:33:14]MH_I2C_Read... [16:33:14]Read from MH i2c: E2 0E 00 05 08 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 D1 [16:33:14]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [16:33:14]wFMCommunicate OK [16:33:14]SAM_PROTO_GetShiftState done [16:33:14]FM_GetShiftState done [16:33:14]req_shift_opened done [16:33:14]requested_item shift.open_date is exist - process it [16:33:14]req_shift_open_date [16:33:14]req_shift_open_date done [16:33:14]produce_requested_data done [16:33:14]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76876,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [16:33:14]process_action_free close_receipt [16:33:14]json_value_free [16:33:14]json_value_free done [16:33:14]process_json_proto returns [16:33:14]Send response to host [16:33:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76876,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [16:33:14]free response buf [16:33:14]execute_script done [16:33:14]execute_script returns [16:33:14]free content buf [16:33:14]Sock 9.Close socket [16:33:14]Sock 9.Thread stoped [16:33:16]accept exits with 7 [16:33:16]New connection [16:33:16]New thread 3067460964 created [16:33:16]Thread 3067317604 joined [16:33:16]Waiting for new connection... [16:33:16] Sock 7.Parse request [16:33:16]Sock 7.Check first char [16:33:16]Sock 7.First char is OK [16:33:16]request: POST /json_proto HTTP/1.0 [16:33:16]Method: POST [16:33:16]URL: /json_proto [16:33:16]Method is POST - this is cgi request [16:33:16]url: /json_proto [16:33:16]query_string will be loaded in cgi processing [16:33:16]execute_cgi json_proto POST (null) [16:33:16]execute_cgi path=json_proto method=POST [16:33:16]POST find Content-Length [16:33:16]Host: 172.17.62.5:8080 [16:33:16]Content-Length: 990 [16:33:16]Content-Type: application/json [16:33:16] [16:33:16]POST finish read [16:33:16]Found Content-Length = 990 [16:33:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 53.700, "sum" : 1702.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 53.70 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 1702.00, "payments": [ { "type": 0, "sum" : 1702.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:16]execute_script... [16:33: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)191417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 53.700, "sum" : 1702.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 53.70 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 1702.00, "payments": [ { "type": 0, "sum" : 1702.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:16]POST & json_proto [16:33:16]process_json_proto [16:33:16]json parsed OK: [16:33:16]protocol is kg_v1.0 [16:33:16]action value=close_receipt [16:33:16]process_action close_receipt [16:33:16]cmd_close_receipt [16:33:16]MH_GetDate [16:33:16]Write to MH i2c: F0 00 00 06 08 FD [16:33:16]Write i2c OK [16:33:16]MH_I2C_Read... [16:33:16]Read from MH i2c: F0 [16:33:16]MH_I2C_Read... [16:33:16]Read from MH i2c: F0 09 00 [16:33:16]MH_I2C_Read... [16:33:16]Read from MH i2c: F0 09 00 06 08 00 CE 3F 25 66 F4 E9 65 64 44 [16:33:16]GetLastDocTimeStamp 1713717191 [16:33:16]current date 1713717198 [16:33:16]FM_GetShiftState [16:33:16]SAM_PROTO_GetShiftState [16:33:16]wFMCommunicate request_size=4 [16:33:16]MH_SAM_APDU [16:33:16]CAPDU: 80 13 01 00 [16:33:16]Write to MH i2c: E2 08 00 07 08 80 13 01 00 00 00 00 00 8C [16:33:16]Write i2c OK [16:33:16]MH_I2C_Read... [16:33:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:16]Read from MH i2c: E2 [16:33:16]MH_I2C_Read... [16:33:16]Read from MH i2c: E2 0E 00 [16:33:16]MH_I2C_Read... [16:33:16]Read from MH i2c: E2 0E 00 07 08 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 D3 [16:33:16]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [16:33:16]wFMCommunicate OK [16:33:16]SAM_PROTO_GetShiftState done [16:33:16]FM_GetShiftState done [16:33:16]opened in 1713658965 [16:33:16]opened+sec_in_day 1713745365 [16:33:16]quantity*price = 170229 [16:33:16]sum+1 = 170230 [16:33:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 1702.00 Внесено: 2000.00 СДАЧА: 298.00 НСП 1% : 15.06 НДС 12% : 180.77 Наличными: 1702.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 133 21.04.2024 16:33 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 53.70 сом ФМ: 0000000000874652 ФД: 76877 ФПД: 224663778156054 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T163318&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76877&fm=224663778156054&tin=02508201610067®Number=0000000000091573&sum=170200 [16:33:17]StoreToDocumentArchive [16:33:17]shift 372 fd 76877 [16:33:17]save to /storage/0372/doc_00076877 [16:33:17]save last doc name /storage/0372/doc_00076877 to /storage/kkm_last_doc_name [16:33:17]save OK [16:33:17]Clear old archive folders... [16:33:17]ProcessDocumentItem done err = 0, tmpTLVsize=250 [16:33:17]tlvbuf is 017E90B0 [16:33:17]SAM_PROTO_ClearQueue [16:33:17]wFMCommunicate request_size=4 [16:33:17]MH_SAM_APDU [16:33:17]CAPDU: 80 09 00 00 [16:33:17]Write to MH i2c: E2 08 00 14 08 80 09 00 00 00 00 00 00 8E [16:33:17]Write i2c OK [16:33:17]MH_I2C_Read... [16:33:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:33:18]Read from MH i2c: E2 [16:33:18]MH_I2C_Read... [16:33:18]Read from MH i2c: E2 03 00 [16:33:18]MH_I2C_Read... [16:33:18]Read from MH i2c: E2 03 00 14 08 00 90 00 90 [16:33:18]RAPDU: 90 00 [16:33:18]wFMCommunicate OK [16:33:18]SAM_PROTO_ClearQueue done [16:33:18]KKMCreateOFDPacket [16:33:18]OFDProtocolAddRootSTLVToBuf [16:33:18]FM_MakeSignedData [16:33:18]FM_MakeSignedData [16:33:18]SAM_PROTO_SignData [16:33:18]wFMCommunicate request_size=4 [16:33:18]MH_SAM_APDU [16:33:18]CAPDU: 80 0D 01 02 [16:33:18]Write to MH i2c: E2 08 00 15 08 80 0D 01 02 00 00 00 00 96 [16:33:18]Write i2c OK [16:33:18]MH_I2C_Read... [16:33:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:33:18]Read from MH i2c: E2 [16:33:18]MH_I2C_Read... [16:33:18]Read from MH i2c: E2 03 00 [16:33:18]MH_I2C_Read... [16:33:18]Read from MH i2c: E2 03 00 15 08 00 90 00 91 [16:33:18]RAPDU: 90 00 [16:33:18]wFMCommunicate OK [16:33:18]wFMCommunicate request_size=255 [16:33:18]MH_SAM_APDU [16:33:18]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 D1 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 F5 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 46 00 00 00 00 07 04 06 00 D8 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 85 00 00 00 F4 03 04 00 CE 3F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 4D 2C 01 00 35 04 06 00 CC 54 [16:33:18]Write to MH i2c: E2 02 01 16 08 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 D1 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 F5 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 46 00 00 00 00 07 04 06 00 D8 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 85 00 00 00 F4 03 04 00 CE 3F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 4D 2C 01 00 35 04 06 00 CC 54 00 00 B3 [16:33:18]Write i2c OK [16:33:18]MH_I2C_Read... [16:33:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:18]Read from MH i2c: E2 [16:33:18]MH_I2C_Read... [16:33:18]Read from MH i2c: E2 03 00 [16:33:18]MH_I2C_Read... [16:33:18]Read from MH i2c: E2 03 00 16 08 00 90 00 92 [16:33:18]RAPDU: 90 00 [16:33:18]wFMCommunicate OK [16:33:18]wFMCommunicate request_size=9 [16:33:18]MH_SAM_APDU [16:33:18]CAPDU: 80 0D 02 02 04 9C B0 DE 16 [16:33:18]Write to MH i2c: E2 0C 00 17 08 80 0D 02 02 04 00 9C B0 DE 16 00 00 E1 [16:33:18]Write i2c OK [16:33:18]MH_I2C_Read... [16:33:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:18]Read from MH i2c: E2 [16:33:18]MH_I2C_Read... [16:33:18]Read from MH i2c: E2 03 00 [16:33:18]MH_I2C_Read... [16:33:18]Read from MH i2c: E2 03 00 17 08 00 90 00 93 [16:33:18]RAPDU: 90 00 [16:33:18]wFMCommunicate OK [16:33:18]wFMCommunicate request_size=4 [16:33:18]MH_SAM_APDU [16:33:18]CAPDU: 80 0D 03 02 [16:33:18]Write to MH i2c: E2 08 00 18 08 80 0D 03 02 00 00 00 00 9B [16:33:18]Write i2c OK [16:33:18]MH_I2C_Read... [16:33:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:33:18]Read from MH i2c: E2 [16:33:18]MH_I2C_Read... [16:33:18]Read from MH i2c: E2 0B 00 [16:33:18]MH_I2C_Read... [16:33:18]Read from MH i2c: E2 0B 00 18 08 00 CC 1E 03 A2 ED EF C7 33 90 00 01 [16:33:18]RAPDU: CC 1E 03 A2 ED EF C7 33 90 00 [16:33:18]wFMCommunicate OK [16:33:18]SAM_PROTO_SignData done [16:33:18]FM_MakeSignedData done [16:33:18]CreateOFDProtocolMessage [16:33:18]wFMCommunicate request_size=4 [16:33:18]MH_SAM_APDU [16:33:18]CAPDU: 80 11 00 00 [16:33:18]Write to MH i2c: E2 08 00 19 08 80 11 00 00 00 00 00 00 9B [16:33:18]Write i2c OK [16:33:18]MH_I2C_Read... [16:33:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:18]Read from MH i2c: E2 [16:33:18]MH_I2C_Read... [16:33:18]Read from MH i2c: E2 17 00 [16:33:18]MH_I2C_Read... [16:33:18]Read from MH i2c: E2 17 00 19 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 EE [16:33:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:33:18]wFMCommunicate OK [16:33:18]CreateOFDProtocolMessage done [16:33:18]OFDSenderStorePacket 76877 [16:33:18]StoreOFDPacket docnum=76877 [16:33:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 B2 43 06 01 56 CB 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 D1 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 F5 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 46 00 00 00 00 07 04 06 00 D8 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 85 00 00 00 F4 03 04 00 CE 3F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 4D 2C 01 00 35 04 06 00 CC 54 9C B0 DE 16 CC 1E 03 A2 ED EF C7 33 [16:33:18]CheckFolder [16:33:18]dirname=/storage/ofd_packets [16:33:18]CheckFolder done [16:33:18]ProducePacketName [16:33:18]name=ofd_packets/00076877 [16:33:18]NVStorageSaveData ofd_packets/00076877 [16:33:18]File name is /storage/ofd_packets/00076877 [16:33:18]Write 300 bytes [16:33:18]NVStorageSaveData done [16:33:18]OFDSenderStorePacket done [16:33:18]KKMCreateOFDPacket done [16:33:18]NVStorageSaveData kkm_last_timestamp [16:33:18]File name is /storage/kkm_last_timestamp [16:33:18]Write 4 bytes [16:33:18]NVStorageSaveData done [16:33:18]ExternCall_PrintAddStr [16:33:18]wPrintStart [16:33:18]Write to MH i2c: 01 00 00 1A 08 22 [16:33:18]Write i2c OK [16:33:18]MH_I2C_Read... [16:33:18]Read from MH i2c: 01 [16:33:18]MH_I2C_Read... [16:33:18]Read from MH i2c: 01 07 00 [16:33:18]MH_I2C_Read... [16:33:18]Read from MH i2c: 01 07 00 1A 08 00 00 00 00 00 FF 0F 37 [16:33:18]RasterBufferAndPrint [16:33:18]line Счет N : (1)191417 [16:33:18]line ИНН: 02508201610067 [16:33:18]line Контрольно-Кассовый Чек [16:33:18]line ПРОДАЖА [16:33:18]line ТРК (МРК, ГНК) : 71 [16:33:18]line Товар: 2711190000 [16:33:18]line ГАЗ-К-5 [16:33:18]line 53.700 * 31.70 [16:33:18]line = 1702.29 [16:33:18]line НДС 12% НСП 1% [16:33:18]line > о реализуемом товаре [16:33:18]line ОКРУГЛЕНИЕ: -0.29 [16:33:18]line ИТОГО: 1702.00 [16:33:18]line Внесено: 2000.00 [16:33:18]line СДАЧА: 298.00 [16:33:18]line НСП 1% : 15.06 [16:33:18]line НДС 12% : 180.77 [16:33:18]line Наличными: 1702.00 [16:33:18]line Безнал.: 0.00 [16:33:18]line Место: АЗС № 106 "Партнер Нефть" [16:33:18]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [16:33:18]line СНО: Общий режим [16:33:18]line Чек 133 21.04.2024 16:33 [16:33:18]line Смена: 372 ФФД: 1.0 [16:33:18]line ЗНМ: 0300000141 [16:33:18]line РНМ: 0000000000091573 [16:33:18]line Версия ККМ: 001 [16:33:18]line [16:33:18]line Дисконтная программа [16:33:18]line СУГ [16:33:18]line номер 106 [16:33:18]line сэкономлено 53.70 сом [16:33:18]line ФМ: 0000000000874652 [16:33:18]line ФД: 76877 [16:33:18]line ФПД: 224663778156054 [16:33:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T163318&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76877&fm=224663778156054&tin=02508201610067®Number=0000000000091573&sum=170200 [16:33:18]written 0, free lines is 4095 [16:33:18]OFD Sender: Processing packet 76877 [packets to send 129, broken 128] [16:33:18]ProducePacketName [16:33:18]name=ofd_packets/00076877 [16:33:18]OFD Sender: To server: pG, [16:33:18]CommunicateWithHost lk.salyk.kg:30040 [16:33:18]ConnectInit lk.salyk.kg [16:33:18]Connected sock=10 [16:33:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 B2 43 06 01 56 CB 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 D1 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 F5 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 46 00 00 00 00 07 04 06 00 D8 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 85 00 00 00 F4 03 04 00 CE 3F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 4D 2C 01 00 35 04 06 00 CC 54 9C B0 DE 16 CC 1E 03 A2 ED EF C7 33 [16:33:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 C8 FD 47 00 59 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 34 36 35 32 10 04 04 00 4D 2C 01 00 F4 03 04 00 52 E7 24 66 B6 04 01 00 00 BA C7 E6 2B 50 FC 11 29 [16:33:19]CommunicateWithHost err = 0 [16:33:19]CheckOFDResponse [16:33:19]1017 (14) - 77093643461234 [16:33:19]1041 (16) - 0000000000874652 [16:33:19]1040 (4) - 76877 [16:33:19]1012 (4) - 21.04.2024 10:15 [16:33:19]1206 (1) - 0 [16:33:19]OFD Sender: Remove packet 76877 [16:33:19]ProducePacketName [16:33:19]name=ofd_packets/00076877 [16:33:19]NVStorageDeleteData [16:33:19]Write to MH i2c: 01 00 00 49 08 51 [16:33:19]Write i2c OK [16:33:19]MH_I2C_Read... [16:33:19]Read from MH i2c: 01 [16:33:19]MH_I2C_Read... [16:33:19]Read from MH i2c: 01 07 00 [16:33:19]MH_I2C_Read... [16:33:19]Read from MH i2c: 01 07 00 49 08 00 00 00 00 00 9E 0C 02 [16:33:19]RasterBufferAndPrint [16:33:19]line [16:33:19]line [16:33:19]line [16:33:19]line [16:33:19]line [16:33:19]written 0, free lines is 3243 [16:33:19]MH_Cut [16:33:19]Write to MH i2c: D1 01 00 50 08 01 2A [16:33:19]Write i2c OK [16:33:19]MH_I2C_Read... [16:33:19]Read from MH i2c: D1 [16:33:19]MH_I2C_Read... [16:33:19]Read from MH i2c: D1 01 00 [16:33:19]MH_I2C_Read... [16:33:19]Read from MH i2c: D1 01 00 50 08 00 29 [16:33:19]Write to MH i2c: 01 00 00 51 08 59 [16:33:19]Write i2c OK [16:33:19]MH_I2C_Read... [16:33:19]OFD Sender: No OFD packet to send [16:33:19]*** Cut start [16:33:19]*** Partial cut [16:33:19]*** CUTSNS_PIN = 1 [16:33:19]*** CUTSNS_PIN = 0 [16:33:20]*** Brake cut motor [16:33:20]Read from MH i2c: 01 [16:33:20]MH_I2C_Read... [16:33:20]*** Stop cut motor [16:33:20]*** Cut end [16:33:20]Read from MH i2c: 01 07 00 [16:33:20]MH_I2C_Read... [16:33:20]Read from MH i2c: 01 07 00 51 08 00 00 00 00 00 FF 0F 6E [16:33:20]process_action close_receipt done [16:33:20]requested_data is exist [16:33:20]produce_requested_data [16:33:20]requested_item fm.sn is exist - process it [16:33:20]wFMCommunicate request_size=4 [16:33:20]MH_SAM_APDU [16:33:20]CAPDU: 80 11 00 00 [16:33:20]Write to MH i2c: E2 08 00 52 08 80 11 00 00 00 00 00 00 D4 [16:33:20]Write i2c OK [16:33:20]MH_I2C_Read... [16:33:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:20]Read from MH i2c: E2 [16:33:20]MH_I2C_Read... [16:33:20]Read from MH i2c: E2 17 00 [16:33:20]MH_I2C_Read... [16:33:20]Read from MH i2c: E2 17 00 52 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 27 [16:33:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:33:20]wFMCommunicate OK [16:33:20]requested_item fd.num is exist - process it [16:33:20]SAM_PROTO_GetFieldsCounters [16:33:20]wFMCommunicate request_size=4 [16:33:20]MH_SAM_APDU [16:33:20]CAPDU: 80 13 00 00 [16:33:20]Write to MH i2c: E2 08 00 53 08 80 13 00 00 00 00 00 00 D7 [16:33:20]Write i2c OK [16:33:20]MH_I2C_Read... [16:33:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:33:20]Read from MH i2c: E2 [16:33:20]MH_I2C_Read... [16:33:20]Read from MH i2c: E2 62 00 [16:33:20]MH_I2C_Read... [16:33:20]Read from MH i2c: E2 62 00 53 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 4D 2C 01 00 0E 04 04 00 74 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 76 [16:33: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 4D 2C 01 00 0E 04 04 00 74 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 [16:33:20]wFMCommunicate OK [16:33:20]SAM_PROTO_GetFieldsCounters done [16:33:20]requested_item shift.num is exist - process it [16:33:20]requested_item shift.opened is exist - process it [16:33:20]req_shift_opened [16:33:20]FM_GetShiftState [16:33:20]SAM_PROTO_GetShiftState [16:33:20]wFMCommunicate request_size=4 [16:33:20]MH_SAM_APDU [16:33:20]CAPDU: 80 13 01 00 [16:33:20]Write to MH i2c: E2 08 00 54 08 80 13 01 00 00 00 00 00 D9 [16:33:20]Write i2c OK [16:33:20]MH_I2C_Read... [16:33:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:20]Read from MH i2c: E2 [16:33:20]MH_I2C_Read... [16:33:20]Read from MH i2c: E2 0E 00 [16:33:20]MH_I2C_Read... [16:33:20]Read from MH i2c: E2 0E 00 54 08 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 20 [16:33:20]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [16:33:20]wFMCommunicate OK [16:33:20]SAM_PROTO_GetShiftState done [16:33:20]FM_GetShiftState done [16:33:20]req_shift_opened done [16:33:20]requested_item shift.open_date is exist - process it [16:33:20]req_shift_open_date [16:33:20]req_shift_open_date done [16:33:20]produce_requested_data done [16:33:20]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76877,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [16:33:20]process_action_free close_receipt [16:33:20]json_value_free [16:33:20]json_value_free done [16:33:20]process_json_proto returns [16:33:20]Send response to host [16:33:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76877,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [16:33:20]free response buf [16:33:20]execute_script done [16:33:20]execute_script returns [16:33:20]free content buf [16:33:20]Sock 7.Close socket [16:33:20]Sock 7.Thread stoped [16:33:24]OFD Sender: No OFD packet to send [16:33:29]OFD Sender: No OFD packet to send [16:33:34]OFD Sender: No OFD packet to send [16:33:39]OFD Sender: No OFD packet to send [16:33:44]OFD Sender: No OFD packet to send [16:33:49]OFD Sender: No OFD packet to send [16:33:54]OFD Sender: No OFD packet to send [16:33:59]OFD Sender: No OFD packet to send [16:34:04]OFD Sender: No OFD packet to send [16:34:09]OFD Sender: No OFD packet to send [16:34:14]OFD Sender: No OFD packet to send [16:34:19]OFD Sender: No OFD packet to send [16:34:24]OFD Sender: No OFD packet to send [16:34:29]OFD Sender: No OFD packet to send [16:34:34]OFD Sender: No OFD packet to send [16:34:39]OFD Sender: No OFD packet to send [16:34:44]OFD Sender: No OFD packet to send [16:34:49]OFD Sender: No OFD packet to send [16:34:54]OFD Sender: No OFD packet to send [16:34:59]OFD Sender: No OFD packet to send [16:35:04]OFD Sender: No OFD packet to send [16:35:09]OFD Sender: No OFD packet to send [16:35:14]OFD Sender: No OFD packet to send [16:35:19]OFD Sender: No OFD packet to send [16:35:24]OFD Sender: No OFD packet to send [16:35:29]OFD Sender: No OFD packet to send [16:35:34]OFD Sender: No OFD packet to send [16:35:39]OFD Sender: No OFD packet to send [16:35:44]OFD Sender: No OFD packet to send [16:35:49]OFD Sender: No OFD packet to send [16:35:54]OFD Sender: No OFD packet to send [16:35:59]OFD Sender: No OFD packet to send [16:36:04]OFD Sender: No OFD packet to send [16:36:09]OFD Sender: No OFD packet to send [16:36:14]OFD Sender: No OFD packet to send [16:36:19]OFD Sender: No OFD packet to send [16:36:24]OFD Sender: No OFD packet to send [16:36:29]OFD Sender: No OFD packet to send [16:36:34]OFD Sender: No OFD packet to send [16:36:39]OFD Sender: No OFD packet to send [16:36:44]OFD Sender: No OFD packet to send [16:36:49]OFD Sender: No OFD packet to send [16:36:54]OFD Sender: No OFD packet to send [16:36:59]OFD Sender: No OFD packet to send [16:37:04]OFD Sender: No OFD packet to send [16:37:09]OFD Sender: No OFD packet to send [16:37:14]OFD Sender: No OFD packet to send [16:37:19]OFD Sender: No OFD packet to send [16:37:24]OFD Sender: No OFD packet to send [16:37:29]OFD Sender: No OFD packet to send [16:37:34]OFD Sender: No OFD packet to send [16:37:39]OFD Sender: No OFD packet to send [16:37:44]OFD Sender: No OFD packet to send [16:37:49]OFD Sender: No OFD packet to send [16:37:54]OFD Sender: No OFD packet to send [16:37:59]OFD Sender: No OFD packet to send [16:38:04]OFD Sender: No OFD packet to send [16:38:09]OFD Sender: No OFD packet to send [16:38:14]OFD Sender: No OFD packet to send [16:38:19]OFD Sender: No OFD packet to send [16:38:24]OFD Sender: No OFD packet to send [16:38:29]OFD Sender: No OFD packet to send [16:38:34]OFD Sender: No OFD packet to send [16:38:39]OFD Sender: No OFD packet to send [16:38:44]OFD Sender: No OFD packet to send [16:38:49]OFD Sender: No OFD packet to send [16:38:54]OFD Sender: No OFD packet to send [16:38:59]OFD Sender: No OFD packet to send [16:39:04]OFD Sender: No OFD packet to send [16:39:09]OFD Sender: No OFD packet to send [16:39:14]OFD Sender: No OFD packet to send [16:39:19]OFD Sender: No OFD packet to send [16:39:24]OFD Sender: No OFD packet to send [16:39:30]OFD Sender: No OFD packet to send [16:39:35]OFD Sender: No OFD packet to send [16:39:40]OFD Sender: No OFD packet to send [16:39:45]OFD Sender: No OFD packet to send [16:39:50]OFD Sender: No OFD packet to send [16:39:55]OFD Sender: No OFD packet to send [16:40:00]OFD Sender: No OFD packet to send [16:40:05]OFD Sender: No OFD packet to send [16:40:10]OFD Sender: No OFD packet to send [16:40:15]OFD Sender: No OFD packet to send [16:40:20]OFD Sender: No OFD packet to send [16:40:25]OFD Sender: No OFD packet to send [16:40:30]OFD Sender: No OFD packet to send [16:40:35]OFD Sender: No OFD packet to send [16:40:40]OFD Sender: No OFD packet to send [16:40:45]OFD Sender: No OFD packet to send [16:40:50]OFD Sender: No OFD packet to send [16:40:55]OFD Sender: No OFD packet to send [16:41:00]OFD Sender: No OFD packet to send [16:41:05]OFD Sender: No OFD packet to send [16:41:10]OFD Sender: No OFD packet to send [16:41:15]OFD Sender: No OFD packet to send [16:41:20]OFD Sender: No OFD packet to send [16:41:25]OFD Sender: No OFD packet to send [16:41:30]OFD Sender: No OFD packet to send [16:41:35]OFD Sender: No OFD packet to send [16:41:40]OFD Sender: No OFD packet to send [16:41:45]OFD Sender: No OFD packet to send [16:41:50]OFD Sender: No OFD packet to send [16:41:55]OFD Sender: No OFD packet to send [16:42:00]OFD Sender: No OFD packet to send [16:42:05]OFD Sender: No OFD packet to send [16:42:10]OFD Sender: No OFD packet to send [16:42:15]OFD Sender: No OFD packet to send [16:42:20]OFD Sender: No OFD packet to send [16:42:25]OFD Sender: No OFD packet to send [16:42:30]OFD Sender: No OFD packet to send [16:42:35]OFD Sender: No OFD packet to send [16:42:40]OFD Sender: No OFD packet to send [16:42:45]OFD Sender: No OFD packet to send [16:42:50]OFD Sender: No OFD packet to send [16:42:55]OFD Sender: No OFD packet to send [16:43:00]OFD Sender: No OFD packet to send [16:43:05]OFD Sender: No OFD packet to send [16:43:10]OFD Sender: No OFD packet to send [16:43:15]OFD Sender: No OFD packet to send [16:43:20]OFD Sender: No OFD packet to send [16:43:25]OFD Sender: No OFD packet to send [16:43:30]OFD Sender: No OFD packet to send [16:43:35]OFD Sender: No OFD packet to send [16:43:40]OFD Sender: No OFD packet to send [16:43:45]OFD Sender: No OFD packet to send [16:43:50]OFD Sender: No OFD packet to send [16:43:55]OFD Sender: No OFD packet to send [16:44:00]OFD Sender: No OFD packet to send [16:44:05]OFD Sender: No OFD packet to send [16:44:10]OFD Sender: No OFD packet to send [16:44:15]OFD Sender: No OFD packet to send [16:44:20]OFD Sender: No OFD packet to send [16:44:25]OFD Sender: No OFD packet to send [16:44:30]OFD Sender: No OFD packet to send [16:44:35]OFD Sender: No OFD packet to send [16:44:40]OFD Sender: No OFD packet to send [16:44:45]OFD Sender: No OFD packet to send [16:44:50]OFD Sender: No OFD packet to send [16:44:55]OFD Sender: No OFD packet to send [16:45:00]OFD Sender: No OFD packet to send [16:45:05]OFD Sender: No OFD packet to send [16:45:10]OFD Sender: No OFD packet to send [16:45:15]OFD Sender: No OFD packet to send [16:45:20]OFD Sender: No OFD packet to send [16:45:25]OFD Sender: No OFD packet to send [16:45:30]OFD Sender: No OFD packet to send [16:45:35]OFD Sender: No OFD packet to send [16:45:40]OFD Sender: No OFD packet to send [16:45:45]OFD Sender: No OFD packet to send [16:45:50]OFD Sender: No OFD packet to send [16:45:55]OFD Sender: No OFD packet to send [16:46:00]OFD Sender: No OFD packet to send [16:46:05]OFD Sender: No OFD packet to send [16:46:10]OFD Sender: No OFD packet to send [16:46:15]OFD Sender: No OFD packet to send [16:46:20]OFD Sender: No OFD packet to send [16:46:25]OFD Sender: No OFD packet to send [16:46:30]OFD Sender: No OFD packet to send [16:46:35]OFD Sender: No OFD packet to send [16:46:40]OFD Sender: No OFD packet to send [16:46:40]accept exits with 9 [16:46:40]New connection [16:46:40]New thread 3067317604 created [16:46:40]Thread 3067460964 joined [16:46:40]Waiting for new connection... [16:46:40] Sock 9.Parse request [16:46:40]Sock 9.Check first char [16:46:40]Sock 9.First char is OK [16:46:40]request: POST /json_proto HTTP/1.0 [16:46:40]Method: POST [16:46:40]URL: /json_proto [16:46:40]Method is POST - this is cgi request [16:46:40]url: /json_proto [16:46:40]query_string will be loaded in cgi processing [16:46:40]execute_cgi json_proto POST (null) [16:46:40]execute_cgi path=json_proto method=POST [16:46:40]POST find Content-Length [16:46:40]Host: 172.17.62.5:8080 [16:46:40]Content-Length: 677 [16:46:40]Content-Type: application/json [16:46:40] [16:46:40]POST finish read [16:46:40]Found Content-Length = 677 [16:46:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191422", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 3.110, "sum" : 200.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:40]execute_script... [16:46: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)191422", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 3.110, "sum" : 200.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:40]POST & json_proto [16:46:40]process_json_proto [16:46:40]json parsed OK: [16:46:40]protocol is kg_v1.0 [16:46:40]action value=close_receipt [16:46:40]process_action close_receipt [16:46:40]cmd_close_receipt [16:46:40]MH_GetDate [16:46:40]Write to MH i2c: F0 00 00 55 08 4C [16:46:40]Write i2c OK [16:46:40]MH_I2C_Read... [16:46:40]Read from MH i2c: F0 [16:46:40]MH_I2C_Read... [16:46:40]Read from MH i2c: F0 09 00 [16:46:40]MH_I2C_Read... [16:46:40]Read from MH i2c: F0 09 00 55 08 00 F1 42 25 66 F4 E9 65 64 B9 [16:46:40]GetLastDocTimeStamp 1713717198 [16:46:40]current date 1713718001 [16:46:40]FM_GetShiftState [16:46:40]SAM_PROTO_GetShiftState [16:46:40]wFMCommunicate request_size=4 [16:46:40]MH_SAM_APDU [16:46:40]CAPDU: 80 13 01 00 [16:46:40]Write to MH i2c: E2 08 00 56 08 80 13 01 00 00 00 00 00 DB [16:46:40]Write i2c OK [16:46:40]MH_I2C_Read... [16:46:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:40]Read from MH i2c: E2 [16:46:40]MH_I2C_Read... [16:46:40]Read from MH i2c: E2 0E 00 [16:46:40]MH_I2C_Read... [16:46:40]Read from MH i2c: E2 0E 00 56 08 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 22 [16:46:40]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [16:46:40]wFMCommunicate OK [16:46:40]SAM_PROTO_GetShiftState done [16:46:40]FM_GetShiftState done [16:46:40]opened in 1713658965 [16:46:40]opened+sec_in_day 1713745365 [16:46:40]quantity*price = 20028 [16:46:40]sum+1 = 20029 [16:46:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 134 21.04.2024 16:46 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76878 ФПД: 173374842671648 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T164641&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76878&fm=173374842671648&tin=02508201610067®Number=0000000000091573&sum=20000 [16:46:41]StoreToDocumentArchive [16:46:41]shift 372 fd 76878 [16:46:41]save to /storage/0372/doc_00076878 [16:46:41]save last doc name /storage/0372/doc_00076878 to /storage/kkm_last_doc_name [16:46:41]save OK [16:46:41]Clear old archive folders... [16:46:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:46:41]tlvbuf is 017E22D0 [16:46:41]SAM_PROTO_ClearQueue [16:46:41]wFMCommunicate request_size=4 [16:46:41]MH_SAM_APDU [16:46:41]CAPDU: 80 09 00 00 [16:46:41]Write to MH i2c: E2 08 00 63 08 80 09 00 00 00 00 00 00 DD [16:46:41]Write i2c OK [16:46:41]MH_I2C_Read... [16:46:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:46:41]Read from MH i2c: E2 [16:46:41]MH_I2C_Read... [16:46:41]Read from MH i2c: E2 03 00 [16:46:41]MH_I2C_Read... [16:46:41]Read from MH i2c: E2 03 00 63 08 00 90 00 DF [16:46:41]RAPDU: 90 00 [16:46:41]wFMCommunicate OK [16:46:41]SAM_PROTO_ClearQueue done [16:46:41]KKMCreateOFDPacket [16:46:41]OFDProtocolAddRootSTLVToBuf [16:46:41]FM_MakeSignedData [16:46:41]FM_MakeSignedData [16:46:41]SAM_PROTO_SignData [16:46:41]wFMCommunicate request_size=4 [16:46:41]MH_SAM_APDU [16:46:41]CAPDU: 80 0D 01 02 [16:46:41]Write to MH i2c: E2 08 00 64 08 80 0D 01 02 00 00 00 00 E5 [16:46:41]Write i2c OK [16:46:41]MH_I2C_Read... [16:46:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:46:41]Read from MH i2c: E2 [16:46:41]MH_I2C_Read... [16:46:41]Read from MH i2c: E2 03 00 [16:46:41]MH_I2C_Read... [16:46:41]Read from MH i2c: E2 03 00 64 08 00 90 00 E0 [16:46:41]RAPDU: 90 00 [16:46:41]wFMCommunicate OK [16:46:41]wFMCommunicate request_size=255 [16:46:41]MH_SAM_APDU [16:46: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 26 0C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3C 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 F1 42 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 4E 2C 01 00 35 04 06 00 9D [16:46:41]Write to MH i2c: E2 02 01 65 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 26 0C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3C 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 F1 42 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 4E 2C 01 00 35 04 06 00 9D 00 00 A1 [16:46:41]Write i2c OK [16:46:41]MH_I2C_Read... [16:46:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:42]Read from MH i2c: E2 [16:46:42]MH_I2C_Read... [16:46:42]Read from MH i2c: E2 03 00 [16:46:42]MH_I2C_Read... [16:46:42]Read from MH i2c: E2 03 00 65 08 00 90 00 E1 [16:46:42]RAPDU: 90 00 [16:46:42]wFMCommunicate OK [16:46:42]wFMCommunicate request_size=10 [16:46:42]MH_SAM_APDU [16:46:42]CAPDU: 80 0D 02 02 05 AE F9 E9 12 20 [16:46:42]Write to MH i2c: E2 0D 00 66 08 80 0D 02 02 05 00 AE F9 E9 12 20 00 00 B4 [16:46:42]Write i2c OK [16:46:42]MH_I2C_Read... [16:46:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:42]Read from MH i2c: E2 [16:46:42]MH_I2C_Read... [16:46:42]Read from MH i2c: E2 03 00 [16:46:42]MH_I2C_Read... [16:46:42]Read from MH i2c: E2 03 00 66 08 00 90 00 E2 [16:46:42]RAPDU: 90 00 [16:46:42]wFMCommunicate OK [16:46:42]wFMCommunicate request_size=4 [16:46:42]MH_SAM_APDU [16:46:42]CAPDU: 80 0D 03 02 [16:46:42]Write to MH i2c: E2 08 00 67 08 80 0D 03 02 00 00 00 00 EA [16:46:42]Write i2c OK [16:46:42]MH_I2C_Read... [16:46:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:46:42]Read from MH i2c: E2 [16:46:42]MH_I2C_Read... [16:46:42]Read from MH i2c: E2 0B 00 [16:46:42]MH_I2C_Read... [16:46:42]Read from MH i2c: E2 0B 00 67 08 00 37 50 DA E9 CE 6B 0F AA 90 00 27 [16:46:42]RAPDU: 37 50 DA E9 CE 6B 0F AA 90 00 [16:46:42]wFMCommunicate OK [16:46:42]SAM_PROTO_SignData done [16:46:42]FM_MakeSignedData done [16:46:42]CreateOFDProtocolMessage [16:46:42]wFMCommunicate request_size=4 [16:46:42]MH_SAM_APDU [16:46:42]CAPDU: 80 11 00 00 [16:46:42]Write to MH i2c: E2 08 00 68 08 80 11 00 00 00 00 00 00 EA [16:46:42]Write i2c OK [16:46:42]MH_I2C_Read... [16:46:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:42]Read from MH i2c: E2 [16:46:42]MH_I2C_Read... [16:46:42]Read from MH i2c: E2 17 00 [16:46:42]MH_I2C_Read... [16:46:42]Read from MH i2c: E2 17 00 68 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 3D [16:46:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:46:42]wFMCommunicate OK [16:46:42]CreateOFDProtocolMessage done [16:46:42]OFDSenderStorePacket 76878 [16:46:42]StoreOFDPacket docnum=76878 [16:46:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 B8 DE 07 01 FF DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 0C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3C 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 F1 42 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 4E 2C 01 00 35 04 06 00 9D AE F9 E9 12 20 37 50 DA E9 CE 6B 0F AA [16:46:42]CheckFolder [16:46:42]dirname=/storage/ofd_packets [16:46:42]CheckFolder done [16:46:42]ProducePacketName [16:46:42]name=ofd_packets/00076878 [16:46:42]NVStorageSaveData ofd_packets/00076878 [16:46:42]File name is /storage/ofd_packets/00076878 [16:46:42]Write 301 bytes [16:46:42]NVStorageSaveData done [16:46:42]OFDSenderStorePacket done [16:46:42]KKMCreateOFDPacket done [16:46:42]NVStorageSaveData kkm_last_timestamp [16:46:42]File name is /storage/kkm_last_timestamp [16:46:42]Write 4 bytes [16:46:42]NVStorageSaveData done [16:46:42]ExternCall_PrintAddStr [16:46:42]wPrintStart [16:46:42]Write to MH i2c: 01 00 00 69 08 71 [16:46:42]Write i2c OK [16:46:42]MH_I2C_Read... [16:46:42]Read from MH i2c: 01 [16:46:42]MH_I2C_Read... [16:46:42]Read from MH i2c: 01 07 00 [16:46:42]MH_I2C_Read... [16:46:42]Read from MH i2c: 01 07 00 69 08 00 00 00 00 00 FF 0F 86 [16:46:42]RasterBufferAndPrint [16:46:42]line Счет N : (1)191422 [16:46:42]line ИНН: 02508201610067 [16:46:42]line Контрольно-Кассовый Чек [16:46:42]line ПРОДАЖА [16:46:42]line ТРК (МРК, ГНК) : 22 [16:46:42]line Товар: 2710124130 [16:46:42]line Аи-92-К-5 [16:46:42]line 3.110 * 64.40 [16:46:42]line = 200.28 [16:46:42]line НДС 12% НСП 1% [16:46:42]line > о реализуемом товаре [16:46:42]line ОКРУГЛЕНИЕ: -0.28 [16:46:42]line ИТОГО: 200.00 [16:46:42]line Внесено: 200.00 [16:46:42]line СДАЧА: 0.00 [16:46:42]line НСП 1% : 1.77 [16:46:42]line НДС 12% : 21.27 [16:46:42]line Наличными: 200.00 [16:46:42]line Безнал.: 0.00 [16:46:42]line Место: АЗС № 106 "Партнер Нефть" [16:46:42]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [16:46:42]line СНО: Общий режим [16:46:42]line Чек 134 21.04.2024 16:46 [16:46:42]line Смена: 372 ФФД: 1.0 [16:46:42]line ЗНМ: 0300000141 [16:46:42]line РНМ: 0000000000091573 [16:46:42]line Версия ККМ: 001 [16:46:42]line ФМ: 0000000000874652 [16:46:42]line ФД: 76878 [16:46:42]line ФПД: 173374842671648 [16:46:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T164641&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76878&fm=173374842671648&tin=02508201610067®Number=0000000000091573&sum=20000 [16:46:42]OFD Sender: Processing packet 76878 [packets to send 129, broken 128] [16:46:42]ProducePacketName [16:46:42]name=ofd_packets/00076878 [16:46:42]OFD Sender: To server: pG, [16:46:42]CommunicateWithHost lk.salyk.kg:30040 [16:46:42]ConnectInit lk.salyk.kg [16:46:42]written 0, free lines is 4095 [16:46:43]Write to MH i2c: 01 00 00 93 08 9B [16:46:43]Write i2c OK [16:46:43]MH_I2C_Read... [16:46:43]Read from MH i2c: 01 [16:46:43]MH_I2C_Read... [16:46:43]Read from MH i2c: 01 07 00 [16:46:43]MH_I2C_Read... [16:46:43]Read from MH i2c: 01 07 00 93 08 00 00 00 00 00 E9 0C 97 [16:46:43]RasterBufferAndPrint [16:46:43]line [16:46:43]line [16:46:43]line [16:46:43]line [16:46:43]line [16:46:43]written 0, free lines is 3311 [16:46:43]MH_Cut [16:46:43]Write to MH i2c: D1 01 00 9A 08 01 74 [16:46:43]Write i2c OK [16:46:43]MH_I2C_Read... [16:46:43]Read from MH i2c: D1 [16:46:43]MH_I2C_Read... [16:46:43]Read from MH i2c: D1 01 00 [16:46:43]MH_I2C_Read... [16:46:43]Read from MH i2c: D1 01 00 9A 08 00 73 [16:46:43]Write to MH i2c: 01 00 00 9B 08 A3 [16:46:43]Write i2c OK [16:46:43]MH_I2C_Read... [16:46:43]*** Cut start [16:46:43]*** Partial cut [16:46:43]*** CUTSNS_PIN = 1 [16:46:43]*** CUTSNS_PIN = 0 [16:46:44]*** Brake cut motor [16:46:44]Read from MH i2c: 01 [16:46:44]MH_I2C_Read... [16:46:44]*** Stop cut motor [16:46:44]*** Cut end [16:46:44]Read from MH i2c: 01 07 00 [16:46:44]MH_I2C_Read... [16:46:44]Read from MH i2c: 01 07 00 9B 08 00 00 00 00 00 FF 0F B8 [16:46:44]process_action close_receipt done [16:46:44]requested_data is exist [16:46:44]produce_requested_data [16:46:44]requested_item fm.sn is exist - process it [16:46:44]wFMCommunicate request_size=4 [16:46:44]MH_SAM_APDU [16:46:44]CAPDU: 80 11 00 00 [16:46:44]Write to MH i2c: E2 08 00 9C 08 80 11 00 00 00 00 00 00 1E [16:46:44]Write i2c OK [16:46:44]MH_I2C_Read... [16:46:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:44]Read from MH i2c: E2 [16:46:44]MH_I2C_Read... [16:46:44]Read from MH i2c: E2 17 00 [16:46:44]MH_I2C_Read... [16:46:44]Read from MH i2c: E2 17 00 9C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 71 [16:46:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:46:44]wFMCommunicate OK [16:46:44]requested_item fd.num is exist - process it [16:46:44]SAM_PROTO_GetFieldsCounters [16:46:44]wFMCommunicate request_size=4 [16:46:44]MH_SAM_APDU [16:46:44]CAPDU: 80 13 00 00 [16:46:44]Write to MH i2c: E2 08 00 9D 08 80 13 00 00 00 00 00 00 21 [16:46:44]Write i2c OK [16:46:44]MH_I2C_Read... [16:46:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:46:44]Read from MH i2c: E2 [16:46:44]MH_I2C_Read... [16:46:44]Read from MH i2c: E2 62 00 [16:46:44]MH_I2C_Read... [16:46:44]Read from MH i2c: E2 62 00 9D 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 4E 2C 01 00 0E 04 04 00 74 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 C4 [16:46: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 4E 2C 01 00 0E 04 04 00 74 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 [16:46:44]wFMCommunicate OK [16:46:44]SAM_PROTO_GetFieldsCounters done [16:46:44]requested_item shift.num is exist - process it [16:46:44]requested_item shift.opened is exist - process it [16:46:44]req_shift_opened [16:46:44]FM_GetShiftState [16:46:44]SAM_PROTO_GetShiftState [16:46:44]wFMCommunicate request_size=4 [16:46:44]MH_SAM_APDU [16:46:44]CAPDU: 80 13 01 00 [16:46:44]Write to MH i2c: E2 08 00 9E 08 80 13 01 00 00 00 00 00 23 [16:46:44]Write i2c OK [16:46:44]MH_I2C_Read... [16:46:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:44]Read from MH i2c: E2 [16:46:44]MH_I2C_Read... [16:46:44]Read from MH i2c: E2 0E 00 [16:46:44]MH_I2C_Read... [16:46:44]Read from MH i2c: E2 0E 00 9E 08 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 6A [16:46:44]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [16:46:44]wFMCommunicate OK [16:46:44]SAM_PROTO_GetShiftState done [16:46:44]FM_GetShiftState done [16:46:44]req_shift_opened done [16:46:44]requested_item shift.open_date is exist - process it [16:46:44]req_shift_open_date [16:46:44]req_shift_open_date done [16:46:44]produce_requested_data done [16:46:44]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76878,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [16:46:44]process_action_free close_receipt [16:46:44]json_value_free [16:46:44]json_value_free done [16:46:44]process_json_proto returns [16:46:44]Send response to host [16:46:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76878,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [16:46:44]free response buf [16:46:44]execute_script done [16:46:44]execute_script returns [16:46:44]free content buf [16:46:44]Sock 9.Close socket [16:46:44]Sock 9.Thread stoped [16:46:47]ConnectInit Can't take IP for lk.salyk.kg [16:46:47]CommunicateWithHost connect error [16:46:47]CommunicateWithHost err = -1 [16:46:47]OFD Sender: Server communicate error [16:46:52]OFD Sender: Processing packet 76878 [packets to send 129, broken 128] [16:46:52]ProducePacketName [16:46:52]name=ofd_packets/00076878 [16:46:52]OFD Sender: To server: pG, [16:46:52]CommunicateWithHost lk.salyk.kg:30040 [16:46:52]ConnectInit lk.salyk.kg [16:46:53]recv_with_timeout no data received [16:46:57]ConnectInit Can't take IP for lk.salyk.kg [16:46:57]CommunicateWithHost connect error [16:46:57]CommunicateWithHost err = -1 [16:46:57]OFD Sender: Server communicate error [16:47:02]OFD Sender: Processing packet 76878 [packets to send 129, broken 128] [16:47:02]ProducePacketName [16:47:02]name=ofd_packets/00076878 [16:47:02]OFD Sender: To server: pG, [16:47:02]CommunicateWithHost lk.salyk.kg:30040 [16:47:02]ConnectInit lk.salyk.kg [16:47:02]Connected sock=10 [16: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 34 36 35 32 0F 01 00 00 B8 DE 07 01 FF DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 0C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3C 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 F1 42 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 4E 2C 01 00 35 04 06 00 9D AE F9 E9 12 20 37 50 DA E9 CE 6B 0F AA [16:47:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 3B 31 47 00 16 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 34 36 35 32 10 04 04 00 4E 2C 01 00 F4 03 04 00 8B EA 24 66 B6 04 01 00 00 8F B8 7B CB 76 59 81 AF [16:47:03]CommunicateWithHost err = 0 [16:47:03]CheckOFDResponse [16:47:03]1017 (14) - 77093643461234 [16:47:03]1041 (16) - 0000000000874652 [16:47:03]1040 (4) - 76878 [16:47:03]1012 (4) - 21.04.2024 10:29 [16:47:03]1206 (1) - 0 [16:47:03]OFD Sender: Remove packet 76878 [16:47:03]ProducePacketName [16:47:03]name=ofd_packets/00076878 [16:47:03]NVStorageDeleteData [16:47:03]OFD Sender: No OFD packet to send [16:47:08]OFD Sender: No OFD packet to send [16:47:13]OFD Sender: No OFD packet to send [16:47:18]OFD Sender: No OFD packet to send [16:47:23]OFD Sender: No OFD packet to send [16:47:28]OFD Sender: No OFD packet to send [16:47:33]OFD Sender: No OFD packet to send [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]/dev/ttyS4 opened [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CA FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 6F [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:09]*** [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:09]*** MH1903S init start (LINUX_LIGHT) [00:00:09]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:09]*** Serial: 3139303353513838 54000000005725CA (1903SQ88T) [00:00:09]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:09]*** step 0: 5000 (2650, 2350 REF) [00:00:09]*** step 1: 4835 (2500, 2335 REF) [00:00:09]*** step 2: 4676 (2440, 2236 REF) [00:00:09]*** step 3: 4523 (2280, 2243 REF) [00:00:09]*** step 4: 4376 (2160, 2216 REF) [00:00:09]*** step 5: 4235 (2050, 2185 REF) [00:00:09]*** step 6: 4098 (1950, 2148 REF) [00:00:09]*** step 7: 3967 (1870, 2097 REF) [00:00:09]*** step 8: 3840 (1828, 2012 REF) [00:00:09]*** step 9: 3719 (1728, 1991 REF) [00:00:09]*** step 10: 3601 (1675, 1926 REF) [00:00:09]*** step 11: 3488 (1635, 1853 REF) [00:00:09]*** step 12: 3379 (1595, 1784 REF) [00:00:09]*** step 13: 3275 (1565, 1710 REF) [00:00:09]*** step 14: 3174 (1543, 1631 REF) [00:00:09]*** step 15: 3077 (1523, 1554 REF) [00:00:09]*** step 16: 2983 (1503, 1480 REF) [00:00:09]*** step 17: 2893 (1486, 1407 REF) [00:00:09]*** step 18: 2806 (1466, 1340 REF) [00:00:09]*** step 19: 2723 (1426, 1297 REF) [00:00:09]*** step 20: 2642 (1406, 1236 REF) [00:00:09]*** step 21: 2565 (1384, 1181 REF) [00:00:09]*** step 22: 2490 (1364, 1126 REF) [00:00:09]*** step 23: 2418 (1344, 1074 REF) [00:00:09]*** step 24: 2349 (1322, 1027 REF) [00:00:09]*** step 25: 2283 (1302, 981 REF) [00:00:09]*** step 26: 2218 (1282, 936 REF) [00:00:09]*** step 27: 2157 (1262, 895 REF) [00:00:09]*** step 28: 2097 (1242, 855 REF) [00:00:09]*** step 29: 2040 (1222, 818 REF) [00:00:09]*** step 30: 1985 (1202, 783 REF) [00:00:09]*** step 31: 1932 (1191, 741 REF) [00:00:09]*** step 32: 1880 (1181, 699 REF) [00:00:09]*** step 33: 1831 (1171, 660 REF) [00:00:09]*** step 34: 1784 (1161, 623 REF) [00:00:09]*** step 35: 1738 (1151, 587 REF) [00:00:09]*** step 36: 1694 (1141, 553 REF) [00:00:09]*** step 37: 1652 (1131, 521 REF) [00:00:09]*** step 38: 1611 (1121, 490 REF) [00:00:09]*** step 39: 1572 (1111, 461 REF) [00:00:09]*** step 40: 1534 (1103, 431 REF) [00:00:09]*** step 41: 1497 (1093, 404 REF) [00:00:09]*** step 42: 1462 (1083, 379 REF) [00:00:09]*** step 43: 1428 (1073, 355 REF) [00:00:09]*** step 44: 1396 (1063, 333 REF) [00:00:09]*** step 45: 1365 (1053, 312 REF) [00:00:09]*** step 46: 1334 (1043, 291 REF) [00:00:09]*** step 47: 1305 (1033, 272 REF) [00:00:09]*** step 48: 1277 (1023, 254 REF) [00:00:09]*** step 49: 1250 (1013, 237 REF) [00:00:09]*** step 50: 1224 (990, 234 REF) [00:00:09]*** step 51: 1199 (980, 219 REF) [00:00:09]*** step 52: 1175 (970, 205 REF) [00:00:09]*** step 53: 1152 (960, 192 REF) [00:00:09]*** step 54: 1130 (950, 180 REF) [00:00:09]*** step 55: 1108 (940, 168 REF) [00:00:09]*** step 56: 1088 (930, 158 REF) [00:00:09]*** step 57: 1068 (920, 148 REF) [00:00:09]*** step 58: 1049 (910, 139 REF) [00:00:09]*** step 59: 1030 (900, 130 REF) [00:00:09]*** step 60: 1012 (890, 122 REF) [00:00:09]*** step 61: 995 (880, 115 REF) [00:00:09]*** step 62: 979 (870, 109 REF) [00:00:09]*** step 63: 963 (860, 103 REF) [00:00:09]*** step 64: 948 (850, 98 REF) [00:00:09]*** step 65: 933 (840, 93 REF) [00:00:09]*** step 66: 919 (830, 89 REF) [00:00:09]*** step 67: 905 (820, 85 REF) [00:00:09]*** step 68: 892 (810, 82 REF) [00:00:09]*** step 69: 879 (800, 79 REF) [00:00:09]*** step 70: 867 (790, 77 REF) [00:00:09]*** step 71: 855 (780, 75 REF) [00:00:09]*** step 72: 844 (770, 74 REF) [00:00:09]*** step 73: 833 (760, 73 REF) [00:00:09]*** step 74: 822 (750, 72 REF) [00:00:09]*** step 75: 812 (740, 72 REF) [00:00:09]*** step 76: 803 (730, 73 REF) [00:00:09]*** step 77: 793 (720, 73 REF) [00:00:09]*** step 78: 784 (710, 74 REF) [00:00:09]*** step 79: 776 (700, 76 REF) [00:00:09]*** step 80: 767 (690, 77 REF) [00:00:09]*** step 81: 759 (680, 79 REF) [00:00:09]*** step 82: 751 (670, 81 REF) [00:00:09]*** step 83: 744 (660, 84 REF) [00:00:09]*** step 84: 737 (650, 87 REF) [00:00:09]*** step 85: 730 (640, 90 REF) [00:00:09]*** step 86: 723 (630, 93 REF) [00:00:09]*** step 87: 717 (620, 97 REF) [00:00:09]*** step 88: 710 (610, 100 REF) [00:00:09]*** step 89: 705 (600, 105 REF) [00:00:09]*** step 90: 699 [00:00:09]*** step 91: 693 [00:00:09]*** step 92: 688 [00:00:09]*** step 93: 683 [00:00:09]*** step 94: 678 [00:00:09]*** step 95: 673 [00:00:09]*** step 96: 669 [00:00:09]*** step 97: 664 [00:00:09]*** step 98: 660 [00:00:09]*** step 99: 656 [00:00:09]*** step 100: 652 [00:00:09]*** step 101: 648 [00:00:09]*** step 102: 644 [00:00:09]*** step 103: 641 [00:00:09]*** step 104: 638 [00:00:09]*** step 105: 634 [00:00:09]*** step 106: 631 [00:00:09]*** step 107: 628 [00:00:09]*** step 108: 625 [00:00:09]*** step 109: 622 [00:00:09]*** step 110: 620 [00:00:09]*** step 111: 617 [00:00:09]*** step 112: 615 [00:00:09]*** step 113: 612 [00:00:09]*** step 114: 610 [00:00:09]*** step 115: 608 [00:00:09]*** step 116: 605 [00:00:09]*** step 117: 603 [00:00:09]*** step 118: 601 [00:00:09]*** step 119: 599 [00:00:09]*** printer: Printer HW initialized [00:00:09]*** initSamCard finished [00:00:09]*** RTC: 29317443+1684400628=1713718071 [00:00:09]*** BPK Status Register BPK_RDY = 0x0 [00:00:09]*** SEN State Register SEN_STATE = 0x220ff [00:00:09]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:09]*** Analog Control Register 0 SEN_ANA0 = 0x33540623 [00:00:09]*** Is cutter blocked? [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CA FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 70 [00:00:10]Are we in boot? [00:00:10]We are not in boot now [00:00:10]Write to MH i2c: 01 00 00 04 00 04 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:10]Model is 3 [00:00:10]MH firmware is 30620 [00:00:10]MH boot firmware is 3 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:10]Write to MH i2c: D5 00 00 06 00 DA [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 07 00 F6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 07 00 00 38 43 25 66 F4 E9 65 64 AB [16:47:52]Current date/time: 21.04.2024 16:47 [16:47:52]FM_Init [16:47:52]wFMConnect [16:47:52]MH_SAM_On [16:47:52]Write to MH i2c: E0 00 00 08 00 E7 [16:47:52]Write i2c OK [16:47:52]MH_I2C_Read... [16:47:52]*** iso7816_init finished! [16:47:52]*** atr: [16:47:52]*** 0F 3B D5 18 FF 81 91 FE [16:47:52]*** 1F C3 80 73 C8 21 10 0A [16:47:52]*** 00 00 00 00 00 00 00 00 [16:47:52]*** 00 00 00 00 00 00 00 00 [16:47:52]*** 00 00 00 00 00 00 00 00 [16:47:52]*** 00 00 00 00 00 00 00 00 [16:47:52]*** 00 00 00 00 00 00 00 00 [16:47:52]*** 00 00 00 00 00 00 00 00 [16:47:52]Read from MH i2c: E0 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: E0 10 00 [16:47:52]MH_I2C_Read... [16:47:52]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:47:52]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [16:47:52]wFMCommunicate request_size=10 [16:47:52]MH_SAM_APDU [16:47:52]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [16:47:52]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [16:47:52]Write i2c OK [16:47:52]MH_I2C_Read... [16:47:52]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [16:47:52]Read from MH i2c: E2 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: E2 03 00 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [16:47:52]RAPDU: 90 00 [16:47:52]wFMCommunicate OK [16:47:52]wFMCommunicate request_size=4 [16:47:52]MH_SAM_APDU [16:47:52]CAPDU: 80 11 00 00 [16:47:52]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [16:47:52]Write i2c OK [16:47:52]MH_I2C_Read... [16:47:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:52]Read from MH i2c: E2 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: E2 17 00 [16:47:52]MH_I2C_Read... [16:47:52]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 34 36 35 32 90 00 D7 [16:47:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:47:52]wFMCommunicate OK [16:47:52]Detected FM SN is 0000000000874652 [16:47:52]Stored FM SN is 0000000000874652 [16:47:52]wFMCommunicate request_size=9 [16:47:52]MH_SAM_APDU [16:47:52]CAPDU: 80 16 00 00 04 68 2F 01 00 [16:47:52]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 68 2F 01 00 00 00 2A [16:47:52]Write i2c OK [16:47:52]MH_I2C_Read... [16:47:52]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [16:47:52]Read from MH i2c: E2 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: E2 03 00 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [16:47:52]RAPDU: 90 00 [16:47:52]wFMCommunicate OK [16:47:52]FM PIN OK [16:47:52]wFMCommunicate request_size=8 [16:47:52]MH_SAM_APDU [16:47:52]CAPDU: 80 14 04 00 03 02 00 01 [16:47:52]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [16:47:52]Write i2c OK [16:47:52]MH_I2C_Read... [16:47:52]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [16:47:52]Read from MH i2c: E2 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: E2 03 00 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [16:47:52]RAPDU: 90 00 [16:47:52]wFMCommunicate OK [16:47:52]wFMCommunicate request_size=13 [16:47:52]MH_SAM_APDU [16:47:52]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [16:47:52]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:47:52]Write i2c OK [16:47:52]MH_I2C_Read... [16:47:52]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [16:47:52]Read from MH i2c: E2 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: E2 03 00 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [16:47:52]RAPDU: 90 00 [16:47:52]wFMCommunicate OK [16:47:52]wFMCommunicate request_size=4 [16:47:52]MH_SAM_APDU [16:47:52]CAPDU: 80 11 00 00 [16:47:52]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [16:47:52]Write i2c OK [16:47:52]MH_I2C_Read... [16:47:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:52]Read from MH i2c: E2 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: E2 17 00 [16:47:52]MH_I2C_Read... [16:47:52]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 34 36 35 32 90 00 DB [16:47:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:47:52]wFMCommunicate OK [16:47:52]DocumentArchiveInit [16:47:52]Start Httpd... [16:47:52]Httpd thread 3067424100 created [16:47:52]Write to MH i2c: 01 00 00 0F 00 0F [16:47:52]Write i2c OK [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: 01 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: 01 07 00 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [16:47:52]MH Int Process started [16:47:52]Allocated Socket 8 [16:47:52]Bind OK [16:47:52]Listen OK [16:47:52]httpd running on port 8080 [16:47:52]Waiting for new connection... [16:47:52]OFD Sender: No OFD packet to send [16:47:57]OFD Sender: No OFD packet to send [16:48:02]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CA FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 6F [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: A0 *** [00:00:10]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 54000000005725CA (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: 29317474+1684400628=1713718102 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x220ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33540623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CA FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 70 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 56 43 25 66 F4 E9 65 64 C9 [16:48:22]Current date/time: 21.04.2024 16:48 [16:48:22]FM_Init [16:48:22]wFMConnect [16:48:22]MH_SAM_On [16:48:22]Write to MH i2c: E0 00 00 08 00 E7 [16:48:22]Write i2c OK [16:48:22]MH_I2C_Read... [16:48:22]*** iso7816_init finished! [16:48:22]*** atr: [16:48:22]*** 0F 3B D5 18 FF 81 91 FE [16:48:22]*** 1F C3 80 73 C8 21 10 0A [16:48:22]*** 00 00 00 00 00 00 00 00 [16:48:22]*** 00 00 00 00 00 00 00 00 [16:48:22]*** 00 00 00 00 00 00 00 00 [16:48:22]*** 00 00 00 00 00 00 00 00 [16:48:22]*** 00 00 00 00 00 00 00 00 [16:48:22]*** 00 00 00 00 00 00 00 00 [16:48:22]Read from MH i2c: E0 [16:48:22]MH_I2C_Read... [16:48:22]Read from MH i2c: E0 10 00 [16:48:22]MH_I2C_Read... [16:48:22]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [16:48:22]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [16:48:22]wFMCommunicate request_size=10 [16:48:22]MH_SAM_APDU [16:48:22]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [16:48:22]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [16:48:22]Write i2c OK [16:48:22]MH_I2C_Read... [16:48:22]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [16:48:22]Read from MH i2c: E2 [16:48:22]MH_I2C_Read... [16:48:22]Read from MH i2c: E2 03 00 [16:48:22]MH_I2C_Read... [16:48:22]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [16:48:22]RAPDU: 90 00 [16:48:22]wFMCommunicate OK [16:48:22]wFMCommunicate request_size=4 [16:48:22]MH_SAM_APDU [16:48:22]CAPDU: 80 11 00 00 [16:48:22]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [16:48:22]Write i2c OK [16:48:22]MH_I2C_Read... [16:48:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:22]Read from MH i2c: E2 [16:48:22]MH_I2C_Read... [16:48:22]Read from MH i2c: E2 17 00 [16:48:22]MH_I2C_Read... [16:48:22]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 D7 [16:48:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:48:22]wFMCommunicate OK [16:48:22]Detected FM SN is 0000000000874652 [16:48:22]Stored FM SN is 0000000000874652 [16:48:22]wFMCommunicate request_size=9 [16:48:22]MH_SAM_APDU [16:48:22]CAPDU: 80 16 00 00 04 68 2F 01 00 [16:48:22]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 68 2F 01 00 00 00 2A [16:48:22]Write i2c OK [16:48:22]MH_I2C_Read... [16:48:22]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [16:48:22]Read from MH i2c: E2 [16:48:22]MH_I2C_Read... [16:48:22]Read from MH i2c: E2 03 00 [16:48:22]MH_I2C_Read... [16:48:22]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [16:48:22]RAPDU: 90 00 [16:48:22]wFMCommunicate OK [16:48:22]FM PIN OK [16:48:22]wFMCommunicate request_size=8 [16:48:22]MH_SAM_APDU [16:48:22]CAPDU: 80 14 04 00 03 02 00 01 [16:48:22]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [16:48:22]Write i2c OK [16:48:22]MH_I2C_Read... [16:48:22]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [16:48:22]Read from MH i2c: E2 [16:48:22]MH_I2C_Read... [16:48:22]Read from MH i2c: E2 03 00 [16:48:22]MH_I2C_Read... [16:48:22]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [16:48:22]RAPDU: 90 00 [16:48:22]wFMCommunicate OK [16:48:22]wFMCommunicate request_size=13 [16:48:22]MH_SAM_APDU [16:48:22]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [16:48:22]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [16:48:22]Write i2c OK [16:48:22]MH_I2C_Read... [16:48:22]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [16:48:22]Read from MH i2c: E2 [16:48:22]MH_I2C_Read... [16:48:22]Read from MH i2c: E2 03 00 [16:48:22]MH_I2C_Read... [16:48:22]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [16:48:22]RAPDU: 90 00 [16:48:22]wFMCommunicate OK [16:48:22]wFMCommunicate request_size=4 [16:48:22]MH_SAM_APDU [16:48:22]CAPDU: 80 11 00 00 [16:48:22]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [16:48:22]Write i2c OK [16:48:22]MH_I2C_Read... [16:48:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:22]Read from MH i2c: E2 [16:48:22]MH_I2C_Read... [16:48:22]Read from MH i2c: E2 17 00 [16:48:22]MH_I2C_Read... [16:48:22]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 DB [16:48:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:48:22]wFMCommunicate OK [16:48:22]DocumentArchiveInit [16:48:22]Start Httpd... [16:48:22]Httpd thread 3067403620 created [16:48:22]Write to MH i2c: 01 00 00 0F 00 0F [16:48:22]Write i2c OK [16:48:22]MH_I2C_Read... [16:48:22]Read from MH i2c: 01 [16:48:22]MH_I2C_Read... [16:48:22]Read from MH i2c: 01 07 00 [16:48:22]MH_I2C_Read... [16:48:22]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [16:48:22]MH Int Process started [16:48:22]Allocated Socket 6 [16:48:22]Bind OK [16:48:22]Listen OK [16:48:22]httpd running on port 8080 [16:48:22]Waiting for new connection... [16:48:22]OFD Sender: No OFD packet to send [16:48:22]accept exits with 8 [16:48:22]New connection [16:48:22]New thread 3067116900 created [16:48:22]Waiting for new connection... [16:48:22] Sock 8.Parse request [16:48:22]Sock 8.Check first char [16:48:22]Sock 8.First char is OK [16:48:22]request: POST /json_proto HTTP/1.0 [16:48:22]Method: POST [16:48:22]URL: /json_proto [16:48:22]Method is POST - this is cgi request [16:48:22]url: /json_proto [16:48:22]query_string will be loaded in cgi processing [16:48:22]execute_cgi json_proto POST (null) [16:48:22]execute_cgi path=json_proto method=POST [16:48:22]POST find Content-Length [16:48:22]Host: 172.17.62.5:8080 [16:48:22]Content-Length: 215 [16:48:22]Content-Type: application/json [16:48:22] [16:48:22]POST finish read [16:48:22]Found Content-Length = 215 [16:48:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:22]execute_script... [16:48:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:22]POST & json_proto [16:48:22]process_json_proto [16:48:22]json parsed OK: [16:48:22]protocol is kg_v1.0 [16:48:22]action value=get_value [16:48:22]process_action get_value [16:48:22]cmd_get_value [16:48:22]process_action get_value done [16:48:22]requested_data is exist [16:48:22]produce_requested_data [16:48:22]requested_item kkm.sn is exist - process it [16:48:22]requested_item kkm.ver is exist - process it [16:48:22]requested_item fm.sn is exist - process it [16:48:22]wFMCommunicate request_size=4 [16:48:22]MH_SAM_APDU [16:48:22]CAPDU: 80 11 00 00 [16:48:22]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [16:48:22]Write i2c OK [16:48:22]MH_I2C_Read... [16:48:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:22]Read from MH i2c: E2 [16:48:22]MH_I2C_Read... [16:48:22]Read from MH i2c: E2 17 00 [16:48:22]MH_I2C_Read... [16:48:22]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 DD [16:48:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:48:22]wFMCommunicate OK [16:48:22]requested_item fd.num is exist - process it [16:48:22]SAM_PROTO_GetFieldsCounters [16:48:22]wFMCommunicate request_size=4 [16:48:22]MH_SAM_APDU [16:48:22]CAPDU: 80 13 00 00 [16:48:22]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [16:48:22]Write i2c OK [16:48:22]MH_I2C_Read... [16:48:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:23]Read from MH i2c: E2 [16:48:23]MH_I2C_Read... [16:48:23]Read from MH i2c: E2 62 00 [16:48:23]MH_I2C_Read... [16:48:23]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 4F 2C 01 00 0E 04 04 00 74 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 34 [16:48: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 4F 2C 01 00 0E 04 04 00 74 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 [16:48:23]wFMCommunicate OK [16:48:23]SAM_PROTO_GetFieldsCounters done [16:48:23]requested_item shift.num is exist - process it [16:48:23]requested_item shift.opened is exist - process it [16:48:23]req_shift_opened [16:48:23]FM_GetShiftState [16:48:23]SAM_PROTO_GetShiftState [16:48:23]wFMCommunicate request_size=4 [16:48:23]MH_SAM_APDU [16:48:23]CAPDU: 80 13 01 00 [16:48:23]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [16:48:23]Write i2c OK [16:48:23]MH_I2C_Read... [16:48:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:23]Read from MH i2c: E2 [16:48:23]MH_I2C_Read... [16:48:23]Read from MH i2c: E2 0E 00 [16:48:23]MH_I2C_Read... [16:48:23]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 D6 [16:48:23]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [16:48:23]wFMCommunicate OK [16:48:23]SAM_PROTO_GetShiftState done [16:48:23]FM_GetShiftState done [16:48:23]req_shift_opened done [16:48:23]requested_item shift.open_date is exist - process it [16:48:23]req_shift_open_date [16:48:23]req_shift_open_date done [16:48:23]produce_requested_data done [16:48:23]produce_requested_data return {"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76879,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [16:48:23]process_action_free get_value [16:48:23]json_value_free [16:48:23]json_value_free done [16:48:23]process_json_proto returns [16:48:23]Send response to host [16:48:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76879,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [16:48:23]free response buf [16:48:23]execute_script done [16:48:23]execute_script returns [16:48:23]free content buf [16:48:23]Sock 8.Close socket [16:48:23]Sock 8.Thread stoped [16:48:27]OFD Sender: No OFD packet to send [16:48:27]accept exits with 9 [16:48:27]New connection [16:48:27]New thread 3066973540 created [16:48:27]Thread 3067116900 joined [16:48:27]Waiting for new connection... [16:48:27] Sock 9.Parse request [16:48:27]Sock 9.Check first char [16:48:27]Sock 9.First char is OK [16:48:27]request: POST /json_proto HTTP/1.0 [16:48:27]Method: POST [16:48:27]URL: /json_proto [16:48:27]Method is POST - this is cgi request [16:48:27]url: /json_proto [16:48:27]query_string will be loaded in cgi processing [16:48:27]execute_cgi json_proto POST (null) [16:48:27]execute_cgi path=json_proto method=POST [16:48:27]POST find Content-Length [16:48:27]Host: 172.17.62.5:8080 [16:48:27]Content-Length: 331 [16:48:27]Content-Type: application/json [16:48:27] [16:48:27]POST finish read [16:48:27]Found Content-Length = 331 [16:48: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" ] } } [16:48:27]execute_script... [16:48: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" ] } } [16:48:27]POST & json_proto [16:48:27]process_json_proto [16:48:27]json parsed OK: [16:48:27]protocol is kg_v1.0 [16:48:27]action value=get_value [16:48:27]process_action get_value [16:48:27]cmd_get_value [16:48:27]process_action get_value done [16:48:27]requested_data is exist [16:48:27]produce_requested_data [16:48:27]requested_item fm.sale.total is exist - process it [16:48:27]SAM_PROTO_GetFMData [16:48:27]wFMCommunicate request_size=4 [16:48:27]MH_SAM_APDU [16:48:27]CAPDU: 80 13 03 00 [16:48:27]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [16:48:27]Write i2c OK [16:48:27]MH_I2C_Read... [16:48:28]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:48:28]Read from MH i2c: E2 [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: E2 FD 00 [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: E2 FD 00 13 00 00 C8 04 85 04 C4 04 6E 04 04 00 67 29 01 00 69 04 A3 00 6F 04 04 00 75 27 01 00 B1 04 05 00 35 C0 B7 BA 02 70 04 05 00 E4 6F BF 76 02 72 04 04 00 51 50 F8 43 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 F2 E7 35 4A 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 CF 17 2F 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F2 01 00 00 B1 04 05 00 04 EB DB 15 01 70 04 05 00 04 EB DB 15 01 72 04 00 00 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 31 DA 81 1D EF 90 00 81 [16:48:28]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 67 29 01 00 69 04 A3 00 6F 04 04 00 75 27 01 00 B1 04 05 00 35 C0 B7 BA 02 70 04 05 00 E4 6F BF 76 02 72 04 04 00 51 50 F8 43 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 F2 E7 35 4A 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 CF 17 2F 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F2 01 00 00 B1 04 05 00 04 EB DB 15 01 70 04 05 00 04 EB DB 15 01 72 04 00 00 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 31 DA 81 1D EF 90 00 [16:48:28]wFMCommunicate OK [16:48:28]wFMCommunicate request_size=4 [16:48:28]MH_SAM_APDU [16:48:28]CAPDU: 80 17 00 00 [16:48:28]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [16:48:28]Write i2c OK [16:48:28]MH_I2C_Read... [16:48:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:48:28]Read from MH i2c: E2 [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: E2 FD 00 [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: E2 FD 00 14 00 00 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 BD 7C 75 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 90 00 53 [16:48:28]RAPDU: 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 BD 7C 75 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 90 00 [16:48:28]wFMCommunicate OK [16:48:28]wFMCommunicate request_size=4 [16:48:28]MH_SAM_APDU [16:48:28]CAPDU: 80 17 00 00 [16:48:28]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [16:48:28]Write i2c OK [16:48:28]MH_I2C_Read... [16:48:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:48:28]Read from MH i2c: E2 [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: E2 FD 00 [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: E2 FD 00 15 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 6D [16:48:28]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [16:48:28]wFMCommunicate OK [16:48:28]wFMCommunicate request_size=4 [16:48:28]MH_SAM_APDU [16:48:28]CAPDU: 80 17 00 00 [16:48:28]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [16:48:28]Write i2c OK [16:48:28]MH_I2C_Read... [16:48:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:48:28]Read from MH i2c: E2 [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: E2 FD 00 [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: E2 FD 00 16 00 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 0E [16:48:28]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [16:48:28]wFMCommunicate OK [16:48:28]wFMCommunicate request_size=4 [16:48:28]MH_SAM_APDU [16:48:28]CAPDU: 80 17 00 00 [16:48:28]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [16:48:28]Write i2c OK [16:48:28]MH_I2C_Read... [16:48:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [16:48:29]Read from MH i2c: E2 [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: E2 E5 00 [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: E2 E5 00 17 00 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7B [16:48:29]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:48:29]wFMCommunicate OK [16:48:29]SAM_PROTO_GetFMData done [16:48:29]requested_item fm.sale_refund.total is exist - process it [16:48:29]requested_item fm.buy.total is exist - process it [16:48:29]requested_item shift.sale.total is exist - process it [16:48:29]SAM_PROTO_GetShiftData [16:48:29]wFMCommunicate request_size=4 [16:48:29]MH_SAM_APDU [16:48:29]CAPDU: 80 13 02 00 [16:48:29]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [16:48:29]Write i2c OK [16:48:29]MH_I2C_Read... [16:48:29]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:48:29]Read from MH i2c: E2 [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: E2 FD 00 [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: E2 FD 00 18 00 00 B9 04 AA 04 B5 04 6E 04 04 00 87 00 00 00 69 04 9C 00 6F 04 04 00 85 00 00 00 B1 04 03 00 E6 A1 FB 70 04 03 00 58 01 C4 72 04 03 00 8E A0 37 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 BA 1A 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 2C 3A 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 10 08 01 70 04 03 00 10 08 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 12 1C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 5D [16:48:29]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 87 00 00 00 69 04 9C 00 6F 04 04 00 85 00 00 00 B1 04 03 00 E6 A1 FB 70 04 03 00 58 01 C4 72 04 03 00 8E A0 37 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 BA 1A 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 2C 3A 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 10 08 01 70 04 03 00 10 08 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 12 1C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [16:48:29]wFMCommunicate OK [16:48:29]wFMCommunicate request_size=4 [16:48:29]MH_SAM_APDU [16:48:29]CAPDU: 80 17 00 00 [16:48:29]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [16:48:29]Write i2c OK [16:48:29]MH_I2C_Read... [16:48:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:48:30]Read from MH i2c: E2 [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: E2 FD 00 [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: E2 FD 00 19 00 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 57 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 B1 [16:48:30]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 57 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [16:48:30]wFMCommunicate OK [16:48:30]wFMCommunicate request_size=4 [16:48:30]MH_SAM_APDU [16:48:30]CAPDU: 80 17 00 00 [16:48:30]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [16:48:30]Write i2c OK [16:48:30]MH_I2C_Read... [16:48:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:48:30]Read from MH i2c: E2 [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: E2 FD 00 [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: E2 FD 00 1A 00 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C2 [16:48:30]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:48:30]wFMCommunicate OK [16:48:30]wFMCommunicate request_size=4 [16:48:30]MH_SAM_APDU [16:48:30]CAPDU: 80 17 00 00 [16:48:30]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [16:48:30]Write i2c OK [16:48:30]MH_I2C_Read... [16:48:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:48:30]Read from MH i2c: E2 [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: E2 FD 00 [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: E2 FD 00 1B 00 00 EF 03 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 90 00 13 [16:48:30]RAPDU: EF 03 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 90 00 [16:48:30]wFMCommunicate OK [16:48:30]wFMCommunicate request_size=4 [16:48:30]MH_SAM_APDU [16:48:30]CAPDU: 80 17 00 00 [16:48:30]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [16:48:30]Write i2c OK [16:48:30]MH_I2C_Read... [16:48:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [16:48:30]Read from MH i2c: E2 [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: E2 D6 00 [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: E2 D6 00 1C 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7E [16:48:30]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:48:31]wFMCommunicate OK [16:48:31]SAM_PROTO_GetShiftData done [16:48:31]requested_item shift.sale.total_cash is exist - process it [16:48:31]requested_item shift.sale_refund.total is exist - process it [16:48:31]requested_item shift.sale_refund.total_cash is exist - process it [16:48:31]requested_item shift.buy.total is exist - process it [16:48:31]requested_item shift.buy.total_cash is exist - process it [16:48:31]produce_requested_data done [16:48:31]produce_requested_data return {"fm.sale.total":117225390.61,"fm.sale_refund.total":46617013.80,"fm.buy.total":0.00,"shift.sale.total":164909.82,"shift.sale.total_cash":128454.00,"shift.sale_refund.total":676.00,"shift.sale_refund.total_cash":676.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [16:48:31]process_action_free get_value [16:48:31]json_value_free [16:48:31]json_value_free done [16:48:31]process_json_proto returns [16:48:31]Send response to host [16:48:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":117225390.61,"fm.sale_refund.total":46617013.80,"fm.buy.total":0.00,"shift.sale.total":164909.82,"shift.sale.total_cash":128454.00,"shift.sale_refund.total":676.00,"shift.sale_refund.total_cash":676.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [16:48:31]free response buf [16:48:31]execute_script done [16:48:31]execute_script returns [16:48:31]free content buf [16:48:31]Sock 9.Close socket [16:48:31]Sock 9.Thread stoped [16:48:31]accept exits with 8 [16:48:31]New connection [16:48:31]New thread 3067116900 created [16:48:31]Thread 3066973540 joined [16:48:31]Waiting for new connection... [16:48:31] Sock 8.Parse request [16:48:31]Sock 8.Check first char [16:48:31]Sock 8.First char is OK [16:48:31]request: POST /json_proto HTTP/1.0 [16:48:31]Method: POST [16:48:31]URL: /json_proto [16:48:31]Method is POST - this is cgi request [16:48:31]url: /json_proto [16:48:31]query_string will be loaded in cgi processing [16:48:31]execute_cgi json_proto POST (null) [16:48:31]execute_cgi path=json_proto method=POST [16:48:31]POST find Content-Length [16:48:31]Host: 172.17.62.5:8080 [16:48:31]Content-Length: 144 [16:48:31]Content-Type: application/json [16:48:31] [16:48:31]POST finish read [16:48:31]Found Content-Length = 144 [16:48:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [16:48:31]execute_script... [16:48:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [16:48:31]POST & json_proto [16:48:31]process_json_proto [16:48:31]json parsed OK: [16:48:31]protocol is kg_v1.0 [16:48:31]action value=print_doc [16:48:31]process_action print_doc [16:48:31]ExternCall_PrintAddStr [16:48:31]wPrintStart [16:48:31]Write to MH i2c: 01 00 00 1D 00 1D [16:48:31]Write i2c OK [16:48:31]MH_I2C_Read... [16:48:31]Read from MH i2c: 01 [16:48:31]MH_I2C_Read... [16:48:31]Read from MH i2c: 01 07 00 [16:48:31]MH_I2C_Read... [16:48:31]Read from MH i2c: 01 07 00 1D 00 00 00 00 00 00 FF 0F 32 [16:48:31]RasterBufferAndPrint [16:48:31]line Счет N : (1)191422 [16:48:31]line ИНН: 02508201610067 [16:48:31]line Контрольно-Кассовый Чек [16:48:31]line ПРОДАЖА [16:48:31]line ТРК (МРК, ГНК) : 22 [16:48:31]line Товар: 2710124130 [16:48:31]line Аи-92-К-5 [16:48:31]line 3.110 * 64.40 [16:48:31]line = 200.28 [16:48:31]line НДС 12% НСП 1% [16:48:31]line > о реализуемом товаре [16:48:31]line ОКРУГЛЕНИЕ: -0.28 [16:48:31]line ИТОГО: 200.00 [16:48:31]line Внесено: 200.00 [16:48:31]line СДАЧА: 0.00 [16:48:31]line НСП 1% : 1.77 [16:48:31]line НДС 12% : 21.27 [16:48:31]line Наличными: 200.00 [16:48:31]line Безнал.: 0.00 [16:48:31]line Место: АЗС № 106 "Партнер Нефть" [16:48:31]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [16:48:31]line СНО: Общий режим [16:48:31]line Чек 134 21.04.2024 16:46 [16:48:31]line Смена: 372 ФФД: 1.0 [16:48:31]line ЗНМ: 0300000141 [16:48:31]line РНМ: 0000000000091573 [16:48:31]line Версия ККМ: 001 [16:48:31]line ФМ: 0000000000874652 [16:48:31]line ФД: 76878 [16:48:31]line ФПД: 173374842671648 [16:48:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T164641&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76878&fm=173374842671648&tin=02508201610067®Number=0000000000091573&sum=20000 [16:48:31]written 0, free lines is 4095 [16:48:31]Write to MH i2c: 01 00 00 47 00 47 [16:48:31]Write i2c OK [16:48:31]MH_I2C_Read... [16:48:31]Read from MH i2c: 01 [16:48:31]MH_I2C_Read... [16:48:31]Read from MH i2c: 01 07 00 [16:48:31]MH_I2C_Read... [16:48:31]Read from MH i2c: 01 07 00 47 00 00 00 00 00 00 02 0D 5D [16:48:31]RasterBufferAndPrint [16:48:31]line [16:48:31]line [16:48:31]line [16:48:31]line [16:48:31]line [16:48:31]written 0, free lines is 3342 [16:48:31]MH_Cut [16:48:31]Write to MH i2c: D1 01 00 4E 00 01 20 [16:48:31]Write i2c OK [16:48:31]MH_I2C_Read... [16:48:31]Read from MH i2c: D1 [16:48:31]MH_I2C_Read... [16:48:31]Read from MH i2c: D1 01 00 [16:48:31]MH_I2C_Read... [16:48:31]Read from MH i2c: D1 01 00 4E 00 00 1F [16:48:31]Write to MH i2c: 01 00 00 4F 00 4F [16:48:31]Write i2c OK [16:48:31]MH_I2C_Read... [16:48:32]*** Cut start [16:48:32]*** Partial cut [16:48:32]*** CUTSNS_PIN = 1 [16:48:32]*** CUTSNS_PIN = 0 [16:48:32]*** Brake cut motor [16:48:32]OFD Sender: No OFD packet to send [16:48:32]Read from MH i2c: 01 [16:48:32]MH_I2C_Read... [16:48:32]*** Stop cut motor [16:48:32]*** Cut end [16:48:32]Read from MH i2c: 01 07 00 [16:48:32]MH_I2C_Read... [16:48:32]Read from MH i2c: 01 07 00 4F 00 00 00 00 00 00 FF 0F 64 [16:48:32]process_action print_doc done [16:48:32]requested_data is exist [16:48:32]produce_requested_data [16:48:32]produce_requested_data return (null) [16:48:32]process_action_free print_doc [16:48:32]json_value_free [16:48:32]json_value_free done [16:48:32]process_json_proto returns [16:48:32]Send response to host [16:48:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [16:48:32]free response buf [16:48:32]execute_script done [16:48:32]execute_script returns [16:48:32]free content buf [16:48:32]Sock 8.Close socket [16:48:32]Sock 8.Thread stoped [16:48:37]OFD Sender: No OFD packet to send [16:48:42]OFD Sender: No OFD packet to send [16:48:47]OFD Sender: No OFD packet to send [16:48:52]OFD Sender: No OFD packet to send [16:48:55]accept exits with 9 [16:48:55]New connection [16:48:55]New thread 3066973540 created [16:48:55]Thread 3067116900 joined [16:48:55]Waiting for new connection... [16:48:55] Sock 9.Parse request [16:48:55]Sock 9.Check first char [16:48:55]Sock 9.First char is OK [16:48:55]request: POST /json_proto HTTP/1.0 [16:48:55]Method: POST [16:48:55]URL: /json_proto [16:48:55]Method is POST - this is cgi request [16:48:55]url: /json_proto [16:48:55]query_string will be loaded in cgi processing [16:48:55]execute_cgi json_proto POST (null) [16:48:55]execute_cgi path=json_proto method=POST [16:48:55]POST find Content-Length [16:48:55]Host: 172.17.62.5:8080 [16:48:55]Content-Length: 215 [16:48:55]Content-Type: application/json [16:48:55] [16:48:55]POST finish read [16:48:55]Found Content-Length = 215 [16:48:55]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:48:55]execute_script... [16:48:55]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:48:55]POST & json_proto [16:48:55]process_json_proto [16:48:55]json parsed OK: [16:48:55]protocol is kg_v1.0 [16:48:55]action value=get_value [16:48:55]process_action get_value [16:48:55]cmd_get_value [16:48:55]process_action get_value done [16:48:55]requested_data is exist [16:48:55]produce_requested_data [16:48:55]requested_item kkm.sn is exist - process it [16:48:55]requested_item kkm.ver is exist - process it [16:48:55]requested_item fm.sn is exist - process it [16:48:55]wFMCommunicate request_size=4 [16:48:55]MH_SAM_APDU [16:48:55]CAPDU: 80 11 00 00 [16:48:55]Write to MH i2c: E2 08 00 50 00 80 11 00 00 00 00 00 00 CA [16:48:55]Write i2c OK [16:48:55]MH_I2C_Read... [16:48:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:55]Read from MH i2c: E2 [16:48:55]MH_I2C_Read... [16:48:55]Read from MH i2c: E2 17 00 [16:48:55]MH_I2C_Read... [16:48:55]Read from MH i2c: E2 17 00 50 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 1D [16:48:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:48:55]wFMCommunicate OK [16:48:55]requested_item fd.num is exist - process it [16:48:55]SAM_PROTO_GetFieldsCounters [16:48:55]wFMCommunicate request_size=4 [16:48:55]MH_SAM_APDU [16:48:55]CAPDU: 80 13 00 00 [16:48:55]Write to MH i2c: E2 08 00 51 00 80 13 00 00 00 00 00 00 CD [16:48:55]Write i2c OK [16:48:55]MH_I2C_Read... [16:48:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:55]Read from MH i2c: E2 [16:48:55]MH_I2C_Read... [16:48:55]Read from MH i2c: E2 62 00 [16:48:55]MH_I2C_Read... [16:48:55]Read from MH i2c: E2 62 00 51 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 4F 2C 01 00 0E 04 04 00 74 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 74 [16:48:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 4F 2C 01 00 0E 04 04 00 74 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 [16:48:55]wFMCommunicate OK [16:48:55]SAM_PROTO_GetFieldsCounters done [16:48:55]requested_item shift.num is exist - process it [16:48:55]requested_item shift.opened is exist - process it [16:48:55]req_shift_opened [16:48:55]FM_GetShiftState [16:48:55]SAM_PROTO_GetShiftState [16:48:55]wFMCommunicate request_size=4 [16:48:55]MH_SAM_APDU [16:48:55]CAPDU: 80 13 01 00 [16:48:55]Write to MH i2c: E2 08 00 52 00 80 13 01 00 00 00 00 00 CF [16:48:55]Write i2c OK [16:48:55]MH_I2C_Read... [16:48:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:55]Read from MH i2c: E2 [16:48:55]MH_I2C_Read... [16:48:55]Read from MH i2c: E2 0E 00 [16:48:55]MH_I2C_Read... [16:48:55]Read from MH i2c: E2 0E 00 52 00 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 16 [16:48:55]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [16:48:55]wFMCommunicate OK [16:48:55]SAM_PROTO_GetShiftState done [16:48:55]FM_GetShiftState done [16:48:55]req_shift_opened done [16:48:55]requested_item shift.open_date is exist - process it [16:48:55]req_shift_open_date [16:48:55]req_shift_open_date done [16:48:55]produce_requested_data done [16:48:55]produce_requested_data return {"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76879,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [16:48:55]process_action_free get_value [16:48:55]json_value_free [16:48:55]json_value_free done [16:48:55]process_json_proto returns [16:48:55]Send response to host [16:48:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76879,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [16:48:55]free response buf [16:48:55]execute_script done [16:48:55]execute_script returns [16:48:55]free content buf [16:48:55]Sock 9.Close socket [16:48:55]Sock 9.Thread stoped [16:48:55]accept exits with 8 [16:48:55]New connection [16:48:55]New thread 3067116900 created [16:48:55]Thread 3066973540 joined [16:48:55]Waiting for new connection... [16:48:55] Sock 8.Parse request [16:48:55]Sock 8.Check first char [16:48:55]Sock 8.First char is OK [16:48:55]request: POST /json_proto HTTP/1.0 [16:48:55]Method: POST [16:48:55]URL: /json_proto [16:48:55]Method is POST - this is cgi request [16:48:55]url: /json_proto [16:48:55]query_string will be loaded in cgi processing [16:48:55]execute_cgi json_proto POST (null) [16:48:55]execute_cgi path=json_proto method=POST [16:48:55]POST find Content-Length [16:48:55]Host: 172.17.62.5:8080 [16:48:55]Content-Length: 331 [16:48:55]Content-Type: application/json [16:48:55] [16:48:55]POST finish read [16:48:55]Found Content-Length = 331 [16:48:55]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:48:55]execute_script... [16:48:55]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:48:55]POST & json_proto [16:48:55]process_json_proto [16:48:55]json parsed OK: [16:48:55]protocol is kg_v1.0 [16:48:55]action value=get_value [16:48:55]process_action get_value [16:48:55]cmd_get_value [16:48:55]process_action get_value done [16:48:55]requested_data is exist [16:48:55]produce_requested_data [16:48:55]requested_item fm.sale.total is exist - process it [16:48:55]SAM_PROTO_GetFMData [16:48:55]wFMCommunicate request_size=4 [16:48:55]MH_SAM_APDU [16:48:55]CAPDU: 80 13 03 00 [16:48:55]Write to MH i2c: E2 08 00 53 00 80 13 03 00 00 00 00 00 D2 [16:48:55]Write i2c OK [16:48:55]MH_I2C_Read... [16:48:56]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:48:56]Read from MH i2c: E2 [16:48:56]MH_I2C_Read... [16:48:56]Read from MH i2c: E2 FD 00 [16:48:56]MH_I2C_Read... [16:48:56]Read from MH i2c: E2 FD 00 53 00 00 C8 04 85 04 C4 04 6E 04 04 00 67 29 01 00 69 04 A3 00 6F 04 04 00 75 27 01 00 B1 04 05 00 35 C0 B7 BA 02 70 04 05 00 E4 6F BF 76 02 72 04 04 00 51 50 F8 43 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 F2 E7 35 4A 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 CF 17 2F 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F2 01 00 00 B1 04 05 00 04 EB DB 15 01 70 04 05 00 04 EB DB 15 01 72 04 00 00 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 31 DA 81 1D EF 90 00 C1 [16:48:56]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 67 29 01 00 69 04 A3 00 6F 04 04 00 75 27 01 00 B1 04 05 00 35 C0 B7 BA 02 70 04 05 00 E4 6F BF 76 02 72 04 04 00 51 50 F8 43 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 F2 E7 35 4A 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 CF 17 2F 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F2 01 00 00 B1 04 05 00 04 EB DB 15 01 70 04 05 00 04 EB DB 15 01 72 04 00 00 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 31 DA 81 1D EF 90 00 [16:48:56]wFMCommunicate OK [16:48:56]wFMCommunicate request_size=4 [16:48:56]MH_SAM_APDU [16:48:56]CAPDU: 80 17 00 00 [16:48:56]Write to MH i2c: E2 08 00 54 00 80 17 00 00 00 00 00 00 D4 [16:48:56]Write i2c OK [16:48:56]MH_I2C_Read... [16:48:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:48:56]Read from MH i2c: E2 [16:48:56]MH_I2C_Read... [16:48:56]Read from MH i2c: E2 FD 00 [16:48:56]MH_I2C_Read... [16:48:56]Read from MH i2c: E2 FD 00 54 00 00 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 BD 7C 75 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 90 00 93 [16:48:56]RAPDU: 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 BD 7C 75 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 90 00 [16:48:56]wFMCommunicate OK [16:48:56]wFMCommunicate request_size=4 [16:48:56]MH_SAM_APDU [16:48:56]CAPDU: 80 17 00 00 [16:48:56]Write to MH i2c: E2 08 00 55 00 80 17 00 00 00 00 00 00 D5 [16:48:56]Write i2c OK [16:48:56]MH_I2C_Read... [16:48:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:48:56]Read from MH i2c: E2 [16:48:56]MH_I2C_Read... [16:48:56]Read from MH i2c: E2 FD 00 [16:48:56]MH_I2C_Read... [16:48:56]Read from MH i2c: E2 FD 00 55 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 AD [16:48:56]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [16:48:56]wFMCommunicate OK [16:48:56]wFMCommunicate request_size=4 [16:48:56]MH_SAM_APDU [16:48:56]CAPDU: 80 17 00 00 [16:48:56]Write to MH i2c: E2 08 00 56 00 80 17 00 00 00 00 00 00 D6 [16:48:56]Write i2c OK [16:48:56]MH_I2C_Read... [16:48:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:48:57]Read from MH i2c: E2 [16:48:57]MH_I2C_Read... [16:48:57]Read from MH i2c: E2 FD 00 [16:48:57]MH_I2C_Read... [16:48:57]Read from MH i2c: E2 FD 00 56 00 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 4E [16:48:57]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [16:48:57]wFMCommunicate OK [16:48:57]wFMCommunicate request_size=4 [16:48:57]MH_SAM_APDU [16:48:57]CAPDU: 80 17 00 00 [16:48:57]Write to MH i2c: E2 08 00 57 00 80 17 00 00 00 00 00 00 D7 [16:48:57]Write i2c OK [16:48:57]MH_I2C_Read... [16:48:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [16:48:57]Read from MH i2c: E2 [16:48:57]MH_I2C_Read... [16:48:57]Read from MH i2c: E2 E5 00 [16:48:57]MH_I2C_Read... [16:48:57]Read from MH i2c: E2 E5 00 57 00 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 BB [16:48:57]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:48:57]wFMCommunicate OK [16:48:57]SAM_PROTO_GetFMData done [16:48:57]requested_item fm.sale_refund.total is exist - process it [16:48:57]requested_item fm.buy.total is exist - process it [16:48:57]requested_item shift.sale.total is exist - process it [16:48:57]SAM_PROTO_GetShiftData [16:48:57]wFMCommunicate request_size=4 [16:48:57]MH_SAM_APDU [16:48:57]CAPDU: 80 13 02 00 [16:48:57]Write to MH i2c: E2 08 00 58 00 80 13 02 00 00 00 00 00 D6 [16:48:57]Write i2c OK [16:48:57]MH_I2C_Read... [16:48:57]OFD Sender: No OFD packet to send [16:48:57]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:48:57]Read from MH i2c: E2 [16:48:57]MH_I2C_Read... [16:48:57]Read from MH i2c: E2 FD 00 [16:48:57]MH_I2C_Read... [16:48:57]Read from MH i2c: E2 FD 00 58 00 00 B9 04 AA 04 B5 04 6E 04 04 00 87 00 00 00 69 04 9C 00 6F 04 04 00 85 00 00 00 B1 04 03 00 E6 A1 FB 70 04 03 00 58 01 C4 72 04 03 00 8E A0 37 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 BA 1A 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 2C 3A 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 10 08 01 70 04 03 00 10 08 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 12 1C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 9D [16:48:57]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 87 00 00 00 69 04 9C 00 6F 04 04 00 85 00 00 00 B1 04 03 00 E6 A1 FB 70 04 03 00 58 01 C4 72 04 03 00 8E A0 37 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 BA 1A 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 2C 3A 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 10 08 01 70 04 03 00 10 08 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 12 1C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [16:48:57]wFMCommunicate OK [16:48:57]wFMCommunicate request_size=4 [16:48:57]MH_SAM_APDU [16:48:57]CAPDU: 80 17 00 00 [16:48:57]Write to MH i2c: E2 08 00 59 00 80 17 00 00 00 00 00 00 D9 [16:48:57]Write i2c OK [16:48:57]MH_I2C_Read... [16:48:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:48:58]Read from MH i2c: E2 [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: E2 FD 00 [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: E2 FD 00 59 00 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 57 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 F1 [16:48:58]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 57 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [16:48:58]wFMCommunicate OK [16:48:58]wFMCommunicate request_size=4 [16:48:58]MH_SAM_APDU [16:48:58]CAPDU: 80 17 00 00 [16:48:58]Write to MH i2c: E2 08 00 5A 00 80 17 00 00 00 00 00 00 DA [16:48:58]Write i2c OK [16:48:58]MH_I2C_Read... [16:48:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:48:58]Read from MH i2c: E2 [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: E2 FD 00 [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: E2 FD 00 5A 00 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 02 [16:48:58]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:48:58]wFMCommunicate OK [16:48:58]wFMCommunicate request_size=4 [16:48:58]MH_SAM_APDU [16:48:58]CAPDU: 80 17 00 00 [16:48:58]Write to MH i2c: E2 08 00 5B 00 80 17 00 00 00 00 00 00 DB [16:48:58]Write i2c OK [16:48:58]MH_I2C_Read... [16:48:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:48:58]Read from MH i2c: E2 [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: E2 FD 00 [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: E2 FD 00 5B 00 00 EF 03 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 90 00 53 [16:48:58]RAPDU: EF 03 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 90 00 [16:48:58]wFMCommunicate OK [16:48:58]wFMCommunicate request_size=4 [16:48:58]MH_SAM_APDU [16:48:58]CAPDU: 80 17 00 00 [16:48:58]Write to MH i2c: E2 08 00 5C 00 80 17 00 00 00 00 00 00 DC [16:48:58]Write i2c OK [16:48:58]MH_I2C_Read... [16:48:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [16:48:58]Read from MH i2c: E2 [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: E2 D6 00 [16:48:58]MH_I2C_Read... [16:48:59]Read from MH i2c: E2 D6 00 5C 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BE [16:48:59]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:48:59]wFMCommunicate OK [16:48:59]SAM_PROTO_GetShiftData done [16:48:59]requested_item shift.sale.total_cash is exist - process it [16:48:59]requested_item shift.sale_refund.total is exist - process it [16:48:59]requested_item shift.sale_refund.total_cash is exist - process it [16:48:59]requested_item shift.buy.total is exist - process it [16:48:59]requested_item shift.buy.total_cash is exist - process it [16:48:59]produce_requested_data done [16:48:59]produce_requested_data return {"fm.sale.total":117225390.61,"fm.sale_refund.total":46617013.80,"fm.buy.total":0.00,"shift.sale.total":164909.82,"shift.sale.total_cash":128454.00,"shift.sale_refund.total":676.00,"shift.sale_refund.total_cash":676.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [16:48:59]process_action_free get_value [16:48:59]json_value_free [16:48:59]json_value_free done [16:48:59]process_json_proto returns [16:48:59]Send response to host [16:48:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":117225390.61,"fm.sale_refund.total":46617013.80,"fm.buy.total":0.00,"shift.sale.total":164909.82,"shift.sale.total_cash":128454.00,"shift.sale_refund.total":676.00,"shift.sale_refund.total_cash":676.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [16:48:59]free response buf [16:48:59]execute_script done [16:48:59]execute_script returns [16:48:59]free content buf [16:48:59]Sock 8.Close socket [16:48:59]Sock 8.Thread stoped [16:49:02]OFD Sender: No OFD packet to send [16:49:07]OFD Sender: No OFD packet to send [16:49:12]OFD Sender: No OFD packet to send [16:49:17]OFD Sender: No OFD packet to send [16:49:22]OFD Sender: No OFD packet to send [16:49:27]OFD Sender: No OFD packet to send [16:49:32]OFD Sender: No OFD packet to send [16:49:37]OFD Sender: No OFD packet to send [16:49:42]OFD Sender: No OFD packet to send [16:49:47]OFD Sender: No OFD packet to send [16:49:52]OFD Sender: No OFD packet to send [16:49:57]OFD Sender: No OFD packet to send [16:50:02]OFD Sender: No OFD packet to send [16:50:07]OFD Sender: No OFD packet to send [16:50:12]OFD Sender: No OFD packet to send [16:50:17]OFD Sender: No OFD packet to send [16:50:22]OFD Sender: No OFD packet to send [16:50:27]OFD Sender: No OFD packet to send [16:50:32]OFD Sender: No OFD packet to send [16:50:37]OFD Sender: No OFD packet to send [16:50:42]OFD Sender: No OFD packet to send [16:50:47]OFD Sender: No OFD packet to send [16:50:52]OFD Sender: No OFD packet to send [16:50:57]OFD Sender: No OFD packet to send [16:51:02]OFD Sender: No OFD packet to send [16:51:07]OFD Sender: No OFD packet to send [16:51:12]OFD Sender: No OFD packet to send [16:51:17]OFD Sender: No OFD packet to send [16:51:22]OFD Sender: No OFD packet to send [16:51:27]OFD Sender: No OFD packet to send [16:51:32]OFD Sender: No OFD packet to send [16:51:37]OFD Sender: No OFD packet to send [16:51:42]OFD Sender: No OFD packet to send [16:51:47]OFD Sender: No OFD packet to send [16:51:52]OFD Sender: No OFD packet to send [16:51:57]OFD Sender: No OFD packet to send [16:52:02]OFD Sender: No OFD packet to send [16:52:07]OFD Sender: No OFD packet to send [16:52:12]OFD Sender: No OFD packet to send [16:52:17]OFD Sender: No OFD packet to send [16:52:22]OFD Sender: No OFD packet to send [16:52:27]OFD Sender: No OFD packet to send [16:52:30]accept exits with 9 [16:52:30]New connection [16:52:30]New thread 3066973540 created [16:52:30]Thread 3067116900 joined [16:52:30]Waiting for new connection... [16:52:30] Sock 9.Parse request [16:52:30]Sock 9.Check first char [16:52:30]Sock 9.First char is OK [16:52:30]request: POST /json_proto HTTP/1.0 [16:52:30]Method: POST [16:52:30]URL: /json_proto [16:52:30]Method is POST - this is cgi request [16:52:30]url: /json_proto [16:52:30]query_string will be loaded in cgi processing [16:52:30]execute_cgi json_proto POST (null) [16:52:30]execute_cgi path=json_proto method=POST [16:52:30]POST find Content-Length [16:52:30]Host: 172.17.62.5:8080 [16:52:30]Content-Length: 805 [16:52:30]Content-Type: application/json [16:52:30] [16:52:30]POST finish read [16:52:30]Found Content-Length = 805 [16:52:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:30]execute_script... [16:52: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)191424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:30]POST & json_proto [16:52:30]process_json_proto [16:52:30]json parsed OK: [16:52:30]protocol is kg_v1.0 [16:52:30]action value=close_receipt [16:52:30]process_action close_receipt [16:52:30]cmd_close_receipt [16:52:30]MH_GetDate [16:52:30]Write to MH i2c: F0 00 00 5D 00 4C [16:52:30]Write i2c OK [16:52:30]MH_I2C_Read... [16:52:30]Read from MH i2c: F0 [16:52:30]MH_I2C_Read... [16:52:30]Read from MH i2c: F0 09 00 [16:52:30]MH_I2C_Read... [16:52:30]Read from MH i2c: F0 09 00 5D 00 00 4E 44 25 66 F4 E9 65 64 18 [16:52:30]GetLastDocTimeStamp 1713718001 [16:52:30]current date 1713718350 [16:52:30]FM_GetShiftState [16:52:30]SAM_PROTO_GetShiftState [16:52:30]wFMCommunicate request_size=4 [16:52:30]MH_SAM_APDU [16:52:30]CAPDU: 80 13 01 00 [16:52:30]Write to MH i2c: E2 08 00 5E 00 80 13 01 00 00 00 00 00 DB [16:52:30]Write i2c OK [16:52:30]MH_I2C_Read... [16:52:30]Read from MH i2c: E2 [16:52:30]MH_I2C_Read... [16:52:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:30]Read from MH i2c: E2 0E 00 [16:52:30]MH_I2C_Read... [16:52:30]Read from MH i2c: E2 0E 00 5E 00 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 22 [16:52:30]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [16:52:30]wFMCommunicate OK [16:52:30]SAM_PROTO_GetShiftState done [16:52:30]FM_GetShiftState done [16:52:30]opened in 1713658965 [16:52:30]opened+sec_in_day 1713745365 [16:52:30]quantity*price = 100018 [16:52:30]sum+1 = 100020 [16:52:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.19 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.19 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 136 21.04.2024 16:52 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 76880 ФПД: 272681991105737 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T165230&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76880&fm=272681991105737&tin=02508201610067®Number=0000000000091573&sum=100019 [16:52:31]StoreToDocumentArchive [16:52:31]shift 372 fd 76880 [16:52:31]save to /storage/0372/doc_00076880 [16:52:31]save last doc name /storage/0372/doc_00076880 to /storage/kkm_last_doc_name [16:52:31]save OK [16:52:31]Clear old archive folders... [16:52:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:52:31]tlvbuf is 01F5C690 [16:52:31]SAM_PROTO_ClearQueue [16:52:31]wFMCommunicate request_size=4 [16:52:31]MH_SAM_APDU [16:52:31]CAPDU: 80 09 00 00 [16:52:31]Write to MH i2c: E2 08 00 6B 00 80 09 00 00 00 00 00 00 DD [16:52:31]Write i2c OK [16:52:31]MH_I2C_Read... [16:52:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:52:31]Read from MH i2c: E2 [16:52:31]MH_I2C_Read... [16:52:31]Read from MH i2c: E2 03 00 [16:52:31]MH_I2C_Read... [16:52:31]Read from MH i2c: E2 03 00 6B 00 00 90 00 DF [16:52:31]RAPDU: 90 00 [16:52:31]wFMCommunicate OK [16:52:31]SAM_PROTO_ClearQueue done [16:52:31]KKMCreateOFDPacket [16:52:31]OFDProtocolAddRootSTLVToBuf [16:52:31]FM_MakeSignedData [16:52:31]FM_MakeSignedData [16:52:31]SAM_PROTO_SignData [16:52:31]wFMCommunicate request_size=4 [16:52:31]MH_SAM_APDU [16:52:31]CAPDU: 80 0D 01 02 [16:52:31]Write to MH i2c: E2 08 00 6C 00 80 0D 01 02 00 00 00 00 E5 [16:52:31]Write i2c OK [16:52:31]MH_I2C_Read... [16:52:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:52:31]Read from MH i2c: E2 [16:52:31]MH_I2C_Read... [16:52:31]Read from MH i2c: E2 03 00 [16:52:31]MH_I2C_Read... [16:52:31]Read from MH i2c: E2 03 00 6C 00 00 90 00 E0 [16:52:31]RAPDU: 90 00 [16:52:31]wFMCommunicate OK [16:52:31]wFMCommunicate request_size=255 [16:52:31]MH_SAM_APDU [16:52:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 88 00 00 00 F4 03 04 00 4E 44 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 50 2C 01 00 35 04 06 00 F8 00 B9 37 [16:52:31]Write to MH i2c: E2 02 01 6D 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 88 00 00 00 F4 03 04 00 4E 44 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 50 2C 01 00 35 04 06 00 F8 00 B9 37 00 00 F0 [16:52:31]Write i2c OK [16:52:31]MH_I2C_Read... [16:52:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:31]Read from MH i2c: E2 [16:52:31]MH_I2C_Read... [16:52:31]Read from MH i2c: E2 03 00 [16:52:31]MH_I2C_Read... [16:52:31]Read from MH i2c: E2 03 00 6D 00 00 90 00 E1 [16:52:31]RAPDU: 90 00 [16:52:31]wFMCommunicate OK [16:52:31]wFMCommunicate request_size=7 [16:52:31]MH_SAM_APDU [16:52:31]CAPDU: 80 0D 02 02 02 6C C9 [16:52:31]Write to MH i2c: E2 0A 00 6E 00 80 0D 02 02 02 00 6C C9 00 00 21 [16:52:31]Write i2c OK [16:52:31]MH_I2C_Read... [16:52:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:31]Read from MH i2c: E2 [16:52:31]MH_I2C_Read... [16:52:31]Read from MH i2c: E2 03 00 [16:52:31]MH_I2C_Read... [16:52:31]Read from MH i2c: E2 03 00 6E 00 00 90 00 E2 [16:52:31]RAPDU: 90 00 [16:52:31]wFMCommunicate OK [16:52:31]wFMCommunicate request_size=4 [16:52:31]MH_SAM_APDU [16:52:31]CAPDU: 80 0D 03 02 [16:52:31]Write to MH i2c: E2 08 00 6F 00 80 0D 03 02 00 00 00 00 EA [16:52:31]Write i2c OK [16:52:31]MH_I2C_Read... [16:52:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:52:31]Read from MH i2c: E2 [16:52:31]MH_I2C_Read... [16:52:31]Read from MH i2c: E2 0B 00 [16:52:31]MH_I2C_Read... [16:52:31]Read from MH i2c: E2 0B 00 6F 00 00 73 95 95 2C 91 E1 47 F3 90 00 60 [16:52:31]RAPDU: 73 95 95 2C 91 E1 47 F3 90 00 [16:52:31]wFMCommunicate OK [16:52:31]SAM_PROTO_SignData done [16:52:31]FM_MakeSignedData done [16:52:31]CreateOFDProtocolMessage [16:52:31]wFMCommunicate request_size=4 [16:52:31]MH_SAM_APDU [16:52:31]CAPDU: 80 11 00 00 [16:52:31]Write to MH i2c: E2 08 00 70 00 80 11 00 00 00 00 00 00 EA [16:52:31]Write i2c OK [16:52:31]MH_I2C_Read... [16:52:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:31]Read from MH i2c: E2 [16:52:31]MH_I2C_Read... [16:52:31]Read from MH i2c: E2 17 00 [16:52:31]MH_I2C_Read... [16:52:31]Read from MH i2c: E2 17 00 70 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 3D [16:52:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:52:31]wFMCommunicate OK [16:52:31]CreateOFDProtocolMessage done [16:52:31]OFDSenderStorePacket 76880 [16:52:31]StoreOFDPacket docnum=76880 [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CA FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 6F [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725CA (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: 29317856+1684400628=1713718484 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x220ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33540623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CA FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 70 [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 D4 44 25 66 F4 E9 65 64 48 [16:54:44]Current date/time: 21.04.2024 16:54 [16:54:44]FM_Init [16:54:44]wFMConnect [16:54:44]MH_SAM_On [16:54:44]Write to MH i2c: E0 00 00 08 00 E7 [16:54:44]Write i2c OK [16:54:44]MH_I2C_Read... [16:54:44]*** iso7816_init finished! [16:54:44]*** atr: [16:54:44]*** 0F 3B D5 18 FF 81 91 FE [16:54:44]*** 1F C3 80 73 C8 21 10 0A [16:54:44]*** 00 00 00 00 00 00 00 00 [16:54:44]*** 00 00 00 00 00 00 00 00 [16:54:44]*** 00 00 00 00 00 00 00 00 [16:54:44]*** 00 00 00 00 00 00 00 00 [16:54:44]*** 00 00 00 00 00 00 00 00 [16:54:44]*** 00 00 00 00 00 00 00 00 [16:54:44]Read from MH i2c: E0 [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: E0 10 00 [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [16:54:44]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [16:54:44]wFMCommunicate request_size=10 [16:54:44]MH_SAM_APDU [16:54:44]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [16:54:44]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [16:54:44]Write i2c OK [16:54:44]MH_I2C_Read... [16:54:44]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [16:54:44]Read from MH i2c: E2 [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: E2 03 00 [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [16:54:44]RAPDU: 90 00 [16:54:44]wFMCommunicate OK [16:54:44]wFMCommunicate request_size=4 [16:54:44]MH_SAM_APDU [16:54:44]CAPDU: 80 11 00 00 [16:54:44]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [16:54:44]Write i2c OK [16:54:44]MH_I2C_Read... [16:54:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:44]Read from MH i2c: E2 [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: E2 17 00 [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 D7 [16:54:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:54:44]wFMCommunicate OK [16:54:44]Detected FM SN is 0000000000874652 [16:54:44]Stored FM SN is 0000000000874652 [16:54:44]wFMCommunicate request_size=9 [16:54:44]MH_SAM_APDU [16:54:44]CAPDU: 80 16 00 00 04 68 2F 01 00 [16:54:44]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 68 2F 01 00 00 00 2A [16:54:44]Write i2c OK [16:54:44]MH_I2C_Read... [16:54:44]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [16:54:44]Read from MH i2c: E2 [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: E2 03 00 [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [16:54:44]RAPDU: 90 00 [16:54:44]wFMCommunicate OK [16:54:44]FM PIN OK [16:54:44]wFMCommunicate request_size=8 [16:54:44]MH_SAM_APDU [16:54:44]CAPDU: 80 14 04 00 03 02 00 01 [16:54:44]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [16:54:44]Write i2c OK [16:54:44]MH_I2C_Read... [16:54:44]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [16:54:44]Read from MH i2c: E2 [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: E2 03 00 [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [16:54:44]RAPDU: 90 00 [16:54:44]wFMCommunicate OK [16:54:44]wFMCommunicate request_size=13 [16:54:44]MH_SAM_APDU [16:54:44]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [16:54:44]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [16:54:44]Write i2c OK [16:54:44]MH_I2C_Read... [16:54:44]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [16:54:44]Read from MH i2c: E2 [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: E2 03 00 [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [16:54:44]RAPDU: 90 00 [16:54:44]wFMCommunicate OK [16:54:44]wFMCommunicate request_size=4 [16:54:44]MH_SAM_APDU [16:54:44]CAPDU: 80 11 00 00 [16:54:44]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [16:54:44]Write i2c OK [16:54:44]MH_I2C_Read... [16:54:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:44]Read from MH i2c: E2 [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: E2 17 00 [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 DB [16:54:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:54:44]wFMCommunicate OK [16:54:44]DocumentArchiveInit [16:54:44]Start Httpd... [16:54:44]Httpd thread 3067596132 created [16:54:44]Write to MH i2c: 01 00 00 0F 00 0F [16:54:44]Write i2c OK [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: 01 [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: 01 07 00 [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [16:54:44]MH Int Process started [16:54:44]Allocated Socket 8 [16:54:44]Bind OK [16:54:44]Listen OK [16:54:44]httpd running on port 8080 [16:54:44]Waiting for new connection... [16:54:44]OFD Sender: Processing packet 76880 [packets to send 129, broken 128] [16:54:44]ProducePacketName [16:54:44]name=ofd_packets/00076880 [16:54:44]OFD Sender: To server: pG, [16:54:44]CommunicateWithHost lk.salyk.kg:30040 [16:54:44]ConnectInit lk.salyk.kg [16:54:44]accept exits with 9 [16:54:44]New connection [16:54:44]New thread 3067309412 created [16:54:44]Waiting for new connection... [16:54:44] Sock 9.Parse request [16:54:44]Sock 9.Check first char [16:54:44]Sock 9.First char is OK [16:54:44]request: POST /json_proto HTTP/1.0 [16:54:44]Method: POST [16:54:44]URL: /json_proto [16:54:44]Method is POST - this is cgi request [16:54:44]url: /json_proto [16:54:44]query_string will be loaded in cgi processing [16:54:44]execute_cgi json_proto POST (null) [16:54:44]execute_cgi path=json_proto method=POST [16:54:44]POST find Content-Length [16:54:44]Host: 172.17.62.5:8080 [16:54:44]Content-Length: 215 [16:54:44]Content-Type: application/json [16:54:44] [16:54:44]POST finish read [16:54:44]Found Content-Length = 215 [16:54:44]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:54:44]execute_script... [16:54:44]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:54:44]POST & json_proto [16:54:44]process_json_proto [16:54:44]json parsed OK: [16:54:44]protocol is kg_v1.0 [16:54:44]action value=get_value [16:54:44]process_action get_value [16:54:44]cmd_get_value [16:54:44]process_action get_value done [16:54:44]requested_data is exist [16:54:44]produce_requested_data [16:54:44]requested_item kkm.sn is exist - process it [16:54:44]requested_item kkm.ver is exist - process it [16:54:44]requested_item fm.sn is exist - process it [16:54:44]wFMCommunicate request_size=4 [16:54:44]MH_SAM_APDU [16:54:44]CAPDU: 80 11 00 00 [16:54:44]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [16:54:44]Write i2c OK [16:54:44]MH_I2C_Read... [16:54:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:44]Read from MH i2c: E2 [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: E2 17 00 [16:54:44]MH_I2C_Read... [16:54:45]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 34 36 35 32 90 00 DD [16:54:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:54:45]wFMCommunicate OK [16:54:45]requested_item fd.num is exist - process it [16:54:45]SAM_PROTO_GetFieldsCounters [16:54:45]wFMCommunicate request_size=4 [16:54:45]MH_SAM_APDU [16:54:45]CAPDU: 80 13 00 00 [16:54:45]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [16:54:45]Write i2c OK [16:54:45]MH_I2C_Read... [16:54:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:54:45]Read from MH i2c: E2 [16:54:45]MH_I2C_Read... [16:54:45]Read from MH i2c: E2 62 00 [16:54:45]MH_I2C_Read... [16:54:45]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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 50 2C 01 00 0E 04 04 00 74 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 38 [16:54: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 50 2C 01 00 0E 04 04 00 74 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 [16:54:45]wFMCommunicate OK [16:54:45]SAM_PROTO_GetFieldsCounters done [16:54:45]requested_item shift.num is exist - process it [16:54:45]requested_item shift.opened is exist - process it [16:54:45]req_shift_opened [16:54:45]FM_GetShiftState [16:54:45]SAM_PROTO_GetShiftState [16:54:45]wFMCommunicate request_size=4 [16:54:45]MH_SAM_APDU [16:54:45]CAPDU: 80 13 01 00 [16:54:45]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [16:54:45]Write i2c OK [16:54:45]MH_I2C_Read... [16:54:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:45]Read from MH i2c: E2 [16:54:45]MH_I2C_Read... [16:54:45]Connected sock=6 [16:54:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 34 1A 04 01 E4 1B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 88 00 00 00 F4 03 04 00 4E 44 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 50 2C 01 00 35 04 06 00 F8 00 B9 37 6C C9 73 95 95 2C 91 E1 47 F3 [16:54:45]Read from MH i2c: E2 0E 00 [16:54:45]MH_I2C_Read... [16:54:45]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 D6 [16:54:45]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [16:54:45]wFMCommunicate OK [16:54:45]SAM_PROTO_GetShiftState done [16:54:45]FM_GetShiftState done [16:54:45]req_shift_opened done [16:54:45]requested_item shift.open_date is exist - process it [16:54:45]req_shift_open_date [16:54:45]req_shift_open_date done [16:54:45]produce_requested_data done [16:54:45]produce_requested_data return {"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76880,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [16:54:45]process_action_free get_value [16:54:45]json_value_free [16:54:45]json_value_free done [16:54:45]process_json_proto returns [16:54:45]Send response to host [16:54:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76880,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [16:54:45]free response buf [16:54:45]execute_script done [16:54:45]execute_script returns [16:54:45]free content buf [16:54:45]Sock 9.Close socket [16:54:45]Sock 9.Thread stoped [16:54:45]accept exits with 10 [16:54:45]New connection [16:54:45]New thread 3067166052 created [16:54:45]Thread 3067309412 joined [16:54:45]Waiting for new connection... [16:54:45] Sock 10.Parse request [16:54:45]Sock 10.Check first char [16:54:45]Sock 10.First char is OK [16:54:45]request: POST /json_proto HTTP/1.0 [16:54:45]Method: POST [16:54:45]URL: /json_proto [16:54:45]Method is POST - this is cgi request [16:54:45]url: /json_proto [16:54:45]query_string will be loaded in cgi processing [16:54:45]execute_cgi json_proto POST (null) [16:54:45]execute_cgi path=json_proto method=POST [16:54:45]POST find Content-Length [16:54:45]Host: 172.17.62.5:8080 [16:54:45]Content-Length: 331 [16:54:45]Content-Type: application/json [16:54:45] [16:54:45]POST finish read [16:54:45]Found Content-Length = 331 [16:54:45]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:54:45]execute_script... [16:54:45]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:54:45]POST & json_proto [16:54:45]process_json_proto [16:54:45]json parsed OK: [16:54:45]protocol is kg_v1.0 [16:54:45]action value=get_value [16:54:45]process_action get_value [16:54:45]cmd_get_value [16:54:45]process_action get_value done [16:54:45]requested_data is exist [16:54:45]produce_requested_data [16:54:45]requested_item fm.sale.total is exist - process it [16:54:45]SAM_PROTO_GetFMData [16:54:45]wFMCommunicate request_size=4 [16:54:45]MH_SAM_APDU [16:54:45]CAPDU: 80 13 03 00 [16:54:45]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [16:54:45]Write i2c OK [16:54:45]MH_I2C_Read... [16:54:45]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:54:45]Read from MH i2c: E2 [16:54:45]MH_I2C_Read... [16:54:45]Read from MH i2c: E2 FD 00 [16:54:45]MH_I2C_Read... [16:54:45]Read from MH i2c: E2 FD 00 13 00 00 C8 04 85 04 C4 04 6E 04 04 00 68 29 01 00 69 04 A3 00 6F 04 04 00 76 27 01 00 B1 04 05 00 E8 46 B9 BA 02 70 04 05 00 E4 6F BF 76 02 72 04 04 00 04 D7 F9 43 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 6F 11 36 4A 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 44 1B 2F 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F2 01 00 00 B1 04 05 00 04 EB DB 15 01 70 04 05 00 04 EB DB 15 01 72 04 00 00 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 31 DA 81 1D EF 90 00 1A [16:54:45]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 68 29 01 00 69 04 A3 00 6F 04 04 00 76 27 01 00 B1 04 05 00 E8 46 B9 BA 02 70 04 05 00 E4 6F BF 76 02 72 04 04 00 04 D7 F9 43 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 6F 11 36 4A 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 44 1B 2F 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F2 01 00 00 B1 04 05 00 04 EB DB 15 01 70 04 05 00 04 EB DB 15 01 72 04 00 00 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 31 DA 81 1D EF 90 00 [16:54:46]wFMCommunicate OK [16:54:46]wFMCommunicate request_size=4 [16:54:46]MH_SAM_APDU [16:54:46]CAPDU: 80 17 00 00 [16:54:46]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [16:54:46]Write i2c OK [16:54:46]MH_I2C_Read... [16:54:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 1E 63 47 00 25 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 50 2C 01 00 F4 03 04 00 59 EC 24 66 B6 04 01 00 00 8D 91 C2 B6 C4 65 A3 A6 [16:54:46]CommunicateWithHost err = 0 [16:54:46]CheckOFDResponse [16:54:46]1017 (14) - 77093643461234 [16:54:46]1041 (16) - 0000000000874652 [16:54:46]1040 (4) - 76880 [16:54:46]1012 (4) - 21.04.2024 10:37 [16:54:46]1206 (1) - 0 [16:54:46]OFD Sender: Remove packet 76880 [16:54:46]ProducePacketName [16:54:46]name=ofd_packets/00076880 [16:54:46]NVStorageDeleteData [16:54:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:54:46]Read from MH i2c: E2 [16:54:46]MH_I2C_Read... [16:54:46]Read from MH i2c: E2 FD 00 [16:54:46]MH_I2C_Read... [16:54:46]Read from MH i2c: E2 FD 00 14 00 00 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 BD 7C 75 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 90 00 53 [16:54:46]RAPDU: 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 BD 7C 75 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 90 00 [16:54:46]wFMCommunicate OK [16:54:46]wFMCommunicate request_size=4 [16:54:46]MH_SAM_APDU [16:54:46]CAPDU: 80 17 00 00 [16:54:46]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [16:54:46]Write i2c OK [16:54:46]MH_I2C_Read... [16:54:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:54:46]Read from MH i2c: E2 [16:54:46]MH_I2C_Read... [16:54:46]Read from MH i2c: E2 FD 00 [16:54:46]MH_I2C_Read... [16:54:46]Read from MH i2c: E2 FD 00 15 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 6D [16:54:46]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [16:54:46]wFMCommunicate OK [16:54:46]wFMCommunicate request_size=4 [16:54:46]MH_SAM_APDU [16:54:46]CAPDU: 80 17 00 00 [16:54:46]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [16:54:46]Write i2c OK [16:54:46]MH_I2C_Read... [16:54:46]OFD Sender: No OFD packet to send [16:54:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:54:46]Read from MH i2c: E2 [16:54:46]MH_I2C_Read... [16:54:46]Read from MH i2c: E2 FD 00 [16:54:46]MH_I2C_Read... [16:54:46]Read from MH i2c: E2 FD 00 16 00 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 0E [16:54:46]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [16:54:46]wFMCommunicate OK [16:54:46]wFMCommunicate request_size=4 [16:54:46]MH_SAM_APDU [16:54:46]CAPDU: 80 17 00 00 [16:54:46]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [16:54:46]Write i2c OK [16:54:46]MH_I2C_Read... [16:54:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [16:54:47]Read from MH i2c: E2 [16:54:47]MH_I2C_Read... [16:54:47]Read from MH i2c: E2 E5 00 [16:54:47]MH_I2C_Read... [16:54:47]Read from MH i2c: E2 E5 00 17 00 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7B [16:54:47]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:54:47]wFMCommunicate OK [16:54:47]SAM_PROTO_GetFMData done [16:54:47]requested_item fm.sale_refund.total is exist - process it [16:54:47]requested_item fm.buy.total is exist - process it [16:54:47]requested_item shift.sale.total is exist - process it [16:54:47]SAM_PROTO_GetShiftData [16:54:47]wFMCommunicate request_size=4 [16:54:47]MH_SAM_APDU [16:54:47]CAPDU: 80 13 02 00 [16:54:47]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [16:54:47]Write i2c OK [16:54:47]MH_I2C_Read... [16:54:47]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:54:47]Read from MH i2c: E2 [16:54:47]MH_I2C_Read... [16:54:47]Read from MH i2c: E2 FD 00 [16:54:47]MH_I2C_Read... [16:54:47]Read from MH i2c: E2 FD 00 18 00 00 B9 04 AA 04 B5 04 6E 04 04 00 88 00 00 00 69 04 9C 00 6F 04 04 00 86 00 00 00 B1 04 03 00 99 28 FD 70 04 03 00 58 01 C4 72 04 03 00 41 27 39 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 A1 E3 1A 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 A1 3D 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 10 08 01 70 04 03 00 10 08 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 12 1C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 F5 [16:54:47]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 88 00 00 00 69 04 9C 00 6F 04 04 00 86 00 00 00 B1 04 03 00 99 28 FD 70 04 03 00 58 01 C4 72 04 03 00 41 27 39 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 A1 E3 1A 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 A1 3D 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 10 08 01 70 04 03 00 10 08 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 12 1C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [16:54:47]wFMCommunicate OK [16:54:47]wFMCommunicate request_size=4 [16:54:47]MH_SAM_APDU [16:54:47]CAPDU: 80 17 00 00 [16:54:47]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [16:54:47]Write i2c OK [16:54:47]MH_I2C_Read... [16:54:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:54:47]Read from MH i2c: E2 [16:54:47]MH_I2C_Read... [16:54:47]Read from MH i2c: E2 FD 00 [16:54:47]MH_I2C_Read... [16:54:47]Read from MH i2c: E2 FD 00 19 00 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 57 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 B1 [16:54:47]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 57 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [16:54:47]wFMCommunicate OK [16:54:47]wFMCommunicate request_size=4 [16:54:47]MH_SAM_APDU [16:54:47]CAPDU: 80 17 00 00 [16:54:47]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [16:54:47]Write i2c OK [16:54:47]MH_I2C_Read... [16:54:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:54:48]Read from MH i2c: E2 [16:54:48]MH_I2C_Read... [16:54:48]Read from MH i2c: E2 FD 00 [16:54:48]MH_I2C_Read... [16:54:48]Read from MH i2c: E2 FD 00 1A 00 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C2 [16:54:48]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:54:48]wFMCommunicate OK [16:54:48]wFMCommunicate request_size=4 [16:54:48]MH_SAM_APDU [16:54:48]CAPDU: 80 17 00 00 [16:54:48]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [16:54:48]Write i2c OK [16:54:48]MH_I2C_Read... [16:54:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:54:48]Read from MH i2c: E2 [16:54:48]MH_I2C_Read... [16:54:48]Read from MH i2c: E2 FD 00 [16:54:48]MH_I2C_Read... [16:54:48]Read from MH i2c: E2 FD 00 1B 00 00 EF 03 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 90 00 13 [16:54:48]RAPDU: EF 03 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 90 00 [16:54:48]wFMCommunicate OK [16:54:48]wFMCommunicate request_size=4 [16:54:48]MH_SAM_APDU [16:54:48]CAPDU: 80 17 00 00 [16:54:48]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [16:54:48]Write i2c OK [16:54:48]MH_I2C_Read... [16:54:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [16:54:48]Read from MH i2c: E2 [16:54:48]MH_I2C_Read... [16:54:48]Read from MH i2c: E2 D6 00 [16:54:48]MH_I2C_Read... [16:54:48]Read from MH i2c: E2 D6 00 1C 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7E [16:54:48]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:54:48]wFMCommunicate OK [16:54:48]SAM_PROTO_GetShiftData done [16:54:48]requested_item shift.sale.total_cash is exist - process it [16:54:48]requested_item shift.sale_refund.total is exist - process it [16:54:48]requested_item shift.sale_refund.total_cash is exist - process it [16:54:48]requested_item shift.buy.total is exist - process it [16:54:48]requested_item shift.buy.total_cash is exist - process it [16:54:48]produce_requested_data done [16:54:48]produce_requested_data return {"fm.sale.total":117226390.80,"fm.sale_refund.total":46617013.80,"fm.buy.total":0.00,"shift.sale.total":165910.01,"shift.sale.total_cash":128454.00,"shift.sale_refund.total":676.00,"shift.sale_refund.total_cash":676.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [16:54:48]process_action_free get_value [16:54:48]json_value_free [16:54:48]json_value_free done [16:54:49]process_json_proto returns [16:54:49]Send response to host [16:54:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":117226390.80,"fm.sale_refund.total":46617013.80,"fm.buy.total":0.00,"shift.sale.total":165910.01,"shift.sale.total_cash":128454.00,"shift.sale_refund.total":676.00,"shift.sale_refund.total_cash":676.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [16:54:49]free response buf [16:54:49]execute_script done [16:54:49]execute_script returns [16:54:49]free content buf [16:54:49]Sock 10.Close socket [16:54:49]Sock 10.Thread stoped [16:54:49]accept exits with 9 [16:54:49]New connection [16:54:49]New thread 3067309412 created [16:54:49]Thread 3067166052 joined [16:54:49]Waiting for new connection... [16:54:49] Sock 9.Parse request [16:54:49]Sock 9.Check first char [16:54:49]Sock 9.First char is OK [16:54:49]request: POST /json_proto HTTP/1.0 [16:54:49]Method: POST [16:54:49]URL: /json_proto [16:54:49]Method is POST - this is cgi request [16:54:49]url: /json_proto [16:54:49]query_string will be loaded in cgi processing [16:54:49]execute_cgi json_proto POST (null) [16:54:49]execute_cgi path=json_proto method=POST [16:54:49]POST find Content-Length [16:54:49]Host: 172.17.62.5:8080 [16:54:49]Content-Length: 990 [16:54:49]Content-Type: application/json [16:54:49] [16:54:49]POST finish read [16:54:49]Found Content-Length = 990 [16:54:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 33.510, "sum" : 1062.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 33.51 \u0441\u043E\u043C", "deposit" : 1062.00, "total" : 1062.00, "payments": [ { "type": 0, "sum" : 1062.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:54:49]execute_script... [16:54: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)191423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 33.510, "sum" : 1062.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 33.51 \u0441\u043E\u043C", "deposit" : 1062.00, "total" : 1062.00, "payments": [ { "type": 0, "sum" : 1062.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:54:49]POST & json_proto [16:54:49]process_json_proto [16:54:49]json parsed OK: [16:54:49]protocol is kg_v1.0 [16:54:49]action value=close_receipt [16:54:49]process_action close_receipt [16:54:49]cmd_close_receipt [16:54:49]MH_GetDate [16:54:49]Write to MH i2c: F0 00 00 1D 00 0C [16:54:49]Write i2c OK [16:54:49]MH_I2C_Read... [16:54:49]Read from MH i2c: F0 [16:54:49]MH_I2C_Read... [16:54:49]Read from MH i2c: F0 09 00 [16:54:49]MH_I2C_Read... [16:54:49]Read from MH i2c: F0 09 00 1D 00 00 DA 44 25 66 F4 E9 65 64 64 [16:54:49]GetLastDocTimeStamp 1713718350 [16:54:49]current date 1713718490 [16:54:49]FM_GetShiftState [16:54:49]SAM_PROTO_GetShiftState [16:54:49]wFMCommunicate request_size=4 [16:54:49]MH_SAM_APDU [16:54:49]CAPDU: 80 13 01 00 [16:54:49]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [16:54:49]Write i2c OK [16:54:49]MH_I2C_Read... [16:54:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:49]Read from MH i2c: E2 [16:54:49]MH_I2C_Read... [16:54:49]Read from MH i2c: E2 0E 00 [16:54:49]MH_I2C_Read... [16:54:49]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 E2 [16:54:49]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [16:54:49]wFMCommunicate OK [16:54:49]SAM_PROTO_GetShiftState done [16:54:49]FM_GetShiftState done [16:54:49]opened in 1713658965 [16:54:49]opened+sec_in_day 1713745365 [16:54:49]quantity*price = 106226 [16:54:49]sum+1 = 106228 [16:54:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 1062.00 Внесено: 1062.00 СДАЧА: 0.00 НСП 1% : 9.40 НДС 12% : 112.81 Наличными: 1062.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 137 21.04.2024 16:54 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 33.51 сом ФМ: 0000000000874652 ФД: 76881 ФПД: 29175780773305 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T165450&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76881&fm=29175780773305&tin=02508201610067®Number=0000000000091573&sum=106200 [16:54:50]StoreToDocumentArchive [16:54:50]shift 372 fd 76881 [16:54:50]save to /storage/0372/doc_00076881 [16:54:50]save last doc name /storage/0372/doc_00076881 to /storage/kkm_last_doc_name [16:54:50]save OK [16:54:50]Clear old archive folders... [16:54:50]ProcessDocumentItem done err = 0, tmpTLVsize=250 [16:54:50]tlvbuf is 0092B150 [16:54:50]SAM_PROTO_ClearQueue [16:54:50]wFMCommunicate request_size=4 [16:54:50]MH_SAM_APDU [16:54:50]CAPDU: 80 09 00 00 [16:54:50]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [16:54:50]Write i2c OK [16:54:50]MH_I2C_Read... [16:54:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:54:50]Read from MH i2c: E2 [16:54:50]MH_I2C_Read... [16:54:50]Read from MH i2c: E2 03 00 [16:54:50]MH_I2C_Read... [16:54:50]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [16:54:50]RAPDU: 90 00 [16:54:50]wFMCommunicate OK [16:54:50]SAM_PROTO_ClearQueue done [16:54:50]KKMCreateOFDPacket [16:54:50]OFDProtocolAddRootSTLVToBuf [16:54:50]FM_MakeSignedData [16:54:50]FM_MakeSignedData [16:54:50]SAM_PROTO_SignData [16:54:50]wFMCommunicate request_size=4 [16:54:50]MH_SAM_APDU [16:54:50]CAPDU: 80 0D 01 02 [16:54:50]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [16:54:50]Write i2c OK [16:54:50]MH_I2C_Read... [16:54:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:54:50]Read from MH i2c: E2 [16:54:50]MH_I2C_Read... [16:54:50]Read from MH i2c: E2 03 00 [16:54:50]MH_I2C_Read... [16:54:50]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [16:54:50]RAPDU: 90 00 [16:54:50]wFMCommunicate OK [16:54:50]wFMCommunicate request_size=255 [16:54:50]MH_SAM_APDU [16:54:50]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E6 82 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 F3 9E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 9E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 2C 00 00 00 00 07 04 06 00 D8 9E 01 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 DA 44 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 51 2C 01 00 35 04 06 00 1A 89 [16:54:51]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E6 82 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 F3 9E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 9E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 2C 00 00 00 00 07 04 06 00 D8 9E 01 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 DA 44 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 51 2C 01 00 35 04 06 00 1A 89 00 00 60 [16:54:51]Write i2c OK [16:54:51]MH_I2C_Read... [16:54:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:51]Read from MH i2c: E2 [16:54:51]MH_I2C_Read... [16:54:51]Read from MH i2c: E2 03 00 [16:54:51]MH_I2C_Read... [16:54:51]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [16:54:51]RAPDU: 90 00 [16:54:51]wFMCommunicate OK [16:54:51]wFMCommunicate request_size=9 [16:54:51]MH_SAM_APDU [16:54:51]CAPDU: 80 0D 02 02 04 04 0C 8D B9 [16:54:51]Write to MH i2c: E2 0C 00 2E 00 80 0D 02 02 04 00 04 0C 8D B9 00 00 06 [16:54:51]Write i2c OK [16:54:51]MH_I2C_Read... [16:54:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:51]Read from MH i2c: E2 [16:54:51]MH_I2C_Read... [16:54:51]Read from MH i2c: E2 03 00 [16:54:51]MH_I2C_Read... [16:54:51]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [16:54:51]RAPDU: 90 00 [16:54:51]wFMCommunicate OK [16:54:51]wFMCommunicate request_size=4 [16:54:51]MH_SAM_APDU [16:54:51]CAPDU: 80 0D 03 02 [16:54:51]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [16:54:51]Write i2c OK [16:54:51]MH_I2C_Read... [16:54:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:54:51]Read from MH i2c: E2 [16:54:51]MH_I2C_Read... [16:54:51]Read from MH i2c: E2 0B 00 [16:54:51]MH_I2C_Read... [16:54:51]Read from MH i2c: E2 0B 00 2F 00 00 EF C7 57 FF EF 00 14 00 90 00 BA [16:54:51]RAPDU: EF C7 57 FF EF 00 14 00 90 00 [16:54:51]wFMCommunicate OK [16:54:51]SAM_PROTO_SignData done [16:54:51]FM_MakeSignedData done [16:54:51]CreateOFDProtocolMessage [16:54:51]wFMCommunicate request_size=4 [16:54:51]MH_SAM_APDU [16:54:51]CAPDU: 80 11 00 00 [16:54:51]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [16:54:51]Write i2c OK [16:54:51]MH_I2C_Read... [16:54:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:51]Read from MH i2c: E2 [16:54:51]MH_I2C_Read... [16:54:51]Read from MH i2c: E2 17 00 [16:54:51]MH_I2C_Read... [16:54:51]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 FD [16:54:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:54:51]wFMCommunicate OK [16:54:51]CreateOFDProtocolMessage done [16:54:51]OFDSenderStorePacket 76881 [16:54:51]StoreOFDPacket docnum=76881 [16:54:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 1C CC 06 01 2D 2F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E6 82 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 F3 9E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 9E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 2C 00 00 00 00 07 04 06 00 D8 9E 01 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 DA 44 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 51 2C 01 00 35 04 06 00 1A 89 04 0C 8D B9 EF C7 57 FF EF 00 14 00 [16:54:51]CheckFolder [16:54:51]dirname=/storage/ofd_packets [16:54:51]CheckFolder done [16:54:51]ProducePacketName [16:54:51]name=ofd_packets/00076881 [16:54:51]NVStorageSaveData ofd_packets/00076881 [16:54:51]File name is /storage/ofd_packets/00076881 [16:54:51]Write 300 bytes [16:54:51]NVStorageSaveData done [16:54:51]OFDSenderStorePacket done [16:54:51]KKMCreateOFDPacket done [16:54:51]NVStorageSaveData kkm_last_timestamp [16:54:51]File name is /storage/kkm_last_timestamp [16:54:51]Write 4 bytes [16:54:51]NVStorageSaveData done [16:54:51]ExternCall_PrintAddStr [16:54:51]wPrintStart [16:54:51]Write to MH i2c: 01 00 00 OFD Sender: Processing packet 76881 [packets to send 129, broken 128] [16:54:51]31 ProducePacketName [16:54:51]00 name=ofd_packets/00076881 [16:54:51]31 OFD Sender: To server: pG, [16:54:51] [16:54:51]CommunicateWithHost lk.salyk.kg:30040 [16:54:51]ConnectInit lk.salyk.kg [16:54:51]Write i2c OK [16:54:51]MH_I2C_Read... [16:54:51]Read from MH i2c: 01 [16:54:51]MH_I2C_Read... [16:54:51]Read from MH i2c: 01 07 00 [16:54:51]MH_I2C_Read... [16:54:51]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [16:54:51]RasterBufferAndPrint [16:54:51]line Счет N : (1)191423 [16:54:51]line ИНН: 02508201610067 [16:54:51]line Контрольно-Кассовый Чек [16:54:51]line ПРОДАЖА [16:54:51]line ТРК (МРК, ГНК) : 71 [16:54:51]line Товар: 2711190000 [16:54:51]line ГАЗ-К-5 [16:54:51]line 33.510 * 31.70 [16:54:51]line = 1062.27 [16:54:51]line НДС 12% НСП 1% [16:54:51]line > о реализуемом товаре [16:54:51]line ОКРУГЛЕНИЕ: -0.27 [16:54:51]line ИТОГО: 1062.00 [16:54:51]line Внесено: 1062.00 [16:54:51]line СДАЧА: 0.00 [16:54:51]line НСП 1% : 9.40 [16:54:51]line НДС 12% : 112.81 [16:54:51]line Наличными: 1062.00 [16:54:51]line Безнал.: 0.00 [16:54:51]line Место: АЗС № 106 "Партнер Нефть" [16:54:51]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [16:54:51]line СНО: Общий режим [16:54:51]line Чек 137 21.04.2024 16:54 [16:54:51]line Смена: 372 ФФД: 1.0 [16:54:51]line ЗНМ: 0300000141 [16:54:51]line РНМ: 0000000000091573 [16:54:51]line Версия ККМ: 001 [16:54:51]line [16:54:51]line Дисконтная программа [16:54:51]line СУГ [16:54:51]line номер 106 [16:54:51]line сэкономлено 33.51 сом [16:54:51]line ФМ: 0000000000874652 [16:54:51]line ФД: 76881 [16:54:51]line ФПД: 29175780773305 [16:54:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T165450&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76881&fm=29175780773305&tin=02508201610067®Number=0000000000091573&sum=106200 [16:54:51]written 0, free lines is 4095 [16:54:51]Connected sock=10 [16:54:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 1C CC 06 01 2D 2F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E6 82 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 F3 9E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 9E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 2C 00 00 00 00 07 04 06 00 D8 9E 01 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 DA 44 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 51 2C 01 00 35 04 06 00 1A 89 04 0C 8D B9 EF C7 57 FF EF 00 14 00 [16:54:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 B9 8C 47 00 BA B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 51 2C 01 00 F4 03 04 00 5F EC 24 66 B6 04 01 00 00 D2 57 A2 D9 6C 34 EA 1E [16:54:52]CommunicateWithHost err = 0 [16:54:52]CheckOFDResponse [16:54:52]1017 (14) - 77093643461234 [16:54:52]1041 (16) - 0000000000874652 [16:54:52]1040 (4) - 76881 [16:54:52]1012 (4) - 21.04.2024 10:37 [16:54:52]1206 (1) - 0 [16:54:52]OFD Sender: Remove packet 76881 [16:54:52]ProducePacketName [16:54:52]name=ofd_packets/00076881 [16:54:52]NVStorageDeleteData [16:54:52]Write to MH i2c: 01 00 00 60 00 60 [16:54:52]Write i2c OK [16:54:52]MH_I2C_Read... [16:54:52]Read from MH i2c: 01 [16:54:52]MH_I2C_Read... [16:54:52]Read from MH i2c: 01 07 00 [16:54:52]MH_I2C_Read... [16:54:52]Read from MH i2c: 01 07 00 60 00 00 00 00 00 00 B7 0C 2A [16:54:52]RasterBufferAndPrint [16:54:52]line [16:54:52]line [16:54:52]line [16:54:52]line [16:54:52]line [16:54:52]written 0, free lines is 3277 [16:54:52]MH_Cut [16:54:52]Write to MH i2c: D1 01 00 67 00 01 39 [16:54:52]Write i2c OK [16:54:52]MH_I2C_Read... [16:54:52]Read from MH i2c: D1 [16:54:52]MH_I2C_Read... [16:54:52]Read from MH i2c: D1 01 00 [16:54:52]MH_I2C_Read... [16:54:52]Read from MH i2c: D1 01 00 67 00 00 38 [16:54:52]Write to MH i2c: 01 00 00 68 00 68 [16:54:52]Write i2c OK [16:54:52]MH_I2C_Read... [16:54:52]OFD Sender: No OFD packet to send [16:54:52]*** Cut start [16:54:52]*** Partial cut [16:54:52]*** CUTSNS_PIN = 1 [16:54:53]*** CUTSNS_PIN = 0 [16:54:53]*** Brake cut motor [16:54:53]Read from MH i2c: *** Stop cut motor [16:54:53]01 *** Cut end [16:54:53] [16:54:53]MH_I2C_Read... [16:54:53]Read from MH i2c: 01 07 00 [16:54:53]MH_I2C_Read... [16:54:53]Read from MH i2c: 01 07 00 68 00 00 00 00 00 00 FF 0F 7D [16:54:53]process_action close_receipt done [16:54:53]requested_data is exist [16:54:53]produce_requested_data [16:54:53]requested_item fm.sn is exist - process it [16:54:53]wFMCommunicate request_size=4 [16:54:53]MH_SAM_APDU [16:54:53]CAPDU: 80 11 00 00 [16:54:53]Write to MH i2c: E2 08 00 69 00 80 11 00 00 00 00 00 00 E3 [16:54:53]Write i2c OK [16:54:53]MH_I2C_Read... [16:54:53]Read from MH i2c: *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:53]E2 [16:54:53]MH_I2C_Read... [16:54:53]Read from MH i2c: E2 17 00 [16:54:53]MH_I2C_Read... [16:54:53]Read from MH i2c: E2 17 00 69 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 36 [16:54:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:54:53]wFMCommunicate OK [16:54:53]requested_item fd.num is exist - process it [16:54:53]SAM_PROTO_GetFieldsCounters [16:54:53]wFMCommunicate request_size=4 [16:54:53]MH_SAM_APDU [16:54:53]CAPDU: 80 13 00 00 [16:54:53]Write to MH i2c: E2 08 00 6A 00 80 13 00 00 00 00 00 00 E6 [16:54:53]Write i2c OK [16:54:53]MH_I2C_Read... [16:54:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:54:53]Read from MH i2c: E2 [16:54:53]MH_I2C_Read... [16:54:53]Read from MH i2c: E2 62 00 [16:54:53]MH_I2C_Read... [16:54:53]Read from MH i2c: E2 62 00 6A 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 51 2C 01 00 0E 04 04 00 74 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 95 [16:54: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 51 2C 01 00 0E 04 04 00 74 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 [16:54:53]wFMCommunicate OK [16:54:53]SAM_PROTO_GetFieldsCounters done [16:54:53]requested_item shift.num is exist - process it [16:54:53]requested_item shift.opened is exist - process it [16:54:53]req_shift_opened [16:54:53]FM_GetShiftState [16:54:53]SAM_PROTO_GetShiftState [16:54:53]wFMCommunicate request_size=4 [16:54:53]MH_SAM_APDU [16:54:53]CAPDU: 80 13 01 00 [16:54:53]Write to MH i2c: E2 08 00 6B 00 80 13 01 00 00 00 00 00 E8 [16:54:53]Write i2c OK [16:54:53]MH_I2C_Read... [16:54:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:53]Read from MH i2c: E2 [16:54:53]MH_I2C_Read... [16:54:53]Read from MH i2c: E2 0E 00 [16:54:53]MH_I2C_Read... [16:54:53]Read from MH i2c: E2 0E 00 6B 00 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 2F [16:54:53]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [16:54:53]wFMCommunicate OK [16:54:53]SAM_PROTO_GetShiftState done [16:54:53]FM_GetShiftState done [16:54:53]req_shift_opened done [16:54:53]requested_item shift.open_date is exist - process it [16:54:53]req_shift_open_date [16:54:53]req_shift_open_date done [16:54:53]produce_requested_data done [16:54:53]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76881,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [16:54:53]process_action_free close_receipt [16:54:53]json_value_free [16:54:53]json_value_free done [16:54:53]process_json_proto returns [16:54:53]Send response to host [16:54:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76881,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [16:54:53]free response buf [16:54:53]execute_script done [16:54:53]execute_script returns [16:54:53]free content buf [16:54:53]Sock 9.Close socket [16:54:53]Sock 9.Thread stoped [16:54:54]accept exits with 6 [16:54:54]New connection [16:54:54]New thread 3067166052 created [16:54:54]Thread 3067309412 joined [16:54:54]Waiting for new connection... [16:54:54] Sock 6.Parse request [16:54:54]Sock 6.Check first char [16:54:54]Sock 6.First char is OK [16:54:54]request: POST /json_proto HTTP/1.0 [16:54:54]Method: POST [16:54:54]URL: /json_proto [16:54:54]Method is POST - this is cgi request [16:54:54]url: /json_proto [16:54:54]query_string will be loaded in cgi processing [16:54:54]execute_cgi json_proto POST (null) [16:54:54]execute_cgi path=json_proto method=POST [16:54:54]POST find Content-Length [16:54:54]Host: 172.17.62.5:8080 [16:54:54]Content-Length: 805 [16:54:54]Content-Type: application/json [16:54:54] [16:54:54]POST finish read [16:54:54]Found Content-Length = 805 [16:54:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:54:54]execute_script... [16: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)191425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:54:54]POST & json_proto [16:54:54]process_json_proto [16:54:54]json parsed OK: [16:54:54]protocol is kg_v1.0 [16:54:54]action value=close_receipt [16:54:54]process_action close_receipt [16:54:54]cmd_close_receipt [16:54:54]MH_GetDate [16:54:54]Write to MH i2c: F0 00 00 6C 00 5B [16:54:54]Write i2c OK [16:54:54]MH_I2C_Read... [16:54:54]Read from MH i2c: F0 [16:54:54]MH_I2C_Read... [16:54:54]Read from MH i2c: F0 09 00 [16:54:54]MH_I2C_Read... [16:54:54]Read from MH i2c: F0 09 00 6C 00 00 DF 44 25 66 F4 E9 65 64 B8 [16:54:54]GetLastDocTimeStamp 1713718490 [16:54:54]current date 1713718495 [16:54:54]FM_GetShiftState [16:54:54]SAM_PROTO_GetShiftState [16:54:54]wFMCommunicate request_size=4 [16:54:54]MH_SAM_APDU [16:54:54]CAPDU: 80 13 01 00 [16:54:54]Write to MH i2c: E2 08 00 6D 00 80 13 01 00 00 00 00 00 EA [16:54:54]Write i2c OK [16:54:54]MH_I2C_Read... [16:54:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:54]Read from MH i2c: E2 [16:54:54]MH_I2C_Read... [16:54:54]Read from MH i2c: E2 0E 00 [16:54:54]MH_I2C_Read... [16:54:54]Read from MH i2c: E2 0E 00 6D 00 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 31 [16:54:54]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [16:54:54]wFMCommunicate OK [16:54:54]SAM_PROTO_GetShiftState done [16:54:54]FM_GetShiftState done [16:54:54]opened in 1713658965 [16:54:54]opened+sec_in_day 1713745365 [16:54:54]quantity*price = 100018 [16:54:54]sum+1 = 100020 [16:54:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.19 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.19 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 138 21.04.2024 16:54 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 76882 ФПД: 205448424568127 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T165455&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76882&fm=205448424568127&tin=02508201610067®Number=0000000000091573&sum=100019 [16:54:55]StoreToDocumentArchive [16:54:55]shift 372 fd 76882 [16:54:55]save to /storage/0372/doc_00076882 [16:54:55]save last doc name /storage/0372/doc_00076882 to /storage/kkm_last_doc_name [16:54:55]save OK [16:54:55]Clear old archive folders... [16:54:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:54:55]tlvbuf is 008D8A30 [16:54:55]SAM_PROTO_ClearQueue [16:54:55]wFMCommunicate request_size=4 [16:54:55]MH_SAM_APDU [16:54:55]CAPDU: 80 09 00 00 [16:54:55]Write to MH i2c: E2 08 00 7A 00 80 09 00 00 00 00 00 00 EC [16:54:55]Write i2c OK [16:54:55]MH_I2C_Read... [16:54:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:54:55]Read from MH i2c: E2 [16:54:55]MH_I2C_Read... [16:54:55]Read from MH i2c: E2 03 00 [16:54:55]MH_I2C_Read... [16:54:55]Read from MH i2c: E2 03 00 7A 00 00 90 00 EE [16:54:55]RAPDU: 90 00 [16:54:55]wFMCommunicate OK [16:54:55]SAM_PROTO_ClearQueue done [16:54:55]KKMCreateOFDPacket [16:54:55]OFDProtocolAddRootSTLVToBuf [16:54:55]FM_MakeSignedData [16:54:55]FM_MakeSignedData [16:54:55]SAM_PROTO_SignData [16:54:55]wFMCommunicate request_size=4 [16:54:55]MH_SAM_APDU [16:54:55]CAPDU: 80 0D 01 02 [16:54:55]Write to MH i2c: E2 08 00 7B 00 80 0D 01 02 00 00 00 00 F4 [16:54:55]Write i2c OK [16:54:55]MH_I2C_Read... [16:54:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:54:56]Read from MH i2c: E2 [16:54:56]MH_I2C_Read... [16:54:56]Read from MH i2c: E2 03 00 [16:54:56]MH_I2C_Read... [16:54:56]Read from MH i2c: E2 03 00 7B 00 00 90 00 EF [16:54:56]RAPDU: 90 00 [16:54:56]wFMCommunicate OK [16:54:56]wFMCommunicate request_size=255 [16:54:56]MH_SAM_APDU [16:54:56]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 8A 00 00 00 F4 03 04 00 DF 44 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 52 2C 01 00 35 04 06 00 BA DA B0 5D [16:54:56]Write to MH i2c: E2 02 01 7C 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 8A 00 00 00 F4 03 04 00 DF 44 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 52 2C 01 00 35 04 06 00 BA DA B0 5D 00 00 4D [16:54:56]Write i2c OK [16:54:56]MH_I2C_Read... [16:54:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:56]Read from MH i2c: E2 [16:54:56]MH_I2C_Read... [16:54:56]Read from MH i2c: E2 03 00 [16:54:56]MH_I2C_Read... [16:54:56]Read from MH i2c: E2 03 00 7C 00 00 90 00 F0 [16:54:56]RAPDU: 90 00 [16:54:56]wFMCommunicate OK [16:54:56]wFMCommunicate request_size=7 [16:54:56]MH_SAM_APDU [16:54:56]CAPDU: 80 0D 02 02 02 B5 3F [16:54:56]Write to MH i2c: E2 0A 00 7D 00 80 0D 02 02 02 00 B5 3F 00 00 EF [16:54:56]Write i2c OK [16:54:56]MH_I2C_Read... [16:54:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:56]Read from MH i2c: E2 [16:54:56]MH_I2C_Read... [16:54:56]Read from MH i2c: E2 03 00 [16:54:56]MH_I2C_Read... [16:54:56]Read from MH i2c: E2 03 00 7D 00 00 90 00 F1 [16:54:56]RAPDU: 90 00 [16:54:56]wFMCommunicate OK [16:54:56]wFMCommunicate request_size=4 [16:54:56]MH_SAM_APDU [16:54:56]CAPDU: 80 0D 03 02 [16:54:56]Write to MH i2c: E2 08 00 7E 00 80 0D 03 02 00 00 00 00 F9 [16:54:56]Write i2c OK [16:54:56]MH_I2C_Read... [16:54:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:54:56]Read from MH i2c: E2 [16:54:56]MH_I2C_Read... [16:54:56]Read from MH i2c: E2 0B 00 [16:54:56]MH_I2C_Read... [16:54:56]Read from MH i2c: E2 0B 00 7E 00 00 FD 52 48 E0 9B 5D D1 4A 90 00 84 [16:54:56]RAPDU: FD 52 48 E0 9B 5D D1 4A 90 00 [16:54:56]wFMCommunicate OK [16:54:56]SAM_PROTO_SignData done [16:54:56]FM_MakeSignedData done [16:54:56]CreateOFDProtocolMessage [16:54:56]wFMCommunicate request_size=4 [16:54:56]MH_SAM_APDU [16:54:56]CAPDU: 80 11 00 00 [16:54:56]Write to MH i2c: E2 08 00 7F 00 80 11 00 00 00 00 00 00 F9 [16:54:56]Write i2c OK [16:54:56]MH_I2C_Read... [16:54:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:56]Read from MH i2c: E2 [16:54:56]MH_I2C_Read... [16:54:56]Read from MH i2c: E2 17 00 [16:54:56]MH_I2C_Read... [16:54:56]Read from MH i2c: E2 17 00 7F 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 4C [16:54:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:54:56]wFMCommunicate OK [16:54:56]CreateOFDProtocolMessage done [16:54:56]OFDSenderStorePacket 76882 [16:54:56]StoreOFDPacket docnum=76882 [16:54:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 EB AC 04 01 21 06 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 DF 44 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 52 2C 01 00 35 04 06 00 BA DA B0 5D B5 3F FD 52 48 E0 9B 5D D1 4A [16:54:56]CheckFolder [16:54:56]dirname=/storage/ofd_packets [16:54:56]CheckFolder done [16:54:56]ProducePacketName [16:54:56]name=ofd_packets/00076882 [16:54:56]NVStorageSaveData ofd_packets/00076882 [16:54:56]File name is /storage/ofd_packets/00076882 [16:54:56]Write 298 bytes [16:54:56]NVStorageSaveData done [16:54:56]OFDSenderStorePacket done [16:54:56]KKMCreateOFDPacket done [16:54:56]NVStorageSaveData kkm_last_timestamp [16:54:56]File name is /storage/kkm_last_timestamp [16:54:56]Write 4 bytes [16:54:56]NVStorageSaveData done [16:54:56]ExternCall_PrintAddStr [16:54:56]wPrintStart [16:54:56]Write to MH i2c: 01 00 00 80 00 80 [16:54:56]Write i2c OK [16:54:56]MH_I2C_Read... [16:54:56]Read from MH i2c: 01 [16:54:56]MH_I2C_Read... [16:54:56]OFD Sender: Processing packet 76882 [packets to send 129, broken 128] [16:54:56]ProducePacketName [16:54:56]name=ofd_packets/00076882 [16:54:56]OFD Sender: To server: pG, [16:54:56]CommunicateWithHost lk.salyk.kg:30040 [16:54:56]ConnectInit lk.salyk.kg [16:54:56]Read from MH i2c: 01 07 00 [16:54:56]MH_I2C_Read... [16:54:56]Read from MH i2c: 01 07 00 80 00 00 00 00 00 00 FF 0F 95 [16:54:56]RasterBufferAndPrint [16:54:56]line Счет N : (1)191425 [16:54:56]line ИНН: 02508201610067 [16:54:56]line Контрольно-Кассовый Чек [16:54:56]line ПРОДАЖА [16:54:56]line ТРК (МРК, ГНК) : 51 [16:54:56]line Товар: 2710194210 [16:54:56]line ДТ-К-5 [16:54:56]line 13.720 * 72.90 [16:54:56]line = 1000.19 [16:54:56]line НДС 12% НСП 1% [16:54:56]line > о реализуемом товаре [16:54:56]line ИТОГО: 1000.19 [16:54:56]line НСП 1% : 8.85 [16:54:56]line НДС 12% : 106.21 [16:54:56]line Наличными: 0.00 [16:54:56]line Безнал.: 1000.19 [16:54:56]line Место: АЗС № 106 "Партнер Нефть" [16:54:56]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [16:54:56]line СНО: Общий режим [16:54:56]line Чек 138 21.04.2024 16:54 [16:54:56]line Смена: 372 ФФД: 1.0 [16:54:56]line ЗНМ: 0300000141 [16:54:56]line РНМ: 0000000000091573 [16:54:56]line Версия ККМ: 001 [16:54:56]line Платежная система: О! деньги [16:54:56]line ФМ: 0000000000874652 [16:54:56]line ФД: 76882 [16:54:56]line ФПД: 205448424568127 [16:54:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T165455&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76882&fm=205448424568127&tin=02508201610067®Number=0000000000091573&sum=100019 [16:54:56]written 0, free lines is 4095 [16:54:56]Connected sock=10 [16:54:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 EB AC 04 01 21 06 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 DF 44 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 52 2C 01 00 35 04 06 00 BA DA B0 5D B5 3F FD 52 48 E0 9B 5D D1 4A [16:54:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 DD B2 47 00 58 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 52 2C 01 00 F4 03 04 00 64 EC 24 66 B6 04 01 00 00 08 A8 C9 56 64 F8 8B EF [16:54:57]CommunicateWithHost err = 0 [16:54:57]CheckOFDResponse [16:54:57]1017 (14) - 77093643461234 [16:54:57]1041 (16) - 0000000000874652 [16:54:57]1040 (4) - 76882 [16:54:57]1012 (4) - 21.04.2024 10:37 [16:54:57]1206 (1) - 0 [16:54:57]OFD Sender: Remove packet 76882 [16:54:57]ProducePacketName [16:54:57]name=ofd_packets/00076882 [16:54:57]NVStorageDeleteData [16:54:57]Write to MH i2c: 01 00 00 A9 00 A9 [16:54:57]Write i2c OK [16:54:57]MH_I2C_Read... [16:54:57]Read from MH i2c: 01 [16:54:57]MH_I2C_Read... [16:54:57]Read from MH i2c: 01 07 00 [16:54:57]MH_I2C_Read... [16:54:57]Read from MH i2c: 01 07 00 A9 00 00 00 00 00 00 A5 0D 62 [16:54:57]RasterBufferAndPrint [16:54:57]line [16:54:57]line [16:54:57]line [16:54:57]line [16:54:57]line [16:54:57]written 0, free lines is 3520 [16:54:57]MH_Cut [16:54:57]Write to MH i2c: D1 01 00 B0 00 01 82 [16:54:57]Write i2c OK [16:54:57]MH_I2C_Read... [16:54:57]Read from MH i2c: D1 [16:54:57]MH_I2C_Read... [16:54:57]Read from MH i2c: D1 01 00 [16:54:57]MH_I2C_Read... [16:54:57]Read from MH i2c: D1 01 00 B0 00 00 81 [16:54:57]Write to MH i2c: 01 00 00 B1 00 B1 [16:54:57]Write i2c OK [16:54:57]MH_I2C_Read... [16:54:57]OFD Sender: No OFD packet to send [16:54:58]*** Cut start [16:54:58]*** Partial cut [16:54:58]*** CUTSNS_PIN = 1 [16:54:58]*** CUTSNS_PIN = 0 [16:54:58]*** Brake cut motor [16:54:58]Read from MH i2c: 01 [16:54:58]MH_I2C_Read... [16:54:58]*** Stop cut motor [16:54:58]*** Cut end [16:54:58]Read from MH i2c: 01 07 00 [16:54:58]MH_I2C_Read... [16:54:58]Read from MH i2c: 01 07 00 B1 00 00 00 00 00 00 FF 0F C6 [16:54:58]process_action close_receipt done [16:54:58]requested_data is exist [16:54:58]produce_requested_data [16:54:58]requested_item fm.sn is exist - process it [16:54:58]wFMCommunicate request_size=4 [16:54:58]MH_SAM_APDU [16:54:58]CAPDU: 80 11 00 00 [16:54:58]Write to MH i2c: E2 08 00 B2 00 80 11 00 00 00 00 00 00 2C [16:54:58]Write i2c OK [16:54:58]MH_I2C_Read... [16:54:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:58]Read from MH i2c: E2 [16:54:58]MH_I2C_Read... [16:54:58]Read from MH i2c: E2 17 00 [16:54:58]MH_I2C_Read... [16:54:58]Read from MH i2c: E2 17 00 B2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 7F [16:54:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:54:58]wFMCommunicate OK [16:54:58]requested_item fd.num is exist - process it [16:54:58]SAM_PROTO_GetFieldsCounters [16:54:58]wFMCommunicate request_size=4 [16:54:58]MH_SAM_APDU [16:54:58]CAPDU: 80 13 00 00 [16:54:58]Write to MH i2c: E2 08 00 B3 00 80 13 00 00 00 00 00 00 2F [16:54:58]Write i2c OK [16:54:58]MH_I2C_Read... [16:54:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:54:58]Read from MH i2c: E2 [16:54:58]MH_I2C_Read... [16:54:58]Read from MH i2c: E2 62 00 [16:54:58]MH_I2C_Read... [16:54:58]Read from MH i2c: E2 62 00 B3 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 52 2C 01 00 0E 04 04 00 74 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 E2 [16: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 52 2C 01 00 0E 04 04 00 74 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 [16:54:58]wFMCommunicate OK [16:54:58]SAM_PROTO_GetFieldsCounters done [16:54:58]requested_item shift.num is exist - process it [16:54:58]requested_item shift.opened is exist - process it [16:54:58]req_shift_opened [16:54:58]FM_GetShiftState [16:54:58]SAM_PROTO_GetShiftState [16:54:58]wFMCommunicate request_size=4 [16:54:58]MH_SAM_APDU [16:54:58]CAPDU: 80 13 01 00 [16:54:58]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [16:54:58]Write i2c OK [16:54:58]MH_I2C_Read... [16:54:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:59]Read from MH i2c: E2 [16:54:59]MH_I2C_Read... [16:54:59]Read from MH i2c: E2 0E 00 [16:54:59]MH_I2C_Read... [16:54:59]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 78 [16:54:59]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [16:54:59]wFMCommunicate OK [16:54:59]SAM_PROTO_GetShiftState done [16:54:59]FM_GetShiftState done [16:54:59]req_shift_opened done [16:54:59]requested_item shift.open_date is exist - process it [16:54:59]req_shift_open_date [16:54:59]req_shift_open_date done [16:54:59]produce_requested_data done [16:54:59]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76882,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [16:54:59]process_action_free close_receipt [16:54:59]json_value_free [16:54:59]json_value_free done [16:54:59]process_json_proto returns [16:54:59]Send response to host [16:54:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76882,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [16:54:59]free response buf [16:54:59]execute_script done [16:54:59]execute_script returns [16:54:59]free content buf [16:54:59]Sock 6.Close socket [16:54:59]Sock 6.Thread stoped [16:55:02]OFD Sender: No OFD packet to send [16:55:07]OFD Sender: No OFD packet to send [16:55:12]OFD Sender: No OFD packet to send [16:55:17]OFD Sender: No OFD packet to send [16:55:22]OFD Sender: No OFD packet to send [16:55:26]accept exits with 9 [16:55:26]New connection [16:55:26]New thread 3067309412 created [16:55:26]Thread 3067166052 joined [16:55:26]Waiting for new connection... [16:55:26] Sock 9.Parse request [16:55:26]Sock 9.Check first char [16:55:26]Sock 9.First char is OK [16:55:26]request: POST /json_proto HTTP/1.0 [16:55:26]Method: POST [16:55:26]URL: /json_proto [16:55:26]Method is POST - this is cgi request [16:55:26]url: /json_proto [16:55:26]query_string will be loaded in cgi processing [16:55:26]execute_cgi json_proto POST (null) [16:55:26]execute_cgi path=json_proto method=POST [16:55:26]POST find Content-Length [16:55:26]Host: 172.17.62.5:8080 [16:55:26]Content-Length: 682 [16:55:26]Content-Type: application/json [16:55:26] [16:55:26]POST finish read [16:55:26]Found Content-Length = 682 [16:55:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191426", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:55:26]execute_script... [16:55: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)191426", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:55:26]POST & json_proto [16:55:26]process_json_proto [16:55:26]json parsed OK: [16:55:26]protocol is kg_v1.0 [16:55:26]action value=close_receipt [16:55:26]process_action close_receipt [16:55:26]cmd_close_receipt [16:55:26]MH_GetDate [16:55:26]Write to MH i2c: F0 00 00 B5 00 A4 [16:55:26]Write i2c OK [16:55:26]MH_I2C_Read... [16:55:26]Read from MH i2c: F0 [16:55:26]MH_I2C_Read... [16:55:26]Read from MH i2c: F0 09 00 [16:55:26]MH_I2C_Read... [16:55:26]Read from MH i2c: F0 09 00 B5 00 00 FF 44 25 66 F4 E9 65 64 21 [16:55:26]GetLastDocTimeStamp 1713718495 [16:55:26]current date 1713718527 [16:55:26]FM_GetShiftState [16:55:26]SAM_PROTO_GetShiftState [16:55:26]wFMCommunicate request_size=4 [16:55:26]MH_SAM_APDU [16:55:26]CAPDU: 80 13 01 00 [16:55:26]Write to MH i2c: E2 08 00 B6 00 80 13 01 00 00 00 00 00 33 [16:55:26]Write i2c OK [16:55:26]MH_I2C_Read... [16:55:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:26]Read from MH i2c: E2 [16:55:26]MH_I2C_Read... [16:55:26]Read from MH i2c: E2 0E 00 [16:55:26]MH_I2C_Read... [16:55:26]Read from MH i2c: E2 0E 00 B6 00 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 7A [16:55:26]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [16:55:26]wFMCommunicate OK [16:55:26]SAM_PROTO_GetShiftState done [16:55:26]FM_GetShiftState done [16:55:26]opened in 1713658965 [16:55:26]opened+sec_in_day 1713745365 [16:55:26]quantity*price = 100013 [16:55:26]sum+1 = 100014 [16:55:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 139 21.04.2024 16:55 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76883 ФПД: 147173627937562 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T165527&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76883&fm=147173627937562&tin=02508201610067®Number=0000000000091573&sum=100000 [16:55:27]StoreToDocumentArchive [16:55:27]shift 372 fd 76883 [16:55:27]save to /storage/0372/doc_00076883 [16:55:27]save last doc name /storage/0372/doc_00076883 to /storage/kkm_last_doc_name [16:55:27]save OK [16:55:27]Clear old archive folders... [16:55:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:55:27]tlvbuf is 009498A0 [16:55:27]SAM_PROTO_ClearQueue [16:55:27]wFMCommunicate request_size=4 [16:55:27]MH_SAM_APDU [16:55:27]CAPDU: 80 09 00 00 [16:55:27]Write to MH i2c: E2 08 00 C3 00 80 09 00 00 00 00 00 00 35 [16:55:27]Write i2c OK [16:55:27]MH_I2C_Read... [16:55:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:55:27]Read from MH i2c: E2 [16:55:27]MH_I2C_Read... [16:55:27]Read from MH i2c: E2 03 00 [16:55:27]MH_I2C_Read... [16:55:27]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [16:55:27]RAPDU: 90 00 [16:55:27]wFMCommunicate OK [16:55:27]SAM_PROTO_ClearQueue done [16:55:27]KKMCreateOFDPacket [16:55:27]OFDProtocolAddRootSTLVToBuf [16:55:27]FM_MakeSignedData [16:55:27]FM_MakeSignedData [16:55:27]SAM_PROTO_SignData [16:55:27]wFMCommunicate request_size=4 [16:55:27]MH_SAM_APDU [16:55:27]CAPDU: 80 0D 01 02 [16:55:27]Write to MH i2c: E2 08 00 C4 00 80 0D 01 02 00 00 00 00 3D [16:55:27]Write i2c OK [16:55:27]MH_I2C_Read... [16:55:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:55:27]Read from MH i2c: E2 [16:55:27]MH_I2C_Read... [16:55:27]Read from MH i2c: E2 03 00 [16:55:27]MH_I2C_Read... [16:55:27]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [16:55:27]RAPDU: 90 00 [16:55:27]wFMCommunicate OK [16:55:27]wFMCommunicate request_size=255 [16:55:27]MH_SAM_APDU [16:55: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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 FF 44 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 53 2C 01 00 35 04 06 00 85 [16:55:27]Write to MH i2c: E2 02 01 C5 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 FF 44 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 53 2C 01 00 35 04 06 00 85 00 00 E1 [16:55:27]Write i2c OK [16:55:27]MH_I2C_Read... [16:55:27]OFD Sender: No OFD packet to send [16:55:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:28]Read from MH i2c: E2 [16:55:28]MH_I2C_Read... [16:55:28]Read from MH i2c: E2 03 00 [16:55:28]MH_I2C_Read... [16:55:28]Read from MH i2c: E2 03 00 C5 00 00 90 00 39 [16:55:28]RAPDU: 90 00 [16:55:28]wFMCommunicate OK [16:55:28]wFMCommunicate request_size=10 [16:55:28]MH_SAM_APDU [16:55:28]CAPDU: 80 0D 02 02 05 DA 87 D0 43 1A [16:55:28]Write to MH i2c: E2 0D 00 C6 00 80 0D 02 02 05 00 DA 87 D0 43 1A 00 00 D8 [16:55:28]Write i2c OK [16:55:28]MH_I2C_Read... [16:55:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:28]Read from MH i2c: E2 [16:55:28]MH_I2C_Read... [16:55:28]Read from MH i2c: E2 03 00 [16:55:28]MH_I2C_Read... [16:55:28]Read from MH i2c: E2 03 00 C6 00 00 90 00 3A [16:55:28]RAPDU: 90 00 [16:55:28]wFMCommunicate OK [16:55:28]wFMCommunicate request_size=4 [16:55:28]MH_SAM_APDU [16:55:28]CAPDU: 80 0D 03 02 [16:55:28]Write to MH i2c: E2 08 00 C7 00 80 0D 03 02 00 00 00 00 42 [16:55:28]Write i2c OK [16:55:28]MH_I2C_Read... [16:55:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:55:28]Read from MH i2c: E2 [16:55:28]MH_I2C_Read... [16:55:28]Read from MH i2c: E2 0B 00 [16:55:28]MH_I2C_Read... [16:55:28]Read from MH i2c: E2 0B 00 C7 00 00 2E 29 91 28 57 08 8F 0C 90 00 4D [16:55:28]RAPDU: 2E 29 91 28 57 08 8F 0C 90 00 [16:55:28]wFMCommunicate OK [16:55:28]SAM_PROTO_SignData done [16:55:28]FM_MakeSignedData done [16:55:28]CreateOFDProtocolMessage [16:55:28]wFMCommunicate request_size=4 [16:55:28]MH_SAM_APDU [16:55:28]CAPDU: 80 11 00 00 [16:55:28]Write to MH i2c: E2 08 00 C8 00 80 11 00 00 00 00 00 00 42 [16:55:28]Write i2c OK [16:55:28]MH_I2C_Read... [16:55:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:28]Read from MH i2c: E2 [16:55:28]MH_I2C_Read... [16:55:28]Read from MH i2c: E2 17 00 [16:55:28]MH_I2C_Read... [16:55:28]Read from MH i2c: E2 17 00 C8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 95 [16:55:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:55:28]wFMCommunicate OK [16:55:28]CreateOFDProtocolMessage done [16:55:28]OFDSenderStorePacket 76883 [16:55:28]StoreOFDPacket docnum=76883 [16:55:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 D5 3B 07 01 2E F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 FF 44 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 53 2C 01 00 35 04 06 00 85 DA 87 D0 43 1A 2E 29 91 28 57 08 8F 0C [16:55:28]CheckFolder [16:55:28]dirname=/storage/ofd_packets [16:55:28]CheckFolder done [16:55:28]ProducePacketName [16:55:28]name=ofd_packets/00076883 [16:55:28]NVStorageSaveData ofd_packets/00076883 [16:55:28]File name is /storage/ofd_packets/00076883 [16:55:28]Write 301 bytes [16:55:28]NVStorageSaveData done [16:55:28]OFDSenderStorePacket done [16:55:28]KKMCreateOFDPacket done [16:55:28]NVStorageSaveData kkm_last_timestamp [16:55:28]File name is /storage/kkm_last_timestamp [16:55:28]Write 4 bytes [16:55:28]NVStorageSaveData done [16:55:28]ExternCall_PrintAddStr [16:55:28]wPrintStart [16:55:28]Write to MH i2c: 01 00 00 C9 00 C9 [16:55:28]OFD Sender: Processing packet 76883 [packets to send 129, broken 128] [16:55:28]ProducePacketName [16:55:28]name=ofd_packets/00076883 [16:55:28]OFD Sender: To server: pG, [16:55:28]CommunicateWithHost lk.salyk.kg:30040 [16:55:28]ConnectInit lk.salyk.kg [16:55:28]Write i2c OK [16:55:28]MH_I2C_Read... [16:55:28]Read from MH i2c: 01 [16:55:28]MH_I2C_Read... [16:55:28]Read from MH i2c: 01 07 00 [16:55:28]MH_I2C_Read... [16:55:28]Read from MH i2c: 01 07 00 C9 00 00 00 00 00 00 FF 0F DE [16:55:28]RasterBufferAndPrint [16:55:28]line Счет N : (1)191426 [16:55:28]line ИНН: 02508201610067 [16:55:28]line Контрольно-Кассовый Чек [16:55:28]line ПРОДАЖА [16:55:28]line ТРК (МРК, ГНК) : 12 [16:55:28]line Товар: 2710124130 [16:55:28]line Аи-92-К-5 [16:55:28]line 15.530 * 64.40 [16:55:28]line = 1000.13 [16:55:28]line НДС 12% НСП 1% [16:55:28]line > о реализуемом товаре [16:55:28]line ОКРУГЛЕНИЕ: -0.13 [16:55:28]line ИТОГО: 1000.00 [16:55:28]line Внесено: 1000.00 [16:55:28]line СДАЧА: 0.00 [16:55:28]line НСП 1% : 8.85 [16:55:28]line НДС 12% : 106.21 [16:55:28]line Наличными: 1000.00 [16:55:28]line Безнал.: 0.00 [16:55:28]line Место: АЗС № 106 "Партнер Нефть" [16:55:28]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [16:55:28]line СНО: Общий режим [16:55:28]line Чек 139 21.04.2024 16:55 [16:55:28]line Смена: 372 ФФД: 1.0 [16:55:28]line ЗНМ: 0300000141 [16:55:28]line РНМ: 0000000000091573 [16:55:28]line Версия ККМ: 001 [16:55:28]line ФМ: 0000000000874652 [16:55:28]line ФД: 76883 [16:55:28]line ФПД: 147173627937562 [16:55:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T165527&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76883&fm=147173627937562&tin=02508201610067®Number=0000000000091573&sum=100000 [16:55:28]written 0, free lines is 4095 [16:55:28]Connected sock=7 [16:55:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 D5 3B 07 01 2E F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 FF 44 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 53 2C 01 00 35 04 06 00 85 DA 87 D0 43 1A 2E 29 91 28 57 08 8F 0C [16:55:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 3C 36 47 00 86 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 53 2C 01 00 F4 03 04 00 84 EC 24 66 B6 04 01 00 00 6B 2F EE CB 45 9E D6 79 [16:55:28]CommunicateWithHost err = 0 [16:55:28]CheckOFDResponse [16:55:28]1017 (14) - 77093643461234 [16:55:28]1041 (16) - 0000000000874652 [16:55:28]1040 (4) - 76883 [16:55:28]1012 (4) - 21.04.2024 10:37 [16:55:28]1206 (1) - 0 [16:55:28]OFD Sender: Remove packet 76883 [16:55:28]ProducePacketName [16:55:28]name=ofd_packets/00076883 [16:55:28]NVStorageDeleteData [16:55:28]Write to MH i2c: 01 00 00 F3 00 F3 [16:55:28]Write i2c OK [16:55:28]MH_I2C_Read... [16:55:28]Read from MH i2c: 01 [16:55:28]MH_I2C_Read... [16:55:28]Read from MH i2c: 01 07 00 [16:55:28]MH_I2C_Read... [16:55:28]Read from MH i2c: 01 07 00 F3 00 00 00 00 00 00 0A 0D 11 [16:55:28]RasterBufferAndPrint [16:55:28]line [16:55:28]line [16:55:28]line [16:55:28]line [16:55:28]line [16:55:28]written 0, free lines is 3353 [16:55:28]MH_Cut [16:55:28]Write to MH i2c: D1 01 00 FA 00 01 CC [16:55:28]Write i2c OK [16:55:28]MH_I2C_Read... [16:55:28]Read from MH i2c: D1 [16:55:28]MH_I2C_Read... [16:55:28]Read from MH i2c: D1 01 00 [16:55:28]MH_I2C_Read... [16:55:28]Read from MH i2c: D1 01 00 FA 00 00 CB [16:55:28]Write to MH i2c: 01 00 00 FB 00 FB [16:55:28]Write i2c OK [16:55:28]MH_I2C_Read... [16:55:29]OFD Sender: No OFD packet to send [16:55:29]*** Cut start [16:55:29]*** Partial cut [16:55:29]*** CUTSNS_PIN = 1 [16:55:29]*** CUTSNS_PIN = 0 [16:55:29]*** Brake cut motor [16:55:30]Read from MH i2c: 01 [16:55:30]MH_I2C_Read... [16:55:30]*** Stop cut motor [16:55:30]*** Cut end [16:55:30]Read from MH i2c: 01 07 00 [16:55:30]MH_I2C_Read... [16:55:30]Read from MH i2c: 01 07 00 FB 00 00 00 00 00 00 FF 0F 10 [16:55:30]process_action close_receipt done [16:55:30]requested_data is exist [16:55:30]produce_requested_data [16:55:30]requested_item fm.sn is exist - process it [16:55:30]wFMCommunicate request_size=4 [16:55:30]MH_SAM_APDU [16:55:30]CAPDU: 80 11 00 00 [16:55:30]Write to MH i2c: E2 08 00 FC 00 80 11 00 00 00 00 00 00 76 [16:55:30]Write i2c OK [16:55:30]MH_I2C_Read... [16:55:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:30]Read from MH i2c: E2 [16:55:30]MH_I2C_Read... [16:55:30]Read from MH i2c: E2 17 00 [16:55:30]MH_I2C_Read... [16:55:30]Read from MH i2c: E2 17 00 FC 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 C9 [16:55:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:55:30]wFMCommunicate OK [16:55:30]requested_item fd.num is exist - process it [16:55:30]SAM_PROTO_GetFieldsCounters [16:55:30]wFMCommunicate request_size=4 [16:55:30]MH_SAM_APDU [16:55:30]CAPDU: 80 13 00 00 [16:55:30]Write to MH i2c: E2 08 00 FD 00 80 13 00 00 00 00 00 00 79 [16:55:30]Write i2c OK [16:55:30]MH_I2C_Read... [16:55:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:55:30]Read from MH i2c: E2 [16:55:30]MH_I2C_Read... [16:55:30]Read from MH i2c: E2 62 00 [16:55:30]MH_I2C_Read... [16:55:30]Read from MH i2c: E2 62 00 FD 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 53 2C 01 00 0E 04 04 00 74 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 30 [16:55: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 53 2C 01 00 0E 04 04 00 74 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 [16:55:30]wFMCommunicate OK [16:55:30]SAM_PROTO_GetFieldsCounters done [16:55:30]requested_item shift.num is exist - process it [16:55:30]requested_item shift.opened is exist - process it [16:55:30]req_shift_opened [16:55:30]FM_GetShiftState [16:55:30]SAM_PROTO_GetShiftState [16:55:30]wFMCommunicate request_size=4 [16:55:30]MH_SAM_APDU [16:55:30]CAPDU: 80 13 01 00 [16:55:30]Write to MH i2c: E2 08 00 FE 00 80 13 01 00 00 00 00 00 7B [16:55:30]Write i2c OK [16:55:30]MH_I2C_Read... [16:55:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:30]Read from MH i2c: E2 [16:55:30]MH_I2C_Read... [16:55:30]Read from MH i2c: E2 0E 00 [16:55:30]MH_I2C_Read... [16:55:30]Read from MH i2c: E2 0E 00 FE 00 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 C2 [16:55:30]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [16:55:30]wFMCommunicate OK [16:55:30]SAM_PROTO_GetShiftState done [16:55:30]FM_GetShiftState done [16:55:30]req_shift_opened done [16:55:30]requested_item shift.open_date is exist - process it [16:55:30]req_shift_open_date [16:55:30]req_shift_open_date done [16:55:30]produce_requested_data done [16:55:30]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76883,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [16:55:30]process_action_free close_receipt [16:55:30]json_value_free [16:55:30]json_value_free done [16:55:30]process_json_proto returns [16:55:30]Send response to host [16:55:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76883,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [16:55:30]free response buf [16:55:30]execute_script done [16:55:30]execute_script returns [16:55:30]free content buf [16:55:30]Sock 9.Close socket [16:55:30]Sock 9.Thread stoped [16:55:34]OFD Sender: No OFD packet to send [16:55:39]OFD Sender: No OFD packet to send [16:55:44]OFD Sender: No OFD packet to send [16:55:49]OFD Sender: No OFD packet to send [16:55:54]OFD Sender: No OFD packet to send [16:55:54]accept exits with 10 [16:55:54]New connection [16:55:54]New thread 3067166052 created [16:55:54]Thread 3067309412 joined [16:55:54]Waiting for new connection... [16:55:54] Sock 10.Parse request [16:55:54]Sock 10.Check first char [16:55:54]Sock 10.First char is OK [16:55:54]request: POST /json_proto HTTP/1.0 [16:55:54]Method: POST [16:55:54]URL: /json_proto [16:55:54]Method is POST - this is cgi request [16:55:54]url: /json_proto [16:55:54]query_string will be loaded in cgi processing [16:55:54]execute_cgi json_proto POST (null) [16:55:54]execute_cgi path=json_proto method=POST [16:55:54]POST find Content-Length [16:55:54]Host: 172.17.62.5:8080 [16:55:54]Content-Length: 805 [16:55:54]Content-Type: application/json [16:55:54] [16:55:54]POST finish read [16:55:54]Found Content-Length = 805 [16:55:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:54]execute_script... [16:55: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)191427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:54]POST & json_proto [16:55:54]process_json_proto [16:55:54]json parsed OK: [16:55:54]protocol is kg_v1.0 [16:55:54]action value=close_receipt [16:55:54]process_action close_receipt [16:55:54]cmd_close_receipt [16:55:54]MH_GetDate [16:55:54]Write to MH i2c: F0 00 00 FF 00 EE [16:55:54]Write i2c OK [16:55:54]MH_I2C_Read... [16:55:54]Read from MH i2c: F0 [16:55:54]MH_I2C_Read... [16:55:54]Read from MH i2c: F0 09 00 [16:55:54]MH_I2C_Read... [16:55:54]Read from MH i2c: F0 09 00 FF 00 00 1B 45 25 66 F4 E9 65 64 88 [16:55:54]GetLastDocTimeStamp 1713718527 [16:55:54]current date 1713718555 [16:55:54]FM_GetShiftState [16:55:54]SAM_PROTO_GetShiftState [16:55:54]wFMCommunicate request_size=4 [16:55:54]MH_SAM_APDU [16:55:54]CAPDU: 80 13 01 00 [16:55:54]Write to MH i2c: E2 08 00 00 01 80 13 01 00 00 00 00 00 7E [16:55:54]Write i2c OK [16:55:54]MH_I2C_Read... [16:55:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:54]Read from MH i2c: E2 [16:55:54]MH_I2C_Read... [16:55:54]Read from MH i2c: E2 0E 00 [16:55:54]MH_I2C_Read... [16:55:54]Read from MH i2c: E2 0E 00 00 01 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 C5 [16:55:54]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [16:55:54]wFMCommunicate OK [16:55:54]SAM_PROTO_GetShiftState done [16:55:54]FM_GetShiftState done [16:55:54]opened in 1713658965 [16:55:54]opened+sec_in_day 1713745365 [16:55:54]quantity*price = 100018 [16:55:54]sum+1 = 100020 [16:55:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.19 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.19 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 140 21.04.2024 16:55 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 76884 ФПД: 180394679729376 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T165555&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76884&fm=180394679729376&tin=02508201610067®Number=0000000000091573&sum=100019 [16:55:55]StoreToDocumentArchive [16:55:55]shift 372 fd 76884 [16:55:55]save to /storage/0372/doc_00076884 [16:55:55]save last doc name /storage/0372/doc_00076884 to /storage/kkm_last_doc_name [16:55:55]save OK [16:55:55]Clear old archive folders... [16:55:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:55:55]tlvbuf is 0091A020 [16:55:55]SAM_PROTO_ClearQueue [16:55:55]wFMCommunicate request_size=4 [16:55:55]MH_SAM_APDU [16:55:55]CAPDU: 80 09 00 00 [16:55:55]Write to MH i2c: E2 08 00 0D 01 80 09 00 00 00 00 00 00 80 [16:55:55]Write i2c OK [16:55:55]MH_I2C_Read... [16:55:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:55:55]Read from MH i2c: E2 [16:55:55]MH_I2C_Read... [16:55:55]Read from MH i2c: E2 03 00 [16:55:55]MH_I2C_Read... [16:55:55]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [16:55:55]RAPDU: 90 00 [16:55:55]wFMCommunicate OK [16:55:55]SAM_PROTO_ClearQueue done [16:55:55]KKMCreateOFDPacket [16:55:55]OFDProtocolAddRootSTLVToBuf [16:55:55]FM_MakeSignedData [16:55:55]FM_MakeSignedData [16:55:55]SAM_PROTO_SignData [16:55:55]wFMCommunicate request_size=4 [16:55:55]MH_SAM_APDU [16:55:55]CAPDU: 80 0D 01 02 [16:55:55]Write to MH i2c: E2 08 00 0E 01 80 0D 01 02 00 00 00 00 88 [16:55:55]Write i2c OK [16:55:55]MH_I2C_Read... [16:55:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:55:55]Read from MH i2c: E2 [16:55:55]MH_I2C_Read... [16:55:55]Read from MH i2c: E2 03 00 [16:55:55]MH_I2C_Read... [16:55:55]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [16:55:55]RAPDU: 90 00 [16:55:55]wFMCommunicate OK [16:55:55]wFMCommunicate request_size=255 [16:55:55]MH_SAM_APDU [16:55:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 8C 00 00 00 F4 03 04 00 1B 45 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 54 2C 01 00 35 04 06 00 A4 11 68 CD [16:55:55]Write to MH i2c: E2 02 01 0F 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 8C 00 00 00 F4 03 04 00 1B 45 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 54 2C 01 00 35 04 06 00 A4 11 68 CD 00 00 6B [16:55:55]Write i2c OK [16:55:55]MH_I2C_Read... [16:55:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:56]Read from MH i2c: E2 [16:55:56]MH_I2C_Read... [16:55:56]Read from MH i2c: E2 03 00 [16:55:56]MH_I2C_Read... [16:55:56]Read from MH i2c: E2 03 00 0F 01 00 90 00 84 [16:55:56]RAPDU: 90 00 [16:55:56]wFMCommunicate OK [16:55:56]wFMCommunicate request_size=7 [16:55:56]MH_SAM_APDU [16:55:56]CAPDU: 80 0D 02 02 02 FC E0 [16:55:56]Write to MH i2c: E2 0A 00 10 01 80 0D 02 02 02 00 FC E0 00 00 6B [16:55:56]Write i2c OK [16:55:56]MH_I2C_Read... [16:55:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:56]Read from MH i2c: E2 [16:55:56]MH_I2C_Read... [16:55:56]Read from MH i2c: E2 03 00 [16:55:56]MH_I2C_Read... [16:55:56]Read from MH i2c: E2 03 00 10 01 00 90 00 85 [16:55:56]RAPDU: 90 00 [16:55:56]wFMCommunicate OK [16:55:56]wFMCommunicate request_size=4 [16:55:56]MH_SAM_APDU [16:55:56]CAPDU: 80 0D 03 02 [16:55:56]Write to MH i2c: E2 08 00 11 01 80 0D 03 02 00 00 00 00 8D [16:55:56]Write i2c OK [16:55:56]MH_I2C_Read... [16:55:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:55:56]Read from MH i2c: E2 [16:55:56]MH_I2C_Read... [16:55:56]Read from MH i2c: E2 0B 00 [16:55:56]MH_I2C_Read... [16:55:56]Read from MH i2c: E2 0B 00 11 01 00 52 C0 9A 73 9B 63 E8 B9 90 00 4C [16:55:56]RAPDU: 52 C0 9A 73 9B 63 E8 B9 90 00 [16:55:56]wFMCommunicate OK [16:55:56]SAM_PROTO_SignData done [16:55:56]FM_MakeSignedData done [16:55:56]CreateOFDProtocolMessage [16:55:56]wFMCommunicate request_size=4 [16:55:56]MH_SAM_APDU [16:55:56]CAPDU: 80 11 00 00 [16:55:56]Write to MH i2c: E2 08 00 12 01 80 11 00 00 00 00 00 00 8D [16:55:56]Write i2c OK [16:55:56]MH_I2C_Read... [16:55:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:56]Read from MH i2c: E2 [16:55:56]MH_I2C_Read... [16:55:56]Read from MH i2c: E2 17 00 [16:55:56]MH_I2C_Read... [16:55:56]Read from MH i2c: E2 17 00 12 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 E0 [16:55:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:55:56]wFMCommunicate OK [16:55:56]CreateOFDProtocolMessage done [16:55:56]OFDSenderStorePacket 76884 [16:55:56]StoreOFDPacket docnum=76884 [16:55:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 11 0A 04 01 7A 14 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 8C 00 00 00 F4 03 04 00 1B 45 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 54 2C 01 00 35 04 06 00 A4 11 68 CD FC E0 52 C0 9A 73 9B 63 E8 B9 [16:55:56]CheckFolder [16:55:56]dirname=/storage/ofd_packets [16:55:56]CheckFolder done [16:55:56]ProducePacketName [16:55:56]name=ofd_packets/00076884 [16:55:56]NVStorageSaveData ofd_packets/00076884 [16:55:56]File name is /storage/ofd_packets/00076884 [16:55:56]Write 298 bytes [16:55:56]NVStorageSaveData done [16:55:56]OFDSenderStorePacket done [16:55:56]KKMCreateOFDPacket done [16:55:56]NVStorageSaveData kkm_last_timestamp [16:55:56]File name is /storage/kkm_last_timestamp [16:55:56]Write 4 bytes [16:55:56]NVStorageSaveData done [16:55:56]ExternCall_PrintAddStr [16:55:56]wPrintStart [16:55:56]Write to MH i2c: 01 00 00 13 01 14 [16:55:56]Write i2c OK [16:55:56]MH_I2C_Read... [16:55:56]Read from MH i2c: 01 [16:55:56]MH_I2C_Read... [16:55:56]Read from MH i2c: 01 07 00 [16:55:56]MH_I2C_Read... [16:55:56]Read from MH i2c: 01 07 00 13 01 00 00 00 00 00 FF 0F 29 [16:55:56]RasterBufferAndPrint [16:55:56]line Счет N : (1)191427 [16:55:56]line ИНН: 02508201610067 [16:55:56]line Контрольно-Кассовый Чек [16:55:56]line ПРОДАЖА [16:55:56]line ТРК (МРК, ГНК) : 51 [16:55:56]line Товар: 2710194210 [16:55:56]line ДТ-К-5 [16:55:56]line 13.720 * 72.90 [16:55:56]line = 1000.19 [16:55:56]line НДС 12% НСП 1% [16:55:56]line > о реализуемом товаре [16:55:56]line ИТОГО: 1000.19 [16:55:56]line НСП 1% : 8.85 [16:55:56]line НДС 12% : 106.21 [16:55:56]line Наличными: 0.00 [16:55:56]line Безнал.: 1000.19 [16:55:56]line Место: АЗС № 106 "Партнер Нефть" [16:55:56]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [16:55:56]line СНО: Общий режим [16:55:56]line Чек 140 21.04.2024 16:55 [16:55:56]line Смена: 372 ФФД: 1.0 [16:55:56]line ЗНМ: 0300000141 [16:55:56]line РНМ: 0000000000091573 [16:55:56]line Версия ККМ: 001 [16:55:56]line Платежная система: О! деньги [16:55:56]line ФМ: 0000000000874652 [16:55:56]line ФД: 76884 [16:55:56]line ФПД: 180394679729376 [16:55:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T165555&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76884&fm=180394679729376&tin=02508201610067®Number=0000000000091573&sum=100019 [16:55:56]written 0, free lines is 4095 [16:55:56]OFD Sender: Processing packet 76884 [packets to send 129, broken 128] [16:55:56]ProducePacketName [16:55:56]name=ofd_packets/00076884 [16:55:56]OFD Sender: To server: pG, [16:55:56]CommunicateWithHost lk.salyk.kg:30040 [16:55:56]ConnectInit lk.salyk.kg [16:55:56]Connected sock=9 [16:55:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 11 0A 04 01 7A 14 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 8C 00 00 00 F4 03 04 00 1B 45 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 54 2C 01 00 35 04 06 00 A4 11 68 CD FC E0 52 C0 9A 73 9B 63 E8 B9 [16:55:56]Write to MH i2c: 01 00 00 3C 01 3D [16:55:56]Write i2c OK [16:55:56]MH_I2C_Read... [16:55:56]Read from MH i2c: 01 [16:55:56]MH_I2C_Read... [16:55:56]Read from MH i2c: 01 07 00 [16:55:56]MH_I2C_Read... [16:55:56]Read from MH i2c: 01 07 00 3C 01 00 00 00 00 00 0B 0D 5C [16:55:56]RasterBufferAndPrint [16:55:56]line [16:55:56]line [16:55:56]line [16:55:56]line [16:55:56]line [16:55:56]written 0, free lines is 3348 [16:55:56]MH_Cut [16:55:56]Write to MH i2c: D1 01 00 43 01 01 16 [16:55:56]Write i2c OK [16:55:56]MH_I2C_Read... [16:55:56]Read from MH i2c: D1 [16:55:56]MH_I2C_Read... [16:55:56]Read from MH i2c: D1 01 00 [16:55:56]MH_I2C_Read... [16:55:56]Read from MH i2c: D1 01 00 43 01 00 15 [16:55:56]Write to MH i2c: 01 00 00 44 01 45 [16:55:56]Write i2c OK [16:55:56]MH_I2C_Read... [16:55:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 F6 9F 47 00 68 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 54 2C 01 00 F4 03 04 00 A0 EC 24 66 B6 04 01 00 00 1F D7 EE 32 D9 0E D7 A6 [16:55:56]CommunicateWithHost err = 0 [16:55:56]CheckOFDResponse [16:55:56]1017 (14) - 77093643461234 [16:55:56]1041 (16) - 0000000000874652 [16:55:56]1040 (4) - 76884 [16:55:56]1012 (4) - 21.04.2024 10:38 [16:55:56]1206 (1) - 0 [16:55:56]OFD Sender: Remove packet 76884 [16:55:56]ProducePacketName [16:55:56]name=ofd_packets/00076884 [16:55:56]NVStorageDeleteData [16:55:57]OFD Sender: No OFD packet to send [16:55:57]*** Cut start [16:55:57]*** Partial cut [16:55:57]*** CUTSNS_PIN = 1 [16:55:57]*** CUTSNS_PIN = 0 [16:55:57]*** Brake cut motor [16:55:58]Read from MH i2c: 01 [16:55:58]MH_I2C_Read... [16:55:58]*** Stop cut motor [16:55:58]*** Cut end [16:55:58]Read from MH i2c: 01 07 00 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: 01 07 00 44 01 00 00 00 00 00 FF 0F 5A [16:55:58]process_action close_receipt done [16:55:58]requested_data is exist [16:55:58]produce_requested_data [16:55:58]requested_item fm.sn is exist - process it [16:55:58]wFMCommunicate request_size=4 [16:55:58]MH_SAM_APDU [16:55:58]CAPDU: 80 11 00 00 [16:55:58]Write to MH i2c: E2 08 00 45 01 80 11 00 00 00 00 00 00 C0 [16:55:58]Write i2c OK [16:55:58]MH_I2C_Read... [16:55:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:58]Read from MH i2c: E2 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: E2 17 00 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: E2 17 00 45 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 13 [16:55:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:55:58]wFMCommunicate OK [16:55:58]requested_item fd.num is exist - process it [16:55:58]SAM_PROTO_GetFieldsCounters [16:55:58]wFMCommunicate request_size=4 [16:55:58]MH_SAM_APDU [16:55:58]CAPDU: 80 13 00 00 [16:55:58]Write to MH i2c: E2 08 00 46 01 80 13 00 00 00 00 00 00 C3 [16:55:58]Write i2c OK [16:55:58]MH_I2C_Read... [16:55:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:55:58]Read from MH i2c: E2 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: E2 62 00 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: E2 62 00 46 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 54 2C 01 00 0E 04 04 00 74 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 7E [16:55: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 54 2C 01 00 0E 04 04 00 74 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 [16:55:58]wFMCommunicate OK [16:55:58]SAM_PROTO_GetFieldsCounters done [16:55:58]requested_item shift.num is exist - process it [16:55:58]requested_item shift.opened is exist - process it [16:55:58]req_shift_opened [16:55:58]FM_GetShiftState [16:55:58]SAM_PROTO_GetShiftState [16:55:58]wFMCommunicate request_size=4 [16:55:58]MH_SAM_APDU [16:55:58]CAPDU: 80 13 01 00 [16:55:58]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [16:55:58]Write i2c OK [16:55:58]MH_I2C_Read... [16:55:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:58]Read from MH i2c: E2 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: E2 0E 00 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 0C [16:55:58]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [16:55:58]wFMCommunicate OK [16:55:58]SAM_PROTO_GetShiftState done [16:55:58]FM_GetShiftState done [16:55:58]req_shift_opened done [16:55:58]requested_item shift.open_date is exist - process it [16:55:58]req_shift_open_date [16:55:58]req_shift_open_date done [16:55:58]produce_requested_data done [16:55:58]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76884,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [16:55:58]process_action_free close_receipt [16:55:58]json_value_free [16:55:58]json_value_free done [16:55:58]process_json_proto returns [16:55:58]Send response to host [16:55:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76884,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [16:55:58]free response buf [16:55:58]execute_script done [16:55:58]execute_script returns [16:55:58]free content buf [16:55:58]Sock 10.Close socket [16:55:58]Sock 10.Thread stoped [16:56:02]OFD Sender: No OFD packet to send [16:56:07]OFD Sender: No OFD packet to send [16:56:12]OFD Sender: No OFD packet to send [16:56:17]OFD Sender: No OFD packet to send [16:56:22]OFD Sender: No OFD packet to send [16:56:27]OFD Sender: No OFD packet to send [16:56:32]OFD Sender: No OFD packet to send [16:56:37]OFD Sender: No OFD packet to send [16:56:42]OFD Sender: No OFD packet to send [16:56:47]OFD Sender: No OFD packet to send [16:56:52]OFD Sender: No OFD packet to send [16:56:57]OFD Sender: No OFD packet to send [16:57:02]OFD Sender: No OFD packet to send [16:57:07]OFD Sender: No OFD packet to send [16:57:12]OFD Sender: No OFD packet to send [16:57:17]OFD Sender: No OFD packet to send [16:57:22]OFD Sender: No OFD packet to send [16:57:27]OFD Sender: No OFD packet to send [16:57:29]accept exits with 7 [16:57:29]New connection [16:57:29]New thread 3067309412 created [16:57:29]Thread 3067166052 joined [16:57:29]Waiting for new connection... [16:57:29] Sock 7.Parse request [16:57:29]Sock 7.Check first char [16:57:29]Sock 7.First char is OK [16:57:29]request: POST /json_proto HTTP/1.0 [16:57:29]Method: POST [16:57:29]URL: /json_proto [16:57:29]Method is POST - this is cgi request [16:57:29]url: /json_proto [16:57:29]query_string will be loaded in cgi processing [16:57:29]execute_cgi json_proto POST (null) [16:57:29]execute_cgi path=json_proto method=POST [16:57:29]POST find Content-Length [16:57:29]Host: 172.17.62.5:8080 [16:57:29]Content-Length: 805 [16:57:29]Content-Type: application/json [16:57:29] [16:57:29]POST finish read [16:57:29]Found Content-Length = 805 [16:57:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191428", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:57:29]execute_script... [16:57:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191428", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:57:29]POST & json_proto [16:57:29]process_json_proto [16:57:29]json parsed OK: [16:57:29]protocol is kg_v1.0 [16:57:29]action value=close_receipt [16:57:29]process_action close_receipt [16:57:29]cmd_close_receipt [16:57:29]MH_GetDate [16:57:29]Write to MH i2c: F0 00 00 48 01 38 [16:57:29]Write i2c OK [16:57:29]MH_I2C_Read... [16:57:29]Read from MH i2c: F0 [16:57:29]MH_I2C_Read... [16:57:29]Read from MH i2c: F0 09 00 [16:57:29]MH_I2C_Read... [16:57:29]Read from MH i2c: F0 09 00 48 01 00 7A 45 25 66 F4 E9 65 64 31 [16:57:29]GetLastDocTimeStamp 1713718555 [16:57:29]current date 1713718650 [16:57:29]FM_GetShiftState [16:57:29]SAM_PROTO_GetShiftState [16:57:29]wFMCommunicate request_size=4 [16:57:29]MH_SAM_APDU [16:57:29]CAPDU: 80 13 01 00 [16:57:29]Write to MH i2c: E2 08 00 49 01 80 13 01 00 00 00 00 00 C7 [16:57:29]Write i2c OK [16:57:29]MH_I2C_Read... [16:57:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:29]Read from MH i2c: E2 [16:57:29]MH_I2C_Read... [16:57:29]Read from MH i2c: E2 0E 00 [16:57:29]MH_I2C_Read... [16:57:29]Read from MH i2c: E2 0E 00 49 01 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 0E [16:57:29]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [16:57:29]wFMCommunicate OK [16:57:29]SAM_PROTO_GetShiftState done [16:57:29]FM_GetShiftState done [16:57:29]opened in 1713658965 [16:57:29]opened+sec_in_day 1713745365 [16:57:29]quantity*price = 200037 [16:57:29]sum+1 = 200039 [16:57:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.38 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.38 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 141 21.04.2024 16:57 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 76885 ФПД: 41290621838033 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T165730&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76885&fm=41290621838033&tin=02508201610067®Number=0000000000091573&sum=200038 [16:57:30]StoreToDocumentArchive [16:57:30]shift 372 fd 76885 [16:57:30]save to /storage/0372/doc_00076885 [16:57:30]save last doc name /storage/0372/doc_00076885 to /storage/kkm_last_doc_name [16:57:30]save OK [16:57:30]Clear old archive folders... [16:57:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:57:30]tlvbuf is 008C1B70 [16:57:30]SAM_PROTO_ClearQueue [16:57:30]wFMCommunicate request_size=4 [16:57:30]MH_SAM_APDU [16:57:30]CAPDU: 80 09 00 00 [16:57:30]Write to MH i2c: E2 08 00 56 01 80 09 00 00 00 00 00 00 C9 [16:57:30]Write i2c OK [16:57:30]MH_I2C_Read... [16:57:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:57:30]Read from MH i2c: E2 [16:57:30]MH_I2C_Read... [16:57:30]Read from MH i2c: E2 03 00 [16:57:30]MH_I2C_Read... [16:57:30]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [16:57:30]RAPDU: 90 00 [16:57:30]wFMCommunicate OK [16:57:30]SAM_PROTO_ClearQueue done [16:57:30]KKMCreateOFDPacket [16:57:30]OFDProtocolAddRootSTLVToBuf [16:57:30]FM_MakeSignedData [16:57:30]FM_MakeSignedData [16:57:30]SAM_PROTO_SignData [16:57:30]wFMCommunicate request_size=4 [16:57:30]MH_SAM_APDU [16:57:30]CAPDU: 80 0D 01 02 [16:57:30]Write to MH i2c: E2 08 00 57 01 80 0D 01 02 00 00 00 00 D1 [16:57:30]Write i2c OK [16:57:30]MH_I2C_Read... [16:57:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:57:30]Read from MH i2c: E2 [16:57:30]MH_I2C_Read... [16:57:30]Read from MH i2c: E2 03 00 [16:57:30]MH_I2C_Read... [16:57:30]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [16:57:30]RAPDU: 90 00 [16:57:30]wFMCommunicate OK [16:57:30]wFMCommunicate request_size=255 [16:57:30]MH_SAM_APDU [16:57:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 66 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 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 7A 45 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 55 2C 01 00 35 04 06 00 25 8D B8 D8 [16:57:30]Write to MH i2c: E2 02 01 58 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 66 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 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 7A 45 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 55 2C 01 00 35 04 06 00 25 8D B8 D8 00 00 0E [16:57:30]Write i2c OK [16:57:30]MH_I2C_Read... [16:57:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:30]Read from MH i2c: E2 [16:57:30]MH_I2C_Read... [16:57:30]Read from MH i2c: E2 03 00 [16:57:30]MH_I2C_Read... [16:57:30]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [16:57:30]RAPDU: 90 00 [16:57:30]wFMCommunicate OK [16:57:30]wFMCommunicate request_size=7 [16:57:30]MH_SAM_APDU [16:57:30]CAPDU: 80 0D 02 02 02 E2 D1 [16:57:30]Write to MH i2c: E2 0A 00 59 01 80 0D 02 02 02 00 E2 D1 00 00 8B [16:57:30]Write i2c OK [16:57:30]MH_I2C_Read... [16:57:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:30]Read from MH i2c: E2 [16:57:30]MH_I2C_Read... [16:57:30]Read from MH i2c: E2 03 00 [16:57:30]MH_I2C_Read... [16:57:30]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [16:57:30]RAPDU: 90 00 [16:57:30]wFMCommunicate OK [16:57:30]wFMCommunicate request_size=4 [16:57:30]MH_SAM_APDU [16:57:30]CAPDU: 80 0D 03 02 [16:57:30]Write to MH i2c: E2 08 00 5A 01 80 0D 03 02 00 00 00 00 D6 [16:57:30]Write i2c OK [16:57:30]MH_I2C_Read... [16:57:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:57:30]Read from MH i2c: E2 [16:57:30]MH_I2C_Read... [16:57:30]Read from MH i2c: E2 0B 00 [16:57:30]MH_I2C_Read... [16:57:30]Read from MH i2c: E2 0B 00 5A 01 00 CC B3 14 E3 1E C8 44 4A 90 00 C1 [16:57:30]RAPDU: CC B3 14 E3 1E C8 44 4A 90 00 [16:57:30]wFMCommunicate OK [16:57:30]SAM_PROTO_SignData done [16:57:30]FM_MakeSignedData done [16:57:30]CreateOFDProtocolMessage [16:57:30]wFMCommunicate request_size=4 [16:57:30]MH_SAM_APDU [16:57:30]CAPDU: 80 11 00 00 [16:57:30]Write to MH i2c: E2 08 00 5B 01 80 11 00 00 00 00 00 00 D6 [16:57:30]Write i2c OK [16:57:30]MH_I2C_Read... [16:57:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:30]Read from MH i2c: E2 [16:57:30]MH_I2C_Read... [16:57:30]Read from MH i2c: E2 17 00 [16:57:30]MH_I2C_Read... [16:57:30]Read from MH i2c: E2 17 00 5B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 29 [16:57:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:57:30]wFMCommunicate OK [16:57:30]CreateOFDProtocolMessage done [16:57:30]OFDSenderStorePacket 76885 [16:57:30]StoreOFDPacket docnum=76885 [16:57:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 44 56 04 01 75 AD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 66 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 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 7A 45 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 55 2C 01 00 35 04 06 00 25 8D B8 D8 E2 D1 CC B3 14 E3 1E C8 44 4A [16:57:30]CheckFolder [16:57:30]dirname=/storage/ofd_packets [16:57:30]CheckFolder done [16:57:30]ProducePacketName [16:57:30]name=ofd_packets/00076885 [16:57:30]NVStorageSaveData ofd_packets/00076885 [16:57:30]File name is /storage/ofd_packets/00076885 [16:57:30]Write 298 bytes [16:57:30]NVStorageSaveData done [16:57:30]OFDSenderStorePacket done [16:57:30]KKMCreateOFDPacket done [16:57:30]NVStorageSaveData kkm_last_timestamp [16:57:30]File name is /storage/kkm_last_timestamp [16:57:30]Write 4 bytes [16:57:30]NVStorageSaveData done [16:57:30]ExternCall_PrintAddStr [16:57:30]wPrintStart [16:57:30]Write to MH i2c: 01 00 00 5C 01 5D [16:57:30]Write i2c OK [16:57:30]MH_I2C_Read... [16:57:30]Read from MH i2c: 01 [16:57:30]MH_I2C_Read... [16:57:30]Read from MH i2c: 01 07 00 [16:57:31]MH_I2C_Read... [16:57:31]Read from MH i2c: 01 07 00 5C 01 00 00 00 00 00 FF 0F 72 [16:57:31]RasterBufferAndPrint [16:57:31]line Счет N : (1)191428 [16:57:31]line ИНН: 02508201610067 [16:57:31]line Контрольно-Кассовый Чек [16:57:31]line ПРОДАЖА [16:57:31]line ТРК (МРК, ГНК) : 51 [16:57:31]line Товар: 2710194210 [16:57:31]line ДТ-К-5 [16:57:31]line 27.440 * 72.90 [16:57:31]line = 2000.38 [16:57:31]line НДС 12% НСП 1% [16:57:31]line > о реализуемом товаре [16:57:31]line ИТОГО: 2000.38 [16:57:31]line НСП 1% : 17.70 [16:57:31]line НДС 12% : 212.43 [16:57:31]line Наличными: 0.00 [16:57:31]line Безнал.: 2000.38 [16:57:31]line Место: АЗС № 106 "Партнер Нефть" [16:57:31]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [16:57:31]line СНО: Общий режим [16:57:31]line Чек 141 21.04.2024 16:57 [16:57:31]line Смена: 372 ФФД: 1.0 [16:57:31]line ЗНМ: 0300000141 [16:57:31]line РНМ: 0000000000091573 [16:57:31]line Версия ККМ: 001 [16:57:31]line Платежная система: О! деньги [16:57:31]line ФМ: 0000000000874652 [16:57:31]line ФД: 76885 [16:57:31]line ФПД: 41290621838033 [16:57:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T165730&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76885&fm=41290621838033&tin=02508201610067®Number=0000000000091573&sum=200038 [16:57:31]OFD Sender: Processing packet 76885 [packets to send 129, broken 128] [16:57:31]ProducePacketName [16:57:31]name=ofd_packets/00076885 [16:57:31]OFD Sender: To server: pG, [16:57:31]CommunicateWithHost lk.salyk.kg:30040 [16:57:31]ConnectInit lk.salyk.kg [16:57:31]written 0, free lines is 4095 [16:57:31]Connected sock=10 [16:57:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 44 56 04 01 75 AD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 66 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 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 7A 45 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 55 2C 01 00 35 04 06 00 25 8D B8 D8 E2 D1 CC B3 14 E3 1E C8 44 4A [16:57:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 3E 07 47 00 5D A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 55 2C 01 00 F4 03 04 00 FF EC 24 66 B6 04 01 00 00 A5 72 D5 9D D9 CF 4C B1 [16:57:31]CommunicateWithHost err = 0 [16:57:31]CheckOFDResponse [16:57:31]1017 (14) - 77093643461234 [16:57:31]1041 (16) - 0000000000874652 [16:57:31]1040 (4) - 76885 [16:57:31]1012 (4) - 21.04.2024 10:39 [16:57:31]1206 (1) - 0 [16:57:31]OFD Sender: Remove packet 76885 [16:57:31]ProducePacketName [16:57:31]name=ofd_packets/00076885 [16:57:31]NVStorageDeleteData [16:57:31]Write to MH i2c: 01 00 00 85 01 86 [16:57:31]Write i2c OK [16:57:31]MH_I2C_Read... [16:57:31]Read from MH i2c: 01 [16:57:31]MH_I2C_Read... [16:57:31]Read from MH i2c: 01 07 00 [16:57:31]MH_I2C_Read... [16:57:31]Read from MH i2c: 01 07 00 85 01 00 00 00 00 00 09 0D A3 [16:57:31]RasterBufferAndPrint [16:57:31]line [16:57:31]line [16:57:31]line [16:57:31]line [16:57:31]line [16:57:31]written 0, free lines is 3343 [16:57:31]MH_Cut [16:57:31]Write to MH i2c: D1 01 00 8C 01 01 5F [16:57:31]Write i2c OK [16:57:31]MH_I2C_Read... [16:57:31]Read from MH i2c: D1 [16:57:31]MH_I2C_Read... [16:57:31]Read from MH i2c: D1 01 00 [16:57:31]MH_I2C_Read... [16:57:31]Read from MH i2c: D1 01 00 8C 01 00 5E [16:57:31]Write to MH i2c: 01 00 00 8D 01 8E [16:57:31]Write i2c OK [16:57:31]MH_I2C_Read... [16:57:32]OFD Sender: No OFD packet to send [16:57:32]*** Cut start [16:57:32]*** Partial cut [16:57:32]*** CUTSNS_PIN = 1 [16:57:32]*** CUTSNS_PIN = 0 [16:57:32]*** Brake cut motor [16:57:33]Read from MH i2c: 01 [16:57:33]MH_I2C_Read... [16:57:33]*** Stop cut motor [16:57:33]*** Cut end [16:57:33]Read from MH i2c: 01 07 00 [16:57:33]MH_I2C_Read... [16:57:33]Read from MH i2c: 01 07 00 8D 01 00 00 00 00 00 FF 0F A3 [16:57:33]process_action close_receipt done [16:57:33]requested_data is exist [16:57:33]produce_requested_data [16:57:33]requested_item fm.sn is exist - process it [16:57:33]wFMCommunicate request_size=4 [16:57:33]MH_SAM_APDU [16:57:33]CAPDU: 80 11 00 00 [16:57:33]Write to MH i2c: E2 08 00 8E 01 80 11 00 00 00 00 00 00 09 [16:57:33]Write i2c OK [16:57:33]MH_I2C_Read... [16:57:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:33]Read from MH i2c: E2 [16:57:33]MH_I2C_Read... [16:57:33]Read from MH i2c: E2 17 00 [16:57:33]MH_I2C_Read... [16:57:33]Read from MH i2c: E2 17 00 8E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 5C [16:57:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:57:33]wFMCommunicate OK [16:57:33]requested_item fd.num is exist - process it [16:57:33]SAM_PROTO_GetFieldsCounters [16:57:33]wFMCommunicate request_size=4 [16:57:33]MH_SAM_APDU [16:57:33]CAPDU: 80 13 00 00 [16:57:33]Write to MH i2c: E2 08 00 8F 01 80 13 00 00 00 00 00 00 0C [16:57:33]Write i2c OK [16:57:33]MH_I2C_Read... [16:57:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:57:33]Read from MH i2c: E2 [16:57:33]MH_I2C_Read... [16:57:33]Read from MH i2c: E2 62 00 [16:57:33]MH_I2C_Read... [16:57:33]Read from MH i2c: E2 62 00 8F 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 55 2C 01 00 0E 04 04 00 74 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 CB [16:57: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 55 2C 01 00 0E 04 04 00 74 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 [16:57:33]wFMCommunicate OK [16:57:33]SAM_PROTO_GetFieldsCounters done [16:57:33]requested_item shift.num is exist - process it [16:57:33]requested_item shift.opened is exist - process it [16:57:33]req_shift_opened [16:57:33]FM_GetShiftState [16:57:33]SAM_PROTO_GetShiftState [16:57:33]wFMCommunicate request_size=4 [16:57:33]MH_SAM_APDU [16:57:33]CAPDU: 80 13 01 00 [16:57:33]Write to MH i2c: E2 08 00 90 01 80 13 01 00 00 00 00 00 0E [16:57:33]Write i2c OK [16:57:33]MH_I2C_Read... [16:57:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:33]Read from MH i2c: E2 [16:57:33]MH_I2C_Read... [16:57:33]Read from MH i2c: E2 0E 00 [16:57:33]MH_I2C_Read... [16:57:33]Read from MH i2c: E2 0E 00 90 01 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 55 [16:57:33]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [16:57:33]wFMCommunicate OK [16:57:33]SAM_PROTO_GetShiftState done [16:57:33]FM_GetShiftState done [16:57:33]req_shift_opened done [16:57:33]requested_item shift.open_date is exist - process it [16:57:33]req_shift_open_date [16:57:33]req_shift_open_date done [16:57:33]produce_requested_data done [16:57:33]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76885,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [16:57:33]process_action_free close_receipt [16:57:33]json_value_free [16:57:33]json_value_free done [16:57:33]process_json_proto returns [16:57:33]Send response to host [16:57:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76885,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [16:57:33]free response buf [16:57:33]execute_script done [16:57:33]execute_script returns [16:57:33]free content buf [16:57:33]Sock 7.Close socket [16:57:33]Sock 7.Thread stoped [16:57:37]OFD Sender: No OFD packet to send [16:57:42]OFD Sender: No OFD packet to send [16:57:47]OFD Sender: No OFD packet to send [16:57:52]OFD Sender: No OFD packet to send [16:57:57]OFD Sender: No OFD packet to send [16:58:02]OFD Sender: No OFD packet to send [16:58:07]OFD Sender: No OFD packet to send [16:58:12]OFD Sender: No OFD packet to send [16:58:17]OFD Sender: No OFD packet to send [16:58:22]OFD Sender: No OFD packet to send [16:58:27]OFD Sender: No OFD packet to send [16:58:32]OFD Sender: No OFD packet to send [16:58:37]OFD Sender: No OFD packet to send [16:58:42]OFD Sender: No OFD packet to send [16:58:47]OFD Sender: No OFD packet to send [16:58:52]OFD Sender: No OFD packet to send [16:58:57]OFD Sender: No OFD packet to send [16:59:02]OFD Sender: No OFD packet to send [16:59:07]OFD Sender: No OFD packet to send [16:59:12]OFD Sender: No OFD packet to send [16:59:17]OFD Sender: No OFD packet to send [16:59:22]OFD Sender: No OFD packet to send [16:59:23]accept exits with 9 [16:59:23]New connection [16:59:23]New thread 3067166052 created [16:59:23]Thread 3067309412 joined [16:59:23]Waiting for new connection... [16:59:23] Sock 9.Parse request [16:59:23]Sock 9.Check first char [16:59:23]Sock 9.First char is OK [16:59:23]request: POST /json_proto HTTP/1.0 [16:59:23]Method: POST [16:59:23]URL: /json_proto [16:59:23]Method is POST - this is cgi request [16:59:23]url: /json_proto [16:59:23]query_string will be loaded in cgi processing [16:59:23]execute_cgi json_proto POST (null) [16:59:23]execute_cgi path=json_proto method=POST [16:59:23]POST find Content-Length [16:59:23]Host: 172.17.62.5:8080 [16:59:23]Content-Length: 682 [16:59:23]Content-Type: application/json [16:59:23] [16:59:23]POST finish read [16:59:23]Found Content-Length = 682 [16:59:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191429", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 23.300, "sum" : 1500.52, "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" ] } } [16:59:23]execute_script... [16:59: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)191429", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 23.300, "sum" : 1500.52, "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" ] } } [16:59:23]POST & json_proto [16:59:23]process_json_proto [16:59:23]json parsed OK: [16:59:23]protocol is kg_v1.0 [16:59:23]action value=close_receipt [16:59:23]process_action close_receipt [16:59:23]cmd_close_receipt [16:59:23]MH_GetDate [16:59:23]Write to MH i2c: F0 00 00 91 01 81 [16:59:23]Write i2c OK [16:59:23]MH_I2C_Read... [16:59:23]Read from MH i2c: F0 [16:59:23]MH_I2C_Read... [16:59:23]Read from MH i2c: F0 09 00 [16:59:23]MH_I2C_Read... [16:59:23]Read from MH i2c: F0 09 00 91 01 00 EC 45 25 66 F4 E9 65 64 EC [16:59:23]GetLastDocTimeStamp 1713718650 [16:59:23]current date 1713718764 [16:59:23]FM_GetShiftState [16:59:23]SAM_PROTO_GetShiftState [16:59:23]wFMCommunicate request_size=4 [16:59:23]MH_SAM_APDU [16:59:23]CAPDU: 80 13 01 00 [16:59:23]Write to MH i2c: E2 08 00 92 01 80 13 01 00 00 00 00 00 10 [16:59:23]Write i2c OK [16:59:23]MH_I2C_Read... [16:59:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:23]Read from MH i2c: E2 [16:59:23]MH_I2C_Read... [16:59:23]Read from MH i2c: E2 0E 00 [16:59:23]MH_I2C_Read... [16:59:23]Read from MH i2c: E2 0E 00 92 01 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 57 [16:59:23]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [16:59:23]wFMCommunicate OK [16:59:23]SAM_PROTO_GetShiftState done [16:59:23]FM_GetShiftState done [16:59:23]opened in 1713658965 [16:59:23]opened+sec_in_day 1713745365 [16:59:23]quantity*price = 150052 [16:59:23]sum+1 = 150053 [16:59:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 142 21.04.2024 16:59 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76886 ФПД: 189084719385009 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T165924&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76886&fm=189084719385009&tin=02508201610067®Number=0000000000091573&sum=150000 [16:59:24]StoreToDocumentArchive [16:59:24]shift 372 fd 76886 [16:59:24]save to /storage/0372/doc_00076886 [16:59:24]save last doc name /storage/0372/doc_00076886 to /storage/kkm_last_doc_name [16:59:24]save OK [16:59:24]Clear old archive folders... [16:59:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:59:24]tlvbuf is 00945440 [16:59:24]SAM_PROTO_ClearQueue [16:59:24]wFMCommunicate request_size=4 [16:59:24]MH_SAM_APDU [16:59:24]CAPDU: 80 09 00 00 [16:59:24]Write to MH i2c: E2 08 00 9F 01 80 09 00 00 00 00 00 00 12 [16:59:24]Write i2c OK [16:59:24]MH_I2C_Read... [16:59:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:59:24]Read from MH i2c: E2 [16:59:24]MH_I2C_Read... [16:59:24]Read from MH i2c: E2 03 00 [16:59:24]MH_I2C_Read... [16:59:24]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [16:59:24]RAPDU: 90 00 [16:59:24]wFMCommunicate OK [16:59:24]SAM_PROTO_ClearQueue done [16:59:24]KKMCreateOFDPacket [16:59:24]OFDProtocolAddRootSTLVToBuf [16:59:24]FM_MakeSignedData [16:59:24]FM_MakeSignedData [16:59:24]SAM_PROTO_SignData [16:59:24]wFMCommunicate request_size=4 [16:59:24]MH_SAM_APDU [16:59:24]CAPDU: 80 0D 01 02 [16:59:24]Write to MH i2c: E2 08 00 A0 01 80 0D 01 02 00 00 00 00 1A [16:59:24]Write i2c OK [16:59:24]MH_I2C_Read... [16:59:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:59:24]Read from MH i2c: E2 [16:59:24]MH_I2C_Read... [16:59:24]Read from MH i2c: E2 03 00 [16:59:24]MH_I2C_Read... [16:59:24]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [16:59:24]RAPDU: 90 00 [16:59:24]wFMCommunicate OK [16:59:24]wFMCommunicate request_size=255 [16:59:24]MH_SAM_APDU [16:59:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 04 5B 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 24 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 EC 45 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 56 2C 01 00 35 04 06 00 AB [16:59:25]Write to MH i2c: E2 02 01 A1 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 04 5B 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 24 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 EC 45 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 56 2C 01 00 35 04 06 00 AB 00 00 49 [16:59:25]Write i2c OK [16:59:25]MH_I2C_Read... [16:59:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:25]Read from MH i2c: E2 [16:59:25]MH_I2C_Read... [16:59:25]Read from MH i2c: E2 03 00 [16:59:25]MH_I2C_Read... [16:59:25]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [16:59:25]RAPDU: 90 00 [16:59:25]wFMCommunicate OK [16:59:25]wFMCommunicate request_size=10 [16:59:25]MH_SAM_APDU [16:59:25]CAPDU: 80 0D 02 02 05 F8 B7 88 09 B1 [16:59:25]Write to MH i2c: E2 0D 00 A2 01 80 0D 02 02 05 00 F8 B7 88 09 B1 00 00 18 [16:59:25]Write i2c OK [16:59:25]MH_I2C_Read... [16:59:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:25]Read from MH i2c: E2 [16:59:25]MH_I2C_Read... [16:59:25]Read from MH i2c: E2 03 00 [16:59:25]MH_I2C_Read... [16:59:25]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [16:59:25]RAPDU: 90 00 [16:59:25]wFMCommunicate OK [16:59:25]wFMCommunicate request_size=4 [16:59:25]MH_SAM_APDU [16:59:25]CAPDU: 80 0D 03 02 [16:59:25]Write to MH i2c: E2 08 00 A3 01 80 0D 03 02 00 00 00 00 1F [16:59:25]Write i2c OK [16:59:25]MH_I2C_Read... [16:59:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:59:25]Read from MH i2c: E2 [16:59:25]MH_I2C_Read... [16:59:25]Read from MH i2c: E2 0B 00 [16:59:25]MH_I2C_Read... [16:59:25]Read from MH i2c: E2 0B 00 A3 01 00 E3 60 00 C8 75 EE BA 4F 90 00 97 [16:59:25]RAPDU: E3 60 00 C8 75 EE BA 4F 90 00 [16:59:25]wFMCommunicate OK [16:59:25]SAM_PROTO_SignData done [16:59:25]FM_MakeSignedData done [16:59:25]CreateOFDProtocolMessage [16:59:25]wFMCommunicate request_size=4 [16:59:25]MH_SAM_APDU [16:59:25]CAPDU: 80 11 00 00 [16:59:25]Write to MH i2c: E2 08 00 A4 01 80 11 00 00 00 00 00 00 1F [16:59:25]Write i2c OK [16:59:25]MH_I2C_Read... [16:59:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:25]Read from MH i2c: E2 [16:59:25]MH_I2C_Read... [16:59:25]Read from MH i2c: E2 17 00 [16:59:25]MH_I2C_Read... [16:59:25]Read from MH i2c: E2 17 00 A4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 72 [16:59:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:59:25]wFMCommunicate OK [16:59:25]CreateOFDProtocolMessage done [16:59:25]OFDSenderStorePacket 76886 [16:59:25]StoreOFDPacket docnum=76886 [16:59:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 6D 79 07 01 5A EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 04 5B 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 24 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 EC 45 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 56 2C 01 00 35 04 06 00 AB F8 B7 88 09 B1 E3 60 00 C8 75 EE BA 4F [16:59:25]CheckFolder [16:59:25]dirname=/storage/ofd_packets [16:59:25]CheckFolder done [16:59:25]ProducePacketName [16:59:25]name=ofd_packets/00076886 [16:59:25]NVStorageSaveData ofd_packets/00076886 [16:59:25]File name is /storage/ofd_packets/00076886 [16:59:25]Write 301 bytes [16:59:25]NVStorageSaveData done [16:59:25]OFDSenderStorePacket done [16:59:25]KKMCreateOFDPacket done [16:59:25]NVStorageSaveData kkm_last_timestamp [16:59:25]File name is /storage/kkm_last_timestamp [16:59:25]Write 4 bytes [16:59:25]NVStorageSaveData done [16:59:25]ExternCall_PrintAddStr [16:59:25]wPrintStart [16:59:25]Write to MH i2c: 01 00 00 A5 01 A6 [16:59:25]Write i2c OK [16:59:25]MH_I2C_Read... [16:59:25]Read from MH i2c: 01 [16:59:25]MH_I2C_Read... [16:59:25]Read from MH i2c: 01 07 00 [16:59:25]MH_I2C_Read... [16:59:25]Read from MH i2c: 01 07 00 A5 01 00 00 00 00 00 FF 0F BB [16:59:25]RasterBufferAndPrint [16:59:25]line Счет N : (1)191429 [16:59:25]line ИНН: 02508201610067 [16:59:25]line Контрольно-Кассовый Чек [16:59:25]line ПРОДАЖА [16:59:25]line ТРК (МРК, ГНК) : 12 [16:59:25]line Товар: 2710124130 [16:59:25]line Аи-92-К-5 [16:59:25]line 23.300 * 64.40 [16:59:25]line = 1500.52 [16:59:25]line НДС 12% НСП 1% [16:59:25]line > о реализуемом товаре [16:59:25]line ОКРУГЛЕНИЕ: -0.52 [16:59:25]line ИТОГО: 1500.00 [16:59:25]line Внесено: 1500.00 [16:59:25]line СДАЧА: 0.00 [16:59:25]line НСП 1% : 13.28 [16:59:25]line НДС 12% : 159.35 [16:59:25]line Наличными: 1500.00 [16:59:25]line Безнал.: 0.00 [16:59:25]line Место: АЗС № 106 "Партнер Нефть" [16:59:25]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [16:59:25]line СНО: Общий режим [16:59:25]line Чек 142 21.04.2024 16:59 [16:59:25]line Смена: 372 ФФД: 1.0 [16:59:25]line ЗНМ: 0300000141 [16:59:25]line РНМ: 0000000000091573 [16:59:25]line Версия ККМ: 001 [16:59:25]line ФМ: 0000000000874652 [16:59:25]line ФД: 76886 [16:59:25]line ФПД: 189084719385009 [16:59:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T165924&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76886&fm=189084719385009&tin=02508201610067®Number=0000000000091573&sum=150000 [16:59:25]OFD Sender: Processing packet 76886 [packets to send 129, broken 128] [16:59:25]ProducePacketName [16:59:25]name=ofd_packets/00076886 [16:59:25]OFD Sender: To server: pG, [16:59:25]CommunicateWithHost lk.salyk.kg:30040 [16:59:25]ConnectInit lk.salyk.kg [16:59:25]written 0, free lines is 4095 [16:59:26]Write to MH i2c: 01 00 00 CF 01 D0 [16:59:26]Write i2c OK [16:59:26]MH_I2C_Read... [16:59:26]Read from MH i2c: 01 [16:59:26]MH_I2C_Read... [16:59:26]Read from MH i2c: 01 07 00 [16:59:26]MH_I2C_Read... [16:59:26]Read from MH i2c: 01 07 00 CF 01 00 00 00 00 00 FA 0C DD [16:59:26]RasterBufferAndPrint [16:59:26]line [16:59:26]line [16:59:26]line [16:59:26]line [16:59:26]line [16:59:26]written 0, free lines is 3329 [16:59:26]MH_Cut [16:59:26]Write to MH i2c: D1 01 00 D6 01 01 A9 [16:59:26]Write i2c OK [16:59:26]MH_I2C_Read... [16:59:26]Read from MH i2c: D1 [16:59:26]MH_I2C_Read... [16:59:26]Read from MH i2c: D1 01 00 [16:59:26]MH_I2C_Read... [16:59:26]Read from MH i2c: D1 01 00 D6 01 00 A8 [16:59:26]Write to MH i2c: 01 00 00 D7 01 D8 [16:59:26]Write i2c OK [16:59:26]MH_I2C_Read... [16:59:26]*** Cut start [16:59:26]*** Partial cut [16:59:26]*** CUTSNS_PIN = 1 [16:59:27]*** CUTSNS_PIN = 0 [16:59:27]*** Brake cut motor [16:59:27]Read from MH i2c: 01 [16:59:27]MH_I2C_Read... [16:59:27]*** Stop cut motor [16:59:27]*** Cut end [16:59:27]Read from MH i2c: 01 07 00 [16:59:27]MH_I2C_Read... [16:59:27]Read from MH i2c: 01 07 00 D7 01 00 00 00 00 00 FF 0F ED [16:59:27]process_action close_receipt done [16:59:27]requested_data is exist [16:59:27]produce_requested_data [16:59:27]requested_item fm.sn is exist - process it [16:59:27]wFMCommunicate request_size=4 [16:59:27]MH_SAM_APDU [16:59:27]CAPDU: 80 11 00 00 [16:59:27]Write to MH i2c: E2 08 00 D8 01 80 11 00 00 00 00 00 00 53 [16:59:27]Write i2c OK [16:59:27]MH_I2C_Read... [16:59:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:27]Read from MH i2c: E2 [16:59:27]MH_I2C_Read... [16:59:27]Read from MH i2c: E2 17 00 [16:59:27]MH_I2C_Read... [16:59:27]Read from MH i2c: E2 17 00 D8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 A6 [16:59:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:59:27]wFMCommunicate OK [16:59:27]requested_item fd.num is exist - process it [16:59:27]SAM_PROTO_GetFieldsCounters [16:59:27]wFMCommunicate request_size=4 [16:59:27]MH_SAM_APDU [16:59:27]CAPDU: 80 13 00 00 [16:59:27]Write to MH i2c: E2 08 00 D9 01 80 13 00 00 00 00 00 00 56 [16:59:27]Write i2c OK [16:59:27]MH_I2C_Read... [16:59:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:59:27]Read from MH i2c: E2 [16:59:27]MH_I2C_Read... [16:59:27]Read from MH i2c: E2 62 00 [16:59:27]MH_I2C_Read... [16:59:27]Read from MH i2c: E2 62 00 D9 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 56 2C 01 00 0E 04 04 00 74 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 19 [16:59:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 56 2C 01 00 0E 04 04 00 74 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 [16:59:27]wFMCommunicate OK [16:59:27]SAM_PROTO_GetFieldsCounters done [16:59:27]requested_item shift.num is exist - process it [16:59:27]requested_item shift.opened is exist - process it [16:59:27]req_shift_opened [16:59:27]FM_GetShiftState [16:59:27]SAM_PROTO_GetShiftState [16:59:27]wFMCommunicate request_size=4 [16:59:27]MH_SAM_APDU [16:59:27]CAPDU: 80 13 01 00 [16:59:27]Write to MH i2c: E2 08 00 DA 01 80 13 01 00 00 00 00 00 58 [16:59:27]Write i2c OK [16:59:27]MH_I2C_Read... [16:59:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:27]Read from MH i2c: E2 [16:59:27]MH_I2C_Read... [16:59:27]Read from MH i2c: E2 0E 00 [16:59:27]MH_I2C_Read... [16:59:27]Read from MH i2c: E2 0E 00 DA 01 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 9F [16:59:27]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [16:59:27]wFMCommunicate OK [16:59:27]SAM_PROTO_GetShiftState done [16:59:27]FM_GetShiftState done [16:59:27]req_shift_opened done [16:59:27]requested_item shift.open_date is exist - process it [16:59:27]req_shift_open_date [16:59:27]req_shift_open_date done [16:59:27]produce_requested_data done [16:59:27]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76886,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [16:59:27]process_action_free close_receipt [16:59:27]json_value_free [16:59:27]json_value_free done [16:59:27]process_json_proto returns [16:59:27]Send response to host [16:59:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76886,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [16:59:27]free response buf [16:59:27]execute_script done [16:59:27]execute_script returns [16:59:27]free content buf [16:59:27]Sock 9.Close socket [16:59:27]Sock 9.Thread stoped [17:01:38]ConnectInit Can't connect to host [17:01:38]CommunicateWithHost connect error [17:01:38]CommunicateWithHost err = -1 [17:01:38]OFD Sender: Server communicate error [17:01:43]OFD Sender: Processing packet 76886 [packets to send 129, broken 128] [17:01:43]ProducePacketName [17:01:43]name=ofd_packets/00076886 [17:01:43]OFD Sender: To server: pG, [17:01:43]CommunicateWithHost lk.salyk.kg:30040 [17:01:43]ConnectInit lk.salyk.kg [17:01:48]ConnectInit Can't take IP for lk.salyk.kg [17:01:48]CommunicateWithHost connect error [17:01:48]CommunicateWithHost err = -1 [17:01:48]OFD Sender: Server communicate error [17:01:53]OFD Sender: Processing packet 76886 [packets to send 129, broken 128] [17:01:53]ProducePacketName [17:01:53]name=ofd_packets/00076886 [17:01:53]OFD Sender: To server: pG, [17:01:53]CommunicateWithHost lk.salyk.kg:30040 [17:01:53]ConnectInit lk.salyk.kg [17:01:53]Connected sock=9 [17:01:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 6D 79 07 01 5A EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 04 5B 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 24 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 EC 45 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 56 2C 01 00 35 04 06 00 AB F8 B7 88 09 B1 E3 60 00 C8 75 EE BA 4F [17:01:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 B2 74 47 00 ED 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 34 36 35 32 10 04 04 00 56 2C 01 00 F4 03 04 00 05 EE 24 66 B6 04 01 00 00 41 BF 70 D3 91 D7 FB AB [17:01:53]CommunicateWithHost err = 0 [17:01:53]CheckOFDResponse [17:01:53]1017 (14) - 77093643461234 [17:01:53]1041 (16) - 0000000000874652 [17:01:53]1040 (4) - 76886 [17:01:53]1012 (4) - 21.04.2024 10:44 [17:01:53]1206 (1) - 0 [17:01:53]OFD Sender: Remove packet 76886 [17:01:53]ProducePacketName [17:01:53]name=ofd_packets/00076886 [17:01:53]NVStorageDeleteData [17:01:54]OFD Sender: No OFD packet to send [17:01:59]OFD Sender: No OFD packet to send [17:02:04]OFD Sender: No OFD packet to send [17:02:09]OFD Sender: No OFD packet to send [17:02:14]OFD Sender: No OFD packet to send [17:02:19]OFD Sender: No OFD packet to send [17:02:24]OFD Sender: No OFD packet to send [17:02:29]OFD Sender: No OFD packet to send [17:02:34]OFD Sender: No OFD packet to send [17:02:39]OFD Sender: No OFD packet to send [17:02:44]OFD Sender: No OFD packet to send [17:02:44]accept exits with 7 [17:02:44]New connection [17:02:44]New thread 3067309412 created [17:02:44]Thread 3067166052 joined [17:02:44]Waiting for new connection... [17:02:44] Sock 7.Parse request [17:02:44]Sock 7.Check first char [17:02:44]Sock 7.First char is OK [17:02:44]request: POST /json_proto HTTP/1.0 [17:02:44]Method: POST [17:02:44]URL: /json_proto [17:02:44]Method is POST - this is cgi request [17:02:44]url: /json_proto [17:02:44]query_string will be loaded in cgi processing [17:02:44]execute_cgi json_proto POST (null) [17:02:44]execute_cgi path=json_proto method=POST [17:02:44]POST find Content-Length [17:02:44]Host: 172.17.62.5:8080 [17:02:44]Content-Length: 805 [17:02:44]Content-Type: application/json [17:02:44] [17:02:44]POST finish read [17:02:44]Found Content-Length = 805 [17:02:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191430", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 31.420, "sum" : 2290.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2290.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:44]execute_script... [17:02: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)191430", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 31.420, "sum" : 2290.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2290.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:44]POST & json_proto [17:02:44]process_json_proto [17:02:44]json parsed OK: [17:02:44]protocol is kg_v1.0 [17:02:44]action value=close_receipt [17:02:44]process_action close_receipt [17:02:44]cmd_close_receipt [17:02:44]MH_GetDate [17:02:44]Write to MH i2c: F0 00 00 DB 01 CB [17:02:44]Write i2c OK [17:02:44]MH_I2C_Read... [17:02:44]Read from MH i2c: F0 [17:02:44]MH_I2C_Read... [17:02:44]Read from MH i2c: F0 09 00 [17:02:44]MH_I2C_Read... [17:02:44]Read from MH i2c: F0 09 00 DB 01 00 B5 46 25 66 F4 E9 65 64 00 [17:02:44]GetLastDocTimeStamp 1713718764 [17:02:44]current date 1713718965 [17:02:44]FM_GetShiftState [17:02:44]SAM_PROTO_GetShiftState [17:02:44]wFMCommunicate request_size=4 [17:02:44]MH_SAM_APDU [17:02:44]CAPDU: 80 13 01 00 [17:02:44]Write to MH i2c: E2 08 00 DC 01 80 13 01 00 00 00 00 00 5A [17:02:44]Write i2c OK [17:02:44]MH_I2C_Read... [17:02:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:44]Read from MH i2c: E2 [17:02:44]MH_I2C_Read... [17:02:44]Read from MH i2c: E2 0E 00 [17:02:44]MH_I2C_Read... [17:02:44]Read from MH i2c: E2 0E 00 DC 01 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 A1 [17:02:44]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [17:02:44]wFMCommunicate OK [17:02:44]SAM_PROTO_GetShiftState done [17:02:44]FM_GetShiftState done [17:02:44]opened in 1713658965 [17:02:44]opened+sec_in_day 1713745365 [17:02:44]quantity*price = 229051 [17:02:44]sum+1 = 229053 [17:02:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2290.52 НСП 1% : 20.27 НДС 12% : 243.24 Наличными: 0.00 Безнал.: 2290.52 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 143 21.04.2024 17:02 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 76887 ФПД: 117402591144301 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T170245&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76887&fm=117402591144301&tin=02508201610067®Number=0000000000091573&sum=229052 [17:02:46]StoreToDocumentArchive [17:02:46]shift 372 fd 76887 [17:02:46]save to /storage/0372/doc_00076887 [17:02:46]save last doc name /storage/0372/doc_00076887 to /storage/kkm_last_doc_name [17:02:46]save OK [17:02:46]Clear old archive folders... [17:02:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:02:46]tlvbuf is 008D4DD0 [17:02:46]SAM_PROTO_ClearQueue [17:02:46]wFMCommunicate request_size=4 [17:02:46]MH_SAM_APDU [17:02:46]CAPDU: 80 09 00 00 [17:02:46]Write to MH i2c: E2 08 00 E9 01 80 09 00 00 00 00 00 00 5C [17:02:46]Write i2c OK [17:02:46]MH_I2C_Read... [17:02:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:02:46]Read from MH i2c: E2 [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: E2 03 00 [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [17:02:46]RAPDU: 90 00 [17:02:46]wFMCommunicate OK [17:02:46]SAM_PROTO_ClearQueue done [17:02:46]KKMCreateOFDPacket [17:02:46]OFDProtocolAddRootSTLVToBuf [17:02:46]FM_MakeSignedData [17:02:46]FM_MakeSignedData [17:02:46]SAM_PROTO_SignData [17:02:46]wFMCommunicate request_size=4 [17:02:46]MH_SAM_APDU [17:02:46]CAPDU: 80 0D 01 02 [17:02:46]Write to MH i2c: E2 08 00 EA 01 80 0D 01 02 00 00 00 00 64 [17:02:46]Write i2c OK [17:02:46]MH_I2C_Read... [17:02:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:02:46]Read from MH i2c: E2 [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: E2 03 00 [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [17:02:46]RAPDU: 90 00 [17:02:46]wFMCommunicate OK [17:02:46]wFMCommunicate request_size=255 [17:02:46]MH_SAM_APDU [17:02:46]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BC 7A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BC 7E 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 7E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 5F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 7E 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 B5 46 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 57 2C 01 00 35 04 06 00 6A C6 EB BD [17:02:46]Write to MH i2c: E2 02 01 EB 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BC 7A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BC 7E 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 7E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 5F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 7E 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 B5 46 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 57 2C 01 00 35 04 06 00 6A C6 EB BD 00 00 7F [17:02:46]Write i2c OK [17:02:46]MH_I2C_Read... [17:02:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:46]Read from MH i2c: E2 [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: E2 03 00 [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [17:02:46]RAPDU: 90 00 [17:02:46]wFMCommunicate OK [17:02:46]wFMCommunicate request_size=7 [17:02:46]MH_SAM_APDU [17:02:46]CAPDU: 80 0D 02 02 02 A9 6D [17:02:46]Write to MH i2c: E2 0A 00 EC 01 80 0D 02 02 02 00 A9 6D 00 00 81 [17:02:46]Write i2c OK [17:02:46]MH_I2C_Read... [17:02:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:46]Read from MH i2c: E2 [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: E2 03 00 [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [17:02:46]RAPDU: 90 00 [17:02:46]wFMCommunicate OK [17:02:46]wFMCommunicate request_size=4 [17:02:46]MH_SAM_APDU [17:02:46]CAPDU: 80 0D 03 02 [17:02:46]Write to MH i2c: E2 08 00 ED 01 80 0D 03 02 00 00 00 00 69 [17:02:46]Write i2c OK [17:02:46]MH_I2C_Read... [17:02:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:02:46]Read from MH i2c: E2 [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: E2 0B 00 [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: E2 0B 00 ED 01 00 47 1B AD 50 17 18 3D D5 90 00 0A [17:02:46]RAPDU: 47 1B AD 50 17 18 3D D5 90 00 [17:02:46]wFMCommunicate OK [17:02:46]SAM_PROTO_SignData done [17:02:46]FM_MakeSignedData done [17:02:46]CreateOFDProtocolMessage [17:02:46]wFMCommunicate request_size=4 [17:02:46]MH_SAM_APDU [17:02:46]CAPDU: 80 11 00 00 [17:02:46]Write to MH i2c: E2 08 00 EE 01 80 11 00 00 00 00 00 00 69 [17:02:46]Write i2c OK [17:02:46]MH_I2C_Read... [17:02:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:46]Read from MH i2c: E2 [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: E2 17 00 [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: E2 17 00 EE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 BC [17:02:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:02:46]wFMCommunicate OK [17:02:46]CreateOFDProtocolMessage done [17:02:46]OFDSenderStorePacket 76887 [17:02:46]StoreOFDPacket docnum=76887 [17:02:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 61 46 04 01 6D 28 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BC 7A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BC 7E 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 7E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 5F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 7E 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 B5 46 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 57 2C 01 00 35 04 06 00 6A C6 EB BD A9 6D 47 1B AD 50 17 18 3D D5 [17:02:46]CheckFolder [17:02:46]dirname=/storage/ofd_packets [17:02:46]CheckFolder done [17:02:46]ProducePacketName [17:02:46]name=ofd_packets/00076887 [17:02:46]NVStorageSaveData ofd_packets/00076887 [17:02:46]File name is /storage/ofd_packets/00076887 [17:02:46]Write 298 bytes [17:02:46]NVStorageSaveData done [17:02:46]OFDSenderStorePacket done [17:02:46]KKMCreateOFDPacket done [17:02:46]NVStorageSaveData kkm_last_timestamp [17:02:46]File name is /storage/kkm_last_timestamp [17:02:46]Write 4 bytes [17:02:46]NVStorageSaveData done [17:02:46]ExternCall_PrintAddStr [17:02:46]wPrintStart [17:02:46]Write to MH i2c: 01 00 00 EF 01 F0 [17:02:46]Write i2c OK [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: 01 [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: 01 07 00 [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: 01 07 00 EF 01 00 00 00 00 00 FF 0F 05 [17:02:46]RasterBufferAndPrint [17:02:46]line Счет N : (1)191430 [17:02:46]line ИНН: 02508201610067 [17:02:46]line Контрольно-Кассовый Чек [17:02:46]line ПРОДАЖА [17:02:46]line ТРК (МРК, ГНК) : 51 [17:02:46]line Товар: 2710194210 [17:02:46]line ДТ-К-5 [17:02:46]line 31.420 * 72.90 [17:02:46]line = 2290.52 [17:02:46]line НДС 12% НСП 1% [17:02:46]line > о реализуемом товаре [17:02:46]line ИТОГО: 2290.52 [17:02:46]line НСП 1% : 20.27 [17:02:46]line НДС 12% : 243.24 [17:02:46]line Наличными: 0.00 [17:02:46]line Безнал.: 2290.52 [17:02:46]line Место: АЗС № 106 "Партнер Нефть" [17:02:46]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [17:02:46]line СНО: Общий режим [17:02:46]line Чек 143 21.04.2024 17:02 [17:02:46]line Смена: 372 ФФД: 1.0 [17:02:46]line ЗНМ: 0300000141 [17:02:46]line РНМ: 0000000000091573 [17:02:46]line Версия ККМ: 001 [17:02:46]line Платежная система: О! деньги [17:02:46]line ФМ: 0000000000874652 [17:02:46]line ФД: 76887 [17:02:46]line ФПД: 117402591144301 [17:02:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T170245&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76887&fm=117402591144301&tin=02508201610067®Number=0000000000091573&sum=229052 [17:02:46]OFD Sender: Processing packet 76887 [packets to send 129, broken 128] [17:02:46]ProducePacketName [17:02:46]name=ofd_packets/00076887 [17:02:46]OFD Sender: To server: pG, [17:02:46]CommunicateWithHost lk.salyk.kg:30040 [17:02:46]ConnectInit lk.salyk.kg [17:02:46]written 0, free lines is 4095 [17:02:47]Connected sock=10 [17:02:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 61 46 04 01 6D 28 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BC 7A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BC 7E 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 7E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 5F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 7E 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 B5 46 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 57 2C 01 00 35 04 06 00 6A C6 EB BD A9 6D 47 1B AD 50 17 18 3D D5 [17:02:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 69 C5 47 00 82 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 34 36 35 32 10 04 04 00 57 2C 01 00 F4 03 04 00 3A EE 24 66 B6 04 01 00 00 2A 93 4A 7E 69 F2 76 AB [17:02:47]CommunicateWithHost err = 0 [17:02:47]CheckOFDResponse [17:02:47]1017 (14) - 77093643461234 [17:02:47]1041 (16) - 0000000000874652 [17:02:47]1040 (4) - 76887 [17:02:47]1012 (4) - 21.04.2024 10:45 [17:02:47]1206 (1) - 0 [17:02:47]OFD Sender: Remove packet 76887 [17:02:47]ProducePacketName [17:02:47]name=ofd_packets/00076887 [17:02:47]NVStorageDeleteData [17:02:47]Write to MH i2c: 01 00 00 18 02 1A [17:02:47]Write i2c OK [17:02:47]MH_I2C_Read... [17:02:47]Read from MH i2c: 01 [17:02:47]MH_I2C_Read... [17:02:47]Read from MH i2c: 01 07 00 [17:02:47]MH_I2C_Read... [17:02:47]Read from MH i2c: 01 07 00 18 02 00 00 00 00 00 0D 0D 3B [17:02:47]RasterBufferAndPrint [17:02:47]line [17:02:47]line [17:02:47]line [17:02:47]line [17:02:47]line [17:02:47]written 0, free lines is 3348 [17:02:47]MH_Cut [17:02:47]Write to MH i2c: D1 01 00 1F 02 01 F3 [17:02:47]Write i2c OK [17:02:47]MH_I2C_Read... [17:02:47]Read from MH i2c: D1 [17:02:47]MH_I2C_Read... [17:02:47]Read from MH i2c: D1 01 00 [17:02:47]MH_I2C_Read... [17:02:47]Read from MH i2c: D1 01 00 1F 02 00 F2 [17:02:47]Write to MH i2c: 01 00 00 20 02 22 [17:02:47]Write i2c OK [17:02:47]MH_I2C_Read... [17:02:47]OFD Sender: No OFD packet to send [17:02:48]*** Cut start [17:02:48]*** Partial cut [17:02:48]*** CUTSNS_PIN = 1 [17:02:48]*** CUTSNS_PIN = 0 [17:02:48]*** Brake cut motor [17:02:48]Read from MH i2c: 01 [17:02:48]MH_I2C_Read... [17:02:48]*** Stop cut motor [17:02:48]*** Cut end [17:02:48]Read from MH i2c: 01 07 00 [17:02:48]MH_I2C_Read... [17:02:48]Read from MH i2c: 01 07 00 20 02 00 00 00 00 00 FF 0F 37 [17:02:48]process_action close_receipt done [17:02:48]requested_data is exist [17:02:48]produce_requested_data [17:02:48]requested_item fm.sn is exist - process it [17:02:48]wFMCommunicate request_size=4 [17:02:48]MH_SAM_APDU [17:02:48]CAPDU: 80 11 00 00 [17:02:48]Write to MH i2c: E2 08 00 21 02 80 11 00 00 00 00 00 00 9D [17:02:48]Write i2c OK [17:02:48]MH_I2C_Read... [17:02:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:48]Read from MH i2c: E2 [17:02:48]MH_I2C_Read... [17:02:48]Read from MH i2c: E2 17 00 [17:02:48]MH_I2C_Read... [17:02:48]Read from MH i2c: E2 17 00 21 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F0 [17:02:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:02:48]wFMCommunicate OK [17:02:48]requested_item fd.num is exist - process it [17:02:48]SAM_PROTO_GetFieldsCounters [17:02:48]wFMCommunicate request_size=4 [17:02:48]MH_SAM_APDU [17:02:48]CAPDU: 80 13 00 00 [17:02:48]Write to MH i2c: E2 08 00 22 02 80 13 00 00 00 00 00 00 A0 [17:02:48]Write i2c OK [17:02:48]MH_I2C_Read... [17:02:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:02:48]Read from MH i2c: E2 [17:02:48]MH_I2C_Read... [17:02:48]Read from MH i2c: E2 62 00 [17:02:48]MH_I2C_Read... [17:02:48]Read from MH i2c: E2 62 00 22 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 57 2C 01 00 0E 04 04 00 74 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 67 [17:02: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 57 2C 01 00 0E 04 04 00 74 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 [17:02:48]wFMCommunicate OK [17:02:48]SAM_PROTO_GetFieldsCounters done [17:02:48]requested_item shift.num is exist - process it [17:02:48]requested_item shift.opened is exist - process it [17:02:48]req_shift_opened [17:02:48]FM_GetShiftState [17:02:48]SAM_PROTO_GetShiftState [17:02:48]wFMCommunicate request_size=4 [17:02:48]MH_SAM_APDU [17:02:48]CAPDU: 80 13 01 00 [17:02:48]Write to MH i2c: E2 08 00 23 02 80 13 01 00 00 00 00 00 A2 [17:02:48]Write i2c OK [17:02:48]MH_I2C_Read... [17:02:48]Read from MH i2c: E2 [17:02:48]MH_I2C_Read... [17:02:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:48]Read from MH i2c: E2 0E 00 [17:02:48]MH_I2C_Read... [17:02:48]Read from MH i2c: E2 0E 00 23 02 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 E9 [17:02:49]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [17:02:49]wFMCommunicate OK [17:02:49]SAM_PROTO_GetShiftState done [17:02:49]FM_GetShiftState done [17:02:49]req_shift_opened done [17:02:49]requested_item shift.open_date is exist - process it [17:02:49]req_shift_open_date [17:02:49]req_shift_open_date done [17:02:49]produce_requested_data done [17:02:49]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76887,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [17:02:49]process_action_free close_receipt [17:02:49]json_value_free [17:02:49]json_value_free done [17:02:49]process_json_proto returns [17:02:49]Send response to host [17:02:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76887,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [17:02:49]free response buf [17:02:49]execute_script done [17:02:49]execute_script returns [17:02:49]free content buf [17:02:49]Sock 7.Close socket [17:02:49]Sock 7.Thread stoped [17:02:52]OFD Sender: No OFD packet to send [17:02:57]OFD Sender: No OFD packet to send [17:03:02]OFD Sender: No OFD packet to send [17:03:07]OFD Sender: No OFD packet to send [17:03:12]OFD Sender: No OFD packet to send [17:03:17]OFD Sender: No OFD packet to send [17:03:22]OFD Sender: No OFD packet to send [17:03:27]OFD Sender: No OFD packet to send [17:03:32]OFD Sender: No OFD packet to send [17:03:37]OFD Sender: No OFD packet to send [17:03:42]OFD Sender: No OFD packet to send [17:03:47]OFD Sender: No OFD packet to send [17:03:52]OFD Sender: No OFD packet to send [17:03:55]accept exits with 9 [17:03:55]New connection [17:03:55]New thread 3067166052 created [17:03:55]Thread 3067309412 joined [17:03:55]Waiting for new connection... [17:03:55] Sock 9.Parse request [17:03:55]Sock 9.Check first char [17:03:55]Sock 9.First char is OK [17:03:55]request: POST /json_proto HTTP/1.0 [17:03:55]Method: POST [17:03:55]URL: /json_proto [17:03:55]Method is POST - this is cgi request [17:03:55]url: /json_proto [17:03:55]query_string will be loaded in cgi processing [17:03:55]execute_cgi json_proto POST (null) [17:03:55]execute_cgi path=json_proto method=POST [17:03:55]POST find Content-Length [17:03:55]Host: 172.17.62.5:8080 [17:03:55]Content-Length: 978 [17:03:55]Content-Type: application/json [17:03:55] [17:03:55]POST finish read [17:03:55]Found Content-Length = 978 [17:03:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 41.730, "sum" : 3000.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 41.73 \u0441\u043E\u043C", "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:03:55]execute_script... [17:03: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)191431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 41.730, "sum" : 3000.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 41.73 \u0441\u043E\u043C", "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:03:55]POST & json_proto [17:03:55]process_json_proto [17:03:55]json parsed OK: [17:03:55]protocol is kg_v1.0 [17:03:55]action value=close_receipt [17:03:55]process_action close_receipt [17:03:55]cmd_close_receipt [17:03:55]MH_GetDate [17:03:55]Write to MH i2c: F0 00 00 24 02 15 [17:03:55]Write i2c OK [17:03:55]MH_I2C_Read... [17:03:55]Read from MH i2c: F0 [17:03:55]MH_I2C_Read... [17:03:55]Read from MH i2c: F0 09 00 [17:03:55]MH_I2C_Read... [17:03:55]Read from MH i2c: F0 09 00 24 02 00 FC 46 25 66 F4 E9 65 64 91 [17:03:55]GetLastDocTimeStamp 1713718965 [17:03:55]current date 1713719036 [17:03:55]FM_GetShiftState [17:03:55]SAM_PROTO_GetShiftState [17:03:55]wFMCommunicate request_size=4 [17:03:55]MH_SAM_APDU [17:03:55]CAPDU: 80 13 01 00 [17:03:55]Write to MH i2c: E2 08 00 25 02 80 13 01 00 00 00 00 00 A4 [17:03:55]Write i2c OK [17:03:55]MH_I2C_Read... [17:03:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:55]Read from MH i2c: E2 [17:03:55]MH_I2C_Read... [17:03:55]Read from MH i2c: E2 0E 00 [17:03:55]MH_I2C_Read... [17:03:55]Read from MH i2c: E2 0E 00 25 02 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 EB [17:03:55]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [17:03:55]wFMCommunicate OK [17:03:55]SAM_PROTO_GetShiftState done [17:03:55]FM_GetShiftState done [17:03:55]opened in 1713658965 [17:03:55]opened+sec_in_day 1713745365 [17:03:55]quantity*price = 300038 [17:03:55]sum+1 = 300040 [17:03:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.62 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 144 21.04.2024 17:03 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 41.73 сом ФМ: 0000000000874652 ФД: 76888 ФПД: 43418842472708 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T170356&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76888&fm=43418842472708&tin=02508201610067®Number=0000000000091573&sum=300000 [17:03:56]StoreToDocumentArchive [17:03:56]shift 372 fd 76888 [17:03:56]save to /storage/0372/doc_00076888 [17:03:56]save last doc name /storage/0372/doc_00076888 to /storage/kkm_last_doc_name [17:03:56]save OK [17:03:56]Clear old archive folders... [17:03:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:03:56]tlvbuf is 008D30D0 [17:03:56]SAM_PROTO_ClearQueue [17:03:56]wFMCommunicate request_size=4 [17:03:56]MH_SAM_APDU [17:03:56]CAPDU: 80 09 00 00 [17:03:56]Write to MH i2c: E2 08 00 32 02 80 09 00 00 00 00 00 00 A6 [17:03:56]Write i2c OK [17:03:56]MH_I2C_Read... [17:03:56]Read from MH i2c: E2 [17:03:56]MH_I2C_Read... [17:03:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:03:56]Read from MH i2c: E2 03 00 [17:03:56]MH_I2C_Read... [17:03:56]Read from MH i2c: E2 03 00 32 02 00 90 00 A8 [17:03:56]RAPDU: 90 00 [17:03:56]wFMCommunicate OK [17:03:56]SAM_PROTO_ClearQueue done [17:03:56]KKMCreateOFDPacket [17:03:56]OFDProtocolAddRootSTLVToBuf [17:03:56]FM_MakeSignedData [17:03:56]FM_MakeSignedData [17:03:56]SAM_PROTO_SignData [17:03:56]wFMCommunicate request_size=4 [17:03:56]MH_SAM_APDU [17:03:56]CAPDU: 80 0D 01 02 [17:03:56]Write to MH i2c: E2 08 00 33 02 80 0D 01 02 00 00 00 00 AE [17:03:56]Write i2c OK [17:03:56]MH_I2C_Read... [17:03:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:03:56]Read from MH i2c: E2 [17:03:56]MH_I2C_Read... [17:03:56]Read from MH i2c: E2 03 00 [17:03:56]MH_I2C_Read... [17:03:56]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [17:03:56]RAPDU: 90 00 [17:03:56]wFMCommunicate OK [17:03:56]wFMCommunicate request_size=255 [17:03:56]MH_SAM_APDU [17:03:56]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 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 90 00 00 00 F4 03 04 00 FC 46 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 58 2C 01 00 35 04 06 00 27 7D 3C AE [17:03:56]Write to MH i2c: E2 02 01 34 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 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 90 00 00 00 F4 03 04 00 FC 46 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 58 2C 01 00 35 04 06 00 27 7D 3C AE 00 00 AF [17:03:56]Write i2c OK [17:03:56]MH_I2C_Read... [17:03:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:57]Read from MH i2c: E2 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: E2 03 00 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [17:03:57]RAPDU: 90 00 [17:03:57]wFMCommunicate OK [17:03:57]wFMCommunicate request_size=7 [17:03:57]MH_SAM_APDU [17:03:57]CAPDU: 80 0D 02 02 02 A1 04 [17:03:57]Write to MH i2c: E2 0A 00 35 02 80 0D 02 02 02 00 A1 04 00 00 5A [17:03:57]Write i2c OK [17:03:57]MH_I2C_Read... [17:03:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:57]Read from MH i2c: E2 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: E2 03 00 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: E2 03 00 35 02 00 90 00 AB [17:03:57]RAPDU: 90 00 [17:03:57]wFMCommunicate OK [17:03:57]wFMCommunicate request_size=4 [17:03:57]MH_SAM_APDU [17:03:57]CAPDU: 80 0D 03 02 [17:03:57]Write to MH i2c: E2 08 00 36 02 80 0D 03 02 00 00 00 00 B3 [17:03:57]Write i2c OK [17:03:57]MH_I2C_Read... [17:03:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:03:57]Read from MH i2c: E2 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: E2 0B 00 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: E2 0B 00 36 02 00 26 1B C5 29 B7 F7 DB 18 90 00 84 [17:03:57]RAPDU: 26 1B C5 29 B7 F7 DB 18 90 00 [17:03:57]wFMCommunicate OK [17:03:57]SAM_PROTO_SignData done [17:03:57]FM_MakeSignedData done [17:03:57]CreateOFDProtocolMessage [17:03:57]wFMCommunicate request_size=4 [17:03:57]MH_SAM_APDU [17:03:57]CAPDU: 80 11 00 00 [17:03:57]Write to MH i2c: E2 08 00 37 02 80 11 00 00 00 00 00 00 B3 [17:03:57]Write i2c OK [17:03:57]MH_I2C_Read... [17:03:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:57]Read from MH i2c: E2 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: E2 17 00 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: E2 17 00 37 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 06 [17:03:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:03:57]wFMCommunicate OK [17:03:57]CreateOFDProtocolMessage done [17:03:57]OFDSenderStorePacket 76888 [17:03:57]StoreOFDPacket docnum=76888 [17:03:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 A0 93 04 01 8B CC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 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 90 00 00 00 F4 03 04 00 FC 46 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 58 2C 01 00 35 04 06 00 27 7D 3C AE A1 04 26 1B C5 29 B7 F7 DB 18 [17:03:57]CheckFolder [17:03:57]dirname=/storage/ofd_packets [17:03:57]CheckFolder done [17:03:57]ProducePacketName [17:03:57]name=ofd_packets/00076888 [17:03:57]NVStorageSaveData ofd_packets/00076888 [17:03:57]File name is /storage/ofd_packets/00076888 [17:03:57]Write 298 bytes [17:03:57]NVStorageSaveData done [17:03:57]OFDSenderStorePacket done [17:03:57]KKMCreateOFDPacket done [17:03:57]NVStorageSaveData kkm_last_timestamp [17:03:57]File name is /storage/kkm_last_timestamp [17:03:57]Write 4 bytes [17:03:57]NVStorageSaveData done [17:03:57]ExternCall_PrintAddStr [17:03:57]wPrintStart [17:03:57]Write to MH i2c: 01 00 00 38 02 3A [17:03:57]Write i2c OK [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: 01 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: 01 07 00 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: 01 07 00 38 02 00 00 00 00 00 FF 0F 4F [17:03:57]RasterBufferAndPrint [17:03:57]line Счет N : (1)191431 [17:03:57]line ИНН: 02508201610067 [17:03:57]line Контрольно-Кассовый Чек [17:03:57]line ПРОДАЖА [17:03:57]line ТРК (МРК, ГНК) : 13 [17:03:57]line Товар: 2710194210 [17:03:57]line ДТ-К-5 [17:03:57]line 41.730 * 71.90 [17:03:57]line = 3000.39 [17:03:57]line НДС 12% НСП 1% [17:03:57]line > о реализуемом товаре [17:03:57]line ОКРУГЛЕНИЕ: -0.39 [17:03:57]line ИТОГО: 3000.00 [17:03:57]line Внесено: 3000.00 [17:03:57]line СДАЧА: 0.00 [17:03:57]line НСП 1% : 26.55 [17:03:57]line НДС 12% : 318.62 [17:03:57]line Наличными: 3000.00 [17:03:57]line Безнал.: 0.00 [17:03:57]line Место: АЗС № 106 "Партнер Нефть" [17:03:57]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [17:03:57]line СНО: Общий режим [17:03:57]line Чек 144 21.04.2024 17:03 [17:03:57]line Смена: 372 ФФД: 1.0 [17:03:57]line ЗНМ: 0300000141 [17:03:57]line РНМ: 0000000000091573 [17:03:57]line Версия ККМ: 001 [17:03:57]line [17:03:57]line Дисконтная программа [17:03:57]line ДТ [17:03:57]line номер 106 [17:03:57]line сэкономлено 41.73 сом [17:03:57]line ФМ: 0000000000874652 [17:03:57]line ФД: 76888 [17:03:57]line ФПД: 43418842472708 [17:03:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T170356&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76888&fm=43418842472708&tin=02508201610067®Number=0000000000091573&sum=300000 [17:03:57]OFD Sender: Processing packet 76888 [packets to send 129, broken 128] [17:03:57]ProducePacketName [17:03:57]name=ofd_packets/00076888 [17:03:57]OFD Sender: To server: pG, [17:03:57]CommunicateWithHost lk.salyk.kg:30040 [17:03:57]ConnectInit lk.salyk.kg [17:03:57]written 0, free lines is 4095 [17:03:58]Write to MH i2c: 01 00 00 67 02 69 [17:03:58]Write i2c OK [17:03:58]MH_I2C_Read... [17:03:58]Read from MH i2c: 01 [17:03:58]MH_I2C_Read... [17:03:58]Read from MH i2c: 01 07 00 [17:03:58]MH_I2C_Read... [17:03:58]Read from MH i2c: 01 07 00 67 02 00 00 00 00 00 94 0C 10 [17:03:58]RasterBufferAndPrint [17:03:58]line [17:03:58]line [17:03:58]line [17:03:58]line [17:03:58]line [17:03:58]written 0, free lines is 3226 [17:03:58]MH_Cut [17:03:58]Write to MH i2c: D1 01 00 6E 02 01 42 [17:03:58]Write i2c OK [17:03:58]MH_I2C_Read... [17:03:58]Read from MH i2c: D1 [17:03:58]MH_I2C_Read... [17:03:58]Read from MH i2c: D1 01 00 [17:03:58]MH_I2C_Read... [17:03:58]Read from MH i2c: D1 01 00 6E 02 00 41 [17:03:58]Write to MH i2c: 01 00 00 6F 02 71 [17:03:58]Write i2c OK [17:03:58]MH_I2C_Read... [17:03:58]*** Cut start [17:03:58]*** Partial cut [17:03:58]*** CUTSNS_PIN = 1 [17:03:59]*** CUTSNS_PIN = 0 [17:03:59]Connected sock=10 [17:03:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 A0 93 04 01 8B CC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 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 90 00 00 00 F4 03 04 00 FC 46 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 58 2C 01 00 35 04 06 00 27 7D 3C AE A1 04 26 1B C5 29 B7 F7 DB 18 [17:03:59]*** Brake cut motor [17:03:59]Read from MH i2c: 01 [17:03:59]MH_I2C_Read... [17:03:59]*** Stop cut motor [17:03:59]*** Cut end [17:03:59]Read from MH i2c: 01 07 00 [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: 01 07 00 6F 02 00 00 00 00 00 FF 0F 86 [17:03:59]process_action close_receipt done [17:03:59]requested_data is exist [17:03:59]produce_requested_data [17:03:59]requested_item fm.sn is exist - process it [17:03:59]wFMCommunicate request_size=4 [17:03:59]MH_SAM_APDU [17:03:59]CAPDU: 80 11 00 00 [17:03:59]Write to MH i2c: E2 08 00 70 02 80 11 00 00 00 00 00 00 EC [17:03:59]Write i2c OK [17:03:59]MH_I2C_Read... [17:03:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:59]Read from MH i2c: E2 [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: E2 17 00 [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: E2 17 00 70 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 3F [17:03:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:03:59]wFMCommunicate OK [17:03:59]requested_item fd.num is exist - process it [17:03:59]SAM_PROTO_GetFieldsCounters [17:03:59]wFMCommunicate request_size=4 [17:03:59]MH_SAM_APDU [17:03:59]CAPDU: 80 13 00 00 [17:03:59]Write to MH i2c: E2 08 00 71 02 80 13 00 00 00 00 00 00 EF [17:03:59]Write i2c OK [17:03:59]MH_I2C_Read... [17:03:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:03:59]Read from MH i2c: E2 [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: E2 62 00 [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: E2 62 00 71 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 58 2C 01 00 0E 04 04 00 74 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 BA [17:03: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 58 2C 01 00 0E 04 04 00 74 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 [17:03:59]wFMCommunicate OK [17:03:59]SAM_PROTO_GetFieldsCounters done [17:03:59]requested_item shift.num is exist - process it [17:03:59]requested_item shift.opened is exist - process it [17:03:59]req_shift_opened [17:03:59]FM_GetShiftState [17:03:59]SAM_PROTO_GetShiftState [17:03:59]wFMCommunicate request_size=4 [17:03:59]MH_SAM_APDU [17:03:59]CAPDU: 80 13 01 00 [17:03:59]Write to MH i2c: E2 08 00 72 02 80 13 01 00 00 00 00 00 F1 [17:03:59]Write i2c OK [17:03:59]MH_I2C_Read... [17:03:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:59]Read from MH i2c: E2 [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: E2 0E 00 [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: E2 0E 00 72 02 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 38 [17:03:59]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [17:03:59]wFMCommunicate OK [17:03:59]SAM_PROTO_GetShiftState done [17:03:59]FM_GetShiftState done [17:03:59]req_shift_opened done [17:03:59]requested_item shift.open_date is exist - process it [17:03:59]req_shift_open_date [17:03:59]req_shift_open_date done [17:03:59]produce_requested_data done [17:03:59]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76888,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [17:03:59]process_action_free close_receipt [17:03:59]json_value_free [17:03:59]json_value_free done [17:03:59]process_json_proto returns [17:03:59]Send response to host [17:03:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76888,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [17:03:59]free response buf [17:03:59]execute_script done [17:03:59]execute_script returns [17:03:59]free content buf [17:03:59]Sock 9.Close socket [17:03:59]Sock 9.Thread stoped [17:04:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 04 A4 47 00 23 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 34 36 35 32 10 04 04 00 58 2C 01 00 F4 03 04 00 83 EE 24 66 B6 04 01 00 00 08 53 0D 2E 47 A0 6B 5E [17:04:00]CommunicateWithHost err = 0 [17:04:00]CheckOFDResponse [17:04:00]1017 (14) - 77093643461234 [17:04:00]1041 (16) - 0000000000874652 [17:04:00]1040 (4) - 76888 [17:04:00]1012 (4) - 21.04.2024 10:46 [17:04:00]1206 (1) - 0 [17:04:00]OFD Sender: Remove packet 76888 [17:04:00]ProducePacketName [17:04:00]name=ofd_packets/00076888 [17:04:00]NVStorageDeleteData [17:04:00]OFD Sender: No OFD packet to send [17:04:05]OFD Sender: No OFD packet to send [17:04:10]OFD Sender: No OFD packet to send [17:04:15]OFD Sender: No OFD packet to send [17:04:20]OFD Sender: No OFD packet to send [17:04:25]OFD Sender: No OFD packet to send [17:04:30]OFD Sender: No OFD packet to send [17:04:35]OFD Sender: No OFD packet to send [17:04:40]OFD Sender: No OFD packet to send [17:04:45]OFD Sender: No OFD packet to send [17:04:50]OFD Sender: No OFD packet to send [17:04:55]OFD Sender: No OFD packet to send [17:05:00]OFD Sender: No OFD packet to send [17:05:05]OFD Sender: No OFD packet to send [17:05:10]OFD Sender: No OFD packet to send [17:05:15]OFD Sender: No OFD packet to send [17:05:20]OFD Sender: No OFD packet to send [17:05:25]OFD Sender: No OFD packet to send [17:05:30]OFD Sender: No OFD packet to send [17:05:35]OFD Sender: No OFD packet to send [17:05:40]OFD Sender: No OFD packet to send [17:05:45]OFD Sender: No OFD packet to send [17:05:50]OFD Sender: No OFD packet to send [17:05:55]OFD Sender: No OFD packet to send [17:06:00]OFD Sender: No OFD packet to send [17:06:05]OFD Sender: No OFD packet to send [17:06:10]OFD Sender: No OFD packet to send [17:06:15]OFD Sender: No OFD packet to send [17:06:20]OFD Sender: No OFD packet to send [17:06:25]OFD Sender: No OFD packet to send [17:06:30]OFD Sender: No OFD packet to send [17:06:35]OFD Sender: No OFD packet to send [17:06:40]OFD Sender: No OFD packet to send [17:06:45]OFD Sender: No OFD packet to send [17:06:50]OFD Sender: No OFD packet to send [17:06:55]OFD Sender: No OFD packet to send [17:07:00]OFD Sender: No OFD packet to send [17:07:05]OFD Sender: No OFD packet to send [17:07:10]OFD Sender: No OFD packet to send [17:07:15]OFD Sender: No OFD packet to send [17:07:20]OFD Sender: No OFD packet to send [17:07:25]OFD Sender: No OFD packet to send [17:07:30]OFD Sender: No OFD packet to send [17:07:35]OFD Sender: No OFD packet to send [17:07:40]OFD Sender: No OFD packet to send [17:07:45]OFD Sender: No OFD packet to send [17:07:50]OFD Sender: No OFD packet to send [17:07:54]accept exits with 7 [17:07:54]New connection [17:07:54]New thread 3067309412 created [17:07:54]Thread 3067166052 joined [17:07:54]Waiting for new connection... [17:07:54] Sock 7.Parse request [17:07:54]Sock 7.Check first char [17:07:54]Sock 7.First char is OK [17:07:54]request: POST /json_proto HTTP/1.0 [17:07:54]Method: POST [17:07:54]URL: /json_proto [17:07:54]Method is POST - this is cgi request [17:07:54]url: /json_proto [17:07:54]query_string will be loaded in cgi processing [17:07:54]execute_cgi json_proto POST (null) [17:07:54]execute_cgi path=json_proto method=POST [17:07:54]POST find Content-Length [17:07:54]Host: 172.17.62.5:8080 [17:07:54]Content-Length: 674 [17:07:54]Content-Type: application/json [17:07:54] [17:07:54]POST finish read [17:07:54]Found Content-Length = 674 [17:07:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191433", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\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" ] } } [17:07:54]execute_script... [17:07: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)191433", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\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" ] } } [17:07:54]POST & json_proto [17:07:54]process_json_proto [17:07:54]json parsed OK: [17:07:54]protocol is kg_v1.0 [17:07:54]action value=close_receipt [17:07:54]process_action close_receipt [17:07:54]cmd_close_receipt [17:07:54]MH_GetDate [17:07:54]Write to MH i2c: F0 00 00 73 02 64 [17:07:54]Write i2c OK [17:07:54]MH_I2C_Read... [17:07:54]Read from MH i2c: F0 [17:07:54]MH_I2C_Read... [17:07:54]Read from MH i2c: F0 09 00 [17:07:54]MH_I2C_Read... [17:07:54]Read from MH i2c: F0 09 00 73 02 00 EB 47 25 66 F4 E9 65 64 D0 [17:07:54]GetLastDocTimeStamp 1713719036 [17:07:54]current date 1713719275 [17:07:54]FM_GetShiftState [17:07:54]SAM_PROTO_GetShiftState [17:07:54]wFMCommunicate request_size=4 [17:07:54]MH_SAM_APDU [17:07:54]CAPDU: 80 13 01 00 [17:07:54]Write to MH i2c: E2 08 00 74 02 80 13 01 00 00 00 00 00 F3 [17:07:54]Write i2c OK [17:07:54]MH_I2C_Read... [17:07:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:54]Read from MH i2c: E2 [17:07:54]MH_I2C_Read... [17:07:54]Read from MH i2c: E2 0E 00 [17:07:54]MH_I2C_Read... [17:07:54]Read from MH i2c: E2 0E 00 74 02 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 3A [17:07:54]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [17:07:54]wFMCommunicate OK [17:07:54]SAM_PROTO_GetShiftState done [17:07:54]FM_GetShiftState done [17:07:54]opened in 1713658965 [17:07:54]opened+sec_in_day 1713745365 [17:07:54]quantity*price = 72025 [17:07:54]sum+1 = 72026 [17:07:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 720.00 Внесено: 720.00 СДАЧА: 0.00 НСП 1% : 6.37 НДС 12% : 76.49 Наличными: 720.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 145 21.04.2024 17:07 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76889 ФПД: 232761231327097 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T170755&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76889&fm=232761231327097&tin=02508201610067®Number=0000000000091573&sum=72000 [17:07:55]StoreToDocumentArchive [17:07:55]shift 372 fd 76889 [17:07:55]save to /storage/0372/doc_00076889 [17:07:55]save last doc name /storage/0372/doc_00076889 to /storage/kkm_last_doc_name [17:07:55]save OK [17:07:55]Clear old archive folders... [17:07:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:07:55]tlvbuf is 008D4E90 [17:07:55]SAM_PROTO_ClearQueue [17:07:55]wFMCommunicate request_size=4 [17:07:55]MH_SAM_APDU [17:07:55]CAPDU: 80 09 00 00 [17:07:55]Write to MH i2c: E2 08 00 81 02 80 09 00 00 00 00 00 00 F5 [17:07:56]Write i2c OK [17:07:56]MH_I2C_Read... [17:07:56]Read from MH i2c: E2 [17:07:56]MH_I2C_Read... [17:07:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:07:56]Read from MH i2c: E2 03 00 [17:07:56]MH_I2C_Read... [17:07:56]Read from MH i2c: E2 03 00 81 02 00 90 00 F7 [17:07:56]RAPDU: 90 00 [17:07:56]wFMCommunicate OK [17:07:56]SAM_PROTO_ClearQueue done [17:07:56]KKMCreateOFDPacket [17:07:56]OFDProtocolAddRootSTLVToBuf [17:07:56]FM_MakeSignedData [17:07:56]FM_MakeSignedData [17:07:56]SAM_PROTO_SignData [17:07:56]wFMCommunicate request_size=4 [17:07:56]MH_SAM_APDU [17:07:56]CAPDU: 80 0D 01 02 [17:07:56]Write to MH i2c: E2 08 00 82 02 80 0D 01 02 00 00 00 00 FD [17:07:56]Write i2c OK [17:07:56]MH_I2C_Read... [17:07:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:07:56]Read from MH i2c: E2 [17:07:56]MH_I2C_Read... [17:07:56]Read from MH i2c: E2 03 00 [17:07:56]MH_I2C_Read... [17:07:56]Read from MH i2c: E2 03 00 82 02 00 90 00 F8 [17:07:56]RAPDU: 90 00 [17:07:56]wFMCommunicate OK [17:07:56]wFMCommunicate request_size=255 [17:07:56]MH_SAM_APDU [17:07:56]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 91 00 00 00 F4 03 04 00 EB 47 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 59 2C 01 00 35 04 06 00 D3 B1 F2 82 [17:07:56]Write to MH i2c: E2 02 01 83 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 91 00 00 00 F4 03 04 00 EB 47 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 59 2C 01 00 35 04 06 00 D3 B1 F2 82 00 00 93 [17:07:56]Write i2c OK [17:07:56]MH_I2C_Read... [17:07:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:56]Read from MH i2c: E2 [17:07:56]MH_I2C_Read... [17:07:56]Read from MH i2c: E2 03 00 [17:07:56]MH_I2C_Read... [17:07:56]Read from MH i2c: E2 03 00 83 02 00 90 00 F9 [17:07:56]RAPDU: 90 00 [17:07:56]wFMCommunicate OK [17:07:56]wFMCommunicate request_size=7 [17:07:56]MH_SAM_APDU [17:07:56]CAPDU: 80 0D 02 02 02 BF 79 [17:07:56]Write to MH i2c: E2 0A 00 84 02 80 0D 02 02 02 00 BF 79 00 00 3C [17:07:56]Write i2c OK [17:07:56]MH_I2C_Read... [17:07:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:56]Read from MH i2c: E2 [17:07:56]MH_I2C_Read... [17:07:56]Read from MH i2c: E2 03 00 [17:07:56]MH_I2C_Read... [17:07:56]Read from MH i2c: E2 03 00 84 02 00 90 00 FA [17:07:56]RAPDU: 90 00 [17:07:56]wFMCommunicate OK [17:07:56]wFMCommunicate request_size=4 [17:07:56]MH_SAM_APDU [17:07:56]CAPDU: 80 0D 03 02 [17:07:56]Write to MH i2c: E2 08 00 85 02 80 0D 03 02 00 00 00 00 02 [17:07:56]Write i2c OK [17:07:56]MH_I2C_Read... [17:07:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:07:56]Read from MH i2c: E2 [17:07:56]MH_I2C_Read... [17:07:56]Read from MH i2c: E2 0B 00 [17:07:56]MH_I2C_Read... [17:07:56]Read from MH i2c: E2 0B 00 85 02 00 64 58 42 95 99 4F 05 B9 90 00 3C [17:07:56]RAPDU: 64 58 42 95 99 4F 05 B9 90 00 [17:07:56]wFMCommunicate OK [17:07:56]SAM_PROTO_SignData done [17:07:56]FM_MakeSignedData done [17:07:56]CreateOFDProtocolMessage [17:07:56]wFMCommunicate request_size=4 [17:07:56]MH_SAM_APDU [17:07:56]CAPDU: 80 11 00 00 [17:07:56]Write to MH i2c: E2 08 00 86 02 80 11 00 00 00 00 00 00 02 [17:07:56]Write i2c OK [17:07:56]MH_I2C_Read... [17:07:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:56]Read from MH i2c: E2 [17:07:56]MH_I2C_Read... [17:07:56]Read from MH i2c: E2 17 00 [17:07:56]MH_I2C_Read... [17:07:56]Read from MH i2c: E2 17 00 86 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 55 [17:07:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:07:56]wFMCommunicate OK [17:07:56]CreateOFDProtocolMessage done [17:07:56]OFDSenderStorePacket 76889 [17:07:56]StoreOFDPacket docnum=76889 [17:07:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 27 41 04 01 AE 2F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 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 91 00 00 00 F4 03 04 00 EB 47 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 59 2C 01 00 35 04 06 00 D3 B1 F2 82 BF 79 64 58 42 95 99 4F 05 B9 [17:07:56]CheckFolder [17:07:56]dirname=/storage/ofd_packets [17:07:56]CheckFolder done [17:07:56]ProducePacketName [17:07:56]name=ofd_packets/00076889 [17:07:56]NVStorageSaveData ofd_packets/00076889 [17:07:56]File name is /storage/ofd_packets/00076889 [17:07:56]Write 298 bytes [17:07:56]NVStorageSaveData done [17:07:56]OFDSenderStorePacket done [17:07:56]KKMCreateOFDPacket done [17:07:56]NVStorageSaveData kkm_last_timestamp [17:07:56]File name is /storage/kkm_last_timestamp [17:07:56]Write 4 bytes [17:07:56]NVStorageSaveData done [17:07:56]ExternCall_PrintAddStr [17:07:56]wPrintStart [17:07:56]Write to MH i2c: 01 00 00 87 02 89 [17:07:56]Write i2c OK [17:07:56]MH_I2C_Read... [17:07:56]Read from MH i2c: 01 [17:07:56]MH_I2C_Read... [17:07:56]Read from MH i2c: 01 07 00 [17:07:56]MH_I2C_Read... [17:07:56]Read from MH i2c: 01 07 00 87 02 00 00 00 00 00 FF 0F 9E [17:07:56]RasterBufferAndPrint [17:07:56]line Счет N : (1)191433 [17:07:56]line ИНН: 02508201610067 [17:07:56]line Контрольно-Кассовый Чек [17:07:56]line ПРОДАЖА [17:07:56]line ТРК (МРК, ГНК) : 23 [17:07:56]line Товар: 2710194210 [17:07:56]line ДТ-К-5 [17:07:56]line 9.880 * 72.90 [17:07:56]line = 720.25 [17:07:56]line НДС 12% НСП 1% [17:07:56]line > о реализуемом товаре [17:07:56]line ОКРУГЛЕНИЕ: -0.25 [17:07:56]line ИТОГО: 720.00 [17:07:56]line Внесено: 720.00 [17:07:56]line СДАЧА: 0.00 [17:07:56]line НСП 1% : 6.37 [17:07:56]line НДС 12% : 76.49 [17:07:56]line Наличными: 720.00 [17:07:56]line Безнал.: 0.00 [17:07:56]line Место: АЗС № 106 "Партнер Нефть" [17:07:56]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [17:07:56]line СНО: Общий режим [17:07:56]line Чек 145 21.04.2024 17:07 [17:07:56]line Смена: 372 ФФД: 1.0 [17:07:56]line ЗНМ: 0300000141 [17:07:56]line РНМ: 0000000000091573 [17:07:56]line Версия ККМ: 001 [17:07:56]line ФМ: 0000000000874652 [17:07:56]line ФД: 76889 [17:07:56]line ФПД: 232761231327097 [17:07:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T170755&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76889&fm=232761231327097&tin=02508201610067®Number=0000000000091573&sum=72000 [17:07:56]OFD Sender: Processing packet 76889 [packets to send 129, broken 128] [17:07:56]ProducePacketName [17:07:56]name=ofd_packets/00076889 [17:07:56]OFD Sender: To server: pG, [17:07:56]CommunicateWithHost lk.salyk.kg:30040 [17:07:56]ConnectInit lk.salyk.kg [17:07:56]written 0, free lines is 4095 [17:07:56]Connected sock=10 [17:07:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 27 41 04 01 AE 2F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 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 91 00 00 00 F4 03 04 00 EB 47 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 59 2C 01 00 35 04 06 00 D3 B1 F2 82 BF 79 64 58 42 95 99 4F 05 B9 [17:07:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 F5 84 47 00 0E 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 34 36 35 32 10 04 04 00 59 2C 01 00 F4 03 04 00 70 EF 24 66 B6 04 01 00 00 5F 76 19 B8 CE 4A 7C 9A [17:07:57]CommunicateWithHost err = 0 [17:07:57]CheckOFDResponse [17:07:57]1017 (14) - 77093643461234 [17:07:57]1041 (16) - 0000000000874652 [17:07:57]1040 (4) - 76889 [17:07:57]1012 (4) - 21.04.2024 10:50 [17:07:57]1206 (1) - 0 [17:07:57]OFD Sender: Remove packet 76889 [17:07:57]ProducePacketName [17:07:57]name=ofd_packets/00076889 [17:07:57]NVStorageDeleteData [17:07:57]Write to MH i2c: 01 00 00 B1 02 B3 [17:07:57]Write i2c OK [17:07:57]MH_I2C_Read... [17:07:57]Read from MH i2c: 01 [17:07:57]MH_I2C_Read... [17:07:57]Read from MH i2c: 01 07 00 [17:07:57]MH_I2C_Read... [17:07:57]Read from MH i2c: 01 07 00 B1 02 00 00 00 00 00 03 0D CA [17:07:57]RasterBufferAndPrint [17:07:57]line [17:07:57]line [17:07:57]line [17:07:57]line [17:07:57]line [17:07:57]written 0, free lines is 3337 [17:07:57]MH_Cut [17:07:57]Write to MH i2c: D1 01 00 B8 02 01 8C [17:07:57]Write i2c OK [17:07:57]MH_I2C_Read... [17:07:57]Read from MH i2c: D1 [17:07:57]MH_I2C_Read... [17:07:57]Read from MH i2c: D1 01 00 [17:07:57]MH_I2C_Read... [17:07:57]Read from MH i2c: D1 01 00 B8 02 00 8B [17:07:57]Write to MH i2c: 01 00 00 B9 02 BB [17:07:57]Write i2c OK [17:07:57]MH_I2C_Read... [17:07:57]OFD Sender: No OFD packet to send [17:07:58]*** Cut start [17:07:58]*** Partial cut [17:07:58]*** CUTSNS_PIN = 1 [17:07:58]*** CUTSNS_PIN = 0 [17:07:58]*** Brake cut motor [17:07:58]Read from MH i2c: 01 [17:07:58]MH_I2C_Read... [17:07:58]*** Stop cut motor [17:07:58]*** Cut end [17:07:58]Read from MH i2c: 01 07 00 [17:07:58]MH_I2C_Read... [17:07:58]Read from MH i2c: 01 07 00 B9 02 00 00 00 00 00 FF 0F D0 [17:07:58]process_action close_receipt done [17:07:58]requested_data is exist [17:07:58]produce_requested_data [17:07:58]requested_item fm.sn is exist - process it [17:07:58]wFMCommunicate request_size=4 [17:07:58]MH_SAM_APDU [17:07:58]CAPDU: 80 11 00 00 [17:07:58]Write to MH i2c: E2 08 00 BA 02 80 11 00 00 00 00 00 00 36 [17:07:58]Write i2c OK [17:07:58]MH_I2C_Read... [17:07:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:58]Read from MH i2c: E2 [17:07:58]MH_I2C_Read... [17:07:58]Read from MH i2c: E2 17 00 [17:07:58]MH_I2C_Read... [17:07:58]Read from MH i2c: E2 17 00 BA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 89 [17:07:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:07:58]wFMCommunicate OK [17:07:58]requested_item fd.num is exist - process it [17:07:58]SAM_PROTO_GetFieldsCounters [17:07:58]wFMCommunicate request_size=4 [17:07:58]MH_SAM_APDU [17:07:58]CAPDU: 80 13 00 00 [17:07:58]Write to MH i2c: E2 08 00 BB 02 80 13 00 00 00 00 00 00 39 [17:07:58]Write i2c OK [17:07:58]MH_I2C_Read... [17:07:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:07:58]Read from MH i2c: E2 [17:07:58]MH_I2C_Read... [17:07:58]Read from MH i2c: E2 62 00 [17:07:58]MH_I2C_Read... [17:07:58]Read from MH i2c: E2 62 00 BB 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 59 2C 01 00 0E 04 04 00 74 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 08 [17:07: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 59 2C 01 00 0E 04 04 00 74 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 [17:07:58]wFMCommunicate OK [17:07:58]SAM_PROTO_GetFieldsCounters done [17:07:58]requested_item shift.num is exist - process it [17:07:58]requested_item shift.opened is exist - process it [17:07:58]req_shift_opened [17:07:58]FM_GetShiftState [17:07:58]SAM_PROTO_GetShiftState [17:07:58]wFMCommunicate request_size=4 [17:07:58]MH_SAM_APDU [17:07:58]CAPDU: 80 13 01 00 [17:07:58]Write to MH i2c: E2 08 00 BC 02 80 13 01 00 00 00 00 00 3B [17:07:58]Write i2c OK [17:07:58]MH_I2C_Read... [17:07:58]Read from MH i2c: E2 [17:07:58]MH_I2C_Read... [17:07:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:58]Read from MH i2c: E2 0E 00 [17:07:58]MH_I2C_Read... [17:07:58]Read from MH i2c: E2 0E 00 BC 02 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 82 [17:07:58]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [17:07:58]wFMCommunicate OK [17:07:58]SAM_PROTO_GetShiftState done [17:07:58]FM_GetShiftState done [17:07:58]req_shift_opened done [17:07:58]requested_item shift.open_date is exist - process it [17:07:58]req_shift_open_date [17:07:58]req_shift_open_date done [17:07:58]produce_requested_data done [17:07:58]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76889,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [17:07:58]process_action_free close_receipt [17:07:58]json_value_free [17:07:58]json_value_free done [17:07:58]process_json_proto returns [17:07:58]Send response to host [17:07:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76889,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [17:07:58]free response buf [17:07:58]execute_script done [17:07:58]execute_script returns [17:07:58]free content buf [17:07:58]Sock 7.Close socket [17:07:58]Sock 7.Thread stoped [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:01]accept exits with 9 [17:09:01]New connection [17:09:01]New thread 3067166052 created [17:09:01]Thread 3067309412 joined [17:09:01]Waiting for new connection... [17:09:01] Sock 9.Parse request [17:09:01]Sock 9.Check first char [17:09:01]Sock 9.First char is OK [17:09:01]request: POST /json_proto HTTP/1.0 [17:09:01]Method: POST [17:09:01]URL: /json_proto [17:09:01]Method is POST - this is cgi request [17:09:01]url: /json_proto [17:09:01]query_string will be loaded in cgi processing [17:09:01]execute_cgi json_proto POST (null) [17:09:01]execute_cgi path=json_proto method=POST [17:09:01]POST find Content-Length [17:09:01]Host: 172.17.62.5:8080 [17:09:01]Content-Length: 942 [17:09:01]Content-Type: application/json [17:09:01] [17:09:01]POST finish read [17:09:01]Found Content-Length = 942 [17:09:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 200.000, "sum" : 14380.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 200.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 14380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:01]execute_script... [17:09:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 200.000, "sum" : 14380.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 200.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 14380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:01]POST & json_proto [17:09:01]process_json_proto [17:09:01]json parsed OK: [17:09:01]protocol is kg_v1.0 [17:09:01]action value=close_receipt [17:09:01]process_action close_receipt [17:09:01]cmd_close_receipt [17:09:01]MH_GetDate [17:09:01]Write to MH i2c: F0 00 00 BD 02 AE [17:09:01]Write i2c OK [17:09:01]MH_I2C_Read... [17:09:01]Read from MH i2c: F0 [17:09:01]MH_I2C_Read... [17:09:01]Read from MH i2c: F0 09 00 [17:09:01]MH_I2C_Read... [17:09:01]Read from MH i2c: F0 09 00 BD 02 00 2E 48 25 66 F4 E9 65 64 5E [17:09:01]GetLastDocTimeStamp 1713719275 [17:09:01]current date 1713719342 [17:09:01]FM_GetShiftState [17:09:01]SAM_PROTO_GetShiftState [17:09:01]wFMCommunicate request_size=4 [17:09:01]MH_SAM_APDU [17:09:01]CAPDU: 80 13 01 00 [17:09:01]Write to MH i2c: E2 08 00 BE 02 80 13 01 00 00 00 00 00 3D [17:09:01]Write i2c OK [17:09:01]MH_I2C_Read... [17:09:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:01]Read from MH i2c: E2 [17:09:01]MH_I2C_Read... [17:09:01]Read from MH i2c: E2 0E 00 [17:09:01]MH_I2C_Read... [17:09:01]Read from MH i2c: E2 0E 00 BE 02 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 84 [17:09:01]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [17:09:01]wFMCommunicate OK [17:09:01]SAM_PROTO_GetShiftState done [17:09:01]FM_GetShiftState done [17:09:01]opened in 1713658965 [17:09:01]opened+sec_in_day 1713745365 [17:09:01]quantity*price = 1438000 [17:09:01]sum+1 = 1438001 [17:09:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 14380.00 НСП 1% : 127.26 НДС 12% : 1527.08 Наличными: 14380.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 146 21.04.2024 17:09 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 200.00 сом ФМ: 0000000000874652 ФД: 76890 ФПД: 114042566353236 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T170902&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76890&fm=114042566353236&tin=02508201610067®Number=0000000000091573&sum=1438000 [17:09:02]StoreToDocumentArchive [17:09:02]shift 372 fd 76890 [17:09:02]save to /storage/0372/doc_00076890 [17:09:02]save last doc name /storage/0372/doc_00076890 to /storage/kkm_last_doc_name [17:09:02]save OK [17:09:02]Clear old archive folders... [17:09:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:09:02]tlvbuf is 008D6AB0 [17:09:02]SAM_PROTO_ClearQueue [17:09:02]wFMCommunicate request_size=4 [17:09:02]MH_SAM_APDU [17:09:02]CAPDU: 80 09 00 00 [17:09:02]Write to MH i2c: E2 08 00 CB 02 80 09 00 00 00 00 00 00 3F [17:09:02]Write i2c OK [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 [17:09:02]MH_I2C_Read... [17:09:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:09:02]Read from MH i2c: E2 03 00 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 03 00 CB 02 00 90 00 41 [17:09:02]RAPDU: 90 00 [17:09:02]wFMCommunicate OK [17:09:02]SAM_PROTO_ClearQueue done [17:09:02]KKMCreateOFDPacket [17:09:02]OFDProtocolAddRootSTLVToBuf [17:09:02]FM_MakeSignedData [17:09:02]FM_MakeSignedData [17:09:02]SAM_PROTO_SignData [17:09:02]wFMCommunicate request_size=4 [17:09:02]MH_SAM_APDU [17:09:02]CAPDU: 80 0D 01 02 [17:09:02]Write to MH i2c: E2 08 00 CC 02 80 0D 01 02 00 00 00 00 47 [17:09:02]Write i2c OK [17:09:02]MH_I2C_Read... [17:09:02]OFD Sender: No OFD packet to send [17:09:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:09:02]Read from MH i2c: E2 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 03 00 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 03 00 CC 02 00 90 00 42 [17:09:02]RAPDU: 90 00 [17:09:02]wFMCommunicate OK [17:09:02]wFMCommunicate request_size=255 [17:09:02]MH_SAM_APDU [17:09:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 0D 03 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 30 F1 15 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F1 15 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 31 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 54 02 00 00 00 07 04 06 00 30 F1 15 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 2E 48 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 5A 2C 01 00 35 04 06 00 67 B8 9A A8 [17:09:02]Write to MH i2c: E2 02 01 CD 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 0D 03 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 30 F1 15 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F1 15 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 31 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 54 02 00 00 00 07 04 06 00 30 F1 15 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 2E 48 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 5A 2C 01 00 35 04 06 00 67 B8 9A A8 00 00 79 [17:09:02]Write i2c OK [17:09:02]MH_I2C_Read... [17:09:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:03]Read from MH i2c: E2 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: E2 03 00 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: E2 03 00 CD 02 00 90 00 43 [17:09:03]RAPDU: 90 00 [17:09:03]wFMCommunicate OK [17:09:03]wFMCommunicate request_size=7 [17:09:03]MH_SAM_APDU [17:09:03]CAPDU: 80 0D 02 02 02 21 54 [17:09:03]Write to MH i2c: E2 0A 00 CE 02 80 0D 02 02 02 00 21 54 00 00 C3 [17:09:03]Write i2c OK [17:09:03]MH_I2C_Read... [17:09:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:03]Read from MH i2c: E2 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: E2 03 00 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: E2 03 00 CE 02 00 90 00 44 [17:09:03]RAPDU: 90 00 [17:09:03]wFMCommunicate OK [17:09:03]wFMCommunicate request_size=4 [17:09:03]MH_SAM_APDU [17:09:03]CAPDU: 80 0D 03 02 [17:09:03]Write to MH i2c: E2 08 00 CF 02 80 0D 03 02 00 00 00 00 4C [17:09:03]Write i2c OK [17:09:03]MH_I2C_Read... [17:09:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:09:03]Read from MH i2c: E2 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: E2 0B 00 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: E2 0B 00 CF 02 00 8A F7 6F 62 E7 F8 B7 57 90 00 8C [17:09:03]RAPDU: 8A F7 6F 62 E7 F8 B7 57 90 00 [17:09:03]wFMCommunicate OK [17:09:03]SAM_PROTO_SignData done [17:09:03]FM_MakeSignedData done [17:09:03]CreateOFDProtocolMessage [17:09:03]wFMCommunicate request_size=4 [17:09:03]MH_SAM_APDU [17:09:03]CAPDU: 80 11 00 00 [17:09:03]Write to MH i2c: E2 08 00 D0 02 80 11 00 00 00 00 00 00 4C [17:09:03]Write i2c OK [17:09:03]MH_I2C_Read... [17:09:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:03]Read from MH i2c: E2 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: E2 17 00 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: E2 17 00 D0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 9F [17:09:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:09:03]wFMCommunicate OK [17:09:03]CreateOFDProtocolMessage done [17:09:03]OFDSenderStorePacket 76890 [17:09:03]StoreOFDPacket docnum=76890 [17:09:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 67 92 04 01 BC 3A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 0D 03 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 30 F1 15 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F1 15 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 31 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 54 02 00 00 00 07 04 06 00 30 F1 15 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 2E 48 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 5A 2C 01 00 35 04 06 00 67 B8 9A A8 21 54 8A F7 6F 62 E7 F8 B7 57 [17:09:03]CheckFolder [17:09:03]dirname=/storage/ofd_packets [17:09:03]CheckFolder done [17:09:03]ProducePacketName [17:09:03]name=ofd_packets/00076890 [17:09:03]NVStorageSaveData ofd_packets/00076890 [17:09:03]File name is /storage/ofd_packets/00076890 [17:09:03]Write 298 bytes [17:09:03]NVStorageSaveData done [17:09:03]OFDSenderStorePacket done [17:09:03]KKMCreateOFDPacket done [17:09:03]NVStorageSaveData kkm_last_timestamp [17:09:03]File name is /storage/kkm_last_timestamp [17:09:03]Write 4 bytes [17:09:03]NVStorageSaveData done [17:09:03]ExternCall_PrintAddStr [17:09:03]wPrintStart [17:09:03]Write to MH i2c: 01 00 00 D1 02 D3 [17:09:03]Write i2c OK [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: 01 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: 01 07 00 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: 01 07 00 D1 02 00 00 00 00 00 FF 0F E8 [17:09:03]RasterBufferAndPrint [17:09:03]line Счет N : (1)191432 [17:09:03]line ИНН: 02508201610067 [17:09:03]line Контрольно-Кассовый Чек [17:09:03]line ПРОДАЖА [17:09:03]line ТРК (МРК, ГНК) : 61 [17:09:03]line Товар: 2710194210 [17:09:03]line ДТ-К-5 [17:09:03]line 200.000 * 71.90 [17:09:03]line = 14380.00 [17:09:03]line НДС 12% НСП 1% [17:09:03]line > о реализуемом товаре [17:09:03]line ИТОГО: 14380.00 [17:09:03]line НСП 1% : 127.26 [17:09:03]line НДС 12% : 1527.08 [17:09:03]line Наличными: 14380.00 [17:09:03]line Безнал.: 0.00 [17:09:03]line Место: АЗС № 106 "Партнер Нефть" [17:09:03]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [17:09:03]line СНО: Общий режим [17:09:03]line Чек 146 21.04.2024 17:09 [17:09:03]line Смена: 372 ФФД: 1.0 [17:09:03]line ЗНМ: 0300000141 [17:09:03]line РНМ: 0000000000091573 [17:09:03]line Версия ККМ: 001 [17:09:03]line [17:09:03]line Дисконтная программа [17:09:03]line ДТ [17:09:03]line номер 106 [17:09:03]line сэкономлено 200.00 сом [17:09:03]line ФМ: 0000000000874652 [17:09:03]line ФД: 76890 [17:09:03]line ФПД: 114042566353236 [17:09:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T170902&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76890&fm=114042566353236&tin=02508201610067®Number=0000000000091573&sum=1438000 [17:09:03]OFD Sender: Processing packet 76890 [packets to send 129, broken 128] [17:09:03]ProducePacketName [17:09:03]name=ofd_packets/00076890 [17:09:03]OFD Sender: To server: pG, [17:09:03]CommunicateWithHost lk.salyk.kg:30040 [17:09:03]ConnectInit lk.salyk.kg [17:09:03]written 0, free lines is 4095 [17:09:04]Write to MH i2c: 01 00 00 FD 02 FF [17:09:04]Write i2c OK [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: 01 [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: 01 07 00 [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: 01 07 00 FD 02 00 00 00 00 00 C7 0C D9 [17:09:04]RasterBufferAndPrint [17:09:04]line [17:09:04]line [17:09:04]line [17:09:04]line [17:09:04]line [17:09:04]written 0, free lines is 3275 [17:09:04]MH_Cut [17:09:04]Write to MH i2c: D1 01 00 04 03 01 D9 [17:09:04]Write i2c OK [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: D1 [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: D1 01 00 [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: D1 01 00 04 03 00 D8 [17:09:04]Write to MH i2c: 01 00 00 05 03 08 [17:09:04]Write i2c OK [17:09:04]MH_I2C_Read... [17:09:04]*** Cut start [17:09:04]*** Partial cut [17:09:04]*** CUTSNS_PIN = 1 [17:09:04]*** CUTSNS_PIN = 0 [17:09:05]*** Brake cut motor [17:09:05]Read from MH i2c: 01 [17:09:05]MH_I2C_Read... [17:09:05]*** Stop cut motor [17:09:05]*** Cut end [17:09:05]Read from MH i2c: 01 07 00 [17:09:05]MH_I2C_Read... [17:09:05]Read from MH i2c: 01 07 00 05 03 00 00 00 00 00 FF 0F 1D [17:09:05]process_action close_receipt done [17:09:05]requested_data is exist [17:09:05]produce_requested_data [17:09:05]requested_item fm.sn is exist - process it [17:09:05]wFMCommunicate request_size=4 [17:09:05]MH_SAM_APDU [17:09:05]CAPDU: 80 11 00 00 [17:09:05]Write to MH i2c: E2 08 00 06 03 80 11 00 00 00 00 00 00 83 [17:09:05]Write i2c OK [17:09:05]MH_I2C_Read... [17:09:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:05]Read from MH i2c: E2 [17:09:05]MH_I2C_Read... [17:09:05]Read from MH i2c: E2 17 00 [17:09:05]MH_I2C_Read... [17:09:05]Read from MH i2c: E2 17 00 06 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 D6 [17:09:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:09:05]wFMCommunicate OK [17:09:05]requested_item fd.num is exist - process it [17:09:05]SAM_PROTO_GetFieldsCounters [17:09:05]wFMCommunicate request_size=4 [17:09:05]MH_SAM_APDU [17:09:05]CAPDU: 80 13 00 00 [17:09:05]Write to MH i2c: E2 08 00 07 03 80 13 00 00 00 00 00 00 86 [17:09:05]Write i2c OK [17:09:05]MH_I2C_Read... [17:09:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:09:05]Read from MH i2c: E2 [17:09:05]MH_I2C_Read... [17:09:05]Read from MH i2c: E2 62 00 [17:09:05]MH_I2C_Read... [17:09:05]Read from MH i2c: E2 62 00 07 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 5A 2C 01 00 0E 04 04 00 74 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 59 [17:09:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 5A 2C 01 00 0E 04 04 00 74 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 [17:09:05]wFMCommunicate OK [17:09:05]SAM_PROTO_GetFieldsCounters done [17:09:05]requested_item shift.num is exist - process it [17:09:05]requested_item shift.opened is exist - process it [17:09:05]req_shift_opened [17:09:05]FM_GetShiftState [17:09:05]SAM_PROTO_GetShiftState [17:09:05]wFMCommunicate request_size=4 [17:09:05]MH_SAM_APDU [17:09:05]CAPDU: 80 13 01 00 [17:09:05]Write to MH i2c: E2 08 00 08 03 80 13 01 00 00 00 00 00 88 [17:09:05]Write i2c OK [17:09:05]MH_I2C_Read... [17:09:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:05]Read from MH i2c: E2 [17:09:05]MH_I2C_Read... [17:09:05]Read from MH i2c: E2 0E 00 [17:09:05]MH_I2C_Read... [17:09:05]Read from MH i2c: E2 0E 00 08 03 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 CF [17:09:05]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [17:09:05]wFMCommunicate OK [17:09:05]SAM_PROTO_GetShiftState done [17:09:05]FM_GetShiftState done [17:09:05]req_shift_opened done [17:09:05]requested_item shift.open_date is exist - process it [17:09:05]req_shift_open_date [17:09:05]req_shift_open_date done [17:09:05]produce_requested_data done [17:09:05]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76890,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [17:09:05]process_action_free close_receipt [17:09:05]json_value_free [17:09:05]json_value_free done [17:09:05]process_json_proto returns [17:09:05]Send response to host [17:09:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76890,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [17:09:05]free response buf [17:09:05]execute_script done [17:09:05]execute_script returns [17:09:05]free content buf [17:09:05]Sock 9.Close socket [17:09:05]Sock 9.Thread stoped [17:09:06]Connected sock=10 [17:09:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 67 92 04 01 BC 3A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 0D 03 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 30 F1 15 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F1 15 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 31 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 54 02 00 00 00 07 04 06 00 30 F1 15 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 2E 48 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 5A 2C 01 00 35 04 06 00 67 B8 9A A8 21 54 8A F7 6F 62 E7 F8 B7 57 [17:09:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 C1 7C 47 00 11 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 5A 2C 01 00 F4 03 04 00 B7 EF 24 66 B6 04 01 00 00 CC 8C 6B E7 ED E9 77 52 [17:09:08]CommunicateWithHost err = 0 [17:09:08]CheckOFDResponse [17:09:08]1017 (14) - 77093643461234 [17:09:08]1041 (16) - 0000000000874652 [17:09:08]1040 (4) - 76890 [17:09:08]1012 (4) - 21.04.2024 10:51 [17:09:08]1206 (1) - 0 [17:09:08]OFD Sender: Remove packet 76890 [17:09:08]ProducePacketName [17:09:08]name=ofd_packets/00076890 [17:09:08]NVStorageDeleteData [17:09:08]OFD Sender: No OFD packet to send [17:09:13]OFD Sender: No OFD packet to send [17:09:18]OFD Sender: No OFD packet to send [17:09:23]OFD Sender: No OFD packet to send [17:09:28]OFD Sender: No OFD packet to send [17:09:33]OFD Sender: No OFD packet to send [17:09:38]OFD Sender: No OFD packet to send [17:09:43]OFD Sender: No OFD packet to send [17:09:48]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CA FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 6F [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725CA (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: 29318780+1684400628=1713719408 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x220ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33540623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CA FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 70 [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 71 48 25 66 F4 E9 65 64 E9 [17:10:09]Current date/time: 21.04.2024 17:10 [17:10:09]FM_Init [17:10:09]wFMConnect [17:10:09]MH_SAM_On [17:10:09]Write to MH i2c: E0 00 00 08 00 E7 [17:10:09]Write i2c OK [17:10:09]MH_I2C_Read... [17:10:09]*** iso7816_init finished! [17:10:09]*** atr: [17:10:09]*** 0F 3B D5 18 FF 81 91 FE [17:10:09]*** 1F C3 80 73 C8 21 10 0A [17:10:09]*** 00 00 00 00 00 00 00 00 [17:10:09]*** 00 00 00 00 00 00 00 00 [17:10:09]*** 00 00 00 00 00 00 00 00 [17:10:09]*** 00 00 00 00 00 00 00 00 [17:10:09]*** 00 00 00 00 00 00 00 00 [17:10:09]*** 00 00 00 00 00 00 00 00 [17:10:09]Read from MH i2c: E0 [17:10:09]MH_I2C_Read... [17:10:09]Read from MH i2c: E0 10 00 [17:10:09]MH_I2C_Read... [17:10:09]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 [17:10:09]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [17:10:09]wFMCommunicate request_size=10 [17:10:09]MH_SAM_APDU [17:10:09]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [17:10:09]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CA FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 6F [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725CA (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: 29318835+1684400628=1713719463 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x220ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33540623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CA FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 70 [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 A8 48 25 66 F4 E9 65 64 20 [17:11:04]Current date/time: 21.04.2024 17:11 [17:11:04]FM_Init [17:11:04]wFMConnect [17:11:04]MH_SAM_On [17:11:04]Write to MH i2c: E0 00 00 08 00 E7 [17:11:04]Write i2c OK [17:11:04]MH_I2C_Read... [17:11:04]*** iso7816_init finished! [17:11:04]*** atr: [17:11:04]*** 0F 3B D5 18 FF 81 91 FE [17:11:04]*** 1F C3 80 73 C8 21 10 0A [17:11:04]*** 00 00 00 00 00 00 00 00 [17:11:04]*** 00 00 00 00 00 00 00 00 [17:11:04]*** 00 00 00 00 00 00 00 00 [17:11:04]*** 00 00 00 00 00 00 00 00 [17:11:04]*** 00 00 00 00 00 00 00 00 [17:11:04]*** 00 00 00 00 00 00 00 00 [17:11:04]Read from MH i2c: E0 [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: E0 10 00 [17:11:04]MH_I2C_Read... [17:11:04]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 [17:11:04]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [17:11:04]wFMCommunicate request_size=10 [17:11:04]MH_SAM_APDU [17:11:04]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [17:11:04]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [17:11:04]Write i2c OK [17:11:04]MH_I2C_Read... [17:11:04]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [17:11:04]Read from MH i2c: E2 [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: E2 03 00 [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [17:11:04]RAPDU: 90 00 [17:11:04]wFMCommunicate OK [17:11:04]wFMCommunicate request_size=4 [17:11:04]MH_SAM_APDU [17:11:04]CAPDU: 80 11 00 00 [17:11:04]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [17:11:04]Write i2c OK [17:11:04]MH_I2C_Read... [17:11:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:04]Read from MH i2c: E2 [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: E2 17 00 [17:11:04]MH_I2C_Read... [17:11:04]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 34 36 35 32 90 00 D7 [17:11:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:11:04]wFMCommunicate OK [17:11:04]Detected FM SN is 0000000000874652 [17:11:04]Stored FM SN is 0000000000874652 [17:11:04]wFMCommunicate request_size=9 [17:11:04]MH_SAM_APDU [17:11:04]CAPDU: 80 16 00 00 04 68 2F 01 00 [17:11:04]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 68 2F 01 00 00 00 2A [17:11:04]Write i2c OK [17:11:04]MH_I2C_Read... [17:11:04]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [17:11:04]Read from MH i2c: E2 [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: E2 03 00 [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [17:11:04]RAPDU: 90 00 [17:11:04]wFMCommunicate OK [17:11:04]FM PIN OK [17:11:04]wFMCommunicate request_size=8 [17:11:04]MH_SAM_APDU [17:11:04]CAPDU: 80 14 04 00 03 02 00 01 [17:11:04]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [17:11:04]Write i2c OK [17:11:04]MH_I2C_Read... [17:11:04]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [17:11:04]Read from MH i2c: E2 [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: E2 03 00 [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [17:11:04]RAPDU: 90 00 [17:11:04]wFMCommunicate OK [17:11:04]wFMCommunicate request_size=13 [17:11:04]MH_SAM_APDU [17:11:04]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [17:11:04]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 [17:11:04]Write i2c OK [17:11:04]MH_I2C_Read... [17:11:04]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [17:11:04]Read from MH i2c: E2 [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: E2 03 00 [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [17:11:04]RAPDU: 90 00 [17:11:04]wFMCommunicate OK [17:11:04]wFMCommunicate request_size=4 [17:11:04]MH_SAM_APDU [17:11:04]CAPDU: 80 11 00 00 [17:11:04]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [17:11:04]Write i2c OK [17:11:04]MH_I2C_Read... [17:11:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:04]Read from MH i2c: E2 [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: E2 17 00 [17:11:04]MH_I2C_Read... [17:11:04]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 34 36 35 32 90 00 DB [17:11:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:11:04]wFMCommunicate OK [17:11:04]DocumentArchiveInit [17:11:04]Start Httpd... [17:11:04]Httpd thread 3067231588 created [17:11:04]Write to MH i2c: 01 00 00 0F 00 0F [17:11:04]Write i2c OK [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: 01 [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: 01 07 00 [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [17:11:04]MH Int Process started [17:11:04]Allocated Socket 7 [17:11:04]Bind OK [17:11:04]Listen OK [17:11:04]httpd running on port 8080 [17:11:04]Waiting for new connection... [17:11:04]OFD Sender: Processing packet 76891 [packets to send 129, broken 128] [17:11:04]ProducePacketName [17:11:04]name=ofd_packets/00076891 [17:11:04]OFD Sender: To server: pG, [17:11:04]CommunicateWithHost lk.salyk.kg:30040 [17:11:04]ConnectInit lk.salyk.kg [17:11:06]Connected sock=9 [17:11:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 6F 63 04 01 35 9E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 73 48 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 5B 2C 01 00 35 04 06 00 CE B7 DB CE D5 EE 25 29 51 07 29 E8 67 A2 [17:11:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 AC F3 47 00 F4 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 5B 2C 01 00 F4 03 04 00 2E F0 24 66 B6 04 01 00 00 63 E1 AD 43 F9 9B F9 A6 [17:11:07]CommunicateWithHost err = 0 [17:11:07]CheckOFDResponse [17:11:07]1017 (14) - 77093643461234 [17:11:07]1041 (16) - 0000000000874652 [17:11:07]1040 (4) - 76891 [17:11:07]1012 (4) - 21.04.2024 10:53 [17:11:07]1206 (1) - 0 [17:11:07]OFD Sender: Remove packet 76891 [17:11:07]ProducePacketName [17:11:07]name=ofd_packets/00076891 [17:11:07]NVStorageDeleteData [17:11:08]OFD Sender: No OFD packet to send [17:11:13]OFD Sender: No OFD packet to send [17:11:18]OFD Sender: No OFD packet to send [17:11:23]OFD Sender: No OFD packet to send [17:11:28]OFD Sender: No OFD packet to send [17:11:33]OFD Sender: No OFD packet to send [17:11:37]accept exits with 8 [17:11:37]New connection [17:11:37]New thread 3066944868 created [17:11:37]Waiting for new connection... [17:11:37] Sock 8.Parse request [17:11:37]Sock 8.Check first char [17:11:37]Sock 8.First char is OK [17:11:37]request: POST /json_proto HTTP/1.0 [17:11:37]Method: POST [17:11:37]URL: /json_proto [17:11:37]Method is POST - this is cgi request [17:11:37]url: /json_proto [17:11:37]query_string will be loaded in cgi processing [17:11:37]execute_cgi json_proto POST (null) [17:11:37]execute_cgi path=json_proto method=POST [17:11:37]POST find Content-Length [17:11:37]Host: 172.17.62.5:8080 [17:11:37]Content-Length: 215 [17:11:37]Content-Type: application/json [17:11:37] [17:11:37]POST finish read [17:11:37]Found Content-Length = 215 [17:11:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:37]execute_script... [17:11:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:37]POST & json_proto [17:11:37]process_json_proto [17:11:37]json parsed OK: [17:11:37]protocol is kg_v1.0 [17:11:37]action value=get_value [17:11:37]process_action get_value [17:11:37]cmd_get_value [17:11:37]process_action get_value done [17:11:37]requested_data is exist [17:11:37]produce_requested_data [17:11:37]requested_item kkm.sn is exist - process it [17:11:37]requested_item kkm.ver is exist - process it [17:11:37]requested_item fm.sn is exist - process it [17:11:37]wFMCommunicate request_size=4 [17:11:37]MH_SAM_APDU [17:11:37]CAPDU: 80 11 00 00 [17:11:37]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [17:11:37]Write i2c OK [17:11:37]MH_I2C_Read... [17:11:37]Read from MH i2c: E2 [17:11:37]MH_I2C_Read... [17:11:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:37]Read from MH i2c: E2 17 00 [17:11:37]MH_I2C_Read... [17:11:37]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 34 36 35 32 90 00 DD [17:11:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:11:37]wFMCommunicate OK [17:11:37]requested_item fd.num is exist - process it [17:11:37]SAM_PROTO_GetFieldsCounters [17:11:37]wFMCommunicate request_size=4 [17:11:37]MH_SAM_APDU [17:11:37]CAPDU: 80 13 00 00 [17:11:37]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [17:11:37]Write i2c OK [17:11:37]MH_I2C_Read... [17:11:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:11:37]Read from MH i2c: E2 [17:11:37]MH_I2C_Read... [17:11:37]Read from MH i2c: E2 62 00 [17:11:37]MH_I2C_Read... [17:11: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 5B 2C 01 00 0E 04 04 00 74 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 64 [17:11: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 5B 2C 01 00 0E 04 04 00 74 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 [17:11:37]wFMCommunicate OK [17:11:37]SAM_PROTO_GetFieldsCounters done [17:11:37]requested_item shift.num is exist - process it [17:11:37]requested_item shift.opened is exist - process it [17:11:37]req_shift_opened [17:11:37]FM_GetShiftState [17:11:37]SAM_PROTO_GetShiftState [17:11:37]wFMCommunicate request_size=4 [17:11:37]MH_SAM_APDU [17:11:37]CAPDU: 80 13 01 00 [17:11:37]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [17:11:37]Write i2c OK [17:11:37]MH_I2C_Read... [17:11:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:37]Read from MH i2c: E2 [17:11:37]MH_I2C_Read... [17:11:37]Read from MH i2c: E2 0E 00 [17:11:37]MH_I2C_Read... [17:11:37]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 D6 [17:11:37]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [17:11:37]wFMCommunicate OK [17:11:37]SAM_PROTO_GetShiftState done [17:11:37]FM_GetShiftState done [17:11:37]req_shift_opened done [17:11:37]requested_item shift.open_date is exist - process it [17:11:37]req_shift_open_date [17:11:37]req_shift_open_date done [17:11:37]produce_requested_data done [17:11:37]produce_requested_data return {"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76891,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [17:11:37]process_action_free get_value [17:11:37]json_value_free [17:11:37]json_value_free done [17:11:37]process_json_proto returns [17:11:37]Send response to host [17:11:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76891,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [17:11:37]free response buf [17:11:37]execute_script done [17:11:37]execute_script returns [17:11:37]free content buf [17:11:37]Sock 8.Close socket [17:11:37]Sock 8.Thread stoped [17:11:37]accept exits with 9 [17:11:37]New connection [17:11:37]New thread 3066801508 created [17:11:37]Thread 3066944868 joined [17:11:37]Waiting for new connection... [17:11:37] Sock 9.Parse request [17:11:37]Sock 9.Check first char [17:11:37]Sock 9.First char is OK [17:11:37]request: POST /json_proto HTTP/1.0 [17:11:37]Method: POST [17:11:37]URL: /json_proto [17:11:37]Method is POST - this is cgi request [17:11:37]url: /json_proto [17:11:37]query_string will be loaded in cgi processing [17:11:37]execute_cgi json_proto POST (null) [17:11:37]execute_cgi path=json_proto method=POST [17:11:37]POST find Content-Length [17:11:37]Host: 172.17.62.5:8080 [17:11:37]Content-Length: 331 [17:11:37]Content-Type: application/json [17:11:37] [17:11:37]POST finish read [17:11:37]Found Content-Length = 331 [17:11:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:11:37]execute_script... [17:11:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:11:37]POST & json_proto [17:11:37]process_json_proto [17:11:37]json parsed OK: [17:11:37]protocol is kg_v1.0 [17:11:37]action value=get_value [17:11:37]process_action get_value [17:11:37]cmd_get_value [17:11:37]process_action get_value done [17:11:37]requested_data is exist [17:11:37]produce_requested_data [17:11:37]requested_item fm.sale.total is exist - process it [17:11:37]SAM_PROTO_GetFMData [17:11:37]wFMCommunicate request_size=4 [17:11:37]MH_SAM_APDU [17:11:37]CAPDU: 80 13 03 00 [17:11:37]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [17:11:37]Write i2c OK [17:11:37]MH_I2C_Read... [17:11:38]OFD Sender: No OFD packet to send [17:11:38]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:11:38]Read from MH i2c: E2 [17:11:38]MH_I2C_Read... [17:11:38]Read from MH i2c: E2 FD 00 [17:11:38]MH_I2C_Read... [17:11:38]Read from MH i2c: E2 FD 00 13 00 00 C8 04 85 04 C4 04 6E 04 04 00 73 29 01 00 69 04 A3 00 6F 04 04 00 81 27 01 00 B1 04 05 00 78 B1 E4 BA 02 70 04 05 00 EC 40 E1 76 02 72 04 04 00 8C 70 03 44 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 CF AD 3A 4A 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 A1 7D 2F 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F2 01 00 00 B1 04 05 00 04 EB DB 15 01 70 04 05 00 04 EB DB 15 01 72 04 00 00 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 31 DA 81 1D EF 90 00 3C [17:11:38]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 73 29 01 00 69 04 A3 00 6F 04 04 00 81 27 01 00 B1 04 05 00 78 B1 E4 BA 02 70 04 05 00 EC 40 E1 76 02 72 04 04 00 8C 70 03 44 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 CF AD 3A 4A 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 A1 7D 2F 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F2 01 00 00 B1 04 05 00 04 EB DB 15 01 70 04 05 00 04 EB DB 15 01 72 04 00 00 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 31 DA 81 1D EF 90 00 [17:11:38]wFMCommunicate OK [17:11:38]wFMCommunicate request_size=4 [17:11:38]MH_SAM_APDU [17:11:38]CAPDU: 80 17 00 00 [17:11:38]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [17:11:38]Write i2c OK [17:11:38]MH_I2C_Read... [17:11:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:11:38]Read from MH i2c: E2 [17:11:38]MH_I2C_Read... [17:11:38]Read from MH i2c: E2 FD 00 [17:11:38]MH_I2C_Read... [17:11:38]Read from MH i2c: E2 FD 00 14 00 00 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 BD 7C 75 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 90 00 53 [17:11:38]RAPDU: 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 BD 7C 75 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 90 00 [17:11:38]wFMCommunicate OK [17:11:38]wFMCommunicate request_size=4 [17:11:38]MH_SAM_APDU [17:11:38]CAPDU: 80 17 00 00 [17:11:38]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [17:11:38]Write i2c OK [17:11:38]MH_I2C_Read... [17:11:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:11:38]Read from MH i2c: E2 [17:11:38]MH_I2C_Read... [17:11:38]Read from MH i2c: E2 FD 00 [17:11:38]MH_I2C_Read... [17:11:38]Read from MH i2c: E2 FD 00 15 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 6D [17:11:38]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [17:11:38]wFMCommunicate OK [17:11:38]wFMCommunicate request_size=4 [17:11:38]MH_SAM_APDU [17:11:38]CAPDU: 80 17 00 00 [17:11:38]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [17:11:38]Write i2c OK [17:11:38]MH_I2C_Read... [17:11:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:11:38]Read from MH i2c: E2 [17:11:38]MH_I2C_Read... [17:11:38]Read from MH i2c: E2 FD 00 [17:11:38]MH_I2C_Read... [17:11:38]Read from MH i2c: E2 FD 00 16 00 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 0E [17:11:38]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [17:11:38]wFMCommunicate OK [17:11:38]wFMCommunicate request_size=4 [17:11:38]MH_SAM_APDU [17:11:38]CAPDU: 80 17 00 00 [17:11:38]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [17:11:38]Write i2c OK [17:11:38]MH_I2C_Read... [17:11:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [17:11:39]Read from MH i2c: E2 [17:11:39]MH_I2C_Read... [17:11:39]Read from MH i2c: E2 E5 00 [17:11:39]MH_I2C_Read... [17:11:39]Read from MH i2c: E2 E5 00 17 00 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7B [17:11:39]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:11:39]wFMCommunicate OK [17:11:39]SAM_PROTO_GetFMData done [17:11:39]requested_item fm.sale_refund.total is exist - process it [17:11:39]requested_item fm.buy.total is exist - process it [17:11:39]requested_item shift.sale.total is exist - process it [17:11:39]SAM_PROTO_GetShiftData [17:11:39]wFMCommunicate request_size=4 [17:11:39]MH_SAM_APDU [17:11:39]CAPDU: 80 13 02 00 [17:11:39]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [17:11:39]Write i2c OK [17:11:39]MH_I2C_Read... [17:11:39]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:11:39]Read from MH i2c: E2 [17:11:39]MH_I2C_Read... [17:11:39]Read from MH i2c: E2 FD 00 [17:11:39]MH_I2C_Read... [17:11:39]Read from MH i2c: E2 FD 00 18 00 00 BA 04 AA 04 B6 04 6E 04 04 00 93 00 00 00 69 04 9D 00 6F 04 04 00 91 00 00 00 B1 04 04 00 29 93 28 01 70 04 03 00 60 D2 E5 72 04 03 00 C9 C0 42 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 01 80 1F 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 FE 9F 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 10 08 01 70 04 03 00 10 08 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 12 1C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 2C [17:11:39]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 93 00 00 00 69 04 9D 00 6F 04 04 00 91 00 00 00 B1 04 04 00 29 93 28 01 70 04 03 00 60 D2 E5 72 04 03 00 C9 C0 42 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 01 80 1F 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 FE 9F 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 10 08 01 70 04 03 00 10 08 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 12 1C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [17:11:39]wFMCommunicate OK [17:11:39]wFMCommunicate request_size=4 [17:11:39]MH_SAM_APDU [17:11:39]CAPDU: 80 17 00 00 [17:11:39]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [17:11:39]Write i2c OK [17:11:39]MH_I2C_Read... [17:11:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:11:39]Read from MH i2c: E2 [17:11:39]MH_I2C_Read... [17:11:39]Read from MH i2c: E2 FD 00 [17:11:39]MH_I2C_Read... [17:11:39]Read from MH i2c: E2 FD 00 19 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 57 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 9C [17:11:39]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 57 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [17:11:39]wFMCommunicate OK [17:11:39]wFMCommunicate request_size=4 [17:11:39]MH_SAM_APDU [17:11:39]CAPDU: 80 17 00 00 [17:11:39]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [17:11:39]Write i2c OK [17:11:39]MH_I2C_Read... [17:11:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:11:40]Read from MH i2c: E2 [17:11:40]MH_I2C_Read... [17:11:40]Read from MH i2c: E2 FD 00 [17:11:40]MH_I2C_Read... [17:11:40]Read from MH i2c: E2 FD 00 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 00 90 00 C6 [17:11:40]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:11:40]wFMCommunicate OK [17:11:40]wFMCommunicate request_size=4 [17:11:40]MH_SAM_APDU [17:11:40]CAPDU: 80 17 00 00 [17:11:40]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [17:11:40]Write i2c OK [17:11:40]MH_I2C_Read... [17:11:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:11:40]Read from MH i2c: E2 [17:11:40]MH_I2C_Read... [17:11:40]Read from MH i2c: E2 FD 00 [17:11:40]MH_I2C_Read... [17:11:40]Read from MH i2c: E2 FD 00 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 03 90 00 13 [17:11:40]RAPDU: 00 EF 03 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 90 00 [17:11:40]wFMCommunicate OK [17:11:40]wFMCommunicate request_size=4 [17:11:40]MH_SAM_APDU [17:11:40]CAPDU: 80 17 00 00 [17:11:40]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [17:11:40]Write i2c OK [17:11:40]MH_I2C_Read... [17:11:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [17:11:40]Read from MH i2c: E2 [17:11:40]MH_I2C_Read... [17:11:40]Read from MH i2c: E2 D7 00 [17:11:40]MH_I2C_Read... [17:11:40]Read from MH i2c: E2 D7 00 1C 00 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [17:11:40]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:11:40]wFMCommunicate OK [17:11:40]SAM_PROTO_GetShiftData done [17:11:40]requested_item shift.sale.total_cash is exist - process it [17:11:40]requested_item shift.sale_refund.total is exist - process it [17:11:40]requested_item shift.sale_refund.total_cash is exist - process it [17:11:40]requested_item shift.buy.total is exist - process it [17:11:40]requested_item shift.buy.total_cash is exist - process it [17:11:40]produce_requested_data done [17:11:40]produce_requested_data return {"fm.sale.total":117254844.08,"fm.sale_refund.total":46617013.80,"fm.buy.total":0.00,"shift.sale.total":194363.29,"shift.sale.total_cash":150616.00,"shift.sale_refund.total":676.00,"shift.sale_refund.total_cash":676.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [17:11:40]process_action_free get_value [17:11:40]json_value_free [17:11:40]json_value_free done [17:11:40]process_json_proto returns [17:11:40]Send response to host [17:11:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":117254844.08,"fm.sale_refund.total":46617013.80,"fm.buy.total":0.00,"shift.sale.total":194363.29,"shift.sale.total_cash":150616.00,"shift.sale_refund.total":676.00,"shift.sale_refund.total_cash":676.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [17:11:40]free response buf [17:11:40]execute_script done [17:11:40]execute_script returns [17:11:40]free content buf [17:11:40]Sock 9.Close socket [17:11:40]Sock 9.Thread stoped [17:11:40]accept exits with 8 [17:11:40]New connection [17:11:40]New thread 3066944868 created [17:11:40]Thread 3066801508 joined [17:11:40]Waiting for new connection... [17:11:40] Sock 8.Parse request [17:11:40]Sock 8.Check first char [17:11:40]Sock 8.First char is OK [17:11:40]request: POST /json_proto HTTP/1.0 [17:11:40]Method: POST [17:11:40]URL: /json_proto [17:11:40]Method is POST - this is cgi request [17:11:40]url: /json_proto [17:11:40]query_string will be loaded in cgi processing [17:11:40]execute_cgi json_proto POST (null) [17:11:40]execute_cgi path=json_proto method=POST [17:11:40]POST find Content-Length [17:11:40]Host: 172.17.62.5:8080 [17:11:40]Content-Length: 144 [17:11:40]Content-Type: application/json [17:11:40] [17:11:40]POST finish read [17:11:40]Found Content-Length = 144 [17:11:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [17:11:40]execute_script... [17:11:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [17:11:40]POST & json_proto [17:11:40]process_json_proto [17:11:40]json parsed OK: [17:11:40]protocol is kg_v1.0 [17:11:40]action value=print_doc [17:11:40]process_action print_doc [17:11:40]ExternCall_PrintAddStr [17:11:40]wPrintStart [17:11:40]Write to MH i2c: 01 00 00 1D 00 1D [17:11:40]Write i2c OK [17:11:40]MH_I2C_Read... [17:11:40]Read from MH i2c: 01 [17:11:40]MH_I2C_Read... [17:11:40]Read from MH i2c: 01 07 00 [17:11:40]MH_I2C_Read... [17:11:40]Read from MH i2c: 01 07 00 1D 00 00 00 00 00 00 FF 0F 32 [17:11:40]RasterBufferAndPrint [17:11:40]line Счет N : (1)191435 [17:11:40]line ИНН: 02508201610067 [17:11:40]line Контрольно-Кассовый Чек [17:11:40]line ПРОДАЖА [17:11:40]line ТРК (МРК, ГНК) : 23 [17:11:40]line Товар: 2710194210 [17:11:40]line ДТ-К-5 [17:11:40]line 6.860 * 72.90 [17:11:40]line = 500.09 [17:11:40]line НДС 12% НСП 1% [17:11:40]line > о реализуемом товаре [17:11:40]line ОКРУГЛЕНИЕ: -0.09 [17:11:40]line ИТОГО: 500.00 [17:11:40]line Внесено: 500.00 [17:11:40]line СДАЧА: 0.00 [17:11:40]line НСП 1% : 4.43 [17:11:40]line НДС 12% : 53.11 [17:11:40]line Наличными: 500.00 [17:11:40]line Безнал.: 0.00 [17:11:40]line Место: АЗС № 106 "Партнер Нефть" [17:11:40]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [17:11:40]line СНО: Общий режим [17:11:40]line Чек 147 21.04.2024 17:10 [17:11:40]line Смена: 372 ФФД: 1.0 [17:11:40]line ЗНМ: 0300000141 [17:11:40]line РНМ: 0000000000091573 [17:11:40]line Версия ККМ: 001 [17:11:40]line ФМ: 0000000000874652 [17:11:40]line ФД: 76891 [17:11:40]line ФПД: 227289062102510 [17:11:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T171011&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76891&fm=227289062102510&tin=02508201610067®Number=0000000000091573&sum=50000 [17:11:41]written 0, free lines is 4095 [17:11:41]Write to MH i2c: 01 00 00 47 00 47 [17:11:41]Write i2c OK [17:11:41]MH_I2C_Read... [17:11:41]Read from MH i2c: 01 [17:11:41]MH_I2C_Read... [17:11:41]Read from MH i2c: 01 07 00 [17:11:41]MH_I2C_Read... [17:11:41]Read from MH i2c: 01 07 00 47 00 00 00 00 00 00 F2 0C 4C [17:11:41]RasterBufferAndPrint [17:11:41]line [17:11:41]line [17:11:41]line [17:11:41]line [17:11:41]line [17:11:41]written 0, free lines is 3326 [17:11:41]MH_Cut [17:11:41]Write to MH i2c: D1 01 00 4E 00 01 20 [17:11:41]Write i2c OK [17:11:41]MH_I2C_Read... [17:11:41]Read from MH i2c: D1 [17:11:41]MH_I2C_Read... [17:11:41]Read from MH i2c: D1 01 00 [17:11:41]MH_I2C_Read... [17:11:41]Read from MH i2c: D1 01 00 4E 00 00 1F [17:11:41]Write to MH i2c: 01 00 00 4F 00 4F [17:11:41]Write i2c OK [17:11:41]MH_I2C_Read... [17:11:42]*** Cut start [17:11:42]*** Partial cut [17:11:42]*** CUTSNS_PIN = 1 [17:11:42]*** CUTSNS_PIN = 0 [17:11:42]*** Brake cut motor [17:11:42]Read from MH i2c: 01 [17:11:42]MH_I2C_Read... [17:11:42]*** Stop cut motor [17:11:42]*** Cut end [17:11:42]Read from MH i2c: 01 07 00 [17:11:42]MH_I2C_Read... [17:11:42]Read from MH i2c: 01 07 00 4F 00 00 00 00 00 00 FF 0F 64 [17:11:42]process_action print_doc done [17:11:42]requested_data is exist [17:11:42]produce_requested_data [17:11:42]produce_requested_data return (null) [17:11:42]process_action_free print_doc [17:11:42]json_value_free [17:11:42]json_value_free done [17:11:42]process_json_proto returns [17:11:42]Send response to host [17:11:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [17:11:42]free response buf [17:11:42]execute_script done [17:11:42]execute_script returns [17:11:42]free content buf [17:11:42]Sock 8.Close socket [17:11:42]Sock 8.Thread stoped [17:11:43]OFD Sender: No OFD packet to send [17:11:48]OFD Sender: No OFD packet to send [17:11:53]OFD Sender: No OFD packet to send [17:11:58]OFD Sender: No OFD packet to send [17:12:03]OFD Sender: No OFD packet to send [17:12:08]OFD Sender: No OFD packet to send [17:12:13]OFD Sender: No OFD packet to send [17:12:14]accept exits with 9 [17:12:14]New connection [17:12:14]New thread 3066801508 created [17:12:14]Thread 3066944868 joined [17:12:14]Waiting for new connection... [17:12:14] Sock 9.Parse request [17:12:14]Sock 9.Check first char [17:12:14]Sock 9.First char is OK [17:12:14]request: POST /json_proto HTTP/1.0 [17:12:14]Method: POST [17:12:14]URL: /json_proto [17:12:14]Method is POST - this is cgi request [17:12:14]url: /json_proto [17:12:14]query_string will be loaded in cgi processing [17:12:14]execute_cgi json_proto POST (null) [17:12:14]execute_cgi path=json_proto method=POST [17:12:14]POST find Content-Length [17:12:14]Host: 172.17.62.5:8080 [17:12:14]Content-Length: 677 [17:12:14]Content-Type: application/json [17:12:14] [17:12:14]POST finish read [17:12:14]Found Content-Length = 677 [17:12:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 6.220, "sum" : 400.57, "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:12:14]execute_script... [17:12: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)191437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 6.220, "sum" : 400.57, "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:12:14]POST & json_proto [17:12:14]process_json_proto [17:12:14]json parsed OK: [17:12:14]protocol is kg_v1.0 [17:12:14]action value=close_receipt [17:12:14]process_action close_receipt [17:12:14]cmd_close_receipt [17:12:14]MH_GetDate [17:12:14]Write to MH i2c: F0 00 00 50 00 3F [17:12:14]Write i2c OK [17:12:14]MH_I2C_Read... [17:12:14]Read from MH i2c: F0 [17:12:14]MH_I2C_Read... [17:12:14]Read from MH i2c: F0 09 00 [17:12:14]MH_I2C_Read... [17:12:14]Read from MH i2c: F0 09 00 50 00 00 EE 48 25 66 F4 E9 65 64 AF [17:12:14]GetLastDocTimeStamp 1713719411 [17:12:14]current date 1713719534 [17:12:14]FM_GetShiftState [17:12:14]SAM_PROTO_GetShiftState [17:12:14]wFMCommunicate request_size=4 [17:12:14]MH_SAM_APDU [17:12:14]CAPDU: 80 13 01 00 [17:12:14]Write to MH i2c: E2 08 00 51 00 80 13 01 00 00 00 00 00 CE [17:12:14]Write i2c OK [17:12:14]MH_I2C_Read... [17:12:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:14]Read from MH i2c: E2 [17:12:14]MH_I2C_Read... [17:12:14]Read from MH i2c: E2 0E 00 [17:12:14]MH_I2C_Read... [17:12:14]Read from MH i2c: E2 0E 00 51 00 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 15 [17:12:14]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [17:12:14]wFMCommunicate OK [17:12:14]SAM_PROTO_GetShiftState done [17:12:14]FM_GetShiftState done [17:12:14]opened in 1713658965 [17:12:14]opened+sec_in_day 1713745365 [17:12:14]quantity*price = 40056 [17:12:14]sum+1 = 40058 [17:12:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 148 21.04.2024 17:12 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76892 ФПД: 152024126818597 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T171215&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76892&fm=152024126818597&tin=02508201610067®Number=0000000000091573&sum=40000 [17:12:15]StoreToDocumentArchive [17:12:15]shift 372 fd 76892 [17:12:15]save to /storage/0372/doc_00076892 [17:12:15]save last doc name /storage/0372/doc_00076892 to /storage/kkm_last_doc_name [17:12:15]save OK [17:12:15]Clear old archive folders... [17:12:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:12:15]tlvbuf is 00CABF30 [17:12:15]SAM_PROTO_ClearQueue [17:12:15]wFMCommunicate request_size=4 [17:12:15]MH_SAM_APDU [17:12:15]CAPDU: 80 09 00 00 [17:12:15]Write to MH i2c: E2 08 00 5E 00 80 09 00 00 00 00 00 00 D0 [17:12:15]Write i2c OK [17:12:15]MH_I2C_Read... [17:12:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:12:15]Read from MH i2c: E2 [17:12:15]MH_I2C_Read... [17:12:15]Read from MH i2c: E2 03 00 [17:12:15]MH_I2C_Read... [17:12:15]Read from MH i2c: E2 03 00 5E 00 00 90 00 D2 [17:12:15]RAPDU: 90 00 [17:12:15]wFMCommunicate OK [17:12:15]SAM_PROTO_ClearQueue done [17:12:15]KKMCreateOFDPacket [17:12:15]OFDProtocolAddRootSTLVToBuf [17:12:15]FM_MakeSignedData [17:12:15]FM_MakeSignedData [17:12:15]SAM_PROTO_SignData [17:12:15]wFMCommunicate request_size=4 [17:12:15]MH_SAM_APDU [17:12:15]CAPDU: 80 0D 01 02 [17:12:15]Write to MH i2c: E2 08 00 5F 00 80 0D 01 02 00 00 00 00 D8 [17:12:15]Write i2c OK [17:12:15]MH_I2C_Read... [17:12:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:12:15]Read from MH i2c: E2 [17:12:15]MH_I2C_Read... [17:12:15]Read from MH i2c: E2 03 00 [17:12:15]MH_I2C_Read... [17:12:15]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [17:12:15]RAPDU: 90 00 [17:12:15]wFMCommunicate OK [17:12:15]wFMCommunicate request_size=255 [17:12:15]MH_SAM_APDU [17:12: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 4C 18 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 79 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 9E 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 94 00 00 00 F4 03 04 00 EF 48 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 5C 2C 01 00 35 04 06 00 8A [17:12:15]Write to MH i2c: E2 02 01 60 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 18 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 79 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 9E 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 94 00 00 00 F4 03 04 00 EF 48 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 5C 2C 01 00 35 04 06 00 8A 00 00 43 [17:12:15]Write i2c OK [17:12:15]MH_I2C_Read... [17:12:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:16]Read from MH i2c: E2 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: E2 03 00 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [17:12:16]RAPDU: 90 00 [17:12:16]wFMCommunicate OK [17:12:16]wFMCommunicate request_size=10 [17:12:16]MH_SAM_APDU [17:12:16]CAPDU: 80 0D 02 02 05 43 E0 13 89 25 [17:12:16]Write to MH i2c: E2 0D 00 61 00 80 0D 02 02 05 00 43 E0 13 89 25 00 00 C9 [17:12:16]Write i2c OK [17:12:16]MH_I2C_Read... [17:12:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:16]Read from MH i2c: E2 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: E2 03 00 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [17:12:16]RAPDU: 90 00 [17:12:16]wFMCommunicate OK [17:12:16]wFMCommunicate request_size=4 [17:12:16]MH_SAM_APDU [17:12:16]CAPDU: 80 0D 03 02 [17:12:16]Write to MH i2c: E2 08 00 62 00 80 0D 03 02 00 00 00 00 DD [17:12:16]Write i2c OK [17:12:16]MH_I2C_Read... [17:12:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:12:16]Read from MH i2c: E2 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: E2 0B 00 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: E2 0B 00 62 00 00 1F 30 EC E2 3A 5D 13 88 90 00 2D [17:12:16]RAPDU: 1F 30 EC E2 3A 5D 13 88 90 00 [17:12:16]wFMCommunicate OK [17:12:16]SAM_PROTO_SignData done [17:12:16]FM_MakeSignedData done [17:12:16]CreateOFDProtocolMessage [17:12:16]wFMCommunicate request_size=4 [17:12:16]MH_SAM_APDU [17:12:16]CAPDU: 80 11 00 00 [17:12:16]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [17:12:16]Write i2c OK [17:12:16]MH_I2C_Read... [17:12:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:16]Read from MH i2c: E2 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: E2 17 00 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: E2 17 00 63 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 30 [17:12:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:12:16]wFMCommunicate OK [17:12:16]CreateOFDProtocolMessage done [17:12:16]OFDSenderStorePacket 76892 [17:12:16]StoreOFDPacket docnum=76892 [17:12:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 FF 77 07 01 6C 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 18 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 79 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 9E 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 94 00 00 00 F4 03 04 00 EF 48 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 5C 2C 01 00 35 04 06 00 8A 43 E0 13 89 25 1F 30 EC E2 3A 5D 13 88 [17:12:16]CheckFolder [17:12:16]dirname=/storage/ofd_packets [17:12:16]CheckFolder done [17:12:16]ProducePacketName [17:12:16]name=ofd_packets/00076892 [17:12:16]NVStorageSaveData ofd_packets/00076892 [17:12:16]File name is /storage/ofd_packets/00076892 [17:12:16]Write 301 bytes [17:12:16]NVStorageSaveData done [17:12:16]OFDSenderStorePacket done [17:12:16]KKMCreateOFDPacket done [17:12:16]NVStorageSaveData kkm_last_timestamp [17:12:16]File name is /storage/kkm_last_timestamp [17:12:16]Write 4 bytes [17:12:16]NVStorageSaveData done [17:12:16]ExternCall_PrintAddStr [17:12:16]wPrintStart [17:12:16]Write to MH i2c: 01 00 00 64 00 64 [17:12:16]Write i2c OK [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: 01 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: 01 07 00 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [17:12:16]RasterBufferAndPrint [17:12:16]line Счет N : (1)191437 [17:12:16]line ИНН: 02508201610067 [17:12:16]line Контрольно-Кассовый Чек [17:12:16]line ПРОДАЖА [17:12:16]line ТРК (МРК, ГНК) : 33 [17:12:16]line Товар: 2710124130 [17:12:16]line Аи-92-К-5 [17:12:16]line 6.220 * 64.40 [17:12:16]line = 400.57 [17:12:16]line НДС 12% НСП 1% [17:12:16]line > о реализуемом товаре [17:12:16]line ОКРУГЛЕНИЕ: -0.57 [17:12:16]line ИТОГО: 400.00 [17:12:16]line Внесено: 400.00 [17:12:16]line СДАЧА: 0.00 [17:12:16]line НСП 1% : 3.54 [17:12:16]line НДС 12% : 42.54 [17:12:16]line Наличными: 400.00 [17:12:16]line Безнал.: 0.00 [17:12:16]line Место: АЗС № 106 "Партнер Нефть" [17:12:16]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [17:12:16]line СНО: Общий режим [17:12:16]line Чек 148 21.04.2024 17:12 [17:12:16]line Смена: 372 ФФД: 1.0 [17:12:16]line ЗНМ: 0300000141 [17:12:16]line РНМ: 0000000000091573 [17:12:16]line Версия ККМ: 001 [17:12:16]line ФМ: 0000000000874652 [17:12:16]line ФД: 76892 [17:12:16]line ФПД: 152024126818597 [17:12:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T171215&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76892&fm=152024126818597&tin=02508201610067®Number=0000000000091573&sum=40000 [17:12:16]OFD Sender: Processing packet 76892 [packets to send 129, broken 128] [17:12:16]ProducePacketName [17:12:16]name=ofd_packets/00076892 [17:12:16]OFD Sender: To server: pG, [17:12:16]CommunicateWithHost lk.salyk.kg:30040 [17:12:16]ConnectInit lk.salyk.kg [17:12:16]written 0, free lines is 4095 [17:12:16]Connected sock=8 [17:12:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 FF 77 07 01 6C 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 18 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 79 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 9E 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 94 00 00 00 F4 03 04 00 EF 48 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 5C 2C 01 00 35 04 06 00 8A 43 E0 13 89 25 1F 30 EC E2 3A 5D 13 88 [17:12:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 00 FF 47 00 FE 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 34 36 35 32 10 04 04 00 5C 2C 01 00 F4 03 04 00 73 F0 24 66 B6 04 01 00 00 CF 8E 44 E6 F9 CB A2 D6 [17:12:16]CommunicateWithHost err = 0 [17:12:16]CheckOFDResponse [17:12:16]1017 (14) - 77093643461234 [17:12:16]1041 (16) - 0000000000874652 [17:12:16]1040 (4) - 76892 [17:12:16]1012 (4) - 21.04.2024 10:54 [17:12:16]1206 (1) - 0 [17:12:16]OFD Sender: Remove packet 76892 [17:12:16]ProducePacketName [17:12:16]name=ofd_packets/00076892 [17:12:16]NVStorageDeleteData [17:12:17]Write to MH i2c: 01 00 00 8E 00 8E [17:12:17]Write i2c OK [17:12:17]MH_I2C_Read... [17:12:17]Read from MH i2c: 01 [17:12:17]MH_I2C_Read... [17:12:17]Read from MH i2c: 01 07 00 [17:12:17]MH_I2C_Read... [17:12:17]Read from MH i2c: 01 07 00 8E 00 00 00 00 00 00 04 0D A6 [17:12:17]RasterBufferAndPrint [17:12:17]line [17:12:17]line [17:12:17]line [17:12:17]line [17:12:17]line [17:12:17]written 0, free lines is 3338 [17:12:17]MH_Cut [17:12:17]Write to MH i2c: D1 01 00 95 00 01 67 [17:12:17]Write i2c OK [17:12:17]MH_I2C_Read... [17:12:17]Read from MH i2c: D1 [17:12:17]MH_I2C_Read... [17:12:17]Read from MH i2c: D1 01 00 [17:12:17]MH_I2C_Read... [17:12:17]Read from MH i2c: D1 01 00 95 00 00 66 [17:12:17]Write to MH i2c: 01 00 00 96 00 96 [17:12:17]Write i2c OK [17:12:17]MH_I2C_Read... [17:12:17]OFD Sender: No OFD packet to send [17:12:17]*** Cut start [17:12:17]*** Partial cut [17:12:17]*** CUTSNS_PIN = 1 [17:12:17]*** CUTSNS_PIN = 0 [17:12:18]*** Brake cut motor [17:12:18]Read from MH i2c: 01 [17:12:18]MH_I2C_Read... [17:12:18]*** Stop cut motor [17:12:18]*** Cut end [17:12:18]Read from MH i2c: 01 07 00 [17:12:18]MH_I2C_Read... [17:12:18]Read from MH i2c: 01 07 00 96 00 00 00 00 00 00 FF 0F AB [17:12:18]process_action close_receipt done [17:12:18]requested_data is exist [17:12:18]produce_requested_data [17:12:18]requested_item fm.sn is exist - process it [17:12:18]wFMCommunicate request_size=4 [17:12:18]MH_SAM_APDU [17:12:18]CAPDU: 80 11 00 00 [17:12:18]Write to MH i2c: E2 08 00 97 00 80 11 00 00 00 00 00 00 11 [17:12:18]Write i2c OK [17:12:18]MH_I2C_Read... [17:12:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:18]Read from MH i2c: E2 [17:12:18]MH_I2C_Read... [17:12:18]Read from MH i2c: E2 17 00 [17:12:18]MH_I2C_Read... [17:12:18]Read from MH i2c: E2 17 00 97 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 64 [17:12:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:12:18]wFMCommunicate OK [17:12:18]requested_item fd.num is exist - process it [17:12:18]SAM_PROTO_GetFieldsCounters [17:12:18]wFMCommunicate request_size=4 [17:12:18]MH_SAM_APDU [17:12:18]CAPDU: 80 13 00 00 [17:12:18]Write to MH i2c: E2 08 00 98 00 80 13 00 00 00 00 00 00 14 [17:12:18]Write i2c OK [17:12:18]MH_I2C_Read... [17:12:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:12:18]Read from MH i2c: E2 [17:12:18]MH_I2C_Read... [17:12:18]Read from MH i2c: E2 62 00 [17:12:18]MH_I2C_Read... [17:12:18]Read from MH i2c: E2 62 00 98 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 5C 2C 01 00 0E 04 04 00 74 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 EF [17:12: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 5C 2C 01 00 0E 04 04 00 74 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 [17:12:18]wFMCommunicate OK [17:12:18]SAM_PROTO_GetFieldsCounters done [17:12:18]requested_item shift.num is exist - process it [17:12:18]requested_item shift.opened is exist - process it [17:12:18]req_shift_opened [17:12:18]FM_GetShiftState [17:12:18]SAM_PROTO_GetShiftState [17:12:18]wFMCommunicate request_size=4 [17:12:18]MH_SAM_APDU [17:12:18]CAPDU: 80 13 01 00 [17:12:18]Write to MH i2c: E2 08 00 99 00 80 13 01 00 00 00 00 00 16 [17:12:18]Write i2c OK [17:12:18]MH_I2C_Read... [17:12:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:18]Read from MH i2c: E2 [17:12:18]MH_I2C_Read... [17:12:18]Read from MH i2c: E2 0E 00 [17:12:18]MH_I2C_Read... [17:12:18]Read from MH i2c: E2 0E 00 99 00 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 5D [17:12:18]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [17:12:18]wFMCommunicate OK [17:12:18]SAM_PROTO_GetShiftState done [17:12:18]FM_GetShiftState done [17:12:18]req_shift_opened done [17:12:18]requested_item shift.open_date is exist - process it [17:12:18]req_shift_open_date [17:12:18]req_shift_open_date done [17:12:18]produce_requested_data done [17:12:18]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76892,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [17:12:18]process_action_free close_receipt [17:12:18]json_value_free [17:12:18]json_value_free done [17:12:18]process_json_proto returns [17:12:18]Send response to host [17:12:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76892,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [17:12:18]free response buf [17:12:18]execute_script done [17:12:18]execute_script returns [17:12:18]free content buf [17:12:18]Sock 9.Close socket [17:12:18]Sock 9.Thread stoped [17:12:22]OFD Sender: No OFD packet to send [17:12:24]accept exits with 10 [17:12:24]New connection [17:12:24]New thread 3066944868 created [17:12:24]Thread 3066801508 joined [17:12:24]Waiting for new connection... [17:12:24] Sock 10.Parse request [17:12:24]Sock 10.Check first char [17:12:24]Sock 10.First char is OK [17:12:24]request: POST /json_proto HTTP/1.0 [17:12:24]Method: POST [17:12:24]URL: /json_proto [17:12:24]Method is POST - this is cgi request [17:12:24]url: /json_proto [17:12:24]query_string will be loaded in cgi processing [17:12:24]execute_cgi json_proto POST (null) [17:12:24]execute_cgi path=json_proto method=POST [17:12:24]POST find Content-Length [17:12:24]Host: 172.17.62.5:8080 [17:12:24]Content-Length: 681 [17:12:24]Content-Type: application/json [17:12:24] [17:12:24]POST finish read [17:12:24]Found Content-Length = 681 [17:12:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191434", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 18.350, "sum" : 600.05, "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:12:24]execute_script... [17:12: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)191434", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 18.350, "sum" : 600.05, "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:12:24]POST & json_proto [17:12:24]process_json_proto [17:12:24]json parsed OK: [17:12:24]protocol is kg_v1.0 [17:12:24]action value=close_receipt [17:12:24]process_action close_receipt [17:12:24]cmd_close_receipt [17:12:24]MH_GetDate [17:12:24]Write to MH i2c: F0 00 00 9A 00 89 [17:12:24]Write i2c OK [17:12:24]MH_I2C_Read... [17:12:24]Read from MH i2c: F0 [17:12:24]MH_I2C_Read... [17:12:24]Read from MH i2c: F0 09 00 [17:12:24]MH_I2C_Read... [17:12:24]Read from MH i2c: F0 09 00 9A 00 00 F8 48 25 66 F4 E9 65 64 03 [17:12:24]GetLastDocTimeStamp 1713719535 [17:12:24]current date 1713719544 [17:12:24]FM_GetShiftState [17:12:24]SAM_PROTO_GetShiftState [17:12:24]wFMCommunicate request_size=4 [17:12:24]MH_SAM_APDU [17:12:24]CAPDU: 80 13 01 00 [17:12:24]Write to MH i2c: E2 08 00 9B 00 80 13 01 00 00 00 00 00 18 [17:12:24]Write i2c OK [17:12:24]MH_I2C_Read... [17:12:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:24]Read from MH i2c: E2 [17:12:24]MH_I2C_Read... [17:12:24]Read from MH i2c: E2 0E 00 [17:12:24]MH_I2C_Read... [17:12:24]Read from MH i2c: E2 0E 00 9B 00 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 5F [17:12:24]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [17:12:24]wFMCommunicate OK [17:12:24]SAM_PROTO_GetShiftState done [17:12:24]FM_GetShiftState done [17:12:24]opened in 1713658965 [17:12:24]opened+sec_in_day 1713745365 [17:12:24]quantity*price = 60004 [17:12:24]sum+1 = 60006 [17:12:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 149 21.04.2024 17:12 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76893 ФПД: 277600819449458 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T171224&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76893&fm=277600819449458&tin=02508201610067®Number=0000000000091573&sum=60000 [17:12:25]StoreToDocumentArchive [17:12:25]shift 372 fd 76893 [17:12:25]save to /storage/0372/doc_00076893 [17:12:25]save last doc name /storage/0372/doc_00076893 to /storage/kkm_last_doc_name [17:12:25]save OK [17:12:25]Clear old archive folders... [17:12:25]ProcessDocumentItem done err = 0, tmpTLVsize=250 [17:12:25]tlvbuf is 00C7C9F0 [17:12:25]SAM_PROTO_ClearQueue [17:12:25]wFMCommunicate request_size=4 [17:12:25]MH_SAM_APDU [17:12:25]CAPDU: 80 09 00 00 [17:12:25]Write to MH i2c: E2 08 00 A8 00 80 09 00 00 00 00 00 00 1A [17:12:25]Write i2c OK [17:12:25]MH_I2C_Read... [17:12:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:12:25]Read from MH i2c: E2 [17:12:25]MH_I2C_Read... [17:12:25]Read from MH i2c: E2 03 00 [17:12:25]MH_I2C_Read... [17:12:25]Read from MH i2c: E2 03 00 A8 00 00 90 00 1C [17:12:25]RAPDU: 90 00 [17:12:25]wFMCommunicate OK [17:12:25]SAM_PROTO_ClearQueue done [17:12:25]KKMCreateOFDPacket [17:12:25]OFDProtocolAddRootSTLVToBuf [17:12:25]FM_MakeSignedData [17:12:25]FM_MakeSignedData [17:12:25]SAM_PROTO_SignData [17:12:25]wFMCommunicate request_size=4 [17:12:25]MH_SAM_APDU [17:12:25]CAPDU: 80 0D 01 02 [17:12:25]Write to MH i2c: E2 08 00 A9 00 80 0D 01 02 00 00 00 00 22 [17:12:25]Write i2c OK [17:12:25]MH_I2C_Read... [17:12:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:12:25]Read from MH i2c: E2 [17:12:25]MH_I2C_Read... [17:12:25]Read from MH i2c: E2 03 00 [17:12:25]MH_I2C_Read... [17:12:25]Read from MH i2c: E2 03 00 A9 00 00 90 00 1D [17:12:25]RAPDU: 90 00 [17:12:25]wFMCommunicate OK [17:12:25]wFMCommunicate request_size=255 [17:12:25]MH_SAM_APDU [17:12:25]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 AE 47 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 65 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 95 00 00 00 F4 03 04 00 F8 48 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 5D 2C 01 00 35 04 06 00 FC 79 [17:12:25]Write to MH i2c: E2 02 01 AA 00 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 AE 47 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 65 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 95 00 00 00 F4 03 04 00 F8 48 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 5D 2C 01 00 35 04 06 00 FC 79 00 00 62 [17:12:25]Write i2c OK [17:12:25]MH_I2C_Read... [17:12:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:25]Read from MH i2c: E2 [17:12:25]MH_I2C_Read... [17:12:25]Read from MH i2c: E2 03 00 [17:12:25]MH_I2C_Read... [17:12:25]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [17:12:25]RAPDU: 90 00 [17:12:25]wFMCommunicate OK [17:12:25]wFMCommunicate request_size=9 [17:12:25]MH_SAM_APDU [17:12:25]CAPDU: 80 0D 02 02 04 FA 3B 8E 72 [17:12:25]Write to MH i2c: E2 0C 00 AB 00 80 0D 02 02 04 00 FA 3B 8E 72 00 00 62 [17:12:25]Write i2c OK [17:12:25]MH_I2C_Read... [17:12:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:25]Read from MH i2c: E2 [17:12:25]MH_I2C_Read... [17:12:25]Read from MH i2c: E2 03 00 [17:12:25]MH_I2C_Read... [17:12:25]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [17:12:25]RAPDU: 90 00 [17:12:25]wFMCommunicate OK [17:12:25]wFMCommunicate request_size=4 [17:12:25]MH_SAM_APDU [17:12:25]CAPDU: 80 0D 03 02 [17:12:25]Write to MH i2c: E2 08 00 AC 00 80 0D 03 02 00 00 00 00 27 [17:12:25]Write i2c OK [17:12:25]MH_I2C_Read... [17:12:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:12:25]Read from MH i2c: E2 [17:12:25]MH_I2C_Read... [17:12:25]Read from MH i2c: E2 0B 00 [17:12:25]MH_I2C_Read... [17:12:25]Read from MH i2c: E2 0B 00 AC 00 00 8A 9C 71 1D 67 9B 48 95 90 00 BB [17:12:25]RAPDU: 8A 9C 71 1D 67 9B 48 95 90 00 [17:12:25]wFMCommunicate OK [17:12:25]SAM_PROTO_SignData done [17:12:25]FM_MakeSignedData done [17:12:25]CreateOFDProtocolMessage [17:12:25]wFMCommunicate request_size=4 [17:12:25]MH_SAM_APDU [17:12:25]CAPDU: 80 11 00 00 [17:12:25]Write to MH i2c: E2 08 00 AD 00 80 11 00 00 00 00 00 00 27 [17:12:25]Write i2c OK [17:12:25]MH_I2C_Read... [17:12:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:25]Read from MH i2c: E2 [17:12:25]MH_I2C_Read... [17:12:25]Read from MH i2c: E2 17 00 [17:12:25]MH_I2C_Read... [17:12:25]Read from MH i2c: E2 17 00 AD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 7A [17:12:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:12:25]wFMCommunicate OK [17:12:25]CreateOFDProtocolMessage done [17:12:25]OFDSenderStorePacket 76893 [17:12:25]StoreOFDPacket docnum=76893 [17:12:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 30 B9 06 01 0F 87 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 AE 47 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 65 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 95 00 00 00 F4 03 04 00 F8 48 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 5D 2C 01 00 35 04 06 00 FC 79 FA 3B 8E 72 8A 9C 71 1D 67 9B 48 95 [17:12:25]CheckFolder [17:12:25]dirname=/storage/ofd_packets [17:12:25]CheckFolder done [17:12:25]ProducePacketName [17:12:25]name=ofd_packets/00076893 [17:12:25]NVStorageSaveData ofd_packets/00076893 [17:12:25]File name is /storage/ofd_packets/00076893 [17:12:25]Write 300 bytes [17:12:25]NVStorageSaveData done [17:12:25]OFDSenderStorePacket done [17:12:25]KKMCreateOFDPacket done [17:12:25]NVStorageSaveData kkm_last_timestamp [17:12:25]File name is /storage/kkm_last_timestamp [17:12:25]Write 4 bytes [17:12:25]NVStorageSaveData done [17:12:25]ExternCall_PrintAddStr [17:12:25]wPrintStart [17:12:25]Write to MH i2c: 01 00 00 AE 00 AE [17:12:25]Write i2c OK [17:12:25]MH_I2C_Read... [17:12:25]Read from MH i2c: 01 [17:12:25]MH_I2C_Read... [17:12:25]Read from MH i2c: 01 07 00 [17:12:25]MH_I2C_Read... [17:12:25]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [17:12:25]RasterBufferAndPrint [17:12:25]line Счет N : (1)191434 [17:12:25]line ИНН: 02508201610067 [17:12:25]line Контрольно-Кассовый Чек [17:12:25]line ПРОДАЖА [17:12:25]line ТРК (МРК, ГНК) : 71 [17:12:25]line Товар: 2711190000 [17:12:25]line ГАЗ-К-5 [17:12:25]line 18.350 * 32.70 [17:12:25]line = 600.05 [17:12:25]line НДС 12% НСП 1% [17:12:25]line > о реализуемом товаре [17:12:25]line ОКРУГЛЕНИЕ: -0.05 [17:12:25]line ИТОГО: 600.00 [17:12:25]line Внесено: 600.00 [17:12:25]line СДАЧА: 0.00 [17:12:25]line НСП 1% : 5.31 [17:12:25]line НДС 12% : 63.72 [17:12:25]line Наличными: 600.00 [17:12:25]line Безнал.: 0.00 [17:12:25]line Место: АЗС № 106 "Партнер Нефть" [17:12:25]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [17:12:25]line СНО: Общий режим [17:12:25]line Чек 149 21.04.2024 17:12 [17:12:25]line Смена: 372 ФФД: 1.0 [17:12:25]line ЗНМ: 0300000141 [17:12:25]line РНМ: 0000000000091573 [17:12:25]line Версия ККМ: 001 [17:12:25]line ФМ: 0000000000874652 [17:12:25]line ФД: 76893 [17:12:25]line ФПД: 277600819449458 [17:12:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T171224&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76893&fm=277600819449458&tin=02508201610067®Number=0000000000091573&sum=60000 [17:12:25]written 0, free lines is 4095 [17:12:26]OFD Sender: Processing packet 76893 [packets to send 129, broken 128] [17:12:26]ProducePacketName [17:12:26]name=ofd_packets/00076893 [17:12:26]OFD Sender: To server: pG, [17:12:26]CommunicateWithHost lk.salyk.kg:30040 [17:12:26]ConnectInit lk.salyk.kg [17:12:26]Connected sock=9 [17:12:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 30 B9 06 01 0F 87 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 AE 47 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 65 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 95 00 00 00 F4 03 04 00 F8 48 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 5D 2C 01 00 35 04 06 00 FC 79 FA 3B 8E 72 8A 9C 71 1D 67 9B 48 95 [17:12:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 C2 9E 47 00 EA 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 34 36 35 32 10 04 04 00 5D 2C 01 00 F4 03 04 00 7D F0 24 66 B6 04 01 00 00 99 9E 5A BD 52 C6 E5 5F [17:12:26]CommunicateWithHost err = 0 [17:12:26]CheckOFDResponse [17:12:26]1017 (14) - 77093643461234 [17:12:26]1041 (16) - 0000000000874652 [17:12:26]1040 (4) - 76893 [17:12:26]1012 (4) - 21.04.2024 10:54 [17:12:26]1206 (1) - 0 [17:12:26]OFD Sender: Remove packet 76893 [17:12:26]ProducePacketName [17:12:26]name=ofd_packets/00076893 [17:12:26]NVStorageDeleteData [17:12:26]Write to MH i2c: 01 00 00 D8 00 D8 [17:12:26]Write i2c OK [17:12:26]MH_I2C_Read... [17:12:26]Read from MH i2c: 01 [17:12:26]MH_I2C_Read... [17:12:26]Read from MH i2c: 01 07 00 [17:12:26]MH_I2C_Read... [17:12:26]Read from MH i2c: 01 07 00 D8 00 00 00 00 00 00 03 0D EF [17:12:26]RasterBufferAndPrint [17:12:26]line [17:12:26]line [17:12:26]line [17:12:26]line [17:12:26]line [17:12:26]written 0, free lines is 3343 [17:12:26]MH_Cut [17:12:26]Write to MH i2c: D1 01 00 DF 00 01 B1 [17:12:26]Write i2c OK [17:12:26]MH_I2C_Read... [17:12:26]Read from MH i2c: D1 [17:12:26]MH_I2C_Read... [17:12:26]Read from MH i2c: D1 01 00 [17:12:26]MH_I2C_Read... [17:12:26]Read from MH i2c: D1 01 00 DF 00 00 B0 [17:12:26]Write to MH i2c: 01 00 00 E0 00 E0 [17:12:26]Write i2c OK [17:12:26]MH_I2C_Read... [17:12:26]OFD Sender: No OFD packet to send [17:12:27]*** Cut start [17:12:27]*** Partial cut [17:12:27]*** CUTSNS_PIN = 1 [17:12:27]*** CUTSNS_PIN = 0 [17:12:27]*** Brake cut motor [17:12:27]Read from MH i2c: 01 [17:12:27]MH_I2C_Read... [17:12:27]*** Stop cut motor [17:12:27]*** Cut end [17:12:27]Read from MH i2c: 01 07 00 [17:12:27]MH_I2C_Read... [17:12:27]Read from MH i2c: 01 07 00 E0 00 00 00 00 00 00 FF 0F F5 [17:12:27]process_action close_receipt done [17:12:27]requested_data is exist [17:12:27]produce_requested_data [17:12:27]requested_item fm.sn is exist - process it [17:12:27]wFMCommunicate request_size=4 [17:12:27]MH_SAM_APDU [17:12:27]CAPDU: 80 11 00 00 [17:12:27]Write to MH i2c: E2 08 00 E1 00 80 11 00 00 00 00 00 00 5B [17:12:27]Write i2c OK [17:12:27]MH_I2C_Read... [17:12:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:27]Read from MH i2c: E2 [17:12:27]MH_I2C_Read... [17:12:27]Read from MH i2c: E2 17 00 [17:12:27]MH_I2C_Read... [17:12:27]Read from MH i2c: E2 17 00 E1 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 AE [17:12:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:12:27]wFMCommunicate OK [17:12:27]requested_item fd.num is exist - process it [17:12:27]SAM_PROTO_GetFieldsCounters [17:12:27]wFMCommunicate request_size=4 [17:12:27]MH_SAM_APDU [17:12:27]CAPDU: 80 13 00 00 [17:12:27]Write to MH i2c: E2 08 00 E2 00 80 13 00 00 00 00 00 00 5E [17:12:27]Write i2c OK [17:12:27]MH_I2C_Read... [17:12:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:12:27]Read from MH i2c: E2 [17:12:27]MH_I2C_Read... [17:12:27]Read from MH i2c: E2 62 00 [17:12:27]MH_I2C_Read... [17:12:27]Read from MH i2c: E2 62 00 E2 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 5D 2C 01 00 0E 04 04 00 74 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 3D [17:12: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 5D 2C 01 00 0E 04 04 00 74 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 [17:12:28]wFMCommunicate OK [17:12:28]SAM_PROTO_GetFieldsCounters done [17:12:28]requested_item shift.num is exist - process it [17:12:28]requested_item shift.opened is exist - process it [17:12:28]req_shift_opened [17:12:28]FM_GetShiftState [17:12:28]SAM_PROTO_GetShiftState [17:12:28]wFMCommunicate request_size=4 [17:12:28]MH_SAM_APDU [17:12:28]CAPDU: 80 13 01 00 [17:12:28]Write to MH i2c: E2 08 00 E3 00 80 13 01 00 00 00 00 00 60 [17:12:28]Write i2c OK [17:12:28]MH_I2C_Read... [17:12:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:28]Read from MH i2c: E2 [17:12:28]MH_I2C_Read... [17:12:28]Read from MH i2c: E2 0E 00 [17:12:28]MH_I2C_Read... [17:12:28]Read from MH i2c: E2 0E 00 E3 00 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 A7 [17:12:28]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [17:12:28]wFMCommunicate OK [17:12:28]SAM_PROTO_GetShiftState done [17:12:28]FM_GetShiftState done [17:12:28]req_shift_opened done [17:12:28]requested_item shift.open_date is exist - process it [17:12:28]req_shift_open_date [17:12:28]req_shift_open_date done [17:12:28]produce_requested_data done [17:12:28]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76893,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [17:12:28]process_action_free close_receipt [17:12:28]json_value_free [17:12:28]json_value_free done [17:12:28]process_json_proto returns [17:12:28]Send response to host [17:12:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76893,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [17:12:28]free response buf [17:12:28]execute_script done [17:12:28]execute_script returns [17:12:28]free content buf [17:12:28]Sock 10.Close socket [17:12:28]Sock 10.Thread stoped [17:12:31]OFD Sender: No OFD packet to send [17:12:36]OFD Sender: No OFD packet to send [17:12:41]OFD Sender: No OFD packet to send [17:12:46]OFD Sender: No OFD packet to send [17:12:51]OFD Sender: No OFD packet to send [17:12:56]OFD Sender: No OFD packet to send [17:13:01]OFD Sender: No OFD packet to send [17:13:06]OFD Sender: No OFD packet to send [17:13:11]OFD Sender: No OFD packet to send [17:13:17]OFD Sender: No OFD packet to send [17:13:22]OFD Sender: No OFD packet to send [17:13:27]OFD Sender: No OFD packet to send [17:13:32]OFD Sender: No OFD packet to send [17:13:37]OFD Sender: No OFD packet to send [17:13:42]OFD Sender: No OFD packet to send [17:13:47]OFD Sender: No OFD packet to send [17:13:52]OFD Sender: No OFD packet to send [17:13:57]OFD Sender: No OFD packet to send [17:14:02]OFD Sender: No OFD packet to send [17:14:07]OFD Sender: No OFD packet to send [17:14:12]OFD Sender: No OFD packet to send [17:14:17]OFD Sender: No OFD packet to send [17:14:22]OFD Sender: No OFD packet to send [17:14:27]OFD Sender: No OFD packet to send [17:14:32]OFD Sender: No OFD packet to send [17:14:37]OFD Sender: No OFD packet to send [17:14:42]OFD Sender: No OFD packet to send [17:14:47]OFD Sender: No OFD packet to send [17:14:52]OFD Sender: No OFD packet to send [17:14:57]OFD Sender: No OFD packet to send [17:15:02]OFD Sender: No OFD packet to send [17:15:07]OFD Sender: No OFD packet to send [17:15:12]OFD Sender: No OFD packet to send [17:15:17]OFD Sender: No OFD packet to send [17:15:22]OFD Sender: No OFD packet to send [17:15:27]OFD Sender: No OFD packet to send [17:15:32]OFD Sender: No OFD packet to send [17:15:37]OFD Sender: No OFD packet to send [17:15:42]OFD Sender: No OFD packet to send [17:15:47]OFD Sender: No OFD packet to send [17:15:52]OFD Sender: No OFD packet to send [17:15:57]OFD Sender: No OFD packet to send [17:16:02]OFD Sender: No OFD packet to send [17:16:07]OFD Sender: No OFD packet to send [17:16:12]OFD Sender: No OFD packet to send [17:16:17]OFD Sender: No OFD packet to send [17:16:22]OFD Sender: No OFD packet to send [17:16:27]OFD Sender: No OFD packet to send [17:16:32]OFD Sender: No OFD packet to send [17:16:37]OFD Sender: No OFD packet to send [17:16:42]OFD Sender: No OFD packet to send [17:16:47]OFD Sender: No OFD packet to send [17:16:52]OFD Sender: No OFD packet to send [17:16:57]OFD Sender: No OFD packet to send [17:17:02]OFD Sender: No OFD packet to send [17:17:07]OFD Sender: No OFD packet to send [17:17:12]OFD Sender: No OFD packet to send [17:17:17]OFD Sender: No OFD packet to send [17:17:22]OFD Sender: No OFD packet to send [17:17:27]OFD Sender: No OFD packet to send [17:17:32]OFD Sender: No OFD packet to send [17:17:36]accept exits with 8 [17:17:36]New connection [17:17:36]New thread 3066801508 created [17:17:36]Thread 3066944868 joined [17:17:36]Waiting for new connection... [17:17:36] Sock 8.Parse request [17:17:36]Sock 8.Check first char [17:17:36]Sock 8.First char is OK [17:17:36]request: POST /json_proto HTTP/1.0 [17:17:36]Method: POST [17:17:36]URL: /json_proto [17:17:36]Method is POST - this is cgi request [17:17:36]url: /json_proto [17:17:36]query_string will be loaded in cgi processing [17:17:36]execute_cgi json_proto POST (null) [17:17:36]execute_cgi path=json_proto method=POST [17:17:36]POST find Content-Length [17:17:36]Host: 172.17.62.5:8080 [17:17:36]Content-Length: 942 [17:17:36]Content-Type: application/json [17:17:36] [17:17:36]POST finish read [17:17:36]Found Content-Length = 942 [17:17:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 200.000, "sum" : 14380.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 200.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 14380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:36]execute_script... [17:17: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)191436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 200.000, "sum" : 14380.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 200.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 14380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:36]POST & json_proto [17:17:36]process_json_proto [17:17:36]json parsed OK: [17:17:36]protocol is kg_v1.0 [17:17:36]action value=close_receipt [17:17:36]process_action close_receipt [17:17:36]cmd_close_receipt [17:17:36]MH_GetDate [17:17:36]Write to MH i2c: F0 00 00 E4 00 D3 [17:17:36]Write i2c OK [17:17:36]MH_I2C_Read... [17:17:36]Read from MH i2c: F0 [17:17:36]MH_I2C_Read... [17:17:36]Read from MH i2c: F0 09 00 [17:17:36]MH_I2C_Read... [17:17:36]Read from MH i2c: F0 09 00 E4 00 00 30 4A 25 66 F4 E9 65 64 87 [17:17:36]GetLastDocTimeStamp 1713719544 [17:17:36]current date 1713719856 [17:17:36]FM_GetShiftState [17:17:36]SAM_PROTO_GetShiftState [17:17:36]wFMCommunicate request_size=4 [17:17:36]MH_SAM_APDU [17:17:36]CAPDU: 80 13 01 00 [17:17:36]Write to MH i2c: E2 08 00 E5 00 80 13 01 00 00 00 00 00 62 [17:17:36]Write i2c OK [17:17:36]MH_I2C_Read... [17:17:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:36]Read from MH i2c: E2 [17:17:36]MH_I2C_Read... [17:17:36]Read from MH i2c: E2 0E 00 [17:17:36]MH_I2C_Read... [17:17:36]Read from MH i2c: E2 0E 00 E5 00 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 A9 [17:17:36]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [17:17:36]wFMCommunicate OK [17:17:36]SAM_PROTO_GetShiftState done [17:17:36]FM_GetShiftState done [17:17:36]opened in 1713658965 [17:17:36]opened+sec_in_day 1713745365 [17:17:36]quantity*price = 1438000 [17:17:36]sum+1 = 1438001 [17:17:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 14380.00 НСП 1% : 127.26 НДС 12% : 1527.08 Наличными: 14380.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 150 21.04.2024 17:17 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 200.00 сом ФМ: 0000000000874652 ФД: 76894 ФПД: 268768338630186 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T171736&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76894&fm=268768338630186&tin=02508201610067®Number=0000000000091573&sum=1438000 [17:17:37]StoreToDocumentArchive [17:17:37]shift 372 fd 76894 [17:17:37]save to /storage/0372/doc_00076894 [17:17:37]save last doc name /storage/0372/doc_00076894 to /storage/kkm_last_doc_name [17:17:37]save OK [17:17:37]Clear old archive folders... [17:17:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:17:37]tlvbuf is 00C65F80 [17:17:37]SAM_PROTO_ClearQueue [17:17:37]wFMCommunicate request_size=4 [17:17:37]MH_SAM_APDU [17:17:37]CAPDU: 80 09 00 00 [17:17:37]Write to MH i2c: E2 08 00 F2 00 80 09 00 00 00 00 00 00 64 [17:17:37]Write i2c OK [17:17:37]MH_I2C_Read... [17:17:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:17:37]Read from MH i2c: E2 [17:17:37]MH_I2C_Read... [17:17:37]Read from MH i2c: E2 03 00 [17:17:37]MH_I2C_Read... [17:17:37]Read from MH i2c: E2 03 00 F2 00 00 90 00 66 [17:17:37]RAPDU: 90 00 [17:17:37]wFMCommunicate OK [17:17:37]SAM_PROTO_ClearQueue done [17:17:37]KKMCreateOFDPacket [17:17:37]OFDProtocolAddRootSTLVToBuf [17:17:37]FM_MakeSignedData [17:17:37]FM_MakeSignedData [17:17:37]SAM_PROTO_SignData [17:17:37]wFMCommunicate request_size=4 [17:17:37]MH_SAM_APDU [17:17:37]CAPDU: 80 0D 01 02 [17:17:37]Write to MH i2c: E2 08 00 F3 00 80 0D 01 02 00 00 00 00 6C [17:17:37]Write i2c OK [17:17:37]MH_I2C_Read... [17:17:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:17:37]Read from MH i2c: E2 [17:17:37]MH_I2C_Read... [17:17:37]Read from MH i2c: E2 03 00 [17:17:37]MH_I2C_Read... [17:17:37]Read from MH i2c: E2 03 00 F3 00 00 90 00 67 [17:17:37]RAPDU: 90 00 [17:17:37]wFMCommunicate OK [17:17:37]wFMCommunicate request_size=255 [17:17:37]MH_SAM_APDU [17:17:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 0D 03 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 30 F1 15 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F1 15 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 31 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 54 02 00 00 00 07 04 06 00 30 F1 15 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 30 4A 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 5E 2C 01 00 35 04 06 00 F4 71 81 59 [17:17:37]Write to MH i2c: E2 02 01 F4 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 0D 03 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 30 F1 15 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F1 15 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 31 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 54 02 00 00 00 07 04 06 00 30 F1 15 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 30 4A 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 5E 2C 01 00 35 04 06 00 F4 71 81 59 00 00 88 [17:17:37]Write i2c OK [17:17:37]MH_I2C_Read... [17:17:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:37]Read from MH i2c: E2 [17:17:37]MH_I2C_Read... [17:17:37]Read from MH i2c: E2 03 00 [17:17:37]MH_I2C_Read... [17:17:37]Read from MH i2c: E2 03 00 F4 00 00 90 00 68 [17:17:37]RAPDU: 90 00 [17:17:37]wFMCommunicate OK [17:17:37]wFMCommunicate request_size=7 [17:17:37]MH_SAM_APDU [17:17:37]CAPDU: 80 0D 02 02 02 D6 2A [17:17:37]Write to MH i2c: E2 0A 00 F5 00 80 0D 02 02 02 00 D6 2A 00 00 73 [17:17:37]Write i2c OK [17:17:37]MH_I2C_Read... [17:17:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:37]Read from MH i2c: E2 [17:17:37]MH_I2C_Read... [17:17:37]Read from MH i2c: E2 03 00 [17:17:37]MH_I2C_Read... [17:17:37]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [17:17:37]RAPDU: 90 00 [17:17:37]wFMCommunicate OK [17:17:37]wFMCommunicate request_size=4 [17:17:37]MH_SAM_APDU [17:17:37]CAPDU: 80 0D 03 02 [17:17:37]Write to MH i2c: E2 08 00 F6 00 80 0D 03 02 00 00 00 00 71 [17:17:37]Write i2c OK [17:17:37]MH_I2C_Read... [17:17:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:17:38]Read from MH i2c: E2 [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: E2 0B 00 [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: E2 0B 00 F6 00 00 8A 0A 1C 82 18 13 CE 07 90 00 A4 [17:17:38]RAPDU: 8A 0A 1C 82 18 13 CE 07 90 00 [17:17:38]wFMCommunicate OK [17:17:38]SAM_PROTO_SignData done [17:17:38]FM_MakeSignedData done [17:17:38]CreateOFDProtocolMessage [17:17:38]wFMCommunicate request_size=4 [17:17:38]MH_SAM_APDU [17:17:38]CAPDU: 80 11 00 00 [17:17:38]Write to MH i2c: E2 08 00 F7 00 80 11 00 00 00 00 00 00 71 [17:17:38]Write i2c OK [17:17:38]MH_I2C_Read... [17:17:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:38]Read from MH i2c: E2 [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: E2 17 00 [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: E2 17 00 F7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 C4 [17:17:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:17:38]wFMCommunicate OK [17:17:38]CreateOFDProtocolMessage done [17:17:38]OFDSenderStorePacket 76894 [17:17:38]StoreOFDPacket docnum=76894 [17:17:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 60 E8 04 01 01 CB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 0D 03 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 30 F1 15 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F1 15 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 31 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 54 02 00 00 00 07 04 06 00 30 F1 15 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 30 4A 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 5E 2C 01 00 35 04 06 00 F4 71 81 59 D6 2A 8A 0A 1C 82 18 13 CE 07 [17:17:38]CheckFolder [17:17:38]dirname=/storage/ofd_packets [17:17:38]CheckFolder done [17:17:38]ProducePacketName [17:17:38]name=ofd_packets/00076894 [17:17:38]NVStorageSaveData ofd_packets/00076894 [17:17:38]File name is /storage/ofd_packets/00076894 [17:17:38]Write 298 bytes [17:17:38]NVStorageSaveData done [17:17:38]OFDSenderStorePacket done [17:17:38]KKMCreateOFDPacket done [17:17:38]NVStorageSaveData kkm_last_timestamp [17:17:38]File name is /storage/kkm_last_timestamp [17:17:38]Write 4 bytes [17:17:38]NVStorageSaveData done [17:17:38]ExternCall_PrintAddStr [17:17:38]wPrintStart [17:17:38]Write to MH i2c: 01 00 00 F8 00 F8 [17:17:38]Write i2c OK [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: 01 [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: 01 07 00 [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: 01 07 00 F8 00 00 00 00 00 00 FF 0F 0D [17:17:38]RasterBufferAndPrint [17:17:38]line Счет N : (1)191436 [17:17:38]line ИНН: 02508201610067 [17:17:38]line Контрольно-Кассовый Чек [17:17:38]line ПРОДАЖА [17:17:38]line ТРК (МРК, ГНК) : 61 [17:17:38]line Товар: 2710194210 [17:17:38]line ДТ-К-5 [17:17:38]line 200.000 * 71.90 [17:17:38]line = 14380.00 [17:17:38]line НДС 12% НСП 1% [17:17:38]line > о реализуемом товаре [17:17:38]line ИТОГО: 14380.00 [17:17:38]line НСП 1% : 127.26 [17:17:38]line НДС 12% : 1527.08 [17:17:38]line Наличными: 14380.00 [17:17:38]line Безнал.: 0.00 [17:17:38]line Место: АЗС № 106 "Партнер Нефть" [17:17:38]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [17:17:38]line СНО: Общий режим [17:17:38]line Чек 150 21.04.2024 17:17 [17:17:38]line Смена: 372 ФФД: 1.0 [17:17:38]line ЗНМ: 0300000141 [17:17:38]line РНМ: 0000000000091573 [17:17:38]line Версия ККМ: 001 [17:17:38]line [17:17:38]line Дисконтная программа [17:17:38]line ДТ [17:17:38]line номер 106 [17:17:38]line сэкономлено 200.00 сом [17:17:38]line ФМ: 0000000000874652 [17:17:38]line ФД: 76894 [17:17:38]line ФПД: 268768338630186 [17:17:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T171736&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76894&fm=268768338630186&tin=02508201610067®Number=0000000000091573&sum=1438000 [17:17:38]OFD Sender: Processing packet 76894 [packets to send 129, broken 128] [17:17:38]ProducePacketName [17:17:38]name=ofd_packets/00076894 [17:17:38]OFD Sender: To server: pG, [17:17:38]CommunicateWithHost lk.salyk.kg:30040 [17:17:38]ConnectInit lk.salyk.kg [17:17:38]written 0, free lines is 4095 [17:17:38]Connected sock=10 [17:17:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 60 E8 04 01 01 CB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 0D 03 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 30 F1 15 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F1 15 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 31 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 54 02 00 00 00 07 04 06 00 30 F1 15 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 30 4A 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 5E 2C 01 00 35 04 06 00 F4 71 81 59 D6 2A 8A 0A 1C 82 18 13 CE 07 [17:17:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 83 D5 47 00 AD 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 34 36 35 32 10 04 04 00 5E 2C 01 00 F4 03 04 00 B5 F1 24 66 B6 04 01 00 00 42 7F 77 05 5A A5 59 98 [17:17:38]CommunicateWithHost err = 0 [17:17:38]CheckOFDResponse [17:17:38]1017 (14) - 77093643461234 [17:17:38]1041 (16) - 0000000000874652 [17:17:38]1040 (4) - 76894 [17:17:38]1012 (4) - 21.04.2024 11:00 [17:17:38]1206 (1) - 0 [17:17:38]OFD Sender: Remove packet 76894 [17:17:38]ProducePacketName [17:17:38]name=ofd_packets/00076894 [17:17:38]NVStorageDeleteData [17:17:38]Write to MH i2c: 01 00 00 24 01 25 [17:17:38]Write i2c OK [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: 01 [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: 01 07 00 [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: 01 07 00 24 01 00 00 00 00 00 C9 0C 01 [17:17:38]RasterBufferAndPrint [17:17:38]line [17:17:38]line [17:17:38]line [17:17:38]line [17:17:38]line [17:17:38]written 0, free lines is 3278 [17:17:38]MH_Cut [17:17:38]Write to MH i2c: D1 01 00 2B 01 01 FE [17:17:38]Write i2c OK [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: D1 [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: D1 01 00 [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: D1 01 00 2B 01 00 FD [17:17:38]Write to MH i2c: 01 00 00 2C 01 2D [17:17:38]Write i2c OK [17:17:38]MH_I2C_Read... [17:17:39]OFD Sender: No OFD packet to send [17:17:39]*** Cut start [17:17:39]*** Partial cut [17:17:39]*** CUTSNS_PIN = 1 [17:17:39]*** CUTSNS_PIN = 0 [17:17:39]*** Brake cut motor [17:17:40]Read from MH i2c: 01 [17:17:40]MH_I2C_Read... [17:17:40]*** Stop cut motor [17:17:40]*** Cut end [17:17:40]Read from MH i2c: 01 07 00 [17:17:40]MH_I2C_Read... [17:17:40]Read from MH i2c: 01 07 00 2C 01 00 00 00 00 00 FF 0F 42 [17:17:40]process_action close_receipt done [17:17:40]requested_data is exist [17:17:40]produce_requested_data [17:17:40]requested_item fm.sn is exist - process it [17:17:40]wFMCommunicate request_size=4 [17:17:40]MH_SAM_APDU [17:17:40]CAPDU: 80 11 00 00 [17:17:40]Write to MH i2c: E2 08 00 2D 01 80 11 00 00 00 00 00 00 A8 [17:17:40]Write i2c OK [17:17:40]MH_I2C_Read... [17:17:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:40]Read from MH i2c: E2 [17:17:40]MH_I2C_Read... [17:17:40]Read from MH i2c: E2 17 00 [17:17:40]MH_I2C_Read... [17:17:40]Read from MH i2c: E2 17 00 2D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 FB [17:17:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:17:40]wFMCommunicate OK [17:17:40]requested_item fd.num is exist - process it [17:17:40]SAM_PROTO_GetFieldsCounters [17:17:40]wFMCommunicate request_size=4 [17:17:40]MH_SAM_APDU [17:17:40]CAPDU: 80 13 00 00 [17:17:40]Write to MH i2c: E2 08 00 2E 01 80 13 00 00 00 00 00 00 AB [17:17:40]Write i2c OK [17:17:40]MH_I2C_Read... [17:17:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:17:40]Read from MH i2c: E2 [17:17:40]MH_I2C_Read... [17:17:40]Read from MH i2c: E2 62 00 [17:17:40]MH_I2C_Read... [17:17:40]Read from MH i2c: E2 62 00 2E 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 5E 2C 01 00 0E 04 04 00 74 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 8E [17:17: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 5E 2C 01 00 0E 04 04 00 74 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 [17:17:40]wFMCommunicate OK [17:17:40]SAM_PROTO_GetFieldsCounters done [17:17:40]requested_item shift.num is exist - process it [17:17:40]requested_item shift.opened is exist - process it [17:17:40]req_shift_opened [17:17:40]FM_GetShiftState [17:17:40]SAM_PROTO_GetShiftState [17:17:40]wFMCommunicate request_size=4 [17:17:40]MH_SAM_APDU [17:17:40]CAPDU: 80 13 01 00 [17:17:40]Write to MH i2c: E2 08 00 2F 01 80 13 01 00 00 00 00 00 AD [17:17:40]Write i2c OK [17:17:40]MH_I2C_Read... [17:17:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:40]Read from MH i2c: E2 [17:17:40]MH_I2C_Read... [17:17:40]Read from MH i2c: E2 0E 00 [17:17:40]MH_I2C_Read... [17:17:40]Read from MH i2c: E2 0E 00 2F 01 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 F4 [17:17:40]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [17:17:40]wFMCommunicate OK [17:17:40]SAM_PROTO_GetShiftState done [17:17:40]FM_GetShiftState done [17:17:40]req_shift_opened done [17:17:40]requested_item shift.open_date is exist - process it [17:17:40]req_shift_open_date [17:17:40]req_shift_open_date done [17:17:40]produce_requested_data done [17:17:40]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76894,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [17:17:40]process_action_free close_receipt [17:17:40]json_value_free [17:17:40]json_value_free done [17:17:40]process_json_proto returns [17:17:40]Send response to host [17:17:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76894,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [17:17:40]free response buf [17:17:40]execute_script done [17:17:40]execute_script returns [17:17:40]free content buf [17:17:40]Sock 8.Close socket [17:17:40]Sock 8.Thread stoped [17:17:44]OFD Sender: No OFD packet to send [17:17:49]OFD Sender: No OFD packet to send [17:17:54]OFD Sender: No OFD packet to send [17:17:59]OFD Sender: No OFD packet to send [17:18:04]OFD Sender: No OFD packet to send [17:18:09]OFD Sender: No OFD packet to send [17:18:14]OFD Sender: No OFD packet to send [17:18:19]OFD Sender: No OFD packet to send [17:18:24]OFD Sender: No OFD packet to send [17:18:29]OFD Sender: No OFD packet to send [17:18:34]OFD Sender: No OFD packet to send [17:18:39]OFD Sender: No OFD packet to send [17:18:44]OFD Sender: No OFD packet to send [17:18:49]OFD Sender: No OFD packet to send [17:18:54]OFD Sender: No OFD packet to send [17:18:59]OFD Sender: No OFD packet to send [17:19:04]OFD Sender: No OFD packet to send [17:19:09]OFD Sender: No OFD packet to send [17:19:10]accept exits with 9 [17:19:10]New connection [17:19:10]New thread 3066944868 created [17:19:10]Thread 3066801508 joined [17:19:10]Waiting for new connection... [17:19:10] Sock 9.Parse request [17:19:10]Sock 9.Check first char [17:19:10]Sock 9.First char is OK [17:19:10]request: POST /json_proto HTTP/1.0 [17:19:10]Method: POST [17:19:10]URL: /json_proto [17:19:10]Method is POST - this is cgi request [17:19:10]url: /json_proto [17:19:10]query_string will be loaded in cgi processing [17:19:10]execute_cgi json_proto POST (null) [17:19:10]execute_cgi path=json_proto method=POST [17:19:10]POST find Content-Length [17:19:10]Host: 172.17.62.5:8080 [17:19:10]Content-Length: 806 [17:19:10]Content-Type: application/json [17:19:10] [17:19:10]POST finish read [17:19:10]Found Content-Length = 806 [17:19:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191440", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 10.980, "sum" : 800.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 800.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:10]execute_script... [17:19: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)191440", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 10.980, "sum" : 800.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 800.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:10]POST & json_proto [17:19:10]process_json_proto [17:19:10]json parsed OK: [17:19:10]protocol is kg_v1.0 [17:19:10]action value=close_receipt [17:19:10]process_action close_receipt [17:19:10]cmd_close_receipt [17:19:10]MH_GetDate [17:19:10]Write to MH i2c: F0 00 00 30 01 20 [17:19:10]Write i2c OK [17:19:10]MH_I2C_Read... [17:19:10]Read from MH i2c: F0 [17:19:10]MH_I2C_Read... [17:19:10]Read from MH i2c: F0 09 00 [17:19:10]MH_I2C_Read... [17:19:10]Read from MH i2c: F0 09 00 30 01 00 8E 4A 25 66 F4 E9 65 64 32 [17:19:10]GetLastDocTimeStamp 1713719856 [17:19:10]current date 1713719950 [17:19:10]FM_GetShiftState [17:19:10]SAM_PROTO_GetShiftState [17:19:10]wFMCommunicate request_size=4 [17:19:10]MH_SAM_APDU [17:19:10]CAPDU: 80 13 01 00 [17:19:10]Write to MH i2c: E2 08 00 31 01 80 13 01 00 00 00 00 00 AF [17:19:10]Write i2c OK [17:19:10]MH_I2C_Read... [17:19:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:10]Read from MH i2c: E2 [17:19:10]MH_I2C_Read... [17:19:10]Read from MH i2c: E2 0E 00 [17:19:10]MH_I2C_Read... [17:19:10]Read from MH i2c: E2 0E 00 31 01 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 F6 [17:19:10]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [17:19:10]wFMCommunicate OK [17:19:10]SAM_PROTO_GetShiftState done [17:19:10]FM_GetShiftState done [17:19:10]opened in 1713658965 [17:19:10]opened+sec_in_day 1713745365 [17:19:10]quantity*price = 80044 [17:19:10]sum+1 = 80045 [17:19:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.44 НСП 1% : 7.08 НДС 12% : 85.00 Наличными: 0.00 Безнал.: 800.44 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 151 21.04.2024 17:19 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 76895 ФПД: 222972207420482 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T171910&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76895&fm=222972207420482&tin=02508201610067®Number=0000000000091573&sum=80044 [17:19:11]StoreToDocumentArchive [17:19:11]shift 372 fd 76895 [17:19:11]save to /storage/0372/doc_00076895 [17:19:11]save last doc name /storage/0372/doc_00076895 to /storage/kkm_last_doc_name [17:19:11]save OK [17:19:11]Clear old archive folders... [17:19:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:19:11]tlvbuf is 00C7BB70 [17:19:11]SAM_PROTO_ClearQueue [17:19:11]wFMCommunicate request_size=4 [17:19:11]MH_SAM_APDU [17:19:11]CAPDU: 80 09 00 00 [17:19:11]Write to MH i2c: E2 08 00 3E 01 80 09 00 00 00 00 00 00 B1 [17:19:11]Write i2c OK [17:19:11]MH_I2C_Read... [17:19:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:19:11]Read from MH i2c: E2 [17:19:11]MH_I2C_Read... [17:19:11]Read from MH i2c: E2 03 00 [17:19:11]MH_I2C_Read... [17:19:11]Read from MH i2c: E2 03 00 3E 01 00 90 00 B3 [17:19:11]RAPDU: 90 00 [17:19:11]wFMCommunicate OK [17:19:11]SAM_PROTO_ClearQueue done [17:19:11]KKMCreateOFDPacket [17:19:11]OFDProtocolAddRootSTLVToBuf [17:19:11]FM_MakeSignedData [17:19:11]FM_MakeSignedData [17:19:11]SAM_PROTO_SignData [17:19:11]wFMCommunicate request_size=4 [17:19:11]MH_SAM_APDU [17:19:11]CAPDU: 80 0D 01 02 [17:19:11]Write to MH i2c: E2 08 00 3F 01 80 0D 01 02 00 00 00 00 B9 [17:19:11]Write i2c OK [17:19:11]MH_I2C_Read... [17:19:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:19:11]Read from MH i2c: E2 [17:19:11]MH_I2C_Read... [17:19:11]Read from MH i2c: E2 03 00 [17:19:11]MH_I2C_Read... [17:19:11]Read from MH i2c: E2 03 00 3F 01 00 90 00 B4 [17:19:11]RAPDU: 90 00 [17:19:11]wFMCommunicate OK [17:19:11]wFMCommunicate request_size=255 [17:19:11]MH_SAM_APDU [17:19: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 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 2A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AC 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 8E 4A 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 5F 2C 01 00 35 04 06 00 CA [17:19:11]Write to MH i2c: E2 02 01 40 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 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 2A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AC 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 8E 4A 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 5F 2C 01 00 35 04 06 00 CA 00 00 FA [17:19:11]Write i2c OK [17:19:11]MH_I2C_Read... [17:19:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:11]Read from MH i2c: E2 [17:19:11]MH_I2C_Read... [17:19:11]Read from MH i2c: E2 03 00 [17:19:11]MH_I2C_Read... [17:19:11]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [17:19:11]RAPDU: 90 00 [17:19:11]wFMCommunicate OK [17:19:11]wFMCommunicate request_size=10 [17:19:11]MH_SAM_APDU [17:19:11]CAPDU: 80 0D 02 02 05 CA C3 37 D4 42 [17:19:11]Write to MH i2c: E2 0D 00 41 01 80 0D 02 02 05 00 CA C3 37 D4 42 00 00 A0 [17:19:11]Write i2c OK [17:19:11]MH_I2C_Read... [17:19:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:11]Read from MH i2c: E2 [17:19:11]MH_I2C_Read... [17:19:11]Read from MH i2c: E2 03 00 [17:19:11]MH_I2C_Read... [17:19:11]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [17:19:11]RAPDU: 90 00 [17:19:11]wFMCommunicate OK [17:19:11]wFMCommunicate request_size=4 [17:19:11]MH_SAM_APDU [17:19:11]CAPDU: 80 0D 03 02 [17:19:11]Write to MH i2c: E2 08 00 42 01 80 0D 03 02 00 00 00 00 BE [17:19:11]Write i2c OK [17:19:11]MH_I2C_Read... [17:19:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:19:11]Read from MH i2c: E2 [17:19:11]MH_I2C_Read... [17:19:11]Read from MH i2c: E2 0B 00 [17:19:11]MH_I2C_Read... [17:19:11]Read from MH i2c: E2 0B 00 42 01 00 EE 0D C7 6D 2B 99 84 82 90 00 B8 [17:19:11]RAPDU: EE 0D C7 6D 2B 99 84 82 90 00 [17:19:11]wFMCommunicate OK [17:19:11]SAM_PROTO_SignData done [17:19:11]FM_MakeSignedData done [17:19:11]CreateOFDProtocolMessage [17:19:11]wFMCommunicate request_size=4 [17:19:11]MH_SAM_APDU [17:19:11]CAPDU: 80 11 00 00 [17:19:11]Write to MH i2c: E2 08 00 43 01 80 11 00 00 00 00 00 00 BE [17:19:11]Write i2c OK [17:19:11]MH_I2C_Read... [17:19:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:11]Read from MH i2c: E2 [17:19:11]MH_I2C_Read... [17:19:11]Read from MH i2c: E2 17 00 [17:19:11]MH_I2C_Read... [17:19:11]Read from MH i2c: E2 17 00 43 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 11 [17:19:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:19:11]wFMCommunicate OK [17:19:11]CreateOFDProtocolMessage done [17:19:11]OFDSenderStorePacket 76895 [17:19:11]StoreOFDPacket docnum=76895 [17:19:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 E2 BD 07 01 47 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AC 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 8E 4A 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 5F 2C 01 00 35 04 06 00 CA CA C3 37 D4 42 EE 0D C7 6D 2B 99 84 82 [17:19:11]CheckFolder [17:19:11]dirname=/storage/ofd_packets [17:19:11]CheckFolder done [17:19:11]ProducePacketName [17:19:11]name=ofd_packets/00076895 [17:19:11]NVStorageSaveData ofd_packets/00076895 [17:19:11]File name is /storage/ofd_packets/00076895 [17:19:11]Write 301 bytes [17:19:11]NVStorageSaveData done [17:19:11]OFDSenderStorePacket done [17:19:11]KKMCreateOFDPacket done [17:19:11]NVStorageSaveData kkm_last_timestamp [17:19:11]File name is /storage/kkm_last_timestamp [17:19:11]Write 4 bytes [17:19:11]NVStorageSaveData done [17:19:11]ExternCall_PrintAddStr [17:19:11]wPrintStart [17:19:11]Write to MH i2c: 01 00 00 44 01 45 [17:19:11]Write i2c OK [17:19:11]MH_I2C_Read... [17:19:11]Read from MH i2c: 01 [17:19:11]MH_I2C_Read... [17:19:11]Read from MH i2c: 01 07 00 [17:19:11]MH_I2C_Read... [17:19:11]Read from MH i2c: 01 07 00 44 01 00 00 00 00 00 FF 0F 5A [17:19:11]RasterBufferAndPrint [17:19:11]line Счет N : (1)191440 [17:19:11]line ИНН: 02508201610067 [17:19:11]line Контрольно-Кассовый Чек [17:19:11]line ПРОДАЖА [17:19:11]line ТРК (МРК, ГНК) : 42 [17:19:11]line Товар: 2710124500 [17:19:11]line Аи-95-К-5 [17:19:11]line 10.980 * 72.90 [17:19:11]line = 800.44 [17:19:11]line НДС 12% НСП 1% [17:19:11]line > о реализуемом товаре [17:19:11]line ИТОГО: 800.44 [17:19:11]line НСП 1% : 7.08 [17:19:11]line НДС 12% : 85.00 [17:19:11]line Наличными: 0.00 [17:19:11]line Безнал.: 800.44 [17:19:11]line Место: АЗС № 106 "Партнер Нефть" [17:19:11]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [17:19:11]line СНО: Общий режим [17:19:11]line Чек 151 21.04.2024 17:19 [17:19:11]line Смена: 372 ФФД: 1.0 [17:19:11]line ЗНМ: 0300000141 [17:19:11]line РНМ: 0000000000091573 [17:19:11]line Версия ККМ: 001 [17:19:11]line Платежная система: О! деньги [17:19:11]line ФМ: 0000000000874652 [17:19:11]line ФД: 76895 [17:19:11]line ФПД: 222972207420482 [17:19:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T171910&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76895&fm=222972207420482&tin=02508201610067®Number=0000000000091573&sum=80044 [17:19:12]OFD Sender: Processing packet 76895 [packets to send 129, broken 128] [17:19:12]ProducePacketName [17:19:12]name=ofd_packets/00076895 [17:19:12]OFD Sender: To server: pG, [17:19:12]CommunicateWithHost lk.salyk.kg:30040 [17:19:12]ConnectInit lk.salyk.kg [17:19:12]written 0, free lines is 4095 [17:19:12]Connected sock=10 [17:19:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 E2 BD 07 01 47 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AC 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 8E 4A 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 5F 2C 01 00 35 04 06 00 CA CA C3 37 D4 42 EE 0D C7 6D 2B 99 84 82 [17:19:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 C0 69 47 00 2F 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 5F 2C 01 00 F4 03 04 00 13 F2 24 66 B6 04 01 00 00 2E 00 E3 24 9B A0 4C 2F [17:19:12]CommunicateWithHost err = 0 [17:19:12]CheckOFDResponse [17:19:12]1017 (14) - 77093643461234 [17:19:12]1041 (16) - 0000000000874652 [17:19:12]1040 (4) - 76895 [17:19:12]1012 (4) - 21.04.2024 11:01 [17:19:12]1206 (1) - 0 [17:19:12]OFD Sender: Remove packet 76895 [17:19:12]ProducePacketName [17:19:12]name=ofd_packets/00076895 [17:19:12]NVStorageDeleteData [17:19:12]Write to MH i2c: 01 00 00 6D 01 6E [17:19:12]Write i2c OK [17:19:12]MH_I2C_Read... [17:19:12]Read from MH i2c: 01 [17:19:12]MH_I2C_Read... [17:19:12]Read from MH i2c: 01 07 00 [17:19:12]MH_I2C_Read... [17:19:12]Read from MH i2c: 01 07 00 6D 01 00 00 00 00 00 FB 0C 7C [17:19:12]RasterBufferAndPrint [17:19:12]line [17:19:12]line [17:19:12]line [17:19:12]line [17:19:12]line [17:19:12]written 0, free lines is 3329 [17:19:12]MH_Cut [17:19:12]Write to MH i2c: D1 01 00 74 01 01 47 [17:19:12]Write i2c OK [17:19:12]MH_I2C_Read... [17:19:12]Read from MH i2c: D1 [17:19:12]MH_I2C_Read... [17:19:12]Read from MH i2c: D1 01 00 [17:19:12]MH_I2C_Read... [17:19:12]Read from MH i2c: D1 01 00 74 01 00 46 [17:19:12]Write to MH i2c: 01 00 00 75 01 76 [17:19:12]Write i2c OK [17:19:12]MH_I2C_Read... [17:19:13]OFD Sender: No OFD packet to send [17:19:13]*** Cut start [17:19:13]*** Partial cut [17:19:13]*** CUTSNS_PIN = 1 [17:19:13]*** CUTSNS_PIN = 0 [17:19:13]*** Brake cut motor [17:19:14]Read from MH i2c: 01 [17:19:14]MH_I2C_Read... [17:19:14]*** Stop cut motor [17:19:14]*** Cut end [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 75 01 00 00 00 00 00 FF 0F 8B [17:19:14]process_action close_receipt done [17:19:14]requested_data is exist [17:19:14]produce_requested_data [17:19:14]requested_item fm.sn is exist - process it [17:19:14]wFMCommunicate request_size=4 [17:19:14]MH_SAM_APDU [17:19:14]CAPDU: 80 11 00 00 [17:19:14]Write to MH i2c: E2 08 00 76 01 80 11 00 00 00 00 00 00 F1 [17:19:14]Write i2c OK [17:19:14]MH_I2C_Read... [17:19:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:14]Read from MH i2c: E2 [17:19:14]MH_I2C_Read... [17:19:14]Read from MH i2c: E2 17 00 [17:19:14]MH_I2C_Read... [17:19:14]Read from MH i2c: E2 17 00 76 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 44 [17:19:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:19:14]wFMCommunicate OK [17:19:14]requested_item fd.num is exist - process it [17:19:14]SAM_PROTO_GetFieldsCounters [17:19:14]wFMCommunicate request_size=4 [17:19:14]MH_SAM_APDU [17:19:14]CAPDU: 80 13 00 00 [17:19:14]Write to MH i2c: E2 08 00 77 01 80 13 00 00 00 00 00 00 F4 [17:19:14]Write i2c OK [17:19:14]MH_I2C_Read... [17:19:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:19:14]Read from MH i2c: E2 [17:19:14]MH_I2C_Read... [17:19:14]Read from MH i2c: E2 62 00 [17:19:14]MH_I2C_Read... [17:19:14]Read from MH i2c: E2 62 00 77 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 5F 2C 01 00 0E 04 04 00 74 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 DB [17:19: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 5F 2C 01 00 0E 04 04 00 74 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 [17:19:14]wFMCommunicate OK [17:19:14]SAM_PROTO_GetFieldsCounters done [17:19:14]requested_item shift.num is exist - process it [17:19:14]requested_item shift.opened is exist - process it [17:19:14]req_shift_opened [17:19:14]FM_GetShiftState [17:19:14]SAM_PROTO_GetShiftState [17:19:14]wFMCommunicate request_size=4 [17:19:14]MH_SAM_APDU [17:19:14]CAPDU: 80 13 01 00 [17:19:14]Write to MH i2c: E2 08 00 78 01 80 13 01 00 00 00 00 00 F6 [17:19:14]Write i2c OK [17:19:14]MH_I2C_Read... [17:19:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:14]Read from MH i2c: E2 [17:19:14]MH_I2C_Read... [17:19:14]Read from MH i2c: E2 0E 00 [17:19:14]MH_I2C_Read... [17:19:14]Read from MH i2c: E2 0E 00 78 01 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 3D [17:19:14]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [17:19:14]wFMCommunicate OK [17:19:14]SAM_PROTO_GetShiftState done [17:19:14]FM_GetShiftState done [17:19:14]req_shift_opened done [17:19:14]requested_item shift.open_date is exist - process it [17:19:14]req_shift_open_date [17:19:14]req_shift_open_date done [17:19:14]produce_requested_data done [17:19:14]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76895,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [17:19:14]process_action_free close_receipt [17:19:14]json_value_free [17:19:14]json_value_free done [17:19:14]process_json_proto returns [17:19:14]Send response to host [17:19:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76895,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [17:19:14]free response buf [17:19:14]execute_script done [17:19:14]execute_script returns [17:19:14]free content buf [17:19:14]Sock 9.Close socket [17:19:14]Sock 9.Thread stoped [17:19:18]OFD Sender: No OFD packet to send [17:19:23]OFD Sender: No OFD packet to send [17:19:28]OFD Sender: No OFD packet to send [17:19:33]OFD Sender: No OFD packet to send [17:19:38]OFD Sender: No OFD packet to send [17:19:43]OFD Sender: No OFD packet to send [17:19:48]OFD Sender: No OFD packet to send [17:19:53]OFD Sender: No OFD packet to send [17:19:58]OFD Sender: No OFD packet to send [17:20:03]OFD Sender: No OFD packet to send [17:20:08]OFD Sender: No OFD packet to send [17:20:13]OFD Sender: No OFD packet to send [17:20:18]OFD Sender: No OFD packet to send [17:20:23]OFD Sender: No OFD packet to send [17:20:28]OFD Sender: No OFD packet to send [17:20:33]OFD Sender: No OFD packet to send [17:20:38]OFD Sender: No OFD packet to send [17:20:43]OFD Sender: No OFD packet to send [17:20:48]OFD Sender: No OFD packet to send [17:20:53]OFD Sender: No OFD packet to send [17:20:58]OFD Sender: No OFD packet to send [17:21:03]OFD Sender: No OFD packet to send [17:21:08]OFD Sender: No OFD packet to send [17:21:13]OFD Sender: No OFD packet to send [17:21:18]OFD Sender: No OFD packet to send [17:21:23]OFD Sender: No OFD packet to send [17:21:28]OFD Sender: No OFD packet to send [17:21:33]OFD Sender: No OFD packet to send [17:21:38]OFD Sender: No OFD packet to send [17:21:43]OFD Sender: No OFD packet to send [17:21:47]accept exits with 8 [17:21:47]New connection [17:21:47]New thread 3066801508 created [17:21:47]Thread 3066944868 joined [17:21:47]Waiting for new connection... [17:21:47] Sock 8.Parse request [17:21:47]Sock 8.Check first char [17:21:47]Sock 8.First char is OK [17:21:47]request: POST /json_proto HTTP/1.0 [17:21:47]Method: POST [17:21:47]URL: /json_proto [17:21:47]Method is POST - this is cgi request [17:21:47]url: /json_proto [17:21:47]query_string will be loaded in cgi processing [17:21:47]execute_cgi json_proto POST (null) [17:21:47]execute_cgi path=json_proto method=POST [17:21:47]POST find Content-Length [17:21:47]Host: 172.17.62.5:8080 [17:21:47]Content-Length: 990 [17:21:47]Content-Type: application/json [17:21:47] [17:21:47]POST finish read [17:21:47]Found Content-Length = 990 [17:21:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 31.550, "sum" : 1000.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 31.55 \u0441\u043E\u043C", "deposit" : 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:21:47]execute_script... [17:21: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)191438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 31.550, "sum" : 1000.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 31.55 \u0441\u043E\u043C", "deposit" : 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:21:47]POST & json_proto [17:21:47]process_json_proto [17:21:47]json parsed OK: [17:21:47]protocol is kg_v1.0 [17:21:47]action value=close_receipt [17:21:47]process_action close_receipt [17:21:47]cmd_close_receipt [17:21:47]MH_GetDate [17:21:47]Write to MH i2c: F0 00 00 79 01 69 [17:21:47]Write i2c OK [17:21:47]MH_I2C_Read... [17:21:47]Read from MH i2c: F0 [17:21:47]MH_I2C_Read... [17:21:47]Read from MH i2c: F0 09 00 [17:21:47]MH_I2C_Read... [17:21:47]Read from MH i2c: F0 09 00 79 01 00 2C 4B 25 66 F4 E9 65 64 1A [17:21:47]GetLastDocTimeStamp 1713719950 [17:21:47]current date 1713720108 [17:21:47]FM_GetShiftState [17:21:47]SAM_PROTO_GetShiftState [17:21:47]wFMCommunicate request_size=4 [17:21:47]MH_SAM_APDU [17:21:47]CAPDU: 80 13 01 00 [17:21:47]Write to MH i2c: E2 08 00 7A 01 80 13 01 00 00 00 00 00 F8 [17:21:47]Write i2c OK [17:21:47]MH_I2C_Read... [17:21:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:48]Read from MH i2c: E2 [17:21:48]MH_I2C_Read... [17:21:48]Read from MH i2c: E2 0E 00 [17:21:48]MH_I2C_Read... [17:21:48]Read from MH i2c: E2 0E 00 7A 01 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 3F [17:21:48]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [17:21:48]wFMCommunicate OK [17:21:48]SAM_PROTO_GetShiftState done [17:21:48]FM_GetShiftState done [17:21:48]opened in 1713658965 [17:21:48]opened+sec_in_day 1713745365 [17:21:48]quantity*price = 100013 [17:21:48]sum+1 = 100015 [17:21:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 152 21.04.2024 17:21 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 31.55 сом ФМ: 0000000000874652 ФД: 76896 ФПД: 65334030307132 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T172148&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76896&fm=65334030307132&tin=02508201610067®Number=0000000000091573&sum=100000 [17:21:49]StoreToDocumentArchive [17:21:49]shift 372 fd 76896 [17:21:49]save to /storage/0372/doc_00076896 [17:21:49]save last doc name /storage/0372/doc_00076896 to /storage/kkm_last_doc_name [17:21:49]save OK [17:21:49]Clear old archive folders... [17:21:49]ProcessDocumentItem done err = 0, tmpTLVsize=250 [17:21:49]tlvbuf is 00C6B1A0 [17:21:49]SAM_PROTO_ClearQueue [17:21:49]wFMCommunicate request_size=4 [17:21:49]MH_SAM_APDU [17:21:49]CAPDU: 80 09 00 00 [17:21:49]Write to MH i2c: E2 08 00 87 01 80 09 00 00 00 00 00 00 FA [17:21:49]Write i2c OK [17:21:49]MH_I2C_Read... [17:21:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:21:49]Read from MH i2c: E2 [17:21:49]MH_I2C_Read... [17:21:49]Read from MH i2c: E2 03 00 [17:21:49]MH_I2C_Read... [17:21:49]Read from MH i2c: E2 03 00 87 01 00 90 00 FC [17:21:49]RAPDU: 90 00 [17:21:49]wFMCommunicate OK [17:21:49]SAM_PROTO_ClearQueue done [17:21:49]KKMCreateOFDPacket [17:21:49]OFDProtocolAddRootSTLVToBuf [17:21:49]FM_MakeSignedData [17:21:49]FM_MakeSignedData [17:21:49]SAM_PROTO_SignData [17:21:49]wFMCommunicate request_size=4 [17:21:49]MH_SAM_APDU [17:21:49]CAPDU: 80 0D 01 02 [17:21:49]Write to MH i2c: E2 08 00 88 01 80 0D 01 02 00 00 00 00 02 [17:21:49]Write i2c OK [17:21:49]MH_I2C_Read... [17:21:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:21:49]Read from MH i2c: E2 [17:21:49]MH_I2C_Read... [17:21:49]Read from MH i2c: E2 03 00 [17:21:49]MH_I2C_Read... [17:21:49]Read from MH i2c: E2 03 00 88 01 00 90 00 FD [17:21:49]RAPDU: 90 00 [17:21:49]wFMCommunicate OK [17:21:49]wFMCommunicate request_size=255 [17:21:49]MH_SAM_APDU [17:21:49]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 2C 4B 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 60 2C 01 00 35 04 06 00 3B 6B [17:21:49]Write to MH i2c: E2 02 01 89 01 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 2C 4B 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 60 2C 01 00 35 04 06 00 3B 6B 00 00 BD [17:21:49]Write i2c OK [17:21:49]MH_I2C_Read... [17:21:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:49]Read from MH i2c: E2 [17:21:49]MH_I2C_Read... [17:21:49]Read from MH i2c: E2 03 00 [17:21:49]MH_I2C_Read... [17:21:49]Read from MH i2c: E2 03 00 89 01 00 90 00 FE [17:21:49]RAPDU: 90 00 [17:21:49]wFMCommunicate OK [17:21:49]wFMCommunicate request_size=9 [17:21:49]MH_SAM_APDU [17:21:49]CAPDU: 80 0D 02 02 04 C3 AB 0F 3C [17:21:49]Write to MH i2c: E2 0C 00 8A 01 80 0D 02 02 04 00 C3 AB 0F 3C 00 00 C6 [17:21:49]Write i2c OK [17:21:49]MH_I2C_Read... [17:21:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:49]Read from MH i2c: E2 [17:21:49]MH_I2C_Read... [17:21:49]Read from MH i2c: E2 03 00 [17:21:49]MH_I2C_Read... [17:21:49]Read from MH i2c: E2 03 00 8A 01 00 90 00 FF [17:21:49]RAPDU: 90 00 [17:21:49]wFMCommunicate OK [17:21:49]wFMCommunicate request_size=4 [17:21:49]MH_SAM_APDU [17:21:49]CAPDU: 80 0D 03 02 [17:21:49]Write to MH i2c: E2 08 00 8B 01 80 0D 03 02 00 00 00 00 07 [17:21:49]Write i2c OK [17:21:49]MH_I2C_Read... [17:21:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:21:49]Read from MH i2c: E2 [17:21:49]MH_I2C_Read... [17:21:49]Read from MH i2c: E2 0B 00 [17:21:49]MH_I2C_Read... [17:21:49]Read from MH i2c: E2 0B 00 8B 01 00 0E 14 4C 14 7F 04 73 52 90 00 D2 [17:21:49]RAPDU: 0E 14 4C 14 7F 04 73 52 90 00 [17:21:49]wFMCommunicate OK [17:21:49]SAM_PROTO_SignData done [17:21:49]FM_MakeSignedData done [17:21:49]CreateOFDProtocolMessage [17:21:49]wFMCommunicate request_size=4 [17:21:49]MH_SAM_APDU [17:21:49]CAPDU: 80 11 00 00 [17:21:49]Write to MH i2c: E2 08 00 8C 01 80 11 00 00 00 00 00 00 07 [17:21:49]Write i2c OK [17:21:49]MH_I2C_Read... [17:21:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:49]Read from MH i2c: E2 [17:21:49]MH_I2C_Read... [17:21:49]Read from MH i2c: E2 17 00 [17:21:49]MH_I2C_Read... [17:21:49]Read from MH i2c: E2 17 00 8C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 5A [17:21:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:21:49]wFMCommunicate OK [17:21:49]CreateOFDProtocolMessage done [17:21:49]OFDSenderStorePacket 76896 [17:21:49]StoreOFDPacket docnum=76896 [17:21:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 7D D0 06 01 D2 D6 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 2C 4B 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 60 2C 01 00 35 04 06 00 3B 6B C3 AB 0F 3C 0E 14 4C 14 7F 04 73 52 [17:21:49]CheckFolder [17:21:49]dirname=/storage/ofd_packets [17:21:49]CheckFolder done [17:21:49]ProducePacketName [17:21:49]name=ofd_packets/00076896 [17:21:49]NVStorageSaveData ofd_packets/00076896 [17:21:49]File name is /storage/ofd_packets/00076896 [17:21:49]Write 300 bytes [17:21:49]NVStorageSaveData done [17:21:49]OFDSenderStorePacket done [17:21:49]KKMCreateOFDPacket done [17:21:49]NVStorageSaveData kkm_last_timestamp [17:21:49]File name is /storage/kkm_last_timestamp [17:21:49]Write 4 bytes [17:21:49]NVStorageSaveData done [17:21:49]ExternCall_PrintAddStr [17:21:49]wPrintStart [17:21:49]Write to MH i2c: 01 00 00 8D 01 8E [17:21:49]Write i2c OK [17:21:49]MH_I2C_Read... [17:21:49]Read from MH i2c: 01 [17:21:49]MH_I2C_Read... [17:21:49]Read from MH i2c: 01 07 00 [17:21:49]MH_I2C_Read... [17:21:49]Read from MH i2c: 01 07 00 8D 01 00 00 00 00 00 FF 0F A3 [17:21:49]RasterBufferAndPrint [17:21:49]line Счет N : (1)191438 [17:21:49]line ИНН: 02508201610067 [17:21:49]line Контрольно-Кассовый Чек [17:21:49]line ПРОДАЖА [17:21:49]line ТРК (МРК, ГНК) : 71 [17:21:49]line Товар: 2711190000 [17:21:49]line ГАЗ-К-5 [17:21:49]line 31.550 * 31.70 [17:21:49]line = 1000.14 [17:21:49]line НДС 12% НСП 1% [17:21:49]line > о реализуемом товаре [17:21:49]line ОКРУГЛЕНИЕ: -0.14 [17:21:49]line ИТОГО: 1000.00 [17:21:49]line Внесено: 1000.00 [17:21:49]line СДАЧА: 0.00 [17:21:49]line НСП 1% : 8.85 [17:21:49]line НДС 12% : 106.21 [17:21:49]line Наличными: 1000.00 [17:21:49]line Безнал.: 0.00 [17:21:49]line Место: АЗС № 106 "Партнер Нефть" [17:21:49]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [17:21:49]line СНО: Общий режим [17:21:49]line Чек 152 21.04.2024 17:21 [17:21:49]line Смена: 372 ФФД: 1.0 [17:21:49]line ЗНМ: 0300000141 [17:21:49]line РНМ: 0000000000091573 [17:21:49]line Версия ККМ: 001 [17:21:49]line [17:21:49]line Дисконтная программа [17:21:49]line СУГ [17:21:49]line номер 106 [17:21:49]line сэкономлено 31.55 сом [17:21:49]line ФМ: 0000000000874652 [17:21:49]line ФД: 76896 [17:21:49]line ФПД: 65334030307132 [17:21:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T172148&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76896&fm=65334030307132&tin=02508201610067®Number=0000000000091573&sum=100000 [17:21:50]OFD Sender: Processing packet 76896 [packets to send 129, broken 128] [17:21:50]ProducePacketName [17:21:50]name=ofd_packets/00076896 [17:21:50]OFD Sender: To server: pG, [17:21:50]CommunicateWithHost lk.salyk.kg:30040 [17:21:50]ConnectInit lk.salyk.kg [17:21:50]written 0, free lines is 4095 [17:21:50]Connected sock=10 [17:21:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 7D D0 06 01 D2 D6 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 2C 4B 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 60 2C 01 00 35 04 06 00 3B 6B C3 AB 0F 3C 0E 14 4C 14 7F 04 73 52 [17:21:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 9D 1A 47 00 70 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 60 2C 01 00 F4 03 04 00 B1 F2 24 66 B6 04 01 00 00 0A 49 10 9D 71 C8 40 02 [17:21:50]CommunicateWithHost err = 0 [17:21:50]CheckOFDResponse [17:21:50]1017 (14) - 77093643461234 [17:21:50]1041 (16) - 0000000000874652 [17:21:50]1040 (4) - 76896 [17:21:50]1012 (4) - 21.04.2024 11:04 [17:21:50]1206 (1) - 0 [17:21:50]OFD Sender: Remove packet 76896 [17:21:50]ProducePacketName [17:21:50]name=ofd_packets/00076896 [17:21:50]NVStorageDeleteData [17:21:50]Write to MH i2c: 01 00 00 BC 01 BD [17:21:50]Write i2c OK [17:21:50]MH_I2C_Read... [17:21:50]Read from MH i2c: 01 [17:21:50]MH_I2C_Read... [17:21:50]Read from MH i2c: 01 07 00 [17:21:50]MH_I2C_Read... [17:21:50]Read from MH i2c: 01 07 00 BC 01 00 00 00 00 00 8A 0C 5A [17:21:50]RasterBufferAndPrint [17:21:50]line [17:21:50]line [17:21:50]line [17:21:50]line [17:21:50]line [17:21:50]written 0, free lines is 3217 [17:21:50]MH_Cut [17:21:50]Write to MH i2c: D1 01 00 C3 01 01 96 [17:21:50]Write i2c OK [17:21:50]MH_I2C_Read... [17:21:50]Read from MH i2c: D1 [17:21:50]MH_I2C_Read... [17:21:50]Read from MH i2c: D1 01 00 [17:21:50]MH_I2C_Read... [17:21:50]Read from MH i2c: D1 01 00 C3 01 00 95 [17:21:50]Write to MH i2c: 01 00 00 C4 01 C5 [17:21:50]Write i2c OK [17:21:50]MH_I2C_Read... [17:21:50]OFD Sender: No OFD packet to send [17:21:51]*** Cut start [17:21:51]*** Partial cut [17:21:51]*** CUTSNS_PIN = 1 [17:21:51]*** CUTSNS_PIN = 0 [17:21:51]*** Brake cut motor [17:21:51]Read from MH i2c: 01 [17:21:51]MH_I2C_Read... [17:21:51]*** Stop cut motor [17:21:51]*** Cut end [17:21:51]Read from MH i2c: 01 07 00 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: 01 07 00 C4 01 00 00 00 00 00 FF 0F DA [17:21:51]process_action close_receipt done [17:21:51]requested_data is exist [17:21:51]produce_requested_data [17:21:51]requested_item fm.sn is exist - process it [17:21:51]wFMCommunicate request_size=4 [17:21:51]MH_SAM_APDU [17:21:51]CAPDU: 80 11 00 00 [17:21:51]Write to MH i2c: E2 08 00 C5 01 80 11 00 00 00 00 00 00 40 [17:21:51]Write i2c OK [17:21:51]MH_I2C_Read... [17:21:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:51]Read from MH i2c: E2 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: E2 17 00 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: E2 17 00 C5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 93 [17:21:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:21:51]wFMCommunicate OK [17:21:51]requested_item fd.num is exist - process it [17:21:51]SAM_PROTO_GetFieldsCounters [17:21:51]wFMCommunicate request_size=4 [17:21:51]MH_SAM_APDU [17:21:51]CAPDU: 80 13 00 00 [17:21:51]Write to MH i2c: E2 08 00 C6 01 80 13 00 00 00 00 00 00 43 [17:21:51]Write i2c OK [17:21:51]MH_I2C_Read... [17:21:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:21:52]Read from MH i2c: E2 [17:21:52]MH_I2C_Read... [17:21:52]Read from MH i2c: E2 62 00 [17:21:52]MH_I2C_Read... [17:21:52]Read from MH i2c: E2 62 00 C6 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 60 2C 01 00 0E 04 04 00 74 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 2E [17:21: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 60 2C 01 00 0E 04 04 00 74 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 [17:21:52]wFMCommunicate OK [17:21:52]SAM_PROTO_GetFieldsCounters done [17:21:52]requested_item shift.num is exist - process it [17:21:52]requested_item shift.opened is exist - process it [17:21:52]req_shift_opened [17:21:52]FM_GetShiftState [17:21:52]SAM_PROTO_GetShiftState [17:21:52]wFMCommunicate request_size=4 [17:21:52]MH_SAM_APDU [17:21:52]CAPDU: 80 13 01 00 [17:21:52]Write to MH i2c: E2 08 00 C7 01 80 13 01 00 00 00 00 00 45 [17:21:52]Write i2c OK [17:21:52]MH_I2C_Read... [17:21:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:52]Read from MH i2c: E2 [17:21:52]MH_I2C_Read... [17:21:52]Read from MH i2c: E2 0E 00 [17:21:52]MH_I2C_Read... [17:21:52]Read from MH i2c: E2 0E 00 C7 01 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 8C [17:21:52]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [17:21:52]wFMCommunicate OK [17:21:52]SAM_PROTO_GetShiftState done [17:21:52]FM_GetShiftState done [17:21:52]req_shift_opened done [17:21:52]requested_item shift.open_date is exist - process it [17:21:52]req_shift_open_date [17:21:52]req_shift_open_date done [17:21:52]produce_requested_data done [17:21:52]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76896,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [17:21:52]process_action_free close_receipt [17:21:52]json_value_free [17:21:52]json_value_free done [17:21:52]process_json_proto returns [17:21:52]Send response to host [17:21:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76896,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [17:21:52]free response buf [17:21:52]execute_script done [17:21:52]execute_script returns [17:21:52]free content buf [17:21:52]Sock 8.Close socket [17:21:52]Sock 8.Thread stoped [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:40]OFD Sender: No OFD packet to send [17:23:46]OFD Sender: No OFD packet to send [17:23:51]OFD Sender: No OFD packet to send [17:23:56]OFD Sender: No OFD packet to send [17:24:01]OFD Sender: No OFD packet to send [17:24:06]OFD Sender: No OFD packet to send [17:24:09]accept exits with 9 [17:24:09]New connection [17:24:09]New thread 3066944868 created [17:24:09]Thread 3066801508 joined [17:24:09]Waiting for new connection... [17:24:09] Sock 9.Parse request [17:24:09]Sock 9.Check first char [17:24:09]Sock 9.First char is OK [17:24:09]request: POST /json_proto HTTP/1.0 [17:24:09]Method: POST [17:24:09]URL: /json_proto [17:24:09]Method is POST - this is cgi request [17:24:09]url: /json_proto [17:24:09]query_string will be loaded in cgi processing [17:24:09]execute_cgi json_proto POST (null) [17:24:09]execute_cgi path=json_proto method=POST [17:24:09]POST find Content-Length [17:24:09]Host: 172.17.62.5:8080 [17:24:09]Content-Length: 942 [17:24:09]Content-Type: application/json [17:24:09] [17:24:09]POST finish read [17:24:09]Found Content-Length = 942 [17:24:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191439", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 200.000, "sum" : 14380.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 200.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 14380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:09]execute_script... [17:24: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)191439", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 200.000, "sum" : 14380.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 200.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 14380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:09]POST & json_proto [17:24:09]process_json_proto [17:24:09]json parsed OK: [17:24:09]protocol is kg_v1.0 [17:24:09]action value=close_receipt [17:24:09]process_action close_receipt [17:24:09]cmd_close_receipt [17:24:09]MH_GetDate [17:24:09]Write to MH i2c: F0 00 00 C8 01 B8 [17:24:09]Write i2c OK [17:24:09]MH_I2C_Read... [17:24:09]Read from MH i2c: F0 [17:24:09]MH_I2C_Read... [17:24:09]Read from MH i2c: F0 09 00 [17:24:09]MH_I2C_Read... [17:24:09]Read from MH i2c: F0 09 00 C8 01 00 BA 4B 25 66 F4 E9 65 64 F7 [17:24:09]GetLastDocTimeStamp 1713720108 [17:24:09]current date 1713720250 [17:24:09]FM_GetShiftState [17:24:09]SAM_PROTO_GetShiftState [17:24:09]wFMCommunicate request_size=4 [17:24:09]MH_SAM_APDU [17:24:09]CAPDU: 80 13 01 00 [17:24:09]Write to MH i2c: E2 08 00 C9 01 80 13 01 00 00 00 00 00 47 [17:24:09]Write i2c OK [17:24:09]MH_I2C_Read... [17:24:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:09]Read from MH i2c: E2 [17:24:09]MH_I2C_Read... [17:24:09]Read from MH i2c: E2 0E 00 [17:24:09]MH_I2C_Read... [17:24:09]Read from MH i2c: E2 0E 00 C9 01 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 8E [17:24:09]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [17:24:09]wFMCommunicate OK [17:24:09]SAM_PROTO_GetShiftState done [17:24:09]FM_GetShiftState done [17:24:09]opened in 1713658965 [17:24:09]opened+sec_in_day 1713745365 [17:24:09]quantity*price = 1438000 [17:24:09]sum+1 = 1438001 [17:24:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 14380.00 НСП 1% : 127.26 НДС 12% : 1527.08 Наличными: 14380.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 153 21.04.2024 17:24 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 200.00 сом ФМ: 0000000000874652 ФД: 76897 ФПД: 177468940868476 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T172410&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76897&fm=177468940868476&tin=02508201610067®Number=0000000000091573&sum=1438000 [17:24:10]StoreToDocumentArchive [17:24:10]shift 372 fd 76897 [17:24:10]save to /storage/0372/doc_00076897 [17:24:10]save last doc name /storage/0372/doc_00076897 to /storage/kkm_last_doc_name [17:24:10]save OK [17:24:10]Clear old archive folders... [17:24:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:24:10]tlvbuf is 00C95160 [17:24:10]SAM_PROTO_ClearQueue [17:24:10]wFMCommunicate request_size=4 [17:24:10]MH_SAM_APDU [17:24:10]CAPDU: 80 09 00 00 [17:24:10]Write to MH i2c: E2 08 00 D6 01 80 09 00 00 00 00 00 00 49 [17:24:10]Write i2c OK [17:24:10]MH_I2C_Read... [17:24:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:10]Read from MH i2c: E2 [17:24:10]MH_I2C_Read... [17:24:10]Read from MH i2c: E2 03 00 [17:24:10]MH_I2C_Read... [17:24:10]Read from MH i2c: E2 03 00 D6 01 00 90 00 4B [17:24:10]RAPDU: 90 00 [17:24:10]wFMCommunicate OK [17:24:10]SAM_PROTO_ClearQueue done [17:24:10]KKMCreateOFDPacket [17:24:10]OFDProtocolAddRootSTLVToBuf [17:24:10]FM_MakeSignedData [17:24:10]FM_MakeSignedData [17:24:10]SAM_PROTO_SignData [17:24:10]wFMCommunicate request_size=4 [17:24:10]MH_SAM_APDU [17:24:10]CAPDU: 80 0D 01 02 [17:24:10]Write to MH i2c: E2 08 00 D7 01 80 0D 01 02 00 00 00 00 51 [17:24:10]Write i2c OK [17:24:10]MH_I2C_Read... [17:24:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:10]Read from MH i2c: E2 [17:24:10]MH_I2C_Read... [17:24:10]Read from MH i2c: E2 03 00 [17:24:10]MH_I2C_Read... [17:24:10]Read from MH i2c: E2 03 00 D7 01 00 90 00 4C [17:24:10]RAPDU: 90 00 [17:24:10]wFMCommunicate OK [17:24:10]wFMCommunicate request_size=255 [17:24:10]MH_SAM_APDU [17:24:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 0D 03 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 30 F1 15 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F1 15 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 31 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 54 02 00 00 00 07 04 06 00 30 F1 15 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 BA 4B 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 61 2C 01 00 35 04 06 00 A1 68 35 2D [17:24:10]Write to MH i2c: E2 02 01 D8 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 0D 03 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 30 F1 15 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F1 15 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 31 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 54 02 00 00 00 07 04 06 00 30 F1 15 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 BA 4B 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 61 2C 01 00 35 04 06 00 A1 68 35 2D 00 00 2A [17:24:10]Write i2c OK [17:24:10]MH_I2C_Read... [17:24:11]OFD Sender: No OFD packet to send [17:24:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:11]Read from MH i2c: E2 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: E2 03 00 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: E2 03 00 D8 01 00 90 00 4D [17:24:11]RAPDU: 90 00 [17:24:11]wFMCommunicate OK [17:24:11]wFMCommunicate request_size=7 [17:24:11]MH_SAM_APDU [17:24:11]CAPDU: 80 0D 02 02 02 DB 7C [17:24:11]Write to MH i2c: E2 0A 00 D9 01 80 0D 02 02 02 00 DB 7C 00 00 AF [17:24:11]Write i2c OK [17:24:11]MH_I2C_Read... [17:24:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:11]Read from MH i2c: E2 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: E2 03 00 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: E2 03 00 D9 01 00 90 00 4E [17:24:11]RAPDU: 90 00 [17:24:11]wFMCommunicate OK [17:24:11]wFMCommunicate request_size=4 [17:24:11]MH_SAM_APDU [17:24:11]CAPDU: 80 0D 03 02 [17:24:11]Write to MH i2c: E2 08 00 DA 01 80 0D 03 02 00 00 00 00 56 [17:24:11]Write i2c OK [17:24:11]MH_I2C_Read... [17:24:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:11]Read from MH i2c: E2 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: E2 0B 00 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: E2 0B 00 DA 01 00 0E 6A 56 09 72 3F 3C 59 90 00 74 [17:24:11]RAPDU: 0E 6A 56 09 72 3F 3C 59 90 00 [17:24:11]wFMCommunicate OK [17:24:11]SAM_PROTO_SignData done [17:24:11]FM_MakeSignedData done [17:24:11]CreateOFDProtocolMessage [17:24:11]wFMCommunicate request_size=4 [17:24:11]MH_SAM_APDU [17:24:11]CAPDU: 80 11 00 00 [17:24:11]Write to MH i2c: E2 08 00 DB 01 80 11 00 00 00 00 00 00 56 [17:24:11]Write i2c OK [17:24:11]MH_I2C_Read... [17:24:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:11]Read from MH i2c: E2 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: E2 17 00 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: E2 17 00 DB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 A9 [17:24:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:24:11]wFMCommunicate OK [17:24:11]CreateOFDProtocolMessage done [17:24:11]OFDSenderStorePacket 76897 [17:24:11]StoreOFDPacket docnum=76897 [17:24:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 86 E6 04 01 EE B8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 0D 03 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 30 F1 15 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F1 15 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 31 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 54 02 00 00 00 07 04 06 00 30 F1 15 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 BA 4B 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 61 2C 01 00 35 04 06 00 A1 68 35 2D DB 7C 0E 6A 56 09 72 3F 3C 59 [17:24:11]CheckFolder [17:24:11]dirname=/storage/ofd_packets [17:24:11]CheckFolder done [17:24:11]ProducePacketName [17:24:11]name=ofd_packets/00076897 [17:24:11]NVStorageSaveData ofd_packets/00076897 [17:24:11]File name is /storage/ofd_packets/00076897 [17:24:11]Write 298 bytes [17:24:11]NVStorageSaveData done [17:24:11]OFDSenderStorePacket done [17:24:11]KKMCreateOFDPacket done [17:24:11]NVStorageSaveData kkm_last_timestamp [17:24:11]File name is /storage/kkm_last_timestamp [17:24:11]Write 4 bytes [17:24:11]NVStorageSaveData done [17:24:11]ExternCall_PrintAddStr [17:24:11]wPrintStart [17:24:11]Write to MH i2c: 01 00 00 DC 01 DD [17:24:11]Write i2c OK [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: 01 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: 01 07 00 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: 01 07 00 DC 01 00 00 00 00 00 FF 0F F2 [17:24:11]RasterBufferAndPrint [17:24:11]line Счет N : (1)191439 [17:24:11]line ИНН: 02508201610067 [17:24:11]line Контрольно-Кассовый Чек [17:24:11]line ПРОДАЖА [17:24:11]line ТРК (МРК, ГНК) : 61 [17:24:11]line Товар: 2710194210 [17:24:11]line ДТ-К-5 [17:24:11]line 200.000 * 71.90 [17:24:11]line = 14380.00 [17:24:11]line НДС 12% НСП 1% [17:24:11]line > о реализуемом товаре [17:24:11]line ИТОГО: 14380.00 [17:24:11]line НСП 1% : 127.26 [17:24:11]line НДС 12% : 1527.08 [17:24:11]line Наличными: 14380.00 [17:24:11]line Безнал.: 0.00 [17:24:11]line Место: АЗС № 106 "Партнер Нефть" [17:24:11]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [17:24:11]line СНО: Общий режим [17:24:11]line Чек 153 21.04.2024 17:24 [17:24:11]line Смена: 372 ФФД: 1.0 [17:24:11]line ЗНМ: 0300000141 [17:24:11]line РНМ: 0000000000091573 [17:24:11]line Версия ККМ: 001 [17:24:11]line [17:24:11]line Дисконтная программа [17:24:11]line ДТ [17:24:11]line номер 106 [17:24:11]line сэкономлено 200.00 сом [17:24:11]line ФМ: 0000000000874652 [17:24:11]line ФД: 76897 [17:24:11]line ФПД: 177468940868476 [17:24:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T172410&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76897&fm=177468940868476&tin=02508201610067®Number=0000000000091573&sum=1438000 [17:24:11]OFD Sender: Processing packet 76897 [packets to send 129, broken 128] [17:24:11]ProducePacketName [17:24:11]name=ofd_packets/00076897 [17:24:11]OFD Sender: To server: pG, [17:24:11]CommunicateWithHost lk.salyk.kg:30040 [17:24:11]ConnectInit lk.salyk.kg [17:24:11]written 0, free lines is 4095 [17:24:12]Write to MH i2c: 01 00 00 08 02 0A [17:24:12]Write i2c OK [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: 01 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: 01 07 00 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: 01 07 00 08 02 00 00 00 00 00 C1 0C DE [17:24:12]RasterBufferAndPrint [17:24:12]line [17:24:12]line [17:24:12]line [17:24:12]line [17:24:12]line [17:24:12]written 0, free lines is 3271 [17:24:12]MH_Cut [17:24:12]Write to MH i2c: D1 01 00 0F 02 01 E3 [17:24:12]Write i2c OK [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: D1 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: D1 01 00 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: D1 01 00 0F 02 00 E2 [17:24:12]Write to MH i2c: 01 00 00 10 02 12 [17:24:12]Write i2c OK [17:24:12]MH_I2C_Read... [17:24:12]Connected sock=11 [17:24:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 86 E6 04 01 EE B8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 0D 03 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 30 F1 15 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F1 15 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 31 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 54 02 00 00 00 07 04 06 00 30 F1 15 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 BA 4B 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 61 2C 01 00 35 04 06 00 A1 68 35 2D DB 7C 0E 6A 56 09 72 3F 3C 59 [17:24:12]*** Cut start [17:24:12]*** Partial cut [17:24:12]*** CUTSNS_PIN = 1 [17:24:12]*** CUTSNS_PIN = 0 [17:24:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 1F DC 47 00 80 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 34 36 35 32 10 04 04 00 61 2C 01 00 F4 03 04 00 40 F3 24 66 B6 04 01 00 00 C3 7B 70 6C 3A 37 2F 57 [17:24:13]CommunicateWithHost err = 0 [17:24:13]CheckOFDResponse [17:24:13]1017 (14) - 77093643461234 [17:24:13]1041 (16) - 0000000000874652 [17:24:13]1040 (4) - 76897 [17:24:13]1012 (4) - 21.04.2024 11:06 [17:24:13]1206 (1) - 0 [17:24:13]OFD Sender: Remove packet 76897 [17:24:13]ProducePacketName [17:24:13]name=ofd_packets/00076897 [17:24:13]NVStorageDeleteData [17:24:13]*** Brake cut motor [17:24:13]Read from MH i2c: 01 [17:24:13]MH_I2C_Read... [17:24:13]*** Stop cut motor [17:24:13]*** Cut end [17:24:13]Read from MH i2c: 01 07 00 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: 01 07 00 10 02 00 00 00 00 00 FF 0F 27 [17:24:13]process_action close_receipt done [17:24:13]requested_data is exist [17:24:13]produce_requested_data [17:24:13]requested_item fm.sn is exist - process it [17:24:13]wFMCommunicate request_size=4 [17:24:13]MH_SAM_APDU [17:24:13]CAPDU: 80 11 00 00 [17:24:13]Write to MH i2c: E2 08 00 11 02 80 11 00 00 00 00 00 00 8D [17:24:13]Write i2c OK [17:24:13]MH_I2C_Read... [17:24:13]OFD Sender: No OFD packet to send [17:24:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:13]Read from MH i2c: E2 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: E2 17 00 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: E2 17 00 11 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 E0 [17:24:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:24:13]wFMCommunicate OK [17:24:13]requested_item fd.num is exist - process it [17:24:13]SAM_PROTO_GetFieldsCounters [17:24:13]wFMCommunicate request_size=4 [17:24:13]MH_SAM_APDU [17:24:13]CAPDU: 80 13 00 00 [17:24:13]Write to MH i2c: E2 08 00 12 02 80 13 00 00 00 00 00 00 90 [17:24:13]Write i2c OK [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: E2 [17:24:13]MH_I2C_Read... [17:24:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:13]Read from MH i2c: E2 62 00 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: E2 62 00 12 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 61 2C 01 00 0E 04 04 00 74 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 7F [17:24: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 61 2C 01 00 0E 04 04 00 74 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 [17:24:13]wFMCommunicate OK [17:24:13]SAM_PROTO_GetFieldsCounters done [17:24:13]requested_item shift.num is exist - process it [17:24:13]requested_item shift.opened is exist - process it [17:24:13]req_shift_opened [17:24:13]FM_GetShiftState [17:24:13]SAM_PROTO_GetShiftState [17:24:13]wFMCommunicate request_size=4 [17:24:13]MH_SAM_APDU [17:24:13]CAPDU: 80 13 01 00 [17:24:13]Write to MH i2c: E2 08 00 13 02 80 13 01 00 00 00 00 00 92 [17:24:13]Write i2c OK [17:24:13]MH_I2C_Read... [17:24:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:13]Read from MH i2c: E2 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: E2 0E 00 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: E2 0E 00 13 02 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 D9 [17:24:13]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [17:24:13]wFMCommunicate OK [17:24:13]SAM_PROTO_GetShiftState done [17:24:13]FM_GetShiftState done [17:24:13]req_shift_opened done [17:24:13]requested_item shift.open_date is exist - process it [17:24:13]req_shift_open_date [17:24:13]req_shift_open_date done [17:24:13]produce_requested_data done [17:24:13]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76897,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [17:24:13]process_action_free close_receipt [17:24:13]json_value_free [17:24:13]json_value_free done [17:24:13]process_json_proto returns [17:24:13]Send response to host [17:24:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76897,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [17:24:13]free response buf [17:24:13]execute_script done [17:24:13]execute_script returns [17:24:13]free content buf [17:24:13]Sock 9.Close socket [17:24:13]Sock 9.Thread stoped [17:24:18]OFD Sender: No OFD packet to send [17:24:23]OFD Sender: No OFD packet to send [17:24:28]OFD Sender: No OFD packet to send [17:24:33]OFD Sender: No OFD packet to send [17:24:38]OFD Sender: No OFD packet to send [17:24:43]OFD Sender: No OFD packet to send [17:24:48]OFD Sender: No OFD packet to send [17:24:53]OFD Sender: No OFD packet to send [17:24:58]OFD Sender: No OFD packet to send [17:25:03]OFD Sender: No OFD packet to send [17:25:08]OFD Sender: No OFD packet to send [17:25:13]OFD Sender: No OFD packet to send [17:25:18]OFD Sender: No OFD packet to send [17:25:23]OFD Sender: No OFD packet to send [17:25:28]OFD Sender: No OFD packet to send [17:25:33]OFD Sender: No OFD packet to send [17:25:38]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:58]OFD Sender: No OFD packet to send [17:26:03]OFD Sender: No OFD packet to send [17:26:08]OFD Sender: No OFD packet to send [17:26:13]OFD Sender: No OFD packet to send [17:26:18]OFD Sender: No OFD packet to send [17:26:23]OFD Sender: No OFD packet to send [17:26:28]OFD Sender: No OFD packet to send [17:26:33]OFD Sender: No OFD packet to send [17:26:38]OFD Sender: No OFD packet to send [17:26:43]OFD Sender: No OFD packet to send [17:26:48]OFD Sender: No OFD packet to send [17:26:53]OFD Sender: No OFD packet to send [17:26:58]OFD Sender: No OFD packet to send [17:27:03]OFD Sender: No OFD packet to send [17:27:08]OFD Sender: No OFD packet to send [17:27:13]OFD Sender: No OFD packet to send [17:27:18]OFD Sender: No OFD packet to send [17:27:23]OFD Sender: No OFD packet to send [17:27:28]OFD Sender: No OFD packet to send [17:27:33]OFD Sender: No OFD packet to send [17:27:38]OFD Sender: No OFD packet to send [17:27:43]OFD Sender: No OFD packet to send [17:27:48]OFD Sender: No OFD packet to send [17:27:53]OFD Sender: No OFD packet to send [17:27:58]OFD Sender: No OFD packet to send [17:28:01]accept exits with 8 [17:28:01]New connection [17:28:01]New thread 3066801508 created [17:28:01]Thread 3066944868 joined [17:28:01]Waiting for new connection... [17:28:01] Sock 8.Parse request [17:28:01]Sock 8.Check first char [17:28:01]Sock 8.First char is OK [17:28:01]request: POST /json_proto HTTP/1.0 [17:28:01]Method: POST [17:28:01]URL: /json_proto [17:28:01]Method is POST - this is cgi request [17:28:01]url: /json_proto [17:28:01]query_string will be loaded in cgi processing [17:28:01]execute_cgi json_proto POST (null) [17:28:01]execute_cgi path=json_proto method=POST [17:28:01]POST find Content-Length [17:28:01]Host: 172.17.62.5:8080 [17:28:01]Content-Length: 682 [17:28:01]Content-Type: application/json [17:28:01] [17:28:01]POST finish read [17:28:01]Found Content-Length = 682 [17:28:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 16.470, "sum" : 1200.66, "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" ] } } [17:28:01]execute_script... [17:28: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)191442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 16.470, "sum" : 1200.66, "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" ] } } [17:28:01]POST & json_proto [17:28:01]process_json_proto [17:28:01]json parsed OK: [17:28:01]protocol is kg_v1.0 [17:28:01]action value=close_receipt [17:28:01]process_action close_receipt [17:28:01]cmd_close_receipt [17:28:01]MH_GetDate [17:28:01]Write to MH i2c: F0 00 00 14 02 05 [17:28:01]Write i2c OK [17:28:01]MH_I2C_Read... [17:28:01]Read from MH i2c: F0 [17:28:01]MH_I2C_Read... [17:28:01]Read from MH i2c: F0 09 00 [17:28:01]MH_I2C_Read... [17:28:01]Read from MH i2c: F0 09 00 14 02 00 A1 4C 25 66 F4 E9 65 64 2C [17:28:01]GetLastDocTimeStamp 1713720250 [17:28:01]current date 1713720481 [17:28:01]FM_GetShiftState [17:28:01]SAM_PROTO_GetShiftState [17:28:01]wFMCommunicate request_size=4 [17:28:01]MH_SAM_APDU [17:28:01]CAPDU: 80 13 01 00 [17:28:01]Write to MH i2c: E2 08 00 15 02 80 13 01 00 00 00 00 00 94 [17:28:01]Write i2c OK [17:28:01]MH_I2C_Read... [17:28:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:01]Read from MH i2c: E2 [17:28:01]MH_I2C_Read... [17:28:01]Read from MH i2c: E2 0E 00 [17:28:01]MH_I2C_Read... [17:28:01]Read from MH i2c: E2 0E 00 15 02 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 DB [17:28:01]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [17:28:01]wFMCommunicate OK [17:28:01]SAM_PROTO_GetShiftState done [17:28:01]FM_GetShiftState done [17:28:01]opened in 1713658965 [17:28:01]opened+sec_in_day 1713745365 [17:28:01]quantity*price = 120066 [17:28:01]sum+1 = 120067 [17:28:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.50 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 154 21.04.2024 17:28 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76898 ФПД: 103351572332040 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T172801&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76898&fm=103351572332040&tin=02508201610067®Number=0000000000091573&sum=120000 [17:28:02]StoreToDocumentArchive [17:28:02]shift 372 fd 76898 [17:28:02]save to /storage/0372/doc_00076898 [17:28:02]save last doc name /storage/0372/doc_00076898 to /storage/kkm_last_doc_name [17:28:02]save OK [17:28:02]Clear old archive folders... [17:28:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:28:02]tlvbuf is B6F539A0 [17:28:02]SAM_PROTO_ClearQueue [17:28:02]wFMCommunicate request_size=4 [17:28:02]MH_SAM_APDU [17:28:02]CAPDU: 80 09 00 00 [17:28:02]Write to MH i2c: E2 08 00 22 02 80 09 00 00 00 00 00 00 96 [17:28:02]Write i2c OK [17:28:02]MH_I2C_Read... [17:28:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:28:02]Read from MH i2c: E2 [17:28:02]MH_I2C_Read... [17:28:02]Read from MH i2c: E2 03 00 [17:28:02]MH_I2C_Read... [17:28:02]Read from MH i2c: E2 03 00 22 02 00 90 00 98 [17:28:02]RAPDU: 90 00 [17:28:02]wFMCommunicate OK [17:28:02]SAM_PROTO_ClearQueue done [17:28:02]KKMCreateOFDPacket [17:28:02]OFDProtocolAddRootSTLVToBuf [17:28:02]FM_MakeSignedData [17:28:02]FM_MakeSignedData [17:28:02]SAM_PROTO_SignData [17:28:02]wFMCommunicate request_size=4 [17:28:02]MH_SAM_APDU [17:28:02]CAPDU: 80 0D 01 02 [17:28:02]Write to MH i2c: E2 08 00 23 02 80 0D 01 02 00 00 00 00 9E [17:28:02]Write i2c OK [17:28:02]MH_I2C_Read... [17:28:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:28:02]Read from MH i2c: E2 [17:28:02]MH_I2C_Read... [17:28:02]Read from MH i2c: E2 03 00 [17:28:02]MH_I2C_Read... [17:28:02]Read from MH i2c: E2 03 00 23 02 00 90 00 99 [17:28:02]RAPDU: 90 00 [17:28:02]wFMCommunicate OK [17:28:02]wFMCommunicate request_size=255 [17:28:02]MH_SAM_APDU [17:28: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 40 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 02 D5 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 CE 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 9A 00 00 00 F4 03 04 00 A1 4C 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 62 2C 01 00 35 04 06 00 5D [17:28:02]Write to MH i2c: E2 02 01 24 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 56 40 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 02 D5 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 CE 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 9A 00 00 00 F4 03 04 00 A1 4C 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 62 2C 01 00 35 04 06 00 5D 00 00 76 [17:28:02]Write i2c OK [17:28:02]MH_I2C_Read... [17:28:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:02]Read from MH i2c: E2 [17:28:02]MH_I2C_Read... [17:28:02]Read from MH i2c: E2 03 00 [17:28:02]MH_I2C_Read... [17:28:02]Read from MH i2c: E2 03 00 24 02 00 90 00 9A [17:28:02]RAPDU: 90 00 [17:28:02]wFMCommunicate OK [17:28:02]wFMCommunicate request_size=10 [17:28:02]MH_SAM_APDU [17:28:02]CAPDU: 80 0D 02 02 05 FF 69 C1 7E 08 [17:28:02]Write to MH i2c: E2 0D 00 25 02 80 0D 02 02 05 00 FF 69 C1 7E 08 00 00 5A [17:28:02]Write i2c OK [17:28:02]MH_I2C_Read... [17:28:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:02]Read from MH i2c: E2 [17:28:02]MH_I2C_Read... [17:28:02]Read from MH i2c: E2 03 00 [17:28:02]MH_I2C_Read... [17:28:02]Read from MH i2c: E2 03 00 25 02 00 90 00 9B [17:28:02]RAPDU: 90 00 [17:28:02]wFMCommunicate OK [17:28:02]wFMCommunicate request_size=4 [17:28:02]MH_SAM_APDU [17:28:02]CAPDU: 80 0D 03 02 [17:28:02]Write to MH i2c: E2 08 00 26 02 80 0D 03 02 00 00 00 00 A3 [17:28:02]Write i2c OK [17:28:02]MH_I2C_Read... [17:28:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:28:02]Read from MH i2c: E2 [17:28:02]MH_I2C_Read... [17:28:02]Read from MH i2c: E2 0B 00 [17:28:02]MH_I2C_Read... [17:28:02]Read from MH i2c: E2 0B 00 26 02 00 59 F2 F0 53 AC DA F8 9E 90 00 4E [17:28:02]RAPDU: 59 F2 F0 53 AC DA F8 9E 90 00 [17:28:02]wFMCommunicate OK [17:28:02]SAM_PROTO_SignData done [17:28:02]FM_MakeSignedData done [17:28:02]CreateOFDProtocolMessage [17:28:02]wFMCommunicate request_size=4 [17:28:02]MH_SAM_APDU [17:28:02]CAPDU: 80 11 00 00 [17:28:02]Write to MH i2c: E2 08 00 27 02 80 11 00 00 00 00 00 00 A3 [17:28:02]Write i2c OK [17:28:02]MH_I2C_Read... [17:28:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:03]Read from MH i2c: E2 [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: E2 17 00 [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: E2 17 00 27 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F6 [17:28:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:28:03]wFMCommunicate OK [17:28:03]CreateOFDProtocolMessage done [17:28:03]OFDSenderStorePacket 76898 [17:28:03]StoreOFDPacket docnum=76898 [17:28:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 DA E5 07 01 8A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 40 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 02 D5 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 CE 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 9A 00 00 00 F4 03 04 00 A1 4C 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 62 2C 01 00 35 04 06 00 5D FF 69 C1 7E 08 59 F2 F0 53 AC DA F8 9E [17:28:03]CheckFolder [17:28:03]dirname=/storage/ofd_packets [17:28:03]CheckFolder done [17:28:03]ProducePacketName [17:28:03]name=ofd_packets/00076898 [17:28:03]NVStorageSaveData ofd_packets/00076898 [17:28:03]File name is /storage/ofd_packets/00076898 [17:28:03]Write 301 bytes [17:28:03]NVStorageSaveData done [17:28:03]OFDSenderStorePacket done [17:28:03]KKMCreateOFDPacket done [17:28:03]NVStorageSaveData kkm_last_timestamp [17:28:03]File name is /storage/kkm_last_timestamp [17:28:03]Write 4 bytes [17:28:03]NVStorageSaveData done [17:28:03]ExternCall_PrintAddStr [17:28:03]wPrintStart [17:28:03]Write to MH i2c: 01 00 00 28 02 2A [17:28:03]Write i2c OK [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: 01 [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: 01 07 00 [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: 01 07 00 28 02 00 00 00 00 00 FF 0F 3F [17:28:03]RasterBufferAndPrint [17:28:03]line Счет N : (1)191442 [17:28:03]line ИНН: 02508201610067 [17:28:03]line Контрольно-Кассовый Чек [17:28:03]line ПРОДАЖА [17:28:03]line ТРК (МРК, ГНК) : 11 [17:28:03]line Товар: 2710124500 [17:28:03]line Аи-95-К-5 [17:28:03]line 16.470 * 72.90 [17:28:03]line = 1200.66 [17:28:03]line НДС 12% НСП 1% [17:28:03]line > о реализуемом товаре [17:28:03]line ОКРУГЛЕНИЕ: -0.66 [17:28:03]line ИТОГО: 1200.00 [17:28:03]line Внесено: 1200.00 [17:28:03]line СДАЧА: 0.00 [17:28:03]line НСП 1% : 10.62 [17:28:03]line НДС 12% : 127.50 [17:28:03]line Наличными: 1200.00 [17:28:03]line Безнал.: 0.00 [17:28:03]line Место: АЗС № 106 "Партнер Нефть" [17:28:03]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [17:28:03]line СНО: Общий режим [17:28:03]line Чек 154 21.04.2024 17:28 [17:28:03]line Смена: 372 ФФД: 1.0 [17:28:03]line ЗНМ: 0300000141 [17:28:03]line РНМ: 0000000000091573 [17:28:03]line Версия ККМ: 001 [17:28:03]line ФМ: 0000000000874652 [17:28:03]line ФД: 76898 [17:28:03]line ФПД: 103351572332040 [17:28:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T172801&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76898&fm=103351572332040&tin=02508201610067®Number=0000000000091573&sum=120000 [17:28:03]written 0, free lines is 4095 [17:28:03]OFD Sender: Processing packet 76898 [packets to send 129, broken 128] [17:28:03]ProducePacketName [17:28:03]name=ofd_packets/00076898 [17:28:03]OFD Sender: To server: pG, [17:28:03]CommunicateWithHost lk.salyk.kg:30040 [17:28:03]ConnectInit lk.salyk.kg [17:28:03]Connected sock=10 [17:28:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 DA E5 07 01 8A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 40 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 02 D5 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 CE 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 9A 00 00 00 F4 03 04 00 A1 4C 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 62 2C 01 00 35 04 06 00 5D FF 69 C1 7E 08 59 F2 F0 53 AC DA F8 9E [17:28:03]Write to MH i2c: 01 00 00 52 02 54 [17:28:03]Write i2c OK [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: 01 [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: 01 07 00 [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: 01 07 00 52 02 00 00 00 00 00 FA 0C 61 [17:28:03]RasterBufferAndPrint [17:28:03]line [17:28:03]line [17:28:03]line [17:28:03]line [17:28:03]line [17:28:03]written 0, free lines is 3328 [17:28:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 FA 14 47 00 3F 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 34 36 35 32 10 04 04 00 62 2C 01 00 F4 03 04 00 26 F4 24 66 B6 04 01 00 00 4C 74 FC 0E 8A 2D CC 00 [17:28:03]CommunicateWithHost err = 0 [17:28:03]CheckOFDResponse [17:28:03]1017 (14) - 77093643461234 [17:28:03]1041 (16) - 0000000000874652 [17:28:03]1040 (4) - 76898 [17:28:03]1012 (4) - 21.04.2024 11:10 [17:28:03]1206 (1) - 0 [17:28:03]OFD Sender: Remove packet 76898 [17:28:03]ProducePacketName [17:28:03]name=ofd_packets/00076898 [17:28:03]NVStorageDeleteData [17:28:03]MH_Cut [17:28:03]Write to MH i2c: D1 01 00 59 02 01 2D [17:28:03]Write i2c OK [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: D1 [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: D1 01 00 [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: D1 01 00 59 02 00 2C [17:28:03]Write to MH i2c: 01 00 00 5A 02 5C [17:28:03]Write i2c OK [17:28:03]MH_I2C_Read... [17:28:04]OFD Sender: No OFD packet to send [17:28:04]*** Cut start [17:28:04]*** Partial cut [17:28:04]*** CUTSNS_PIN = 1 [17:28:04]*** CUTSNS_PIN = 0 [17:28:04]*** Brake cut motor [17:28:04]Read from MH i2c: 01 [17:28:04]MH_I2C_Read... [17:28:04]*** Stop cut motor [17:28:04]*** Cut end [17:28:04]Read from MH i2c: 01 07 00 [17:28:04]MH_I2C_Read... [17:28:04]Read from MH i2c: 01 07 00 5A 02 00 00 00 00 00 FF 0F 71 [17:28:04]process_action close_receipt done [17:28:04]requested_data is exist [17:28:04]produce_requested_data [17:28:04]requested_item fm.sn is exist - process it [17:28:04]wFMCommunicate request_size=4 [17:28:04]MH_SAM_APDU [17:28:04]CAPDU: 80 11 00 00 [17:28:04]Write to MH i2c: E2 08 00 5B 02 80 11 00 00 00 00 00 00 D7 [17:28:04]Write i2c OK [17:28:04]MH_I2C_Read... [17:28:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:04]Read from MH i2c: E2 [17:28:04]MH_I2C_Read... [17:28:04]Read from MH i2c: E2 17 00 [17:28:04]MH_I2C_Read... [17:28:04]Read from MH i2c: E2 17 00 5B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 2A [17:28:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:28:04]wFMCommunicate OK [17:28:04]requested_item fd.num is exist - process it [17:28:04]SAM_PROTO_GetFieldsCounters [17:28:04]wFMCommunicate request_size=4 [17:28:04]MH_SAM_APDU [17:28:04]CAPDU: 80 13 00 00 [17:28:04]Write to MH i2c: E2 08 00 5C 02 80 13 00 00 00 00 00 00 DA [17:28:04]Write i2c OK [17:28:04]MH_I2C_Read... [17:28:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:28:05]Read from MH i2c: E2 [17:28:05]MH_I2C_Read... [17:28:05]Read from MH i2c: E2 62 00 [17:28:05]MH_I2C_Read... [17:28:05]Read from MH i2c: E2 62 00 5C 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 62 2C 01 00 0E 04 04 00 74 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 CD [17:28: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 62 2C 01 00 0E 04 04 00 74 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 [17:28:05]wFMCommunicate OK [17:28:05]SAM_PROTO_GetFieldsCounters done [17:28:05]requested_item shift.num is exist - process it [17:28:05]requested_item shift.opened is exist - process it [17:28:05]req_shift_opened [17:28:05]FM_GetShiftState [17:28:05]SAM_PROTO_GetShiftState [17:28:05]wFMCommunicate request_size=4 [17:28:05]MH_SAM_APDU [17:28:05]CAPDU: 80 13 01 00 [17:28:05]Write to MH i2c: E2 08 00 5D 02 80 13 01 00 00 00 00 00 DC [17:28:05]Write i2c OK [17:28:05]MH_I2C_Read... [17:28:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:05]Read from MH i2c: E2 [17:28:05]MH_I2C_Read... [17:28:05]Read from MH i2c: E2 0E 00 [17:28:05]MH_I2C_Read... [17:28:05]Read from MH i2c: E2 0E 00 5D 02 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 23 [17:28:05]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [17:28:05]wFMCommunicate OK [17:28:05]SAM_PROTO_GetShiftState done [17:28:05]FM_GetShiftState done [17:28:05]req_shift_opened done [17:28:05]requested_item shift.open_date is exist - process it [17:28:05]req_shift_open_date [17:28:05]req_shift_open_date done [17:28:05]produce_requested_data done [17:28:05]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76898,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [17:28:05]process_action_free close_receipt [17:28:05]json_value_free [17:28:05]json_value_free done [17:28:05]process_json_proto returns [17:28:05]Send response to host [17:28:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76898,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [17:28:05]free response buf [17:28:05]execute_script done [17:28:05]execute_script returns [17:28:05]free content buf [17:28:05]Sock 8.Close socket [17:28:05]Sock 8.Thread stoped [17:28:09]OFD Sender: No OFD packet to send [17:28:14]OFD Sender: No OFD packet to send [17:28:19]OFD Sender: No OFD packet to send [17:28:24]OFD Sender: No OFD packet to send [17:28:29]OFD Sender: No OFD packet to send [17:28:34]OFD Sender: No OFD packet to send [17:28:39]OFD Sender: No OFD packet to send [17:28:44]OFD Sender: No OFD packet to send [17:28:49]OFD Sender: No OFD packet to send [17:28:54]OFD Sender: No OFD packet to send [17:28:59]OFD Sender: No OFD packet to send [17:29:04]OFD Sender: No OFD packet to send [17:29:09]OFD Sender: No OFD packet to send [17:29:14]OFD Sender: No OFD packet to send [17:29:19]OFD Sender: No OFD packet to send [17:29:24]OFD Sender: No OFD packet to send [17:29:29]OFD Sender: No OFD packet to send [17:29:34]OFD Sender: No OFD packet to send [17:29:39]OFD Sender: No OFD packet to send [17:29:44]OFD Sender: No OFD packet to send [17:29:49]OFD Sender: No OFD packet to send [17:29:54]OFD Sender: No OFD packet to send [17:29:59]OFD Sender: No OFD packet to send [17:30:04]OFD Sender: No OFD packet to send [17:30:09]OFD Sender: No OFD packet to send [17:30:14]OFD Sender: No OFD packet to send [17:30:19]OFD Sender: No OFD packet to send [17:30:24]OFD Sender: No OFD packet to send [17:30:29]OFD Sender: No OFD packet to send [17:30:34]OFD Sender: No OFD packet to send [17:30:39]OFD Sender: No OFD packet to send [17:30:42]accept exits with 9 [17:30:42]New connection [17:30:42]New thread 3066944868 created [17:30:42]Thread 3066801508 joined [17:30:42]Waiting for new connection... [17:30:42] Sock 9.Parse request [17:30:42]Sock 9.Check first char [17:30:42]Sock 9.First char is OK [17:30:42]request: POST /json_proto HTTP/1.0 [17:30:42]Method: POST [17:30:42]URL: /json_proto [17:30:42]Method is POST - this is cgi request [17:30:42]url: /json_proto [17:30:42]query_string will be loaded in cgi processing [17:30:42]execute_cgi json_proto POST (null) [17:30:42]execute_cgi path=json_proto method=POST [17:30:42]POST find Content-Length [17:30:42]Host: 172.17.62.5:8080 [17:30:42]Content-Length: 942 [17:30:42]Content-Type: application/json [17:30:42] [17:30:42]POST finish read [17:30:42]Found Content-Length = 942 [17:30:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191441", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 200.000, "sum" : 14380.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 200.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 14380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:30:42]execute_script... [17:30: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)191441", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 200.000, "sum" : 14380.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 200.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 14380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:30:42]POST & json_proto [17:30:42]process_json_proto [17:30:42]json parsed OK: [17:30:42]protocol is kg_v1.0 [17:30:42]action value=close_receipt [17:30:42]process_action close_receipt [17:30:42]cmd_close_receipt [17:30:42]MH_GetDate [17:30:42]Write to MH i2c: F0 00 00 5E 02 4F [17:30:42]Write i2c OK [17:30:42]MH_I2C_Read... [17:30:42]Read from MH i2c: F0 [17:30:42]MH_I2C_Read... [17:30:42]Read from MH i2c: F0 09 00 [17:30:42]MH_I2C_Read... [17:30:42]Read from MH i2c: F0 09 00 5E 02 00 43 4D 25 66 F4 E9 65 64 19 [17:30:42]GetLastDocTimeStamp 1713720481 [17:30:42]current date 1713720643 [17:30:42]FM_GetShiftState [17:30:42]SAM_PROTO_GetShiftState [17:30:42]wFMCommunicate request_size=4 [17:30:42]MH_SAM_APDU [17:30:42]CAPDU: 80 13 01 00 [17:30:42]Write to MH i2c: E2 08 00 5F 02 80 13 01 00 00 00 00 00 DE [17:30:42]Write i2c OK [17:30:42]MH_I2C_Read... [17:30:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:42]Read from MH i2c: E2 [17:30:42]MH_I2C_Read... [17:30:42]Read from MH i2c: E2 0E 00 [17:30:42]MH_I2C_Read... [17:30:42]Read from MH i2c: E2 0E 00 5F 02 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 25 [17:30:42]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [17:30:42]wFMCommunicate OK [17:30:42]SAM_PROTO_GetShiftState done [17:30:42]FM_GetShiftState done [17:30:42]opened in 1713658965 [17:30:42]opened+sec_in_day 1713745365 [17:30:42]quantity*price = 1438000 [17:30:42]sum+1 = 1438001 [17:30:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 14380.00 НСП 1% : 127.26 НДС 12% : 1527.08 Наличными: 14380.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 155 21.04.2024 17:30 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 200.00 сом ФМ: 0000000000874652 ФД: 76899 ФПД: 269499637005095 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T173043&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76899&fm=269499637005095&tin=02508201610067®Number=0000000000091573&sum=1438000 [17:30:43]StoreToDocumentArchive [17:30:43]shift 372 fd 76899 [17:30:43]save to /storage/0372/doc_00076899 [17:30:43]save last doc name /storage/0372/doc_00076899 to /storage/kkm_last_doc_name [17:30:43]save OK [17:30:43]Clear old archive folders... [17:30:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:30:43]tlvbuf is 00C71200 [17:30:43]SAM_PROTO_ClearQueue [17:30:43]wFMCommunicate request_size=4 [17:30:43]MH_SAM_APDU [17:30:43]CAPDU: 80 09 00 00 [17:30:43]Write to MH i2c: E2 08 00 6C 02 80 09 00 00 00 00 00 00 E0 [17:30:43]Write i2c OK [17:30:43]MH_I2C_Read... [17:30:43]Read from MH i2c: E2 [17:30:43]MH_I2C_Read... [17:30:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:30:43]Read from MH i2c: E2 03 00 [17:30:43]MH_I2C_Read... [17:30:43]Read from MH i2c: E2 03 00 6C 02 00 90 00 E2 [17:30:43]RAPDU: 90 00 [17:30:43]wFMCommunicate OK [17:30:43]SAM_PROTO_ClearQueue done [17:30:43]KKMCreateOFDPacket [17:30:43]OFDProtocolAddRootSTLVToBuf [17:30:43]FM_MakeSignedData [17:30:43]FM_MakeSignedData [17:30:43]SAM_PROTO_SignData [17:30:43]wFMCommunicate request_size=4 [17:30:43]MH_SAM_APDU [17:30:43]CAPDU: 80 0D 01 02 [17:30:43]Write to MH i2c: E2 08 00 6D 02 80 0D 01 02 00 00 00 00 E8 [17:30:43]Write i2c OK [17:30:43]MH_I2C_Read... [17:30:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:30:43]Read from MH i2c: E2 [17:30:43]MH_I2C_Read... [17:30:43]Read from MH i2c: E2 03 00 [17:30:43]MH_I2C_Read... [17:30:43]Read from MH i2c: E2 03 00 6D 02 00 90 00 E3 [17:30:43]RAPDU: 90 00 [17:30:43]wFMCommunicate OK [17:30:43]wFMCommunicate request_size=255 [17:30:43]MH_SAM_APDU [17:30:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 0D 03 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 30 F1 15 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F1 15 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 31 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 54 02 00 00 00 07 04 06 00 30 F1 15 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 43 4D 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 63 2C 01 00 35 04 06 00 F5 1B C6 21 [17:30:43]Write to MH i2c: E2 02 01 6E 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 0D 03 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 30 F1 15 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F1 15 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 31 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 54 02 00 00 00 07 04 06 00 30 F1 15 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 43 4D 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 63 2C 01 00 35 04 06 00 F5 1B C6 21 00 00 DC [17:30:43]Write i2c OK [17:30:43]MH_I2C_Read... [17:30:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:44]Read from MH i2c: E2 [17:30:44]MH_I2C_Read... [17:30:44]Read from MH i2c: E2 03 00 [17:30:44]MH_I2C_Read... [17:30:44]Read from MH i2c: E2 03 00 6E 02 00 90 00 E4 [17:30:44]RAPDU: 90 00 [17:30:44]wFMCommunicate OK [17:30:44]wFMCommunicate request_size=7 [17:30:44]MH_SAM_APDU [17:30:44]CAPDU: 80 0D 02 02 02 7B 27 [17:30:44]Write to MH i2c: E2 0A 00 6F 02 80 0D 02 02 02 00 7B 27 00 00 91 [17:30:44]Write i2c OK [17:30:44]MH_I2C_Read... [17:30:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:44]Read from MH i2c: E2 [17:30:44]MH_I2C_Read... [17:30:44]Read from MH i2c: E2 03 00 [17:30:44]MH_I2C_Read... [17:30:44]Read from MH i2c: E2 03 00 6F 02 00 90 00 E5 [17:30:44]RAPDU: 90 00 [17:30:44]wFMCommunicate OK [17:30:44]wFMCommunicate request_size=4 [17:30:44]MH_SAM_APDU [17:30:44]CAPDU: 80 0D 03 02 [17:30:44]Write to MH i2c: E2 08 00 70 02 80 0D 03 02 00 00 00 00 ED [17:30:44]Write i2c OK [17:30:44]MH_I2C_Read... [17:30:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:30:44]Read from MH i2c: E2 [17:30:44]MH_I2C_Read... [17:30:44]Read from MH i2c: E2 0B 00 [17:30:44]MH_I2C_Read... [17:30:44]Read from MH i2c: E2 0B 00 70 02 00 11 59 5B 01 5B 73 18 C7 90 00 61 [17:30:44]RAPDU: 11 59 5B 01 5B 73 18 C7 90 00 [17:30:44]wFMCommunicate OK [17:30:44]SAM_PROTO_SignData done [17:30:44]FM_MakeSignedData done [17:30:44]CreateOFDProtocolMessage [17:30:44]wFMCommunicate request_size=4 [17:30:44]MH_SAM_APDU [17:30:44]CAPDU: 80 11 00 00 [17:30:44]Write to MH i2c: E2 08 00 71 02 80 11 00 00 00 00 00 00 ED [17:30:44]Write i2c OK [17:30:44]MH_I2C_Read... [17:30:44]OFD Sender: No OFD packet to send [17:30:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:44]Read from MH i2c: E2 [17:30:44]MH_I2C_Read... [17:30:44]Read from MH i2c: E2 17 00 [17:30:44]MH_I2C_Read... [17:30:44]Read from MH i2c: E2 17 00 71 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 40 [17:30:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:30:44]wFMCommunicate OK [17:30:44]CreateOFDProtocolMessage done [17:30:44]OFDSenderStorePacket 76899 [17:30:44]StoreOFDPacket docnum=76899 [17:30:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 E0 7C 04 01 FC D9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 0D 03 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 30 F1 15 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F1 15 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 31 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 54 02 00 00 00 07 04 06 00 30 F1 15 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 43 4D 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 63 2C 01 00 35 04 06 00 F5 1B C6 21 7B 27 11 59 5B 01 5B 73 18 C7 [17:30:44]CheckFolder [17:30:44]dirname=/storage/ofd_packets [17:30:44]CheckFolder done [17:30:44]ProducePacketName [17:30:44]name=ofd_packets/00076899 [17:30:44]NVStorageSaveData ofd_packets/00076899 [17:30:44]File name is /storage/ofd_packets/00076899 [17:30:44]Write 298 bytes [17:30:44]NVStorageSaveData done [17:30:44]OFDSenderStorePacket done [17:30:44]KKMCreateOFDPacket done [17:30:44]NVStorageSaveData kkm_last_timestamp [17:30:44]File name is /storage/kkm_last_timestamp [17:30:44]Write 4 bytes [17:30:44]NVStorageSaveData done [17:30:44]ExternCall_PrintAddStr [17:30:44]wPrintStart [17:30:44]Write to MH i2c: 01 00 00 72 02 74 [17:30:44]Write i2c OK [17:30:44]MH_I2C_Read... [17:30:44]Read from MH i2c: 01 [17:30:44]MH_I2C_Read... [17:30:44]Read from MH i2c: 01 07 00 [17:30:44]MH_I2C_Read... [17:30:44]Read from MH i2c: 01 07 00 72 02 00 00 00 00 00 FF 0F 89 [17:30:44]RasterBufferAndPrint [17:30:44]line Счет N : (1)191441 [17:30:44]line ИНН: 02508201610067 [17:30:44]line Контрольно-Кассовый Чек [17:30:44]line ПРОДАЖА [17:30:44]line ТРК (МРК, ГНК) : 61 [17:30:44]line Товар: 2710194210 [17:30:44]line ДТ-К-5 [17:30:44]line 200.000 * 71.90 [17:30:44]line = 14380.00 [17:30:44]line НДС 12% НСП 1% [17:30:44]line > о реализуемом товаре [17:30:44]line ИТОГО: 14380.00 [17:30:44]line НСП 1% : 127.26 [17:30:44]line НДС 12% : 1527.08 [17:30:44]line Наличными: 14380.00 [17:30:44]line Безнал.: 0.00 [17:30:44]line Место: АЗС № 106 "Партнер Нефть" [17:30:44]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [17:30:44]line СНО: Общий режим [17:30:44]line Чек 155 21.04.2024 17:30 [17:30:44]line Смена: 372 ФФД: 1.0 [17:30:44]line ЗНМ: 0300000141 [17:30:44]line РНМ: 0000000000091573 [17:30:44]line Версия ККМ: 001 [17:30:44]line [17:30:44]line Дисконтная программа [17:30:44]line ДТ [17:30:44]line номер 106 [17:30:44]line сэкономлено 200.00 сом [17:30:44]line ФМ: 0000000000874652 [17:30:44]line ФД: 76899 [17:30:44]line ФПД: 269499637005095 [17:30:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T173043&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76899&fm=269499637005095&tin=02508201610067®Number=0000000000091573&sum=1438000 [17:30:44]OFD Sender: Processing packet 76899 [packets to send 129, broken 128] [17:30:44]ProducePacketName [17:30:44]name=ofd_packets/00076899 [17:30:44]OFD Sender: To server: pG, [17:30:44]CommunicateWithHost lk.salyk.kg:30040 [17:30:44]ConnectInit lk.salyk.kg [17:30:44]written 0, free lines is 4095 [17:30:44]Connected sock=10 [17:30:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 E0 7C 04 01 FC D9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 0D 03 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 30 F1 15 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F1 15 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 31 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 54 02 00 00 00 07 04 06 00 30 F1 15 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 43 4D 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 63 2C 01 00 35 04 06 00 F5 1B C6 21 7B 27 11 59 5B 01 5B 73 18 C7 [17:30:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 85 76 47 00 5A 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 34 36 35 32 10 04 04 00 63 2C 01 00 F4 03 04 00 C8 F4 24 66 B6 04 01 00 00 A4 48 6A F8 6D 66 78 02 [17:30:44]CommunicateWithHost err = 0 [17:30:44]CheckOFDResponse [17:30:44]1017 (14) - 77093643461234 [17:30:44]1041 (16) - 0000000000874652 [17:30:44]1040 (4) - 76899 [17:30:44]1012 (4) - 21.04.2024 11:13 [17:30:44]1206 (1) - 0 [17:30:44]OFD Sender: Remove packet 76899 [17:30:44]ProducePacketName [17:30:44]name=ofd_packets/00076899 [17:30:44]NVStorageDeleteData [17:30:45]Write to MH i2c: 01 00 00 9E 02 A0 [17:30:45]Write i2c OK [17:30:45]MH_I2C_Read... [17:30:45]Read from MH i2c: 01 [17:30:45]MH_I2C_Read... [17:30:45]Read from MH i2c: 01 07 00 [17:30:45]MH_I2C_Read... [17:30:45]Read from MH i2c: 01 07 00 9E 02 00 00 00 00 00 D7 0C 8A [17:30:45]RasterBufferAndPrint [17:30:45]line [17:30:45]line [17:30:45]line [17:30:45]line [17:30:45]line [17:30:45]written 0, free lines is 3292 [17:30:45]MH_Cut [17:30:45]Write to MH i2c: D1 01 00 A5 02 01 79 [17:30:45]Write i2c OK [17:30:45]MH_I2C_Read... [17:30:45]Read from MH i2c: D1 [17:30:45]MH_I2C_Read... [17:30:45]Read from MH i2c: D1 01 00 [17:30:45]MH_I2C_Read... [17:30:45]Read from MH i2c: D1 01 00 A5 02 00 78 [17:30:45]Write to MH i2c: 01 00 00 A6 02 A8 [17:30:45]Write i2c OK [17:30:45]MH_I2C_Read... [17:30:45]OFD Sender: No OFD packet to send [17:30:45]*** Cut start [17:30:45]*** Partial cut [17:30:45]*** CUTSNS_PIN = 1 [17:30:45]*** CUTSNS_PIN = 0 [17:30:46]*** Brake cut motor [17:30:46]Read from MH i2c: 01 [17:30:46]MH_I2C_Read... [17:30:46]*** Stop cut motor [17:30:46]*** Cut end [17:30:46]Read from MH i2c: 01 07 00 [17:30:46]MH_I2C_Read... [17:30:46]Read from MH i2c: 01 07 00 A6 02 00 00 00 00 00 FF 0F BD [17:30:46]process_action close_receipt done [17:30:46]requested_data is exist [17:30:46]produce_requested_data [17:30:46]requested_item fm.sn is exist - process it [17:30:46]wFMCommunicate request_size=4 [17:30:46]MH_SAM_APDU [17:30:46]CAPDU: 80 11 00 00 [17:30:46]Write to MH i2c: E2 08 00 A7 02 80 11 00 00 00 00 00 00 23 [17:30:46]Write i2c OK [17:30:46]MH_I2C_Read... [17:30:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:46]Read from MH i2c: E2 [17:30:46]MH_I2C_Read... [17:30:46]Read from MH i2c: E2 17 00 [17:30:46]MH_I2C_Read... [17:30:46]Read from MH i2c: E2 17 00 A7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 76 [17:30:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:30:46]wFMCommunicate OK [17:30:46]requested_item fd.num is exist - process it [17:30:46]SAM_PROTO_GetFieldsCounters [17:30:46]wFMCommunicate request_size=4 [17:30:46]MH_SAM_APDU [17:30:46]CAPDU: 80 13 00 00 [17:30:46]Write to MH i2c: E2 08 00 A8 02 80 13 00 00 00 00 00 00 26 [17:30:46]Write i2c OK [17:30:46]MH_I2C_Read... [17:30:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:30:46]Read from MH i2c: E2 [17:30:46]MH_I2C_Read... [17:30:46]Read from MH i2c: E2 62 00 [17:30:46]MH_I2C_Read... [17:30:46]Read from MH i2c: E2 62 00 A8 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 63 2C 01 00 0E 04 04 00 74 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 1D [17:30: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 63 2C 01 00 0E 04 04 00 74 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 [17:30:46]wFMCommunicate OK [17:30:46]SAM_PROTO_GetFieldsCounters done [17:30:46]requested_item shift.num is exist - process it [17:30:46]requested_item shift.opened is exist - process it [17:30:46]req_shift_opened [17:30:46]FM_GetShiftState [17:30:46]SAM_PROTO_GetShiftState [17:30:46]wFMCommunicate request_size=4 [17:30:46]MH_SAM_APDU [17:30:46]CAPDU: 80 13 01 00 [17:30:46]Write to MH i2c: E2 08 00 A9 02 80 13 01 00 00 00 00 00 28 [17:30:46]Write i2c OK [17:30:46]MH_I2C_Read... [17:30:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:46]Read from MH i2c: E2 [17:30:46]MH_I2C_Read... [17:30:46]Read from MH i2c: E2 0E 00 [17:30:46]MH_I2C_Read... [17:30:46]Read from MH i2c: E2 0E 00 A9 02 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 6F [17:30:46]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [17:30:46]wFMCommunicate OK [17:30:46]SAM_PROTO_GetShiftState done [17:30:46]FM_GetShiftState done [17:30:46]req_shift_opened done [17:30:46]requested_item shift.open_date is exist - process it [17:30:46]req_shift_open_date [17:30:46]req_shift_open_date done [17:30:46]produce_requested_data done [17:30:46]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76899,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [17:30:46]process_action_free close_receipt [17:30:46]json_value_free [17:30:46]json_value_free done [17:30:46]process_json_proto returns [17:30:46]Send response to host [17:30:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76899,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [17:30:46]free response buf [17:30:46]execute_script done [17:30:46]execute_script returns [17:30:46]free content buf [17:30:46]Sock 9.Close socket [17:30:46]Sock 9.Thread stoped [17:30:50]OFD Sender: No OFD packet to send [17:30:55]OFD Sender: No OFD packet to send [17:31:00]OFD Sender: No OFD packet to send [17:31:04]accept exits with 8 [17:31:04]New connection [17:31:04]New thread 3066801508 created [17:31:04]Thread 3066944868 joined [17:31:04]Waiting for new connection... [17:31:04] Sock 8.Parse request [17:31:04]Sock 8.Check first char [17:31:04]Sock 8.First char is OK [17:31:04]request: POST /json_proto HTTP/1.0 [17:31:04]Method: POST [17:31:04]URL: /json_proto [17:31:04]Method is POST - this is cgi request [17:31:04]url: /json_proto [17:31:04]query_string will be loaded in cgi processing [17:31:04]execute_cgi json_proto POST (null) [17:31:04]execute_cgi path=json_proto method=POST [17:31:04]POST find Content-Length [17:31:04]Host: 172.17.62.5:8080 [17:31:04]Content-Length: 677 [17:31:04]Content-Type: application/json [17:31:04] [17:31:04]POST finish read [17:31:04]Found Content-Length = 677 [17:31:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191443", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:31:04]execute_script... [17:31: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)191443", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:31:04]POST & json_proto [17:31:04]process_json_proto [17:31:04]json parsed OK: [17:31:04]protocol is kg_v1.0 [17:31:04]action value=close_receipt [17:31:04]process_action close_receipt [17:31:04]cmd_close_receipt [17:31:04]MH_GetDate [17:31:04]Write to MH i2c: F0 00 00 AA 02 9B [17:31:04]Write i2c OK [17:31:04]MH_I2C_Read... [17:31:04]Read from MH i2c: F0 [17:31:04]MH_I2C_Read... [17:31:04]Read from MH i2c: F0 09 00 [17:31:04]MH_I2C_Read... [17:31:04]Read from MH i2c: F0 09 00 AA 02 00 58 4D 25 66 F4 E9 65 64 7A [17:31:04]GetLastDocTimeStamp 1713720643 [17:31:04]current date 1713720664 [17:31:04]FM_GetShiftState [17:31:04]SAM_PROTO_GetShiftState [17:31:04]wFMCommunicate request_size=4 [17:31:04]MH_SAM_APDU [17:31:04]CAPDU: 80 13 01 00 [17:31:04]Write to MH i2c: E2 08 00 AB 02 80 13 01 00 00 00 00 00 2A [17:31:04]Write i2c OK [17:31:04]MH_I2C_Read... [17:31:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:04]Read from MH i2c: E2 [17:31:04]MH_I2C_Read... [17:31:04]Read from MH i2c: E2 0E 00 [17:31:04]MH_I2C_Read... [17:31:04]Read from MH i2c: E2 0E 00 AB 02 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 71 [17:31:04]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [17:31:04]wFMCommunicate OK [17:31:04]SAM_PROTO_GetShiftState done [17:31:04]FM_GetShiftState done [17:31:04]opened in 1713658965 [17:31:04]opened+sec_in_day 1713745365 [17:31:04]quantity*price = 50038 [17:31:04]sum+1 = 50040 [17:31:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 156 21.04.2024 17:31 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76900 ФПД: 50086095443516 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T173105&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76900&fm=50086095443516&tin=02508201610067®Number=0000000000091573&sum=50000 [17:31:05]StoreToDocumentArchive [17:31:05]shift 372 fd 76900 [17:31:05]save to /storage/0372/doc_00076900 [17:31:05]save last doc name /storage/0372/doc_00076900 to /storage/kkm_last_doc_name [17:31:05]save OK [17:31:05]Clear old archive folders... [17:31:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:31:05]tlvbuf is 00C92E40 [17:31:05]SAM_PROTO_ClearQueue [17:31:05]wFMCommunicate request_size=4 [17:31:05]MH_SAM_APDU [17:31:05]CAPDU: 80 09 00 00 [17:31:05]Write to MH i2c: E2 08 00 B8 02 80 09 00 00 00 00 00 00 2C [17:31:05]Write i2c OK [17:31:05]MH_I2C_Read... [17:31:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:31:05]Read from MH i2c: E2 [17:31:05]MH_I2C_Read... [17:31:05]Read from MH i2c: E2 03 00 [17:31:05]MH_I2C_Read... [17:31:05]Read from MH i2c: E2 03 00 B8 02 00 90 00 2E [17:31:05]RAPDU: 90 00 [17:31:05]wFMCommunicate OK [17:31:05]SAM_PROTO_ClearQueue done [17:31:05]KKMCreateOFDPacket [17:31:05]OFDProtocolAddRootSTLVToBuf [17:31:05]FM_MakeSignedData [17:31:05]FM_MakeSignedData [17:31:05]SAM_PROTO_SignData [17:31:05]wFMCommunicate request_size=4 [17:31:05]MH_SAM_APDU [17:31:05]CAPDU: 80 0D 01 02 [17:31:05]Write to MH i2c: E2 08 00 B9 02 80 0D 01 02 00 00 00 00 34 [17:31:05]Write i2c OK [17:31:05]MH_I2C_Read... [17:31:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:31:05]Read from MH i2c: E2 [17:31:05]MH_I2C_Read... [17:31:05]Read from MH i2c: E2 03 00 [17:31:05]MH_I2C_Read... [17:31:05]Read from MH i2c: E2 03 00 B9 02 00 90 00 2F [17:31:05]RAPDU: 90 00 [17:31:05]wFMCommunicate OK [17:31:05]wFMCommunicate request_size=255 [17:31:05]MH_SAM_APDU [17:31: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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 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 59 4D 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 64 2C 01 00 35 04 06 00 2D [17:31:05]Write to MH i2c: E2 02 01 BA 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 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 59 4D 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 64 2C 01 00 35 04 06 00 2D 00 00 E9 [17:31:05]Write i2c OK [17:31:05]MH_I2C_Read... [17:31:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:05]Read from MH i2c: E2 [17:31:05]MH_I2C_Read... [17:31:05]Read from MH i2c: E2 03 00 [17:31:05]MH_I2C_Read... [17:31:05]Read from MH i2c: E2 03 00 BA 02 00 90 00 30 [17:31:05]RAPDU: 90 00 [17:31:05]wFMCommunicate OK [17:31:05]wFMCommunicate request_size=10 [17:31:05]MH_SAM_APDU [17:31:05]CAPDU: 80 0D 02 02 05 8D 93 ED 56 3C [17:31:05]Write to MH i2c: E2 0D 00 BB 02 80 0D 02 02 05 00 8D 93 ED 56 3C 00 00 E0 [17:31:05]Write i2c OK [17:31:05]MH_I2C_Read... [17:31:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:06]Read from MH i2c: E2 [17:31:06]MH_I2C_Read... [17:31:06]Read from MH i2c: E2 03 00 [17:31:06]MH_I2C_Read... [17:31:06]Read from MH i2c: E2 03 00 BB 02 00 90 00 31 [17:31:06]RAPDU: 90 00 [17:31:06]wFMCommunicate OK [17:31:06]wFMCommunicate request_size=4 [17:31:06]MH_SAM_APDU [17:31:06]CAPDU: 80 0D 03 02 [17:31:06]Write to MH i2c: E2 08 00 BC 02 80 0D 03 02 00 00 00 00 39 [17:31:06]Write i2c OK [17:31:06]MH_I2C_Read... [17:31:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:31:06]Read from MH i2c: E2 [17:31:06]MH_I2C_Read... [17:31:06]Read from MH i2c: E2 0B 00 [17:31:06]MH_I2C_Read... [17:31:06]Read from MH i2c: E2 0B 00 BC 02 00 DE 26 EA A4 E8 59 55 FC 90 00 5E [17:31:06]RAPDU: DE 26 EA A4 E8 59 55 FC 90 00 [17:31:06]wFMCommunicate OK [17:31:06]SAM_PROTO_SignData done [17:31:06]FM_MakeSignedData done [17:31:06]CreateOFDProtocolMessage [17:31:06]wFMCommunicate request_size=4 [17:31:06]MH_SAM_APDU [17:31:06]CAPDU: 80 11 00 00 [17:31:06]Write to MH i2c: E2 08 00 BD 02 80 11 00 00 00 00 00 00 39 [17:31:06]Write i2c OK [17:31:06]MH_I2C_Read... [17:31:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:06]Read from MH i2c: E2 [17:31:06]MH_I2C_Read... [17:31:06]Read from MH i2c: E2 17 00 [17:31:06]MH_I2C_Read... [17:31:06]Read from MH i2c: E2 17 00 BD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 8C [17:31:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:31:06]wFMCommunicate OK [17:31:06]CreateOFDProtocolMessage done [17:31:06]OFDSenderStorePacket 76900 [17:31:06]StoreOFDPacket docnum=76900 [17:31:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 6B 61 07 01 0A 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 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 59 4D 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 64 2C 01 00 35 04 06 00 2D 8D 93 ED 56 3C DE 26 EA A4 E8 59 55 FC [17:31:06]CheckFolder [17:31:06]dirname=/storage/ofd_packets [17:31:06]CheckFolder done [17:31:06]ProducePacketName [17:31:06]name=ofd_packets/00076900 [17:31:06]NVStorageSaveData ofd_packets/00076900 [17:31:06]File name is /storage/ofd_packets/00076900 [17:31:06]Write 301 bytes [17:31:06]NVStorageSaveData done [17:31:06]OFDSenderStorePacket done [17:31:06]KKMCreateOFDPacket done [17:31:06]NVStorageSaveData kkm_last_timestamp [17:31:06]File name is /storage/kkm_last_timestamp [17:31:06]Write 4 bytes [17:31:06]NVStorageSaveData done [17:31:06]ExternCall_PrintAddStr [17:31:06]wPrintStart [17:31:06]Write to MH i2c: 01 00 00 BE 02 C0 [17:31:06]Write i2c OK [17:31:06]MH_I2C_Read... [17:31:06]Read from MH i2c: 01 [17:31:06]MH_I2C_Read... [17:31:06]Read from MH i2c: 01 07 00 [17:31:06]MH_I2C_Read... [17:31:06]Read from MH i2c: 01 07 00 BE 02 00 00 00 00 00 FF 0F D5 [17:31:06]RasterBufferAndPrint [17:31:06]line Счет N : (1)191443 [17:31:06]line ИНН: 02508201610067 [17:31:06]line Контрольно-Кассовый Чек [17:31:06]line ПРОДАЖА [17:31:06]line ТРК (МРК, ГНК) : 12 [17:31:06]line Товар: 2710124130 [17:31:06]line Аи-92-К-5 [17:31:06]line 7.770 * 64.40 [17:31:06]line = 500.39 [17:31:06]line НДС 12% НСП 1% [17:31:06]line > о реализуемом товаре [17:31:06]line ОКРУГЛЕНИЕ: -0.39 [17:31:06]line ИТОГО: 500.00 [17:31:06]line Внесено: 500.00 [17:31:06]line СДАЧА: 0.00 [17:31:06]line НСП 1% : 4.43 [17:31:06]line НДС 12% : 53.14 [17:31:06]line Наличными: 500.00 [17:31:06]line Безнал.: 0.00 [17:31:06]line Место: АЗС № 106 "Партнер Нефть" [17:31:06]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [17:31:06]line СНО: Общий режим [17:31:06]line Чек 156 21.04.2024 17:31 [17:31:06]line Смена: 372 ФФД: 1.0 [17:31:06]line ЗНМ: 0300000141 [17:31:06]line РНМ: 0000000000091573 [17:31:06]line Версия ККМ: 001 [17:31:06]line ФМ: 0000000000874652 [17:31:06]line ФД: 76900 [17:31:06]line ФПД: 50086095443516 [17:31:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T173105&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76900&fm=50086095443516&tin=02508201610067®Number=0000000000091573&sum=50000 [17:31:06]OFD Sender: Processing packet 76900 [packets to send 129, broken 128] [17:31:06]ProducePacketName [17:31:06]name=ofd_packets/00076900 [17:31:06]OFD Sender: To server: pG, [17:31:06]CommunicateWithHost lk.salyk.kg:30040 [17:31:06]ConnectInit lk.salyk.kg [17:31:06]written 0, free lines is 4095 [17:31:06]Connected sock=10 [17:31:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 6B 61 07 01 0A 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 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 59 4D 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 64 2C 01 00 35 04 06 00 2D 8D 93 ED 56 3C DE 26 EA A4 E8 59 55 FC [17:31:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 5C A6 47 00 1C 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 34 36 35 32 10 04 04 00 64 2C 01 00 F4 03 04 00 DD F4 24 66 B6 04 01 00 00 8C 2D 8D 5A B6 3F AE 32 [17:31:06]CommunicateWithHost err = 0 [17:31:06]CheckOFDResponse [17:31:06]1017 (14) - 77093643461234 [17:31:06]1041 (16) - 0000000000874652 [17:31:06]1040 (4) - 76900 [17:31:06]1012 (4) - 21.04.2024 11:13 [17:31:06]1206 (1) - 0 [17:31:06]OFD Sender: Remove packet 76900 [17:31:06]ProducePacketName [17:31:06]name=ofd_packets/00076900 [17:31:06]NVStorageDeleteData [17:31:06]Write to MH i2c: 01 00 00 E8 02 EA [17:31:06]Write i2c OK [17:31:06]MH_I2C_Read... [17:31:06]Read from MH i2c: 01 [17:31:06]MH_I2C_Read... [17:31:06]Read from MH i2c: 01 07 00 [17:31:06]MH_I2C_Read... [17:31:06]Read from MH i2c: 01 07 00 E8 02 00 00 00 00 00 11 0D 0F [17:31:06]RasterBufferAndPrint [17:31:06]line [17:31:06]line [17:31:06]line [17:31:06]line [17:31:06]line [17:31:06]written 0, free lines is 3351 [17:31:06]MH_Cut [17:31:06]Write to MH i2c: D1 01 00 EF 02 01 C3 [17:31:06]Write i2c OK [17:31:06]MH_I2C_Read... [17:31:06]Read from MH i2c: D1 [17:31:06]MH_I2C_Read... [17:31:06]Read from MH i2c: D1 01 00 [17:31:06]MH_I2C_Read... [17:31:06]Read from MH i2c: D1 01 00 EF 02 00 C2 [17:31:06]Write to MH i2c: 01 00 00 F0 02 F2 [17:31:06]Write i2c OK [17:31:06]MH_I2C_Read... [17:31:07]OFD Sender: No OFD packet to send [17:31:07]*** Cut start [17:31:07]*** Partial cut [17:31:07]*** CUTSNS_PIN = 1 [17:31:07]*** CUTSNS_PIN = 0 [17:31:07]*** Brake cut motor [17:31:08]Read from MH i2c: 01 [17:31:08]MH_I2C_Read... [17:31:08]*** Stop cut motor [17:31:08]*** Cut end [17:31:08]Read from MH i2c: 01 07 00 [17:31:08]MH_I2C_Read... [17:31:08]Read from MH i2c: 01 07 00 F0 02 00 00 00 00 00 FF 0F 07 [17:31:08]process_action close_receipt done [17:31:08]requested_data is exist [17:31:08]produce_requested_data [17:31:08]requested_item fm.sn is exist - process it [17:31:08]wFMCommunicate request_size=4 [17:31:08]MH_SAM_APDU [17:31:08]CAPDU: 80 11 00 00 [17:31:08]Write to MH i2c: E2 08 00 F1 02 80 11 00 00 00 00 00 00 6D [17:31:08]Write i2c OK [17:31:08]MH_I2C_Read... [17:31:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:08]Read from MH i2c: E2 [17:31:08]MH_I2C_Read... [17:31:08]Read from MH i2c: E2 17 00 [17:31:08]MH_I2C_Read... [17:31:08]Read from MH i2c: E2 17 00 F1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 C0 [17:31:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:31:08]wFMCommunicate OK [17:31:08]requested_item fd.num is exist - process it [17:31:08]SAM_PROTO_GetFieldsCounters [17:31:08]wFMCommunicate request_size=4 [17:31:08]MH_SAM_APDU [17:31:08]CAPDU: 80 13 00 00 [17:31:08]Write to MH i2c: E2 08 00 F2 02 80 13 00 00 00 00 00 00 70 [17:31:08]Write i2c OK [17:31:08]MH_I2C_Read... [17:31:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:31:08]Read from MH i2c: E2 [17:31:08]MH_I2C_Read... [17:31:08]Read from MH i2c: E2 62 00 [17:31:08]MH_I2C_Read... [17:31:08]Read from MH i2c: E2 62 00 F2 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 64 2C 01 00 0E 04 04 00 74 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 6B [17:31: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 64 2C 01 00 0E 04 04 00 74 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 [17:31:08]wFMCommunicate OK [17:31:08]SAM_PROTO_GetFieldsCounters done [17:31:08]requested_item shift.num is exist - process it [17:31:08]requested_item shift.opened is exist - process it [17:31:08]req_shift_opened [17:31:08]FM_GetShiftState [17:31:08]SAM_PROTO_GetShiftState [17:31:08]wFMCommunicate request_size=4 [17:31:08]MH_SAM_APDU [17:31:08]CAPDU: 80 13 01 00 [17:31:08]Write to MH i2c: E2 08 00 F3 02 80 13 01 00 00 00 00 00 72 [17:31:08]Write i2c OK [17:31:08]MH_I2C_Read... [17:31:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:08]Read from MH i2c: E2 [17:31:08]MH_I2C_Read... [17:31:08]Read from MH i2c: E2 0E 00 [17:31:08]MH_I2C_Read... [17:31:08]Read from MH i2c: E2 0E 00 F3 02 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 B9 [17:31:08]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [17:31:08]wFMCommunicate OK [17:31:08]SAM_PROTO_GetShiftState done [17:31:08]FM_GetShiftState done [17:31:08]req_shift_opened done [17:31:08]requested_item shift.open_date is exist - process it [17:31:08]req_shift_open_date [17:31:08]req_shift_open_date done [17:31:08]produce_requested_data done [17:31:08]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76900,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [17:31:08]process_action_free close_receipt [17:31:08]json_value_free [17:31:08]json_value_free done [17:31:08]process_json_proto returns [17:31:08]Send response to host [17:31:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76900,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [17:31:08]free response buf [17:31:08]execute_script done [17:31:08]execute_script returns [17:31:08]free content buf [17:31:08]Sock 8.Close socket [17:31:08]Sock 8.Thread stoped [17:31:12]OFD Sender: No OFD packet to send [17:31:17]OFD Sender: No OFD packet to send [17:31:22]OFD Sender: No OFD packet to send [17:31:27]OFD Sender: No OFD packet to send [17:31:32]OFD Sender: No OFD packet to send [17:31:37]OFD Sender: No OFD packet to send [17:31:42]OFD Sender: No OFD packet to send [17:31:47]OFD Sender: No OFD packet to send [17:31:52]OFD Sender: No OFD packet to send [17:31:57]OFD Sender: No OFD packet to send [17:32:02]OFD Sender: No OFD packet to send [17:32:07]OFD Sender: No OFD packet to send [17:32:12]OFD Sender: No OFD packet to send [17:32:17]OFD Sender: No OFD packet to send [17:32:22]OFD Sender: No OFD packet to send [17:32:27]OFD Sender: No OFD packet to send [17:32:32]OFD Sender: No OFD packet to send [17:32:37]OFD Sender: No OFD packet to send [17:32:42]OFD Sender: No OFD packet to send [17:32:47]OFD Sender: No OFD packet to send [17:32:52]OFD Sender: No OFD packet to send [17:32:57]OFD Sender: No OFD packet to send [17:33:02]OFD Sender: No OFD packet to send [17:33:07]OFD Sender: No OFD packet to send [17:33:12]OFD Sender: No OFD packet to send [17:33:17]OFD Sender: No OFD packet to send [17:33:22]OFD Sender: No OFD packet to send [17:33:27]OFD Sender: No OFD packet to send [17:33:32]OFD Sender: No OFD packet to send [17:33:37]OFD Sender: No OFD packet to send [17:33:42]OFD Sender: No OFD packet to send [17:33:47]OFD Sender: No OFD packet to send [17:33:52]OFD Sender: No OFD packet to send [17:33:57]OFD Sender: No OFD packet to send [17:34:02]OFD Sender: No OFD packet to send [17:34:07]OFD Sender: No OFD packet to send [17:34:12]OFD Sender: No OFD packet to send [17:34:17]OFD Sender: No OFD packet to send [17:34:22]OFD Sender: No OFD packet to send [17:34:27]OFD Sender: No OFD packet to send [17:34:32]OFD Sender: No OFD packet to send [17:34:37]OFD Sender: No OFD packet to send [17:34:42]OFD Sender: No OFD packet to send [17:34:47]OFD Sender: No OFD packet to send [17:34:52]OFD Sender: No OFD packet to send [17:34:57]OFD Sender: No OFD packet to send [17:35:02]OFD Sender: No OFD packet to send [17:35:07]OFD Sender: No OFD packet to send [17:35:12]OFD Sender: No OFD packet to send [17:35:17]OFD Sender: No OFD packet to send [17:35:22]OFD Sender: No OFD packet to send [17:35:27]OFD Sender: No OFD packet to send [17:35:32]OFD Sender: No OFD packet to send [17:35:37]OFD Sender: No OFD packet to send [17:35:42]OFD Sender: No OFD packet to send [17:35:47]OFD Sender: No OFD packet to send [17:35:52]OFD Sender: No OFD packet to send [17:35:57]OFD Sender: No OFD packet to send [17:36:02]OFD Sender: No OFD packet to send [17:36:07]OFD Sender: No OFD packet to send [17:36:12]OFD Sender: No OFD packet to send [17:36:17]OFD Sender: No OFD packet to send [17:36:22]OFD Sender: No OFD packet to send [17:36:27]OFD Sender: No OFD packet to send [17:36:32]OFD Sender: No OFD packet to send [17:36:37]OFD Sender: No OFD packet to send [17:36:42]OFD Sender: No OFD packet to send [17:36:47]OFD Sender: No OFD packet to send [17:36:52]OFD Sender: No OFD packet to send [17:36:57]OFD Sender: No OFD packet to send [17:37:02]OFD Sender: No OFD packet to send [17:37:07]OFD Sender: No OFD packet to send [17:37:12]OFD Sender: No OFD packet to send [17:37:15]accept exits with 9 [17:37:15]New connection [17:37:15]New thread 3066944868 created [17:37:15]Thread 3066801508 joined [17:37:15]Waiting for new connection... [17:37:15] Sock 9.Parse request [17:37:15]Sock 9.Check first char [17:37:15]Sock 9.First char is OK [17:37:15]request: POST /json_proto HTTP/1.0 [17:37:15]Method: POST [17:37:15]URL: /json_proto [17:37:15]Method is POST - this is cgi request [17:37:15]url: /json_proto [17:37:15]query_string will be loaded in cgi processing [17:37:15]execute_cgi json_proto POST (null) [17:37:15]execute_cgi path=json_proto method=POST [17:37:15]POST find Content-Length [17:37:15]Host: 172.17.62.5:8080 [17:37:15]Content-Length: 942 [17:37:15]Content-Type: application/json [17:37:15] [17:37:15]POST finish read [17:37:15]Found Content-Length = 942 [17:37:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191444", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 200.000, "sum" : 14380.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 200.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 14380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:37:15]execute_script... [17:37: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)191444", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 200.000, "sum" : 14380.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 200.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 14380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:37:15]POST & json_proto [17:37:15]process_json_proto [17:37:15]json parsed OK: [17:37:15]protocol is kg_v1.0 [17:37:15]action value=close_receipt [17:37:15]process_action close_receipt [17:37:15]cmd_close_receipt [17:37:15]MH_GetDate [17:37:15]Write to MH i2c: F0 00 00 F4 02 E5 [17:37:15]Write i2c OK [17:37:15]MH_I2C_Read... [17:37:15]Read from MH i2c: F0 [17:37:15]MH_I2C_Read... [17:37:15]Read from MH i2c: F0 09 00 [17:37:15]MH_I2C_Read... [17:37:15]Read from MH i2c: F0 09 00 F4 02 00 CC 4E 25 66 F4 E9 65 64 39 [17:37:15]GetLastDocTimeStamp 1713720665 [17:37:15]current date 1713721036 [17:37:15]FM_GetShiftState [17:37:15]SAM_PROTO_GetShiftState [17:37:15]wFMCommunicate request_size=4 [17:37:15]MH_SAM_APDU [17:37:15]CAPDU: 80 13 01 00 [17:37:15]Write to MH i2c: E2 08 00 F5 02 80 13 01 00 00 00 00 00 74 [17:37:15]Write i2c OK [17:37:15]MH_I2C_Read... [17:37:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:15]Read from MH i2c: E2 [17:37:15]MH_I2C_Read... [17:37:15]Read from MH i2c: E2 0E 00 [17:37:15]MH_I2C_Read... [17:37:15]Read from MH i2c: E2 0E 00 F5 02 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 BB [17:37:15]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [17:37:15]wFMCommunicate OK [17:37:15]SAM_PROTO_GetShiftState done [17:37:15]FM_GetShiftState done [17:37:15]opened in 1713658965 [17:37:15]opened+sec_in_day 1713745365 [17:37:15]quantity*price = 1438000 [17:37:15]sum+1 = 1438001 [17:37:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 14380.00 НСП 1% : 127.26 НДС 12% : 1527.08 Наличными: 14380.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 157 21.04.2024 17:37 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 200.00 сом ФМ: 0000000000874652 ФД: 76901 ФПД: 53872609388210 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T173716&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76901&fm=53872609388210&tin=02508201610067®Number=0000000000091573&sum=1438000 [17:37:16]StoreToDocumentArchive [17:37:16]shift 372 fd 76901 [17:37:16]save to /storage/0372/doc_00076901 [17:37:16]save last doc name /storage/0372/doc_00076901 to /storage/kkm_last_doc_name [17:37:16]save OK [17:37:16]Clear old archive folders... [17:37:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:37:16]tlvbuf is 00C4D920 [17:37:16]SAM_PROTO_ClearQueue [17:37:16]wFMCommunicate request_size=4 [17:37:16]MH_SAM_APDU [17:37:16]CAPDU: 80 09 00 00 [17:37:16]Write to MH i2c: E2 08 00 02 03 80 09 00 00 00 00 00 00 77 [17:37:16]Write i2c OK [17:37:16]MH_I2C_Read... [17:37:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:37:16]Read from MH i2c: E2 [17:37:16]MH_I2C_Read... [17:37:16]Read from MH i2c: E2 03 00 [17:37:16]MH_I2C_Read... [17:37:16]Read from MH i2c: E2 03 00 02 03 00 90 00 79 [17:37:16]RAPDU: 90 00 [17:37:16]wFMCommunicate OK [17:37:16]SAM_PROTO_ClearQueue done [17:37:16]KKMCreateOFDPacket [17:37:16]OFDProtocolAddRootSTLVToBuf [17:37:16]FM_MakeSignedData [17:37:16]FM_MakeSignedData [17:37:16]SAM_PROTO_SignData [17:37:16]wFMCommunicate request_size=4 [17:37:16]MH_SAM_APDU [17:37:16]CAPDU: 80 0D 01 02 [17:37:16]Write to MH i2c: E2 08 00 03 03 80 0D 01 02 00 00 00 00 7F [17:37:16]Write i2c OK [17:37:16]MH_I2C_Read... [17:37:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:37:16]Read from MH i2c: E2 [17:37:16]MH_I2C_Read... [17:37:16]Read from MH i2c: E2 03 00 [17:37:16]MH_I2C_Read... [17:37:16]Read from MH i2c: E2 03 00 03 03 00 90 00 7A [17:37:16]RAPDU: 90 00 [17:37:16]wFMCommunicate OK [17:37:16]wFMCommunicate request_size=255 [17:37:16]MH_SAM_APDU [17:37:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 0D 03 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 30 F1 15 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F1 15 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 31 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 54 02 00 00 00 07 04 06 00 30 F1 15 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 CC 4E 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 65 2C 01 00 35 04 06 00 30 FF 31 BE [17:37:16]Write to MH i2c: E2 02 01 04 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 0D 03 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 30 F1 15 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F1 15 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 31 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 54 02 00 00 00 07 04 06 00 30 F1 15 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 CC 4E 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 65 2C 01 00 35 04 06 00 30 FF 31 BE 00 00 28 [17:37:16]Write i2c OK [17:37:16]MH_I2C_Read... [17:37:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:17]Read from MH i2c: E2 [17:37:17]MH_I2C_Read... [17:37:17]Read from MH i2c: E2 03 00 [17:37:17]MH_I2C_Read... [17:37:17]Read from MH i2c: E2 03 00 04 03 00 90 00 7B [17:37:17]RAPDU: 90 00 [17:37:17]wFMCommunicate OK [17:37:17]wFMCommunicate request_size=7 [17:37:17]MH_SAM_APDU [17:37:17]CAPDU: 80 0D 02 02 02 E6 B2 [17:37:17]Write to MH i2c: E2 0A 00 05 03 80 0D 02 02 02 00 E6 B2 00 00 1E [17:37:17]Write i2c OK [17:37:17]MH_I2C_Read... [17:37:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:17]Read from MH i2c: E2 [17:37:17]MH_I2C_Read... [17:37:17]Read from MH i2c: E2 03 00 [17:37:17]MH_I2C_Read... [17:37:17]Read from MH i2c: E2 03 00 05 03 00 90 00 7C [17:37:17]RAPDU: 90 00 [17:37:17]wFMCommunicate OK [17:37:17]wFMCommunicate request_size=4 [17:37:17]MH_SAM_APDU [17:37:17]CAPDU: 80 0D 03 02 [17:37:17]Write to MH i2c: E2 08 00 06 03 80 0D 03 02 00 00 00 00 84 [17:37:17]Write i2c OK [17:37:17]MH_I2C_Read... [17:37:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:37:17]Read from MH i2c: E2 [17:37:17]MH_I2C_Read... [17:37:17]Read from MH i2c: E2 0B 00 [17:37:17]MH_I2C_Read... [17:37:17]Read from MH i2c: E2 0B 00 06 03 00 22 90 1E E3 DB B8 B4 27 90 00 A6 [17:37:17]RAPDU: 22 90 1E E3 DB B8 B4 27 90 00 [17:37:17]wFMCommunicate OK [17:37:17]SAM_PROTO_SignData done [17:37:17]FM_MakeSignedData done [17:37:17]CreateOFDProtocolMessage [17:37:17]wFMCommunicate request_size=4 [17:37:17]MH_SAM_APDU [17:37:17]CAPDU: 80 11 00 00 [17:37:17]Write to MH i2c: E2 08 00 07 03 80 11 00 00 00 00 00 00 84 [17:37:17]Write i2c OK [17:37:17]MH_I2C_Read... [17:37:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:17]Read from MH i2c: E2 [17:37:17]MH_I2C_Read... [17:37:17]Read from MH i2c: E2 17 00 [17:37:17]MH_I2C_Read... [17:37:17]Read from MH i2c: E2 17 00 07 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 D7 [17:37:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:37:17]wFMCommunicate OK [17:37:17]CreateOFDProtocolMessage done [17:37:17]OFDSenderStorePacket 76901 [17:37:17]StoreOFDPacket docnum=76901 [17:37:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 1A E5 04 01 3A 6F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 0D 03 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 30 F1 15 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F1 15 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 31 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 54 02 00 00 00 07 04 06 00 30 F1 15 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 CC 4E 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 65 2C 01 00 35 04 06 00 30 FF 31 BE E6 B2 22 90 1E E3 DB B8 B4 27 [17:37:17]CheckFolder [17:37:17]dirname=/storage/ofd_packets [17:37:17]CheckFolder done [17:37:17]ProducePacketName [17:37:17]name=ofd_packets/00076901 [17:37:17]NVStorageSaveData ofd_packets/00076901 [17:37:17]File name is /storage/ofd_packets/00076901 [17:37:17]Write 298 bytes [17:37:17]NVStorageSaveData done [17:37:17]OFDSenderStorePacket done [17:37:17]KKMCreateOFDPacket done [17:37:17]NVStorageSaveData kkm_last_timestamp [17:37:17]File name is /storage/kkm_last_timestamp [17:37:17]Write 4 bytes [17:37:17]NVStorageSaveData done [17:37:17]ExternCall_PrintAddStr [17:37:17]wPrintStart [17:37:17]Write to MH i2c: 01 00 00 08 03 0B [17:37:17]Write i2c OK [17:37:17]MH_I2C_Read... [17:37:17]Read from MH i2c: 01 [17:37:17]MH_I2C_Read... [17:37:17]Read from MH i2c: 01 07 00 [17:37:17]MH_I2C_Read... [17:37:17]Read from MH i2c: 01 07 00 08 03 00 00 00 00 00 FF 0F 20 [17:37:17]RasterBufferAndPrint [17:37:17]line Счет N : (1)191444 [17:37:17]line ИНН: 02508201610067 [17:37:17]line Контрольно-Кассовый Чек [17:37:17]line ПРОДАЖА [17:37:17]line ТРК (МРК, ГНК) : 61 [17:37:17]line Товар: 2710194210 [17:37:17]line ДТ-К-5 [17:37:17]line 200.000 * 71.90 [17:37:17]line = 14380.00 [17:37:17]line НДС 12% НСП 1% [17:37:17]line > о реализуемом товаре [17:37:17]line ИТОГО: 14380.00 [17:37:17]line НСП 1% : 127.26 [17:37:17]line НДС 12% : 1527.08 [17:37:17]line Наличными: 14380.00 [17:37:17]line Безнал.: 0.00 [17:37:17]line Место: АЗС № 106 "Партнер Нефть" [17:37:17]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [17:37:17]line СНО: Общий режим [17:37:17]line Чек 157 21.04.2024 17:37 [17:37:17]line Смена: 372 ФФД: 1.0 [17:37:17]line ЗНМ: 0300000141 [17:37:17]line РНМ: 0000000000091573 [17:37:17]line Версия ККМ: 001 [17:37:17]line [17:37:17]line Дисконтная программа [17:37:17]line ДТ [17:37:17]line номер 106 [17:37:17]line сэкономлено 200.00 сом [17:37:17]line ФМ: 0000000000874652 [17:37:17]line ФД: 76901 [17:37:17]line ФПД: 53872609388210 [17:37:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T173716&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76901&fm=53872609388210&tin=02508201610067®Number=0000000000091573&sum=1438000 [17:37:17]OFD Sender: Processing packet 76901 [packets to send 129, broken 128] [17:37:17]ProducePacketName [17:37:17]name=ofd_packets/00076901 [17:37:17]OFD Sender: To server: pG, [17:37:17]CommunicateWithHost lk.salyk.kg:30040 [17:37:17]ConnectInit lk.salyk.kg [17:37:17]written 0, free lines is 4095 [17:37:17]Connected sock=10 [17:37:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 1A E5 04 01 3A 6F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 0D 03 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 30 F1 15 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F1 15 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 31 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 54 02 00 00 00 07 04 06 00 30 F1 15 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 CC 4E 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 65 2C 01 00 35 04 06 00 30 FF 31 BE E6 B2 22 90 1E E3 DB B8 B4 27 [17:37:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 77 D7 47 00 A0 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 34 36 35 32 10 04 04 00 65 2C 01 00 F4 03 04 00 51 F6 24 66 B6 04 01 00 00 CD 1C B6 1B 30 0A EA 62 [17:37:17]CommunicateWithHost err = 0 [17:37:17]CheckOFDResponse [17:37:17]1017 (14) - 77093643461234 [17:37:17]1041 (16) - 0000000000874652 [17:37:17]1040 (4) - 76901 [17:37:17]1012 (4) - 21.04.2024 11:19 [17:37:17]1206 (1) - 0 [17:37:17]OFD Sender: Remove packet 76901 [17:37:17]ProducePacketName [17:37:17]name=ofd_packets/00076901 [17:37:17]NVStorageDeleteData [17:37:17]Write to MH i2c: 01 00 00 34 03 37 [17:37:17]Write i2c OK [17:37:17]MH_I2C_Read... [17:37:17]Read from MH i2c: 01 [17:37:17]MH_I2C_Read... [17:37:17]Read from MH i2c: 01 07 00 [17:37:17]MH_I2C_Read... [17:37:17]Read from MH i2c: 01 07 00 34 03 00 00 00 00 00 CC 0C 16 [17:37:17]RasterBufferAndPrint [17:37:17]line [17:37:17]line [17:37:17]line [17:37:17]line [17:37:17]line [17:37:17]written 0, free lines is 3280 [17:37:18]MH_Cut [17:37:18]Write to MH i2c: D1 01 00 3B 03 01 10 [17:37:18]Write i2c OK [17:37:18]MH_I2C_Read... [17:37:18]Read from MH i2c: D1 [17:37:18]MH_I2C_Read... [17:37:18]Read from MH i2c: D1 01 00 [17:37:18]MH_I2C_Read... [17:37:18]Read from MH i2c: D1 01 00 3B 03 00 0F [17:37:18]Write to MH i2c: 01 00 00 3C 03 3F [17:37:18]Write i2c OK [17:37:18]MH_I2C_Read... [17:37:18]OFD Sender: No OFD packet to send [17:37:18]*** Cut start [17:37:18]*** Partial cut [17:37:18]*** CUTSNS_PIN = 1 [17:37:18]*** CUTSNS_PIN = 0 [17:37:19]*** Brake cut motor [17:37:19]Read from MH i2c: 01 [17:37:19]MH_I2C_Read... [17:37:19]*** Stop cut motor [17:37:19]*** Cut end [17:37:19]Read from MH i2c: 01 07 00 [17:37:19]MH_I2C_Read... [17:37:19]Read from MH i2c: 01 07 00 3C 03 00 00 00 00 00 FF 0F 54 [17:37:19]process_action close_receipt done [17:37:19]requested_data is exist [17:37:19]produce_requested_data [17:37:19]requested_item fm.sn is exist - process it [17:37:19]wFMCommunicate request_size=4 [17:37:19]MH_SAM_APDU [17:37:19]CAPDU: 80 11 00 00 [17:37:19]Write to MH i2c: E2 08 00 3D 03 80 11 00 00 00 00 00 00 BA [17:37:19]Write i2c OK [17:37:19]MH_I2C_Read... [17:37:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:19]Read from MH i2c: E2 [17:37:19]MH_I2C_Read... [17:37:19]Read from MH i2c: E2 17 00 [17:37:19]MH_I2C_Read... [17:37:19]Read from MH i2c: E2 17 00 3D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 0D [17:37:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:37:19]wFMCommunicate OK [17:37:19]requested_item fd.num is exist - process it [17:37:19]SAM_PROTO_GetFieldsCounters [17:37:19]wFMCommunicate request_size=4 [17:37:19]MH_SAM_APDU [17:37:19]CAPDU: 80 13 00 00 [17:37:19]Write to MH i2c: E2 08 00 3E 03 80 13 00 00 00 00 00 00 BD [17:37:19]Write i2c OK [17:37:19]MH_I2C_Read... [17:37:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:37:19]Read from MH i2c: E2 [17:37:19]MH_I2C_Read... [17:37:19]Read from MH i2c: E2 62 00 [17:37:19]MH_I2C_Read... [17:37:19]Read from MH i2c: E2 62 00 3E 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 65 2C 01 00 0E 04 04 00 74 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 BC [17:37: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 65 2C 01 00 0E 04 04 00 74 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 [17:37:19]wFMCommunicate OK [17:37:19]SAM_PROTO_GetFieldsCounters done [17:37:19]requested_item shift.num is exist - process it [17:37:19]requested_item shift.opened is exist - process it [17:37:19]req_shift_opened [17:37:19]FM_GetShiftState [17:37:19]SAM_PROTO_GetShiftState [17:37:19]wFMCommunicate request_size=4 [17:37:19]MH_SAM_APDU [17:37:19]CAPDU: 80 13 01 00 [17:37:19]Write to MH i2c: E2 08 00 3F 03 80 13 01 00 00 00 00 00 BF [17:37:19]Write i2c OK [17:37:19]MH_I2C_Read... [17:37:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:19]Read from MH i2c: E2 [17:37:19]MH_I2C_Read... [17:37:19]Read from MH i2c: E2 0E 00 [17:37:19]MH_I2C_Read... [17:37:19]Read from MH i2c: E2 0E 00 3F 03 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 06 [17:37:19]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [17:37:19]wFMCommunicate OK [17:37:19]SAM_PROTO_GetShiftState done [17:37:19]FM_GetShiftState done [17:37:19]req_shift_opened done [17:37:19]requested_item shift.open_date is exist - process it [17:37:19]req_shift_open_date [17:37:19]req_shift_open_date done [17:37:19]produce_requested_data done [17:37:19]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76901,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [17:37:19]process_action_free close_receipt [17:37:19]json_value_free [17:37:19]json_value_free done [17:37:19]process_json_proto returns [17:37:19]Send response to host [17:37:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76901,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [17:37:19]free response buf [17:37:19]execute_script done [17:37:19]execute_script returns [17:37:19]free content buf [17:37:19]Sock 9.Close socket [17:37:19]Sock 9.Thread stoped [17:37:19]accept exits with 8 [17:37:19]New connection [17:37:19]New thread 3066801508 created [17:37:19]Thread 3066944868 joined [17:37:19]Waiting for new connection... [17:37:19] Sock 8.Parse request [17:37:19]Sock 8.Check first char [17:37:19]Sock 8.First char is OK [17:37:19]request: POST /json_proto HTTP/1.0 [17:37:19]Method: POST [17:37:19]URL: /json_proto [17:37:19]Method is POST - this is cgi request [17:37:19]url: /json_proto [17:37:19]query_string will be loaded in cgi processing [17:37:19]execute_cgi json_proto POST (null) [17:37:19]execute_cgi path=json_proto method=POST [17:37:19]POST find Content-Length [17:37:19]Host: 172.17.62.5:8080 [17:37:19]Content-Length: 808 [17:37:19]Content-Type: application/json [17:37:19] [17:37:19]POST finish read [17:37:19]Found Content-Length = 808 [17:37:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191445", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:37:19]execute_script... [17:37: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)191445", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:37:19]POST & json_proto [17:37:19]process_json_proto [17:37:19]json parsed OK: [17:37:19]protocol is kg_v1.0 [17:37:19]action value=close_receipt [17:37:19]process_action close_receipt [17:37:19]cmd_close_receipt [17:37:19]MH_GetDate [17:37:19]Write to MH i2c: F0 00 00 40 03 32 [17:37:19]Write i2c OK [17:37:19]MH_I2C_Read... [17:37:19]Read from MH i2c: F0 [17:37:19]MH_I2C_Read... [17:37:19]Read from MH i2c: F0 09 00 [17:37:19]MH_I2C_Read... [17:37:19]Read from MH i2c: F0 09 00 40 03 00 D0 4E 25 66 F4 E9 65 64 8A [17:37:19]GetLastDocTimeStamp 1713721036 [17:37:19]current date 1713721040 [17:37:19]FM_GetShiftState [17:37:19]SAM_PROTO_GetShiftState [17:37:19]wFMCommunicate request_size=4 [17:37:19]MH_SAM_APDU [17:37:19]CAPDU: 80 13 01 00 [17:37:19]Write to MH i2c: E2 08 00 41 03 80 13 01 00 00 00 00 00 C1 [17:37:19]Write i2c OK [17:37:19]MH_I2C_Read... [17:37:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:19]Read from MH i2c: E2 [17:37:19]MH_I2C_Read... [17:37:19]Read from MH i2c: E2 0E 00 [17:37:19]MH_I2C_Read... [17:37:19]Read from MH i2c: E2 0E 00 41 03 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 08 [17:37:19]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [17:37:19]wFMCommunicate OK [17:37:19]SAM_PROTO_GetShiftState done [17:37:19]FM_GetShiftState done [17:37:19]opened in 1713658965 [17:37:19]opened+sec_in_day 1713745365 [17:37:19]quantity*price = 200037 [17:37:19]sum+1 = 200039 [17:37:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.38 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.38 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 158 21.04.2024 17:37 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 76902 ФПД: 109027704041107 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T173720&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76902&fm=109027704041107&tin=02508201610067®Number=0000000000091573&sum=200038 [17:37:21]StoreToDocumentArchive [17:37:21]shift 372 fd 76902 [17:37:21]save to /storage/0372/doc_00076902 [17:37:21]save last doc name /storage/0372/doc_00076902 to /storage/kkm_last_doc_name [17:37:21]save OK [17:37:21]Clear old archive folders... [17:37:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:37:21]tlvbuf is 00CA5EB0 [17:37:21]SAM_PROTO_ClearQueue [17:37:21]wFMCommunicate request_size=4 [17:37:21]MH_SAM_APDU [17:37:21]CAPDU: 80 09 00 00 [17:37:21]Write to MH i2c: E2 08 00 4E 03 80 09 00 00 00 00 00 00 C3 [17:37:21]Write i2c OK [17:37:21]MH_I2C_Read... [17:37:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:37:21]Read from MH i2c: E2 [17:37:21]MH_I2C_Read... [17:37:21]Read from MH i2c: E2 03 00 [17:37:21]MH_I2C_Read... [17:37:21]Read from MH i2c: E2 03 00 4E 03 00 90 00 C5 [17:37:21]RAPDU: 90 00 [17:37:21]wFMCommunicate OK [17:37:21]SAM_PROTO_ClearQueue done [17:37:21]KKMCreateOFDPacket [17:37:21]OFDProtocolAddRootSTLVToBuf [17:37:21]FM_MakeSignedData [17:37:21]FM_MakeSignedData [17:37:21]SAM_PROTO_SignData [17:37:21]wFMCommunicate request_size=4 [17:37:21]MH_SAM_APDU [17:37:21]CAPDU: 80 0D 01 02 [17:37:21]Write to MH i2c: E2 08 00 4F 03 80 0D 01 02 00 00 00 00 CB [17:37:21]Write i2c OK [17:37:21]MH_I2C_Read... [17:37:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:37:21]Read from MH i2c: E2 [17:37:21]MH_I2C_Read... [17:37:21]Read from MH i2c: E2 03 00 [17:37:21]MH_I2C_Read... [17:37:21]Read from MH i2c: E2 03 00 4F 03 00 90 00 C6 [17:37:21]RAPDU: 90 00 [17:37:21]wFMCommunicate OK [17:37:21]wFMCommunicate request_size=255 [17:37:21]MH_SAM_APDU [17:37: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 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 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 66 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 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 D0 4E 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 66 2C 01 00 35 04 06 00 63 [17:37:21]Write to MH i2c: E2 02 01 50 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 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 66 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 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 D0 4E 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 66 2C 01 00 35 04 06 00 63 00 00 5B [17:37:21]Write i2c OK [17:37:21]MH_I2C_Read... [17:37:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:21]Read from MH i2c: E2 [17:37:21]MH_I2C_Read... [17:37:21]Read from MH i2c: E2 03 00 [17:37:21]MH_I2C_Read... [17:37:21]Read from MH i2c: E2 03 00 50 03 00 90 00 C7 [17:37:21]RAPDU: 90 00 [17:37:21]wFMCommunicate OK [17:37:21]wFMCommunicate request_size=10 [17:37:21]MH_SAM_APDU [17:37:21]CAPDU: 80 0D 02 02 05 28 FD 91 EE 93 [17:37:21]Write to MH i2c: E2 0D 00 51 03 80 0D 02 02 05 00 28 FD 91 EE 93 00 00 0F [17:37:21]Write i2c OK [17:37:21]MH_I2C_Read... [17:37:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:21]Read from MH i2c: E2 [17:37:21]MH_I2C_Read... [17:37:21]Read from MH i2c: E2 03 00 [17:37:21]MH_I2C_Read... [17:37:21]Read from MH i2c: E2 03 00 51 03 00 90 00 C8 [17:37:21]RAPDU: 90 00 [17:37:21]wFMCommunicate OK [17:37:21]wFMCommunicate request_size=4 [17:37:21]MH_SAM_APDU [17:37:21]CAPDU: 80 0D 03 02 [17:37:21]Write to MH i2c: E2 08 00 52 03 80 0D 03 02 00 00 00 00 D0 [17:37:21]Write i2c OK [17:37:21]MH_I2C_Read... [17:37:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:37:21]Read from MH i2c: E2 [17:37:21]MH_I2C_Read... [17:37:21]Read from MH i2c: E2 0B 00 [17:37:21]MH_I2C_Read... [17:37:21]Read from MH i2c: E2 0B 00 52 03 00 F7 A8 D3 F6 6B E1 69 55 90 00 43 [17:37:21]RAPDU: F7 A8 D3 F6 6B E1 69 55 90 00 [17:37:21]wFMCommunicate OK [17:37:21]SAM_PROTO_SignData done [17:37:21]FM_MakeSignedData done [17:37:21]CreateOFDProtocolMessage [17:37:21]wFMCommunicate request_size=4 [17:37:21]MH_SAM_APDU [17:37:21]CAPDU: 80 11 00 00 [17:37:21]Write to MH i2c: E2 08 00 53 03 80 11 00 00 00 00 00 00 D0 [17:37:21]Write i2c OK [17:37:21]MH_I2C_Read... [17:37:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:21]Read from MH i2c: E2 [17:37:21]MH_I2C_Read... [17:37:21]Read from MH i2c: E2 17 00 [17:37:21]MH_I2C_Read... [17:37:21]Read from MH i2c: E2 17 00 53 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 23 [17:37:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:37:21]wFMCommunicate OK [17:37:21]CreateOFDProtocolMessage done [17:37:21]OFDSenderStorePacket 76902 [17:37:21]StoreOFDPacket docnum=76902 [17:37:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 CE AE 07 01 8A 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 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 66 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 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 D0 4E 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 66 2C 01 00 35 04 06 00 63 28 FD 91 EE 93 F7 A8 D3 F6 6B E1 69 55 [17:37:21]CheckFolder [17:37:21]dirname=/storage/ofd_packets [17:37:21]CheckFolder done [17:37:21]ProducePacketName [17:37:21]name=ofd_packets/00076902 [17:37:21]NVStorageSaveData ofd_packets/00076902 [17:37:21]File name is /storage/ofd_packets/00076902 [17:37:21]Write 301 bytes [17:37:21]NVStorageSaveData done [17:37:21]OFDSenderStorePacket done [17:37:21]KKMCreateOFDPacket done [17:37:21]NVStorageSaveData kkm_last_timestamp [17:37:21]File name is /storage/kkm_last_timestamp [17:37:21]Write 4 bytes [17:37:21]NVStorageSaveData done [17:37:21]ExternCall_PrintAddStr [17:37:21]wPrintStart [17:37:21]Write to MH i2c: 01 00 00 54 03 57 [17:37:21]Write i2c OK [17:37:21]MH_I2C_Read... [17:37:21]Read from MH i2c: 01 [17:37:21]MH_I2C_Read... [17:37:21]Read from MH i2c: 01 07 00 [17:37:21]MH_I2C_Read... [17:37:21]Read from MH i2c: 01 07 00 54 03 00 00 00 00 00 FF 0F 6C [17:37:21]RasterBufferAndPrint [17:37:21]line Счет N : (1)191445 [17:37:21]line ИНН: 02508201610067 [17:37:21]line Контрольно-Кассовый Чек [17:37:22]line ПРОДАЖА [17:37:22]line ТРК (МРК, ГНК) : 21 [17:37:22]line Товар: 2710124500 [17:37:22]line Аи-95-К-5 [17:37:22]line 27.440 * 72.90 [17:37:22]line = 2000.38 [17:37:22]line НДС 12% НСП 1% [17:37:22]line > о реализуемом товаре [17:37:22]line ИТОГО: 2000.38 [17:37:22]line НСП 1% : 17.70 [17:37:22]line НДС 12% : 212.43 [17:37:22]line Наличными: 0.00 [17:37:22]line Безнал.: 2000.38 [17:37:22]line Место: АЗС № 106 "Партнер Нефть" [17:37:22]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [17:37:22]line СНО: Общий режим [17:37:22]line Чек 158 21.04.2024 17:37 [17:37:22]line Смена: 372 ФФД: 1.0 [17:37:22]line ЗНМ: 0300000141 [17:37:22]line РНМ: 0000000000091573 [17:37:22]line Версия ККМ: 001 [17:37:22]line Платежная система: О! деньги [17:37:22]line ФМ: 0000000000874652 [17:37:22]line ФД: 76902 [17:37:22]line ФПД: 109027704041107 [17:37:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T173720&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76902&fm=109027704041107&tin=02508201610067®Number=0000000000091573&sum=200038 [17:37:22]OFD Sender: Processing packet 76902 [packets to send 129, broken 128] [17:37:22]ProducePacketName [17:37:22]name=ofd_packets/00076902 [17:37:22]OFD Sender: To server: pG, [17:37:22]CommunicateWithHost lk.salyk.kg:30040 [17:37:22]ConnectInit lk.salyk.kg [17:37:22]written 0, free lines is 4095 [17:37:22]Connected sock=10 [17:37:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 CE AE 07 01 8A 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 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 66 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 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 D0 4E 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 66 2C 01 00 35 04 06 00 63 28 FD 91 EE 93 F7 A8 D3 F6 6B E1 69 55 [17:37:22]Write to MH i2c: 01 00 00 7D 03 80 [17:37:22]Write i2c OK [17:37:22]MH_I2C_Read... [17:37:22]Read from MH i2c: 01 [17:37:22]MH_I2C_Read... [17:37:22]Read from MH i2c: 01 07 00 [17:37:22]MH_I2C_Read... [17:37:22]Read from MH i2c: 01 07 00 7D 03 00 00 00 00 00 09 0D 9D [17:37:22]RasterBufferAndPrint [17:37:22]line [17:37:22]line [17:37:22]line [17:37:22]line [17:37:22]line [17:37:22]written 0, free lines is 3346 [17:37:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 73 B3 47 00 B8 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 66 2C 01 00 F4 03 04 00 55 F6 24 66 B6 04 01 00 00 A9 8D 63 AE F7 BE A9 0B [17:37:22]CommunicateWithHost err = 0 [17:37:22]CheckOFDResponse [17:37:22]1017 (14) - 77093643461234 [17:37:22]1041 (16) - 0000000000874652 [17:37:22]1040 (4) - 76902 [17:37:22]1012 (4) - 21.04.2024 11:19 [17:37:22]1206 (1) - 0 [17:37:22]OFD Sender: Remove packet 76902 [17:37:22]ProducePacketName [17:37:22]name=ofd_packets/00076902 [17:37:22]NVStorageDeleteData [17:37:22]MH_Cut [17:37:22]Write to MH i2c: D1 01 00 84 03 01 59 [17:37:22]Write i2c OK [17:37:22]MH_I2C_Read... [17:37:22]Read from MH i2c: D1 [17:37:22]MH_I2C_Read... [17:37:22]Read from MH i2c: D1 01 00 [17:37:22]MH_I2C_Read... [17:37:22]Read from MH i2c: D1 01 00 84 03 00 58 [17:37:22]Write to MH i2c: 01 00 00 85 03 88 [17:37:22]Write i2c OK [17:37:22]MH_I2C_Read... [17:37:23]OFD Sender: No OFD packet to send [17:37:23]*** Cut start [17:37:23]*** Partial cut [17:37:23]*** CUTSNS_PIN = 1 [17:37:23]*** CUTSNS_PIN = 0 [17:37:23]*** Brake cut motor [17:37:24]Read from MH i2c: 01 [17:37:24]MH_I2C_Read... [17:37:24]*** Stop cut motor [17:37:24]*** Cut end [17:37:24]Read from MH i2c: 01 07 00 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: 01 07 00 85 03 00 00 00 00 00 FF 0F 9D [17:37:24]process_action close_receipt done [17:37:24]requested_data is exist [17:37:24]produce_requested_data [17:37:24]requested_item fm.sn is exist - process it [17:37:24]wFMCommunicate request_size=4 [17:37:24]MH_SAM_APDU [17:37:24]CAPDU: 80 11 00 00 [17:37:24]Write to MH i2c: E2 08 00 86 03 80 11 00 00 00 00 00 00 03 [17:37:24]Write i2c OK [17:37:24]MH_I2C_Read... [17:37:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:24]Read from MH i2c: E2 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: E2 17 00 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: E2 17 00 86 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 56 [17:37:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:37:24]wFMCommunicate OK [17:37:24]requested_item fd.num is exist - process it [17:37:24]SAM_PROTO_GetFieldsCounters [17:37:24]wFMCommunicate request_size=4 [17:37:24]MH_SAM_APDU [17:37:24]CAPDU: 80 13 00 00 [17:37:24]Write to MH i2c: E2 08 00 87 03 80 13 00 00 00 00 00 00 06 [17:37:24]Write i2c OK [17:37:24]MH_I2C_Read... [17:37:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:37:24]Read from MH i2c: E2 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: E2 62 00 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: E2 62 00 87 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 66 2C 01 00 0E 04 04 00 74 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 09 [17:37: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 66 2C 01 00 0E 04 04 00 74 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 [17:37:24]wFMCommunicate OK [17:37:24]SAM_PROTO_GetFieldsCounters done [17:37:24]requested_item shift.num is exist - process it [17:37:24]requested_item shift.opened is exist - process it [17:37:24]req_shift_opened [17:37:24]FM_GetShiftState [17:37:24]SAM_PROTO_GetShiftState [17:37:24]wFMCommunicate request_size=4 [17:37:24]MH_SAM_APDU [17:37:24]CAPDU: 80 13 01 00 [17:37:24]Write to MH i2c: E2 08 00 88 03 80 13 01 00 00 00 00 00 08 [17:37:24]Write i2c OK [17:37:24]MH_I2C_Read... [17:37:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:24]Read from MH i2c: E2 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: E2 0E 00 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: E2 0E 00 88 03 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 4F [17:37:24]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [17:37:24]wFMCommunicate OK [17:37:24]SAM_PROTO_GetShiftState done [17:37:24]FM_GetShiftState done [17:37:24]req_shift_opened done [17:37:24]requested_item shift.open_date is exist - process it [17:37:24]req_shift_open_date [17:37:24]req_shift_open_date done [17:37:24]produce_requested_data done [17:37:24]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76902,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [17:37:24]process_action_free close_receipt [17:37:24]json_value_free [17:37:24]json_value_free done [17:37:24]process_json_proto returns [17:37:24]Send response to host [17:37:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76902,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [17:37:24]free response buf [17:37:24]execute_script done [17:37:24]execute_script returns [17:37:24]free content buf [17:37:24]Sock 8.Close socket [17:37:24]Sock 8.Thread stoped [17:37:28]OFD Sender: No OFD packet to send [17:37:33]OFD Sender: No OFD packet to send [17:37:38]OFD Sender: No OFD packet to send [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:38]OFD Sender: No OFD packet to send [17:39:43]OFD Sender: No OFD packet to send [17:39:48]OFD Sender: No OFD packet to send [17:39:53]OFD Sender: No OFD packet to send [17:39:58]OFD Sender: No OFD packet to send [17:40:03]OFD Sender: No OFD packet to send [17:40:08]OFD Sender: No OFD packet to send [17:40:13]OFD Sender: No OFD packet to send [17:40:18]OFD Sender: No OFD packet to send [17:40:23]OFD Sender: No OFD packet to send [17:40:28]OFD Sender: No OFD packet to send [17:40:33]OFD Sender: No OFD packet to send [17:40:38]OFD Sender: No OFD packet to send [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:03]OFD Sender: No OFD packet to send [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:05]accept exits with 9 [17:42:05]New connection [17:42:05]New thread 3066944868 created [17:42:05]Thread 3066801508 joined [17:42:05]Waiting for new connection... [17:42:05] Sock 9.Parse request [17:42:05]Sock 9.Check first char [17:42:05]Sock 9.First char is OK [17:42:05]request: POST /json_proto HTTP/1.0 [17:42:05]Method: POST [17:42:05]URL: /json_proto [17:42:05]Method is POST - this is cgi request [17:42:05]url: /json_proto [17:42:05]query_string will be loaded in cgi processing [17:42:05]execute_cgi json_proto POST (null) [17:42:05]execute_cgi path=json_proto method=POST [17:42:05]POST find Content-Length [17:42:05]Host: 172.17.62.5:8080 [17:42:05]Content-Length: 978 [17:42:05]Content-Type: application/json [17:42:05] [17:42:05]POST finish read [17:42:05]Found Content-Length = 978 [17:42:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 39.260, "sum" : 2822.79, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 39.26 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 2822.00, "payments": [ { "type": 0, "sum" : 2822.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:05]execute_script... [17:42: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)191446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 39.260, "sum" : 2822.79, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 39.26 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 2822.00, "payments": [ { "type": 0, "sum" : 2822.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:05]POST & json_proto [17:42:05]process_json_proto [17:42:05]json parsed OK: [17:42:05]protocol is kg_v1.0 [17:42:05]action value=close_receipt [17:42:05]process_action close_receipt [17:42:05]cmd_close_receipt [17:42:05]MH_GetDate [17:42:05]Write to MH i2c: F0 00 00 89 03 7B [17:42:05]Write i2c OK [17:42:05]MH_I2C_Read... [17:42:05]Read from MH i2c: F0 [17:42:05]MH_I2C_Read... [17:42:05]Read from MH i2c: F0 09 00 [17:42:05]MH_I2C_Read... [17:42:05]Read from MH i2c: F0 09 00 89 03 00 EE 4F 25 66 F4 E9 65 64 F2 [17:42:05]GetLastDocTimeStamp 1713721040 [17:42:05]current date 1713721326 [17:42:05]FM_GetShiftState [17:42:05]SAM_PROTO_GetShiftState [17:42:05]wFMCommunicate request_size=4 [17:42:05]MH_SAM_APDU [17:42:05]CAPDU: 80 13 01 00 [17:42:05]Write to MH i2c: E2 08 00 8A 03 80 13 01 00 00 00 00 00 0A [17:42:05]Write i2c OK [17:42:05]MH_I2C_Read... [17:42:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:05]Read from MH i2c: E2 [17:42:05]MH_I2C_Read... [17:42:05]Read from MH i2c: E2 0E 00 [17:42:05]MH_I2C_Read... [17:42:05]Read from MH i2c: E2 0E 00 8A 03 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 51 [17:42:05]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [17:42:05]wFMCommunicate OK [17:42:05]SAM_PROTO_GetShiftState done [17:42:05]FM_GetShiftState done [17:42:05]opened in 1713658965 [17:42:05]opened+sec_in_day 1713745365 [17:42:05]quantity*price = 282279 [17:42:05]sum+1 = 282280 [17:42:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.79 ИТОГО: 2822.00 Внесено: 5000.00 СДАЧА: 2178.00 НСП 1% : 24.98 НДС 12% : 299.76 Наличными: 2822.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 159 21.04.2024 17:42 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 39.26 сом ФМ: 0000000000874652 ФД: 76903 ФПД: 188093914918452 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T174206&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76903&fm=188093914918452&tin=02508201610067®Number=0000000000091573&sum=282200 [17:42:06]StoreToDocumentArchive [17:42:06]shift 372 fd 76903 [17:42:06]save to /storage/0372/doc_00076903 [17:42:06]save last doc name /storage/0372/doc_00076903 to /storage/kkm_last_doc_name [17:42:06]save OK [17:42:06]Clear old archive folders... [17:42:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:42:06]tlvbuf is 00C67BF0 [17:42:06]SAM_PROTO_ClearQueue [17:42:06]wFMCommunicate request_size=4 [17:42:06]MH_SAM_APDU [17:42:06]CAPDU: 80 09 00 00 [17:42:06]Write to MH i2c: E2 08 00 97 03 80 09 00 00 00 00 00 00 0C [17:42:06]Write i2c OK [17:42:06]MH_I2C_Read... [17:42:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:42:06]Read from MH i2c: E2 [17:42:06]MH_I2C_Read... [17:42:06]Read from MH i2c: E2 03 00 [17:42:06]MH_I2C_Read... [17:42:06]Read from MH i2c: E2 03 00 97 03 00 90 00 0E [17:42:06]RAPDU: 90 00 [17:42:06]wFMCommunicate OK [17:42:06]SAM_PROTO_ClearQueue done [17:42:06]KKMCreateOFDPacket [17:42:06]OFDProtocolAddRootSTLVToBuf [17:42:06]FM_MakeSignedData [17:42:06]FM_MakeSignedData [17:42:06]SAM_PROTO_SignData [17:42:06]wFMCommunicate request_size=4 [17:42:06]MH_SAM_APDU [17:42:06]CAPDU: 80 0D 01 02 [17:42:06]Write to MH i2c: E2 08 00 98 03 80 0D 01 02 00 00 00 00 14 [17:42:06]Write i2c OK [17:42:06]MH_I2C_Read... [17:42:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:42:06]Read from MH i2c: E2 [17:42:06]MH_I2C_Read... [17:42:06]Read from MH i2c: E2 03 00 [17:42:06]MH_I2C_Read... [17:42:06]Read from MH i2c: E2 03 00 98 03 00 90 00 0F [17:42:06]RAPDU: 90 00 [17:42:06]wFMCommunicate OK [17:42:06]wFMCommunicate request_size=255 [17:42:06]MH_SAM_APDU [17:42:06]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5C 99 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 A7 4E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 4E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 75 00 00 00 00 07 04 06 00 58 4E 04 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 EE 4F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 67 2C 01 00 35 04 06 00 AB 12 06 FB [17:42:06]Write to MH i2c: E2 02 01 99 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5C 99 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 A7 4E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 4E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 75 00 00 00 00 07 04 06 00 58 4E 04 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 EE 4F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 67 2C 01 00 35 04 06 00 AB 12 06 FB 00 00 6B [17:42:06]Write i2c OK [17:42:06]MH_I2C_Read... [17:42:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:07]Read from MH i2c: E2 [17:42:07]MH_I2C_Read... [17:42:07]Read from MH i2c: E2 03 00 [17:42:07]MH_I2C_Read... [17:42:07]Read from MH i2c: E2 03 00 99 03 00 90 00 10 [17:42:07]RAPDU: 90 00 [17:42:07]wFMCommunicate OK [17:42:07]wFMCommunicate request_size=7 [17:42:07]MH_SAM_APDU [17:42:07]CAPDU: 80 0D 02 02 02 AE 34 [17:42:07]Write to MH i2c: E2 0A 00 9A 03 80 0D 02 02 02 00 AE 34 00 00 FD [17:42:07]Write i2c OK [17:42:07]MH_I2C_Read... [17:42:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:07]Read from MH i2c: E2 [17:42:07]MH_I2C_Read... [17:42:07]Read from MH i2c: E2 03 00 [17:42:07]MH_I2C_Read... [17:42:07]Read from MH i2c: E2 03 00 9A 03 00 90 00 11 [17:42:07]RAPDU: 90 00 [17:42:07]wFMCommunicate OK [17:42:07]wFMCommunicate request_size=4 [17:42:07]MH_SAM_APDU [17:42:07]CAPDU: 80 0D 03 02 [17:42:07]Write to MH i2c: E2 08 00 9B 03 80 0D 03 02 00 00 00 00 19 [17:42:07]Write i2c OK [17:42:07]MH_I2C_Read... [17:42:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:42:07]Read from MH i2c: E2 [17:42:07]MH_I2C_Read... [17:42:07]Read from MH i2c: E2 0B 00 [17:42:07]MH_I2C_Read... [17:42:07]Read from MH i2c: E2 0B 00 9B 03 00 95 4B 93 AC 3E CB 9C 02 90 00 E0 [17:42:07]RAPDU: 95 4B 93 AC 3E CB 9C 02 90 00 [17:42:07]wFMCommunicate OK [17:42:07]SAM_PROTO_SignData done [17:42:07]FM_MakeSignedData done [17:42:07]CreateOFDProtocolMessage [17:42:07]wFMCommunicate request_size=4 [17:42:07]MH_SAM_APDU [17:42:07]CAPDU: 80 11 00 00 [17:42:07]Write to MH i2c: E2 08 00 9C 03 80 11 00 00 00 00 00 00 19 [17:42:07]Write i2c OK [17:42:07]MH_I2C_Read... [17:42:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:07]Read from MH i2c: E2 [17:42:07]MH_I2C_Read... [17:42:07]Read from MH i2c: E2 17 00 [17:42:07]MH_I2C_Read... [17:42:07]Read from MH i2c: E2 17 00 9C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 6C [17:42:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:42:07]wFMCommunicate OK [17:42:07]CreateOFDProtocolMessage done [17:42:07]OFDSenderStorePacket 76903 [17:42:07]StoreOFDPacket docnum=76903 [17:42:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 07 34 04 01 30 F1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5C 99 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 A7 4E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 4E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 75 00 00 00 00 07 04 06 00 58 4E 04 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 EE 4F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 67 2C 01 00 35 04 06 00 AB 12 06 FB AE 34 95 4B 93 AC 3E CB 9C 02 [17:42:07]CheckFolder [17:42:07]dirname=/storage/ofd_packets [17:42:07]CheckFolder done [17:42:07]ProducePacketName [17:42:07]name=ofd_packets/00076903 [17:42:07]NVStorageSaveData ofd_packets/00076903 [17:42:07]File name is /storage/ofd_packets/00076903 [17:42:07]Write 298 bytes [17:42:07]NVStorageSaveData done [17:42:07]OFDSenderStorePacket done [17:42:07]KKMCreateOFDPacket done [17:42:07]NVStorageSaveData kkm_last_timestamp [17:42:07]File name is /storage/kkm_last_timestamp [17:42:07]Write 4 bytes [17:42:07]NVStorageSaveData done [17:42:07]ExternCall_PrintAddStr [17:42:07]wPrintStart [17:42:07]Write to MH i2c: 01 00 00 9D 03 A0 [17:42:07]Write i2c OK [17:42:07]MH_I2C_Read... [17:42:07]Read from MH i2c: 01 [17:42:07]MH_I2C_Read... [17:42:07]Read from MH i2c: 01 07 00 [17:42:07]MH_I2C_Read... [17:42:07]Read from MH i2c: 01 07 00 9D 03 00 00 00 00 00 FF 0F B5 [17:42:07]RasterBufferAndPrint [17:42:07]line Счет N : (1)191446 [17:42:07]line ИНН: 02508201610067 [17:42:07]line Контрольно-Кассовый Чек [17:42:07]line ПРОДАЖА [17:42:07]line ТРК (МРК, ГНК) : 51 [17:42:07]line Товар: 2710194210 [17:42:07]line ДТ-К-5 [17:42:07]line 39.260 * 71.90 [17:42:07]line = 2822.79 [17:42:07]line НДС 12% НСП 1% [17:42:07]line > о реализуемом товаре [17:42:07]line ОКРУГЛЕНИЕ: -0.79 [17:42:07]line ИТОГО: 2822.00 [17:42:07]line Внесено: 5000.00 [17:42:07]line СДАЧА: 2178.00 [17:42:07]line НСП 1% : 24.98 [17:42:07]line НДС 12% : 299.76 [17:42:07]line Наличными: 2822.00 [17:42:07]line Безнал.: 0.00 [17:42:07]line Место: АЗС № 106 "Партнер Нефть" [17:42:07]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [17:42:07]line СНО: Общий режим [17:42:07]line Чек 159 21.04.2024 17:42 [17:42:07]line Смена: 372 ФФД: 1.0 [17:42:07]line ЗНМ: 0300000141 [17:42:07]line РНМ: 0000000000091573 [17:42:07]line Версия ККМ: 001 [17:42:07]line [17:42:07]line Дисконтная программа [17:42:07]line ДТ [17:42:07]line номер 106 [17:42:07]line сэкономлено 39.26 сом [17:42:07]line ФМ: 0000000000874652 [17:42:07]line ФД: 76903 [17:42:07]line ФПД: 188093914918452 [17:42:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T174206&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76903&fm=188093914918452&tin=02508201610067®Number=0000000000091573&sum=282200 [17:42:07]OFD Sender: Processing packet 76903 [packets to send 129, broken 128] [17:42:07]ProducePacketName [17:42:07]name=ofd_packets/00076903 [17:42:07]OFD Sender: To server: pG, [17:42:07]CommunicateWithHost lk.salyk.kg:30040 [17:42:07]ConnectInit lk.salyk.kg [17:42:07]written 0, free lines is 4095 [17:42:07]Connected sock=8 [17:42:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 07 34 04 01 30 F1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5C 99 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 A7 4E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 4E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 75 00 00 00 00 07 04 06 00 58 4E 04 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 EE 4F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 67 2C 01 00 35 04 06 00 AB 12 06 FB AE 34 95 4B 93 AC 3E CB 9C 02 [17:42:08]Write to MH i2c: 01 00 00 CC 03 CF [17:42:08]Write i2c OK [17:42:08]MH_I2C_Read... [17:42:08]Read from MH i2c: 01 [17:42:08]MH_I2C_Read... [17:42:08]Read from MH i2c: 01 07 00 [17:42:08]MH_I2C_Read... [17:42:08]Read from MH i2c: 01 07 00 CC 03 00 00 00 00 00 A9 0C 8B [17:42:08]RasterBufferAndPrint [17:42:08]line [17:42:08]line [17:42:08]line [17:42:08]line [17:42:08]line [17:42:08]written 0, free lines is 3247 [17:42:08]MH_Cut [17:42:08]Write to MH i2c: D1 01 00 D3 03 01 A8 [17:42:08]Write i2c OK [17:42:08]MH_I2C_Read... [17:42:08]Read from MH i2c: D1 [17:42:08]MH_I2C_Read... [17:42:08]Read from MH i2c: D1 01 00 [17:42:08]MH_I2C_Read... [17:42:08]Read from MH i2c: D1 01 00 D3 03 00 A7 [17:42:08]Write to MH i2c: 01 00 00 D4 03 D7 [17:42:08]Write i2c OK [17:42:08]MH_I2C_Read... [17:42:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 B2 1B 47 00 F9 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 34 36 35 32 10 04 04 00 67 2C 01 00 F4 03 04 00 73 F7 24 66 B6 04 01 00 00 D2 31 F0 8C 1A 77 77 3A [17:42:08]CommunicateWithHost err = 0 [17:42:08]CheckOFDResponse [17:42:08]1017 (14) - 77093643461234 [17:42:08]1041 (16) - 0000000000874652 [17:42:08]1040 (4) - 76903 [17:42:08]1012 (4) - 21.04.2024 11:24 [17:42:08]1206 (1) - 0 [17:42:08]OFD Sender: Remove packet 76903 [17:42:08]ProducePacketName [17:42:08]name=ofd_packets/00076903 [17:42:08]NVStorageDeleteData [17:42:08]*** Cut start [17:42:08]*** Partial cut [17:42:08]*** CUTSNS_PIN = 1 [17:42:08]OFD Sender: No OFD packet to send [17:42:08]*** CUTSNS_PIN = 0 [17:42:09]*** Brake cut motor [17:42:09]Read from MH i2c: 01 [17:42:09]MH_I2C_Read... [17:42:09]*** Stop cut motor [17:42:09]*** Cut end [17:42:09]Read from MH i2c: 01 07 00 [17:42:09]MH_I2C_Read... [17:42:09]Read from MH i2c: 01 07 00 D4 03 00 00 00 00 00 FF 0F EC [17:42:09]process_action close_receipt done [17:42:09]requested_data is exist [17:42:09]produce_requested_data [17:42:09]requested_item fm.sn is exist - process it [17:42:09]wFMCommunicate request_size=4 [17:42:09]MH_SAM_APDU [17:42:09]CAPDU: 80 11 00 00 [17:42:09]Write to MH i2c: E2 08 00 D5 03 80 11 00 00 00 00 00 00 52 [17:42:09]Write i2c OK [17:42:09]MH_I2C_Read... [17:42:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:09]Read from MH i2c: E2 [17:42:09]MH_I2C_Read... [17:42:09]Read from MH i2c: E2 17 00 [17:42:09]MH_I2C_Read... [17:42:09]Read from MH i2c: E2 17 00 D5 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 A5 [17:42:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:42:09]wFMCommunicate OK [17:42:09]requested_item fd.num is exist - process it [17:42:09]SAM_PROTO_GetFieldsCounters [17:42:09]wFMCommunicate request_size=4 [17:42:09]MH_SAM_APDU [17:42:09]CAPDU: 80 13 00 00 [17:42:09]Write to MH i2c: E2 08 00 D6 03 80 13 00 00 00 00 00 00 55 [17:42:09]Write i2c OK [17:42:09]MH_I2C_Read... [17:42:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:42:09]Read from MH i2c: E2 [17:42:09]MH_I2C_Read... [17:42:09]Read from MH i2c: E2 62 00 [17:42:09]MH_I2C_Read... [17:42:09]Read from MH i2c: E2 62 00 D6 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 67 2C 01 00 0E 04 04 00 74 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 5C [17:42: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 67 2C 01 00 0E 04 04 00 74 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 [17:42:09]wFMCommunicate OK [17:42:09]SAM_PROTO_GetFieldsCounters done [17:42:09]requested_item shift.num is exist - process it [17:42:09]requested_item shift.opened is exist - process it [17:42:09]req_shift_opened [17:42:09]FM_GetShiftState [17:42:09]SAM_PROTO_GetShiftState [17:42:09]wFMCommunicate request_size=4 [17:42:09]MH_SAM_APDU [17:42:09]CAPDU: 80 13 01 00 [17:42:09]Write to MH i2c: E2 08 00 D7 03 80 13 01 00 00 00 00 00 57 [17:42:09]Write i2c OK [17:42:09]MH_I2C_Read... [17:42:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:09]Read from MH i2c: E2 [17:42:09]MH_I2C_Read... [17:42:09]Read from MH i2c: E2 0E 00 [17:42:09]MH_I2C_Read... [17:42:09]Read from MH i2c: E2 0E 00 D7 03 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 9E [17:42:09]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [17:42:09]wFMCommunicate OK [17:42:09]SAM_PROTO_GetShiftState done [17:42:09]FM_GetShiftState done [17:42:09]req_shift_opened done [17:42:09]requested_item shift.open_date is exist - process it [17:42:09]req_shift_open_date [17:42:09]req_shift_open_date done [17:42:09]produce_requested_data done [17:42:09]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76903,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [17:42:09]process_action_free close_receipt [17:42:09]json_value_free [17:42:09]json_value_free done [17:42:09]process_json_proto returns [17:42:09]Send response to host [17:42:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76903,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [17:42:09]free response buf [17:42:09]execute_script done [17:42:09]execute_script returns [17:42:09]free content buf [17:42:09]Sock 9.Close socket [17:42:09]Sock 9.Thread stoped [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:28]OFD Sender: No OFD packet to send [17:42:33]OFD Sender: No OFD packet to send [17:42:38]OFD Sender: No OFD packet to send [17:42:43]OFD Sender: No OFD packet to send [17:42:48]OFD Sender: No OFD packet to send [17:42:53]OFD Sender: No OFD packet to send [17:42:58]OFD Sender: No OFD packet to send [17:43:03]OFD Sender: No OFD packet to send [17:43:08]OFD Sender: No OFD packet to send [17:43:13]OFD Sender: No OFD packet to send [17:43:18]OFD Sender: No OFD packet to send [17:43:23]OFD Sender: No OFD packet to send [17:43:28]OFD Sender: No OFD packet to send [17:43:33]OFD Sender: No OFD packet to send [17:43:38]OFD Sender: No OFD packet to send [17:43:43]OFD Sender: No OFD packet to send [17:43:48]OFD Sender: No OFD packet to send [17:43:53]OFD Sender: No OFD packet to send [17:43:58]OFD Sender: No OFD packet to send [17:44:03]OFD Sender: No OFD packet to send [17:44:08]OFD Sender: No OFD packet to send [17:44:13]OFD Sender: No OFD packet to send [17:44:18]OFD Sender: No OFD packet to send [17:44:24]OFD Sender: No OFD packet to send [17:44:29]OFD Sender: No OFD packet to send [17:44:34]OFD Sender: No OFD packet to send [17:44:39]OFD Sender: No OFD packet to send [17:44:44]OFD Sender: No OFD packet to send [17:44:49]OFD Sender: No OFD packet to send [17:44:54]OFD Sender: No OFD packet to send [17:44:59]OFD Sender: No OFD packet to send [17:45:04]OFD Sender: No OFD packet to send [17:45:09]OFD Sender: No OFD packet to send [17:45:14]OFD Sender: No OFD packet to send [17:45:19]OFD Sender: No OFD packet to send [17:45:24]OFD Sender: No OFD packet to send [17:45:29]OFD Sender: No OFD packet to send [17:45:34]OFD Sender: No OFD packet to send [17:45:39]OFD Sender: No OFD packet to send [17:45:44]OFD Sender: No OFD packet to send [17:45:49]OFD Sender: No OFD packet to send [17:45:54]OFD Sender: No OFD packet to send [17:45:59]OFD Sender: No OFD packet to send [17:46:04]OFD Sender: No OFD packet to send [17:46:09]OFD Sender: No OFD packet to send [17:46:14]OFD Sender: No OFD packet to send [17:46:19]OFD Sender: No OFD packet to send [17:46:24]OFD Sender: No OFD packet to send [17:46:29]OFD Sender: No OFD packet to send [17:46:34]OFD Sender: No OFD packet to send [17:46:39]OFD Sender: No OFD packet to send [17:46:44]OFD Sender: No OFD packet to send [17:46:49]OFD Sender: No OFD packet to send [17:46:54]OFD Sender: No OFD packet to send [17:46:59]OFD Sender: No OFD packet to send [17:47:04]OFD Sender: No OFD packet to send [17:47:09]OFD Sender: No OFD packet to send [17:47:14]OFD Sender: No OFD packet to send [17:47:19]OFD Sender: No OFD packet to send [17:47:24]OFD Sender: No OFD packet to send [17:47:29]OFD Sender: No OFD packet to send [17:47:34]OFD Sender: No OFD packet to send [17:47:39]OFD Sender: No OFD packet to send [17:47:44]OFD Sender: No OFD packet to send [17:47:49]OFD Sender: No OFD packet to send [17:47:54]OFD Sender: No OFD packet to send [17:47:59]OFD Sender: No OFD packet to send [17:48:04]OFD Sender: No OFD packet to send [17:48:09]OFD Sender: No OFD packet to send [17:48:14]OFD Sender: No OFD packet to send [17:48:19]OFD Sender: No OFD packet to send [17:48:24]OFD Sender: No OFD packet to send [17:48:29]OFD Sender: No OFD packet to send [17:48:34]OFD Sender: No OFD packet to send [17:48:39]OFD Sender: No OFD packet to send [17:48:44]OFD Sender: No OFD packet to send [17:48:49]OFD Sender: No OFD packet to send [17:48:54]OFD Sender: No OFD packet to send [17:48:59]OFD Sender: No OFD packet to send [17:49:04]OFD Sender: No OFD packet to send [17:49:09]OFD Sender: No OFD packet to send [17:49:14]OFD Sender: No OFD packet to send [17:49:19]OFD Sender: No OFD packet to send [17:49:24]OFD Sender: No OFD packet to send [17:49:29]OFD Sender: No OFD packet to send [17:49:34]OFD Sender: No OFD packet to send [17:49:39]OFD Sender: No OFD packet to send [17:49:44]OFD Sender: No OFD packet to send [17:49:49]OFD Sender: No OFD packet to send [17:49:54]OFD Sender: No OFD packet to send [17:49:59]OFD Sender: No OFD packet to send [17:50:04]OFD Sender: No OFD packet to send [17:50:09]OFD Sender: No OFD packet to send [17:50:14]OFD Sender: No OFD packet to send [17:50:19]OFD Sender: No OFD packet to send [17:50:24]OFD Sender: No OFD packet to send [17:50:29]OFD Sender: No OFD packet to send [17:50:34]OFD Sender: No OFD packet to send [17:50:39]OFD Sender: No OFD packet to send [17:50:44]OFD Sender: No OFD packet to send [17:50:49]OFD Sender: No OFD packet to send [17:50:54]OFD Sender: No OFD packet to send [17:50:59]OFD Sender: No OFD packet to send [17:51:04]OFD Sender: No OFD packet to send [17:51:09]OFD Sender: No OFD packet to send [17:51:14]OFD Sender: No OFD packet to send [17:51:19]OFD Sender: No OFD packet to send [17:51:24]OFD Sender: No OFD packet to send [17:51:29]OFD Sender: No OFD packet to send [17:51:34]OFD Sender: No OFD packet to send [17:51:39]OFD Sender: No OFD packet to send [17:51:44]OFD Sender: No OFD packet to send [17:51:49]OFD Sender: No OFD packet to send [17:51:54]OFD Sender: No OFD packet to send [17:51:59]OFD Sender: No OFD packet to send [17:52:04]OFD Sender: No OFD packet to send [17:52:09]OFD Sender: No OFD packet to send [17:52:14]OFD Sender: No OFD packet to send [17:52:19]OFD Sender: No OFD packet to send [17:52:24]OFD Sender: No OFD packet to send [17:52:29]OFD Sender: No OFD packet to send [17:52:34]OFD Sender: No OFD packet to send [17:52:39]OFD Sender: No OFD packet to send [17:52:44]OFD Sender: No OFD packet to send [17:52:49]OFD Sender: No OFD packet to send [17:52:54]OFD Sender: No OFD packet to send [17:52:59]OFD Sender: No OFD packet to send [17:53:04]OFD Sender: No OFD packet to send [17:53:09]OFD Sender: No OFD packet to send [17:53:14]OFD Sender: No OFD packet to send [17:53:19]OFD Sender: No OFD packet to send [17:53:24]OFD Sender: No OFD packet to send [17:53:29]OFD Sender: No OFD packet to send [17:53:34]OFD Sender: No OFD packet to send [17:53:39]OFD Sender: No OFD packet to send [17:53:44]OFD Sender: No OFD packet to send [17:53:49]OFD Sender: No OFD packet to send [17:53:54]OFD Sender: No OFD packet to send [17:53:59]OFD Sender: No OFD packet to send [17:54:04]OFD Sender: No OFD packet to send [17:54:09]OFD Sender: No OFD packet to send [17:54:14]OFD Sender: No OFD packet to send [17:54:19]OFD Sender: No OFD packet to send [17:54:24]OFD Sender: No OFD packet to send [17:54:29]OFD Sender: No OFD packet to send [17:54:34]OFD Sender: No OFD packet to send [17:54:39]OFD Sender: No OFD packet to send [17:54:44]OFD Sender: No OFD packet to send [17:54:49]OFD Sender: No OFD packet to send [17:54:54]OFD Sender: No OFD packet to send [17:54:59]OFD Sender: No OFD packet to send [17:55:04]OFD Sender: No OFD packet to send [17:55:09]OFD Sender: No OFD packet to send [17:55:14]OFD Sender: No OFD packet to send [17:55:19]OFD Sender: No OFD packet to send [17:55:24]OFD Sender: No OFD packet to send [17:55:29]OFD Sender: No OFD packet to send [17:55:34]OFD Sender: No OFD packet to send [17:55:39]OFD Sender: No OFD packet to send [17:55:44]OFD Sender: No OFD packet to send [17:55:48]accept exits with 10 [17:55:48]New connection [17:55:48]New thread 3066801508 created [17:55:48]Thread 3066944868 joined [17:55:48]Waiting for new connection... [17:55:48] Sock 10.Parse request [17:55:48]Sock 10.Check first char [17:55:48]Sock 10.First char is OK [17:55:48]request: POST /json_proto HTTP/1.0 [17:55:48]Method: POST [17:55:48]URL: /json_proto [17:55:48]Method is POST - this is cgi request [17:55:48]url: /json_proto [17:55:48]query_string will be loaded in cgi processing [17:55:48]execute_cgi json_proto POST (null) [17:55:48]execute_cgi path=json_proto method=POST [17:55:48]POST find Content-Length [17:55:48]Host: 172.17.62.5:8080 [17:55:48]Content-Length: 640 [17:55:48]Content-Type: application/json [17:55:48] [17:55:48]POST finish read [17:55:48]Found Content-Length = 640 [17:55:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191447", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [17:55:48]execute_script... [17:55: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)191447", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [17:55:48]POST & json_proto [17:55:48]process_json_proto [17:55:48]json parsed OK: [17:55:48]protocol is kg_v1.0 [17:55:48]action value=close_receipt [17:55:48]process_action close_receipt [17:55:48]cmd_close_receipt [17:55:48]MH_GetDate [17:55:48]Write to MH i2c: F0 00 00 D8 03 CA [17:55:48]Write i2c OK [17:55:48]MH_I2C_Read... [17:55:48]Read from MH i2c: F0 [17:55:48]MH_I2C_Read... [17:55:48]Read from MH i2c: F0 09 00 [17:55:48]MH_I2C_Read... [17:55:48]Read from MH i2c: F0 09 00 D8 03 00 25 53 25 66 F4 E9 65 64 7C [17:55:48]GetLastDocTimeStamp 1713721326 [17:55:48]current date 1713722149 [17:55:48]FM_GetShiftState [17:55:48]SAM_PROTO_GetShiftState [17:55:48]wFMCommunicate request_size=4 [17:55:48]MH_SAM_APDU [17:55:48]CAPDU: 80 13 01 00 [17:55:48]Write to MH i2c: E2 08 00 D9 03 80 13 01 00 00 00 00 00 59 [17:55:48]Write i2c OK [17:55:48]MH_I2C_Read... [17:55:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:48]Read from MH i2c: E2 [17:55:48]MH_I2C_Read... [17:55:48]Read from MH i2c: E2 0E 00 [17:55:48]MH_I2C_Read... [17:55:48]Read from MH i2c: E2 0E 00 D9 03 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 A0 [17:55:48]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [17:55:48]wFMCommunicate OK [17:55:48]SAM_PROTO_GetShiftState done [17:55:48]FM_GetShiftState done [17:55:48]opened in 1713658965 [17:55:48]opened+sec_in_day 1713745365 [17:55:48]quantity*price = 72900 [17:55:48]sum+1 = 72901 [17:55:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 729.00 НСП 1% : 6.45 НДС 12% : 77.42 Наличными: 729.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 160 21.04.2024 17:55 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76904 ФПД: 86094224971732 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T175549&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76904&fm=86094224971732&tin=02508201610067®Number=0000000000091573&sum=72900 [17:55:49]StoreToDocumentArchive [17:55:49]shift 372 fd 76904 [17:55:49]save to /storage/0372/doc_00076904 [17:55:49]save last doc name /storage/0372/doc_00076904 to /storage/kkm_last_doc_name [17:55:49]save OK [17:55:49]Clear old archive folders... [17:55:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:55:49]tlvbuf is 00C93E10 [17:55:49]SAM_PROTO_ClearQueue [17:55:49]wFMCommunicate request_size=4 [17:55:49]MH_SAM_APDU [17:55:49]CAPDU: 80 09 00 00 [17:55:49]Write to MH i2c: E2 08 00 E6 03 80 09 00 00 00 00 00 00 5B [17:55:49]Write i2c OK [17:55:49]MH_I2C_Read... [17:55:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:55:49]Read from MH i2c: E2 [17:55:49]MH_I2C_Read... [17:55:49]Read from MH i2c: E2 03 00 [17:55:49]MH_I2C_Read... [17:55:49]Read from MH i2c: E2 03 00 E6 03 00 90 00 5D [17:55:49]RAPDU: 90 00 [17:55:49]wFMCommunicate OK [17:55:49]SAM_PROTO_ClearQueue done [17:55:49]KKMCreateOFDPacket [17:55:49]OFDProtocolAddRootSTLVToBuf [17:55:49]FM_MakeSignedData [17:55:49]FM_MakeSignedData [17:55:49]SAM_PROTO_SignData [17:55:49]wFMCommunicate request_size=4 [17:55:49]MH_SAM_APDU [17:55:49]CAPDU: 80 0D 01 02 [17:55:49]Write to MH i2c: E2 08 00 E7 03 80 0D 01 02 00 00 00 00 63 [17:55:49]Write i2c OK [17:55:49]MH_I2C_Read... [17:55:49]OFD Sender: No OFD packet to send [17:55:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:55:49]Read from MH i2c: E2 [17:55:49]MH_I2C_Read... [17:55:49]Read from MH i2c: E2 03 00 [17:55:49]MH_I2C_Read... [17:55:49]Read from MH i2c: E2 03 00 E7 03 00 90 00 5E [17:55:49]RAPDU: 90 00 [17:55:49]wFMCommunicate OK [17:55:49]wFMCommunicate request_size=255 [17:55:49]MH_SAM_APDU [17:55:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 A0 00 00 00 F4 03 04 00 25 53 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 68 2C 01 00 35 04 06 00 4E [17:55:49]Write to MH i2c: E2 02 01 E8 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 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 A0 00 00 00 F4 03 04 00 25 53 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 68 2C 01 00 35 04 06 00 4E 00 00 BF [17:55:49]Write i2c OK [17:55:49]MH_I2C_Read... [17:55:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:50]Read from MH i2c: E2 [17:55:50]MH_I2C_Read... [17:55:50]Read from MH i2c: E2 03 00 [17:55:50]MH_I2C_Read... [17:55:50]Read from MH i2c: E2 03 00 E8 03 00 90 00 5F [17:55:50]RAPDU: 90 00 [17:55:50]wFMCommunicate OK [17:55:50]wFMCommunicate request_size=10 [17:55:50]MH_SAM_APDU [17:55:50]CAPDU: 80 0D 02 02 05 4D 5F B2 57 D4 [17:55:50]Write to MH i2c: E2 0D 00 E9 03 80 0D 02 02 05 00 4D 5F B2 57 D4 00 00 F9 [17:55:50]Write i2c OK [17:55:50]MH_I2C_Read... [17:55:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:50]Read from MH i2c: E2 [17:55:50]MH_I2C_Read... [17:55:50]Read from MH i2c: E2 03 00 [17:55:50]MH_I2C_Read... [17:55:50]Read from MH i2c: E2 03 00 E9 03 00 90 00 60 [17:55:50]RAPDU: 90 00 [17:55:50]wFMCommunicate OK [17:55:50]wFMCommunicate request_size=4 [17:55:50]MH_SAM_APDU [17:55:50]CAPDU: 80 0D 03 02 [17:55:50]Write to MH i2c: E2 08 00 EA 03 80 0D 03 02 00 00 00 00 68 [17:55:50]Write i2c OK [17:55:50]MH_I2C_Read... [17:55:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:55:50]Read from MH i2c: E2 [17:55:50]MH_I2C_Read... [17:55:50]Read from MH i2c: E2 0B 00 [17:55:50]MH_I2C_Read... [17:55:50]Read from MH i2c: E2 0B 00 EA 03 00 A9 18 3E 4D 81 95 05 C0 90 00 90 [17:55:50]RAPDU: A9 18 3E 4D 81 95 05 C0 90 00 [17:55:50]wFMCommunicate OK [17:55:50]SAM_PROTO_SignData done [17:55:50]FM_MakeSignedData done [17:55:50]CreateOFDProtocolMessage [17:55:50]wFMCommunicate request_size=4 [17:55:50]MH_SAM_APDU [17:55:50]CAPDU: 80 11 00 00 [17:55:50]Write to MH i2c: E2 08 00 EB 03 80 11 00 00 00 00 00 00 68 [17:55:50]Write i2c OK [17:55:50]MH_I2C_Read... [17:55:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:50]Read from MH i2c: E2 [17:55:50]MH_I2C_Read... [17:55:50]Read from MH i2c: E2 17 00 [17:55:50]MH_I2C_Read... [17:55:50]Read from MH i2c: E2 17 00 EB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 BB [17:55:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:55:50]wFMCommunicate OK [17:55:50]CreateOFDProtocolMessage done [17:55:50]OFDSenderStorePacket 76904 [17:55:50]StoreOFDPacket docnum=76904 [17:55:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 F5 CF 07 01 3F FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 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 A0 00 00 00 F4 03 04 00 25 53 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 68 2C 01 00 35 04 06 00 4E 4D 5F B2 57 D4 A9 18 3E 4D 81 95 05 C0 [17:55:50]CheckFolder [17:55:50]dirname=/storage/ofd_packets [17:55:50]CheckFolder done [17:55:50]ProducePacketName [17:55:50]name=ofd_packets/00076904 [17:55:50]NVStorageSaveData ofd_packets/00076904 [17:55:50]File name is /storage/ofd_packets/00076904 [17:55:50]Write 301 bytes [17:55:50]NVStorageSaveData done [17:55:50]OFDSenderStorePacket done [17:55:50]KKMCreateOFDPacket done [17:55:50]NVStorageSaveData kkm_last_timestamp [17:55:50]File name is /storage/kkm_last_timestamp [17:55:50]Write 4 bytes [17:55:50]NVStorageSaveData done [17:55:50]ExternCall_PrintAddStr [17:55:50]wPrintStart [17:55:50]Write to MH i2c: 01 00 00 EC 03 EF [17:55:50]Write i2c OK [17:55:50]MH_I2C_Read... [17:55:50]Read from MH i2c: 01 [17:55:50]MH_I2C_Read... [17:55:50]Read from MH i2c: 01 07 00 [17:55:50]MH_I2C_Read... [17:55:50]Read from MH i2c: 01 07 00 EC 03 00 00 00 00 00 FF 0F 04 [17:55:50]RasterBufferAndPrint [17:55:50]line Счет N : (1)191447 [17:55:50]line ИНН: 02508201610067 [17:55:50]line Контрольно-Кассовый Чек [17:55:50]line ПРОДАЖА [17:55:50]line ТРК (МРК, ГНК) : 21 [17:55:50]line Товар: 2710124500 [17:55:50]line Аи-95-К-5 [17:55:50]line 10.000 * 72.90 [17:55:50]line = 729.00 [17:55:50]line НДС 12% НСП 1% [17:55:50]line > о реализуемом товаре [17:55:50]line ИТОГО: 729.00 [17:55:50]line НСП 1% : 6.45 [17:55:50]line НДС 12% : 77.42 [17:55:50]line Наличными: 729.00 [17:55:50]line Безнал.: 0.00 [17:55:50]line Место: АЗС № 106 "Партнер Нефть" [17:55:50]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [17:55:50]line СНО: Общий режим [17:55:50]line Чек 160 21.04.2024 17:55 [17:55:50]line Смена: 372 ФФД: 1.0 [17:55:50]line ЗНМ: 0300000141 [17:55:50]line РНМ: 0000000000091573 [17:55:50]line Версия ККМ: 001 [17:55:50]line ФМ: 0000000000874652 [17:55:50]line ФД: 76904 [17:55:50]line ФПД: 86094224971732 [17:55:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T175549&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76904&fm=86094224971732&tin=02508201610067®Number=0000000000091573&sum=72900 [17:55:50]OFD Sender: Processing packet 76904 [packets to send 129, broken 128] [17:55:50]ProducePacketName [17:55:50]name=ofd_packets/00076904 [17:55:50]OFD Sender: To server: pG, [17:55:50]CommunicateWithHost lk.salyk.kg:30040 [17:55:50]ConnectInit lk.salyk.kg [17:55:50]written 0, free lines is 4095 [17:55:50]Connected sock=8 [17:55:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 F5 CF 07 01 3F FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 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 A0 00 00 00 F4 03 04 00 25 53 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 68 2C 01 00 35 04 06 00 4E 4D 5F B2 57 D4 A9 18 3E 4D 81 95 05 C0 [17:55:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 7C 2F 47 00 92 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 68 2C 01 00 F4 03 04 00 AA FA 24 66 B6 04 01 00 00 88 4B 98 86 89 BF 37 4F [17:55:50]CommunicateWithHost err = 0 [17:55:50]CheckOFDResponse [17:55:50]1017 (14) - 77093643461234 [17:55:50]1041 (16) - 0000000000874652 [17:55:50]1040 (4) - 76904 [17:55:50]1012 (4) - 21.04.2024 11:38 [17:55:50]1206 (1) - 0 [17:55:50]OFD Sender: Remove packet 76904 [17:55:50]ProducePacketName [17:55:50]name=ofd_packets/00076904 [17:55:50]NVStorageDeleteData [17:55:51]Write to MH i2c: 01 00 00 13 04 17 [17:55:51]Write i2c OK [17:55:51]MH_I2C_Read... [17:55:51]Read from MH i2c: 01 [17:55:51]MH_I2C_Read... [17:55:51]Read from MH i2c: 01 07 00 [17:55:51]MH_I2C_Read... [17:55:51]Read from MH i2c: 01 07 00 13 04 00 00 00 00 00 1E 0D 49 [17:55:51]RasterBufferAndPrint [17:55:51]line [17:55:51]line [17:55:51]line [17:55:51]line [17:55:51]line [17:55:51]written 0, free lines is 3364 [17:55:51]MH_Cut [17:55:51]Write to MH i2c: D1 01 00 1A 04 01 F0 [17:55:51]Write i2c OK [17:55:51]MH_I2C_Read... [17:55:51]Read from MH i2c: D1 [17:55:51]MH_I2C_Read... [17:55:51]Read from MH i2c: D1 01 00 [17:55:51]MH_I2C_Read... [17:55:51]Read from MH i2c: D1 01 00 1A 04 00 EF [17:55:51]Write to MH i2c: 01 00 00 1B 04 1F [17:55:51]Write i2c OK [17:55:51]MH_I2C_Read... [17:55:51]OFD Sender: No OFD packet to send [17:55:51]*** Cut start [17:55:51]*** Partial cut [17:55:51]*** CUTSNS_PIN = 1 [17:55:51]*** CUTSNS_PIN = 0 [17:55:52]*** Brake cut motor [17:55:52]Read from MH i2c: 01 [17:55:52]MH_I2C_Read... [17:55:52]*** Stop cut motor [17:55:52]*** Cut end [17:55:52]Read from MH i2c: 01 07 00 [17:55:52]MH_I2C_Read... [17:55:52]Read from MH i2c: 01 07 00 1B 04 00 00 00 00 00 FF 0F 34 [17:55:52]process_action close_receipt done [17:55:52]requested_data is exist [17:55:52]produce_requested_data [17:55:52]requested_item fm.sn is exist - process it [17:55:52]wFMCommunicate request_size=4 [17:55:52]MH_SAM_APDU [17:55:52]CAPDU: 80 11 00 00 [17:55:52]Write to MH i2c: E2 08 00 1C 04 80 11 00 00 00 00 00 00 9A [17:55:52]Write i2c OK [17:55:52]MH_I2C_Read... [17:55:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:52]Read from MH i2c: E2 [17:55:52]MH_I2C_Read... [17:55:52]Read from MH i2c: E2 17 00 [17:55:52]MH_I2C_Read... [17:55:52]Read from MH i2c: E2 17 00 1C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 ED [17:55:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:55:52]wFMCommunicate OK [17:55:52]requested_item fd.num is exist - process it [17:55:52]SAM_PROTO_GetFieldsCounters [17:55:52]wFMCommunicate request_size=4 [17:55:52]MH_SAM_APDU [17:55:52]CAPDU: 80 13 00 00 [17:55:52]Write to MH i2c: E2 08 00 1D 04 80 13 00 00 00 00 00 00 9D [17:55:52]Write i2c OK [17:55:52]MH_I2C_Read... [17:55:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:55:52]Read from MH i2c: E2 [17:55:52]MH_I2C_Read... [17:55:52]Read from MH i2c: E2 62 00 [17:55:52]MH_I2C_Read... [17:55:52]Read from MH i2c: E2 62 00 1D 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 68 2C 01 00 0E 04 04 00 74 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 A8 [17:55:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 68 2C 01 00 0E 04 04 00 74 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 [17:55:52]wFMCommunicate OK [17:55:52]SAM_PROTO_GetFieldsCounters done [17:55:52]requested_item shift.num is exist - process it [17:55:52]requested_item shift.opened is exist - process it [17:55:52]req_shift_opened [17:55:52]FM_GetShiftState [17:55:52]SAM_PROTO_GetShiftState [17:55:52]wFMCommunicate request_size=4 [17:55:52]MH_SAM_APDU [17:55:52]CAPDU: 80 13 01 00 [17:55:52]Write to MH i2c: E2 08 00 1E 04 80 13 01 00 00 00 00 00 9F [17:55:52]Write i2c OK [17:55:52]MH_I2C_Read... [17:55:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:52]Read from MH i2c: E2 [17:55:52]MH_I2C_Read... [17:55:52]Read from MH i2c: E2 0E 00 [17:55:52]MH_I2C_Read... [17:55:52]Read from MH i2c: E2 0E 00 1E 04 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 E6 [17:55:52]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [17:55:52]wFMCommunicate OK [17:55:52]SAM_PROTO_GetShiftState done [17:55:52]FM_GetShiftState done [17:55:52]req_shift_opened done [17:55:52]requested_item shift.open_date is exist - process it [17:55:52]req_shift_open_date [17:55:52]req_shift_open_date done [17:55:52]produce_requested_data done [17:55:52]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76904,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [17:55:52]process_action_free close_receipt [17:55:52]json_value_free [17:55:52]json_value_free done [17:55:52]process_json_proto returns [17:55:52]Send response to host [17:55:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76904,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [17:55:52]free response buf [17:55:52]execute_script done [17:55:52]execute_script returns [17:55:52]free content buf [17:55:52]Sock 10.Close socket [17:55:52]Sock 10.Thread stoped [17:55:56]OFD Sender: No OFD packet to send [17:56:01]OFD Sender: No OFD packet to send [17:56:06]OFD Sender: No OFD packet to send [17:56:11]OFD Sender: No OFD packet to send [17:56:16]OFD Sender: No OFD packet to send [17:56:21]OFD Sender: No OFD packet to send [17:56:26]OFD Sender: No OFD packet to send [17:56:31]OFD Sender: No OFD packet to send [17:56:36]OFD Sender: No OFD packet to send [17:56:41]OFD Sender: No OFD packet to send [17:56:46]OFD Sender: No OFD packet to send [17:56:51]OFD Sender: No OFD packet to send [17:56:56]OFD Sender: No OFD packet to send [17:57:01]OFD Sender: No OFD packet to send [17:57:06]OFD Sender: No OFD packet to send [17:57:11]OFD Sender: No OFD packet to send [17:57:16]OFD Sender: No OFD packet to send [17:57:21]OFD Sender: No OFD packet to send [17:57:26]OFD Sender: No OFD packet to send [17:57:31]OFD Sender: No OFD packet to send [17:57:36]OFD Sender: No OFD packet to send [17:57:41]OFD Sender: No OFD packet to send [17:57:46]OFD Sender: No OFD packet to send [17:57:51]OFD Sender: No OFD packet to send [17:57:56]OFD Sender: No OFD packet to send [17:58:01]OFD Sender: No OFD packet to send [17:58:06]OFD Sender: No OFD packet to send [17:58:11]OFD Sender: No OFD packet to send [17:58:16]OFD Sender: No OFD packet to send [17:58:21]OFD Sender: No OFD packet to send [17:58:26]OFD Sender: No OFD packet to send [17:58:31]OFD Sender: No OFD packet to send [17:58:36]OFD Sender: No OFD packet to send [17:58:41]OFD Sender: No OFD packet to send [17:58:46]OFD Sender: No OFD packet to send [17:58:51]OFD Sender: No OFD packet to send [17:58:56]OFD Sender: No OFD packet to send [17:59:01]OFD Sender: No OFD packet to send [17:59:06]OFD Sender: No OFD packet to send [17:59:11]OFD Sender: No OFD packet to send [17:59:16]OFD Sender: No OFD packet to send [17:59:21]OFD Sender: No OFD packet to send [17:59:26]OFD Sender: No OFD packet to send [17:59:31]OFD Sender: No OFD packet to send [17:59:36]OFD Sender: No OFD packet to send [17:59:41]OFD Sender: No OFD packet to send [17:59:46]OFD Sender: No OFD packet to send [17:59:51]OFD Sender: No OFD packet to send [17:59:56]OFD Sender: No OFD packet to send [18:00:01]OFD Sender: No OFD packet to send [18:00:06]OFD Sender: No OFD packet to send [18:00:11]OFD Sender: No OFD packet to send [18:00:16]OFD Sender: No OFD packet to send [18:00:21]OFD Sender: No OFD packet to send [18:00:26]OFD Sender: No OFD packet to send [18:00:31]OFD Sender: No OFD packet to send [18:00:36]OFD Sender: No OFD packet to send [18:00:41]OFD Sender: No OFD packet to send [18:00:46]OFD Sender: No OFD packet to send [18:00:51]OFD Sender: No OFD packet to send [18:00:56]OFD Sender: No OFD packet to send [18:01:01]OFD Sender: No OFD packet to send [18:01:06]OFD Sender: No OFD packet to send [18:01:11]OFD Sender: No OFD packet to send [18:01:16]OFD Sender: No OFD packet to send [18:01:21]OFD Sender: No OFD packet to send [18:01:26]OFD Sender: No OFD packet to send [18:01:31]OFD Sender: No OFD packet to send [18:01:36]OFD Sender: No OFD packet to send [18:01:41]OFD Sender: No OFD packet to send [18:01:46]OFD Sender: No OFD packet to send [18:01:51]OFD Sender: No OFD packet to send [18:01:56]OFD Sender: No OFD packet to send [18:02:01]OFD Sender: No OFD packet to send [18:02:06]OFD Sender: No OFD packet to send [18:02:11]OFD Sender: No OFD packet to send [18:02:16]OFD Sender: No OFD packet to send [18:02:21]OFD Sender: No OFD packet to send [18:02:26]OFD Sender: No OFD packet to send [18:02:31]OFD Sender: No OFD packet to send [18:02:36]OFD Sender: No OFD packet to send [18:02:41]OFD Sender: No OFD packet to send [18:02:46]OFD Sender: No OFD packet to send [18:02:52]OFD Sender: No OFD packet to send [18:02:57]OFD Sender: No OFD packet to send [18:03:02]OFD Sender: No OFD packet to send [18:03:07]OFD Sender: No OFD packet to send [18:03:12]OFD Sender: No OFD packet to send [18:03:17]OFD Sender: No OFD packet to send [18:03:22]OFD Sender: No OFD packet to send [18:03:27]OFD Sender: No OFD packet to send [18:03:32]OFD Sender: No OFD packet to send [18:03:37]OFD Sender: No OFD packet to send [18:03:42]OFD Sender: No OFD packet to send [18:03:47]OFD Sender: No OFD packet to send [18:03:52]OFD Sender: No OFD packet to send [18:03:57]OFD Sender: No OFD packet to send [18:04:02]OFD Sender: No OFD packet to send [18:04:07]OFD Sender: No OFD packet to send [18:04:12]OFD Sender: No OFD packet to send [18:04:17]OFD Sender: No OFD packet to send [18:04:22]OFD Sender: No OFD packet to send [18:04:27]OFD Sender: No OFD packet to send [18:04:32]OFD Sender: No OFD packet to send [18:04:37]OFD Sender: No OFD packet to send [18:04:42]OFD Sender: No OFD packet to send [18:04:47]OFD Sender: No OFD packet to send [18:04:52]OFD Sender: No OFD packet to send [18:04:57]OFD Sender: No OFD packet to send [18:05:02]OFD Sender: No OFD packet to send [18:05:07]OFD Sender: No OFD packet to send [18:05:12]OFD Sender: No OFD packet to send [18:05:17]OFD Sender: No OFD packet to send [18:05:22]OFD Sender: No OFD packet to send [18:05:27]OFD Sender: No OFD packet to send [18:05:32]OFD Sender: No OFD packet to send [18:05:37]OFD Sender: No OFD packet to send [18:05:42]OFD Sender: No OFD packet to send [18:05:47]OFD Sender: No OFD packet to send [18:05:52]OFD Sender: No OFD packet to send [18:05:57]OFD Sender: No OFD packet to send [18:06:02]OFD Sender: No OFD packet to send [18:06:07]OFD Sender: No OFD packet to send [18:06:12]OFD Sender: No OFD packet to send [18:06:17]OFD Sender: No OFD packet to send [18:06:22]OFD Sender: No OFD packet to send [18:06:27]OFD Sender: No OFD packet to send [18:06:32]OFD Sender: No OFD packet to send [18:06:37]OFD Sender: No OFD packet to send [18:06:42]OFD Sender: No OFD packet to send [18:06:47]OFD Sender: No OFD packet to send [18:06:52]OFD Sender: No OFD packet to send [18:06:57]OFD Sender: No OFD packet to send [18:07:02]OFD Sender: No OFD packet to send [18:07:07]OFD Sender: No OFD packet to send [18:07:12]OFD Sender: No OFD packet to send [18:07:17]OFD Sender: No OFD packet to send [18:07:22]OFD Sender: No OFD packet to send [18:07:27]OFD Sender: No OFD packet to send [18:07:32]OFD Sender: No OFD packet to send [18:07:37]OFD Sender: No OFD packet to send [18:07:42]OFD Sender: No OFD packet to send [18:07:47]OFD Sender: No OFD packet to send [18:07:52]OFD Sender: No OFD packet to send [18:07:57]OFD Sender: No OFD packet to send [18:08:02]OFD Sender: No OFD packet to send [18:08:07]OFD Sender: No OFD packet to send [18:08:12]OFD Sender: No OFD packet to send [18:08:17]OFD Sender: No OFD packet to send [18:08:22]OFD Sender: No OFD packet to send [18:08:27]OFD Sender: No OFD packet to send [18:08:32]OFD Sender: No OFD packet to send [18:08:37]OFD Sender: No OFD packet to send [18:08:42]OFD Sender: No OFD packet to send [18:08:47]OFD Sender: No OFD packet to send [18:08:52]OFD Sender: No OFD packet to send [18:08:57]OFD Sender: No OFD packet to send [18:09:02]OFD Sender: No OFD packet to send [18:09:07]OFD Sender: No OFD packet to send [18:09:12]OFD Sender: No OFD packet to send [18:09:17]OFD Sender: No OFD packet to send [18:09:22]OFD Sender: No OFD packet to send [18:09:27]OFD Sender: No OFD packet to send [18:09:32]OFD Sender: No OFD packet to send [18:09:37]OFD Sender: No OFD packet to send [18:09:42]OFD Sender: No OFD packet to send [18:09:47]OFD Sender: No OFD packet to send [18:09:52]OFD Sender: No OFD packet to send [18:09:57]OFD Sender: No OFD packet to send [18:10:02]OFD Sender: No OFD packet to send [18:10:07]OFD Sender: No OFD packet to send [18:10:12]OFD Sender: No OFD packet to send [18:10:17]OFD Sender: No OFD packet to send [18:10:22]OFD Sender: No OFD packet to send [18:10:27]OFD Sender: No OFD packet to send [18:10:32]OFD Sender: No OFD packet to send [18:10:37]OFD Sender: No OFD packet to send [18:10:42]OFD Sender: No OFD packet to send [18:10:46]accept exits with 9 [18:10:46]New connection [18:10:46]New thread 3066944868 created [18:10:46]Thread 3066801508 joined [18:10:46]Waiting for new connection... [18:10:46] Sock 9.Parse request [18:10:46]Sock 9.Check first char [18:10:46]Sock 9.First char is OK [18:10:46]request: POST /json_proto HTTP/1.0 [18:10:46]Method: POST [18:10:46]URL: /json_proto [18:10:46]Method is POST - this is cgi request [18:10:46]url: /json_proto [18:10:46]query_string will be loaded in cgi processing [18:10:46]execute_cgi json_proto POST (null) [18:10:46]execute_cgi path=json_proto method=POST [18:10:46]POST find Content-Length [18:10:46]Host: 172.17.62.5:8080 [18:10:46]Content-Length: 990 [18:10:46]Content-Type: application/json [18:10:46] [18:10:46]POST finish read [18:10:46]Found Content-Length = 990 [18:10:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191448", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 55.270, "sum" : 1752.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 55.27 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 1752.00, "payments": [ { "type": 0, "sum" : 1752.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:46]execute_script... [18:10: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)191448", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 55.270, "sum" : 1752.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 55.27 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 1752.00, "payments": [ { "type": 0, "sum" : 1752.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:46]POST & json_proto [18:10:46]process_json_proto [18:10:46]json parsed OK: [18:10:46]protocol is kg_v1.0 [18:10:46]action value=close_receipt [18:10:46]process_action close_receipt [18:10:46]cmd_close_receipt [18:10:46]MH_GetDate [18:10:46]Write to MH i2c: F0 00 00 1F 04 12 [18:10:46]Write i2c OK [18:10:46]MH_I2C_Read... [18:10:46]Read from MH i2c: F0 [18:10:46]MH_I2C_Read... [18:10:46]Read from MH i2c: F0 09 00 [18:10:46]MH_I2C_Read... [18:10:46]Read from MH i2c: F0 09 00 1F 04 00 A7 56 25 66 F4 E9 65 64 49 [18:10:46]GetLastDocTimeStamp 1713722149 [18:10:46]current date 1713723047 [18:10:46]FM_GetShiftState [18:10:46]SAM_PROTO_GetShiftState [18:10:46]wFMCommunicate request_size=4 [18:10:46]MH_SAM_APDU [18:10:46]CAPDU: 80 13 01 00 [18:10:46]Write to MH i2c: E2 08 00 20 04 80 13 01 00 00 00 00 00 A1 [18:10:46]Write i2c OK [18:10:46]MH_I2C_Read... [18:10:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:46]Read from MH i2c: E2 [18:10:46]MH_I2C_Read... [18:10:46]Read from MH i2c: E2 0E 00 [18:10:46]MH_I2C_Read... [18:10:46]Read from MH i2c: E2 0E 00 20 04 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 E8 [18:10:46]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [18:10:46]wFMCommunicate OK [18:10:46]SAM_PROTO_GetShiftState done [18:10:46]FM_GetShiftState done [18:10:46]opened in 1713658965 [18:10:46]opened+sec_in_day 1713745365 [18:10:46]quantity*price = 175205 [18:10:46]sum+1 = 175207 [18:10:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 1752.00 Внесено: 2000.00 СДАЧА: 248.00 НСП 1% : 15.50 НДС 12% : 186.06 Наличными: 1752.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 161 21.04.2024 18:10 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 55.27 сом ФМ: 0000000000874652 ФД: 76905 ФПД: 83882860590025 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T181047&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76905&fm=83882860590025&tin=02508201610067®Number=0000000000091573&sum=175200 [18:10:47]StoreToDocumentArchive [18:10:47]shift 372 fd 76905 [18:10:47]save to /storage/0372/doc_00076905 [18:10:47]save last doc name /storage/0372/doc_00076905 to /storage/kkm_last_doc_name [18:10:47]save OK [18:10:47]Clear old archive folders... [18:10:47]ProcessDocumentItem done err = 0, tmpTLVsize=250 [18:10:47]tlvbuf is 00C947A0 [18:10:47]SAM_PROTO_ClearQueue [18:10:47]wFMCommunicate request_size=4 [18:10:47]MH_SAM_APDU [18:10:47]CAPDU: 80 09 00 00 [18:10:47]Write to MH i2c: E2 08 00 2D 04 80 09 00 00 00 00 00 00 A3 [18:10:47]Write i2c OK [18:10:47]MH_I2C_Read... [18:10:47]Read from MH i2c: E2 [18:10:47]MH_I2C_Read... [18:10:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:10:47]Read from MH i2c: E2 03 00 [18:10:47]MH_I2C_Read... [18:10:47]Read from MH i2c: E2 03 00 2D 04 00 90 00 A5 [18:10:47]RAPDU: 90 00 [18:10:47]wFMCommunicate OK [18:10:47]SAM_PROTO_ClearQueue done [18:10:47]KKMCreateOFDPacket [18:10:47]OFDProtocolAddRootSTLVToBuf [18:10:47]FM_MakeSignedData [18:10:47]FM_MakeSignedData [18:10:47]SAM_PROTO_SignData [18:10:47]wFMCommunicate request_size=4 [18:10:47]MH_SAM_APDU [18:10:47]CAPDU: 80 0D 01 02 [18:10:47]Write to MH i2c: E2 08 00 2E 04 80 0D 01 02 00 00 00 00 AB [18:10:47]Write i2c OK [18:10:47]MH_I2C_Read... [18:10:47]Read from MH i2c: E2 [18:10:47]MH_I2C_Read... [18:10:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:10:47]Read from MH i2c: E2 03 00 [18:10:47]MH_I2C_Read... [18:10:47]Read from MH i2c: E2 03 00 2E 04 00 90 00 A6 [18:10:47]RAPDU: 90 00 [18:10:47]wFMCommunicate OK [18:10:47]wFMCommunicate request_size=255 [18:10:47]MH_SAM_APDU [18:10:47]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E6 D7 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 66 AC 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AC 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 48 00 00 00 00 07 04 06 00 60 AC 02 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 A7 56 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 69 2C 01 00 35 04 06 00 4C 4A [18:10:47]Write to MH i2c: E2 02 01 2F 04 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E6 D7 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 66 AC 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AC 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 48 00 00 00 00 07 04 06 00 60 AC 02 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 A7 56 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 69 2C 01 00 35 04 06 00 4C 4A 00 00 8B [18:10:47]Write i2c OK [18:10:47]MH_I2C_Read... [18:10:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:48]Read from MH i2c: E2 [18:10:48]MH_I2C_Read... [18:10:48]Read from MH i2c: E2 03 00 [18:10:48]MH_I2C_Read... [18:10:48]Read from MH i2c: E2 03 00 2F 04 00 90 00 A7 [18:10:48]RAPDU: 90 00 [18:10:48]wFMCommunicate OK [18:10:48]wFMCommunicate request_size=9 [18:10:48]MH_SAM_APDU [18:10:48]CAPDU: 80 0D 02 02 04 80 1B B3 C9 [18:10:48]Write to MH i2c: E2 0C 00 30 04 80 0D 02 02 04 00 80 1B B3 C9 00 00 CD [18:10:48]Write i2c OK [18:10:48]MH_I2C_Read... [18:10:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:48]Read from MH i2c: E2 [18:10:48]MH_I2C_Read... [18:10:48]Read from MH i2c: E2 03 00 [18:10:48]MH_I2C_Read... [18:10:48]Read from MH i2c: E2 03 00 30 04 00 90 00 A8 [18:10:48]RAPDU: 90 00 [18:10:48]wFMCommunicate OK [18:10:48]wFMCommunicate request_size=4 [18:10:48]MH_SAM_APDU [18:10:48]CAPDU: 80 0D 03 02 [18:10:48]Write to MH i2c: E2 08 00 31 04 80 0D 03 02 00 00 00 00 B0 [18:10:48]Write i2c OK [18:10:48]MH_I2C_Read... [18:10:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:10:48]Read from MH i2c: E2 [18:10:48]MH_I2C_Read... [18:10:48]Read from MH i2c: E2 0B 00 [18:10:48]MH_I2C_Read... [18:10:48]Read from MH i2c: E2 0B 00 31 04 00 F6 57 28 A2 87 D7 87 DC 90 00 89 [18:10:48]RAPDU: F6 57 28 A2 87 D7 87 DC 90 00 [18:10:48]wFMCommunicate OK [18:10:48]SAM_PROTO_SignData done [18:10:48]FM_MakeSignedData done [18:10:48]CreateOFDProtocolMessage [18:10:48]wFMCommunicate request_size=4 [18:10:48]MH_SAM_APDU [18:10:48]CAPDU: 80 11 00 00 [18:10:48]Write to MH i2c: E2 08 00 32 04 80 11 00 00 00 00 00 00 B0 [18:10:48]Write i2c OK [18:10:48]MH_I2C_Read... [18:10:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:48]Read from MH i2c: E2 [18:10:48]MH_I2C_Read... [18:10:48]Read from MH i2c: E2 17 00 [18:10:48]MH_I2C_Read... [18:10:48]Read from MH i2c: E2 17 00 32 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 03 [18:10:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [18:10:48]wFMCommunicate OK [18:10:48]CreateOFDProtocolMessage done [18:10:48]OFDSenderStorePacket 76905 [18:10:48]StoreOFDPacket docnum=76905 [18:10:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 97 05 06 01 1A 55 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E6 D7 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 66 AC 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AC 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 48 00 00 00 00 07 04 06 00 60 AC 02 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 A7 56 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 69 2C 01 00 35 04 06 00 4C 4A 80 1B B3 C9 F6 57 28 A2 87 D7 87 DC [18:10:48]CheckFolder [18:10:48]dirname=/storage/ofd_packets [18:10:48]CheckFolder done [18:10:48]ProducePacketName [18:10:48]name=ofd_packets/00076905 [18:10:48]NVStorageSaveData ofd_packets/00076905 [18:10:48]File name is /storage/ofd_packets/00076905 [18:10:48]Write 300 bytes [18:10:48]NVStorageSaveData done [18:10:48]OFDSenderStorePacket done [18:10:48]KKMCreateOFDPacket done [18:10:48]NVStorageSaveData kkm_last_timestamp [18:10:48]File name is /storage/kkm_last_timestamp [18:10:48]Write 4 bytes [18:10:48]NVStorageSaveData done [18:10:48]ExternCall_PrintAddStr [18:10:48]wPrintStart [18:10:48]Write to MH i2c: 01 00 00 33 04 37 [18:10:48]Write i2c OK [18:10:48]MH_I2C_Read... [18:10:48]Read from MH i2c: 01 [18:10:48]MH_I2C_Read... [18:10:48]Read from MH i2c: 01 07 00 [18:10:48]MH_I2C_Read... [18:10:48]Read from MH i2c: 01 07 00 33 04 00 00 00 00 00 FF 0F 4C [18:10:48]RasterBufferAndPrint [18:10:48]line Счет N : (1)191448 [18:10:48]line ИНН: 02508201610067 [18:10:48]line Контрольно-Кассовый Чек [18:10:48]line ПРОДАЖА [18:10:48]line ТРК (МРК, ГНК) : 71 [18:10:48]line Товар: 2711190000 [18:10:48]line ГАЗ-К-5 [18:10:48]line 55.270 * 31.70 [18:10:48]line = 1752.06 [18:10:48]line НДС 12% НСП 1% [18:10:48]line > о реализуемом товаре [18:10:48]line ОКРУГЛЕНИЕ: -0.06 [18:10:48]line ИТОГО: 1752.00 [18:10:48]line Внесено: 2000.00 [18:10:48]line СДАЧА: 248.00 [18:10:48]line НСП 1% : 15.50 [18:10:48]line НДС 12% : 186.06 [18:10:48]line Наличными: 1752.00 [18:10:48]line Безнал.: 0.00 [18:10:48]line Место: АЗС № 106 "Партнер Нефть" [18:10:48]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [18:10:48]line СНО: Общий режим [18:10:48]line Чек 161 21.04.2024 18:10 [18:10:48]line Смена: 372 ФФД: 1.0 [18:10:48]line ЗНМ: 0300000141 [18:10:48]line РНМ: 0000000000091573 [18:10:48]line Версия ККМ: 001 [18:10:48]line [18:10:48]line Дисконтная программа [18:10:48]line СУГ [18:10:48]line номер 106 [18:10:48]line сэкономлено 55.27 сом [18:10:48]line ФМ: 0000000000874652 [18:10:48]line ФД: 76905 [18:10:48]line ФПД: 83882860590025 [18:10:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T181047&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76905&fm=83882860590025&tin=02508201610067®Number=0000000000091573&sum=175200 [18:10:48]OFD Sender: Processing packet 76905 [packets to send 129, broken 128] [18:10:48]ProducePacketName [18:10:48]name=ofd_packets/00076905 [18:10:48]OFD Sender: To server: pG, [18:10:48]CommunicateWithHost lk.salyk.kg:30040 [18:10:48]ConnectInit lk.salyk.kg [18:10:48]written 0, free lines is 4095 [18:10:48]Connected sock=11 [18:10:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 97 05 06 01 1A 55 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E6 D7 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 66 AC 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AC 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 48 00 00 00 00 07 04 06 00 60 AC 02 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 A7 56 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 69 2C 01 00 35 04 06 00 4C 4A 80 1B B3 C9 F6 57 28 A2 87 D7 87 DC [18:10:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 57 26 47 00 E3 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 69 2C 01 00 F4 03 04 00 2C FE 24 66 B6 04 01 00 00 BA A5 DC D2 60 58 05 CB [18:10:49]CommunicateWithHost err = 0 [18:10:49]CheckOFDResponse [18:10:49]1017 (14) - 77093643461234 [18:10:49]1041 (16) - 0000000000874652 [18:10:49]1040 (4) - 76905 [18:10:49]1012 (4) - 21.04.2024 11:53 [18:10:49]1206 (1) - 0 [18:10:49]OFD Sender: Remove packet 76905 [18:10:49]ProducePacketName [18:10:49]name=ofd_packets/00076905 [18:10:49]NVStorageDeleteData [18:10:49]Write to MH i2c: 01 00 00 62 04 66 [18:10:49]Write i2c OK [18:10:49]MH_I2C_Read... [18:10:49]Read from MH i2c: 01 [18:10:49]MH_I2C_Read... [18:10:49]Read from MH i2c: 01 07 00 [18:10:49]MH_I2C_Read... [18:10:49]Read from MH i2c: 01 07 00 62 04 00 00 00 00 00 A8 0C 21 [18:10:49]RasterBufferAndPrint [18:10:49]line [18:10:49]line [18:10:49]line [18:10:49]line [18:10:49]line [18:10:49]written 0, free lines is 3247 [18:10:49]MH_Cut [18:10:49]Write to MH i2c: D1 01 00 69 04 01 3F [18:10:49]Write i2c OK [18:10:49]MH_I2C_Read... [18:10:49]Read from MH i2c: D1 [18:10:49]MH_I2C_Read... [18:10:49]Read from MH i2c: D1 01 00 [18:10:49]MH_I2C_Read... [18:10:49]Read from MH i2c: D1 01 00 69 04 00 3E [18:10:49]Write to MH i2c: 01 00 00 6A 04 6E [18:10:49]Write i2c OK [18:10:49]MH_I2C_Read... [18:10:49]OFD Sender: No OFD packet to send [18:10:49]*** Cut start [18:10:49]*** Partial cut [18:10:49]*** CUTSNS_PIN = 1 [18:10:50]*** CUTSNS_PIN = 0 [18:10:50]*** Brake cut motor [18:10:50]Read from MH i2c: 01 [18:10:50]MH_I2C_Read... [18:10:50]*** Stop cut motor [18:10:50]*** Cut end [18:10:50]Read from MH i2c: 01 07 00 [18:10:50]MH_I2C_Read... [18:10:50]Read from MH i2c: 01 07 00 6A 04 00 00 00 00 00 FF 0F 83 [18:10:50]process_action close_receipt done [18:10:50]requested_data is exist [18:10:50]produce_requested_data [18:10:50]requested_item fm.sn is exist - process it [18:10:50]wFMCommunicate request_size=4 [18:10:50]MH_SAM_APDU [18:10:50]CAPDU: 80 11 00 00 [18:10:50]Write to MH i2c: E2 08 00 6B 04 80 11 00 00 00 00 00 00 E9 [18:10:50]Write i2c OK [18:10:50]MH_I2C_Read... [18:10:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:50]Read from MH i2c: E2 [18:10:50]MH_I2C_Read... [18:10:50]Read from MH i2c: E2 17 00 [18:10:50]MH_I2C_Read... [18:10:50]Read from MH i2c: E2 17 00 6B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 3C [18:10:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [18:10:50]wFMCommunicate OK [18:10:50]requested_item fd.num is exist - process it [18:10:50]SAM_PROTO_GetFieldsCounters [18:10:50]wFMCommunicate request_size=4 [18:10:50]MH_SAM_APDU [18:10:50]CAPDU: 80 13 00 00 [18:10:50]Write to MH i2c: E2 08 00 6C 04 80 13 00 00 00 00 00 00 EC [18:10:50]Write i2c OK [18:10:50]MH_I2C_Read... [18:10:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:10:50]Read from MH i2c: E2 [18:10:50]MH_I2C_Read... [18:10:50]Read from MH i2c: E2 62 00 [18:10:50]MH_I2C_Read... [18:10:50]Read from MH i2c: E2 62 00 6C 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 69 2C 01 00 0E 04 04 00 74 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 FB [18:10: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 69 2C 01 00 0E 04 04 00 74 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 [18:10:50]wFMCommunicate OK [18:10:50]SAM_PROTO_GetFieldsCounters done [18:10:50]requested_item shift.num is exist - process it [18:10:50]requested_item shift.opened is exist - process it [18:10:50]req_shift_opened [18:10:50]FM_GetShiftState [18:10:50]SAM_PROTO_GetShiftState [18:10:50]wFMCommunicate request_size=4 [18:10:50]MH_SAM_APDU [18:10:50]CAPDU: 80 13 01 00 [18:10:50]Write to MH i2c: E2 08 00 6D 04 80 13 01 00 00 00 00 00 EE [18:10:50]Write i2c OK [18:10:50]MH_I2C_Read... [18:10:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:50]Read from MH i2c: E2 [18:10:50]MH_I2C_Read... [18:10:50]Read from MH i2c: E2 0E 00 [18:10:50]MH_I2C_Read... [18:10:50]Read from MH i2c: E2 0E 00 6D 04 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 35 [18:10:50]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [18:10:50]wFMCommunicate OK [18:10:50]SAM_PROTO_GetShiftState done [18:10:50]FM_GetShiftState done [18:10:50]req_shift_opened done [18:10:50]requested_item shift.open_date is exist - process it [18:10:50]req_shift_open_date [18:10:50]req_shift_open_date done [18:10:50]produce_requested_data done [18:10:50]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76905,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [18:10:50]process_action_free close_receipt [18:10:50]json_value_free [18:10:50]json_value_free done [18:10:50]process_json_proto returns [18:10:50]Send response to host [18:10:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76905,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [18:10:50]free response buf [18:10:50]execute_script done [18:10:50]execute_script returns [18:10:50]free content buf [18:10:50]Sock 9.Close socket [18:10:50]Sock 9.Thread stoped [18:10:54]OFD Sender: No OFD packet to send [18:10:59]OFD Sender: No OFD packet to send [18:11:04]OFD Sender: No OFD packet to send [18:11:09]OFD Sender: No OFD packet to send [18:11:14]OFD Sender: No OFD packet to send [18:11:19]OFD Sender: No OFD packet to send [18:11:24]OFD Sender: No OFD packet to send [18:11:29]OFD Sender: No OFD packet to send [18:11:34]OFD Sender: No OFD packet to send [18:11:39]OFD Sender: No OFD packet to send [18:11:44]OFD Sender: No OFD packet to send [18:11:49]OFD Sender: No OFD packet to send [18:11:54]OFD Sender: No OFD packet to send [18:11:59]OFD Sender: No OFD packet to send [18:12:04]OFD Sender: No OFD packet to send [18:12:09]OFD Sender: No OFD packet to send [18:12:14]OFD Sender: No OFD packet to send [18:12:19]OFD Sender: No OFD packet to send [18:12:24]OFD Sender: No OFD packet to send [18:12:29]OFD Sender: No OFD packet to send [18:12:34]OFD Sender: No OFD packet to send [18:12:39]OFD Sender: No OFD packet to send [18:12:44]OFD Sender: No OFD packet to send [18:12:49]OFD Sender: No OFD packet to send [18:12:54]OFD Sender: No OFD packet to send [18:12:59]OFD Sender: No OFD packet to send [18:13:04]OFD Sender: No OFD packet to send [18:13:09]OFD Sender: No OFD packet to send [18:13:14]OFD Sender: No OFD packet to send [18:13:19]OFD Sender: No OFD packet to send [18:13:24]OFD Sender: No OFD packet to send [18:13:29]OFD Sender: No OFD packet to send [18:13:34]OFD Sender: No OFD packet to send [18:13:39]OFD Sender: No OFD packet to send [18:13:44]OFD Sender: No OFD packet to send [18:13:49]OFD Sender: No OFD packet to send [18:13:54]OFD Sender: No OFD packet to send [18:13:59]OFD Sender: No OFD packet to send [18:14:04]OFD Sender: No OFD packet to send [18:14:09]OFD Sender: No OFD packet to send [18:14:14]OFD Sender: No OFD packet to send [18:14:19]OFD Sender: No OFD packet to send [18:14:24]OFD Sender: No OFD packet to send [18:14:29]OFD Sender: No OFD packet to send [18:14:34]OFD Sender: No OFD packet to send [18:14:39]OFD Sender: No OFD packet to send [18:14:44]OFD Sender: No OFD packet to send [18:14:45]accept exits with 8 [18:14:45]New connection [18:14:45]New thread 3066801508 created [18:14:45]Thread 3066944868 joined [18:14:45]Waiting for new connection... [18:14:45] Sock 8.Parse request [18:14:45]Sock 8.Check first char [18:14:45]Sock 8.First char is OK [18:14:45]request: POST /json_proto HTTP/1.0 [18:14:45]Method: POST [18:14:45]URL: /json_proto [18:14:45]Method is POST - this is cgi request [18:14:45]url: /json_proto [18:14:45]query_string will be loaded in cgi processing [18:14:45]execute_cgi json_proto POST (null) [18:14:45]execute_cgi path=json_proto method=POST [18:14:45]POST find Content-Length [18:14:45]Host: 172.17.62.5:8080 [18:14:45]Content-Length: 1192 [18:14:45]Content-Type: application/json [18:14:45] [18:14:45]POST finish read [18:14:45]Found Content-Length = 1192 [18:14: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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041B\u044B\u043C\u0430\u0440\u0435\u0432\u0430 \u0412. \u000A\u0421\u0447\u0435\u0442 N : (1)191449\u000A21.04.2024 17:56\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 3645.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\u000A68979\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:45]execute_script... [18:14: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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041B\u044B\u043C\u0430\u0440\u0435\u0432\u0430 \u0412. \u000A\u0421\u0447\u0435\u0442 N : (1)191449\u000A21.04.2024 17:56\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 3645.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\u000A68979\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:45]POST & json_proto [18:14:45]process_json_proto [18:14:45]json parsed OK: [18:14:45]protocol is kg_v1.0 [18:14:45]action value=print_text [18:14:45]process_action print_text [18:14:45]cmd_print_text [18:14:45]ExternCall_PrintAddStr [18:14:45]wPrintStart [18:14:45]Write to MH i2c: 01 00 00 6E 04 72 [18:14:45]Write i2c OK [18:14:45]MH_I2C_Read... [18:14:45]Read from MH i2c: 01 [18:14:45]MH_I2C_Read... [18:14:45]Read from MH i2c: 01 07 00 [18:14:45]MH_I2C_Read... [18:14:45]Read from MH i2c: 01 07 00 6E 04 00 00 00 00 00 FF 0F 87 [18:14:45]RasterBufferAndPrint [18:14:45]line *****ТОВАРНЫЙ ЧЕК***** [18:14:45]line АЗС 106 [18:14:45]line Партнер нефть [18:14:45]line 02508201610067 [18:14:45]line Кассир : Лымарева В. [18:14:45]line Счет N : (1)191449 [18:14:45]line 21.04.2024 17:56 [18:14:45]line ПРОДАЖА [18:14:45]line ТРК (МРК, ГНК): 23 [18:14:45]line Вид ГСМ : 2710194210 [18:14:45]line ДТ-К-5 [18:14:45]line 50.000 x 72.90 [18:14:45]line ИТОГ: 3645.00 [18:14:45]line Тип оплаты: Талоны: Топливная Карта [18:14:45]line 68979 [18:14:45]line ______________________ [18:14:45]line (подпись) [18:14:45]written 0, free lines is 4095 [18:14:46]Write to MH i2c: 01 00 00 82 04 86 [18:14:46]Write i2c OK [18:14:46]MH_I2C_Read... [18:14:46]Read from MH i2c: 01 [18:14:46]MH_I2C_Read... [18:14:46]Read from MH i2c: 01 07 00 [18:14:46]MH_I2C_Read... [18:14:46]Read from MH i2c: 01 07 00 82 04 00 00 00 00 00 0F 0E AA [18:14:46]RasterBufferAndPrint [18:14:46]line [18:14:46]line [18:14:46]line [18:14:46]line [18:14:46]line [18:14:46]written 0, free lines is 3601 [18:14:46]MH_Cut [18:14:46]Write to MH i2c: D1 01 00 89 04 01 5F [18:14:46]Write i2c OK [18:14:46]MH_I2C_Read... [18:14:46]Read from MH i2c: D1 [18:14:46]MH_I2C_Read... [18:14:46]Read from MH i2c: D1 01 00 [18:14:46]MH_I2C_Read... [18:14:46]Read from MH i2c: D1 01 00 89 04 00 5E [18:14:46]Write to MH i2c: 01 00 00 8A 04 8E [18:14:46]Write i2c OK [18:14:46]MH_I2C_Read... [18:14:46]*** Cut start [18:14:46]*** Partial cut [18:14:46]*** CUTSNS_PIN = 1 [18:14:46]*** CUTSNS_PIN = 0 [18:14:46]*** Brake cut motor [18:14:47]Read from MH i2c: 01 [18:14:47]MH_I2C_Read... [18:14:47]*** Stop cut motor [18:14:47]*** Cut end [18:14:47]Read from MH i2c: 01 07 00 [18:14:47]MH_I2C_Read... [18:14:47]Read from MH i2c: 01 07 00 8A 04 00 00 00 00 00 FF 0F A3 [18:14:47]process_action print_text done [18:14:47]requested_data is exist [18:14:47]produce_requested_data [18:14:47]requested_item fm.sn is exist - process it [18:14:47]wFMCommunicate request_size=4 [18:14:47]MH_SAM_APDU [18:14:47]CAPDU: 80 11 00 00 [18:14:47]Write to MH i2c: E2 08 00 8B 04 80 11 00 00 00 00 00 00 09 [18:14:47]Write i2c OK [18:14:47]MH_I2C_Read... [18:14:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:47]Read from MH i2c: E2 [18:14:47]MH_I2C_Read... [18:14:47]Read from MH i2c: E2 17 00 [18:14:47]MH_I2C_Read... [18:14:47]Read from MH i2c: E2 17 00 8B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 5C [18:14:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [18:14:47]wFMCommunicate OK [18:14:47]requested_item fd.num is exist - process it [18:14:47]SAM_PROTO_GetFieldsCounters [18:14:47]wFMCommunicate request_size=4 [18:14:47]MH_SAM_APDU [18:14:47]CAPDU: 80 13 00 00 [18:14:47]Write to MH i2c: E2 08 00 8C 04 80 13 00 00 00 00 00 00 0C [18:14:47]Write i2c OK [18:14:47]MH_I2C_Read... [18:14:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:14:47]Read from MH i2c: E2 [18:14:47]MH_I2C_Read... [18:14:47]Read from MH i2c: E2 62 00 [18:14:47]MH_I2C_Read... [18:14:47]Read from MH i2c: E2 62 00 8C 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 69 2C 01 00 0E 04 04 00 74 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 1B [18:14: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 69 2C 01 00 0E 04 04 00 74 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 [18:14:47]wFMCommunicate OK [18:14:47]SAM_PROTO_GetFieldsCounters done [18:14:47]requested_item shift.num is exist - process it [18:14:47]requested_item shift.opened is exist - process it [18:14:47]req_shift_opened [18:14:47]FM_GetShiftState [18:14:47]SAM_PROTO_GetShiftState [18:14:47]wFMCommunicate request_size=4 [18:14:47]MH_SAM_APDU [18:14:47]CAPDU: 80 13 01 00 [18:14:47]Write to MH i2c: E2 08 00 8D 04 80 13 01 00 00 00 00 00 0E [18:14:47]Write i2c OK [18:14:47]MH_I2C_Read... [18:14:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:47]Read from MH i2c: E2 [18:14:47]MH_I2C_Read... [18:14:47]Read from MH i2c: E2 0E 00 [18:14:47]MH_I2C_Read... [18:14:47]Read from MH i2c: E2 0E 00 8D 04 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 55 [18:14:47]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [18:14:47]wFMCommunicate OK [18:14:47]SAM_PROTO_GetShiftState done [18:14:47]FM_GetShiftState done [18:14:47]req_shift_opened done [18:14:47]requested_item shift.open_date is exist - process it [18:14:47]req_shift_open_date [18:14:47]req_shift_open_date done [18:14:47]produce_requested_data done [18:14:47]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76905,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [18:14:47]process_action_free print_text [18:14:47]json_value_free [18:14:47]json_value_free done [18:14:47]process_json_proto returns [18:14:47]Send response to host [18:14:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76905,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [18:14:47]free response buf [18:14:47]execute_script done [18:14:47]execute_script returns [18:14:47]free content buf [18:14:47]Sock 8.Close socket [18:14:47]Sock 8.Thread stoped [18:14:49]OFD Sender: No OFD packet to send [18:14:54]OFD Sender: No OFD packet to send [18:14:59]OFD Sender: No OFD packet to send [18:15:04]OFD Sender: No OFD packet to send [18:15:09]OFD Sender: No OFD packet to send [18:15:14]OFD Sender: No OFD packet to send [18:15:19]OFD Sender: No OFD packet to send [18:15:24]OFD Sender: No OFD packet to send [18:15:29]OFD Sender: No OFD packet to send [18:15:34]OFD Sender: No OFD packet to send [18:15:39]OFD Sender: No OFD packet to send [18:15:45]OFD Sender: No OFD packet to send [18:15:50]OFD Sender: No OFD packet to send [18:15:55]OFD Sender: No OFD packet to send [18:16:00]OFD Sender: No OFD packet to send [18:16:05]OFD Sender: No OFD packet to send [18:16:10]OFD Sender: No OFD packet to send [18:16:15]OFD Sender: No OFD packet to send [18:16:20]OFD Sender: No OFD packet to send [18:16:25]OFD Sender: No OFD packet to send [18:16:30]OFD Sender: No OFD packet to send [18:16:35]OFD Sender: No OFD packet to send [18:16:40]OFD Sender: No OFD packet to send [18:16:45]OFD Sender: No OFD packet to send [18:16:50]OFD Sender: No OFD packet to send [18:16:55]OFD Sender: No OFD packet to send [18:17:00]OFD Sender: No OFD packet to send [18:17:05]OFD Sender: No OFD packet to send [18:17:10]OFD Sender: No OFD packet to send [18:17:15]OFD Sender: No OFD packet to send [18:17:20]OFD Sender: No OFD packet to send [18:17:25]OFD Sender: No OFD packet to send [18:17:30]OFD Sender: No OFD packet to send [18:17:35]OFD Sender: No OFD packet to send [18:17:40]OFD Sender: No OFD packet to send [18:17:45]OFD Sender: No OFD packet to send [18:17:50]OFD Sender: No OFD packet to send [18:17:55]OFD Sender: No OFD packet to send [18:18:00]OFD Sender: No OFD packet to send [18:18:05]OFD Sender: No OFD packet to send [18:18:10]OFD Sender: No OFD packet to send [18:18:15]OFD Sender: No OFD packet to send [18:18:20]OFD Sender: No OFD packet to send [18:18:25]OFD Sender: No OFD packet to send [18:18:25]accept exits with 9 [18:18:25]New connection [18:18:25]New thread 3066944868 created [18:18:25]Thread 3066801508 joined [18:18:25]Waiting for new connection... [18:18:25] Sock 9.Parse request [18:18:25]Sock 9.Check first char [18:18:25]Sock 9.First char is OK [18:18:25]request: POST /json_proto HTTP/1.0 [18:18:25]Method: POST [18:18:25]URL: /json_proto [18:18:25]Method is POST - this is cgi request [18:18:25]url: /json_proto [18:18:25]query_string will be loaded in cgi processing [18:18:25]execute_cgi json_proto POST (null) [18:18:25]execute_cgi path=json_proto method=POST [18:18:25]POST find Content-Length [18:18:25]Host: 172.17.62.5:8080 [18:18:25]Content-Length: 1157 [18:18:25]Content-Type: application/json [18:18:25] [18:18:25]POST finish read [18:18:25]Found Content-Length = 1157 [18:18: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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041B\u044B\u043C\u0430\u0440\u0435\u0432\u0430 \u0412. \u000A\u0421\u0447\u0435\u0442 N : (1)191450\u000A21.04.2024 17:59\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 : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 1932.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30119228\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:18:25]execute_script... [18:18: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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041B\u044B\u043C\u0430\u0440\u0435\u0432\u0430 \u0412. \u000A\u0421\u0447\u0435\u0442 N : (1)191450\u000A21.04.2024 17:59\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 : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 1932.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30119228\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:18:25]POST & json_proto [18:18:25]process_json_proto [18:18:25]json parsed OK: [18:18:25]protocol is kg_v1.0 [18:18:25]action value=print_text [18:18:25]process_action print_text [18:18:25]cmd_print_text [18:18:25]ExternCall_PrintAddStr [18:18:25]wPrintStart [18:18:25]Write to MH i2c: 01 00 00 8E 04 92 [18:18:25]Write i2c OK [18:18:25]MH_I2C_Read... [18:18:25]Read from MH i2c: 01 [18:18:25]MH_I2C_Read... [18:18:25]Read from MH i2c: 01 07 00 [18:18:25]MH_I2C_Read... [18:18:25]Read from MH i2c: 01 07 00 8E 04 00 00 00 00 00 FF 0F A7 [18:18:25]RasterBufferAndPrint [18:18:25]line *****ТОВАРНЫЙ ЧЕК***** [18:18:25]line АЗС 106 [18:18:25]line Партнер нефть [18:18:25]line 02508201610067 [18:18:25]line Кассир : Лымарева В. [18:18:25]line Счет N : (1)191450 [18:18:25]line 21.04.2024 17:59 [18:18:25]line ПРОДАЖА [18:18:25]line ТРК (МРК, ГНК): 33 [18:18:25]line Вид ГСМ : 2710124130 [18:18:25]line Аи-92-К-5 [18:18:25]line 30.000 x 64.40 [18:18:25]line ИТОГ: 1932.00 [18:18:25]line Тип оплаты: Талоны: ТК ГПНА Online [18:18:25]line 30119228 [18:18:25]line ______________________ [18:18:25]line (подпись) [18:18:25]written 0, free lines is 4095 [18:18:25]Write to MH i2c: 01 00 00 A2 04 A6 [18:18:25]Write i2c OK [18:18:25]MH_I2C_Read... [18:18:25]Read from MH i2c: 01 [18:18:25]MH_I2C_Read... [18:18:25]Read from MH i2c: 01 07 00 [18:18:25]MH_I2C_Read... [18:18:25]Read from MH i2c: 01 07 00 A2 04 00 00 00 00 00 10 0E CB [18:18:25]RasterBufferAndPrint [18:18:25]line [18:18:25]line [18:18:25]line [18:18:25]line [18:18:25]line [18:18:25]written 0, free lines is 3601 [18:18:25]MH_Cut [18:18:25]Write to MH i2c: D1 01 00 A9 04 01 7F [18:18:25]Write i2c OK [18:18:25]MH_I2C_Read... [18:18:25]Read from MH i2c: D1 [18:18:25]MH_I2C_Read... [18:18:25]Read from MH i2c: D1 01 00 [18:18:25]MH_I2C_Read... [18:18:25]Read from MH i2c: D1 01 00 A9 04 00 7E [18:18:25]Write to MH i2c: 01 00 00 AA 04 AE [18:18:25]Write i2c OK [18:18:25]MH_I2C_Read... [18:18:26]*** Cut start [18:18:26]*** Partial cut [18:18:26]*** CUTSNS_PIN = 1 [18:18:26]*** CUTSNS_PIN = 0 [18:18:26]*** Brake cut motor [18:18:26]Read from MH i2c: 01 [18:18:26]MH_I2C_Read... [18:18:26]*** Stop cut motor [18:18:26]*** Cut end [18:18:26]Read from MH i2c: 01 07 00 [18:18:26]MH_I2C_Read... [18:18:26]Read from MH i2c: 01 07 00 AA 04 00 00 00 00 00 FF 0F C3 [18:18:26]process_action print_text done [18:18:26]requested_data is exist [18:18:26]produce_requested_data [18:18:26]requested_item fm.sn is exist - process it [18:18:26]wFMCommunicate request_size=4 [18:18:26]MH_SAM_APDU [18:18:26]CAPDU: 80 11 00 00 [18:18:26]Write to MH i2c: E2 08 00 AB 04 80 11 00 00 00 00 00 00 29 [18:18:26]Write i2c OK [18:18:26]MH_I2C_Read... [18:18:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:26]Read from MH i2c: E2 [18:18:26]MH_I2C_Read... [18:18:26]Read from MH i2c: E2 17 00 [18:18:26]MH_I2C_Read... [18:18:26]Read from MH i2c: E2 17 00 AB 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 7C [18:18:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [18:18:26]wFMCommunicate OK [18:18:26]requested_item fd.num is exist - process it [18:18:26]SAM_PROTO_GetFieldsCounters [18:18:26]wFMCommunicate request_size=4 [18:18:26]MH_SAM_APDU [18:18:26]CAPDU: 80 13 00 00 [18:18:26]Write to MH i2c: E2 08 00 AC 04 80 13 00 00 00 00 00 00 2C [18:18:26]Write i2c OK [18:18:26]MH_I2C_Read... [18:18:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:18:26]Read from MH i2c: E2 [18:18:26]MH_I2C_Read... [18:18:26]Read from MH i2c: E2 62 00 [18:18:26]MH_I2C_Read... [18:18:26]Read from MH i2c: E2 62 00 AC 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 69 2C 01 00 0E 04 04 00 74 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 3B [18:18:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 69 2C 01 00 0E 04 04 00 74 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 [18:18:26]wFMCommunicate OK [18:18:26]SAM_PROTO_GetFieldsCounters done [18:18:26]requested_item shift.num is exist - process it [18:18:26]requested_item shift.opened is exist - process it [18:18:26]req_shift_opened [18:18:26]FM_GetShiftState [18:18:26]SAM_PROTO_GetShiftState [18:18:26]wFMCommunicate request_size=4 [18:18:26]MH_SAM_APDU [18:18:26]CAPDU: 80 13 01 00 [18:18:26]Write to MH i2c: E2 08 00 AD 04 80 13 01 00 00 00 00 00 2E [18:18:26]Write i2c OK [18:18:26]MH_I2C_Read... [18:18:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:26]Read from MH i2c: E2 [18:18:26]MH_I2C_Read... [18:18:26]Read from MH i2c: E2 0E 00 [18:18:26]MH_I2C_Read... [18:18:26]Read from MH i2c: E2 0E 00 AD 04 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 75 [18:18:26]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [18:18:26]wFMCommunicate OK [18:18:26]SAM_PROTO_GetShiftState done [18:18:26]FM_GetShiftState done [18:18:26]req_shift_opened done [18:18:26]requested_item shift.open_date is exist - process it [18:18:26]req_shift_open_date [18:18:26]req_shift_open_date done [18:18:26]produce_requested_data done [18:18:26]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76905,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [18:18:26]process_action_free print_text [18:18:26]json_value_free [18:18:26]json_value_free done [18:18:26]process_json_proto returns [18:18:26]Send response to host [18:18:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76905,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [18:18:26]free response buf [18:18:26]execute_script done [18:18:26]execute_script returns [18:18:26]free content buf [18:18:26]Sock 9.Close socket [18:18:26]Sock 9.Thread stoped [18:18:30]OFD Sender: No OFD packet to send [18:18:35]OFD Sender: No OFD packet to send [18:18:40]OFD Sender: No OFD packet to send [18:18:45]OFD Sender: No OFD packet to send [18:18:50]OFD Sender: No OFD packet to send [18:18:55]OFD Sender: No OFD packet to send [18:19:00]OFD Sender: No OFD packet to send [18:19:05]OFD Sender: No OFD packet to send [18:19:10]OFD Sender: No OFD packet to send [18:19:15]OFD Sender: No OFD packet to send [18:19:20]OFD Sender: No OFD packet to send [18:19:25]OFD Sender: No OFD packet to send [18:19:30]OFD Sender: No OFD packet to send [18:19:35]OFD Sender: No OFD packet to send [18:19:40]OFD Sender: No OFD packet to send [18:19:45]OFD Sender: No OFD packet to send [18:19:50]OFD Sender: No OFD packet to send [18:19:55]OFD Sender: No OFD packet to send [18:20:00]OFD Sender: No OFD packet to send [18:20:05]OFD Sender: No OFD packet to send [18:20:10]OFD Sender: No OFD packet to send [18:20:15]OFD Sender: No OFD packet to send [18:20:20]OFD Sender: No OFD packet to send [18:20:25]OFD Sender: No OFD packet to send [18:20:30]OFD Sender: No OFD packet to send [18:20:35]OFD Sender: No OFD packet to send [18:20:40]OFD Sender: No OFD packet to send [18:20:45]OFD Sender: No OFD packet to send [18:20:50]OFD Sender: No OFD packet to send [18:20:55]OFD Sender: No OFD packet to send [18:21:00]OFD Sender: No OFD packet to send [18:21:05]OFD Sender: No OFD packet to send [18:21:10]OFD Sender: No OFD packet to send [18:21:15]OFD Sender: No OFD packet to send [18:21:20]OFD Sender: No OFD packet to send [18:21:25]OFD Sender: No OFD packet to send [18:21:30]OFD Sender: No OFD packet to send [18:21:35]OFD Sender: No OFD packet to send [18:21:40]OFD Sender: No OFD packet to send [18:21:45]OFD Sender: No OFD packet to send [18:21:50]OFD Sender: No OFD packet to send [18:21:55]OFD Sender: No OFD packet to send [18:22:00]OFD Sender: No OFD packet to send [18:22:05]OFD Sender: No OFD packet to send [18:22:10]OFD Sender: No OFD packet to send [18:22:15]OFD Sender: No OFD packet to send [18:22:20]OFD Sender: No OFD packet to send [18:22:25]OFD Sender: No OFD packet to send [18:22:30]OFD Sender: No OFD packet to send [18:22:35]OFD Sender: No OFD packet to send [18:22:40]OFD Sender: No OFD packet to send [18:22:45]OFD Sender: No OFD packet to send [18:22:50]OFD Sender: No OFD packet to send [18:22:55]OFD Sender: No OFD packet to send [18:23:00]OFD Sender: No OFD packet to send [18:23:05]OFD Sender: No OFD packet to send [18:23:10]OFD Sender: No OFD packet to send [18:23:15]OFD Sender: No OFD packet to send [18:23:20]OFD Sender: No OFD packet to send [18:23:25]OFD Sender: No OFD packet to send [18:23:30]OFD Sender: No OFD packet to send [18:23:35]OFD Sender: No OFD packet to send [18:23:40]OFD Sender: No OFD packet to send [18:23:45]OFD Sender: No OFD packet to send [18:23:50]OFD Sender: No OFD packet to send [18:23:55]OFD Sender: No OFD packet to send [18:24:00]OFD Sender: No OFD packet to send [18:24:05]OFD Sender: No OFD packet to send [18:24:10]OFD Sender: No OFD packet to send [18:24:15]OFD Sender: No OFD packet to send [18:24:20]OFD Sender: No OFD packet to send [18:24:25]OFD Sender: No OFD packet to send [18:24:30]OFD Sender: No OFD packet to send [18:24:35]OFD Sender: No OFD packet to send [18:24:40]OFD Sender: No OFD packet to send [18:24:45]OFD Sender: No OFD packet to send [18:24:50]OFD Sender: No OFD packet to send [18:24:55]OFD Sender: No OFD packet to send [18:25:00]OFD Sender: No OFD packet to send [18:25:05]OFD Sender: No OFD packet to send [18:25:10]OFD Sender: No OFD packet to send [18:25:15]OFD Sender: No OFD packet to send [18:25:20]OFD Sender: No OFD packet to send [18:25:25]OFD Sender: No OFD packet to send [18:25:30]OFD Sender: No OFD packet to send [18:25:35]OFD Sender: No OFD packet to send [18:25:40]OFD Sender: No OFD packet to send [18:25:45]OFD Sender: No OFD packet to send [18:25:50]OFD Sender: No OFD packet to send [18:25:55]OFD Sender: No OFD packet to send [18:26:00]OFD Sender: No OFD packet to send [18:26:05]OFD Sender: No OFD packet to send [18:26:10]OFD Sender: No OFD packet to send [18:26:15]OFD Sender: No OFD packet to send [18:26:20]OFD Sender: No OFD packet to send [18:26:25]OFD Sender: No OFD packet to send [18:26:30]OFD Sender: No OFD packet to send [18:26:35]OFD Sender: No OFD packet to send [18:26:40]OFD Sender: No OFD packet to send [18:26:45]OFD Sender: No OFD packet to send [18:26:50]OFD Sender: No OFD packet to send [18:26:55]OFD Sender: No OFD packet to send [18:27:00]OFD Sender: No OFD packet to send [18:27:05]OFD Sender: No OFD packet to send [18:27:10]OFD Sender: No OFD packet to send [18:27:15]OFD Sender: No OFD packet to send [18:27:20]OFD Sender: No OFD packet to send [18:27:25]OFD Sender: No OFD packet to send [18:27:30]OFD Sender: No OFD packet to send [18:27:35]OFD Sender: No OFD packet to send [18:27:40]OFD Sender: No OFD packet to send [18:27:45]OFD Sender: No OFD packet to send [18:27:50]OFD Sender: No OFD packet to send [18:27:55]OFD Sender: No OFD packet to send [18:28:00]OFD Sender: No OFD packet to send [18:28:05]OFD Sender: No OFD packet to send [18:28:10]OFD Sender: No OFD packet to send [18:28:15]OFD Sender: No OFD packet to send [18:28:20]OFD Sender: No OFD packet to send [18:28:25]OFD Sender: No OFD packet to send [18:28:30]OFD Sender: No OFD packet to send [18:28:35]OFD Sender: No OFD packet to send [18:28:40]OFD Sender: No OFD packet to send [18:28:45]OFD Sender: No OFD packet to send [18:28:50]OFD Sender: No OFD packet to send [18:28:55]OFD Sender: No OFD packet to send [18:29:00]OFD Sender: No OFD packet to send [18:29:05]OFD Sender: No OFD packet to send [18:29:10]OFD Sender: No OFD packet to send [18:29:15]OFD Sender: No OFD packet to send [18:29:20]OFD Sender: No OFD packet to send [18:29:25]OFD Sender: No OFD packet to send [18:29:30]OFD Sender: No OFD packet to send [18:29:35]OFD Sender: No OFD packet to send [18:29:40]OFD Sender: No OFD packet to send [18:29:46]OFD Sender: No OFD packet to send [18:29:51]OFD Sender: No OFD packet to send [18:29:56]OFD Sender: No OFD packet to send [18:30:01]OFD Sender: No OFD packet to send [18:30:06]OFD Sender: No OFD packet to send [18:30:11]OFD Sender: No OFD packet to send [18:30:16]OFD Sender: No OFD packet to send [18:30:21]OFD Sender: No OFD packet to send [18:30:26]OFD Sender: No OFD packet to send [18:30:31]OFD Sender: No OFD packet to send [18:30:36]OFD Sender: No OFD packet to send [18:30:41]OFD Sender: No OFD packet to send [18:30:46]OFD Sender: No OFD packet to send [18:30:51]OFD Sender: No OFD packet to send [18:30:56]OFD Sender: No OFD packet to send [18:31:01]OFD Sender: No OFD packet to send [18:31:06]OFD Sender: No OFD packet to send [18:31:11]OFD Sender: No OFD packet to send [18:31:16]OFD Sender: No OFD packet to send [18:31:21]OFD Sender: No OFD packet to send [18:31:26]OFD Sender: No OFD packet to send [18:31:31]OFD Sender: No OFD packet to send [18:31:36]OFD Sender: No OFD packet to send [18:31:41]OFD Sender: No OFD packet to send [18:31:46]OFD Sender: No OFD packet to send [18:31:51]OFD Sender: No OFD packet to send [18:31:56]OFD Sender: No OFD packet to send [18:32:01]OFD Sender: No OFD packet to send [18:32:06]OFD Sender: No OFD packet to send [18:32:11]OFD Sender: No OFD packet to send [18:32:16]OFD Sender: No OFD packet to send [18:32:21]OFD Sender: No OFD packet to send [18:32:26]OFD Sender: No OFD packet to send [18:32:31]OFD Sender: No OFD packet to send [18:32:36]OFD Sender: No OFD packet to send [18:32:41]OFD Sender: No OFD packet to send [18:32:46]OFD Sender: No OFD packet to send [18:32:51]OFD Sender: No OFD packet to send [18:32:56]OFD Sender: No OFD packet to send [18:33:01]OFD Sender: No OFD packet to send [18:33:06]OFD Sender: No OFD packet to send [18:33:11]OFD Sender: No OFD packet to send [18:33:16]OFD Sender: No OFD packet to send [18:33:21]OFD Sender: No OFD packet to send [18:33:26]OFD Sender: No OFD packet to send [18:33:31]OFD Sender: No OFD packet to send [18:33:36]OFD Sender: No OFD packet to send [18:33:41]OFD Sender: No OFD packet to send [18:33:46]OFD Sender: No OFD packet to send [18:33:51]OFD Sender: No OFD packet to send [18:33:56]OFD Sender: No OFD packet to send [18:34:01]OFD Sender: No OFD packet to send [18:34:06]OFD Sender: No OFD packet to send [18:34:11]OFD Sender: No OFD packet to send [18:34:16]OFD Sender: No OFD packet to send [18:34:21]OFD Sender: No OFD packet to send [18:34:26]OFD Sender: No OFD packet to send [18:34:31]OFD Sender: No OFD packet to send [18:34:36]OFD Sender: No OFD packet to send [18:34:41]OFD Sender: No OFD packet to send [18:34:46]OFD Sender: No OFD packet to send [18:34:51]OFD Sender: No OFD packet to send [18:34:56]OFD Sender: No OFD packet to send [18:35:01]OFD Sender: No OFD packet to send [18:35:06]OFD Sender: No OFD packet to send [18:35:11]OFD Sender: No OFD packet to send [18:35:16]OFD Sender: No OFD packet to send [18:35:21]OFD Sender: No OFD packet to send [18:35:26]OFD Sender: No OFD packet to send [18:35:31]OFD Sender: No OFD packet to send [18:35:36]OFD Sender: No OFD packet to send [18:35:41]OFD Sender: No OFD packet to send [18:35:46]OFD Sender: No OFD packet to send [18:35:51]OFD Sender: No OFD packet to send [18:35:56]OFD Sender: No OFD packet to send [18:36:00]accept exits with 8 [18:36:00]New connection [18:36:00]New thread 3066801508 created [18:36:00]Thread 3066944868 joined [18:36:00]Waiting for new connection... [18:36:00] Sock 8.Parse request [18:36:00]Sock 8.Check first char [18:36:00]Sock 8.First char is OK [18:36:00]request: POST /json_proto HTTP/1.0 [18:36:00]Method: POST [18:36:00]URL: /json_proto [18:36:00]Method is POST - this is cgi request [18:36:00]url: /json_proto [18:36:00]query_string will be loaded in cgi processing [18:36:00]execute_cgi json_proto POST (null) [18:36:00]execute_cgi path=json_proto method=POST [18:36:00]POST find Content-Length [18:36:00]Host: 172.17.62.5:8080 [18:36:00]Content-Length: 801 [18:36:00]Content-Type: application/json [18:36:00] [18:36:00]POST finish read [18:36:00]Found Content-Length = 801 [18:36:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191451", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 21.410, "sum" : 1400.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1400.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:00]execute_script... [18:36: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)191451", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 21.410, "sum" : 1400.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1400.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:00]POST & json_proto [18:36:00]process_json_proto [18:36:00]json parsed OK: [18:36:00]protocol is kg_v1.0 [18:36:00]action value=close_receipt [18:36:00]process_action close_receipt [18:36:00]cmd_close_receipt [18:36:00]MH_GetDate [18:36:00]Write to MH i2c: F0 00 00 AE 04 A1 [18:36:00]Write i2c OK [18:36:00]MH_I2C_Read... [18:36:00]Read from MH i2c: F0 [18:36:00]MH_I2C_Read... [18:36:00]Read from MH i2c: F0 09 00 [18:36:00]MH_I2C_Read... [18:36:00]Read from MH i2c: F0 09 00 AE 04 00 90 5C 25 66 F4 E9 65 64 C7 [18:36:00]GetLastDocTimeStamp 1713723047 [18:36:00]current date 1713724560 [18:36:00]FM_GetShiftState [18:36:00]SAM_PROTO_GetShiftState [18:36:00]wFMCommunicate request_size=4 [18:36:00]MH_SAM_APDU [18:36:00]CAPDU: 80 13 01 00 [18:36:00]Write to MH i2c: E2 08 00 AF 04 80 13 01 00 00 00 00 00 30 [18:36:00]Write i2c OK [18:36:00]MH_I2C_Read... [18:36:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:00]Read from MH i2c: E2 [18:36:00]MH_I2C_Read... [18:36:00]Read from MH i2c: E2 0E 00 [18:36:00]MH_I2C_Read... [18:36:00]Read from MH i2c: E2 0E 00 AF 04 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 77 [18:36:00]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [18:36:00]wFMCommunicate OK [18:36:00]SAM_PROTO_GetShiftState done [18:36:00]FM_GetShiftState done [18:36:00]opened in 1713658965 [18:36:00]opened+sec_in_day 1713745365 [18:36:00]quantity*price = 140021 [18:36:00]sum+1 = 140022 [18:36:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1400.21 НСП 1% : 12.39 НДС 12% : 148.69 Наличными: 0.00 Безнал.: 1400.21 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 162 21.04.2024 18:36 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 76906 ФПД: 280000616481051 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T183601&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76906&fm=280000616481051&tin=02508201610067®Number=0000000000091573&sum=140021 [18:36:01]StoreToDocumentArchive [18:36:01]shift 372 fd 76906 [18:36:01]save to /storage/0372/doc_00076906 [18:36:01]save last doc name /storage/0372/doc_00076906 to /storage/kkm_last_doc_name [18:36:01]save OK [18:36:01]Clear old archive folders... [18:36:01]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:36:01]tlvbuf is 00C92DB0 [18:36:01]SAM_PROTO_ClearQueue [18:36:01]wFMCommunicate request_size=4 [18:36:01]MH_SAM_APDU [18:36:01]CAPDU: 80 09 00 00 [18:36:01]Write to MH i2c: E2 08 00 BC 04 80 09 00 00 00 00 00 00 32 [18:36:01]Write i2c OK [18:36:01]MH_I2C_Read... [18:36:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:36:01]Read from MH i2c: E2 [18:36:01]MH_I2C_Read... [18:36:01]Read from MH i2c: E2 03 00 [18:36:01]MH_I2C_Read... [18:36:01]Read from MH i2c: E2 03 00 BC 04 00 90 00 34 [18:36:01]RAPDU: 90 00 [18:36:01]wFMCommunicate OK [18:36:01]SAM_PROTO_ClearQueue done [18:36:01]KKMCreateOFDPacket [18:36:01]OFDProtocolAddRootSTLVToBuf [18:36:01]FM_MakeSignedData [18:36:01]FM_MakeSignedData [18:36:01]SAM_PROTO_SignData [18:36:01]wFMCommunicate request_size=4 [18:36:01]MH_SAM_APDU [18:36:01]CAPDU: 80 0D 01 02 [18:36:01]Write to MH i2c: E2 08 00 BD 04 80 0D 01 02 00 00 00 00 3A [18:36:01]Write i2c OK [18:36:01]MH_I2C_Read... [18:36:01]OFD Sender: No OFD packet to send [18:36:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:36:01]Read from MH i2c: E2 [18:36:01]MH_I2C_Read... [18:36:01]Read from MH i2c: E2 03 00 [18:36:01]MH_I2C_Read... [18:36:01]Read from MH i2c: E2 03 00 BD 04 00 90 00 35 [18:36:01]RAPDU: 90 00 [18:36:01]wFMCommunicate OK [18:36:01]wFMCommunicate request_size=255 [18:36:01]MH_SAM_APDU [18:36:01]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 53 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 F5 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F5 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 15 3A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F5 22 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 91 5C 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6A 2C 01 00 35 04 06 00 [18:36:01]Write to MH i2c: E2 02 01 BE 04 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 53 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 F5 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F5 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 15 3A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F5 22 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 91 5C 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6A 2C 01 00 35 04 06 00 00 00 16 [18:36:01]Write i2c OK [18:36:01]MH_I2C_Read... [18:36:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:01]Read from MH i2c: E2 [18:36:01]MH_I2C_Read... [18:36:01]Read from MH i2c: E2 03 00 [18:36:01]MH_I2C_Read... [18:36:01]Read from MH i2c: E2 03 00 BE 04 00 90 00 36 [18:36:01]RAPDU: 90 00 [18:36:01]wFMCommunicate OK [18:36:01]wFMCommunicate request_size=11 [18:36:01]MH_SAM_APDU [18:36:01]CAPDU: 80 0D 02 02 06 FE A8 B9 48 41 1B [18:36:01]Write to MH i2c: E2 0E 00 BF 04 80 0D 02 02 06 00 FE A8 B9 48 41 1B 00 00 4C [18:36:01]Write i2c OK [18:36:01]MH_I2C_Read... [18:36:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:01]Read from MH i2c: E2 [18:36:01]MH_I2C_Read... [18:36:01]Read from MH i2c: E2 03 00 [18:36:01]MH_I2C_Read... [18:36:01]Read from MH i2c: E2 03 00 BF 04 00 90 00 37 [18:36:01]RAPDU: 90 00 [18:36:01]wFMCommunicate OK [18:36:01]wFMCommunicate request_size=4 [18:36:01]MH_SAM_APDU [18:36:01]CAPDU: 80 0D 03 02 [18:36:01]Write to MH i2c: E2 08 00 C0 04 80 0D 03 02 00 00 00 00 3F [18:36:01]Write i2c OK [18:36:01]MH_I2C_Read... [18:36:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:36:01]Read from MH i2c: E2 [18:36:01]MH_I2C_Read... [18:36:01]Read from MH i2c: E2 0B 00 [18:36:01]MH_I2C_Read... [18:36:01]Read from MH i2c: E2 0B 00 C0 04 00 B5 7B D0 7C 68 9E AB AF 90 00 1C [18:36:01]RAPDU: B5 7B D0 7C 68 9E AB AF 90 00 [18:36:01]wFMCommunicate OK [18:36:01]SAM_PROTO_SignData done [18:36:01]FM_MakeSignedData done [18:36:01]CreateOFDProtocolMessage [18:36:01]wFMCommunicate request_size=4 [18:36:01]MH_SAM_APDU [18:36:01]CAPDU: 80 11 00 00 [18:36:01]Write to MH i2c: E2 08 00 C1 04 80 11 00 00 00 00 00 00 3F [18:36:01]Write i2c OK [18:36:01]MH_I2C_Read... [18:36:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:01]Read from MH i2c: E2 [18:36:01]MH_I2C_Read... [18:36:01]Read from MH i2c: E2 17 00 [18:36:01]MH_I2C_Read... [18:36:01]Read from MH i2c: E2 17 00 C1 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 92 [18:36:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [18:36:01]wFMCommunicate OK [18:36:01]CreateOFDProtocolMessage done [18:36:01]OFDSenderStorePacket 76906 [18:36:01]StoreOFDPacket docnum=76906 [18:36:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 2F 27 08 01 E1 A9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 53 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 F5 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F5 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 15 3A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F5 22 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 91 5C 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6A 2C 01 00 35 04 06 00 FE A8 B9 48 41 1B B5 7B D0 7C 68 9E AB AF [18:36:01]CheckFolder [18:36:01]dirname=/storage/ofd_packets [18:36:01]CheckFolder done [18:36:01]ProducePacketName [18:36:01]name=ofd_packets/00076906 [18:36:01]NVStorageSaveData ofd_packets/00076906 [18:36:01]File name is /storage/ofd_packets/00076906 [18:36:01]Write 302 bytes [18:36:01]NVStorageSaveData done [18:36:01]OFDSenderStorePacket done [18:36:01]KKMCreateOFDPacket done [18:36:01]NVStorageSaveData kkm_last_timestamp [18:36:01]File name is /storage/kkm_last_timestamp [18:36:01]Write 4 bytes [18:36:01]NVStorageSaveData done [18:36:01]ExternCall_PrintAddStr [18:36:01]wPrintStart [18:36:01]Write to MH i2c: 01 00 00 C2 04 C6 [18:36:01]Write i2c OK [18:36:01]MH_I2C_Read... [18:36:01]Read from MH i2c: 01 [18:36:01]MH_I2C_Read... [18:36:01]Read from MH i2c: 01 07 00 [18:36:01]MH_I2C_Read... [18:36:01]Read from MH i2c: 01 07 00 C2 04 00 00 00 00 00 FF 0F DB [18:36:01]RasterBufferAndPrint [18:36:01]line Счет N : (1)191451 [18:36:01]line ИНН: 02508201610067 [18:36:01]line Контрольно-Кассовый Чек [18:36:01]line ПРОДАЖА [18:36:01]line ТРК (МРК, ГНК) : 41 [18:36:01]line Товар: 2710124130 [18:36:01]line SUPER 92-К-5 [18:36:01]line 21.410 * 65.40 [18:36:01]line = 1400.21 [18:36:01]line НДС 12% НСП 1% [18:36:01]line > о реализуемом товаре [18:36:01]line ИТОГО: 1400.21 [18:36:01]line НСП 1% : 12.39 [18:36:01]line НДС 12% : 148.69 [18:36:01]line Наличными: 0.00 [18:36:01]line Безнал.: 1400.21 [18:36:01]line Место: АЗС № 106 "Партнер Нефть" [18:36:01]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [18:36:01]line СНО: Общий режим [18:36:01]line Чек 162 21.04.2024 18:36 [18:36:01]line Смена: 372 ФФД: 1.0 [18:36:01]line ЗНМ: 0300000141 [18:36:01]line РНМ: 0000000000091573 [18:36:01]line Версия ККМ: 001 [18:36:01]line Платежная система: О! деньги [18:36:01]line ФМ: 0000000000874652 [18:36:01]line ФД: 76906 [18:36:01]line ФПД: 280000616481051 [18:36:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T183601&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76906&fm=280000616481051&tin=02508201610067®Number=0000000000091573&sum=140021 [18:36:02]written 0, free lines is 4095 [18:36:02]OFD Sender: Processing packet 76906 [packets to send 129, broken 128] [18:36:02]ProducePacketName [18:36:02]name=ofd_packets/00076906 [18:36:02]OFD Sender: To server: pG, [18:36:02]CommunicateWithHost lk.salyk.kg:30040 [18:36:02]ConnectInit lk.salyk.kg [18:36:02]Connected sock=10 [18:36:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 2F 27 08 01 E1 A9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 53 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 F5 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F5 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 15 3A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F5 22 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 91 5C 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6A 2C 01 00 35 04 06 00 FE A8 B9 48 41 1B B5 7B D0 7C 68 9E AB AF [18:36:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 0B 9D 47 00 7D 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 34 36 35 32 10 04 04 00 6A 2C 01 00 F4 03 04 00 15 04 25 66 B6 04 01 00 00 85 C1 71 20 0A 63 3E 58 [18:36:02]CommunicateWithHost err = 0 [18:36:02]CheckOFDResponse [18:36:02]1017 (14) - 77093643461234 [18:36:02]1041 (16) - 0000000000874652 [18:36:02]1040 (4) - 76906 [18:36:02]1012 (4) - 21.04.2024 12:18 [18:36:02]1206 (1) - 0 [18:36:02]OFD Sender: Remove packet 76906 [18:36:02]ProducePacketName [18:36:02]name=ofd_packets/00076906 [18:36:02]NVStorageDeleteData [18:36:02]Write to MH i2c: 01 00 00 EB 04 EF [18:36:02]Write i2c OK [18:36:02]MH_I2C_Read... [18:36:02]Read from MH i2c: 01 [18:36:02]MH_I2C_Read... [18:36:02]Read from MH i2c: 01 07 00 [18:36:02]MH_I2C_Read... [18:36:02]Read from MH i2c: 01 07 00 EB 04 00 00 00 00 00 04 0D 07 [18:36:02]RasterBufferAndPrint [18:36:02]line [18:36:02]line [18:36:02]line [18:36:02]line [18:36:02]line [18:36:02]written 0, free lines is 3339 [18:36:02]MH_Cut [18:36:02]Write to MH i2c: D1 01 00 F2 04 01 C8 [18:36:02]Write i2c OK [18:36:02]MH_I2C_Read... [18:36:02]Read from MH i2c: D1 [18:36:02]MH_I2C_Read... [18:36:02]Read from MH i2c: D1 01 00 [18:36:02]MH_I2C_Read... [18:36:02]Read from MH i2c: D1 01 00 F2 04 00 C7 [18:36:02]Write to MH i2c: 01 00 00 F3 04 F7 [18:36:02]Write i2c OK [18:36:02]MH_I2C_Read... [18:36:03]OFD Sender: No OFD packet to send [18:36:03]*** Cut start [18:36:03]*** Partial cut [18:36:03]*** CUTSNS_PIN = 1 [18:36:03]*** CUTSNS_PIN = 0 [18:36:03]*** Brake cut motor [18:36:04]Read from MH i2c: 01 [18:36:04]MH_I2C_Read... [18:36:04]*** Stop cut motor [18:36:04]*** Cut end [18:36:04]Read from MH i2c: 01 07 00 [18:36:04]MH_I2C_Read... [18:36:04]Read from MH i2c: 01 07 00 F3 04 00 00 00 00 00 FF 0F 0C [18:36:04]process_action close_receipt done [18:36:04]requested_data is exist [18:36:04]produce_requested_data [18:36:04]requested_item fm.sn is exist - process it [18:36:04]wFMCommunicate request_size=4 [18:36:04]MH_SAM_APDU [18:36:04]CAPDU: 80 11 00 00 [18:36:04]Write to MH i2c: E2 08 00 F4 04 80 11 00 00 00 00 00 00 72 [18:36:04]Write i2c OK [18:36:04]MH_I2C_Read... [18:36:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:04]Read from MH i2c: E2 [18:36:04]MH_I2C_Read... [18:36:04]Read from MH i2c: E2 17 00 [18:36:04]MH_I2C_Read... [18:36:04]Read from MH i2c: E2 17 00 F4 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 C5 [18:36:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [18:36:04]wFMCommunicate OK [18:36:04]requested_item fd.num is exist - process it [18:36:04]SAM_PROTO_GetFieldsCounters [18:36:04]wFMCommunicate request_size=4 [18:36:04]MH_SAM_APDU [18:36:04]CAPDU: 80 13 00 00 [18:36:04]Write to MH i2c: E2 08 00 F5 04 80 13 00 00 00 00 00 00 75 [18:36:04]Write i2c OK [18:36:04]MH_I2C_Read... [18:36:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:36:04]Read from MH i2c: E2 [18:36:04]MH_I2C_Read... [18:36:04]Read from MH i2c: E2 62 00 [18:36:04]MH_I2C_Read... [18:36:04]Read from MH i2c: E2 62 00 F5 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 6A 2C 01 00 0E 04 04 00 74 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 88 [18:36: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 6A 2C 01 00 0E 04 04 00 74 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 [18:36:04]wFMCommunicate OK [18:36:04]SAM_PROTO_GetFieldsCounters done [18:36:04]requested_item shift.num is exist - process it [18:36:04]requested_item shift.opened is exist - process it [18:36:04]req_shift_opened [18:36:04]FM_GetShiftState [18:36:04]SAM_PROTO_GetShiftState [18:36:04]wFMCommunicate request_size=4 [18:36:04]MH_SAM_APDU [18:36:04]CAPDU: 80 13 01 00 [18:36:04]Write to MH i2c: E2 08 00 F6 04 80 13 01 00 00 00 00 00 77 [18:36:04]Write i2c OK [18:36:04]MH_I2C_Read... [18:36:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:04]Read from MH i2c: E2 [18:36:04]MH_I2C_Read... [18:36:04]Read from MH i2c: E2 0E 00 [18:36:04]MH_I2C_Read... [18:36:04]Read from MH i2c: E2 0E 00 F6 04 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 BE [18:36:04]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [18:36:04]wFMCommunicate OK [18:36:04]SAM_PROTO_GetShiftState done [18:36:04]FM_GetShiftState done [18:36:04]req_shift_opened done [18:36:04]requested_item shift.open_date is exist - process it [18:36:04]req_shift_open_date [18:36:04]req_shift_open_date done [18:36:04]produce_requested_data done [18:36:04]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76906,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [18:36:04]process_action_free close_receipt [18:36:04]json_value_free [18:36:04]json_value_free done [18:36:04]process_json_proto returns [18:36:04]Send response to host [18:36:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76906,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [18:36:04]free response buf [18:36:04]execute_script done [18:36:04]execute_script returns [18:36:04]free content buf [18:36:04]Sock 8.Close socket [18:36:04]Sock 8.Thread stoped [18:36:08]OFD Sender: No OFD packet to send [18:36:13]OFD Sender: No OFD packet to send [18:36:18]OFD Sender: No OFD packet to send [18:36:23]OFD Sender: No OFD packet to send [18:36:28]OFD Sender: No OFD packet to send [18:36:33]OFD Sender: No OFD packet to send [18:36:38]OFD Sender: No OFD packet to send [18:36:43]OFD Sender: No OFD packet to send [18:36:48]OFD Sender: No OFD packet to send [18:36:53]OFD Sender: No OFD packet to send [18:36:58]OFD Sender: No OFD packet to send [18:37:03]OFD Sender: No OFD packet to send [18:37:08]OFD Sender: No OFD packet to send [18:37:13]OFD Sender: No OFD packet to send [18:37:18]OFD Sender: No OFD packet to send [18:37:23]OFD Sender: No OFD packet to send [18:37:28]OFD Sender: No OFD packet to send [18:37:33]OFD Sender: No OFD packet to send [18:37:38]OFD Sender: No OFD packet to send [18:37:43]OFD Sender: No OFD packet to send [18:37:48]OFD Sender: No OFD packet to send [18:37:53]OFD Sender: No OFD packet to send [18:37:58]OFD Sender: No OFD packet to send [18:38:03]OFD Sender: No OFD packet to send [18:38:08]OFD Sender: No OFD packet to send [18:38:13]OFD Sender: No OFD packet to send [18:38:18]OFD Sender: No OFD packet to send [18:38:23]OFD Sender: No OFD packet to send [18:38:28]OFD Sender: No OFD packet to send [18:38:33]OFD Sender: No OFD packet to send [18:38:38]OFD Sender: No OFD packet to send [18:38:43]OFD Sender: No OFD packet to send [18:38:48]OFD Sender: No OFD packet to send [18:38:53]OFD Sender: No OFD packet to send [18:38:58]OFD Sender: No OFD packet to send [18:39:03]OFD Sender: No OFD packet to send [18:39:08]OFD Sender: No OFD packet to send [18:39:13]OFD Sender: No OFD packet to send [18:39:18]OFD Sender: No OFD packet to send [18:39:23]OFD Sender: No OFD packet to send [18:39:28]OFD Sender: No OFD packet to send [18:39:33]OFD Sender: No OFD packet to send [18:39:38]OFD Sender: No OFD packet to send [18:39:43]OFD Sender: No OFD packet to send [18:39:48]OFD Sender: No OFD packet to send [18:39:53]OFD Sender: No OFD packet to send [18:39:58]OFD Sender: No OFD packet to send [18:40:03]OFD Sender: No OFD packet to send [18:40:08]OFD Sender: No OFD packet to send [18:40:13]OFD Sender: No OFD packet to send [18:40:18]OFD Sender: No OFD packet to send [18:40:23]OFD Sender: No OFD packet to send [18:40:28]OFD Sender: No OFD packet to send [18:40:33]OFD Sender: No OFD packet to send [18:40:38]OFD Sender: No OFD packet to send [18:40:43]OFD Sender: No OFD packet to send [18:40:48]OFD Sender: No OFD packet to send [18:40:53]OFD Sender: No OFD packet to send [18:40:58]OFD Sender: No OFD packet to send [18:41:03]OFD Sender: No OFD packet to send [18:41:08]OFD Sender: No OFD packet to send [18:41:13]OFD Sender: No OFD packet to send [18:41:18]OFD Sender: No OFD packet to send [18:41:23]OFD Sender: No OFD packet to send [18:41:28]OFD Sender: No OFD packet to send [18:41:33]OFD Sender: No OFD packet to send [18:41:38]OFD Sender: No OFD packet to send [18:41:43]OFD Sender: No OFD packet to send [18:41:48]OFD Sender: No OFD packet to send [18:41:53]OFD Sender: No OFD packet to send [18:41:58]OFD Sender: No OFD packet to send [18:42:03]OFD Sender: No OFD packet to send [18:42:08]OFD Sender: No OFD packet to send [18:42:13]OFD Sender: No OFD packet to send [18:42:18]OFD Sender: No OFD packet to send [18:42:23]OFD Sender: No OFD packet to send [18:42:28]OFD Sender: No OFD packet to send [18:42:33]OFD Sender: No OFD packet to send [18:42:38]OFD Sender: No OFD packet to send [18:42:43]OFD Sender: No OFD packet to send [18:42:48]OFD Sender: No OFD packet to send [18:42:53]OFD Sender: No OFD packet to send [18:42:58]OFD Sender: No OFD packet to send [18:43:03]OFD Sender: No OFD packet to send [18:43:08]OFD Sender: No OFD packet to send [18:43:13]OFD Sender: No OFD packet to send [18:43:18]OFD Sender: No OFD packet to send [18:43:23]OFD Sender: No OFD packet to send [18:43:28]OFD Sender: No OFD packet to send [18:43:33]OFD Sender: No OFD packet to send [18:43:38]OFD Sender: No OFD packet to send [18:43:43]OFD Sender: No OFD packet to send [18:43:48]OFD Sender: No OFD packet to send [18:43:53]OFD Sender: No OFD packet to send [18:43:58]OFD Sender: No OFD packet to send [18:44:03]OFD Sender: No OFD packet to send [18:44:08]OFD Sender: No OFD packet to send [18:44:13]OFD Sender: No OFD packet to send [18:44:18]OFD Sender: No OFD packet to send [18:44:23]OFD Sender: No OFD packet to send [18:44:28]OFD Sender: No OFD packet to send [18:44:33]OFD Sender: No OFD packet to send [18:44:38]OFD Sender: No OFD packet to send [18:44:43]OFD Sender: No OFD packet to send [18:44:48]OFD Sender: No OFD packet to send [18:44:53]OFD Sender: No OFD packet to send [18:44:58]OFD Sender: No OFD packet to send [18:45:03]OFD Sender: No OFD packet to send [18:45:08]OFD Sender: No OFD packet to send [18:45:13]OFD Sender: No OFD packet to send [18:45:18]OFD Sender: No OFD packet to send [18:45:23]OFD Sender: No OFD packet to send [18:45:28]OFD Sender: No OFD packet to send [18:45:33]OFD Sender: No OFD packet to send [18:45:38]OFD Sender: No OFD packet to send [18:45:43]OFD Sender: No OFD packet to send [18:45:48]OFD Sender: No OFD packet to send [18:45:53]OFD Sender: No OFD packet to send [18:45:58]OFD Sender: No OFD packet to send [18:46:03]OFD Sender: No OFD packet to send [18:46:08]OFD Sender: No OFD packet to send [18:46:13]OFD Sender: No OFD packet to send [18:46:18]OFD Sender: No OFD packet to send [18:46:23]OFD Sender: No OFD packet to send [18:46:28]OFD Sender: No OFD packet to send [18:46:33]OFD Sender: No OFD packet to send [18:46:38]OFD Sender: No OFD packet to send [18:46:43]OFD Sender: No OFD packet to send [18:46:48]OFD Sender: No OFD packet to send [18:46:53]OFD Sender: No OFD packet to send [18:46:58]OFD Sender: No OFD packet to send [18:47:03]OFD Sender: No OFD packet to send [18:47:08]OFD Sender: No OFD packet to send [18:47:13]OFD Sender: No OFD packet to send [18:47:18]OFD Sender: No OFD packet to send [18:47:23]OFD Sender: No OFD packet to send [18:47:28]OFD Sender: No OFD packet to send [18:47:33]OFD Sender: No OFD packet to send [18:47:38]OFD Sender: No OFD packet to send [18:47:43]OFD Sender: No OFD packet to send [18:47:48]OFD Sender: No OFD packet to send [18:47:53]OFD Sender: No OFD packet to send [18:47:58]OFD Sender: No OFD packet to send [18:48:03]OFD Sender: No OFD packet to send [18:48:08]OFD Sender: No OFD packet to send [18:48:13]OFD Sender: No OFD packet to send [18:48:18]OFD Sender: No OFD packet to send [18:48:23]OFD Sender: No OFD packet to send [18:48:28]OFD Sender: No OFD packet to send [18:48:33]OFD Sender: No OFD packet to send [18:48:39]OFD Sender: No OFD packet to send [18:48:44]OFD Sender: No OFD packet to send [18:48:49]OFD Sender: No OFD packet to send [18:48:54]OFD Sender: No OFD packet to send [18:48:59]OFD Sender: No OFD packet to send [18:49:04]OFD Sender: No OFD packet to send [18:49:09]OFD Sender: No OFD packet to send [18:49:09]accept exits with 9 [18:49:09]New connection [18:49:09]New thread 3066944868 created [18:49:09]Thread 3066801508 joined [18:49:09]Waiting for new connection... [18:49:09] Sock 9.Parse request [18:49:09]Sock 9.Check first char [18:49:09]Sock 9.First char is OK [18:49:09]request: POST /json_proto HTTP/1.0 [18:49:09]Method: POST [18:49:09]URL: /json_proto [18:49:09]Method is POST - this is cgi request [18:49:09]url: /json_proto [18:49:09]query_string will be loaded in cgi processing [18:49:09]execute_cgi json_proto POST (null) [18:49:09]execute_cgi path=json_proto method=POST [18:49:09]POST find Content-Length [18:49:09]Host: 172.17.62.5:8080 [18:49:09]Content-Length: 809 [18:49:09]Content-Type: application/json [18:49:09] [18:49:09]POST finish read [18:49:09]Found Content-Length = 809 [18:49:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191452", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 25.090, "sum" : 820.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 820.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:09]execute_script... [18:49: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)191452", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 25.090, "sum" : 820.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 820.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:09]POST & json_proto [18:49:09]process_json_proto [18:49:09]json parsed OK: [18:49:09]protocol is kg_v1.0 [18:49:09]action value=close_receipt [18:49:09]process_action close_receipt [18:49:09]cmd_close_receipt [18:49:09]MH_GetDate [18:49:09]Write to MH i2c: F0 00 00 F7 04 EA [18:49:09]Write i2c OK [18:49:09]MH_I2C_Read... [18:49:09]Read from MH i2c: F0 [18:49:09]MH_I2C_Read... [18:49:09]Read from MH i2c: F0 09 00 [18:49:09]MH_I2C_Read... [18:49:09]Read from MH i2c: F0 09 00 F7 04 00 A5 5F 25 66 F4 E9 65 64 28 [18:49:09]GetLastDocTimeStamp 1713724561 [18:49:09]current date 1713725349 [18:49:09]FM_GetShiftState [18:49:09]SAM_PROTO_GetShiftState [18:49:09]wFMCommunicate request_size=4 [18:49:09]MH_SAM_APDU [18:49:09]CAPDU: 80 13 01 00 [18:49:09]Write to MH i2c: E2 08 00 F8 04 80 13 01 00 00 00 00 00 79 [18:49:09]Write i2c OK [18:49:09]MH_I2C_Read... [18:49:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:09]Read from MH i2c: E2 [18:49:09]MH_I2C_Read... [18:49:09]Read from MH i2c: E2 0E 00 [18:49:09]MH_I2C_Read... [18:49:09]Read from MH i2c: E2 0E 00 F8 04 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 C0 [18:49:09]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [18:49:09]wFMCommunicate OK [18:49:09]SAM_PROTO_GetShiftState done [18:49:09]FM_GetShiftState done [18:49:09]opened in 1713658965 [18:49:09]opened+sec_in_day 1713745365 [18:49:09]quantity*price = 82044 [18:49:09]sum+1 = 82045 [18:49:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 820.44 НСП 1% : 7.26 НДС 12% : 87.13 Наличными: 0.00 Безнал.: 820.44 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 163 21.04.2024 18:49 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 76907 ФПД: 50153211222266 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T184909&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76907&fm=50153211222266&tin=02508201610067®Number=0000000000091573&sum=82044 [18:49:10]StoreToDocumentArchive [18:49:10]shift 372 fd 76907 [18:49:10]save to /storage/0372/doc_00076907 [18:49:10]save last doc name /storage/0372/doc_00076907 to /storage/kkm_last_doc_name [18:49:10]save OK [18:49:10]Clear old archive folders... [18:49:10]ProcessDocumentItem done err = 0, tmpTLVsize=250 [18:49:10]tlvbuf is 00C8AD00 [18:49:10]SAM_PROTO_ClearQueue [18:49:10]wFMCommunicate request_size=4 [18:49:10]MH_SAM_APDU [18:49:10]CAPDU: 80 09 00 00 [18:49:10]Write to MH i2c: E2 08 00 05 05 80 09 00 00 00 00 00 00 7C [18:49:10]Write i2c OK [18:49:10]MH_I2C_Read... [18:49:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:49:10]Read from MH i2c: E2 [18:49:10]MH_I2C_Read... [18:49:10]Read from MH i2c: E2 03 00 [18:49:10]MH_I2C_Read... [18:49:10]Read from MH i2c: E2 03 00 05 05 00 90 00 7E [18:49:10]RAPDU: 90 00 [18:49:10]wFMCommunicate OK [18:49:10]SAM_PROTO_ClearQueue done [18:49:10]KKMCreateOFDPacket [18:49:10]OFDProtocolAddRootSTLVToBuf [18:49:10]FM_MakeSignedData [18:49:10]FM_MakeSignedData [18:49:10]SAM_PROTO_SignData [18:49:10]wFMCommunicate request_size=4 [18:49:10]MH_SAM_APDU [18:49:10]CAPDU: 80 0D 01 02 [18:49:10]Write to MH i2c: E2 08 00 06 05 80 0D 01 02 00 00 00 00 84 [18:49:10]Write i2c OK [18:49:10]MH_I2C_Read... [18:49:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:49:10]Read from MH i2c: E2 [18:49:10]MH_I2C_Read... [18:49:10]Read from MH i2c: E2 03 00 [18:49:10]MH_I2C_Read... [18:49:10]Read from MH i2c: E2 03 00 06 05 00 90 00 7F [18:49:10]RAPDU: 90 00 [18:49:10]wFMCommunicate OK [18:49:10]wFMCommunicate request_size=255 [18:49:10]MH_SAM_APDU [18:49:10]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 02 62 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 7C 40 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 40 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 22 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 40 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 A5 5F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6B 2C 01 00 35 04 06 00 2D 9D [18:49:10]Write to MH i2c: E2 02 01 07 05 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 02 62 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 7C 40 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 40 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 22 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 40 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 A5 5F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6B 2C 01 00 35 04 06 00 2D 9D 00 00 AE [18:49:10]Write i2c OK [18:49:10]MH_I2C_Read... [18:49:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:10]Read from MH i2c: E2 [18:49:10]MH_I2C_Read... [18:49:10]Read from MH i2c: E2 03 00 [18:49:10]MH_I2C_Read... [18:49:10]Read from MH i2c: E2 03 00 07 05 00 90 00 80 [18:49:10]RAPDU: 90 00 [18:49:10]wFMCommunicate OK [18:49:10]wFMCommunicate request_size=9 [18:49:10]MH_SAM_APDU [18:49:10]CAPDU: 80 0D 02 02 04 34 56 D8 FA [18:49:10]Write to MH i2c: E2 0C 00 08 05 80 0D 02 02 04 00 34 56 D8 FA 00 00 EB [18:49:10]Write i2c OK [18:49:10]MH_I2C_Read... [18:49:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:10]Read from MH i2c: E2 [18:49:10]MH_I2C_Read... [18:49:10]Read from MH i2c: E2 03 00 [18:49:10]MH_I2C_Read... [18:49:10]Read from MH i2c: E2 03 00 08 05 00 90 00 81 [18:49:10]RAPDU: 90 00 [18:49:10]wFMCommunicate OK [18:49:10]wFMCommunicate request_size=4 [18:49:10]MH_SAM_APDU [18:49:10]CAPDU: 80 0D 03 02 [18:49:10]Write to MH i2c: E2 08 00 09 05 80 0D 03 02 00 00 00 00 89 [18:49:10]Write i2c OK [18:49:10]MH_I2C_Read... [18:49:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:49:10]Read from MH i2c: E2 [18:49:10]MH_I2C_Read... [18:49:10]Read from MH i2c: E2 0B 00 [18:49:10]MH_I2C_Read... [18:49:10]Read from MH i2c: E2 0B 00 09 05 00 B1 18 87 AC D4 5E 7A 47 90 00 79 [18:49:10]RAPDU: B1 18 87 AC D4 5E 7A 47 90 00 [18:49:10]wFMCommunicate OK [18:49:10]SAM_PROTO_SignData done [18:49:10]FM_MakeSignedData done [18:49:10]CreateOFDProtocolMessage [18:49:10]wFMCommunicate request_size=4 [18:49:10]MH_SAM_APDU [18:49:10]CAPDU: 80 11 00 00 [18:49:10]Write to MH i2c: E2 08 00 0A 05 80 11 00 00 00 00 00 00 89 [18:49:10]Write i2c OK [18:49:10]MH_I2C_Read... [18:49:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:10]Read from MH i2c: E2 [18:49:10]MH_I2C_Read... [18:49:10]Read from MH i2c: E2 17 00 [18:49:10]MH_I2C_Read... [18:49:10]Read from MH i2c: E2 17 00 0A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 DC [18:49:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [18:49:10]wFMCommunicate OK [18:49:10]CreateOFDProtocolMessage done [18:49:10]OFDSenderStorePacket 76907 [18:49:10]StoreOFDPacket docnum=76907 [18:49:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 80 0C 06 01 D5 CC 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 02 62 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 7C 40 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 40 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 22 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 40 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 A5 5F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6B 2C 01 00 35 04 06 00 2D 9D 34 56 D8 FA B1 18 87 AC D4 5E 7A 47 [18:49:10]CheckFolder [18:49:10]dirname=/storage/ofd_packets [18:49:10]CheckFolder done [18:49:10]ProducePacketName [18:49:10]name=ofd_packets/00076907 [18:49:10]NVStorageSaveData ofd_packets/00076907 [18:49:10]File name is /storage/ofd_packets/00076907 [18:49:10]Write 300 bytes [18:49:10]NVStorageSaveData done [18:49:10]OFDSenderStorePacket done [18:49:10]KKMCreateOFDPacket done [18:49:10]NVStorageSaveData kkm_last_timestamp [18:49:10]File name is /storage/kkm_last_timestamp [18:49:10]Write 4 bytes [18:49:10]NVStorageSaveData done [18:49:10]ExternCall_PrintAddStr [18:49:10]wPrintStart [18:49:10]Write to MH i2c: 01 00 00 0B 05 10 [18:49:10]Write i2c OK [18:49:10]MH_I2C_Read... [18:49:10]Read from MH i2c: 01 [18:49:10]MH_I2C_Read... [18:49:10]Read from MH i2c: 01 07 00 [18:49:10]MH_I2C_Read... [18:49:10]Read from MH i2c: 01 07 00 0B 05 00 00 00 00 00 FF 0F 25 [18:49:10]RasterBufferAndPrint [18:49:10]line Счет N : (1)191452 [18:49:10]line ИНН: 02508201610067 [18:49:10]line Контрольно-Кассовый Чек [18:49:10]line ПРОДАЖА [18:49:10]line ТРК (МРК, ГНК) : 71 [18:49:10]line Товар: 2711190000 [18:49:10]line ГАЗ-К-5 [18:49:10]line 25.090 * 32.70 [18:49:10]line = 820.44 [18:49:10]line НДС 12% НСП 1% [18:49:10]line > о реализуемом товаре [18:49:10]line ИТОГО: 820.44 [18:49:10]line НСП 1% : 7.26 [18:49:10]line НДС 12% : 87.13 [18:49:10]line Наличными: 0.00 [18:49:10]line Безнал.: 820.44 [18:49:10]line Место: АЗС № 106 "Партнер Нефть" [18:49:10]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [18:49:10]line СНО: Общий режим [18:49:10]line Чек 163 21.04.2024 18:49 [18:49:10]line Смена: 372 ФФД: 1.0 [18:49:10]line ЗНМ: 0300000141 [18:49:10]line РНМ: 0000000000091573 [18:49:10]line Версия ККМ: 001 [18:49:10]line Платежная система: О! деньги [18:49:10]line ФМ: 0000000000874652 [18:49:10]line ФД: 76907 [18:49:10]line ФПД: 50153211222266 [18:49:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T184909&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76907&fm=50153211222266&tin=02508201610067®Number=0000000000091573&sum=82044 [18:49:10]written 0, free lines is 4095 [18:49:10]OFD Sender: Processing packet 76907 [packets to send 129, broken 128] [18:49:10]ProducePacketName [18:49:10]name=ofd_packets/00076907 [18:49:10]OFD Sender: To server: pG, [18:49:10]CommunicateWithHost lk.salyk.kg:30040 [18:49:10]ConnectInit lk.salyk.kg [18:49:11]Connected sock=10 [18:49:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 80 0C 06 01 D5 CC 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 02 62 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 7C 40 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 40 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 22 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 40 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 A5 5F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6B 2C 01 00 35 04 06 00 2D 9D 34 56 D8 FA B1 18 87 AC D4 5E 7A 47 [18:49:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 2D 90 47 00 D4 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 34 36 35 32 10 04 04 00 6B 2C 01 00 F4 03 04 00 2A 07 25 66 B6 04 01 00 00 82 B9 5B 69 53 69 5C F0 [18:49:11]CommunicateWithHost err = 0 [18:49:11]CheckOFDResponse [18:49:11]1017 (14) - 77093643461234 [18:49:11]1041 (16) - 0000000000874652 [18:49:11]1040 (4) - 76907 [18:49:11]1012 (4) - 21.04.2024 12:31 [18:49:11]1206 (1) - 0 [18:49:11]OFD Sender: Remove packet 76907 [18:49:11]ProducePacketName [18:49:11]name=ofd_packets/00076907 [18:49:11]NVStorageDeleteData [18:49:11]Write to MH i2c: 01 00 00 34 05 39 [18:49:11]Write i2c OK [18:49:11]MH_I2C_Read... [18:49:11]Read from MH i2c: 01 [18:49:11]MH_I2C_Read... [18:49:11]Read from MH i2c: 01 07 00 [18:49:11]MH_I2C_Read... [18:49:11]Read from MH i2c: 01 07 00 34 05 00 00 00 00 00 FE 0C 4A [18:49:11]RasterBufferAndPrint [18:49:11]line [18:49:11]line [18:49:11]line [18:49:11]line [18:49:11]line [18:49:11]written 0, free lines is 3332 [18:49:11]MH_Cut [18:49:11]Write to MH i2c: D1 01 00 3B 05 01 12 [18:49:11]Write i2c OK [18:49:11]MH_I2C_Read... [18:49:11]Read from MH i2c: D1 [18:49:11]MH_I2C_Read... [18:49:11]Read from MH i2c: D1 01 00 [18:49:11]MH_I2C_Read... [18:49:11]Read from MH i2c: D1 01 00 3B 05 00 11 [18:49:11]Write to MH i2c: 01 00 00 3C 05 41 [18:49:11]Write i2c OK [18:49:11]MH_I2C_Read... [18:49:11]OFD Sender: No OFD packet to send [18:49:11]*** Cut start [18:49:11]*** Partial cut [18:49:11]*** CUTSNS_PIN = 1 [18:49:12]*** CUTSNS_PIN = 0 [18:49:12]*** Brake cut motor [18:49:12]Read from MH i2c: 01 [18:49:12]MH_I2C_Read... [18:49:12]*** Stop cut motor [18:49:12]*** Cut end [18:49:12]Read from MH i2c: 01 07 00 [18:49:12]MH_I2C_Read... [18:49:12]Read from MH i2c: 01 07 00 3C 05 00 00 00 00 00 FF 0F 56 [18:49:12]process_action close_receipt done [18:49:12]requested_data is exist [18:49:12]produce_requested_data [18:49:12]requested_item fm.sn is exist - process it [18:49:12]wFMCommunicate request_size=4 [18:49:12]MH_SAM_APDU [18:49:12]CAPDU: 80 11 00 00 [18:49:12]Write to MH i2c: E2 08 00 3D 05 80 11 00 00 00 00 00 00 BC [18:49:12]Write i2c OK [18:49:12]MH_I2C_Read... [18:49:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:12]Read from MH i2c: E2 [18:49:12]MH_I2C_Read... [18:49:12]Read from MH i2c: E2 17 00 [18:49:12]MH_I2C_Read... [18:49:12]Read from MH i2c: E2 17 00 3D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 0F [18:49:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [18:49:12]wFMCommunicate OK [18:49:12]requested_item fd.num is exist - process it [18:49:12]SAM_PROTO_GetFieldsCounters [18:49:12]wFMCommunicate request_size=4 [18:49:12]MH_SAM_APDU [18:49:12]CAPDU: 80 13 00 00 [18:49:12]Write to MH i2c: E2 08 00 3E 05 80 13 00 00 00 00 00 00 BF [18:49:12]Write i2c OK [18:49:12]MH_I2C_Read... [18:49:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:49:12]Read from MH i2c: E2 [18:49:12]MH_I2C_Read... [18:49:12]Read from MH i2c: E2 62 00 [18:49:12]MH_I2C_Read... [18:49:12]Read from MH i2c: E2 62 00 3E 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 6B 2C 01 00 0E 04 04 00 74 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 D6 [18:49:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 6B 2C 01 00 0E 04 04 00 74 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 [18:49:12]wFMCommunicate OK [18:49:12]SAM_PROTO_GetFieldsCounters done [18:49:12]requested_item shift.num is exist - process it [18:49:12]requested_item shift.opened is exist - process it [18:49:12]req_shift_opened [18:49:12]FM_GetShiftState [18:49:12]SAM_PROTO_GetShiftState [18:49:12]wFMCommunicate request_size=4 [18:49:12]MH_SAM_APDU [18:49:12]CAPDU: 80 13 01 00 [18:49:12]Write to MH i2c: E2 08 00 3F 05 80 13 01 00 00 00 00 00 C1 [18:49:12]Write i2c OK [18:49:12]MH_I2C_Read... [18:49:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:12]Read from MH i2c: E2 [18:49:12]MH_I2C_Read... [18:49:12]Read from MH i2c: E2 0E 00 [18:49:12]MH_I2C_Read... [18:49:12]Read from MH i2c: E2 0E 00 3F 05 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 08 [18:49:12]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [18:49:12]wFMCommunicate OK [18:49:12]SAM_PROTO_GetShiftState done [18:49:12]FM_GetShiftState done [18:49:12]req_shift_opened done [18:49:12]requested_item shift.open_date is exist - process it [18:49:12]req_shift_open_date [18:49:12]req_shift_open_date done [18:49:12]produce_requested_data done [18:49:12]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76907,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [18:49:12]process_action_free close_receipt [18:49:12]json_value_free [18:49:12]json_value_free done [18:49:12]process_json_proto returns [18:49:12]Send response to host [18:49:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76907,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [18:49:12]free response buf [18:49:12]execute_script done [18:49:12]execute_script returns [18:49:12]free content buf [18:49:12]Sock 9.Close socket [18:49:12]Sock 9.Thread stoped [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:57]OFD Sender: No OFD packet to send [18:53:02]OFD Sender: No OFD packet to send [18:53:07]OFD Sender: No OFD packet to send [18:53:12]OFD Sender: No OFD packet to send [18:53:17]OFD Sender: No OFD packet to send [18:53:17]accept exits with 8 [18:53:17]New connection [18:53:17]New thread 3066801508 created [18:53:17]Thread 3066944868 joined [18:53:17]Waiting for new connection... [18:53:17] Sock 8.Parse request [18:53:17]Sock 8.Check first char [18:53:17]Sock 8.First char is OK [18:53:17]request: POST /json_proto HTTP/1.0 [18:53:17]Method: POST [18:53:17]URL: /json_proto [18:53:17]Method is POST - this is cgi request [18:53:17]url: /json_proto [18:53:17]query_string will be loaded in cgi processing [18:53:17]execute_cgi json_proto POST (null) [18:53:17]execute_cgi path=json_proto method=POST [18:53:17]POST find Content-Length [18:53:17]Host: 172.17.62.5:8080 [18:53:17]Content-Length: 681 [18:53:17]Content-Type: application/json [18:53:17] [18:53:17]POST finish read [18:53:17]Found Content-Length = 681 [18:53:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191453", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 15.300, "sum" : 500.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:53:17]execute_script... [18:53: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)191453", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 15.300, "sum" : 500.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:53:17]POST & json_proto [18:53:17]process_json_proto [18:53:17]json parsed OK: [18:53:17]protocol is kg_v1.0 [18:53:17]action value=close_receipt [18:53:17]process_action close_receipt [18:53:17]cmd_close_receipt [18:53:17]MH_GetDate [18:53:17]Write to MH i2c: F0 00 00 40 05 34 [18:53:17]Write i2c OK [18:53:17]MH_I2C_Read... [18:53:17]Read from MH i2c: F0 [18:53:17]MH_I2C_Read... [18:53:17]Read from MH i2c: F0 09 00 [18:53:17]MH_I2C_Read... [18:53:17]Read from MH i2c: F0 09 00 40 05 00 9E 60 25 66 F4 E9 65 64 6C [18:53:17]GetLastDocTimeStamp 1713725349 [18:53:17]current date 1713725598 [18:53:17]FM_GetShiftState [18:53:17]SAM_PROTO_GetShiftState [18:53:17]wFMCommunicate request_size=4 [18:53:17]MH_SAM_APDU [18:53:17]CAPDU: 80 13 01 00 [18:53:17]Write to MH i2c: E2 08 00 41 05 80 13 01 00 00 00 00 00 C3 [18:53:17]Write i2c OK [18:53:17]MH_I2C_Read... [18:53:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:17]Read from MH i2c: E2 [18:53:17]MH_I2C_Read... [18:53:17]Read from MH i2c: E2 0E 00 [18:53:17]MH_I2C_Read... [18:53:17]Read from MH i2c: E2 0E 00 41 05 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 0A [18:53:17]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [18:53:17]wFMCommunicate OK [18:53:17]SAM_PROTO_GetShiftState done [18:53:17]FM_GetShiftState done [18:53:17]opened in 1713658965 [18:53:17]opened+sec_in_day 1713745365 [18:53:17]quantity*price = 50031 [18:53:17]sum+1 = 50032 [18:53:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 164 21.04.2024 18:53 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76908 ФПД: 98589703414482 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T185318&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76908&fm=98589703414482&tin=02508201610067®Number=0000000000091573&sum=50000 [18:53:18]StoreToDocumentArchive [18:53:18]shift 372 fd 76908 [18:53:18]save to /storage/0372/doc_00076908 [18:53:18]save last doc name /storage/0372/doc_00076908 to /storage/kkm_last_doc_name [18:53:18]save OK [18:53:18]Clear old archive folders... [18:53:18]ProcessDocumentItem done err = 0, tmpTLVsize=250 [18:53:18]tlvbuf is 00C68350 [18:53:18]SAM_PROTO_ClearQueue [18:53:18]wFMCommunicate request_size=4 [18:53:18]MH_SAM_APDU [18:53:18]CAPDU: 80 09 00 00 [18:53:18]Write to MH i2c: E2 08 00 4E 05 80 09 00 00 00 00 00 00 C5 [18:53:18]Write i2c OK [18:53:18]MH_I2C_Read... [18:53:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:53:18]Read from MH i2c: E2 [18:53:18]MH_I2C_Read... [18:53:18]Read from MH i2c: E2 03 00 [18:53:18]MH_I2C_Read... [18:53:18]Read from MH i2c: E2 03 00 4E 05 00 90 00 C7 [18:53:18]RAPDU: 90 00 [18:53:18]wFMCommunicate OK [18:53:18]SAM_PROTO_ClearQueue done [18:53:18]KKMCreateOFDPacket [18:53:18]OFDProtocolAddRootSTLVToBuf [18:53:18]FM_MakeSignedData [18:53:18]FM_MakeSignedData [18:53:18]SAM_PROTO_SignData [18:53:18]wFMCommunicate request_size=4 [18:53:18]MH_SAM_APDU [18:53:18]CAPDU: 80 0D 01 02 [18:53:18]Write to MH i2c: E2 08 00 4F 05 80 0D 01 02 00 00 00 00 CD [18:53:18]Write i2c OK [18:53:18]MH_I2C_Read... [18:53:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:53:18]Read from MH i2c: E2 [18:53:18]MH_I2C_Read... [18:53:18]Read from MH i2c: E2 03 00 [18:53:18]MH_I2C_Read... [18:53:18]Read from MH i2c: E2 03 00 4F 05 00 90 00 C8 [18:53:18]RAPDU: 90 00 [18:53:18]wFMCommunicate OK [18:53:18]wFMCommunicate request_size=255 [18:53:18]MH_SAM_APDU [18:53:18]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A4 00 00 00 F4 03 04 00 9E 60 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6C 2C 01 00 35 04 06 00 59 AA [18:53:18]Write to MH i2c: E2 02 01 50 05 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A4 00 00 00 F4 03 04 00 9E 60 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6C 2C 01 00 35 04 06 00 59 AA 00 00 76 [18:53:18]Write i2c OK [18:53:18]MH_I2C_Read... [18:53:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:19]Read from MH i2c: E2 [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: E2 03 00 [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: E2 03 00 50 05 00 90 00 C9 [18:53:19]RAPDU: 90 00 [18:53:19]wFMCommunicate OK [18:53:19]wFMCommunicate request_size=9 [18:53:19]MH_SAM_APDU [18:53:19]CAPDU: 80 0D 02 02 04 B4 40 22 D2 [18:53:19]Write to MH i2c: E2 0C 00 51 05 80 0D 02 02 04 00 B4 40 22 D2 00 00 C0 [18:53:19]Write i2c OK [18:53:19]MH_I2C_Read... [18:53:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:19]Read from MH i2c: E2 [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: E2 03 00 [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: E2 03 00 51 05 00 90 00 CA [18:53:19]RAPDU: 90 00 [18:53:19]wFMCommunicate OK [18:53:19]wFMCommunicate request_size=4 [18:53:19]MH_SAM_APDU [18:53:19]CAPDU: 80 0D 03 02 [18:53:19]Write to MH i2c: E2 08 00 52 05 80 0D 03 02 00 00 00 00 D2 [18:53:19]Write i2c OK [18:53:19]MH_I2C_Read... [18:53:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:53:19]Read from MH i2c: E2 [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: E2 0B 00 [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: E2 0B 00 52 05 00 55 DC BA 90 06 56 51 27 90 00 22 [18:53:19]RAPDU: 55 DC BA 90 06 56 51 27 90 00 [18:53:19]wFMCommunicate OK [18:53:19]SAM_PROTO_SignData done [18:53:19]FM_MakeSignedData done [18:53:19]CreateOFDProtocolMessage [18:53:19]wFMCommunicate request_size=4 [18:53:19]MH_SAM_APDU [18:53:19]CAPDU: 80 11 00 00 [18:53:19]Write to MH i2c: E2 08 00 53 05 80 11 00 00 00 00 00 00 D2 [18:53:19]Write i2c OK [18:53:19]MH_I2C_Read... [18:53:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:19]Read from MH i2c: E2 [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: E2 17 00 [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: E2 17 00 53 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 25 [18:53:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [18:53:19]wFMCommunicate OK [18:53:19]CreateOFDProtocolMessage done [18:53:19]OFDSenderStorePacket 76908 [18:53:19]StoreOFDPacket docnum=76908 [18:53:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 54 41 06 01 02 9F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A4 00 00 00 F4 03 04 00 9E 60 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6C 2C 01 00 35 04 06 00 59 AA B4 40 22 D2 55 DC BA 90 06 56 51 27 [18:53:19]CheckFolder [18:53:19]dirname=/storage/ofd_packets [18:53:19]CheckFolder done [18:53:19]ProducePacketName [18:53:19]name=ofd_packets/00076908 [18:53:19]NVStorageSaveData ofd_packets/00076908 [18:53:19]File name is /storage/ofd_packets/00076908 [18:53:19]Write 300 bytes [18:53:19]NVStorageSaveData done [18:53:19]OFDSenderStorePacket done [18:53:19]KKMCreateOFDPacket done [18:53:19]NVStorageSaveData kkm_last_timestamp [18:53:19]File name is /storage/kkm_last_timestamp [18:53:19]Write 4 bytes [18:53:19]NVStorageSaveData done [18:53:19]ExternCall_PrintAddStr [18:53:19]wPrintStart [18:53:19]Write to MH i2c: 01 00 00 54 05 59 [18:53:19]Write i2c OK [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: 01 [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: 01 07 00 [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: 01 07 00 54 05 00 00 00 00 00 FF 0F 6E [18:53:19]RasterBufferAndPrint [18:53:19]line Счет N : (1)191453 [18:53:19]line ИНН: 02508201610067 [18:53:19]line Контрольно-Кассовый Чек [18:53:19]line ПРОДАЖА [18:53:19]line ТРК (МРК, ГНК) : 71 [18:53:19]line Товар: 2711190000 [18:53:19]line ГАЗ-К-5 [18:53:19]line 15.300 * 32.70 [18:53:19]line = 500.31 [18:53:19]line НДС 12% НСП 1% [18:53:19]line > о реализуемом товаре [18:53:19]line ОКРУГЛЕНИЕ: -0.31 [18:53:19]line ИТОГО: 500.00 [18:53:19]line Внесено: 500.00 [18:53:19]line СДАЧА: 0.00 [18:53:19]line НСП 1% : 4.43 [18:53:19]line НДС 12% : 53.13 [18:53:19]line Наличными: 500.00 [18:53:19]line Безнал.: 0.00 [18:53:19]line Место: АЗС № 106 "Партнер Нефть" [18:53:19]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [18:53:19]line СНО: Общий режим [18:53:19]line Чек 164 21.04.2024 18:53 [18:53:19]line Смена: 372 ФФД: 1.0 [18:53:19]line ЗНМ: 0300000141 [18:53:19]line РНМ: 0000000000091573 [18:53:19]line Версия ККМ: 001 [18:53:19]line ФМ: 0000000000874652 [18:53:19]line ФД: 76908 [18:53:19]line ФПД: 98589703414482 [18:53:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T185318&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76908&fm=98589703414482&tin=02508201610067®Number=0000000000091573&sum=50000 [18:53:19]written 0, free lines is 4095 [18:53:19]OFD Sender: Processing packet 76908 [packets to send 129, broken 128] [18:53:19]ProducePacketName [18:53:19]name=ofd_packets/00076908 [18:53:19]OFD Sender: To server: pG, [18:53:19]CommunicateWithHost lk.salyk.kg:30040 [18:53:19]ConnectInit lk.salyk.kg [18:53:19]Connected sock=10 [18:53:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 54 41 06 01 02 9F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A4 00 00 00 F4 03 04 00 9E 60 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6C 2C 01 00 35 04 06 00 59 AA B4 40 22 D2 55 DC BA 90 06 56 51 27 [18:53:19]Write to MH i2c: 01 00 00 7E 05 83 [18:53:19]Write i2c OK [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: 01 [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: 01 07 00 [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: 01 07 00 7E 05 00 00 00 00 00 E4 0C 7A [18:53:19]RasterBufferAndPrint [18:53:19]line [18:53:19]line [18:53:19]line [18:53:19]line [18:53:19]line [18:53:19]written 0, free lines is 3306 [18:53:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 EA 5D 47 00 19 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6C 2C 01 00 F4 03 04 00 22 08 25 66 B6 04 01 00 00 18 48 85 BA DF 88 94 15 [18:53:19]CommunicateWithHost err = 0 [18:53:19]CheckOFDResponse [18:53:19]1017 (14) - 77093643461234 [18:53:19]1041 (16) - 0000000000874652 [18:53:19]1040 (4) - 76908 [18:53:19]1012 (4) - 21.04.2024 12:35 [18:53:19]1206 (1) - 0 [18:53:19]OFD Sender: Remove packet 76908 [18:53:19]ProducePacketName [18:53:19]name=ofd_packets/00076908 [18:53:19]NVStorageDeleteData [18:53:19]MH_Cut [18:53:19]Write to MH i2c: D1 01 00 85 05 01 5C [18:53:19]Write i2c OK [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: D1 [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: D1 01 00 [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: D1 01 00 85 05 00 5B [18:53:19]Write to MH i2c: 01 00 00 86 05 8B [18:53:19]Write i2c OK [18:53:19]MH_I2C_Read... [18:53:20]OFD Sender: No OFD packet to send [18:53:20]*** Cut start [18:53:20]*** Partial cut [18:53:20]*** CUTSNS_PIN = 1 [18:53:20]*** CUTSNS_PIN = 0 [18:53:20]*** Brake cut motor [18:53:20]Read from MH i2c: 01 [18:53:21]MH_I2C_Read... [18:53:21]*** Stop cut motor [18:53:21]*** Cut end [18:53:21]Read from MH i2c: 01 07 00 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: 01 07 00 86 05 00 00 00 00 00 FF 0F A0 [18:53:21]process_action close_receipt done [18:53:21]requested_data is exist [18:53:21]produce_requested_data [18:53:21]requested_item fm.sn is exist - process it [18:53:21]wFMCommunicate request_size=4 [18:53:21]MH_SAM_APDU [18:53:21]CAPDU: 80 11 00 00 [18:53:21]Write to MH i2c: E2 08 00 87 05 80 11 00 00 00 00 00 00 06 [18:53:21]Write i2c OK [18:53:21]MH_I2C_Read... [18:53:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:21]Read from MH i2c: E2 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: E2 17 00 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: E2 17 00 87 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 59 [18:53:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [18:53:21]wFMCommunicate OK [18:53:21]requested_item fd.num is exist - process it [18:53:21]SAM_PROTO_GetFieldsCounters [18:53:21]wFMCommunicate request_size=4 [18:53:21]MH_SAM_APDU [18:53:21]CAPDU: 80 13 00 00 [18:53:21]Write to MH i2c: E2 08 00 88 05 80 13 00 00 00 00 00 00 09 [18:53:21]Write i2c OK [18:53:21]MH_I2C_Read... [18:53:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:53:21]Read from MH i2c: E2 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: E2 62 00 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: E2 62 00 88 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 6C 2C 01 00 0E 04 04 00 74 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 24 [18:53: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 6C 2C 01 00 0E 04 04 00 74 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 [18:53:21]wFMCommunicate OK [18:53:21]SAM_PROTO_GetFieldsCounters done [18:53:21]requested_item shift.num is exist - process it [18:53:21]requested_item shift.opened is exist - process it [18:53:21]req_shift_opened [18:53:21]FM_GetShiftState [18:53:21]SAM_PROTO_GetShiftState [18:53:21]wFMCommunicate request_size=4 [18:53:21]MH_SAM_APDU [18:53:21]CAPDU: 80 13 01 00 [18:53:21]Write to MH i2c: E2 08 00 89 05 80 13 01 00 00 00 00 00 0B [18:53:21]Write i2c OK [18:53:21]MH_I2C_Read... [18:53:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:21]Read from MH i2c: E2 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: E2 0E 00 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: E2 0E 00 89 05 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 52 [18:53:21]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [18:53:21]wFMCommunicate OK [18:53:21]SAM_PROTO_GetShiftState done [18:53:21]FM_GetShiftState done [18:53:21]req_shift_opened done [18:53:21]requested_item shift.open_date is exist - process it [18:53:21]req_shift_open_date [18:53:21]req_shift_open_date done [18:53:21]produce_requested_data done [18:53:21]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76908,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [18:53:21]process_action_free close_receipt [18:53:21]json_value_free [18:53:21]json_value_free done [18:53:21]process_json_proto returns [18:53:21]Send response to host [18:53:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76908,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [18:53:21]free response buf [18:53:21]execute_script done [18:53:21]execute_script returns [18:53:21]free content buf [18:53:21]Sock 8.Close socket [18:53:21]Sock 8.Thread stoped [18:53:25]OFD Sender: No OFD packet to send [18:53:30]OFD Sender: No OFD packet to send [18:53:35]OFD Sender: No OFD packet to send [18:53:35]accept exits with 9 [18:53:35]New connection [18:53:35]New thread 3066944868 created [18:53:35]Thread 3066801508 joined [18:53:35]Waiting for new connection... [18:53:35] Sock 9.Parse request [18:53:35]Sock 9.Check first char [18:53:35]Sock 9.First char is OK [18:53:35]request: POST /json_proto HTTP/1.0 [18:53:35]Method: POST [18:53:35]URL: /json_proto [18:53:35]Method is POST - this is cgi request [18:53:35]url: /json_proto [18:53:35]query_string will be loaded in cgi processing [18:53:35]execute_cgi json_proto POST (null) [18:53:35]execute_cgi path=json_proto method=POST [18:53:35]POST find Content-Length [18:53:35]Host: 172.17.62.5:8080 [18:53:35]Content-Length: 978 [18:53:35]Content-Type: application/json [18:53:35] [18:53:35]POST finish read [18:53:35]Found Content-Length = 978 [18:53:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191454", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.960, "sum" : 2010.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 27.96 \u0441\u043E\u043C", "deposit" : 2010.00, "total" : 2010.00, "payments": [ { "type": 0, "sum" : 2010.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:35]execute_script... [18:53: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)191454", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.960, "sum" : 2010.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 27.96 \u0441\u043E\u043C", "deposit" : 2010.00, "total" : 2010.00, "payments": [ { "type": 0, "sum" : 2010.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:35]POST & json_proto [18:53:35]process_json_proto [18:53:35]json parsed OK: [18:53:35]protocol is kg_v1.0 [18:53:35]action value=close_receipt [18:53:35]process_action close_receipt [18:53:35]cmd_close_receipt [18:53:35]MH_GetDate [18:53:35]Write to MH i2c: F0 00 00 8A 05 7E [18:53:35]Write i2c OK [18:53:35]MH_I2C_Read... [18:53:35]Read from MH i2c: F0 [18:53:35]MH_I2C_Read... [18:53:35]Read from MH i2c: F0 09 00 [18:53:35]MH_I2C_Read... [18:53:35]Read from MH i2c: F0 09 00 8A 05 00 B0 60 25 66 F4 E9 65 64 C8 [18:53:35]GetLastDocTimeStamp 1713725598 [18:53:35]current date 1713725616 [18:53:35]FM_GetShiftState [18:53:35]SAM_PROTO_GetShiftState [18:53:35]wFMCommunicate request_size=4 [18:53:35]MH_SAM_APDU [18:53:35]CAPDU: 80 13 01 00 [18:53:35]Write to MH i2c: E2 08 00 8B 05 80 13 01 00 00 00 00 00 0D [18:53:35]Write i2c OK [18:53:35]MH_I2C_Read... [18:53:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:35]Read from MH i2c: E2 [18:53:35]MH_I2C_Read... [18:53:35]Read from MH i2c: E2 0E 00 [18:53:35]MH_I2C_Read... [18:53:35]Read from MH i2c: E2 0E 00 8B 05 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 54 [18:53:35]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [18:53:35]wFMCommunicate OK [18:53:35]SAM_PROTO_GetShiftState done [18:53:35]FM_GetShiftState done [18:53:35]opened in 1713658965 [18:53:35]opened+sec_in_day 1713745365 [18:53:35]quantity*price = 201032 [18:53:35]sum+1 = 201033 [18:53:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 2010.00 Внесено: 2010.00 СДАЧА: 0.00 НСП 1% : 17.79 НДС 12% : 213.48 Наличными: 2010.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 165 21.04.2024 18:53 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 27.96 сом ФМ: 0000000000874652 ФД: 76909 ФПД: 170337305282841 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T185336&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76909&fm=170337305282841&tin=02508201610067®Number=0000000000091573&sum=201000 [18:53:36]StoreToDocumentArchive [18:53:36]shift 372 fd 76909 [18:53:36]save to /storage/0372/doc_00076909 [18:53:36]save last doc name /storage/0372/doc_00076909 to /storage/kkm_last_doc_name [18:53:36]save OK [18:53:36]Clear old archive folders... [18:53:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:53:36]tlvbuf is 00C77670 [18:53:36]SAM_PROTO_ClearQueue [18:53:36]wFMCommunicate request_size=4 [18:53:36]MH_SAM_APDU [18:53:36]CAPDU: 80 09 00 00 [18:53:36]Write to MH i2c: E2 08 00 98 05 80 09 00 00 00 00 00 00 0F [18:53:36]Write i2c OK [18:53:36]MH_I2C_Read... [18:53:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:53:36]Read from MH i2c: E2 [18:53:36]MH_I2C_Read... [18:53:36]Read from MH i2c: E2 03 00 [18:53:36]MH_I2C_Read... [18:53:36]Read from MH i2c: E2 03 00 98 05 00 90 00 11 [18:53:36]RAPDU: 90 00 [18:53:36]wFMCommunicate OK [18:53:36]SAM_PROTO_ClearQueue done [18:53:36]KKMCreateOFDPacket [18:53:36]OFDProtocolAddRootSTLVToBuf [18:53:36]FM_MakeSignedData [18:53:36]FM_MakeSignedData [18:53:36]SAM_PROTO_SignData [18:53:36]wFMCommunicate request_size=4 [18:53:36]MH_SAM_APDU [18:53:36]CAPDU: 80 0D 01 02 [18:53:36]Write to MH i2c: E2 08 00 99 05 80 0D 01 02 00 00 00 00 17 [18:53:36]Write i2c OK [18:53:36]MH_I2C_Read... [18:53:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:53:37]Read from MH i2c: E2 [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: E2 03 00 [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: E2 03 00 99 05 00 90 00 12 [18:53:37]RAPDU: 90 00 [18:53:37]wFMCommunicate OK [18:53:37]wFMCommunicate request_size=255 [18:53:37]MH_SAM_APDU [18:53:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 38 6D 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 48 11 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 11 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 53 00 00 00 00 07 04 06 00 28 11 03 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 B0 60 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6D 2C 01 00 35 04 06 00 9A EB BE 92 [18:53:37]Write to MH i2c: E2 02 01 9A 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 38 6D 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 48 11 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 11 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 53 00 00 00 00 07 04 06 00 28 11 03 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 B0 60 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6D 2C 01 00 35 04 06 00 9A EB BE 92 00 00 F3 [18:53:37]Write i2c OK [18:53:37]MH_I2C_Read... [18:53:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:37]Read from MH i2c: E2 [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: E2 03 00 [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: E2 03 00 9A 05 00 90 00 13 [18:53:37]RAPDU: 90 00 [18:53:37]wFMCommunicate OK [18:53:37]wFMCommunicate request_size=7 [18:53:37]MH_SAM_APDU [18:53:37]CAPDU: 80 0D 02 02 02 C9 19 [18:53:37]Write to MH i2c: E2 0A 00 9B 05 80 0D 02 02 02 00 C9 19 00 00 00 [18:53:37]Write i2c OK [18:53:37]MH_I2C_Read... [18:53:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:37]Read from MH i2c: E2 [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: E2 03 00 [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: E2 03 00 9B 05 00 90 00 14 [18:53:37]RAPDU: 90 00 [18:53:37]wFMCommunicate OK [18:53:37]wFMCommunicate request_size=4 [18:53:37]MH_SAM_APDU [18:53:37]CAPDU: 80 0D 03 02 [18:53:37]Write to MH i2c: E2 08 00 9C 05 80 0D 03 02 00 00 00 00 1C [18:53:37]Write i2c OK [18:53:37]MH_I2C_Read... [18:53:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:53:37]Read from MH i2c: E2 [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: E2 0B 00 [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: E2 0B 00 9C 05 00 C6 44 98 DC 7D C3 8C 2D 90 00 94 [18:53:37]RAPDU: C6 44 98 DC 7D C3 8C 2D 90 00 [18:53:37]wFMCommunicate OK [18:53:37]SAM_PROTO_SignData done [18:53:37]FM_MakeSignedData done [18:53:37]CreateOFDProtocolMessage [18:53:37]wFMCommunicate request_size=4 [18:53:37]MH_SAM_APDU [18:53:37]CAPDU: 80 11 00 00 [18:53:37]Write to MH i2c: E2 08 00 9D 05 80 11 00 00 00 00 00 00 1C [18:53:37]Write i2c OK [18:53:37]MH_I2C_Read... [18:53:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:37]Read from MH i2c: E2 [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: E2 17 00 [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: E2 17 00 9D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 6F [18:53:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [18:53:37]wFMCommunicate OK [18:53:37]CreateOFDProtocolMessage done [18:53:37]OFDSenderStorePacket 76909 [18:53:37]StoreOFDPacket docnum=76909 [18:53:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 92 6B 04 01 7F 4F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 38 6D 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 48 11 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 11 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 53 00 00 00 00 07 04 06 00 28 11 03 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 B0 60 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6D 2C 01 00 35 04 06 00 9A EB BE 92 C9 19 C6 44 98 DC 7D C3 8C 2D [18:53:37]CheckFolder [18:53:37]dirname=/storage/ofd_packets [18:53:37]CheckFolder done [18:53:37]ProducePacketName [18:53:37]name=ofd_packets/00076909 [18:53:37]NVStorageSaveData ofd_packets/00076909 [18:53:37]File name is /storage/ofd_packets/00076909 [18:53:37]Write 298 bytes [18:53:37]NVStorageSaveData done [18:53:37]OFDSenderStorePacket done [18:53:37]KKMCreateOFDPacket done [18:53:37]NVStorageSaveData kkm_last_timestamp [18:53:37]File name is /storage/kkm_last_timestamp [18:53:37]Write 4 bytes [18:53:37]NVStorageSaveData done [18:53:37]ExternCall_PrintAddStr [18:53:37]wPrintStart [18:53:37]Write to MH i2c: 01 00 00 9E 05 A3 [18:53:37]Write i2c OK [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: 01 [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: 01 07 00 [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: 01 07 00 9E 05 00 00 00 00 00 FF 0F B8 [18:53:37]RasterBufferAndPrint [18:53:37]line Счет N : (1)191454 [18:53:37]line ИНН: 02508201610067 [18:53:37]line Контрольно-Кассовый Чек [18:53:37]line ПРОДАЖА [18:53:37]line ТРК (МРК, ГНК) : 23 [18:53:37]line Товар: 2710194210 [18:53:37]line ДТ-К-5 [18:53:37]line 27.960 * 71.90 [18:53:37]line = 2010.32 [18:53:37]line НДС 12% НСП 1% [18:53:37]line > о реализуемом товаре [18:53:37]line ОКРУГЛЕНИЕ: -0.32 [18:53:37]line ИТОГО: 2010.00 [18:53:37]line Внесено: 2010.00 [18:53:37]line СДАЧА: 0.00 [18:53:37]line НСП 1% : 17.79 [18:53:37]line НДС 12% : 213.48 [18:53:37]line Наличными: 2010.00 [18:53:37]line Безнал.: 0.00 [18:53:37]line Место: АЗС № 106 "Партнер Нефть" [18:53:37]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [18:53:37]line СНО: Общий режим [18:53:37]line Чек 165 21.04.2024 18:53 [18:53:37]line Смена: 372 ФФД: 1.0 [18:53:37]line ЗНМ: 0300000141 [18:53:37]line РНМ: 0000000000091573 [18:53:37]line Версия ККМ: 001 [18:53:37]line [18:53:37]line Дисконтная программа [18:53:37]line ДТ [18:53:37]line номер 106 [18:53:37]line сэкономлено 27.96 сом [18:53:37]line ФМ: 0000000000874652 [18:53:37]line ФД: 76909 [18:53:37]line ФПД: 170337305282841 [18:53:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T185336&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76909&fm=170337305282841&tin=02508201610067®Number=0000000000091573&sum=201000 [18:53:37]OFD Sender: Processing packet 76909 [packets to send 129, broken 128] [18:53:37]ProducePacketName [18:53:37]name=ofd_packets/00076909 [18:53:37]OFD Sender: To server: pG, [18:53:37]CommunicateWithHost lk.salyk.kg:30040 [18:53:37]ConnectInit lk.salyk.kg [18:53:37]written 0, free lines is 4095 [18:53:38]Connected sock=11 [18:53:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 92 6B 04 01 7F 4F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 38 6D 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 48 11 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 11 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 53 00 00 00 00 07 04 06 00 28 11 03 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 B0 60 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6D 2C 01 00 35 04 06 00 9A EB BE 92 C9 19 C6 44 98 DC 7D C3 8C 2D [18:53:38]Write to MH i2c: 01 00 00 CD 05 D2 [18:53:38]Write i2c OK [18:53:38]MH_I2C_Read... [18:53:38]Read from MH i2c: 01 [18:53:38]MH_I2C_Read... [18:53:38]Read from MH i2c: 01 07 00 [18:53:38]MH_I2C_Read... [18:53:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 E2 FA 47 00 B1 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6D 2C 01 00 F4 03 04 00 35 08 25 66 B6 04 01 00 00 F8 EA DE F2 D8 F6 11 C4 [18:53:38]CommunicateWithHost err = 0 [18:53:38]CheckOFDResponse [18:53:38]1017 (14) - 77093643461234 [18:53:38]1041 (16) - 0000000000874652 [18:53:38]1040 (4) - 76909 [18:53:38]1012 (4) - 21.04.2024 12:36 [18:53:38]1206 (1) - 0 [18:53:38]OFD Sender: Remove packet 76909 [18:53:38]ProducePacketName [18:53:38]name=ofd_packets/00076909 [18:53:38]NVStorageDeleteData [18:53:38]Read from MH i2c: 01 07 00 CD 05 00 00 00 00 00 A5 0C 8A [18:53:38]RasterBufferAndPrint [18:53:38]line [18:53:38]line [18:53:38]line [18:53:38]line [18:53:38]line [18:53:38]written 0, free lines is 3249 [18:53:38]MH_Cut [18:53:38]Write to MH i2c: D1 01 00 D4 05 01 AB [18:53:38]Write i2c OK [18:53:38]MH_I2C_Read... [18:53:38]Read from MH i2c: D1 [18:53:38]MH_I2C_Read... [18:53:38]Read from MH i2c: D1 01 00 [18:53:38]MH_I2C_Read... [18:53:38]Read from MH i2c: D1 01 00 D4 05 00 AA [18:53:38]Write to MH i2c: 01 00 00 D5 05 DA [18:53:38]Write i2c OK [18:53:38]MH_I2C_Read... [18:53:38]OFD Sender: No OFD packet to send [18:53:39]*** Cut start [18:53:39]*** Partial cut [18:53:39]*** CUTSNS_PIN = 1 [18:53:39]*** CUTSNS_PIN = 0 [18:53:39]*** Brake cut motor [18:53:39]Read from MH i2c: 01 [18:53:39]MH_I2C_Read... [18:53:39]*** Stop cut motor [18:53:39]*** Cut end [18:53:39]Read from MH i2c: 01 07 00 [18:53:39]MH_I2C_Read... [18:53:39]Read from MH i2c: 01 07 00 D5 05 00 00 00 00 00 FF 0F EF [18:53:39]process_action close_receipt done [18:53:39]requested_data is exist [18:53:39]produce_requested_data [18:53:39]requested_item fm.sn is exist - process it [18:53:39]wFMCommunicate request_size=4 [18:53:39]MH_SAM_APDU [18:53:39]CAPDU: 80 11 00 00 [18:53:39]Write to MH i2c: E2 08 00 D6 05 80 11 00 00 00 00 00 00 55 [18:53:39]Write i2c OK [18:53:39]MH_I2C_Read... [18:53:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:39]Read from MH i2c: E2 [18:53:39]MH_I2C_Read... [18:53:39]Read from MH i2c: E2 17 00 [18:53:39]MH_I2C_Read... [18:53:39]Read from MH i2c: E2 17 00 D6 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 A8 [18:53:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [18:53:39]wFMCommunicate OK [18:53:39]requested_item fd.num is exist - process it [18:53:39]SAM_PROTO_GetFieldsCounters [18:53:39]wFMCommunicate request_size=4 [18:53:39]MH_SAM_APDU [18:53:39]CAPDU: 80 13 00 00 [18:53:39]Write to MH i2c: E2 08 00 D7 05 80 13 00 00 00 00 00 00 58 [18:53:39]Write i2c OK [18:53:39]MH_I2C_Read... [18:53:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:53:39]Read from MH i2c: E2 [18:53:39]MH_I2C_Read... [18:53:39]Read from MH i2c: E2 62 00 [18:53:39]MH_I2C_Read... [18:53:39]Read from MH i2c: E2 62 00 D7 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 6D 2C 01 00 0E 04 04 00 74 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 77 [18:53: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 6D 2C 01 00 0E 04 04 00 74 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 [18:53:39]wFMCommunicate OK [18:53:39]SAM_PROTO_GetFieldsCounters done [18:53:39]requested_item shift.num is exist - process it [18:53:39]requested_item shift.opened is exist - process it [18:53:39]req_shift_opened [18:53:39]FM_GetShiftState [18:53:39]SAM_PROTO_GetShiftState [18:53:39]wFMCommunicate request_size=4 [18:53:39]MH_SAM_APDU [18:53:39]CAPDU: 80 13 01 00 [18:53:39]Write to MH i2c: E2 08 00 D8 05 80 13 01 00 00 00 00 00 5A [18:53:39]Write i2c OK [18:53:39]MH_I2C_Read... [18:53:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:39]Read from MH i2c: E2 [18:53:39]MH_I2C_Read... [18:53:39]Read from MH i2c: E2 0E 00 [18:53:39]MH_I2C_Read... [18:53:39]Read from MH i2c: E2 0E 00 D8 05 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 A1 [18:53:39]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [18:53:39]wFMCommunicate OK [18:53:39]SAM_PROTO_GetShiftState done [18:53:39]FM_GetShiftState done [18:53:39]req_shift_opened done [18:53:39]requested_item shift.open_date is exist - process it [18:53:39]req_shift_open_date [18:53:39]req_shift_open_date done [18:53:39]produce_requested_data done [18:53:39]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76909,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [18:53:39]process_action_free close_receipt [18:53:39]json_value_free [18:53:39]json_value_free done [18:53:39]process_json_proto returns [18:53:39]Send response to host [18:53:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76909,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [18:53:39]free response buf [18:53:39]execute_script done [18:53:39]execute_script returns [18:53:39]free content buf [18:53:39]Sock 9.Close socket [18:53:39]Sock 9.Thread stoped [18:53:43]OFD Sender: No OFD packet to send [18:53:48]OFD Sender: No OFD packet to send [18:53:53]OFD Sender: No OFD packet to send [18:53:58]OFD Sender: No OFD packet to send [18:54:03]OFD Sender: No OFD packet to send [18:54:08]OFD Sender: No OFD packet to send [18:54:13]OFD Sender: No OFD packet to send [18:54:18]OFD Sender: No OFD packet to send [18:54:23]OFD Sender: No OFD packet to send [18:54:28]OFD Sender: No OFD packet to send [18:54:33]OFD Sender: No OFD packet to send [18:54:38]OFD Sender: No OFD packet to send [18:54:43]OFD Sender: No OFD packet to send [18:54:48]OFD Sender: No OFD packet to send [18:54:53]OFD Sender: No OFD packet to send [18:54:58]OFD Sender: No OFD packet to send [18:55:03]OFD Sender: No OFD packet to send [18:55:08]OFD Sender: No OFD packet to send [18:55:13]OFD Sender: No OFD packet to send [18:55:18]OFD Sender: No OFD packet to send [18:55:23]OFD Sender: No OFD packet to send [18:55:28]OFD Sender: No OFD packet to send [18:55:33]OFD Sender: No OFD packet to send [18:55:38]OFD Sender: No OFD packet to send [18:55:43]OFD Sender: No OFD packet to send [18:55:48]OFD Sender: No OFD packet to send [18:55:53]OFD Sender: No OFD packet to send [18:55:58]OFD Sender: No OFD packet to send [18:56:03]OFD Sender: No OFD packet to send [18:56:08]OFD Sender: No OFD packet to send [18:56:13]OFD Sender: No OFD packet to send [18:56:18]OFD Sender: No OFD packet to send [18:56:23]OFD Sender: No OFD packet to send [18:56:28]OFD Sender: No OFD packet to send [18:56:33]OFD Sender: No OFD packet to send [18:56:38]OFD Sender: No OFD packet to send [18:56:44]OFD Sender: No OFD packet to send [18:56:49]OFD Sender: No OFD packet to send [18:56:54]OFD Sender: No OFD packet to send [18:56:59]OFD Sender: No OFD packet to send [18:57:04]OFD Sender: No OFD packet to send [18:57:09]OFD Sender: No OFD packet to send [18:57:14]OFD Sender: No OFD packet to send [18:57:19]OFD Sender: No OFD packet to send [18:57:24]OFD Sender: No OFD packet to send [18:57:29]OFD Sender: No OFD packet to send [18:57:34]OFD Sender: No OFD packet to send [18:57:39]OFD Sender: No OFD packet to send [18:57:44]OFD Sender: No OFD packet to send [18:57:49]OFD Sender: No OFD packet to send [18:57:54]OFD Sender: No OFD packet to send [18:57:59]OFD Sender: No OFD packet to send [18:58:04]OFD Sender: No OFD packet to send [18:58:09]OFD Sender: No OFD packet to send [18:58:14]OFD Sender: No OFD packet to send [18:58:19]OFD Sender: No OFD packet to send [18:58:24]OFD Sender: No OFD packet to send [18:58:29]OFD Sender: No OFD packet to send [18:58:34]OFD Sender: No OFD packet to send [18:58:39]OFD Sender: No OFD packet to send [18:58:44]OFD Sender: No OFD packet to send [18:58:49]OFD Sender: No OFD packet to send [18:58:54]OFD Sender: No OFD packet to send [18:58:59]OFD Sender: No OFD packet to send [18:59:04]OFD Sender: No OFD packet to send [18:59:09]OFD Sender: No OFD packet to send [18:59:14]OFD Sender: No OFD packet to send [18:59:19]OFD Sender: No OFD packet to send [18:59:24]OFD Sender: No OFD packet to send [18:59:29]OFD Sender: No OFD packet to send [18:59:34]OFD Sender: No OFD packet to send [18:59:39]OFD Sender: No OFD packet to send [18:59:44]OFD Sender: No OFD packet to send [18:59:49]OFD Sender: No OFD packet to send [18:59:54]OFD Sender: No OFD packet to send [18:59:58]accept exits with 8 [18:59:58]New connection [18:59:58]New thread 3066801508 created [18:59:58]Thread 3066944868 joined [18:59:58]Waiting for new connection... [18:59:58] Sock 8.Parse request [18:59:58]Sock 8.Check first char [18:59:58]Sock 8.First char is OK [18:59:58]request: POST /json_proto HTTP/1.0 [18:59:58]Method: POST [18:59:58]URL: /json_proto [18:59:58]Method is POST - this is cgi request [18:59:58]url: /json_proto [18:59:58]query_string will be loaded in cgi processing [18:59:58]execute_cgi json_proto POST (null) [18:59:58]execute_cgi path=json_proto method=POST [18:59:58]POST find Content-Length [18:59:58]Host: 172.17.62.5:8080 [18:59:58]Content-Length: 978 [18:59:58]Content-Type: application/json [18:59:58] [18:59:58]POST finish read [18:59:58]Found Content-Length = 978 [18:59:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191457", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 33.110, "sum" : 2380.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 33.11 \u0441\u043E\u043C", "deposit" : 2380.00, "total" : 2380.00, "payments": [ { "type": 0, "sum" : 2380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:58]execute_script... [18: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)191457", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 33.110, "sum" : 2380.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 33.11 \u0441\u043E\u043C", "deposit" : 2380.00, "total" : 2380.00, "payments": [ { "type": 0, "sum" : 2380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:58]POST & json_proto [18:59:58]process_json_proto [18:59:58]json parsed OK: [18:59:58]protocol is kg_v1.0 [18:59:58]action value=close_receipt [18:59:58]process_action close_receipt [18:59:58]cmd_close_receipt [18:59:58]MH_GetDate [18:59:58]Write to MH i2c: F0 00 00 D9 05 CD [18:59:58]Write i2c OK [18:59:58]MH_I2C_Read... [18:59:58]Read from MH i2c: F0 [18:59:58]MH_I2C_Read... [18:59:58]Read from MH i2c: F0 09 00 [18:59:58]MH_I2C_Read... [18:59:58]Read from MH i2c: F0 09 00 D9 05 00 2E 62 25 66 F4 E9 65 64 97 [18:59:58]GetLastDocTimeStamp 1713725616 [18:59:58]current date 1713725998 [18:59:58]FM_GetShiftState [18:59:58]SAM_PROTO_GetShiftState [18:59:58]wFMCommunicate request_size=4 [18:59:58]MH_SAM_APDU [18:59:58]CAPDU: 80 13 01 00 [18:59:58]Write to MH i2c: E2 08 00 DA 05 80 13 01 00 00 00 00 00 5C [18:59:58]Write i2c OK [18:59:58]MH_I2C_Read... [18:59:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:58]Read from MH i2c: E2 [18:59:58]MH_I2C_Read... [18:59:58]Read from MH i2c: E2 0E 00 [18:59:58]MH_I2C_Read... [18:59:58]Read from MH i2c: E2 0E 00 DA 05 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 A3 [18:59:58]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [18:59:58]wFMCommunicate OK [18:59:58]SAM_PROTO_GetShiftState done [18:59:58]FM_GetShiftState done [18:59:58]opened in 1713658965 [18:59:58]opened+sec_in_day 1713745365 [18:59:58]quantity*price = 238060 [18:59:58]sum+1 = 238062 [18:59:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 2380.00 Внесено: 2380.00 СДАЧА: 0.00 НСП 1% : 21.07 НДС 12% : 252.81 Наличными: 2380.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 166 21.04.2024 18:59 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 33.11 сом ФМ: 0000000000874652 ФД: 76910 ФПД: 250215769308676 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T185959&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76910&fm=250215769308676&tin=02508201610067®Number=0000000000091573&sum=238000 [18:59:59]StoreToDocumentArchive [18:59:59]shift 372 fd 76910 [18:59:59]save to /storage/0372/doc_00076910 [18:59:59]save last doc name /storage/0372/doc_00076910 to /storage/kkm_last_doc_name [18:59:59]save OK [18:59:59]Clear old archive folders... [18:59:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:59:59]tlvbuf is 00C91C90 [18:59:59]SAM_PROTO_ClearQueue [18:59:59]wFMCommunicate request_size=4 [18:59:59]MH_SAM_APDU [18:59:59]CAPDU: 80 09 00 00 [18:59:59]Write to MH i2c: E2 08 00 E7 05 80 09 00 00 00 00 00 00 5E [18:59:59]Write i2c OK [18:59:59]MH_I2C_Read... [18:59:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:59:59]Read from MH i2c: E2 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: E2 03 00 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: E2 03 00 E7 05 00 90 00 60 [18:59:59]RAPDU: 90 00 [18:59:59]wFMCommunicate OK [18:59:59]SAM_PROTO_ClearQueue done [18:59:59]KKMCreateOFDPacket [18:59:59]OFDProtocolAddRootSTLVToBuf [18:59:59]FM_MakeSignedData [18:59:59]FM_MakeSignedData [18:59:59]SAM_PROTO_SignData [18:59:59]wFMCommunicate request_size=4 [18:59:59]MH_SAM_APDU [18:59:59]CAPDU: 80 0D 01 02 [18:59:59]Write to MH i2c: E2 08 00 E8 05 80 0D 01 02 00 00 00 00 66 [18:59:59]Write i2c OK [18:59:59]MH_I2C_Read... [18:59:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:59:59]Read from MH i2c: E2 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: E2 03 00 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: E2 03 00 E8 05 00 90 00 61 [18:59:59]RAPDU: 90 00 [18:59:59]wFMCommunicate OK [18:59:59]wFMCommunicate request_size=255 [18:59:59]MH_SAM_APDU [18:59:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 81 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 ED A1 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 A1 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 62 00 00 00 00 07 04 06 00 B0 A1 03 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 2F 62 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6E 2C 01 00 35 04 06 00 E3 91 E6 0B [18:59:59]Write to MH i2c: E2 02 01 E9 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 81 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 ED A1 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 A1 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 62 00 00 00 00 07 04 06 00 B0 A1 03 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 2F 62 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6E 2C 01 00 35 04 06 00 E3 91 E6 0B 00 00 A2 [18:59:59]Write i2c OK [18:59:59]MH_I2C_Read... [18:59:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:59]Read from MH i2c: E2 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: E2 03 00 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: E2 03 00 E9 05 00 90 00 62 [18:59:59]RAPDU: 90 00 [18:59:59]wFMCommunicate OK [18:59:59]wFMCommunicate request_size=7 [18:59:59]MH_SAM_APDU [18:59:59]CAPDU: 80 0D 02 02 02 FE 04 [18:59:59]Write to MH i2c: E2 0A 00 EA 05 80 0D 02 02 02 00 FE 04 00 00 6F [18:59:59]Write i2c OK [18:59:59]MH_I2C_Read... [18:59:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:59]Read from MH i2c: E2 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: E2 03 00 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: E2 03 00 EA 05 00 90 00 63 [18:59:59]RAPDU: 90 00 [18:59:59]wFMCommunicate OK [18:59:59]wFMCommunicate request_size=4 [18:59:59]MH_SAM_APDU [18:59:59]CAPDU: 80 0D 03 02 [18:59:59]Write to MH i2c: E2 08 00 EB 05 80 0D 03 02 00 00 00 00 6B [18:59:59]Write i2c OK [18:59:59]MH_I2C_Read... [18:59:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:59:59]Read from MH i2c: E2 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: E2 0B 00 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: E2 0B 00 EB 05 00 D7 B3 AE 77 D7 FE C3 D6 90 00 89 [18:59:59]RAPDU: D7 B3 AE 77 D7 FE C3 D6 90 00 [18:59:59]wFMCommunicate OK [18:59:59]SAM_PROTO_SignData done [18:59:59]FM_MakeSignedData done [18:59:59]CreateOFDProtocolMessage [18:59:59]wFMCommunicate request_size=4 [18:59:59]MH_SAM_APDU [18:59:59]CAPDU: 80 11 00 00 [18:59:59]Write to MH i2c: E2 08 00 EC 05 80 11 00 00 00 00 00 00 6B [18:59:59]Write i2c OK [18:59:59]MH_I2C_Read... [18:59:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:59]Read from MH i2c: E2 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: E2 17 00 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: E2 17 00 EC 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 BE [18:59:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [18:59:59]wFMCommunicate OK [18:59:59]CreateOFDProtocolMessage done [18:59:59]OFDSenderStorePacket 76910 [18:59:59]StoreOFDPacket docnum=76910 [18:59:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 CA 33 04 01 B9 F4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 81 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 ED A1 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 A1 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 62 00 00 00 00 07 04 06 00 B0 A1 03 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 2F 62 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6E 2C 01 00 35 04 06 00 E3 91 E6 0B FE 04 D7 B3 AE 77 D7 FE C3 D6 [18:59:59]CheckFolder [18:59:59]dirname=/storage/ofd_packets [18:59:59]CheckFolder done [18:59:59]ProducePacketName [18:59:59]name=ofd_packets/00076910 [18:59:59]NVStorageSaveData ofd_packets/00076910 [18:59:59]File name is /storage/ofd_packets/00076910 [18:59:59]Write 298 bytes [18:59:59]NVStorageSaveData done [18:59:59]OFDSenderStorePacket done [18:59:59]KKMCreateOFDPacket done [18:59:59]NVStorageSaveData kkm_last_timestamp [18:59:59]File name is /storage/kkm_last_timestamp [18:59:59]Write 4 bytes [18:59:59]NVStorageSaveData done [18:59:59]ExternCall_PrintAddStr [18:59:59]wPrintStart [18:59:59]Write to MH i2c: 01 00 00 ED 05 F2 [18:59:59]Write i2c OK [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: 01 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: 01 07 00 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: 01 07 00 ED 05 00 00 00 00 00 FF 0F 07 [18:59:59]RasterBufferAndPrint [18:59:59]line Счет N : (1)191457 [18:59:59]line ИНН: 02508201610067 [18:59:59]line Контрольно-Кассовый Чек [18:59:59]line ПРОДАЖА [18:59:59]line ТРК (МРК, ГНК) : 13 [18:59:59]line Товар: 2710194210 [18:59:59]line ДТ-К-5 [18:59:59]line 33.110 * 71.90 [18:59:59]line = 2380.61 [18:59:59]line НДС 12% НСП 1% [18:59:59]line > о реализуемом товаре [18:59:59]line ОКРУГЛЕНИЕ: -0.61 [18:59:59]line ИТОГО: 2380.00 [18:59:59]line Внесено: 2380.00 [18:59:59]line СДАЧА: 0.00 [18:59:59]line НСП 1% : 21.07 [18:59:59]line НДС 12% : 252.81 [18:59:59]line Наличными: 2380.00 [18:59:59]line Безнал.: 0.00 [18:59:59]line Место: АЗС № 106 "Партнер Нефть" [18:59:59]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [18:59:59]line СНО: Общий режим [18:59:59]line Чек 166 21.04.2024 18:59 [18:59:59]line Смена: 372 ФФД: 1.0 [18:59:59]line ЗНМ: 0300000141 [18:59:59]line РНМ: 0000000000091573 [18:59:59]line Версия ККМ: 001 [18:59:59]line [18:59:59]line Дисконтная программа [18:59:59]line ДТ [18:59:59]line номер 106 [18:59:59]line сэкономлено 33.11 сом [18:59:59]line ФМ: 0000000000874652 [18:59:59]line ФД: 76910 [18:59:59]line ФПД: 250215769308676 [19:00:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T185959&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76910&fm=250215769308676&tin=02508201610067®Number=0000000000091573&sum=238000 [19:00:00]OFD Sender: Processing packet 76910 [packets to send 129, broken 128] [19:00:00]ProducePacketName [19:00:00]name=ofd_packets/00076910 [19:00:00]OFD Sender: To server: pG, [19:00:00]CommunicateWithHost lk.salyk.kg:30040 [19:00:00]ConnectInit lk.salyk.kg [19:00:00]written 0, free lines is 4095 [19:00:00]Connected sock=10 [19: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 34 36 35 32 0C 01 00 00 CA 33 04 01 B9 F4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 81 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 ED A1 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 A1 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 62 00 00 00 00 07 04 06 00 B0 A1 03 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 2F 62 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6E 2C 01 00 35 04 06 00 E3 91 E6 0B FE 04 D7 B3 AE 77 D7 FE C3 D6 [19:00:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 91 08 47 00 41 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 34 36 35 32 10 04 04 00 6E 2C 01 00 F4 03 04 00 B3 09 25 66 B6 04 01 00 00 6C E0 99 F5 56 37 E2 22 [19:00:00]CommunicateWithHost err = 0 [19:00:00]CheckOFDResponse [19:00:00]1017 (14) - 77093643461234 [19:00:00]1041 (16) - 0000000000874652 [19:00:00]1040 (4) - 76910 [19:00:00]1012 (4) - 21.04.2024 12:42 [19:00:00]1206 (1) - 0 [19:00:00]OFD Sender: Remove packet 76910 [19:00:00]ProducePacketName [19:00:00]name=ofd_packets/00076910 [19:00:00]NVStorageDeleteData [19:00:00]Write to MH i2c: 01 00 00 1C 06 22 [19:00:00]Write i2c OK [19:00:00]MH_I2C_Read... [19:00:00]Read from MH i2c: 01 [19:00:00]MH_I2C_Read... [19:00:00]Read from MH i2c: 01 07 00 [19:00:00]MH_I2C_Read... [19:00:00]Read from MH i2c: 01 07 00 1C 06 00 00 00 00 00 A3 0C D8 [19:00:00]RasterBufferAndPrint [19:00:00]line [19:00:00]line [19:00:00]line [19:00:00]line [19:00:00]line [19:00:00]written 0, free lines is 3240 [19:00:00]MH_Cut [19:00:00]Write to MH i2c: D1 01 00 23 06 01 FB [19:00:00]Write i2c OK [19:00:00]MH_I2C_Read... [19:00:00]Read from MH i2c: D1 [19:00:00]MH_I2C_Read... [19:00:00]Read from MH i2c: D1 01 00 [19:00:00]MH_I2C_Read... [19:00:00]Read from MH i2c: D1 01 00 23 06 00 FA [19:00:00]Write to MH i2c: 01 00 00 24 06 2A [19:00:00]Write i2c OK [19:00:00]MH_I2C_Read... [19:00:01]OFD Sender: No OFD packet to send [19:00:01]*** Cut start [19:00:01]*** Partial cut [19:00:01]*** CUTSNS_PIN = 1 [19:00:01]*** CUTSNS_PIN = 0 [19:00:01]*** Brake cut motor [19:00:02]Read from MH i2c: 01 [19:00:02]MH_I2C_Read... [19:00:02]*** Stop cut motor [19:00:02]*** Cut end [19:00:02]Read from MH i2c: 01 07 00 [19:00:02]MH_I2C_Read... [19:00:02]Read from MH i2c: 01 07 00 24 06 00 00 00 00 00 FF 0F 3F [19:00:02]process_action close_receipt done [19:00:02]requested_data is exist [19:00:02]produce_requested_data [19:00:02]requested_item fm.sn is exist - process it [19:00:02]wFMCommunicate request_size=4 [19:00:02]MH_SAM_APDU [19:00:02]CAPDU: 80 11 00 00 [19:00:02]Write to MH i2c: E2 08 00 25 06 80 11 00 00 00 00 00 00 A5 [19:00:02]Write i2c OK [19:00:02]MH_I2C_Read... [19:00:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:02]Read from MH i2c: E2 [19:00:02]MH_I2C_Read... [19:00:02]Read from MH i2c: E2 17 00 [19:00:02]MH_I2C_Read... [19:00:02]Read from MH i2c: E2 17 00 25 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F8 [19:00:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:00:02]wFMCommunicate OK [19:00:02]requested_item fd.num is exist - process it [19:00:02]SAM_PROTO_GetFieldsCounters [19:00:02]wFMCommunicate request_size=4 [19:00:02]MH_SAM_APDU [19:00:02]CAPDU: 80 13 00 00 [19:00:02]Write to MH i2c: E2 08 00 26 06 80 13 00 00 00 00 00 00 A8 [19:00:02]Write i2c OK [19:00:02]MH_I2C_Read... [19:00:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:00:02]Read from MH i2c: E2 [19:00:02]MH_I2C_Read... [19:00:02]Read from MH i2c: E2 62 00 [19:00:02]MH_I2C_Read... [19:00:02]Read from MH i2c: E2 62 00 26 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 6E 2C 01 00 0E 04 04 00 74 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 CB [19: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 6E 2C 01 00 0E 04 04 00 74 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 [19:00:02]wFMCommunicate OK [19:00:02]SAM_PROTO_GetFieldsCounters done [19:00:02]requested_item shift.num is exist - process it [19:00:02]requested_item shift.opened is exist - process it [19:00:02]req_shift_opened [19:00:02]FM_GetShiftState [19:00:02]SAM_PROTO_GetShiftState [19:00:02]wFMCommunicate request_size=4 [19:00:02]MH_SAM_APDU [19:00:02]CAPDU: 80 13 01 00 [19:00:02]Write to MH i2c: E2 08 00 27 06 80 13 01 00 00 00 00 00 AA [19:00:02]Write i2c OK [19:00:02]MH_I2C_Read... [19:00:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:02]Read from MH i2c: E2 [19:00:02]MH_I2C_Read... [19:00:02]Read from MH i2c: E2 0E 00 [19:00:02]MH_I2C_Read... [19:00:02]Read from MH i2c: E2 0E 00 27 06 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 F1 [19:00:02]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [19:00:02]wFMCommunicate OK [19:00:02]SAM_PROTO_GetShiftState done [19:00:02]FM_GetShiftState done [19:00:02]req_shift_opened done [19:00:02]requested_item shift.open_date is exist - process it [19:00:02]req_shift_open_date [19:00:02]req_shift_open_date done [19:00:02]produce_requested_data done [19:00:02]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76910,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [19:00:02]process_action_free close_receipt [19:00:02]json_value_free [19:00:02]json_value_free done [19:00:02]process_json_proto returns [19:00:02]Send response to host [19:00:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76910,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [19:00:02]free response buf [19:00:02]execute_script done [19:00:02]execute_script returns [19:00:02]free content buf [19:00:02]Sock 8.Close socket [19:00:02]Sock 8.Thread stoped [19:00:04]accept exits with 9 [19:00:04]New connection [19:00:04]New thread 3066944868 created [19:00:04]Thread 3066801508 joined [19:00:04]Waiting for new connection... [19:00:04] Sock 9.Parse request [19:00:04]Sock 9.Check first char [19:00:04]Sock 9.First char is OK [19:00:04]request: POST /json_proto HTTP/1.0 [19:00:04]Method: POST [19:00:04]URL: /json_proto [19:00:04]Method is POST - this is cgi request [19:00:04]url: /json_proto [19:00:04]query_string will be loaded in cgi processing [19:00:04]execute_cgi json_proto POST (null) [19:00:04]execute_cgi path=json_proto method=POST [19:00:04]POST find Content-Length [19:00:04]Host: 172.17.62.5:8080 [19:00:04]Content-Length: 987 [19:00:04]Content-Type: application/json [19:00:04] [19:00:04]POST finish read [19:00:04]Found Content-Length = 987 [19:00:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191455", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 25.250, "sum" : 800.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 25.25 \u0441\u043E\u043C", "deposit" : 3000.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:00:04]execute_script... [19:00: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)191455", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 25.250, "sum" : 800.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 25.25 \u0441\u043E\u043C", "deposit" : 3000.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:00:04]POST & json_proto [19:00:04]process_json_proto [19:00:04]json parsed OK: [19:00:04]protocol is kg_v1.0 [19:00:04]action value=close_receipt [19:00:04]process_action close_receipt [19:00:04]cmd_close_receipt [19:00:04]MH_GetDate [19:00:04]Write to MH i2c: F0 00 00 28 06 1D [19:00:04]Write i2c OK [19:00:04]MH_I2C_Read... [19:00:04]Read from MH i2c: F0 [19:00:04]MH_I2C_Read... [19:00:04]Read from MH i2c: F0 09 00 [19:00:04]MH_I2C_Read... [19:00:04]Read from MH i2c: F0 09 00 28 06 00 34 62 25 66 F4 E9 65 64 ED [19:00:04]GetLastDocTimeStamp 1713725999 [19:00:04]current date 1713726004 [19:00:04]FM_GetShiftState [19:00:04]SAM_PROTO_GetShiftState [19:00:04]wFMCommunicate request_size=4 [19:00:04]MH_SAM_APDU [19:00:04]CAPDU: 80 13 01 00 [19:00:04]Write to MH i2c: E2 08 00 29 06 80 13 01 00 00 00 00 00 AC [19:00:04]Write i2c OK [19:00:04]MH_I2C_Read... [19:00:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:04]Read from MH i2c: E2 [19:00:04]MH_I2C_Read... [19:00:04]Read from MH i2c: E2 0E 00 [19:00:04]MH_I2C_Read... [19:00:04]Read from MH i2c: E2 0E 00 29 06 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 F3 [19:00:04]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [19:00:04]wFMCommunicate OK [19:00:04]SAM_PROTO_GetShiftState done [19:00:04]FM_GetShiftState done [19:00:04]opened in 1713658965 [19:00:04]opened+sec_in_day 1713745365 [19:00:04]quantity*price = 80042 [19:00:04]sum+1 = 80044 [19:00:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 800.00 Внесено: 3000.00 СДАЧА: 2200.00 НСП 1% : 7.08 НДС 12% : 85.00 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 167 21.04.2024 19:00 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 25.25 сом ФМ: 0000000000874652 ФД: 76911 ФПД: 179872737488968 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T190004&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76911&fm=179872737488968&tin=02508201610067®Number=0000000000091573&sum=80000 [19:00:05]StoreToDocumentArchive [19:00:05]shift 372 fd 76911 [19:00:05]save to /storage/0372/doc_00076911 [19:00:05]save last doc name /storage/0372/doc_00076911 to /storage/kkm_last_doc_name [19:00:05]save OK [19:00:05]Clear old archive folders... [19:00:05]ProcessDocumentItem done err = 0, tmpTLVsize=250 [19:00:05]tlvbuf is 00C669F0 [19:00:05]SAM_PROTO_ClearQueue [19:00:05]wFMCommunicate request_size=4 [19:00:05]MH_SAM_APDU [19:00:05]CAPDU: 80 09 00 00 [19:00:05]Write to MH i2c: E2 08 00 36 06 80 09 00 00 00 00 00 00 AE [19:00:05]Write i2c OK [19:00:05]MH_I2C_Read... [19:00:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:00:05]Read from MH i2c: E2 [19:00:05]MH_I2C_Read... [19:00:05]Read from MH i2c: E2 03 00 [19:00:05]MH_I2C_Read... [19:00:05]Read from MH i2c: E2 03 00 36 06 00 90 00 B0 [19:00:05]RAPDU: 90 00 [19:00:05]wFMCommunicate OK [19:00:05]SAM_PROTO_ClearQueue done [19:00:05]KKMCreateOFDPacket [19:00:05]OFDProtocolAddRootSTLVToBuf [19:00:05]FM_MakeSignedData [19:00:05]FM_MakeSignedData [19:00:05]SAM_PROTO_SignData [19:00:05]wFMCommunicate request_size=4 [19:00:05]MH_SAM_APDU [19:00:05]CAPDU: 80 0D 01 02 [19:00:05]Write to MH i2c: E2 08 00 37 06 80 0D 01 02 00 00 00 00 B6 [19:00:05]Write i2c OK [19:00:05]MH_I2C_Read... [19:00:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:00:05]Read from MH i2c: E2 [19:00:05]MH_I2C_Read... [19:00:05]Read from MH i2c: E2 03 00 [19:00:05]MH_I2C_Read... [19:00:05]Read from MH i2c: E2 03 00 37 06 00 90 00 B1 [19:00:05]RAPDU: 90 00 [19:00:05]wFMCommunicate OK [19:00:05]wFMCommunicate request_size=255 [19:00:05]MH_SAM_APDU [19:00:05]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A2 62 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AB 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 34 62 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6F 2C 01 00 35 04 06 00 A3 97 [19:00:05]Write to MH i2c: E2 02 01 38 06 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A2 62 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AB 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 34 62 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6F 2C 01 00 35 04 06 00 A3 97 00 00 5D [19:00:05]Write i2c OK [19:00:05]MH_I2C_Read... [19:00:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:00:05]Read from MH i2c: E2 [19:00:05]MH_I2C_Read... [19:00:05]Read from MH i2c: E2 03 00 [19:00:05]MH_I2C_Read... [19:00:05]Read from MH i2c: E2 03 00 38 06 00 90 00 B2 [19:00:05]RAPDU: 90 00 [19:00:05]wFMCommunicate OK [19:00:05]wFMCommunicate request_size=9 [19:00:05]MH_SAM_APDU [19:00:05]CAPDU: 80 0D 02 02 04 E2 9F 70 48 [19:00:05]Write to MH i2c: E2 0C 00 39 06 80 0D 02 02 04 00 E2 9F 70 48 00 00 FA [19:00:05]Write i2c OK [19:00:05]MH_I2C_Read... [19:00:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:00:05]Read from MH i2c: E2 [19:00:05]MH_I2C_Read... [19:00:05]Read from MH i2c: E2 03 00 [19:00:05]MH_I2C_Read... [19:00:05]Read from MH i2c: E2 03 00 39 06 00 90 00 B3 [19:00:05]RAPDU: 90 00 [19:00:05]wFMCommunicate OK [19:00:05]wFMCommunicate request_size=4 [19:00:05]MH_SAM_APDU [19:00:05]CAPDU: 80 0D 03 02 [19:00:05]Write to MH i2c: E2 08 00 3A 06 80 0D 03 02 00 00 00 00 BB [19:00:05]Write i2c OK [19:00:05]MH_I2C_Read... [19:00:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:00:05]Read from MH i2c: E2 [19:00:05]MH_I2C_Read... [19:00:05]Read from MH i2c: E2 0B 00 [19:00:05]MH_I2C_Read... [19:00:05]Read from MH i2c: E2 0B 00 3A 06 00 A9 FF C2 5A B6 5E 55 86 90 00 6F [19:00:05]RAPDU: A9 FF C2 5A B6 5E 55 86 90 00 [19:00:05]wFMCommunicate OK [19:00:05]SAM_PROTO_SignData done [19:00:05]FM_MakeSignedData done [19:00:05]CreateOFDProtocolMessage [19:00:05]wFMCommunicate request_size=4 [19:00:05]MH_SAM_APDU [19:00:05]CAPDU: 80 11 00 00 [19:00:05]Write to MH i2c: E2 08 00 3B 06 80 11 00 00 00 00 00 00 BB [19:00:05]Write i2c OK [19:00:05]MH_I2C_Read... [19:00:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:05]Read from MH i2c: E2 [19:00:05]MH_I2C_Read... [19:00:05]Read from MH i2c: E2 17 00 [19:00:05]MH_I2C_Read... [19:00:05]Read from MH i2c: E2 17 00 3B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 0E [19:00:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:00:05]wFMCommunicate OK [19:00:05]CreateOFDProtocolMessage done [19:00:05]OFDSenderStorePacket 76911 [19:00:05]StoreOFDPacket docnum=76911 [19:00:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 D3 33 06 01 B1 E6 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A2 62 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AB 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 34 62 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6F 2C 01 00 35 04 06 00 A3 97 E2 9F 70 48 A9 FF C2 5A B6 5E 55 86 [19:00:05]CheckFolder [19:00:05]dirname=/storage/ofd_packets [19:00:05]CheckFolder done [19:00:05]ProducePacketName [19:00:05]name=ofd_packets/00076911 [19:00:05]NVStorageSaveData ofd_packets/00076911 [19:00:05]File name is /storage/ofd_packets/00076911 [19:00:05]Write 300 bytes [19:00:05]NVStorageSaveData done [19:00:05]OFDSenderStorePacket done [19:00:05]KKMCreateOFDPacket done [19:00:05]NVStorageSaveData kkm_last_timestamp [19:00:05]File name is /storage/kkm_last_timestamp [19:00:05]Write 4 bytes [19:00:05]NVStorageSaveData done [19:00:05]ExternCall_PrintAddStr [19:00:05]wPrintStart [19:00:05]Write to MH i2c: 01 00 00 3C 06 42 [19:00:05]Write i2c OK [19:00:05]MH_I2C_Read... [19:00:05]Read from MH i2c: 01 [19:00:05]MH_I2C_Read... [19:00:05]Read from MH i2c: 01 07 00 [19:00:05]MH_I2C_Read... [19:00:05]Read from MH i2c: 01 07 00 3C 06 00 00 00 00 00 FF 0F 57 [19:00:05]RasterBufferAndPrint [19:00:05]line Счет N : (1)191455 [19:00:05]line ИНН: 02508201610067 [19:00:05]line Контрольно-Кассовый Чек [19:00:05]line ПРОДАЖА [19:00:05]line ТРК (МРК, ГНК) : 71 [19:00:05]line Товар: 2711190000 [19:00:05]line ГАЗ-К-5 [19:00:05]line 25.250 * 31.70 [19:00:05]line = 800.43 [19:00:05]line НДС 12% НСП 1% [19:00:05]line > о реализуемом товаре [19:00:05]line ОКРУГЛЕНИЕ: -0.43 [19:00:05]line ИТОГО: 800.00 [19:00:05]line Внесено: 3000.00 [19:00:05]line СДАЧА: 2200.00 [19:00:05]line НСП 1% : 7.08 [19:00:05]line НДС 12% : 85.00 [19:00:05]line Наличными: 800.00 [19:00:05]line Безнал.: 0.00 [19:00:05]line Место: АЗС № 106 "Партнер Нефть" [19:00:05]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [19:00:05]line СНО: Общий режим [19:00:05]line Чек 167 21.04.2024 19:00 [19:00:05]line Смена: 372 ФФД: 1.0 [19:00:05]line ЗНМ: 0300000141 [19:00:05]line РНМ: 0000000000091573 [19:00:05]line Версия ККМ: 001 [19:00:05]line [19:00:05]line Дисконтная программа [19:00:05]line СУГ [19:00:05]line номер 106 [19:00:05]line сэкономлено 25.25 сом [19:00:05]line ФМ: 0000000000874652 [19:00:05]line ФД: 76911 [19:00:05]line ФПД: 179872737488968 [19:00:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T190004&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76911&fm=179872737488968&tin=02508201610067®Number=0000000000091573&sum=80000 [19:00:06]written 0, free lines is 4095 [19:00:06]OFD Sender: Processing packet 76911 [packets to send 129, broken 128] [19:00:06]ProducePacketName [19:00:06]name=ofd_packets/00076911 [19:00:06]OFD Sender: To server: pG, [19:00:06]CommunicateWithHost lk.salyk.kg:30040 [19:00:06]ConnectInit lk.salyk.kg [19:00:06]Connected sock=10 [19:00:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 D3 33 06 01 B1 E6 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A2 62 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AB 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 34 62 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6F 2C 01 00 35 04 06 00 A3 97 E2 9F 70 48 A9 FF C2 5A B6 5E 55 86 [19:00:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 5F 0C 47 00 23 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6F 2C 01 00 F4 03 04 00 B9 09 25 66 B6 04 01 00 00 B4 B7 84 1B 7B 70 F0 6F [19:00:06]CommunicateWithHost err = 0 [19:00:06]CheckOFDResponse [19:00:06]1017 (14) - 77093643461234 [19:00:06]1041 (16) - 0000000000874652 [19:00:06]1040 (4) - 76911 [19:00:06]1012 (4) - 21.04.2024 12:42 [19:00:06]1206 (1) - 0 [19:00:06]OFD Sender: Remove packet 76911 [19:00:06]ProducePacketName [19:00:06]name=ofd_packets/00076911 [19:00:06]NVStorageDeleteData [19:00:06]Write to MH i2c: 01 00 00 6B 06 71 [19:00:06]Write i2c OK [19:00:06]MH_I2C_Read... [19:00:06]Read from MH i2c: 01 [19:00:06]MH_I2C_Read... [19:00:06]Read from MH i2c: 01 07 00 [19:00:06]MH_I2C_Read... [19:00:06]Read from MH i2c: 01 07 00 6B 06 00 00 00 00 00 A1 0C 25 [19:00:06]RasterBufferAndPrint [19:00:06]line [19:00:06]line [19:00:06]line [19:00:06]line [19:00:06]line [19:00:06]written 0, free lines is 3242 [19:00:06]MH_Cut [19:00:06]Write to MH i2c: D1 01 00 72 06 01 4A [19:00:06]Write i2c OK [19:00:06]MH_I2C_Read... [19:00:06]Read from MH i2c: D1 [19:00:06]MH_I2C_Read... [19:00:06]Read from MH i2c: D1 01 00 [19:00:06]MH_I2C_Read... [19:00:06]Read from MH i2c: D1 01 00 72 06 00 49 [19:00:06]Write to MH i2c: 01 00 00 73 06 79 [19:00:06]Write i2c OK [19:00:06]MH_I2C_Read... [19:00:06]OFD Sender: No OFD packet to send [19:00:07]*** Cut start [19:00:07]*** Partial cut [19:00:07]*** CUTSNS_PIN = 1 [19:00:07]*** CUTSNS_PIN = 0 [19:00:07]*** Brake cut motor [19:00:07]Read from MH i2c: 01 [19:00:07]MH_I2C_Read... [19:00:07]*** Stop cut motor [19:00:07]*** Cut end [19:00:07]Read from MH i2c: 01 07 00 [19:00:07]MH_I2C_Read... [19:00:07]Read from MH i2c: 01 07 00 73 06 00 00 00 00 00 FF 0F 8E [19:00:07]process_action close_receipt done [19:00:07]requested_data is exist [19:00:07]produce_requested_data [19:00:07]requested_item fm.sn is exist - process it [19:00:07]wFMCommunicate request_size=4 [19:00:07]MH_SAM_APDU [19:00:07]CAPDU: 80 11 00 00 [19:00:07]Write to MH i2c: E2 08 00 74 06 80 11 00 00 00 00 00 00 F4 [19:00:07]Write i2c OK [19:00:07]MH_I2C_Read... [19:00:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:08]Read from MH i2c: E2 [19:00:08]MH_I2C_Read... [19:00:08]Read from MH i2c: E2 17 00 [19:00:08]MH_I2C_Read... [19:00:08]Read from MH i2c: E2 17 00 74 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 47 [19:00:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:00:08]wFMCommunicate OK [19:00:08]requested_item fd.num is exist - process it [19:00:08]SAM_PROTO_GetFieldsCounters [19:00:08]wFMCommunicate request_size=4 [19:00:08]MH_SAM_APDU [19:00:08]CAPDU: 80 13 00 00 [19:00:08]Write to MH i2c: E2 08 00 75 06 80 13 00 00 00 00 00 00 F7 [19:00:08]Write i2c OK [19:00:08]MH_I2C_Read... [19:00:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:00:08]Read from MH i2c: E2 [19:00:08]MH_I2C_Read... [19:00:08]Read from MH i2c: E2 62 00 [19:00:08]MH_I2C_Read... [19:00:08]Read from MH i2c: E2 62 00 75 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 6F 2C 01 00 0E 04 04 00 74 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 1E [19: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 6F 2C 01 00 0E 04 04 00 74 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 [19:00:08]wFMCommunicate OK [19:00:08]SAM_PROTO_GetFieldsCounters done [19:00:08]requested_item shift.num is exist - process it [19:00:08]requested_item shift.opened is exist - process it [19:00:08]req_shift_opened [19:00:08]FM_GetShiftState [19:00:08]SAM_PROTO_GetShiftState [19:00:08]wFMCommunicate request_size=4 [19:00:08]MH_SAM_APDU [19:00:08]CAPDU: 80 13 01 00 [19:00:08]Write to MH i2c: E2 08 00 76 06 80 13 01 00 00 00 00 00 F9 [19:00:08]Write i2c OK [19:00:08]MH_I2C_Read... [19:00:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:08]Read from MH i2c: E2 [19:00:08]MH_I2C_Read... [19:00:08]Read from MH i2c: E2 0E 00 [19:00:08]MH_I2C_Read... [19:00:08]Read from MH i2c: E2 0E 00 76 06 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 40 [19:00:08]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [19:00:08]wFMCommunicate OK [19:00:08]SAM_PROTO_GetShiftState done [19:00:08]FM_GetShiftState done [19:00:08]req_shift_opened done [19:00:08]requested_item shift.open_date is exist - process it [19:00:08]req_shift_open_date [19:00:08]req_shift_open_date done [19:00:08]produce_requested_data done [19:00:08]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76911,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [19:00:08]process_action_free close_receipt [19:00:08]json_value_free [19:00:08]json_value_free done [19:00:08]process_json_proto returns [19:00:08]Send response to host [19:00:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76911,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [19:00:08]free response buf [19:00:08]execute_script done [19:00:08]execute_script returns [19:00:08]free content buf [19:00:08]Sock 9.Close socket [19:00:08]Sock 9.Thread stoped [19:00:11]OFD Sender: No OFD packet to send [19:00:12]accept exits with 8 [19:00:12]New connection [19:00:12]New thread 3066801508 created [19:00:12]Thread 3066944868 joined [19:00:12]Waiting for new connection... [19:00:12] Sock 8.Parse request [19:00:12]Sock 8.Check first char [19:00:12]Sock 8.First char is OK [19:00:12]request: POST /json_proto HTTP/1.0 [19:00:12]Method: POST [19:00:12]URL: /json_proto [19:00:12]Method is POST - this is cgi request [19:00:12]url: /json_proto [19:00:12]query_string will be loaded in cgi processing [19:00:12]execute_cgi json_proto POST (null) [19:00:12]execute_cgi path=json_proto method=POST [19:00:12]POST find Content-Length [19:00:12]Host: 172.17.62.5:8080 [19:00:12]Content-Length: 1154 [19:00:12]Content-Type: application/json [19:00:12] [19:00:12]POST finish read [19:00:12]Found Content-Length = 1154 [19:00:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041B\u044B\u043C\u0430\u0440\u0435\u0432\u0430 \u0412. \u000A\u0421\u0447\u0435\u0442 N : (1)191456\u000A21.04.2024 18:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\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\u041A \u0413\u041F\u041D\u0410 Online\u000A30103446\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:00:12]execute_script... [19:00:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041B\u044B\u043C\u0430\u0440\u0435\u0432\u0430 \u0412. \u000A\u0421\u0447\u0435\u0442 N : (1)191456\u000A21.04.2024 18:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\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\u041A \u0413\u041F\u041D\u0410 Online\u000A30103446\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:00:12]POST & json_proto [19:00:12]process_json_proto [19:00:12]json parsed OK: [19:00:12]protocol is kg_v1.0 [19:00:12]action value=print_text [19:00:12]process_action print_text [19:00:12]cmd_print_text [19:00:12]ExternCall_PrintAddStr [19:00:12]wPrintStart [19:00:12]Write to MH i2c: 01 00 00 77 06 7D [19:00:12]Write i2c OK [19:00:12]MH_I2C_Read... [19:00:12]Read from MH i2c: 01 [19:00:12]MH_I2C_Read... [19:00:12]Read from MH i2c: 01 07 00 [19:00:12]MH_I2C_Read... [19:00:12]Read from MH i2c: 01 07 00 77 06 00 00 00 00 00 FF 0F 92 [19:00:12]RasterBufferAndPrint [19:00:12]line *****ТОВАРНЫЙ ЧЕК***** [19:00:12]line АЗС 106 [19:00:12]line Партнер нефть [19:00:12]line 02508201610067 [19:00:12]line Кассир : Лымарева В. [19:00:12]line Счет N : (1)191456 [19:00:12]line 21.04.2024 18:41 [19:00:12]line ПРОДАЖА [19:00:12]line ТРК (МРК, ГНК): 61 [19:00:12]line Вид ГСМ : 2710194210 [19:00:12]line ДТ-К-5 [19:00:12]line 30.000 x 72.90 [19:00:12]line ИТОГ: 2187.00 [19:00:12]line Тип оплаты: Талоны: ТК ГПНА Online [19:00:12]line 30103446 [19:00:12]line ______________________ [19:00:12]line (подпись) [19:00:12]written 0, free lines is 4095 [19:00:13]Write to MH i2c: 01 00 00 8B 06 91 [19:00:13]Write i2c OK [19:00:13]MH_I2C_Read... [19:00:13]Read from MH i2c: 01 [19:00:13]MH_I2C_Read... [19:00:13]Read from MH i2c: 01 07 00 [19:00:13]MH_I2C_Read... [19:00:13]Read from MH i2c: 01 07 00 8B 06 00 00 00 00 00 0E 0E B4 [19:00:13]RasterBufferAndPrint [19:00:13]line [19:00:13]line [19:00:13]line [19:00:13]line [19:00:13]line [19:00:13]written 0, free lines is 3601 [19:00:13]MH_Cut [19:00:13]Write to MH i2c: D1 01 00 92 06 01 6A [19:00:13]Write i2c OK [19:00:13]MH_I2C_Read... [19:00:13]Read from MH i2c: D1 [19:00:13]MH_I2C_Read... [19:00:13]Read from MH i2c: D1 01 00 [19:00:13]MH_I2C_Read... [19:00:13]Read from MH i2c: D1 01 00 92 06 00 69 [19:00:13]Write to MH i2c: 01 00 00 93 06 99 [19:00:13]Write i2c OK [19:00:13]MH_I2C_Read... [19:00:13]*** Cut start [19:00:13]*** Partial cut [19:00:13]*** CUTSNS_PIN = 1 [19:00:13]*** CUTSNS_PIN = 0 [19:00:13]*** Brake cut motor [19:00:14]Read from MH i2c: 01 [19:00:14]MH_I2C_Read... [19:00:14]*** Stop cut motor [19:00:14]*** Cut end [19:00:14]Read from MH i2c: 01 07 00 [19:00:14]MH_I2C_Read... [19:00:14]Read from MH i2c: 01 07 00 93 06 00 00 00 00 00 FF 0F AE [19:00:14]process_action print_text done [19:00:14]requested_data is exist [19:00:14]produce_requested_data [19:00:14]requested_item fm.sn is exist - process it [19:00:14]wFMCommunicate request_size=4 [19:00:14]MH_SAM_APDU [19:00:14]CAPDU: 80 11 00 00 [19:00:14]Write to MH i2c: E2 08 00 94 06 80 11 00 00 00 00 00 00 14 [19:00:14]Write i2c OK [19:00:14]MH_I2C_Read... [19:00:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:14]Read from MH i2c: E2 [19:00:14]MH_I2C_Read... [19:00:14]Read from MH i2c: E2 17 00 [19:00:14]MH_I2C_Read... [19:00:14]Read from MH i2c: E2 17 00 94 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 67 [19:00:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:00:14]wFMCommunicate OK [19:00:14]requested_item fd.num is exist - process it [19:00:14]SAM_PROTO_GetFieldsCounters [19:00:14]wFMCommunicate request_size=4 [19:00:14]MH_SAM_APDU [19:00:14]CAPDU: 80 13 00 00 [19:00:14]Write to MH i2c: E2 08 00 95 06 80 13 00 00 00 00 00 00 17 [19:00:14]Write i2c OK [19:00:14]MH_I2C_Read... [19:00:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:00:14]Read from MH i2c: E2 [19:00:14]MH_I2C_Read... [19:00:14]Read from MH i2c: E2 62 00 [19:00:14]MH_I2C_Read... [19:00:14]Read from MH i2c: E2 62 00 95 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 6F 2C 01 00 0E 04 04 00 74 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 3E [19:00: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 6F 2C 01 00 0E 04 04 00 74 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 [19:00:14]wFMCommunicate OK [19:00:14]SAM_PROTO_GetFieldsCounters done [19:00:14]requested_item shift.num is exist - process it [19:00:14]requested_item shift.opened is exist - process it [19:00:14]req_shift_opened [19:00:14]FM_GetShiftState [19:00:14]SAM_PROTO_GetShiftState [19:00:14]wFMCommunicate request_size=4 [19:00:14]MH_SAM_APDU [19:00:14]CAPDU: 80 13 01 00 [19:00:14]Write to MH i2c: E2 08 00 96 06 80 13 01 00 00 00 00 00 19 [19:00:14]Write i2c OK [19:00:14]MH_I2C_Read... [19:00:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:14]Read from MH i2c: E2 [19:00:14]MH_I2C_Read... [19:00:14]Read from MH i2c: E2 0E 00 [19:00:14]MH_I2C_Read... [19:00:14]Read from MH i2c: E2 0E 00 96 06 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 60 [19:00:14]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [19:00:14]wFMCommunicate OK [19:00:14]SAM_PROTO_GetShiftState done [19:00:14]FM_GetShiftState done [19:00:14]req_shift_opened done [19:00:14]requested_item shift.open_date is exist - process it [19:00:14]req_shift_open_date [19:00:14]req_shift_open_date done [19:00:14]produce_requested_data done [19:00:14]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76911,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [19:00:14]process_action_free print_text [19:00:14]json_value_free [19:00:14]json_value_free done [19:00:14]process_json_proto returns [19:00:14]Send response to host [19:00:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76911,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [19:00:14]free response buf [19:00:14]execute_script done [19:00:14]execute_script returns [19:00:14]free content buf [19:00:14]Sock 8.Close socket [19:00:14]Sock 8.Thread stoped [19:00:16]OFD Sender: No OFD packet to send [19:00:21]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:07]OFD Sender: No OFD packet to send [19:01:12]OFD Sender: No OFD packet to send [19:01:17]OFD Sender: No OFD packet to send [19:01:22]OFD Sender: No OFD packet to send [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:40]accept exits with 9 [19:01:40]New connection [19:01:40]New thread 3066944868 created [19:01:40]Thread 3066801508 joined [19:01:40]Waiting for new connection... [19:01:40] Sock 9.Parse request [19:01:40]Sock 9.Check first char [19:01:40]Sock 9.First char is OK [19:01:40]request: POST /json_proto HTTP/1.0 [19:01:40]Method: POST [19:01:40]URL: /json_proto [19:01:40]Method is POST - this is cgi request [19:01:40]url: /json_proto [19:01:40]query_string will be loaded in cgi processing [19:01:40]execute_cgi json_proto POST (null) [19:01:40]execute_cgi path=json_proto method=POST [19:01:40]POST find Content-Length [19:01:40]Host: 172.17.62.5:8080 [19:01:40]Content-Length: 677 [19:01:40]Content-Type: application/json [19:01:40] [19:01:40]POST finish read [19:01:40]Found Content-Length = 677 [19:01:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191458", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:01:40]execute_script... [19:01: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)191458", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:01:40]POST & json_proto [19:01:40]process_json_proto [19:01:40]json parsed OK: [19:01:40]protocol is kg_v1.0 [19:01:40]action value=close_receipt [19:01:40]process_action close_receipt [19:01:40]cmd_close_receipt [19:01:40]MH_GetDate [19:01:40]Write to MH i2c: F0 00 00 97 06 8C [19:01:40]Write i2c OK [19:01:40]MH_I2C_Read... [19:01:40]Read from MH i2c: F0 [19:01:40]MH_I2C_Read... [19:01:40]Read from MH i2c: F0 09 00 [19:01:40]MH_I2C_Read... [19:01:40]Read from MH i2c: F0 09 00 97 06 00 95 62 25 66 F4 E9 65 64 BD [19:01:40]GetLastDocTimeStamp 1713726004 [19:01:40]current date 1713726101 [19:01:40]FM_GetShiftState [19:01:40]SAM_PROTO_GetShiftState [19:01:40]wFMCommunicate request_size=4 [19:01:40]MH_SAM_APDU [19:01:40]CAPDU: 80 13 01 00 [19:01:40]Write to MH i2c: E2 08 00 98 06 80 13 01 00 00 00 00 00 1B [19:01:40]Write i2c OK [19:01:40]MH_I2C_Read... [19:01:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:40]Read from MH i2c: E2 [19:01:40]MH_I2C_Read... [19:01:40]Read from MH i2c: E2 0E 00 [19:01:40]MH_I2C_Read... [19:01:40]Read from MH i2c: E2 0E 00 98 06 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 62 [19:01:40]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [19:01:40]wFMCommunicate OK [19:01:40]SAM_PROTO_GetShiftState done [19:01:40]FM_GetShiftState done [19:01:40]opened in 1713658965 [19:01:40]opened+sec_in_day 1713745365 [19:01:40]quantity*price = 50038 [19:01:40]sum+1 = 50040 [19:01:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 168 21.04.2024 19:01 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76912 ФПД: 100402811446382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T190141&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76912&fm=100402811446382&tin=02508201610067®Number=0000000000091573&sum=50000 [19:01:41]StoreToDocumentArchive [19:01:41]shift 372 fd 76912 [19:01:41]save to /storage/0372/doc_00076912 [19:01:41]save last doc name /storage/0372/doc_00076912 to /storage/kkm_last_doc_name [19:01:41]save OK [19:01:41]Clear old archive folders... [19:01:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:01:41]tlvbuf is 00C67160 [19:01:41]SAM_PROTO_ClearQueue [19:01:41]wFMCommunicate request_size=4 [19:01:41]MH_SAM_APDU [19:01:41]CAPDU: 80 09 00 00 [19:01:41]Write to MH i2c: E2 08 00 A5 06 80 09 00 00 00 00 00 00 1D [19:01:41]Write i2c OK [19:01:41]MH_I2C_Read... [19:01:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:01:42]Read from MH i2c: E2 [19:01:42]MH_I2C_Read... [19:01:42]Read from MH i2c: E2 03 00 [19:01:42]MH_I2C_Read... [19:01:42]Read from MH i2c: E2 03 00 A5 06 00 90 00 1F [19:01:42]RAPDU: 90 00 [19:01:42]wFMCommunicate OK [19:01:42]SAM_PROTO_ClearQueue done [19:01:42]KKMCreateOFDPacket [19:01:42]OFDProtocolAddRootSTLVToBuf [19:01:42]FM_MakeSignedData [19:01:42]FM_MakeSignedData [19:01:42]SAM_PROTO_SignData [19:01:42]wFMCommunicate request_size=4 [19:01:42]MH_SAM_APDU [19:01:42]CAPDU: 80 0D 01 02 [19:01:42]Write to MH i2c: E2 08 00 A6 06 80 0D 01 02 00 00 00 00 25 [19:01:42]Write i2c OK [19:01:42]MH_I2C_Read... [19:01:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:01:42]Read from MH i2c: E2 [19:01:42]MH_I2C_Read... [19:01:42]Read from MH i2c: E2 03 00 [19:01:42]MH_I2C_Read... [19:01:42]Read from MH i2c: E2 03 00 A6 06 00 90 00 20 [19:01:42]RAPDU: 90 00 [19:01:42]wFMCommunicate OK [19:01:42]wFMCommunicate request_size=255 [19:01:42]MH_SAM_APDU [19:01: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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 95 62 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 70 2C 01 00 35 04 06 00 5B [19:01:42]Write to MH i2c: E2 02 01 A7 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 95 62 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 70 2C 01 00 35 04 06 00 5B 00 00 71 [19:01:42]Write i2c OK [19:01:42]MH_I2C_Read... [19:01:42]OFD Sender: No OFD packet to send [19:01:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:42]Read from MH i2c: E2 [19:01:42]MH_I2C_Read... [19:01:42]Read from MH i2c: E2 03 00 [19:01:42]MH_I2C_Read... [19:01:42]Read from MH i2c: E2 03 00 A7 06 00 90 00 21 [19:01:42]RAPDU: 90 00 [19:01:42]wFMCommunicate OK [19:01:42]wFMCommunicate request_size=10 [19:01:42]MH_SAM_APDU [19:01:42]CAPDU: 80 0D 02 02 05 50 D9 E9 24 6E [19:01:42]Write to MH i2c: E2 0D 00 A8 06 80 0D 02 02 05 00 50 D9 E9 24 6E 00 00 D6 [19:01:42]Write i2c OK [19:01:42]MH_I2C_Read... [19:01:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:42]Read from MH i2c: E2 [19:01:42]MH_I2C_Read... [19:01:42]Read from MH i2c: E2 03 00 [19:01:42]MH_I2C_Read... [19:01:42]Read from MH i2c: E2 03 00 A8 06 00 90 00 22 [19:01:42]RAPDU: 90 00 [19:01:42]wFMCommunicate OK [19:01:42]wFMCommunicate request_size=4 [19:01:42]MH_SAM_APDU [19:01:42]CAPDU: 80 0D 03 02 [19:01:42]Write to MH i2c: E2 08 00 A9 06 80 0D 03 02 00 00 00 00 2A [19:01:42]Write i2c OK [19:01:42]MH_I2C_Read... [19:01:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:01:42]Read from MH i2c: E2 [19:01:42]MH_I2C_Read... [19:01:42]Read from MH i2c: E2 0B 00 [19:01:42]MH_I2C_Read... [19:01:42]Read from MH i2c: E2 0B 00 A9 06 00 3B 71 6A 54 2E EC 15 65 90 00 29 [19:01:42]RAPDU: 3B 71 6A 54 2E EC 15 65 90 00 [19:01:42]wFMCommunicate OK [19:01:42]SAM_PROTO_SignData done [19:01:42]FM_MakeSignedData done [19:01:42]CreateOFDProtocolMessage [19:01:42]wFMCommunicate request_size=4 [19:01:42]MH_SAM_APDU [19:01:42]CAPDU: 80 11 00 00 [19:01:42]Write to MH i2c: E2 08 00 AA 06 80 11 00 00 00 00 00 00 2A [19:01:42]Write i2c OK [19:01:42]MH_I2C_Read... [19:01:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:42]Read from MH i2c: E2 [19:01:42]MH_I2C_Read... [19:01:42]Read from MH i2c: E2 17 00 [19:01:42]MH_I2C_Read... [19:01:42]Read from MH i2c: E2 17 00 AA 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 7D [19:01:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:01:42]wFMCommunicate OK [19:01:42]CreateOFDProtocolMessage done [19:01:42]OFDSenderStorePacket 76912 [19:01:42]StoreOFDPacket docnum=76912 [19:01:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 AF E7 07 01 8B 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 95 62 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 70 2C 01 00 35 04 06 00 5B 50 D9 E9 24 6E 3B 71 6A 54 2E EC 15 65 [19:01:42]CheckFolder [19:01:42]dirname=/storage/ofd_packets [19:01:42]CheckFolder done [19:01:42]ProducePacketName [19:01:42]name=ofd_packets/00076912 [19:01:42]NVStorageSaveData ofd_packets/00076912 [19:01:42]File name is /storage/ofd_packets/00076912 [19:01:42]Write 301 bytes [19:01:42]NVStorageSaveData done [19:01:42]OFDSenderStorePacket done [19:01:42]KKMCreateOFDPacket done [19:01:42]NVStorageSaveData kkm_last_timestamp [19:01:42]File name is /storage/kkm_last_timestamp [19:01:42]Write 4 bytes [19:01:42]NVStorageSaveData done [19:01:42]ExternCall_PrintAddStr [19:01:42]wPrintStart [19:01:42]Write to MH i2c: 01 00 00 AB 06 B1 [19:01:42]Write i2c OK [19:01:42]MH_I2C_Read... [19:01:42]Read from MH i2c: 01 [19:01:42]MH_I2C_Read... [19:01:42]Read from MH i2c: 01 07 00 [19:01:42]MH_I2C_Read... [19:01:42]Read from MH i2c: 01 07 00 AB 06 00 00 00 00 00 FF 0F C6 [19:01:42]RasterBufferAndPrint [19:01:42]line Счет N : (1)191458 [19:01:42]line ИНН: 02508201610067 [19:01:42]line Контрольно-Кассовый Чек [19:01:42]line ПРОДАЖА [19:01:42]line ТРК (МРК, ГНК) : 43 [19:01:42]line Товар: 2710124130 [19:01:42]line Аи-92-К-5 [19:01:42]line 7.770 * 64.40 [19:01:42]line = 500.39 [19:01:42]line НДС 12% НСП 1% [19:01:42]line > о реализуемом товаре [19:01:42]line ОКРУГЛЕНИЕ: -0.39 [19:01:42]line ИТОГО: 500.00 [19:01:42]line Внесено: 500.00 [19:01:42]line СДАЧА: 0.00 [19:01:42]line НСП 1% : 4.43 [19:01:42]line НДС 12% : 53.14 [19:01:42]line Наличными: 500.00 [19:01:42]line Безнал.: 0.00 [19:01:42]line Место: АЗС № 106 "Партнер Нефть" [19:01:42]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [19:01:42]line СНО: Общий режим [19:01:42]line Чек 168 21.04.2024 19:01 [19:01:42]line Смена: 372 ФФД: 1.0 [19:01:42]line ЗНМ: 0300000141 [19:01:42]line РНМ: 0000000000091573 [19:01:42]line Версия ККМ: 001 [19:01:42]line ФМ: 0000000000874652 [19:01:42]line ФД: 76912 [19:01:42]line ФПД: 100402811446382 [19:01:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T190141&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76912&fm=100402811446382&tin=02508201610067®Number=0000000000091573&sum=50000 [19:01:42]OFD Sender: Processing packet 76912 [packets to send 129, broken 128] [19:01:42]ProducePacketName [19:01:42]name=ofd_packets/00076912 [19:01:42]OFD Sender: To server: pG, [19:01:42]CommunicateWithHost lk.salyk.kg:30040 [19:01:42]ConnectInit lk.salyk.kg [19:01:42]written 0, free lines is 4095 [19:01:42]Connected sock=10 [19:01:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 AF E7 07 01 8B 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 95 62 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 70 2C 01 00 35 04 06 00 5B 50 D9 E9 24 6E 3B 71 6A 54 2E EC 15 65 [19:01:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 51 B9 47 00 63 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 70 2C 01 00 F4 03 04 00 1A 0A 25 66 B6 04 01 00 00 05 17 D2 68 B5 F8 49 30 [19:01:43]CommunicateWithHost err = 0 [19:01:43]CheckOFDResponse [19:01:43]1017 (14) - 77093643461234 [19:01:43]1041 (16) - 0000000000874652 [19:01:43]1040 (4) - 76912 [19:01:43]1012 (4) - 21.04.2024 12:44 [19:01:43]1206 (1) - 0 [19:01:43]OFD Sender: Remove packet 76912 [19:01:43]ProducePacketName [19:01:43]name=ofd_packets/00076912 [19:01:43]NVStorageDeleteData [19:01:43]Write to MH i2c: 01 00 00 D5 06 DB [19:01:43]Write i2c OK [19:01:43]MH_I2C_Read... [19:01:43]Read from MH i2c: 01 [19:01:43]MH_I2C_Read... [19:01:43]Read from MH i2c: 01 07 00 [19:01:43]MH_I2C_Read... [19:01:43]Read from MH i2c: 01 07 00 D5 06 00 00 00 00 00 EE 0C DC [19:01:43]RasterBufferAndPrint [19:01:43]line [19:01:43]line [19:01:43]line [19:01:43]line [19:01:43]line [19:01:43]written 0, free lines is 3317 [19:01:43]MH_Cut [19:01:43]Write to MH i2c: D1 01 00 DC 06 01 B4 [19:01:43]Write i2c OK [19:01:43]MH_I2C_Read... [19:01:43]Read from MH i2c: D1 [19:01:43]MH_I2C_Read... [19:01:43]Read from MH i2c: D1 01 00 [19:01:43]MH_I2C_Read... [19:01:43]Read from MH i2c: D1 01 00 DC 06 00 B3 [19:01:43]Write to MH i2c: 01 00 00 DD 06 E3 [19:01:43]Write i2c OK [19:01:43]MH_I2C_Read... [19:01:43]OFD Sender: No OFD packet to send [19:01:44]*** Cut start [19:01:44]*** Partial cut [19:01:44]*** CUTSNS_PIN = 1 [19:01:44]*** CUTSNS_PIN = 0 [19:01:44]*** Brake cut motor [19:01:44]Read from MH i2c: 01 [19:01:44]MH_I2C_Read... [19:01:44]*** Stop cut motor [19:01:44]*** Cut end [19:01:44]Read from MH i2c: 01 07 00 [19:01:44]MH_I2C_Read... [19:01:44]Read from MH i2c: 01 07 00 DD 06 00 00 00 00 00 FF 0F F8 [19:01:44]process_action close_receipt done [19:01:44]requested_data is exist [19:01:44]produce_requested_data [19:01:44]requested_item fm.sn is exist - process it [19:01:44]wFMCommunicate request_size=4 [19:01:44]MH_SAM_APDU [19:01:44]CAPDU: 80 11 00 00 [19:01:44]Write to MH i2c: E2 08 00 DE 06 80 11 00 00 00 00 00 00 5E [19:01:44]Write i2c OK [19:01:44]MH_I2C_Read... [19:01:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:44]Read from MH i2c: E2 [19:01:44]MH_I2C_Read... [19:01:44]Read from MH i2c: E2 17 00 [19:01:44]MH_I2C_Read... [19:01:44]Read from MH i2c: E2 17 00 DE 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 B1 [19:01:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:01:44]wFMCommunicate OK [19:01:44]requested_item fd.num is exist - process it [19:01:44]SAM_PROTO_GetFieldsCounters [19:01:44]wFMCommunicate request_size=4 [19:01:44]MH_SAM_APDU [19:01:44]CAPDU: 80 13 00 00 [19:01:44]Write to MH i2c: E2 08 00 DF 06 80 13 00 00 00 00 00 00 61 [19:01:44]Write i2c OK [19:01:44]MH_I2C_Read... [19:01:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:01:44]Read from MH i2c: E2 [19:01:44]MH_I2C_Read... [19:01:44]Read from MH i2c: E2 62 00 [19:01:44]MH_I2C_Read... [19:01:44]Read from MH i2c: E2 62 00 DF 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 70 2C 01 00 0E 04 04 00 74 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 8C [19:01: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 70 2C 01 00 0E 04 04 00 74 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 [19:01:44]wFMCommunicate OK [19:01:44]SAM_PROTO_GetFieldsCounters done [19:01:44]requested_item shift.num is exist - process it [19:01:44]requested_item shift.opened is exist - process it [19:01:44]req_shift_opened [19:01:44]FM_GetShiftState [19:01:44]SAM_PROTO_GetShiftState [19:01:44]wFMCommunicate request_size=4 [19:01:44]MH_SAM_APDU [19:01:44]CAPDU: 80 13 01 00 [19:01:44]Write to MH i2c: E2 08 00 E0 06 80 13 01 00 00 00 00 00 63 [19:01:44]Write i2c OK [19:01:44]MH_I2C_Read... [19:01:44]Read from MH i2c: E2 [19:01:44]MH_I2C_Read... [19:01:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:44]Read from MH i2c: E2 0E 00 [19:01:44]MH_I2C_Read... [19:01:44]Read from MH i2c: E2 0E 00 E0 06 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 AA [19:01:44]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [19:01:44]wFMCommunicate OK [19:01:44]SAM_PROTO_GetShiftState done [19:01:44]FM_GetShiftState done [19:01:44]req_shift_opened done [19:01:44]requested_item shift.open_date is exist - process it [19:01:44]req_shift_open_date [19:01:44]req_shift_open_date done [19:01:44]produce_requested_data done [19:01:44]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76912,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [19:01:44]process_action_free close_receipt [19:01:44]json_value_free [19:01:44]json_value_free done [19:01:44]process_json_proto returns [19:01:44]Send response to host [19:01:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76912,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [19:01:44]free response buf [19:01:44]execute_script done [19:01:44]execute_script returns [19:01:44]free content buf [19:01:44]Sock 9.Close socket [19:01:44]Sock 9.Thread stoped [19:01:48]OFD Sender: No OFD packet to send [19:01:53]OFD Sender: No OFD packet to send [19:01:58]OFD Sender: No OFD packet to send [19:02:03]OFD Sender: No OFD packet to send [19:02:08]OFD Sender: No OFD packet to send [19:02:13]OFD Sender: No OFD packet to send [19:02:18]OFD Sender: No OFD packet to send [19:02:23]OFD Sender: No OFD packet to send [19:02:24]accept exits with 8 [19:02:24]New connection [19:02:24]New thread 3066801508 created [19:02:24]Thread 3066944868 joined [19:02:24]Waiting for new connection... [19:02:24] Sock 8.Parse request [19:02:24]Sock 8.Check first char [19:02:24]Sock 8.First char is OK [19:02:24]request: POST /json_proto HTTP/1.0 [19:02:24]Method: POST [19:02:24]URL: /json_proto [19:02:24]Method is POST - this is cgi request [19:02:24]url: /json_proto [19:02:24]query_string will be loaded in cgi processing [19:02:24]execute_cgi json_proto POST (null) [19:02:24]execute_cgi path=json_proto method=POST [19:02:24]POST find Content-Length [19:02:24]Host: 172.17.62.5:8080 [19:02:24]Content-Length: 819 [19:02:24]Content-Type: application/json [19:02:24] [19:02:24]POST finish read [19:02:24]Found Content-Length = 819 [19:02:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191459", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.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" : 1000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:24]execute_script... [19:02: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)191459", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.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" : 1000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:24]POST & json_proto [19:02:24]process_json_proto [19:02:24]json parsed OK: [19:02:24]protocol is kg_v1.0 [19:02:24]action value=close_receipt [19:02:24]process_action close_receipt [19:02:24]cmd_close_receipt [19:02:24]MH_GetDate [19:02:24]Write to MH i2c: F0 00 00 E1 06 D6 [19:02:24]Write i2c OK [19:02:24]MH_I2C_Read... [19:02:24]Read from MH i2c: F0 [19:02:24]MH_I2C_Read... [19:02:24]Read from MH i2c: F0 09 00 [19:02:24]MH_I2C_Read... [19:02:24]Read from MH i2c: F0 09 00 E1 06 00 C1 62 25 66 F4 E9 65 64 33 [19:02:24]GetLastDocTimeStamp 1713726101 [19:02:24]current date 1713726145 [19:02:24]FM_GetShiftState [19:02:24]SAM_PROTO_GetShiftState [19:02:24]wFMCommunicate request_size=4 [19:02:24]MH_SAM_APDU [19:02:24]CAPDU: 80 13 01 00 [19:02:24]Write to MH i2c: E2 08 00 E2 06 80 13 01 00 00 00 00 00 65 [19:02:24]Write i2c OK [19:02:24]MH_I2C_Read... [19:02:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:24]Read from MH i2c: E2 [19:02:24]MH_I2C_Read... [19:02:24]Read from MH i2c: E2 0E 00 [19:02:24]MH_I2C_Read... [19:02:24]Read from MH i2c: E2 0E 00 E2 06 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 AC [19:02:24]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [19:02:24]wFMCommunicate OK [19:02:24]SAM_PROTO_GetShiftState done [19:02:24]FM_GetShiftState done [19:02:24]opened in 1713658965 [19:02:24]opened+sec_in_day 1713745365 [19:02:24]quantity*price = 100013 [19:02:24]sum+1 = 100014 [19:02:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.13 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.13 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 169 21.04.2024 19:02 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 76913 ФПД: 135102027528296 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T190225&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76913&fm=135102027528296&tin=02508201610067®Number=0000000000091573&sum=100013 [19:02:25]StoreToDocumentArchive [19:02:25]shift 372 fd 76913 [19:02:25]save to /storage/0372/doc_00076913 [19:02:25]save last doc name /storage/0372/doc_00076913 to /storage/kkm_last_doc_name [19:02:25]save OK [19:02:25]Clear old archive folders... [19:02:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:02:25]tlvbuf is 00C9EC10 [19:02:25]SAM_PROTO_ClearQueue [19:02:25]wFMCommunicate request_size=4 [19:02:25]MH_SAM_APDU [19:02:25]CAPDU: 80 09 00 00 [19:02:25]Write to MH i2c: E2 08 00 EF 06 80 09 00 00 00 00 00 00 67 [19:02:25]Write i2c OK [19:02:25]MH_I2C_Read... [19:02:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:02:25]Read from MH i2c: E2 [19:02:25]MH_I2C_Read... [19:02:25]Read from MH i2c: E2 03 00 [19:02:25]MH_I2C_Read... [19:02:25]Read from MH i2c: E2 03 00 EF 06 00 90 00 69 [19:02:25]RAPDU: 90 00 [19:02:25]wFMCommunicate OK [19:02:25]SAM_PROTO_ClearQueue done [19:02:25]KKMCreateOFDPacket [19:02:25]OFDProtocolAddRootSTLVToBuf [19:02:25]FM_MakeSignedData [19:02:25]FM_MakeSignedData [19:02:25]SAM_PROTO_SignData [19:02:25]wFMCommunicate request_size=4 [19:02:25]MH_SAM_APDU [19:02:25]CAPDU: 80 0D 01 02 [19:02:25]Write to MH i2c: E2 08 00 F0 06 80 0D 01 02 00 00 00 00 6F [19:02:25]Write i2c OK [19:02:25]MH_I2C_Read... [19:02:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:02:25]Read from MH i2c: E2 [19:02:25]MH_I2C_Read... [19:02:25]Read from MH i2c: E2 03 00 [19:02:25]MH_I2C_Read... [19:02:25]Read from MH i2c: E2 03 00 F0 06 00 90 00 6A [19:02:25]RAPDU: 90 00 [19:02:25]wFMCommunicate OK [19:02:25]wFMCommunicate request_size=255 [19:02:25]MH_SAM_APDU [19:02: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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 C1 62 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 71 2C 01 00 35 04 06 00 7A [19:02:25]Write to MH i2c: E2 02 01 F1 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 C1 62 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 71 2C 01 00 35 04 06 00 7A 00 00 3E [19:02:25]Write i2c OK [19:02:25]MH_I2C_Read... [19:02:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:26]Read from MH i2c: E2 [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: E2 03 00 [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: E2 03 00 F1 06 00 90 00 6B [19:02:26]RAPDU: 90 00 [19:02:26]wFMCommunicate OK [19:02:26]wFMCommunicate request_size=10 [19:02:26]MH_SAM_APDU [19:02:26]CAPDU: 80 0D 02 02 05 DF E4 5B F8 68 [19:02:26]Write to MH i2c: E2 0D 00 F2 06 80 0D 02 02 05 00 DF E4 5B F8 68 00 00 FA [19:02:26]Write i2c OK [19:02:26]MH_I2C_Read... [19:02:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:26]Read from MH i2c: E2 [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: E2 03 00 [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: E2 03 00 F2 06 00 90 00 6C [19:02:26]RAPDU: 90 00 [19:02:26]wFMCommunicate OK [19:02:26]wFMCommunicate request_size=4 [19:02:26]MH_SAM_APDU [19:02:26]CAPDU: 80 0D 03 02 [19:02:26]Write to MH i2c: E2 08 00 F3 06 80 0D 03 02 00 00 00 00 74 [19:02:26]Write i2c OK [19:02:26]MH_I2C_Read... [19:02:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:02:26]Read from MH i2c: E2 [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: E2 0B 00 [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: E2 0B 00 F3 06 00 97 5F 91 C5 32 E9 DD 7C 90 00 35 [19:02:26]RAPDU: 97 5F 91 C5 32 E9 DD 7C 90 00 [19:02:26]wFMCommunicate OK [19:02:26]SAM_PROTO_SignData done [19:02:26]FM_MakeSignedData done [19:02:26]CreateOFDProtocolMessage [19:02:26]wFMCommunicate request_size=4 [19:02:26]MH_SAM_APDU [19:02:26]CAPDU: 80 11 00 00 [19:02:26]Write to MH i2c: E2 08 00 F4 06 80 11 00 00 00 00 00 00 74 [19:02:26]Write i2c OK [19:02:26]MH_I2C_Read... [19:02:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:26]Read from MH i2c: E2 [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: E2 17 00 [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: E2 17 00 F4 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 C7 [19:02:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:02:26]wFMCommunicate OK [19:02:26]CreateOFDProtocolMessage done [19:02:26]OFDSenderStorePacket 76913 [19:02:26]StoreOFDPacket docnum=76913 [19:02:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 29 B0 07 01 7D C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 C1 62 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 71 2C 01 00 35 04 06 00 7A DF E4 5B F8 68 97 5F 91 C5 32 E9 DD 7C [19:02:26]CheckFolder [19:02:26]dirname=/storage/ofd_packets [19:02:26]CheckFolder done [19:02:26]ProducePacketName [19:02:26]name=ofd_packets/00076913 [19:02:26]NVStorageSaveData ofd_packets/00076913 [19:02:26]File name is /storage/ofd_packets/00076913 [19:02:26]Write 301 bytes [19:02:26]NVStorageSaveData done [19:02:26]OFDSenderStorePacket done [19:02:26]KKMCreateOFDPacket done [19:02:26]NVStorageSaveData kkm_last_timestamp [19:02:26]File name is /storage/kkm_last_timestamp [19:02:26]Write 4 bytes [19:02:26]NVStorageSaveData done [19:02:26]ExternCall_PrintAddStr [19:02:26]wPrintStart [19:02:26]Write to MH i2c: 01 00 00 F5 06 FB [19:02:26]Write i2c OK [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: 01 [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: 01 07 00 [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: 01 07 00 F5 06 00 00 00 00 00 FF 0F 10 [19:02:26]RasterBufferAndPrint [19:02:26]line Счет N : (1)191459 [19:02:26]line ИНН: 02508201610067 [19:02:26]line Контрольно-Кассовый Чек [19:02:26]line ПРОДАЖА [19:02:26]line ТРК (МРК, ГНК) : 22 [19:02:26]line Товар: 2710124130 [19:02:26]line Аи-92-К-5 [19:02:26]line 15.530 * 64.40 [19:02:26]line = 1000.13 [19:02:26]line НДС 12% НСП 1% [19:02:26]line > о реализуемом товаре [19:02:26]line ИТОГО: 1000.13 [19:02:26]line НСП 1% : 8.85 [19:02:26]line НДС 12% : 106.21 [19:02:26]line Наличными: 0.00 [19:02:26]line Безнал.: 1000.13 [19:02:26]line Место: АЗС № 106 "Партнер Нефть" [19:02:26]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [19:02:26]line СНО: Общий режим [19:02:26]line Чек 169 21.04.2024 19:02 [19:02:26]line Смена: 372 ФФД: 1.0 [19:02:26]line ЗНМ: 0300000141 [19:02:26]line РНМ: 0000000000091573 [19:02:26]line Версия ККМ: 001 [19:02:26]line Платежная система: Бакай Банк [19:02:26]line ФМ: 0000000000874652 [19:02:26]line ФД: 76913 [19:02:26]line ФПД: 135102027528296 [19:02:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T190225&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76913&fm=135102027528296&tin=02508201610067®Number=0000000000091573&sum=100013 [19:02:26]written 0, free lines is 4095 [19:02:26]OFD Sender: Processing packet 76913 [packets to send 129, broken 128] [19:02:26]ProducePacketName [19:02:26]name=ofd_packets/00076913 [19:02:26]OFD Sender: To server: pG, [19:02:26]CommunicateWithHost lk.salyk.kg:30040 [19:02:26]ConnectInit lk.salyk.kg [19:02:26]Connected sock=10 [19:02:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 29 B0 07 01 7D C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 C1 62 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 71 2C 01 00 35 04 06 00 7A DF E4 5B F8 68 97 5F 91 C5 32 E9 DD 7C [19:02:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 AE 85 47 00 04 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 34 36 35 32 10 04 04 00 71 2C 01 00 F4 03 04 00 45 0A 25 66 B6 04 01 00 00 B9 77 53 94 4B 2A C2 52 [19:02:26]CommunicateWithHost err = 0 [19:02:26]CheckOFDResponse [19:02:26]1017 (14) - 77093643461234 [19:02:26]1041 (16) - 0000000000874652 [19:02:26]1040 (4) - 76913 [19:02:26]1012 (4) - 21.04.2024 12:44 [19:02:26]1206 (1) - 0 [19:02:26]OFD Sender: Remove packet 76913 [19:02:26]ProducePacketName [19:02:26]name=ofd_packets/00076913 [19:02:26]NVStorageDeleteData [19:02:26]Write to MH i2c: 01 00 00 1E 07 25 [19:02:26]Write i2c OK [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: 01 [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: 01 07 00 [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: 01 07 00 1E 07 00 00 00 00 00 FA 0C 32 [19:02:26]RasterBufferAndPrint [19:02:26]line [19:02:26]line [19:02:26]line [19:02:26]line [19:02:26]line [19:02:26]written 0, free lines is 3328 [19:02:26]MH_Cut [19:02:26]Write to MH i2c: D1 01 00 25 07 01 FE [19:02:26]Write i2c OK [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: D1 [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: D1 01 00 [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: D1 01 00 25 07 00 FD [19:02:26]Write to MH i2c: 01 00 00 26 07 2D [19:02:26]Write i2c OK [19:02:26]MH_I2C_Read... [19:02:27]OFD Sender: No OFD packet to send [19:02:27]*** Cut start [19:02:27]*** Partial cut [19:02:27]*** CUTSNS_PIN = 1 [19:02:27]*** CUTSNS_PIN = 0 [19:02:27]*** Brake cut motor [19:02:28]Read from MH i2c: 01 [19:02:28]MH_I2C_Read... [19:02:28]*** Stop cut motor [19:02:28]*** Cut end [19:02:28]Read from MH i2c: 01 07 00 [19:02:28]MH_I2C_Read... [19:02:28]Read from MH i2c: 01 07 00 26 07 00 00 00 00 00 FF 0F 42 [19:02:28]process_action close_receipt done [19:02:28]requested_data is exist [19:02:28]produce_requested_data [19:02:28]requested_item fm.sn is exist - process it [19:02:28]wFMCommunicate request_size=4 [19:02:28]MH_SAM_APDU [19:02:28]CAPDU: 80 11 00 00 [19:02:28]Write to MH i2c: E2 08 00 27 07 80 11 00 00 00 00 00 00 A8 [19:02:28]Write i2c OK [19:02:28]MH_I2C_Read... [19:02:28]Read from MH i2c: E2 [19:02:28]MH_I2C_Read... [19:02:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:28]Read from MH i2c: E2 17 00 [19:02:28]MH_I2C_Read... [19:02:28]Read from MH i2c: E2 17 00 27 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 FB [19:02:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:02:28]wFMCommunicate OK [19:02:28]requested_item fd.num is exist - process it [19:02:28]SAM_PROTO_GetFieldsCounters [19:02:28]wFMCommunicate request_size=4 [19:02:28]MH_SAM_APDU [19:02:28]CAPDU: 80 13 00 00 [19:02:28]Write to MH i2c: E2 08 00 28 07 80 13 00 00 00 00 00 00 AB [19:02:28]Write i2c OK [19:02:28]MH_I2C_Read... [19:02:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:02:28]Read from MH i2c: E2 [19:02:28]MH_I2C_Read... [19:02:28]Read from MH i2c: E2 62 00 [19:02:28]MH_I2C_Read... [19:02:28]Read from MH i2c: E2 62 00 28 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 71 2C 01 00 0E 04 04 00 74 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 DA [19:02: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 71 2C 01 00 0E 04 04 00 74 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 [19:02:28]wFMCommunicate OK [19:02:28]SAM_PROTO_GetFieldsCounters done [19:02:28]requested_item shift.num is exist - process it [19:02:28]requested_item shift.opened is exist - process it [19:02:28]req_shift_opened [19:02:28]FM_GetShiftState [19:02:28]SAM_PROTO_GetShiftState [19:02:28]wFMCommunicate request_size=4 [19:02:28]MH_SAM_APDU [19:02:28]CAPDU: 80 13 01 00 [19:02:28]Write to MH i2c: E2 08 00 29 07 80 13 01 00 00 00 00 00 AD [19:02:28]Write i2c OK [19:02:28]MH_I2C_Read... [19:02:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:28]Read from MH i2c: E2 [19:02:28]MH_I2C_Read... [19:02:28]Read from MH i2c: E2 0E 00 [19:02:28]MH_I2C_Read... [19:02:28]Read from MH i2c: E2 0E 00 29 07 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 F4 [19:02:28]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [19:02:28]wFMCommunicate OK [19:02:28]SAM_PROTO_GetShiftState done [19:02:28]FM_GetShiftState done [19:02:28]req_shift_opened done [19:02:28]requested_item shift.open_date is exist - process it [19:02:28]req_shift_open_date [19:02:28]req_shift_open_date done [19:02:28]produce_requested_data done [19:02:28]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76913,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [19:02:28]process_action_free close_receipt [19:02:28]json_value_free [19:02:28]json_value_free done [19:02:28]process_json_proto returns [19:02:28]Send response to host [19:02:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76913,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [19:02:28]free response buf [19:02:28]execute_script done [19:02:28]execute_script returns [19:02:28]free content buf [19:02:28]Sock 8.Close socket [19:02:28]Sock 8.Thread stoped [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:28]OFD Sender: No OFD packet to send [19:12:33]OFD Sender: No OFD packet to send [19:12:38]OFD Sender: No OFD packet to send [19:12:43]OFD Sender: No OFD packet to send [19:12:48]OFD Sender: No OFD packet to send [19:12:53]OFD Sender: No OFD packet to send [19:12:58]OFD Sender: No OFD packet to send [19:13:03]OFD Sender: No OFD packet to send [19:13:08]OFD Sender: No OFD packet to send [19:13:13]OFD Sender: No OFD packet to send [19:13:18]OFD Sender: No OFD packet to send [19:13:23]OFD Sender: No OFD packet to send [19:13:28]OFD Sender: No OFD packet to send [19:13:33]OFD Sender: No OFD packet to send [19:13:38]OFD Sender: No OFD packet to send [19:13:43]OFD Sender: No OFD packet to send [19:13:48]OFD Sender: No OFD packet to send [19:13:53]OFD Sender: No OFD packet to send [19:13:58]OFD Sender: No OFD packet to send [19:14:03]OFD Sender: No OFD packet to send [19:14:08]OFD Sender: No OFD packet to send [19:14:13]OFD Sender: No OFD packet to send [19:14:18]OFD Sender: No OFD packet to send [19:14:23]OFD Sender: No OFD packet to send [19:14:28]OFD Sender: No OFD packet to send [19:14:33]OFD Sender: No OFD packet to send [19:14:38]OFD Sender: No OFD packet to send [19:14:43]OFD Sender: No OFD packet to send [19:14:48]OFD Sender: No OFD packet to send [19:14:53]OFD Sender: No OFD packet to send [19:14:58]OFD Sender: No OFD packet to send [19:15:03]OFD Sender: No OFD packet to send [19:15:08]OFD Sender: No OFD packet to send [19:15:13]OFD Sender: No OFD packet to send [19:15:18]OFD Sender: No OFD packet to send [19:15:23]OFD Sender: No OFD packet to send [19:15:28]OFD Sender: No OFD packet to send [19:15:33]OFD Sender: No OFD packet to send [19:15:38]OFD Sender: No OFD packet to send [19:15:43]OFD Sender: No OFD packet to send [19:15:48]OFD Sender: No OFD packet to send [19:15:53]OFD Sender: No OFD packet to send [19:15:58]OFD Sender: No OFD packet to send [19:16:03]OFD Sender: No OFD packet to send [19:16:08]OFD Sender: No OFD packet to send [19:16:13]OFD Sender: No OFD packet to send [19:16:18]OFD Sender: No OFD packet to send [19:16:23]OFD Sender: No OFD packet to send [19:16:27]accept exits with 9 [19:16:27]New connection [19:16:27]New thread 3066944868 created [19:16:27]Thread 3066801508 joined [19:16:27]Waiting for new connection... [19:16:27] Sock 9.Parse request [19:16:27]Sock 9.Check first char [19:16:27]Sock 9.First char is OK [19:16:27]request: POST /json_proto HTTP/1.0 [19:16:27]Method: POST [19:16:27]URL: /json_proto [19:16:27]Method is POST - this is cgi request [19:16:27]url: /json_proto [19:16:27]query_string will be loaded in cgi processing [19:16:27]execute_cgi json_proto POST (null) [19:16:27]execute_cgi path=json_proto method=POST [19:16:27]POST find Content-Length [19:16:27]Host: 172.17.62.5:8080 [19:16:27]Content-Length: 682 [19:16:27]Content-Type: application/json [19:16:27] [19:16:27]POST finish read [19:16:27]Found Content-Length = 682 [19:16:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:16:27]execute_script... [19:16: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)191462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:16:27]POST & json_proto [19:16:27]process_json_proto [19:16:27]json parsed OK: [19:16:27]protocol is kg_v1.0 [19:16:27]action value=close_receipt [19:16:27]process_action close_receipt [19:16:27]cmd_close_receipt [19:16:27]MH_GetDate [19:16:27]Write to MH i2c: F0 00 00 2A 07 20 [19:16:27]Write i2c OK [19:16:27]MH_I2C_Read... [19:16:27]Read from MH i2c: F0 [19:16:27]MH_I2C_Read... [19:16:27]Read from MH i2c: F0 09 00 [19:16:27]MH_I2C_Read... [19:16:27]Read from MH i2c: F0 09 00 2A 07 00 0C 66 25 66 F4 E9 65 64 CC [19:16:27]GetLastDocTimeStamp 1713726145 [19:16:27]current date 1713726988 [19:16:27]FM_GetShiftState [19:16:27]SAM_PROTO_GetShiftState [19:16:27]wFMCommunicate request_size=4 [19:16:27]MH_SAM_APDU [19:16:27]CAPDU: 80 13 01 00 [19:16:27]Write to MH i2c: E2 08 00 2B 07 80 13 01 00 00 00 00 00 AF [19:16:27]Write i2c OK [19:16:27]MH_I2C_Read... [19:16:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:27]Read from MH i2c: E2 [19:16:27]MH_I2C_Read... [19:16:27]Read from MH i2c: E2 0E 00 [19:16:27]MH_I2C_Read... [19:16:27]Read from MH i2c: E2 0E 00 2B 07 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 F6 [19:16:27]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [19:16:27]wFMCommunicate OK [19:16:27]SAM_PROTO_GetShiftState done [19:16:27]FM_GetShiftState done [19:16:27]opened in 1713658965 [19:16:27]opened+sec_in_day 1713745365 [19:16:27]quantity*price = 100013 [19:16:27]sum+1 = 100014 [19:16:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 170 21.04.2024 19:16 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76914 ФПД: 184262054901294 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T191628&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76914&fm=184262054901294&tin=02508201610067®Number=0000000000091573&sum=100000 [19:16:28]StoreToDocumentArchive [19:16:28]shift 372 fd 76914 [19:16:28]save to /storage/0372/doc_00076914 [19:16:28]save last doc name /storage/0372/doc_00076914 to /storage/kkm_last_doc_name [19:16:28]save OK [19:16:28]Clear old archive folders... [19:16:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:16:28]tlvbuf is 00C76C40 [19:16:28]SAM_PROTO_ClearQueue [19:16:28]wFMCommunicate request_size=4 [19:16:28]MH_SAM_APDU [19:16:28]CAPDU: 80 09 00 00 [19:16:28]Write to MH i2c: E2 08 00 38 07 80 09 00 00 00 00 00 00 B1 [19:16:28]Write i2c OK [19:16:28]MH_I2C_Read... [19:16:29]Read from MH i2c: E2 [19:16:29]MH_I2C_Read... [19:16:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:16:29]Read from MH i2c: E2 03 00 [19:16:29]MH_I2C_Read... [19:16:29]Read from MH i2c: E2 03 00 38 07 00 90 00 B3 [19:16:29]RAPDU: 90 00 [19:16:29]wFMCommunicate OK [19:16:29]SAM_PROTO_ClearQueue done [19:16:29]KKMCreateOFDPacket [19:16:29]OFDProtocolAddRootSTLVToBuf [19:16:29]FM_MakeSignedData [19:16:29]FM_MakeSignedData [19:16:29]SAM_PROTO_SignData [19:16:29]wFMCommunicate request_size=4 [19:16:29]MH_SAM_APDU [19:16:29]CAPDU: 80 0D 01 02 [19:16:29]Write to MH i2c: E2 08 00 39 07 80 0D 01 02 00 00 00 00 B9 [19:16:29]Write i2c OK [19:16:29]MH_I2C_Read... [19:16:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:16:29]Read from MH i2c: E2 [19:16:29]MH_I2C_Read... [19:16:29]Read from MH i2c: E2 03 00 [19:16:29]MH_I2C_Read... [19:16:29]Read from MH i2c: E2 03 00 39 07 00 90 00 B4 [19:16:29]RAPDU: 90 00 [19:16:29]wFMCommunicate OK [19:16:29]wFMCommunicate request_size=255 [19:16:29]MH_SAM_APDU [19:16: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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 0C 66 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 72 2C 01 00 35 04 06 00 A7 [19:16:29]Write to MH i2c: E2 02 01 3A 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 0C 66 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 72 2C 01 00 35 04 06 00 A7 00 00 EC [19:16:29]Write i2c OK [19:16:29]MH_I2C_Read... [19:16:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:29]Read from MH i2c: E2 [19:16:29]MH_I2C_Read... [19:16:29]Read from MH i2c: E2 03 00 [19:16:29]MH_I2C_Read... [19:16:29]Read from MH i2c: E2 03 00 3A 07 00 90 00 B5 [19:16:29]RAPDU: 90 00 [19:16:29]wFMCommunicate OK [19:16:29]wFMCommunicate request_size=10 [19:16:29]MH_SAM_APDU [19:16:29]CAPDU: 80 0D 02 02 05 95 DA 53 F6 2E [19:16:29]Write to MH i2c: E2 0D 00 3B 07 80 0D 02 02 05 00 95 DA 53 F6 2E 00 00 AC [19:16:29]Write i2c OK [19:16:29]MH_I2C_Read... [19:16:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:29]Read from MH i2c: E2 [19:16:29]MH_I2C_Read... [19:16:29]Read from MH i2c: E2 03 00 [19:16:29]MH_I2C_Read... [19:16:29]Read from MH i2c: E2 03 00 3B 07 00 90 00 B6 [19:16:29]RAPDU: 90 00 [19:16:29]wFMCommunicate OK [19:16:29]wFMCommunicate request_size=4 [19:16:29]MH_SAM_APDU [19:16:29]CAPDU: 80 0D 03 02 [19:16:29]Write to MH i2c: E2 08 00 3C 07 80 0D 03 02 00 00 00 00 BE [19:16:29]Write i2c OK [19:16:29]MH_I2C_Read... [19:16:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:16:29]Read from MH i2c: E2 [19:16:29]MH_I2C_Read... [19:16:29]Read from MH i2c: E2 0B 00 [19:16:29]MH_I2C_Read... [19:16:29]Read from MH i2c: E2 0B 00 3C 07 00 7E B7 92 53 14 79 A9 5A 90 00 69 [19:16:29]RAPDU: 7E B7 92 53 14 79 A9 5A 90 00 [19:16:29]wFMCommunicate OK [19:16:29]SAM_PROTO_SignData done [19:16:29]FM_MakeSignedData done [19:16:29]CreateOFDProtocolMessage [19:16:29]wFMCommunicate request_size=4 [19:16:29]MH_SAM_APDU [19:16:29]CAPDU: 80 11 00 00 [19:16:29]Write to MH i2c: E2 08 00 3D 07 80 11 00 00 00 00 00 00 BE [19:16:29]Write i2c OK [19:16:29]MH_I2C_Read... [19:16:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:29]Read from MH i2c: E2 [19:16:29]MH_I2C_Read... [19:16:29]Read from MH i2c: E2 17 00 [19:16:29]MH_I2C_Read... [19:16:29]Read from MH i2c: E2 17 00 3D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 11 [19:16:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:16:29]wFMCommunicate OK [19:16:29]CreateOFDProtocolMessage done [19:16:29]OFDSenderStorePacket 76914 [19:16:29]StoreOFDPacket docnum=76914 [19:16:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 96 74 07 01 21 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 0C 66 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 72 2C 01 00 35 04 06 00 A7 95 DA 53 F6 2E 7E B7 92 53 14 79 A9 5A [19:16:29]CheckFolder [19:16:29]dirname=/storage/ofd_packets [19:16:29]CheckFolder done [19:16:29]ProducePacketName [19:16:29]name=ofd_packets/00076914 [19:16:29]NVStorageSaveData ofd_packets/00076914 [19:16:29]File name is /storage/ofd_packets/00076914 [19:16:29]Write 301 bytes [19:16:29]NVStorageSaveData done [19:16:29]OFDSenderStorePacket done [19:16:29]KKMCreateOFDPacket done [19:16:29]NVStorageSaveData kkm_last_timestamp [19:16:29]File name is /storage/kkm_last_timestamp [19:16:29]Write 4 bytes [19:16:29]NVStorageSaveData done [19:16:29]ExternCall_PrintAddStr [19:16:29]wPrintStart [19:16:29]Write to MH i2c: 01 00 00 3E 07 45 [19:16:29]Write i2c OK [19:16:29]MH_I2C_Read... [19:16:29]Read from MH i2c: 01 [19:16:29]MH_I2C_Read... [19:16:29]Read from MH i2c: 01 07 00 [19:16:29]MH_I2C_Read... [19:16:29]Read from MH i2c: 01 07 00 3E 07 00 00 00 00 00 FF 0F 5A [19:16:29]RasterBufferAndPrint [19:16:29]line Счет N : (1)191462 [19:16:29]line ИНН: 02508201610067 [19:16:29]line Контрольно-Кассовый Чек [19:16:29]line ПРОДАЖА [19:16:29]line ТРК (МРК, ГНК) : 33 [19:16:29]line Товар: 2710124130 [19:16:29]line Аи-92-К-5 [19:16:29]line 15.530 * 64.40 [19:16:29]line = 1000.13 [19:16:29]line НДС 12% НСП 1% [19:16:29]line > о реализуемом товаре [19:16:29]line ОКРУГЛЕНИЕ: -0.13 [19:16:29]line ИТОГО: 1000.00 [19:16:29]line Внесено: 1000.00 [19:16:29]line СДАЧА: 0.00 [19:16:29]line НСП 1% : 8.85 [19:16:29]line НДС 12% : 106.21 [19:16:29]line Наличными: 1000.00 [19:16:29]line Безнал.: 0.00 [19:16:29]line Место: АЗС № 106 "Партнер Нефть" [19:16:29]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [19:16:29]line СНО: Общий режим [19:16:29]line Чек 170 21.04.2024 19:16 [19:16:29]line Смена: 372 ФФД: 1.0 [19:16:29]line ЗНМ: 0300000141 [19:16:29]line РНМ: 0000000000091573 [19:16:29]line Версия ККМ: 001 [19:16:29]line ФМ: 0000000000874652 [19:16:29]line ФД: 76914 [19:16:29]line ФПД: 184262054901294 [19:16:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T191628&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76914&fm=184262054901294&tin=02508201610067®Number=0000000000091573&sum=100000 [19:16:29]OFD Sender: Processing packet 76914 [packets to send 129, broken 128] [19:16:29]ProducePacketName [19:16:29]name=ofd_packets/00076914 [19:16:29]OFD Sender: To server: pG, [19:16:29]CommunicateWithHost lk.salyk.kg:30040 [19:16:29]ConnectInit lk.salyk.kg [19:16:29]written 0, free lines is 4095 [19:16:29]Connected sock=10 [19:16:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 96 74 07 01 21 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 0C 66 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 72 2C 01 00 35 04 06 00 A7 95 DA 53 F6 2E 7E B7 92 53 14 79 A9 5A [19:16:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 E7 A0 47 00 5C B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 72 2C 01 00 F4 03 04 00 91 0D 25 66 B6 04 01 00 00 8F 52 01 88 B0 82 0D 2D [19:16:30]CommunicateWithHost err = 0 [19:16:30]CheckOFDResponse [19:16:30]1017 (14) - 77093643461234 [19:16:30]1041 (16) - 0000000000874652 [19:16:30]1040 (4) - 76914 [19:16:30]1012 (4) - 21.04.2024 12:58 [19:16:30]1206 (1) - 0 [19:16:30]OFD Sender: Remove packet 76914 [19:16:30]ProducePacketName [19:16:30]name=ofd_packets/00076914 [19:16:30]NVStorageDeleteData [19:16:30]Write to MH i2c: 01 00 00 68 07 6F [19:16:30]Write i2c OK [19:16:30]MH_I2C_Read... [19:16:30]Read from MH i2c: 01 [19:16:30]MH_I2C_Read... [19:16:30]Read from MH i2c: 01 07 00 [19:16:30]MH_I2C_Read... [19:16:30]Read from MH i2c: 01 07 00 68 07 00 00 00 00 00 1A 0D 9D [19:16:30]RasterBufferAndPrint [19:16:30]line [19:16:30]line [19:16:30]line [19:16:30]line [19:16:30]line [19:16:30]written 0, free lines is 3360 [19:16:30]MH_Cut [19:16:30]Write to MH i2c: D1 01 00 6F 07 01 48 [19:16:30]Write i2c OK [19:16:30]MH_I2C_Read... [19:16:30]Read from MH i2c: D1 [19:16:30]MH_I2C_Read... [19:16:30]Read from MH i2c: D1 01 00 [19:16:30]MH_I2C_Read... [19:16:30]Read from MH i2c: D1 01 00 6F 07 00 47 [19:16:30]Write to MH i2c: 01 00 00 70 07 77 [19:16:30]Write i2c OK [19:16:30]MH_I2C_Read... [19:16:30]OFD Sender: No OFD packet to send [19:16:31]*** Cut start [19:16:31]*** Partial cut [19:16:31]*** CUTSNS_PIN = 1 [19:16:31]*** CUTSNS_PIN = 0 [19:16:31]*** Brake cut motor [19:16:31]Read from MH i2c: 01 [19:16:31]MH_I2C_Read... [19:16:31]*** Stop cut motor [19:16:31]*** Cut end [19:16:31]Read from MH i2c: 01 07 00 [19:16:31]MH_I2C_Read... [19:16:31]Read from MH i2c: 01 07 00 70 07 00 00 00 00 00 FF 0F 8C [19:16:31]process_action close_receipt done [19:16:31]requested_data is exist [19:16:31]produce_requested_data [19:16:31]requested_item fm.sn is exist - process it [19:16:31]wFMCommunicate request_size=4 [19:16:31]MH_SAM_APDU [19:16:31]CAPDU: 80 11 00 00 [19:16:31]Write to MH i2c: E2 08 00 71 07 80 11 00 00 00 00 00 00 F2 [19:16:31]Write i2c OK [19:16:31]MH_I2C_Read... [19:16:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:31]Read from MH i2c: E2 [19:16:31]MH_I2C_Read... [19:16:31]Read from MH i2c: E2 17 00 [19:16:31]MH_I2C_Read... [19:16:31]Read from MH i2c: E2 17 00 71 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 45 [19:16:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:16:31]wFMCommunicate OK [19:16:31]requested_item fd.num is exist - process it [19:16:31]SAM_PROTO_GetFieldsCounters [19:16:31]wFMCommunicate request_size=4 [19:16:31]MH_SAM_APDU [19:16:31]CAPDU: 80 13 00 00 [19:16:31]Write to MH i2c: E2 08 00 72 07 80 13 00 00 00 00 00 00 F5 [19:16:31]Write i2c OK [19:16:31]MH_I2C_Read... [19:16:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:16:31]Read from MH i2c: E2 [19:16:31]MH_I2C_Read... [19:16:31]Read from MH i2c: E2 62 00 [19:16:31]MH_I2C_Read... [19:16:31]Read from MH i2c: E2 62 00 72 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 72 2C 01 00 0E 04 04 00 74 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 28 [19:16: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 72 2C 01 00 0E 04 04 00 74 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 [19:16:31]wFMCommunicate OK [19:16:31]SAM_PROTO_GetFieldsCounters done [19:16:31]requested_item shift.num is exist - process it [19:16:31]requested_item shift.opened is exist - process it [19:16:31]req_shift_opened [19:16:31]FM_GetShiftState [19:16:31]SAM_PROTO_GetShiftState [19:16:31]wFMCommunicate request_size=4 [19:16:31]MH_SAM_APDU [19:16:31]CAPDU: 80 13 01 00 [19:16:31]Write to MH i2c: E2 08 00 73 07 80 13 01 00 00 00 00 00 F7 [19:16:31]Write i2c OK [19:16:31]MH_I2C_Read... [19:16:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:31]Read from MH i2c: E2 [19:16:31]MH_I2C_Read... [19:16:31]Read from MH i2c: E2 0E 00 [19:16:31]MH_I2C_Read... [19:16:31]Read from MH i2c: E2 0E 00 73 07 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 3E [19:16:31]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [19:16:31]wFMCommunicate OK [19:16:31]SAM_PROTO_GetShiftState done [19:16:31]FM_GetShiftState done [19:16:31]req_shift_opened done [19:16:31]requested_item shift.open_date is exist - process it [19:16:31]req_shift_open_date [19:16:31]req_shift_open_date done [19:16:31]produce_requested_data done [19:16:31]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76914,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [19:16:31]process_action_free close_receipt [19:16:31]json_value_free [19:16:31]json_value_free done [19:16:31]process_json_proto returns [19:16:31]Send response to host [19:16:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76914,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [19:16:31]free response buf [19:16:31]execute_script done [19:16:31]execute_script returns [19:16:31]free content buf [19:16:31]Sock 9.Close socket [19:16:31]Sock 9.Thread stoped [19:16:35]OFD Sender: No OFD packet to send [19:16:40]OFD Sender: No OFD packet to send [19:16:41]accept exits with 8 [19:16:41]New connection [19:16:41]New thread 3066801508 created [19:16:41]Thread 3066944868 joined [19:16:41]Waiting for new connection... [19:16:41] Sock 8.Parse request [19:16:41]Sock 8.Check first char [19:16:41]Sock 8.First char is OK [19:16:41]request: POST /json_proto HTTP/1.0 [19:16:41]Method: POST [19:16:41]URL: /json_proto [19:16:41]Method is POST - this is cgi request [19:16:41]url: /json_proto [19:16:41]query_string will be loaded in cgi processing [19:16:41]execute_cgi json_proto POST (null) [19:16:41]execute_cgi path=json_proto method=POST [19:16:41]POST find Content-Length [19:16:41]Host: 172.17.62.5:8080 [19:16:41]Content-Length: 978 [19:16:41]Content-Type: application/json [19:16:41] [19:16:41]POST finish read [19:16:41]Found Content-Length = 978 [19:16:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191461", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 27.82 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:41]execute_script... [19:16: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)191461", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 27.82 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:41]POST & json_proto [19:16:41]process_json_proto [19:16:41]json parsed OK: [19:16:41]protocol is kg_v1.0 [19:16:41]action value=close_receipt [19:16:41]process_action close_receipt [19:16:41]cmd_close_receipt [19:16:41]MH_GetDate [19:16:41]Write to MH i2c: F0 00 00 74 07 6A [19:16:41]Write i2c OK [19:16:41]MH_I2C_Read... [19:16:41]Read from MH i2c: F0 [19:16:41]MH_I2C_Read... [19:16:41]Read from MH i2c: F0 09 00 [19:16:41]MH_I2C_Read... [19:16:41]Read from MH i2c: F0 09 00 74 07 00 1A 66 25 66 F4 E9 65 64 24 [19:16:41]GetLastDocTimeStamp 1713726988 [19:16:41]current date 1713727002 [19:16:41]FM_GetShiftState [19:16:41]SAM_PROTO_GetShiftState [19:16:41]wFMCommunicate request_size=4 [19:16:41]MH_SAM_APDU [19:16:41]CAPDU: 80 13 01 00 [19:16:41]Write to MH i2c: E2 08 00 75 07 80 13 01 00 00 00 00 00 F9 [19:16:41]Write i2c OK [19:16:41]MH_I2C_Read... [19:16:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:41]Read from MH i2c: E2 [19:16:41]MH_I2C_Read... [19:16:41]Read from MH i2c: E2 0E 00 [19:16:41]MH_I2C_Read... [19:16:41]Read from MH i2c: E2 0E 00 75 07 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 40 [19:16:41]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [19:16:41]wFMCommunicate OK [19:16:41]SAM_PROTO_GetShiftState done [19:16:41]FM_GetShiftState done [19:16:41]opened in 1713658965 [19:16:41]opened+sec_in_day 1713745365 [19:16:41]quantity*price = 200025 [19:16:41]sum+1 = 200027 [19:16:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 171 21.04.2024 19:16 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 27.82 сом ФМ: 0000000000874652 ФД: 76915 ФПД: 121587715860347 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T191642&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76915&fm=121587715860347&tin=02508201610067®Number=0000000000091573&sum=200000 [19:16:42]StoreToDocumentArchive [19:16:42]shift 372 fd 76915 [19:16:42]save to /storage/0372/doc_00076915 [19:16:42]save last doc name /storage/0372/doc_00076915 to /storage/kkm_last_doc_name [19:16:42]save OK [19:16:42]Clear old archive folders... [19:16:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:16:42]tlvbuf is 00C78850 [19:16:42]SAM_PROTO_ClearQueue [19:16:42]wFMCommunicate request_size=4 [19:16:42]MH_SAM_APDU [19:16:42]CAPDU: 80 09 00 00 [19:16:42]Write to MH i2c: E2 08 00 82 07 80 09 00 00 00 00 00 00 FB [19:16:42]Write i2c OK [19:16:42]MH_I2C_Read... [19:16:42]Read from MH i2c: E2 [19:16:42]MH_I2C_Read... [19:16:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:16:42]Read from MH i2c: E2 03 00 [19:16:42]MH_I2C_Read... [19:16:42]Read from MH i2c: E2 03 00 82 07 00 90 00 FD [19:16:42]RAPDU: 90 00 [19:16:42]wFMCommunicate OK [19:16:42]SAM_PROTO_ClearQueue done [19:16:42]KKMCreateOFDPacket [19:16:42]OFDProtocolAddRootSTLVToBuf [19:16:42]FM_MakeSignedData [19:16:42]FM_MakeSignedData [19:16:42]SAM_PROTO_SignData [19:16:42]wFMCommunicate request_size=4 [19:16:42]MH_SAM_APDU [19:16:42]CAPDU: 80 0D 01 02 [19:16:42]Write to MH i2c: E2 08 00 83 07 80 0D 01 02 00 00 00 00 03 [19:16:42]Write i2c OK [19:16:42]MH_I2C_Read... [19:16:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:16:42]Read from MH i2c: E2 [19:16:42]MH_I2C_Read... [19:16:42]Read from MH i2c: E2 03 00 [19:16:42]MH_I2C_Read... [19:16:42]Read from MH i2c: E2 03 00 83 07 00 90 00 FE [19:16:42]RAPDU: 90 00 [19:16:42]wFMCommunicate OK [19:16:42]wFMCommunicate request_size=255 [19:16:42]MH_SAM_APDU [19:16:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 1A 66 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 73 2C 01 00 35 04 06 00 6E 95 58 9C [19:16:42]Write to MH i2c: E2 02 01 84 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 1A 66 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 73 2C 01 00 35 04 06 00 6E 95 58 9C 00 00 B2 [19:16:42]Write i2c OK [19:16:42]MH_I2C_Read... [19:16:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:43]Read from MH i2c: E2 [19:16:43]MH_I2C_Read... [19:16:43]Read from MH i2c: E2 03 00 [19:16:43]MH_I2C_Read... [19:16:43]Read from MH i2c: E2 03 00 84 07 00 90 00 FF [19:16:43]RAPDU: 90 00 [19:16:43]wFMCommunicate OK [19:16:43]wFMCommunicate request_size=7 [19:16:43]MH_SAM_APDU [19:16:43]CAPDU: 80 0D 02 02 02 E7 7B [19:16:43]Write to MH i2c: E2 0A 00 85 07 80 0D 02 02 02 00 E7 7B 00 00 6C [19:16:43]Write i2c OK [19:16:43]MH_I2C_Read... [19:16:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:43]Read from MH i2c: E2 [19:16:43]MH_I2C_Read... [19:16:43]Read from MH i2c: E2 03 00 [19:16:43]MH_I2C_Read... [19:16:43]Read from MH i2c: E2 03 00 85 07 00 90 00 00 [19:16:43]RAPDU: 90 00 [19:16:43]wFMCommunicate OK [19:16:43]wFMCommunicate request_size=4 [19:16:43]MH_SAM_APDU [19:16:43]CAPDU: 80 0D 03 02 [19:16:43]Write to MH i2c: E2 08 00 86 07 80 0D 03 02 00 00 00 00 08 [19:16:43]Write i2c OK [19:16:43]MH_I2C_Read... [19:16:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:16:43]Read from MH i2c: E2 [19:16:43]MH_I2C_Read... [19:16:43]Read from MH i2c: E2 0B 00 [19:16:43]MH_I2C_Read... [19:16:43]Read from MH i2c: E2 0B 00 86 07 00 D9 79 2A D8 C3 7D 4E 09 90 00 F4 [19:16:43]RAPDU: D9 79 2A D8 C3 7D 4E 09 90 00 [19:16:43]wFMCommunicate OK [19:16:43]SAM_PROTO_SignData done [19:16:43]FM_MakeSignedData done [19:16:43]CreateOFDProtocolMessage [19:16:43]wFMCommunicate request_size=4 [19:16:43]MH_SAM_APDU [19:16:43]CAPDU: 80 11 00 00 [19:16:43]Write to MH i2c: E2 08 00 87 07 80 11 00 00 00 00 00 00 08 [19:16:43]Write i2c OK [19:16:43]MH_I2C_Read... [19:16:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:43]Read from MH i2c: E2 [19:16:43]MH_I2C_Read... [19:16:43]Read from MH i2c: E2 17 00 [19:16:43]MH_I2C_Read... [19:16:43]Read from MH i2c: E2 17 00 87 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 5B [19:16:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:16:43]wFMCommunicate OK [19:16:43]CreateOFDProtocolMessage done [19:16:43]OFDSenderStorePacket 76915 [19:16:43]StoreOFDPacket docnum=76915 [19:16:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 79 61 04 01 1A 7B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 1A 66 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 73 2C 01 00 35 04 06 00 6E 95 58 9C E7 7B D9 79 2A D8 C3 7D 4E 09 [19:16:43]CheckFolder [19:16:43]dirname=/storage/ofd_packets [19:16:43]CheckFolder done [19:16:43]ProducePacketName [19:16:43]name=ofd_packets/00076915 [19:16:43]NVStorageSaveData ofd_packets/00076915 [19:16:43]File name is /storage/ofd_packets/00076915 [19:16:43]Write 298 bytes [19:16:43]NVStorageSaveData done [19:16:43]OFDSenderStorePacket done [19:16:43]KKMCreateOFDPacket done [19:16:43]NVStorageSaveData kkm_last_timestamp [19:16:43]File name is /storage/kkm_last_timestamp [19:16:43]Write 4 bytes [19:16:43]NVStorageSaveData done [19:16:43]ExternCall_PrintAddStr [19:16:43]wPrintStart [19:16:43]Write to MH i2c: 01 00 00 88 07 8F [19:16:43]OFD Sender: Processing packet 76915 [packets to send 129, broken 128] [19:16:43]ProducePacketName [19:16:43]name=ofd_packets/00076915 [19:16:43]OFD Sender: To server: pG, [19:16:43]CommunicateWithHost lk.salyk.kg:30040 [19:16:43]ConnectInit lk.salyk.kg [19:16:43]Write i2c OK [19:16:43]MH_I2C_Read... [19:16:43]Read from MH i2c: 01 [19:16:43]MH_I2C_Read... [19:16:43]Read from MH i2c: 01 07 00 [19:16:43]MH_I2C_Read... [19:16:43]Read from MH i2c: 01 07 00 88 07 00 00 00 00 00 FF 0F A4 [19:16:43]RasterBufferAndPrint [19:16:43]line Счет N : (1)191461 [19:16:43]line ИНН: 02508201610067 [19:16:43]line Контрольно-Кассовый Чек [19:16:43]line ПРОДАЖА [19:16:43]line ТРК (МРК, ГНК) : 51 [19:16:43]line Товар: 2710194210 [19:16:43]line ДТ-К-5 [19:16:43]line 27.820 * 71.90 [19:16:43]line = 2000.26 [19:16:43]line НДС 12% НСП 1% [19:16:43]line > о реализуемом товаре [19:16:43]line ОКРУГЛЕНИЕ: -0.26 [19:16:43]line ИТОГО: 2000.00 [19:16:43]line Внесено: 2000.00 [19:16:43]line СДАЧА: 0.00 [19:16:43]line НСП 1% : 17.70 [19:16:43]line НДС 12% : 212.42 [19:16:43]line Наличными: 2000.00 [19:16:43]line Безнал.: 0.00 [19:16:43]line Место: АЗС № 106 "Партнер Нефть" [19:16:43]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [19:16:43]line СНО: Общий режим [19:16:43]line Чек 171 21.04.2024 19:16 [19:16:43]line Смена: 372 ФФД: 1.0 [19:16:43]line ЗНМ: 0300000141 [19:16:43]line РНМ: 0000000000091573 [19:16:43]line Версия ККМ: 001 [19:16:43]line [19:16:43]line Дисконтная программа [19:16:43]line ДТ [19:16:43]line номер 106 [19:16:43]line сэкономлено 27.82 сом [19:16:43]line ФМ: 0000000000874652 [19:16:43]line ФД: 76915 [19:16:43]line ФПД: 121587715860347 [19:16:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T191642&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76915&fm=121587715860347&tin=02508201610067®Number=0000000000091573&sum=200000 [19:16:43]Connected sock=10 [19:16:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 79 61 04 01 1A 7B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 1A 66 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 73 2C 01 00 35 04 06 00 6E 95 58 9C E7 7B D9 79 2A D8 C3 7D 4E 09 [19:16:43]written 0, free lines is 4095 [19:16:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 D5 E0 47 00 76 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 34 36 35 32 10 04 04 00 73 2C 01 00 F4 03 04 00 9F 0D 25 66 B6 04 01 00 00 D6 74 E5 01 86 65 B8 4B [19:16:43]CommunicateWithHost err = 0 [19:16:43]CheckOFDResponse [19:16:43]1017 (14) - 77093643461234 [19:16:43]1041 (16) - 0000000000874652 [19:16:43]1040 (4) - 76915 [19:16:43]1012 (4) - 21.04.2024 12:59 [19:16:43]1206 (1) - 0 [19:16:43]OFD Sender: Remove packet 76915 [19:16:43]ProducePacketName [19:16:43]name=ofd_packets/00076915 [19:16:43]NVStorageDeleteData [19:16:44]Write to MH i2c: 01 00 00 B7 07 BE [19:16:44]Write i2c OK [19:16:44]MH_I2C_Read... [19:16:44]Read from MH i2c: 01 [19:16:44]MH_I2C_Read... [19:16:44]Read from MH i2c: 01 07 00 [19:16:44]MH_I2C_Read... [19:16:44]Read from MH i2c: 01 07 00 B7 07 00 00 00 00 00 97 0C 68 [19:16:44]RasterBufferAndPrint [19:16:44]line [19:16:44]line [19:16:44]line [19:16:44]line [19:16:44]line [19:16:44]written 0, free lines is 3229 [19:16:44]MH_Cut [19:16:44]Write to MH i2c: D1 01 00 BE 07 01 97 [19:16:44]Write i2c OK [19:16:44]MH_I2C_Read... [19:16:44]Read from MH i2c: D1 [19:16:44]MH_I2C_Read... [19:16:44]Read from MH i2c: D1 01 00 [19:16:44]MH_I2C_Read... [19:16:44]Read from MH i2c: D1 01 00 BE 07 00 96 [19:16:44]Write to MH i2c: 01 00 00 BF 07 C6 [19:16:44]Write i2c OK [19:16:44]MH_I2C_Read... [19:16:44]OFD Sender: No OFD packet to send [19:16:44]*** Cut start [19:16:44]*** Partial cut [19:16:44]*** CUTSNS_PIN = 1 [19:16:45]*** CUTSNS_PIN = 0 [19:16:45]*** Brake cut motor [19:16:45]Read from MH i2c: 01 [19:16:45]MH_I2C_Read... [19:16:45]*** Stop cut motor [19:16:45]*** Cut end [19:16:45]Read from MH i2c: 01 07 00 [19:16:45]MH_I2C_Read... [19:16:45]Read from MH i2c: 01 07 00 BF 07 00 00 00 00 00 FF 0F DB [19:16:45]process_action close_receipt done [19:16:45]requested_data is exist [19:16:45]produce_requested_data [19:16:45]requested_item fm.sn is exist - process it [19:16:45]wFMCommunicate request_size=4 [19:16:45]MH_SAM_APDU [19:16:45]CAPDU: 80 11 00 00 [19:16:45]Write to MH i2c: E2 08 00 C0 07 80 11 00 00 00 00 00 00 41 [19:16:45]Write i2c OK [19:16:45]MH_I2C_Read... [19:16:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:45]Read from MH i2c: E2 [19:16:45]MH_I2C_Read... [19:16:45]Read from MH i2c: E2 17 00 [19:16:45]MH_I2C_Read... [19:16:45]Read from MH i2c: E2 17 00 C0 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 94 [19:16:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:16:45]wFMCommunicate OK [19:16:45]requested_item fd.num is exist - process it [19:16:45]SAM_PROTO_GetFieldsCounters [19:16:45]wFMCommunicate request_size=4 [19:16:45]MH_SAM_APDU [19:16:45]CAPDU: 80 13 00 00 [19:16:45]Write to MH i2c: E2 08 00 C1 07 80 13 00 00 00 00 00 00 44 [19:16:45]Write i2c OK [19:16:45]MH_I2C_Read... [19:16:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:16:45]Read from MH i2c: E2 [19:16:45]MH_I2C_Read... [19:16:45]Read from MH i2c: E2 62 00 [19:16:45]MH_I2C_Read... [19:16:45]Read from MH i2c: E2 62 00 C1 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 73 2C 01 00 0E 04 04 00 74 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 7B [19:16: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 73 2C 01 00 0E 04 04 00 74 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 [19:16:45]wFMCommunicate OK [19:16:45]SAM_PROTO_GetFieldsCounters done [19:16:45]requested_item shift.num is exist - process it [19:16:45]requested_item shift.opened is exist - process it [19:16:45]req_shift_opened [19:16:45]FM_GetShiftState [19:16:45]SAM_PROTO_GetShiftState [19:16:45]wFMCommunicate request_size=4 [19:16:45]MH_SAM_APDU [19:16:45]CAPDU: 80 13 01 00 [19:16:45]Write to MH i2c: E2 08 00 C2 07 80 13 01 00 00 00 00 00 46 [19:16:45]Write i2c OK [19:16:45]MH_I2C_Read... [19:16:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:45]Read from MH i2c: E2 [19:16:45]MH_I2C_Read... [19:16:45]Read from MH i2c: E2 0E 00 [19:16:45]MH_I2C_Read... [19:16:45]Read from MH i2c: E2 0E 00 C2 07 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 8D [19:16:45]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [19:16:45]wFMCommunicate OK [19:16:45]SAM_PROTO_GetShiftState done [19:16:45]FM_GetShiftState done [19:16:45]req_shift_opened done [19:16:45]requested_item shift.open_date is exist - process it [19:16:45]req_shift_open_date [19:16:45]req_shift_open_date done [19:16:45]produce_requested_data done [19:16:45]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76915,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [19:16:45]process_action_free close_receipt [19:16:45]json_value_free [19:16:45]json_value_free done [19:16:45]process_json_proto returns [19:16:45]Send response to host [19:16:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76915,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [19:16:45]free response buf [19:16:45]execute_script done [19:16:45]execute_script returns [19:16:45]free content buf [19:16:45]Sock 8.Close socket [19:16:45]Sock 8.Thread stoped [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:14]OFD Sender: No OFD packet to send [19:17:19]OFD Sender: No OFD packet to send [19:17:24]OFD Sender: No OFD packet to send [19:17:29]OFD Sender: No OFD packet to send [19:17:34]OFD Sender: No OFD packet to send [19:17:39]OFD Sender: No OFD packet to send [19:17:44]OFD Sender: No OFD packet to send [19:17:49]OFD Sender: No OFD packet to send [19:17:54]OFD Sender: No OFD packet to send [19:17:59]OFD Sender: No OFD packet to send [19:18:04]OFD Sender: No OFD packet to send [19:18:09]OFD Sender: No OFD packet to send [19:18:14]OFD Sender: No OFD packet to send [19:18:19]OFD Sender: No OFD packet to send [19:18:24]OFD Sender: No OFD packet to send [19:18:29]OFD Sender: No OFD packet to send [19:18:34]OFD Sender: No OFD packet to send [19:18:39]OFD Sender: No OFD packet to send [19:18:44]OFD Sender: No OFD packet to send [19:18:49]OFD Sender: No OFD packet to send [19:18:54]OFD Sender: No OFD packet to send [19:18:59]OFD Sender: No OFD packet to send [19:19:04]OFD Sender: No OFD packet to send [19:19:09]OFD Sender: No OFD packet to send [19:19:14]OFD Sender: No OFD packet to send [19:19:19]OFD Sender: No OFD packet to send [19:19:24]OFD Sender: No OFD packet to send [19:19:29]OFD Sender: No OFD packet to send [19:19:34]OFD Sender: No OFD packet to send [19:19:37]accept exits with 9 [19:19:37]New connection [19:19:37]New thread 3066944868 created [19:19:37]Thread 3066801508 joined [19:19:37]Waiting for new connection... [19:19:37] Sock 9.Parse request [19:19:37]Sock 9.Check first char [19:19:37]Sock 9.First char is OK [19:19:37]request: POST /json_proto HTTP/1.0 [19:19:37]Method: POST [19:19:37]URL: /json_proto [19:19:37]Method is POST - this is cgi request [19:19:37]url: /json_proto [19:19:37]query_string will be loaded in cgi processing [19:19:37]execute_cgi json_proto POST (null) [19:19:37]execute_cgi path=json_proto method=POST [19:19:37]POST find Content-Length [19:19:37]Host: 172.17.62.5:8080 [19:19:37]Content-Length: 808 [19:19:37]Content-Type: application/json [19:19:37] [19:19:37]POST finish read [19:19:37]Found Content-Length = 808 [19:19:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191463", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\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: \u041E! \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:19:37]execute_script... [19:19: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)191463", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\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: \u041E! \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:19:37]POST & json_proto [19:19:37]process_json_proto [19:19:37]json parsed OK: [19:19:37]protocol is kg_v1.0 [19:19:37]action value=close_receipt [19:19:37]process_action close_receipt [19:19:37]cmd_close_receipt [19:19:37]MH_GetDate [19:19:37]Write to MH i2c: F0 00 00 C3 07 B9 [19:19:37]Write i2c OK [19:19:37]MH_I2C_Read... [19:19:37]Read from MH i2c: F0 [19:19:37]MH_I2C_Read... [19:19:37]Read from MH i2c: F0 09 00 [19:19:37]MH_I2C_Read... [19:19:37]Read from MH i2c: F0 09 00 C3 07 00 CA 66 25 66 F4 E9 65 64 23 [19:19:37]GetLastDocTimeStamp 1713727002 [19:19:37]current date 1713727178 [19:19:37]FM_GetShiftState [19:19:37]SAM_PROTO_GetShiftState [19:19:37]wFMCommunicate request_size=4 [19:19:37]MH_SAM_APDU [19:19:37]CAPDU: 80 13 01 00 [19:19:37]Write to MH i2c: E2 08 00 C4 07 80 13 01 00 00 00 00 00 48 [19:19:37]Write i2c OK [19:19:37]MH_I2C_Read... [19:19:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:37]Read from MH i2c: E2 [19:19:37]MH_I2C_Read... [19:19:37]Read from MH i2c: E2 0E 00 [19:19:37]MH_I2C_Read... [19:19:37]Read from MH i2c: E2 0E 00 C4 07 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 8F [19:19:37]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [19:19:37]wFMCommunicate OK [19:19:37]SAM_PROTO_GetShiftState done [19:19:37]FM_GetShiftState done [19:19:37]opened in 1713658965 [19:19:37]opened+sec_in_day 1713745365 [19:19:37]quantity*price = 150028 [19:19:37]sum+1 = 150029 [19:19:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.28 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 0.00 Безнал.: 1500.28 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 172 21.04.2024 19:19 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 76916 ФПД: 82100792054096 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T191938&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76916&fm=82100792054096&tin=02508201610067®Number=0000000000091573&sum=150028 [19:19:39]StoreToDocumentArchive [19:19:39]shift 372 fd 76916 [19:19:39]save to /storage/0372/doc_00076916 [19:19:39]save last doc name /storage/0372/doc_00076916 to /storage/kkm_last_doc_name [19:19:39]save OK [19:19:39]Clear old archive folders... [19:19:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:19:39]tlvbuf is 00C9E640 [19:19:39]SAM_PROTO_ClearQueue [19:19:39]wFMCommunicate request_size=4 [19:19:39]MH_SAM_APDU [19:19:39]CAPDU: 80 09 00 00 [19:19:39]Write to MH i2c: E2 08 00 D1 07 80 09 00 00 00 00 00 00 4A [19:19:39]Write i2c OK [19:19:39]MH_I2C_Read... [19:19:39]Read from MH i2c: E2 [19:19:39]MH_I2C_Read... [19:19:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:19:39]Read from MH i2c: E2 03 00 [19:19:39]MH_I2C_Read... [19:19:39]Read from MH i2c: E2 03 00 D1 07 00 90 00 4C [19:19:39]RAPDU: 90 00 [19:19:39]wFMCommunicate OK [19:19:39]SAM_PROTO_ClearQueue done [19:19:39]KKMCreateOFDPacket [19:19:39]OFDProtocolAddRootSTLVToBuf [19:19:39]FM_MakeSignedData [19:19:39]FM_MakeSignedData [19:19:39]SAM_PROTO_SignData [19:19:39]wFMCommunicate request_size=4 [19:19:39]MH_SAM_APDU [19:19:39]CAPDU: 80 0D 01 02 [19:19:39]Write to MH i2c: E2 08 00 D2 07 80 0D 01 02 00 00 00 00 52 [19:19:39]Write i2c OK [19:19:39]MH_I2C_Read... [19:19:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:19:39]Read from MH i2c: E2 [19:19:39]MH_I2C_Read... [19:19:39]Read from MH i2c: E2 03 00 [19:19:39]MH_I2C_Read... [19:19:39]Read from MH i2c: E2 03 00 D2 07 00 90 00 4D [19:19:39]RAPDU: 90 00 [19:19:39]wFMCommunicate OK [19:19:39]wFMCommunicate request_size=255 [19:19:39]MH_SAM_APDU [19:19: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 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 AC 00 00 00 F4 03 04 00 CA 66 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 74 2C 01 00 35 04 06 00 4A [19:19:39]Write to MH i2c: E2 02 01 D3 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 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 AC 00 00 00 F4 03 04 00 CA 66 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 74 2C 01 00 35 04 06 00 4A 00 00 28 [19:19:39]Write i2c OK [19:19:39]MH_I2C_Read... [19:19:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:39]Read from MH i2c: E2 [19:19:39]MH_I2C_Read... [19:19:39]Read from MH i2c: E2 03 00 [19:19:39]MH_I2C_Read... [19:19:39]Read from MH i2c: E2 03 00 D3 07 00 90 00 4E [19:19:39]RAPDU: 90 00 [19:19:39]wFMCommunicate OK [19:19:39]wFMCommunicate request_size=10 [19:19:39]MH_SAM_APDU [19:19:39]CAPDU: 80 0D 02 02 05 AB 94 8B D1 50 [19:19:39]Write to MH i2c: E2 0D 00 D4 07 80 0D 02 02 05 00 AB 94 8B D1 50 00 00 4A [19:19:39]Write i2c OK [19:19:39]MH_I2C_Read... [19:19:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:39]Read from MH i2c: E2 [19:19:39]MH_I2C_Read... [19:19:39]Read from MH i2c: E2 03 00 [19:19:39]MH_I2C_Read... [19:19:39]Read from MH i2c: E2 03 00 D4 07 00 90 00 4F [19:19:39]RAPDU: 90 00 [19:19:39]wFMCommunicate OK [19:19:39]wFMCommunicate request_size=4 [19:19:39]MH_SAM_APDU [19:19:39]CAPDU: 80 0D 03 02 [19:19:39]Write to MH i2c: E2 08 00 D5 07 80 0D 03 02 00 00 00 00 57 [19:19:39]Write i2c OK [19:19:39]MH_I2C_Read... [19:19:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:19:39]Read from MH i2c: E2 [19:19:39]MH_I2C_Read... [19:19:39]Read from MH i2c: E2 0B 00 [19:19:39]MH_I2C_Read... [19:19:39]Read from MH i2c: E2 0B 00 D5 07 00 35 8F F5 4E DB 04 AE 97 90 00 83 [19:19:39]RAPDU: 35 8F F5 4E DB 04 AE 97 90 00 [19:19:39]wFMCommunicate OK [19:19:39]SAM_PROTO_SignData done [19:19:39]FM_MakeSignedData done [19:19:39]CreateOFDProtocolMessage [19:19:39]wFMCommunicate request_size=4 [19:19:39]MH_SAM_APDU [19:19:39]CAPDU: 80 11 00 00 [19:19:39]Write to MH i2c: E2 08 00 D6 07 80 11 00 00 00 00 00 00 57 [19:19:39]Write i2c OK [19:19:39]MH_I2C_Read... [19:19:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:39]Read from MH i2c: E2 [19:19:39]MH_I2C_Read... [19:19:39]Read from MH i2c: E2 17 00 [19:19:39]MH_I2C_Read... [19:19:39]Read from MH i2c: E2 17 00 D6 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 AA [19:19:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:19:39]wFMCommunicate OK [19:19:39]CreateOFDProtocolMessage done [19:19:39]OFDSenderStorePacket 76916 [19:19:39]StoreOFDPacket docnum=76916 [19:19:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 36 D4 07 01 20 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 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 AC 00 00 00 F4 03 04 00 CA 66 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 74 2C 01 00 35 04 06 00 4A AB 94 8B D1 50 35 8F F5 4E DB 04 AE 97 [19:19:39]CheckFolder [19:19:39]dirname=/storage/ofd_packets [19:19:39]CheckFolder done [19:19:39]ProducePacketName [19:19:39]name=ofd_packets/00076916 [19:19:39]NVStorageSaveData ofd_packets/00076916 [19:19:39]File name is /storage/ofd_packets/00076916 [19:19:39]Write 301 bytes [19:19:39]NVStorageSaveData done [19:19:39]OFDSenderStorePacket done [19:19:39]KKMCreateOFDPacket done [19:19:39]NVStorageSaveData kkm_last_timestamp [19:19:39]File name is /storage/kkm_last_timestamp [19:19:39]Write 4 bytes [19:19:39]NVStorageSaveData done [19:19:39]ExternCall_PrintAddStr [19:19:39]wPrintStart [19:19:39]Write to MH i2c: 01 00 00 D7 07 DE [19:19:39]Write i2c OK [19:19:39]MH_I2C_Read... [19:19:39]Read from MH i2c: 01 [19:19:39]MH_I2C_Read... [19:19:39]Read from MH i2c: 01 07 00 [19:19:39]MH_I2C_Read... [19:19:39]Read from MH i2c: 01 07 00 D7 07 00 00 00 00 00 FF 0F F3 [19:19:39]RasterBufferAndPrint [19:19:39]line Счет N : (1)191463 [19:19:39]line ИНН: 02508201610067 [19:19:39]line Контрольно-Кассовый Чек [19:19:39]line ПРОДАЖА [19:19:39]line ТРК (МРК, ГНК) : 21 [19:19:39]line Товар: 2710124500 [19:19:39]line Аи-95-К-5 [19:19:39]line 20.580 * 72.90 [19:19:39]line = 1500.28 [19:19:39]line НДС 12% НСП 1% [19:19:39]line > о реализуемом товаре [19:19:39]line ИТОГО: 1500.28 [19:19:39]line НСП 1% : 13.28 [19:19:39]line НДС 12% : 159.32 [19:19:39]line Наличными: 0.00 [19:19:39]line Безнал.: 1500.28 [19:19:39]line Место: АЗС № 106 "Партнер Нефть" [19:19:39]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [19:19:39]line СНО: Общий режим [19:19:39]line Чек 172 21.04.2024 19:19 [19:19:39]line Смена: 372 ФФД: 1.0 [19:19:39]line ЗНМ: 0300000141 [19:19:39]line РНМ: 0000000000091573 [19:19:39]line Версия ККМ: 001 [19:19:39]line Платежная система: О! деньги [19:19:39]line ФМ: 0000000000874652 [19:19:39]line ФД: 76916 [19:19:39]line ФПД: 82100792054096 [19:19:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T191938&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76916&fm=82100792054096&tin=02508201610067®Number=0000000000091573&sum=150028 [19:19:39]OFD Sender: Processing packet 76916 [packets to send 129, broken 128] [19:19:39]ProducePacketName [19:19:39]name=ofd_packets/00076916 [19:19:39]OFD Sender: To server: pG, [19:19:39]CommunicateWithHost lk.salyk.kg:30040 [19:19:39]ConnectInit lk.salyk.kg [19:19:39]written 0, free lines is 4095 [19:19:40]Connected sock=10 [19:19:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 36 D4 07 01 20 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 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 AC 00 00 00 F4 03 04 00 CA 66 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 74 2C 01 00 35 04 06 00 4A AB 94 8B D1 50 35 8F F5 4E DB 04 AE 97 [19:19:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 12 72 47 00 C3 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 74 2C 01 00 F4 03 04 00 4F 0E 25 66 B6 04 01 00 00 2F F3 8B 4C 7F 58 91 BC [19:19:40]CommunicateWithHost err = 0 [19:19:40]CheckOFDResponse [19:19:40]1017 (14) - 77093643461234 [19:19:40]1041 (16) - 0000000000874652 [19:19:40]1040 (4) - 76916 [19:19:40]1012 (4) - 21.04.2024 13:02 [19:19:40]1206 (1) - 0 [19:19:40]OFD Sender: Remove packet 76916 [19:19:40]ProducePacketName [19:19:40]name=ofd_packets/00076916 [19:19:40]NVStorageDeleteData [19:19:40]Write to MH i2c: 01 00 00 00 08 08 [19:19:40]Write i2c OK [19:19:40]MH_I2C_Read... [19:19:40]Read from MH i2c: 01 [19:19:40]MH_I2C_Read... [19:19:40]Read from MH i2c: 01 07 00 [19:19:40]MH_I2C_Read... [19:19:40]Read from MH i2c: 01 07 00 00 08 00 00 00 00 00 0C 0D 28 [19:19:40]RasterBufferAndPrint [19:19:40]line [19:19:40]line [19:19:40]line [19:19:40]line [19:19:40]line [19:19:40]written 0, free lines is 3346 [19:19:40]MH_Cut [19:19:40]Write to MH i2c: D1 01 00 07 08 01 E1 [19:19:40]Write i2c OK [19:19:40]MH_I2C_Read... [19:19:40]Read from MH i2c: D1 [19:19:40]MH_I2C_Read... [19:19:40]Read from MH i2c: D1 01 00 [19:19:40]MH_I2C_Read... [19:19:40]Read from MH i2c: D1 01 00 07 08 00 E0 [19:19:40]Write to MH i2c: 01 00 00 08 08 10 [19:19:40]Write i2c OK [19:19:40]MH_I2C_Read... [19:19:40]OFD Sender: No OFD packet to send [19:19:41]*** Cut start [19:19:41]*** Partial cut [19:19:41]*** CUTSNS_PIN = 1 [19:19:41]*** CUTSNS_PIN = 0 [19:19:41]*** Brake cut motor [19:19:41]Read from MH i2c: 01 [19:19:41]MH_I2C_Read... [19:19:41]*** Stop cut motor [19:19:41]*** Cut end [19:19:41]Read from MH i2c: 01 07 00 [19:19:41]MH_I2C_Read... [19:19:41]Read from MH i2c: 01 07 00 08 08 00 00 00 00 00 FF 0F 25 [19:19:41]process_action close_receipt done [19:19:41]requested_data is exist [19:19:41]produce_requested_data [19:19:41]requested_item fm.sn is exist - process it [19:19:41]wFMCommunicate request_size=4 [19:19:41]MH_SAM_APDU [19:19:41]CAPDU: 80 11 00 00 [19:19:41]Write to MH i2c: E2 08 00 09 08 80 11 00 00 00 00 00 00 8B [19:19:41]Write i2c OK [19:19:41]MH_I2C_Read... [19:19:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:41]Read from MH i2c: E2 [19:19:41]MH_I2C_Read... [19:19:41]Read from MH i2c: E2 17 00 [19:19:41]MH_I2C_Read... [19:19:41]Read from MH i2c: E2 17 00 09 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 DE [19:19:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:19:41]wFMCommunicate OK [19:19:41]requested_item fd.num is exist - process it [19:19:41]SAM_PROTO_GetFieldsCounters [19:19:41]wFMCommunicate request_size=4 [19:19:41]MH_SAM_APDU [19:19:41]CAPDU: 80 13 00 00 [19:19:41]Write to MH i2c: E2 08 00 0A 08 80 13 00 00 00 00 00 00 8E [19:19:41]Write i2c OK [19:19:41]MH_I2C_Read... [19:19:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:19:41]Read from MH i2c: E2 [19:19:41]MH_I2C_Read... [19:19:41]Read from MH i2c: E2 62 00 [19:19:41]MH_I2C_Read... [19:19:41]Read from MH i2c: E2 62 00 0A 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 74 2C 01 00 0E 04 04 00 74 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 C9 [19:19: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 74 2C 01 00 0E 04 04 00 74 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 [19:19:41]wFMCommunicate OK [19:19:41]SAM_PROTO_GetFieldsCounters done [19:19:41]requested_item shift.num is exist - process it [19:19:41]requested_item shift.opened is exist - process it [19:19:41]req_shift_opened [19:19:41]FM_GetShiftState [19:19:41]SAM_PROTO_GetShiftState [19:19:41]wFMCommunicate request_size=4 [19:19:41]MH_SAM_APDU [19:19:41]CAPDU: 80 13 01 00 [19:19:41]Write to MH i2c: E2 08 00 0B 08 80 13 01 00 00 00 00 00 90 [19:19:41]Write i2c OK [19:19:41]MH_I2C_Read... [19:19:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:41]Read from MH i2c: E2 [19:19:41]MH_I2C_Read... [19:19:41]Read from MH i2c: E2 0E 00 [19:19:41]MH_I2C_Read... [19:19:41]Read from MH i2c: E2 0E 00 0B 08 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 D7 [19:19:41]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [19:19:41]wFMCommunicate OK [19:19:41]SAM_PROTO_GetShiftState done [19:19:41]FM_GetShiftState done [19:19:41]req_shift_opened done [19:19:41]requested_item shift.open_date is exist - process it [19:19:41]req_shift_open_date [19:19:41]req_shift_open_date done [19:19:41]produce_requested_data done [19:19:41]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76916,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [19:19:41]process_action_free close_receipt [19:19:41]json_value_free [19:19:41]json_value_free done [19:19:41]process_json_proto returns [19:19:41]Send response to host [19:19:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76916,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [19:19:41]free response buf [19:19:41]execute_script done [19:19:41]execute_script returns [19:19:41]free content buf [19:19:41]Sock 9.Close socket [19:19:41]Sock 9.Thread stoped [19:19:45]accept exits with 8 [19:19:45]New connection [19:19:45]New thread 3066801508 created [19:19:45]Thread 3066944868 joined [19:19:45]Waiting for new connection... [19:19:45] Sock 8.Parse request [19:19:45]Sock 8.Check first char [19:19:45]Sock 8.First char is OK [19:19:45]request: POST /json_proto HTTP/1.0 [19:19:45]Method: POST [19:19:45]URL: /json_proto [19:19:45]Method is POST - this is cgi request [19:19:45]url: /json_proto [19:19:45]query_string will be loaded in cgi processing [19:19:45]execute_cgi json_proto POST (null) [19:19:45]execute_cgi path=json_proto method=POST [19:19:45]POST find Content-Length [19:19:45]Host: 172.17.62.5:8080 [19:19:45]Content-Length: 682 [19:19:45]Content-Type: application/json [19:19:45] [19:19:45]POST finish read [19:19:45]Found Content-Length = 682 [19:19:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191464", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [19:19:45]execute_script... [19:19: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)191464", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [19:19:45]POST & json_proto [19:19:45]process_json_proto [19:19:45]json parsed OK: [19:19:45]protocol is kg_v1.0 [19:19:45]action value=close_receipt [19:19:45]process_action close_receipt [19:19:45]cmd_close_receipt [19:19:45]MH_GetDate [19:19:45]Write to MH i2c: F0 00 00 0C 08 03 [19:19:45]Write i2c OK [19:19:45]MH_I2C_Read... [19:19:45]Read from MH i2c: F0 [19:19:45]MH_I2C_Read... [19:19:45]Read from MH i2c: F0 09 00 [19:19:45]MH_I2C_Read... [19:19:45]Read from MH i2c: F0 09 00 0C 08 00 D2 66 25 66 F4 E9 65 64 75 [19:19:45]GetLastDocTimeStamp 1713727178 [19:19:45]current date 1713727186 [19:19:45]FM_GetShiftState [19:19:45]SAM_PROTO_GetShiftState [19:19:45]wFMCommunicate request_size=4 [19:19:45]MH_SAM_APDU [19:19:45]CAPDU: 80 13 01 00 [19:19:45]Write to MH i2c: E2 08 00 0D 08 80 13 01 00 00 00 00 00 92 [19:19:45]Write i2c OK [19:19:45]MH_I2C_Read... [19:19:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:45]Read from MH i2c: E2 [19:19:45]MH_I2C_Read... [19:19:45]Read from MH i2c: E2 0E 00 [19:19:45]MH_I2C_Read... [19:19:45]Read from MH i2c: E2 0E 00 0D 08 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 D9 [19:19:45]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [19:19:45]wFMCommunicate OK [19:19:45]SAM_PROTO_GetShiftState done [19:19:45]FM_GetShiftState done [19:19:45]opened in 1713658965 [19:19:45]opened+sec_in_day 1713745365 [19:19:45]quantity*price = 150028 [19:19:45]sum+1 = 150029 [19:19:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 173 21.04.2024 19:19 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76917 ФПД: 33817538197512 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T191946&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76917&fm=33817538197512&tin=02508201610067®Number=0000000000091573&sum=150000 [19:19:46]StoreToDocumentArchive [19:19:46]shift 372 fd 76917 [19:19:46]save to /storage/0372/doc_00076917 [19:19:46]save last doc name /storage/0372/doc_00076917 to /storage/kkm_last_doc_name [19:19:46]save OK [19:19:46]Clear old archive folders... [19:19:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:19:46]tlvbuf is 00CD91D0 [19:19:46]SAM_PROTO_ClearQueue [19:19:46]wFMCommunicate request_size=4 [19:19:46]MH_SAM_APDU [19:19:46]CAPDU: 80 09 00 00 [19:19:46]Write to MH i2c: E2 08 00 1A 08 80 09 00 00 00 00 00 00 94 [19:19:46]Write i2c OK [19:19:46]MH_I2C_Read... [19:19:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:19:46]Read from MH i2c: E2 [19:19:46]MH_I2C_Read... [19:19:46]Read from MH i2c: E2 03 00 [19:19:46]MH_I2C_Read... [19:19:46]Read from MH i2c: E2 03 00 1A 08 00 90 00 96 [19:19:46]RAPDU: 90 00 [19:19:46]wFMCommunicate OK [19:19:46]SAM_PROTO_ClearQueue done [19:19:46]KKMCreateOFDPacket [19:19:46]OFDProtocolAddRootSTLVToBuf [19:19:46]FM_MakeSignedData [19:19:46]FM_MakeSignedData [19:19:46]SAM_PROTO_SignData [19:19:46]wFMCommunicate request_size=4 [19:19:46]MH_SAM_APDU [19:19:46]CAPDU: 80 0D 01 02 [19:19:46]Write to MH i2c: E2 08 00 1B 08 80 0D 01 02 00 00 00 00 9C [19:19:46]Write i2c OK [19:19:46]MH_I2C_Read... [19:19:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:19:46]Read from MH i2c: E2 [19:19:46]MH_I2C_Read... [19:19:46]Read from MH i2c: E2 03 00 [19:19:46]MH_I2C_Read... [19:19:46]Read from MH i2c: E2 03 00 1B 08 00 90 00 97 [19:19:46]RAPDU: 90 00 [19:19:46]wFMCommunicate OK [19:19:46]wFMCommunicate request_size=255 [19:19:46]MH_SAM_APDU [19:19: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 AD 00 00 00 F4 03 04 00 D2 66 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 75 2C 01 00 35 04 06 00 1E [19:19:46]Write to MH i2c: E2 02 01 1C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 AD 00 00 00 F4 03 04 00 D2 66 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 75 2C 01 00 35 04 06 00 1E 00 00 16 [19:19:46]Write i2c OK [19:19:46]MH_I2C_Read... [19:19:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:46]Read from MH i2c: E2 [19:19:46]MH_I2C_Read... [19:19:46]Read from MH i2c: E2 03 00 [19:19:46]MH_I2C_Read... [19:19:46]Read from MH i2c: E2 03 00 1C 08 00 90 00 98 [19:19:46]RAPDU: 90 00 [19:19:46]wFMCommunicate OK [19:19:46]wFMCommunicate request_size=10 [19:19:46]MH_SAM_APDU [19:19:46]CAPDU: 80 0D 02 02 05 C1 C2 59 F8 08 [19:19:46]Write to MH i2c: E2 0D 00 1D 08 80 0D 02 02 05 00 C1 C2 59 F8 08 00 00 85 [19:19:46]Write i2c OK [19:19:46]MH_I2C_Read... [19:19:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:46]Read from MH i2c: E2 [19:19:46]MH_I2C_Read... [19:19:46]Read from MH i2c: E2 03 00 [19:19:46]MH_I2C_Read... [19:19:46]Read from MH i2c: E2 03 00 1D 08 00 90 00 99 [19:19:46]RAPDU: 90 00 [19:19:46]wFMCommunicate OK [19:19:46]wFMCommunicate request_size=4 [19:19:46]MH_SAM_APDU [19:19:46]CAPDU: 80 0D 03 02 [19:19:46]Write to MH i2c: E2 08 00 1E 08 80 0D 03 02 00 00 00 00 A1 [19:19:46]Write i2c OK [19:19:46]MH_I2C_Read... [19:19:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:19:46]Read from MH i2c: E2 [19:19:46]MH_I2C_Read... [19:19:46]Read from MH i2c: E2 0B 00 [19:19:46]MH_I2C_Read... [19:19:46]Read from MH i2c: E2 0B 00 1E 08 00 D4 68 CA EF 40 A8 FE 31 90 00 AE [19:19:46]RAPDU: D4 68 CA EF 40 A8 FE 31 90 00 [19:19:46]wFMCommunicate OK [19:19:46]SAM_PROTO_SignData done [19:19:46]FM_MakeSignedData done [19:19:46]CreateOFDProtocolMessage [19:19:46]wFMCommunicate request_size=4 [19:19:46]MH_SAM_APDU [19:19:46]CAPDU: 80 11 00 00 [19:19:46]Write to MH i2c: E2 08 00 1F 08 80 11 00 00 00 00 00 00 A1 [19:19:46]Write i2c OK [19:19:46]MH_I2C_Read... [19:19:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:46]Read from MH i2c: E2 [19:19:46]MH_I2C_Read... [19:19:46]Read from MH i2c: E2 17 00 [19:19:46]MH_I2C_Read... [19:19:46]Read from MH i2c: E2 17 00 1F 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F4 [19:19:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:19:46]wFMCommunicate OK [19:19:46]CreateOFDProtocolMessage done [19:19:46]OFDSenderStorePacket 76917 [19:19:46]StoreOFDPacket docnum=76917 [19:19:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 E4 59 07 01 83 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 AD 00 00 00 F4 03 04 00 D2 66 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 75 2C 01 00 35 04 06 00 1E C1 C2 59 F8 08 D4 68 CA EF 40 A8 FE 31 [19:19:46]CheckFolder [19:19:46]dirname=/storage/ofd_packets [19:19:46]CheckFolder done [19:19:46]ProducePacketName [19:19:46]name=ofd_packets/00076917 [19:19:46]NVStorageSaveData ofd_packets/00076917 [19:19:46]File name is /storage/ofd_packets/00076917 [19:19:46]Write 301 bytes [19:19:46]NVStorageSaveData done [19:19:46]OFDSenderStorePacket done [19:19:46]KKMCreateOFDPacket done [19:19:46]NVStorageSaveData kkm_last_timestamp [19:19:46]File name is /storage/kkm_last_timestamp [19:19:46]Write 4 bytes [19:19:46]NVStorageSaveData done [19:19:46]ExternCall_PrintAddStr [19:19:46]wPrintStart [19:19:46]Write to MH i2c: 01 00 00 20 08 28 [19:19:46]Write i2c OK [19:19:46]MH_I2C_Read... [19:19:46]Read from MH i2c: 01 [19:19:46]MH_I2C_Read... [19:19:46]Read from MH i2c: 01 07 00 [19:19:46]MH_I2C_Read... [19:19:46]Read from MH i2c: 01 07 00 20 08 00 00 00 00 00 FF 0F 3D [19:19:46]RasterBufferAndPrint [19:19:46]line Счет N : (1)191464 [19:19:46]line ИНН: 02508201610067 [19:19:46]line Контрольно-Кассовый Чек [19:19:46]line ПРОДАЖА [19:19:46]line ТРК (МРК, ГНК) : 21 [19:19:46]line Товар: 2710124500 [19:19:46]line Аи-95-К-5 [19:19:46]line 20.580 * 72.90 [19:19:46]line = 1500.28 [19:19:46]line НДС 12% НСП 1% [19:19:46]line > о реализуемом товаре [19:19:46]line ОКРУГЛЕНИЕ: -0.28 [19:19:46]line ИТОГО: 1500.00 [19:19:46]line Внесено: 1500.00 [19:19:46]line СДАЧА: 0.00 [19:19:46]line НСП 1% : 13.28 [19:19:46]line НДС 12% : 159.32 [19:19:46]line Наличными: 1500.00 [19:19:46]line Безнал.: 0.00 [19:19:46]line Место: АЗС № 106 "Партнер Нефть" [19:19:46]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [19:19:46]line СНО: Общий режим [19:19:46]line Чек 173 21.04.2024 19:19 [19:19:46]line Смена: 372 ФФД: 1.0 [19:19:46]line ЗНМ: 0300000141 [19:19:46]line РНМ: 0000000000091573 [19:19:46]line Версия ККМ: 001 [19:19:46]line ФМ: 0000000000874652 [19:19:46]line ФД: 76917 [19:19:46]line ФПД: 33817538197512 [19:19:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T191946&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76917&fm=33817538197512&tin=02508201610067®Number=0000000000091573&sum=150000 [19:19:46]written 0, free lines is 4095 [19:19:47]OFD Sender: Processing packet 76917 [packets to send 129, broken 128] [19:19:47]ProducePacketName [19:19:47]name=ofd_packets/00076917 [19:19:47]OFD Sender: To server: pG, [19:19:47]CommunicateWithHost lk.salyk.kg:30040 [19:19:47]ConnectInit lk.salyk.kg [19:19:47]Connected sock=11 [19:19:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 E4 59 07 01 83 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 AD 00 00 00 F4 03 04 00 D2 66 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 75 2C 01 00 35 04 06 00 1E C1 C2 59 F8 08 D4 68 CA EF 40 A8 FE 31 [19:19:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 1B 35 47 00 F0 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 34 36 35 32 10 04 04 00 75 2C 01 00 F4 03 04 00 56 0E 25 66 B6 04 01 00 00 85 81 9B 8C C8 C2 37 51 [19:19:47]CommunicateWithHost err = 0 [19:19:47]CheckOFDResponse [19:19:47]1017 (14) - 77093643461234 [19:19:47]1041 (16) - 0000000000874652 [19:19:47]1040 (4) - 76917 [19:19:47]1012 (4) - 21.04.2024 13:02 [19:19:47]1206 (1) - 0 [19:19:47]OFD Sender: Remove packet 76917 [19:19:47]ProducePacketName [19:19:47]name=ofd_packets/00076917 [19:19:47]NVStorageDeleteData [19:19:47]Write to MH i2c: 01 00 00 4A 08 52 [19:19:47]Write i2c OK [19:19:47]MH_I2C_Read... [19:19:47]Read from MH i2c: 01 [19:19:47]MH_I2C_Read... [19:19:47]Read from MH i2c: 01 07 00 [19:19:47]MH_I2C_Read... [19:19:47]Read from MH i2c: 01 07 00 4A 08 00 00 00 00 00 EE 0C 53 [19:19:47]RasterBufferAndPrint [19:19:47]line [19:19:47]line [19:19:47]line [19:19:47]line [19:19:47]line [19:19:47]written 0, free lines is 3318 [19:19:47]MH_Cut [19:19:47]Write to MH i2c: D1 01 00 51 08 01 2B [19:19:47]Write i2c OK [19:19:47]MH_I2C_Read... [19:19:47]Read from MH i2c: D1 [19:19:47]MH_I2C_Read... [19:19:47]Read from MH i2c: D1 01 00 [19:19:47]MH_I2C_Read... [19:19:47]Read from MH i2c: D1 01 00 51 08 00 2A [19:19:47]Write to MH i2c: 01 00 00 52 08 5A [19:19:47]Write i2c OK [19:19:47]MH_I2C_Read... [19:19:47]OFD Sender: No OFD packet to send [19:19:48]*** Cut start [19:19:48]*** Partial cut [19:19:48]*** CUTSNS_PIN = 1 [19:19:48]*** CUTSNS_PIN = 0 [19:19:48]*** Brake cut motor [19:19:48]Read from MH i2c: 01 [19:19:48]MH_I2C_Read... [19:19:48]*** Stop cut motor [19:19:48]*** Cut end [19:19:48]Read from MH i2c: 01 07 00 [19:19:48]MH_I2C_Read... [19:19:48]Read from MH i2c: 01 07 00 52 08 00 00 00 00 00 FF 0F 6F [19:19:48]process_action close_receipt done [19:19:48]requested_data is exist [19:19:48]produce_requested_data [19:19:48]requested_item fm.sn is exist - process it [19:19:48]wFMCommunicate request_size=4 [19:19:48]MH_SAM_APDU [19:19:48]CAPDU: 80 11 00 00 [19:19:48]Write to MH i2c: E2 08 00 53 08 80 11 00 00 00 00 00 00 D5 [19:19:48]Write i2c OK [19:19:48]MH_I2C_Read... [19:19:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:48]Read from MH i2c: E2 [19:19:48]MH_I2C_Read... [19:19:48]Read from MH i2c: E2 17 00 [19:19:48]MH_I2C_Read... [19:19:48]Read from MH i2c: E2 17 00 53 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 28 [19:19:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:19:48]wFMCommunicate OK [19:19:48]requested_item fd.num is exist - process it [19:19:48]SAM_PROTO_GetFieldsCounters [19:19:48]wFMCommunicate request_size=4 [19:19:48]MH_SAM_APDU [19:19:48]CAPDU: 80 13 00 00 [19:19:48]Write to MH i2c: E2 08 00 54 08 80 13 00 00 00 00 00 00 D8 [19:19:48]Write i2c OK [19:19:48]MH_I2C_Read... [19:19:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:19:48]Read from MH i2c: E2 [19:19:48]MH_I2C_Read... [19:19:48]Read from MH i2c: E2 62 00 [19:19:48]MH_I2C_Read... [19:19:48]Read from MH i2c: E2 62 00 54 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 75 2C 01 00 0E 04 04 00 74 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 [19:19: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 75 2C 01 00 0E 04 04 00 74 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 [19:19:49]wFMCommunicate OK [19:19:49]SAM_PROTO_GetFieldsCounters done [19:19:49]requested_item shift.num is exist - process it [19:19:49]requested_item shift.opened is exist - process it [19:19:49]req_shift_opened [19:19:49]FM_GetShiftState [19:19:49]SAM_PROTO_GetShiftState [19:19:49]wFMCommunicate request_size=4 [19:19:49]MH_SAM_APDU [19:19:49]CAPDU: 80 13 01 00 [19:19:49]Write to MH i2c: E2 08 00 55 08 80 13 01 00 00 00 00 00 DA [19:19:49]Write i2c OK [19:19:49]MH_I2C_Read... [19:19:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:49]Read from MH i2c: E2 [19:19:49]MH_I2C_Read... [19:19:49]Read from MH i2c: E2 0E 00 [19:19:49]MH_I2C_Read... [19:19:49]Read from MH i2c: E2 0E 00 55 08 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 21 [19:19:49]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [19:19:49]wFMCommunicate OK [19:19:49]SAM_PROTO_GetShiftState done [19:19:49]FM_GetShiftState done [19:19:49]req_shift_opened done [19:19:49]requested_item shift.open_date is exist - process it [19:19:49]req_shift_open_date [19:19:49]req_shift_open_date done [19:19:49]produce_requested_data done [19:19:49]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76917,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [19:19:49]process_action_free close_receipt [19:19:49]json_value_free [19:19:49]json_value_free done [19:19:49]process_json_proto returns [19:19:49]Send response to host [19:19:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76917,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [19:19:49]free response buf [19:19:49]execute_script done [19:19:49]execute_script returns [19:19:49]free content buf [19:19:49]Sock 8.Close socket [19:19:49]Sock 8.Thread stoped [19:19:50]accept exits with 9 [19:19:50]New connection [19:19:50]New thread 3066944868 created [19:19:50]Thread 3066801508 joined [19:19:50]Waiting for new connection... [19:19:50] Sock 9.Parse request [19:19:50]Sock 9.Check first char [19:19:50]Sock 9.First char is OK [19:19:50]request: POST /json_proto HTTP/1.0 [19:19:50]Method: POST [19:19:50]URL: /json_proto [19:19:50]Method is POST - this is cgi request [19:19:50]url: /json_proto [19:19:50]query_string will be loaded in cgi processing [19:19:50]execute_cgi json_proto POST (null) [19:19:50]execute_cgi path=json_proto method=POST [19:19:50]POST find Content-Length [19:19:50]Host: 172.17.62.5:8080 [19:19:50]Content-Length: 738 [19:19:50]Content-Type: application/json [19:19:50] [19:19:50]POST finish read [19:19:50]Found Content-Length = 738 [19:19:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 76917, "base_FM": "0000000000874652", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191464", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [19:19:50]execute_script... [19:19:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 76917, "base_FM": "0000000000874652", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191464", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [19:19:50]POST & json_proto [19:19:50]process_json_proto [19:19:50]json parsed OK: [19:19:50]protocol is kg_v1.0 [19:19:50]action value=close_receipt [19:19:50]process_action close_receipt [19:19:50]cmd_close_receipt [19:19:50]MH_GetDate [19:19:50]Write to MH i2c: F0 00 00 56 08 4D [19:19:50]Write i2c OK [19:19:50]MH_I2C_Read... [19:19:50]Read from MH i2c: F0 [19:19:50]MH_I2C_Read... [19:19:50]Read from MH i2c: F0 09 00 [19:19:50]MH_I2C_Read... [19:19:50]Read from MH i2c: F0 09 00 56 08 00 D7 66 25 66 F4 E9 65 64 C4 [19:19:50]GetLastDocTimeStamp 1713727186 [19:19:50]current date 1713727191 [19:19:50]FM_GetShiftState [19:19:50]SAM_PROTO_GetShiftState [19:19:50]wFMCommunicate request_size=4 [19:19:50]MH_SAM_APDU [19:19:50]CAPDU: 80 13 01 00 [19:19:50]Write to MH i2c: E2 08 00 57 08 80 13 01 00 00 00 00 00 DC [19:19:50]Write i2c OK [19:19:50]MH_I2C_Read... [19:19:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:50]Read from MH i2c: E2 [19:19:50]MH_I2C_Read... [19:19:50]Read from MH i2c: E2 0E 00 [19:19:50]MH_I2C_Read... [19:19:50]Read from MH i2c: E2 0E 00 57 08 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 23 [19:19:50]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [19:19:50]wFMCommunicate OK [19:19:50]SAM_PROTO_GetShiftState done [19:19:50]FM_GetShiftState done [19:19:50]opened in 1713658965 [19:19:50]opened+sec_in_day 1713745365 [19:19:50]quantity*price = 150028 [19:19:50]sum+1 = 150029 [19:19:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 1500.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 174 21.04.2024 19:19 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФД осн.: 76917 ФМ осн.: 0000000000874652 ФМ: 0000000000874652 ФД: 76918 ФПД: 92799909017508 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T191951&type=2&operation_type=1&fn_number=0000000000874652&fd_number=76918&fm=92799909017508&tin=02508201610067®Number=0000000000091573&sum=150000 [19:19:51]StoreToDocumentArchive [19:19:51]shift 372 fd 76918 [19:19:51]save to /storage/0372/doc_00076918 [19:19:51]save last doc name /storage/0372/doc_00076918 to /storage/kkm_last_doc_name [19:19:51]save OK [19:19:51]Clear old archive folders... [19:19:51]ProcessDocumentItem done err = 0, tmpTLVsize=279 [19:19:51]tlvbuf is 00CDADE0 [19:19:51]SAM_PROTO_ClearQueue [19:19:51]wFMCommunicate request_size=4 [19:19:51]MH_SAM_APDU [19:19:51]CAPDU: 80 09 00 00 [19:19:51]Write to MH i2c: E2 08 00 66 08 80 09 00 00 00 00 00 00 E0 [19:19:51]Write i2c OK [19:19:51]MH_I2C_Read... [19:19:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:19:51]Read from MH i2c: E2 [19:19:51]MH_I2C_Read... [19:19:51]Read from MH i2c: E2 03 00 [19:19:51]MH_I2C_Read... [19:19:51]Read from MH i2c: E2 03 00 66 08 00 90 00 E2 [19:19:51]RAPDU: 90 00 [19:19:51]wFMCommunicate OK [19:19:51]SAM_PROTO_ClearQueue done [19:19:51]KKMCreateOFDPacket [19:19:51]OFDProtocolAddRootSTLVToBuf [19:19:51]FM_MakeSignedData [19:19:51]FM_MakeSignedData [19:19:51]SAM_PROTO_SignData [19:19:51]wFMCommunicate request_size=4 [19:19:51]MH_SAM_APDU [19:19:51]CAPDU: 80 0D 01 02 [19:19:51]Write to MH i2c: E2 08 00 67 08 80 0D 01 02 00 00 00 00 E8 [19:19:51]Write i2c OK [19:19:51]MH_I2C_Read... [19:19:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:19:52]Read from MH i2c: E2 [19:19:52]MH_I2C_Read... [19:19:52]Read from MH i2c: E2 03 00 [19:19:52]MH_I2C_Read... [19:19:52]Read from MH i2c: E2 03 00 67 08 00 90 00 E3 [19:19:52]RAPDU: 90 00 [19:19:52]wFMCommunicate OK [19:19:52]wFMCommunicate request_size=255 [19:19:52]MH_SAM_APDU [19:19: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 AE 00 00 00 F4 03 04 00 D7 66 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 27 04 04 00 75 2C 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 11 04 10 00 30 [19:19:52]Write to MH i2c: E2 02 01 68 08 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 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 AE 00 00 00 F4 03 04 00 D7 66 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 27 04 04 00 75 2C 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 11 04 10 00 30 00 00 AC [19:19:52]Write i2c OK [19:19:52]MH_I2C_Read... [19:19:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:52]Read from MH i2c: E2 [19:19:52]MH_I2C_Read... [19:19:52]Read from MH i2c: E2 03 00 [19:19:52]MH_I2C_Read... [19:19:52]Read from MH i2c: E2 03 00 68 08 00 90 00 E4 [19:19:52]RAPDU: 90 00 [19:19:52]wFMCommunicate OK [19:19:52]wFMCommunicate request_size=38 [19:19:52]MH_SAM_APDU [19:19:52]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 76 2C 01 00 35 04 06 00 54 66 A9 9C B7 A4 [19:19:52]Write to MH i2c: E2 29 00 69 08 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 76 2C 01 00 35 04 06 00 54 66 A9 9C B7 A4 00 00 71 [19:19:52]Write i2c OK [19:19:52]MH_I2C_Read... [19:19:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:52]Read from MH i2c: E2 [19:19:52]MH_I2C_Read... [19:19:52]Read from MH i2c: E2 03 00 [19:19:52]MH_I2C_Read... [19:19:52]Read from MH i2c: E2 03 00 69 08 00 90 00 E5 [19:19:52]RAPDU: 90 00 [19:19:52]wFMCommunicate OK [19:19:52]wFMCommunicate request_size=4 [19:19:52]MH_SAM_APDU [19:19:52]CAPDU: 80 0D 03 02 [19:19:52]Write to MH i2c: E2 08 00 6A 08 80 0D 03 02 00 00 00 00 ED [19:19:52]Write i2c OK [19:19:52]MH_I2C_Read... [19:19:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:19:52]Read from MH i2c: E2 [19:19:52]MH_I2C_Read... [19:19:52]Read from MH i2c: E2 0B 00 [19:19:52]MH_I2C_Read... [19:19:52]Read from MH i2c: E2 0B 00 6A 08 00 70 D3 DC 48 E7 58 86 C4 90 00 DE [19:19:52]RAPDU: 70 D3 DC 48 E7 58 86 C4 90 00 [19:19:52]wFMCommunicate OK [19:19:52]SAM_PROTO_SignData done [19:19:52]FM_MakeSignedData done [19:19:52]CreateOFDProtocolMessage [19:19:52]wFMCommunicate request_size=4 [19:19:52]MH_SAM_APDU [19:19:52]CAPDU: 80 11 00 00 [19:19:52]Write to MH i2c: E2 08 00 6B 08 80 11 00 00 00 00 00 00 ED [19:19:52]Write i2c OK [19:19:52]MH_I2C_Read... [19:19:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:52]Read from MH i2c: E2 [19:19:52]MH_I2C_Read... [19:19:52]Read from MH i2c: E2 17 00 [19:19:52]MH_I2C_Read... [19:19:52]Read from MH i2c: E2 17 00 6B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 40 [19:19:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:19:52]wFMCommunicate OK [19:19:52]CreateOFDProtocolMessage done [19:19:52]OFDSenderStorePacket 76918 [19:19:52]StoreOFDPacket docnum=76918 [19:19:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 2B 01 00 00 C9 CC 23 01 26 DB 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 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 AE 00 00 00 F4 03 04 00 D7 66 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 27 04 04 00 75 2C 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 76 2C 01 00 35 04 06 00 54 66 A9 9C B7 A4 70 D3 DC 48 E7 58 86 C4 [19:19:52]CheckFolder [19:19:52]dirname=/storage/ofd_packets [19:19:52]CheckFolder done [19:19:52]ProducePacketName [19:19:52]name=ofd_packets/00076918 [19:19:52]NVStorageSaveData ofd_packets/00076918 [19:19:52]File name is /storage/ofd_packets/00076918 [19:19:52]Write 329 bytes [19:19:52]NVStorageSaveData done [19:19:52]OFDSenderStorePacket done [19:19:52]KKMCreateOFDPacket done [19:19:52]NVStorageSaveData kkm_last_timestamp [19:19:52]File name is /storage/kkm_last_timestamp [19:19:52]Write 4 bytes [19:19:52]NVStorageSaveData done [19:19:52]ExternCall_PrintAddStr [19:19:52]wPrintStart [19:19:52]Write to MH i2c: 01 00 00 6C 08 74 [19:19:52]Write i2c OK [19:19:52]MH_I2C_Read... [19:19:52]Read from MH i2c: 01 [19:19:52]MH_I2C_Read... [19:19:52]Read from MH i2c: 01 07 00 [19:19:52]MH_I2C_Read... [19:19:52]OFD Sender: Processing packet 76918 [packets to send 129, broken 128] [19:19:52]ProducePacketName [19:19:52]name=ofd_packets/00076918 [19:19:52]OFD Sender: To server: pG, [19:19:52]CommunicateWithHost lk.salyk.kg:30040 [19:19:52]ConnectInit lk.salyk.kg [19:19:52]Read from MH i2c: 01 07 00 6C 08 00 00 00 00 00 FF 0F 89 [19:19:52]RasterBufferAndPrint [19:19:52]line Счет N : (1)191464 [19:19:52]line ИНН: 02508201610067 [19:19:52]line Контрольно-Кассовый Чек [19:19:52]line ВОЗВРАТ ПРОДАЖИ [19:19:52]line ТРК (МРК, ГНК) : 21 [19:19:52]line Товар: 2710124500 [19:19:52]line Аи-95-К-5 [19:19:52]line 20.580 * 72.90 [19:19:52]line = 1500.28 [19:19:52]line НДС 12% НСП 1% [19:19:52]line > о реализуемом товаре [19:19:52]line ОКРУГЛЕНИЕ: -0.28 [19:19:52]line ИТОГО: 1500.00 [19:19:52]line НСП 1% : 13.28 [19:19:52]line НДС 12% : 159.32 [19:19:52]line Наличными: 1500.00 [19:19:52]line Безнал.: 0.00 [19:19:52]line Место: АЗС № 106 "Партнер Нефть" [19:19:52]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [19:19:52]line СНО: Общий режим [19:19:52]line Чек 174 21.04.2024 19:19 [19:19:52]line Смена: 372 ФФД: 1.0 [19:19:52]line ЗНМ: 0300000141 [19:19:52]line РНМ: 0000000000091573 [19:19:52]line Версия ККМ: 001 [19:19:52]line ФД осн.: 76917 [19:19:52]line ФМ осн.: 0000000000874652 [19:19:52]line ФМ: 0000000000874652 [19:19:52]line ФД: 76918 [19:19:52]line ФПД: 92799909017508 [19:19:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T191951&type=2&operation_type=1&fn_number=0000000000874652&fd_number=76918&fm=92799909017508&tin=02508201610067®Number=0000000000091573&sum=150000 [19:19:52]written 0, free lines is 4095 [19:19:52]Connected sock=11 [19:19:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 2B 01 00 00 C9 CC 23 01 26 DB 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 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 AE 00 00 00 F4 03 04 00 D7 66 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 27 04 04 00 75 2C 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 76 2C 01 00 35 04 06 00 54 66 A9 9C B7 A4 70 D3 DC 48 E7 58 86 C4 [19:19:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 19 64 47 00 B5 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 34 36 35 32 10 04 04 00 76 2C 01 00 F4 03 04 00 5C 0E 25 66 B6 04 01 00 00 BD 8A D4 50 3D A5 F6 7B [19:19:53]CommunicateWithHost err = 0 [19:19:53]CheckOFDResponse [19:19:53]1017 (14) - 77093643461234 [19:19:53]1041 (16) - 0000000000874652 [19:19:53]1040 (4) - 76918 [19:19:53]1012 (4) - 21.04.2024 13:02 [19:19:53]1206 (1) - 0 [19:19:53]OFD Sender: Remove packet 76918 [19:19:53]ProducePacketName [19:19:53]name=ofd_packets/00076918 [19:19:53]NVStorageDeleteData [19:19:53]Write to MH i2c: 01 00 00 96 08 9E [19:19:53]Write i2c OK [19:19:53]MH_I2C_Read... [19:19:53]Read from MH i2c: 01 [19:19:53]MH_I2C_Read... [19:19:53]Read from MH i2c: 01 07 00 [19:19:53]MH_I2C_Read... [19:19:53]Read from MH i2c: 01 07 00 96 08 00 00 00 00 00 49 0D FB [19:19:53]RasterBufferAndPrint [19:19:53]line [19:19:53]line [19:19:53]line [19:19:53]line [19:19:53]line [19:19:53]written 0, free lines is 3419 [19:19:53]MH_Cut [19:19:53]Write to MH i2c: D1 01 00 9D 08 01 77 [19:19:53]Write i2c OK [19:19:53]MH_I2C_Read... [19:19:53]Read from MH i2c: D1 [19:19:53]MH_I2C_Read... [19:19:53]Read from MH i2c: D1 01 00 [19:19:53]MH_I2C_Read... [19:19:53]Read from MH i2c: D1 01 00 9D 08 00 76 [19:19:53]Write to MH i2c: 01 00 00 9E 08 A6 [19:19:53]Write i2c OK [19:19:53]MH_I2C_Read... [19:19:53]OFD Sender: No OFD packet to send [19:19:53]*** Cut start [19:19:53]*** Partial cut [19:19:53]*** CUTSNS_PIN = 1 [19:19:53]*** CUTSNS_PIN = 0 [19:19:54]*** Brake cut motor [19:19:54]Read from MH i2c: 01 [19:19:54]MH_I2C_Read... [19:19:54]*** Stop cut motor [19:19:54]*** Cut end [19:19:54]Read from MH i2c: 01 07 00 [19:19:54]MH_I2C_Read... [19:19:54]Read from MH i2c: 01 07 00 9E 08 00 00 00 00 00 FF 0F BB [19:19:54]process_action close_receipt done [19:19:54]requested_data is exist [19:19:54]produce_requested_data [19:19:54]requested_item fm.sn is exist - process it [19:19:54]wFMCommunicate request_size=4 [19:19:54]MH_SAM_APDU [19:19:54]CAPDU: 80 11 00 00 [19:19:54]Write to MH i2c: E2 08 00 9F 08 80 11 00 00 00 00 00 00 21 [19:19:54]Write i2c OK [19:19:54]MH_I2C_Read... [19:19:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:54]Read from MH i2c: E2 [19:19:54]MH_I2C_Read... [19:19:54]Read from MH i2c: E2 17 00 [19:19:54]MH_I2C_Read... [19:19:54]Read from MH i2c: E2 17 00 9F 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 74 [19:19:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:19:54]wFMCommunicate OK [19:19:54]requested_item fd.num is exist - process it [19:19:54]SAM_PROTO_GetFieldsCounters [19:19:54]wFMCommunicate request_size=4 [19:19:54]MH_SAM_APDU [19:19:54]CAPDU: 80 13 00 00 [19:19:54]Write to MH i2c: E2 08 00 A0 08 80 13 00 00 00 00 00 00 24 [19:19:54]Write i2c OK [19:19:54]MH_I2C_Read... [19:19:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:19:54]Read from MH i2c: E2 [19:19:54]MH_I2C_Read... [19:19:54]Read from MH i2c: E2 62 00 [19:19:54]MH_I2C_Read... [19:19:54]Read from MH i2c: E2 62 00 A0 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 76 2C 01 00 0E 04 04 00 74 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 67 [19:19: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 76 2C 01 00 0E 04 04 00 74 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 [19:19:54]wFMCommunicate OK [19:19:54]SAM_PROTO_GetFieldsCounters done [19:19:54]requested_item shift.num is exist - process it [19:19:54]requested_item shift.opened is exist - process it [19:19:54]req_shift_opened [19:19:54]FM_GetShiftState [19:19:54]SAM_PROTO_GetShiftState [19:19:54]wFMCommunicate request_size=4 [19:19:54]MH_SAM_APDU [19:19:54]CAPDU: 80 13 01 00 [19:19:54]Write to MH i2c: E2 08 00 A1 08 80 13 01 00 00 00 00 00 26 [19:19:54]Write i2c OK [19:19:54]MH_I2C_Read... [19:19:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:54]Read from MH i2c: E2 [19:19:54]MH_I2C_Read... [19:19:54]Read from MH i2c: E2 0E 00 [19:19:54]MH_I2C_Read... [19:19:54]Read from MH i2c: E2 0E 00 A1 08 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 6D [19:19:54]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [19:19:54]wFMCommunicate OK [19:19:54]SAM_PROTO_GetShiftState done [19:19:54]FM_GetShiftState done [19:19:54]req_shift_opened done [19:19:54]requested_item shift.open_date is exist - process it [19:19:54]req_shift_open_date [19:19:54]req_shift_open_date done [19:19:54]produce_requested_data done [19:19:54]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76918,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [19:19:54]process_action_free close_receipt [19:19:54]json_value_free [19:19:54]json_value_free done [19:19:54]process_json_proto returns [19:19:54]Send response to host [19:19:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76918,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [19:19:54]free response buf [19:19:54]execute_script done [19:19:54]execute_script returns [19:19:54]free content buf [19:19:54]Sock 9.Close socket [19:19:54]Sock 9.Thread stoped [19:19:58]OFD Sender: No OFD packet to send [19:20:03]OFD Sender: No OFD packet to send [19:20:08]OFD Sender: No OFD packet to send [19:20:13]OFD Sender: No OFD packet to send [19:20:18]OFD Sender: No OFD packet to send [19:20:23]OFD Sender: No OFD packet to send [19:20:28]OFD Sender: No OFD packet to send [19:20:33]OFD Sender: No OFD packet to send [19:20:38]OFD Sender: No OFD packet to send [19:20:43]OFD Sender: No OFD packet to send [19:20:48]OFD Sender: No OFD packet to send [19:20:53]OFD Sender: No OFD packet to send [19:20:58]OFD Sender: No OFD packet to send [19:21:03]OFD Sender: No OFD packet to send [19:21:08]OFD Sender: No OFD packet to send [19:21:13]OFD Sender: No OFD packet to send [19:21:18]OFD Sender: No OFD packet to send [19:21:23]OFD Sender: No OFD packet to send [19:21:28]OFD Sender: No OFD packet to send [19:21:33]OFD Sender: No OFD packet to send [19:21:38]OFD Sender: No OFD packet to send [19:21:43]OFD Sender: No OFD packet to send [19:21:48]OFD Sender: No OFD packet to send [19:21:53]OFD Sender: No OFD packet to send [19:21:58]OFD Sender: No OFD packet to send [19:22:03]OFD Sender: No OFD packet to send [19:22:08]OFD Sender: No OFD packet to send [19:22:10]accept exits with 8 [19:22:10]New connection [19:22:10]New thread 3066801508 created [19:22:10]Thread 3066944868 joined [19:22:10]Waiting for new connection... [19:22:10] Sock 8.Parse request [19:22:10]Sock 8.Check first char [19:22:10]Sock 8.First char is OK [19:22:10]request: POST /json_proto HTTP/1.0 [19:22:10]Method: POST [19:22:10]URL: /json_proto [19:22:10]Method is POST - this is cgi request [19:22:10]url: /json_proto [19:22:10]query_string will be loaded in cgi processing [19:22:10]execute_cgi json_proto POST (null) [19:22:10]execute_cgi path=json_proto method=POST [19:22:10]POST find Content-Length [19:22:10]Host: 172.17.62.5:8080 [19:22:10]Content-Length: 682 [19:22:10]Content-Type: application/json [19:22:10] [19:22:10]POST finish read [19:22:10]Found Content-Length = 682 [19:22:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\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:22:10]execute_script... [19:22: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)191465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\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:22:10]POST & json_proto [19:22:10]process_json_proto [19:22:10]json parsed OK: [19:22:10]protocol is kg_v1.0 [19:22:10]action value=close_receipt [19:22:10]process_action close_receipt [19:22:10]cmd_close_receipt [19:22:10]MH_GetDate [19:22:10]Write to MH i2c: F0 00 00 A2 08 99 [19:22:10]Write i2c OK [19:22:10]MH_I2C_Read... [19:22:10]Read from MH i2c: F0 [19:22:10]MH_I2C_Read... [19:22:10]Read from MH i2c: F0 09 00 [19:22:10]MH_I2C_Read... [19:22:10]Read from MH i2c: F0 09 00 A2 08 00 63 67 25 66 F4 E9 65 64 9D [19:22:10]GetLastDocTimeStamp 1713727191 [19:22:10]current date 1713727331 [19:22:10]FM_GetShiftState [19:22:10]SAM_PROTO_GetShiftState [19:22:10]wFMCommunicate request_size=4 [19:22:10]MH_SAM_APDU [19:22:10]CAPDU: 80 13 01 00 [19:22:10]Write to MH i2c: E2 08 00 A3 08 80 13 01 00 00 00 00 00 28 [19:22:10]Write i2c OK [19:22:10]MH_I2C_Read... [19:22:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:10]Read from MH i2c: E2 [19:22:10]MH_I2C_Read... [19:22:10]Read from MH i2c: E2 0E 00 [19:22:10]MH_I2C_Read... [19:22:10]Read from MH i2c: E2 0E 00 A3 08 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 6F [19:22:10]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [19:22:10]wFMCommunicate OK [19:22:10]SAM_PROTO_GetShiftState done [19:22:10]FM_GetShiftState done [19:22:10]opened in 1713658965 [19:22:10]opened+sec_in_day 1713745365 [19:22:10]quantity*price = 200037 [19:22:10]sum+1 = 200039 [19:22:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 175 21.04.2024 19:22 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76919 ФПД: 189730829370369 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T192211&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76919&fm=189730829370369&tin=02508201610067®Number=0000000000091573&sum=200000 [19:22:11]StoreToDocumentArchive [19:22:11]shift 372 fd 76919 [19:22:11]save to /storage/0372/doc_00076919 [19:22:11]save last doc name /storage/0372/doc_00076919 to /storage/kkm_last_doc_name [19:22:11]save OK [19:22:11]Clear old archive folders... [19:22:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:22:11]tlvbuf is 00C769B0 [19:22:11]SAM_PROTO_ClearQueue [19:22:11]wFMCommunicate request_size=4 [19:22:11]MH_SAM_APDU [19:22:11]CAPDU: 80 09 00 00 [19:22:11]Write to MH i2c: E2 08 00 B0 08 80 09 00 00 00 00 00 00 2A [19:22:11]Write i2c OK [19:22:11]MH_I2C_Read... [19:22:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:22:11]Read from MH i2c: E2 [19:22:11]MH_I2C_Read... [19:22:11]Read from MH i2c: E2 03 00 [19:22:11]MH_I2C_Read... [19:22:11]Read from MH i2c: E2 03 00 B0 08 00 90 00 2C [19:22:11]RAPDU: 90 00 [19:22:11]wFMCommunicate OK [19:22:11]SAM_PROTO_ClearQueue done [19:22:11]KKMCreateOFDPacket [19:22:11]OFDProtocolAddRootSTLVToBuf [19:22:11]FM_MakeSignedData [19:22:11]FM_MakeSignedData [19:22:11]SAM_PROTO_SignData [19:22:11]wFMCommunicate request_size=4 [19:22:11]MH_SAM_APDU [19:22:11]CAPDU: 80 0D 01 02 [19:22:11]Write to MH i2c: E2 08 00 B1 08 80 0D 01 02 00 00 00 00 32 [19:22:11]Write i2c OK [19:22:11]MH_I2C_Read... [19:22:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:22:11]Read from MH i2c: E2 [19:22:11]MH_I2C_Read... [19:22:11]Read from MH i2c: E2 03 00 [19:22:11]MH_I2C_Read... [19:22:11]Read from MH i2c: E2 03 00 B1 08 00 90 00 2D [19:22:11]RAPDU: 90 00 [19:22:11]wFMCommunicate OK [19:22:11]wFMCommunicate request_size=255 [19:22:11]MH_SAM_APDU [19:22: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 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 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 AF 00 00 00 F4 03 04 00 63 67 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 77 2C 01 00 35 04 06 00 AC [19:22:11]Write to MH i2c: E2 02 01 B2 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 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 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 AF 00 00 00 F4 03 04 00 63 67 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 77 2C 01 00 35 04 06 00 AC 00 00 8D [19:22:11]Write i2c OK [19:22:11]MH_I2C_Read... [19:22:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:12]Read from MH i2c: E2 [19:22:12]MH_I2C_Read... [19:22:12]Read from MH i2c: E2 03 00 [19:22:12]MH_I2C_Read... [19:22:12]Read from MH i2c: E2 03 00 B2 08 00 90 00 2E [19:22:12]RAPDU: 90 00 [19:22:12]wFMCommunicate OK [19:22:12]wFMCommunicate request_size=10 [19:22:12]MH_SAM_APDU [19:22:12]CAPDU: 80 0D 02 02 05 8F 26 B0 04 01 [19:22:12]Write to MH i2c: E2 0D 00 B3 08 80 0D 02 02 05 00 8F 26 B0 04 01 00 00 A9 [19:22:12]Write i2c OK [19:22:12]MH_I2C_Read... [19:22:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:12]Read from MH i2c: E2 [19:22:12]MH_I2C_Read... [19:22:12]Read from MH i2c: E2 03 00 [19:22:12]MH_I2C_Read... [19:22:12]Read from MH i2c: E2 03 00 B3 08 00 90 00 2F [19:22:12]RAPDU: 90 00 [19:22:12]wFMCommunicate OK [19:22:12]wFMCommunicate request_size=4 [19:22:12]MH_SAM_APDU [19:22:12]CAPDU: 80 0D 03 02 [19:22:12]Write to MH i2c: E2 08 00 B4 08 80 0D 03 02 00 00 00 00 37 [19:22:12]Write i2c OK [19:22:12]MH_I2C_Read... [19:22:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:22:12]Read from MH i2c: E2 [19:22:12]MH_I2C_Read... [19:22:12]Read from MH i2c: E2 0B 00 [19:22:12]MH_I2C_Read... [19:22:12]Read from MH i2c: E2 0B 00 B4 08 00 28 17 B0 7C 1B 92 7C A0 90 00 6C [19:22:12]RAPDU: 28 17 B0 7C 1B 92 7C A0 90 00 [19:22:12]wFMCommunicate OK [19:22:12]SAM_PROTO_SignData done [19:22:12]FM_MakeSignedData done [19:22:12]CreateOFDProtocolMessage [19:22:12]wFMCommunicate request_size=4 [19:22:12]MH_SAM_APDU [19:22:12]CAPDU: 80 11 00 00 [19:22:12]Write to MH i2c: E2 08 00 B5 08 80 11 00 00 00 00 00 00 37 [19:22:12]Write i2c OK [19:22:12]MH_I2C_Read... [19:22:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:12]Read from MH i2c: E2 [19:22:12]MH_I2C_Read... [19:22:12]Read from MH i2c: E2 17 00 [19:22:12]MH_I2C_Read... [19:22:12]Read from MH i2c: E2 17 00 B5 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 8A [19:22:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:22:12]wFMCommunicate OK [19:22:12]CreateOFDProtocolMessage done [19:22:12]OFDSenderStorePacket 76919 [19:22:12]StoreOFDPacket docnum=76919 [19:22:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 30 33 07 01 7D 40 5A 03 01 00 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 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 AF 00 00 00 F4 03 04 00 63 67 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 77 2C 01 00 35 04 06 00 AC 8F 26 B0 04 01 28 17 B0 7C 1B 92 7C A0 [19:22:12]CheckFolder [19:22:12]dirname=/storage/ofd_packets [19:22:12]CheckFolder done [19:22:12]ProducePacketName [19:22:12]name=ofd_packets/00076919 [19:22:12]NVStorageSaveData ofd_packets/00076919 [19:22:12]File name is /storage/ofd_packets/00076919 [19:22:12]Write 301 bytes [19:22:12]NVStorageSaveData done [19:22:12]OFDSenderStorePacket done [19:22:12]KKMCreateOFDPacket done [19:22:12]NVStorageSaveData kkm_last_timestamp [19:22:12]File name is /storage/kkm_last_timestamp [19:22:12]Write 4 bytes [19:22:12]NVStorageSaveData done [19:22:12]ExternCall_PrintAddStr [19:22:12]wPrintStart [19:22:12]Write to MH i2c: 01 00 00 B6 08 BE [19:22:12]Write i2c OK [19:22:12]MH_I2C_Read... [19:22:12]Read from MH i2c: 01 [19:22:12]MH_I2C_Read... [19:22:12]Read from MH i2c: 01 07 00 [19:22:12]MH_I2C_Read... [19:22:12]Read from MH i2c: 01 07 00 B6 08 00 00 00 00 00 FF 0F D3 [19:22:12]RasterBufferAndPrint [19:22:12]line Счет N : (1)191465 [19:22:12]line ИНН: 02508201610067 [19:22:12]line Контрольно-Кассовый Чек [19:22:12]line ПРОДАЖА [19:22:12]line ТРК (МРК, ГНК) : 32 [19:22:12]line Товар: 2710124500 [19:22:12]line Аи-95-К-5 [19:22:12]line 27.440 * 72.90 [19:22:12]line = 2000.38 [19:22:12]line НДС 12% НСП 1% [19:22:12]line > о реализуемом товаре [19:22:12]line ОКРУГЛЕНИЕ: -0.38 [19:22:12]line ИТОГО: 2000.00 [19:22:12]line Внесено: 2000.00 [19:22:12]line СДАЧА: 0.00 [19:22:12]line НСП 1% : 17.70 [19:22:12]line НДС 12% : 212.43 [19:22:12]line Наличными: 2000.00 [19:22:12]line Безнал.: 0.00 [19:22:12]line Место: АЗС № 106 "Партнер Нефть" [19:22:12]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [19:22:12]line СНО: Общий режим [19:22:12]line Чек 175 21.04.2024 19:22 [19:22:12]line Смена: 372 ФФД: 1.0 [19:22:12]line ЗНМ: 0300000141 [19:22:12]line РНМ: 0000000000091573 [19:22:12]line Версия ККМ: 001 [19:22:12]line ФМ: 0000000000874652 [19:22:12]line ФД: 76919 [19:22:12]line ФПД: 189730829370369 [19:22:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T192211&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76919&fm=189730829370369&tin=02508201610067®Number=0000000000091573&sum=200000 [19:22:12]written 0, free lines is 4095 [19:22:12]OFD Sender: Processing packet 76919 [packets to send 129, broken 128] [19:22:12]ProducePacketName [19:22:12]name=ofd_packets/00076919 [19:22:12]OFD Sender: To server: pG, [19:22:12]CommunicateWithHost lk.salyk.kg:30040 [19:22:12]ConnectInit lk.salyk.kg [19:22:12]Connected sock=11 [19:22:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 30 33 07 01 7D 40 5A 03 01 00 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 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 AF 00 00 00 F4 03 04 00 63 67 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 77 2C 01 00 35 04 06 00 AC 8F 26 B0 04 01 28 17 B0 7C 1B 92 7C A0 [19:22:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 C8 C2 47 00 9C FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 77 2C 01 00 F4 03 04 00 E8 0E 25 66 B6 04 01 00 00 F5 F3 1F BD 0C 6D 81 EA [19:22:13]CommunicateWithHost err = 0 [19:22:13]CheckOFDResponse [19:22:13]1017 (14) - 77093643461234 [19:22:13]1041 (16) - 0000000000874652 [19:22:13]1040 (4) - 76919 [19:22:13]1012 (4) - 21.04.2024 13:04 [19:22:13]1206 (1) - 0 [19:22:13]OFD Sender: Remove packet 76919 [19:22:13]ProducePacketName [19:22:13]name=ofd_packets/00076919 [19:22:13]NVStorageDeleteData [19:22:13]Write to MH i2c: 01 00 00 E0 08 E8 [19:22:13]Write i2c OK [19:22:13]MH_I2C_Read... [19:22:13]Read from MH i2c: 01 [19:22:13]MH_I2C_Read... [19:22:13]Read from MH i2c: 01 07 00 [19:22:13]MH_I2C_Read... [19:22:13]Read from MH i2c: 01 07 00 E0 08 00 00 00 00 00 F7 0C F2 [19:22:13]RasterBufferAndPrint [19:22:13]line [19:22:13]line [19:22:13]line [19:22:13]line [19:22:13]line [19:22:13]written 0, free lines is 3327 [19:22:13]MH_Cut [19:22:13]Write to MH i2c: D1 01 00 E7 08 01 C1 [19:22:13]Write i2c OK [19:22:13]MH_I2C_Read... [19:22:13]Read from MH i2c: D1 [19:22:13]MH_I2C_Read... [19:22:13]Read from MH i2c: D1 01 00 [19:22:13]MH_I2C_Read... [19:22:13]Read from MH i2c: D1 01 00 E7 08 00 C0 [19:22:13]Write to MH i2c: 01 00 00 E8 08 F0 [19:22:13]Write i2c OK [19:22:13]MH_I2C_Read... [19:22:13]OFD Sender: No OFD packet to send [19:22:13]*** Cut start [19:22:13]*** Partial cut [19:22:13]*** CUTSNS_PIN = 1 [19:22:13]*** CUTSNS_PIN = 0 [19:22:14]*** Brake cut motor [19:22:14]Read from MH i2c: 01 [19:22:14]MH_I2C_Read... [19:22:14]*** Stop cut motor [19:22:14]*** Cut end [19:22:14]Read from MH i2c: 01 07 00 [19:22:14]MH_I2C_Read... [19:22:14]Read from MH i2c: 01 07 00 E8 08 00 00 00 00 00 FF 0F 05 [19:22:14]process_action close_receipt done [19:22:14]requested_data is exist [19:22:14]produce_requested_data [19:22:14]requested_item fm.sn is exist - process it [19:22:14]wFMCommunicate request_size=4 [19:22:14]MH_SAM_APDU [19:22:14]CAPDU: 80 11 00 00 [19:22:14]Write to MH i2c: E2 08 00 E9 08 80 11 00 00 00 00 00 00 6B [19:22:14]Write i2c OK [19:22:14]MH_I2C_Read... [19:22:14]Read from MH i2c: E2 [19:22:14]MH_I2C_Read... [19:22:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:14]Read from MH i2c: E2 17 00 [19:22:14]MH_I2C_Read... [19:22:14]Read from MH i2c: E2 17 00 E9 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 BE [19:22:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:22:14]wFMCommunicate OK [19:22:14]requested_item fd.num is exist - process it [19:22:14]SAM_PROTO_GetFieldsCounters [19:22:14]wFMCommunicate request_size=4 [19:22:14]MH_SAM_APDU [19:22:14]CAPDU: 80 13 00 00 [19:22:14]Write to MH i2c: E2 08 00 EA 08 80 13 00 00 00 00 00 00 6E [19:22:14]Write i2c OK [19:22:14]MH_I2C_Read... [19:22:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:22:14]Read from MH i2c: E2 [19:22:14]MH_I2C_Read... [19:22:14]Read from MH i2c: E2 62 00 [19:22:14]MH_I2C_Read... [19:22:14]Read from MH i2c: E2 62 00 EA 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 77 2C 01 00 0E 04 04 00 74 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 B5 [19:22: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 77 2C 01 00 0E 04 04 00 74 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 [19:22:14]wFMCommunicate OK [19:22:14]SAM_PROTO_GetFieldsCounters done [19:22:14]requested_item shift.num is exist - process it [19:22:14]requested_item shift.opened is exist - process it [19:22:14]req_shift_opened [19:22:14]FM_GetShiftState [19:22:14]SAM_PROTO_GetShiftState [19:22:14]wFMCommunicate request_size=4 [19:22:14]MH_SAM_APDU [19:22:14]CAPDU: 80 13 01 00 [19:22:14]Write to MH i2c: E2 08 00 EB 08 80 13 01 00 00 00 00 00 70 [19:22:14]Write i2c OK [19:22:14]MH_I2C_Read... [19:22:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:14]Read from MH i2c: E2 [19:22:14]MH_I2C_Read... [19:22:14]Read from MH i2c: E2 0E 00 [19:22:14]MH_I2C_Read... [19:22:14]Read from MH i2c: E2 0E 00 EB 08 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 B7 [19:22:14]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [19:22:14]wFMCommunicate OK [19:22:14]SAM_PROTO_GetShiftState done [19:22:14]FM_GetShiftState done [19:22:14]req_shift_opened done [19:22:14]requested_item shift.open_date is exist - process it [19:22:14]req_shift_open_date [19:22:14]req_shift_open_date done [19:22:14]produce_requested_data done [19:22:14]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76919,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [19:22:14]process_action_free close_receipt [19:22:14]json_value_free [19:22:14]json_value_free done [19:22:14]process_json_proto returns [19:22:14]Send response to host [19:22:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76919,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [19:22:14]free response buf [19:22:14]execute_script done [19:22:14]execute_script returns [19:22:14]free content buf [19:22:14]Sock 8.Close socket [19:22:14]Sock 8.Thread stoped [19:22:18]OFD Sender: No OFD packet to send [19:22:23]OFD Sender: No OFD packet to send [19:22:28]OFD Sender: No OFD packet to send [19:22:33]OFD Sender: No OFD packet to send [19:22:38]OFD Sender: No OFD packet to send [19:22:43]OFD Sender: No OFD packet to send [19:22:48]OFD Sender: No OFD packet to send [19:22:53]OFD Sender: No OFD packet to send [19:22:58]OFD Sender: No OFD packet to send [19:23:03]OFD Sender: No OFD packet to send [19:23:08]OFD Sender: No OFD packet to send [19:23:13]OFD Sender: No OFD packet to send [19:23:18]OFD Sender: No OFD packet to send [19:23:23]OFD Sender: No OFD packet to send [19:23:28]OFD Sender: No OFD packet to send [19:23:33]OFD Sender: No OFD packet to send [19:23:38]OFD Sender: No OFD packet to send [19:23:43]OFD Sender: No OFD packet to send [19:23:48]OFD Sender: No OFD packet to send [19:23:53]OFD Sender: No OFD packet to send [19:23:58]OFD Sender: No OFD packet to send [19:24:03]OFD Sender: No OFD packet to send [19:24:08]OFD Sender: No OFD packet to send [19:24:13]OFD Sender: No OFD packet to send [19:24:18]OFD Sender: No OFD packet to send [19:24:23]OFD Sender: No OFD packet to send [19:24:28]OFD Sender: No OFD packet to send [19:24:33]OFD Sender: No OFD packet to send [19:24:38]OFD Sender: No OFD packet to send [19:24:43]OFD Sender: No OFD packet to send [19:24:48]OFD Sender: No OFD packet to send [19:24:53]OFD Sender: No OFD packet to send [19:24:58]OFD Sender: No OFD packet to send [19:25:03]OFD Sender: No OFD packet to send [19:25:08]OFD Sender: No OFD packet to send [19:25:13]OFD Sender: No OFD packet to send [19:25:18]OFD Sender: No OFD packet to send [19:25:23]OFD Sender: No OFD packet to send [19:25:28]OFD Sender: No OFD packet to send [19:25:33]OFD Sender: No OFD packet to send [19:25:38]OFD Sender: No OFD packet to send [19:25:43]OFD Sender: No OFD packet to send [19:25:48]OFD Sender: No OFD packet to send [19:25:53]OFD Sender: No OFD packet to send [19:25:58]OFD Sender: No OFD packet to send [19:26:03]OFD Sender: No OFD packet to send [19:26:08]OFD Sender: No OFD packet to send [19:26:13]OFD Sender: No OFD packet to send [19:26:18]OFD Sender: No OFD packet to send [19:26:23]OFD Sender: No OFD packet to send [19:26:28]OFD Sender: No OFD packet to send [19:26:33]OFD Sender: No OFD packet to send [19:26:38]OFD Sender: No OFD packet to send [19:26:43]OFD Sender: No OFD packet to send [19:26:48]OFD Sender: No OFD packet to send [19:26:53]OFD Sender: No OFD packet to send [19:26:58]OFD Sender: No OFD packet to send [19:27:03]OFD Sender: No OFD packet to send [19:27:08]OFD Sender: No OFD packet to send [19:27:14]OFD Sender: No OFD packet to send [19:27:19]OFD Sender: No OFD packet to send [19:27:24]OFD Sender: No OFD packet to send [19:27:29]OFD Sender: No OFD packet to send [19:27:34]OFD Sender: No OFD packet to send [19:27:39]OFD Sender: No OFD packet to send [19:27:44]OFD Sender: No OFD packet to send [19:27:49]OFD Sender: No OFD packet to send [19:27:54]OFD Sender: No OFD packet to send [19:27:59]OFD Sender: No OFD packet to send [19:28:04]OFD Sender: No OFD packet to send [19:28:09]OFD Sender: No OFD packet to send [19:28:14]OFD Sender: No OFD packet to send [19:28:19]OFD Sender: No OFD packet to send [19:28:24]OFD Sender: No OFD packet to send [19:28:29]OFD Sender: No OFD packet to send [19:28:34]OFD Sender: No OFD packet to send [19:28:39]OFD Sender: No OFD packet to send [19:28:44]OFD Sender: No OFD packet to send [19:28:49]OFD Sender: No OFD packet to send [19:28:54]OFD Sender: No OFD packet to send [19:28:59]OFD Sender: No OFD packet to send [19:29:04]OFD Sender: No OFD packet to send [19:29:09]OFD Sender: No OFD packet to send [19:29:14]OFD Sender: No OFD packet to send [19:29:19]OFD Sender: No OFD packet to send [19:29:24]OFD Sender: No OFD packet to send [19:29:29]OFD Sender: No OFD packet to send [19:29:34]OFD Sender: No OFD packet to send [19:29:39]OFD Sender: No OFD packet to send [19:29:44]OFD Sender: No OFD packet to send [19:29:49]OFD Sender: No OFD packet to send [19:29:54]OFD Sender: No OFD packet to send [19:29:59]OFD Sender: No OFD packet to send [19:30:04]OFD Sender: No OFD packet to send [19:30:09]OFD Sender: No OFD packet to send [19:30:14]OFD Sender: No OFD packet to send [19:30:19]OFD Sender: No OFD packet to send [19:30:24]OFD Sender: No OFD packet to send [19:30:29]OFD Sender: No OFD packet to send [19:30:34]OFD Sender: No OFD packet to send [19:30:39]OFD Sender: No OFD packet to send [19:30:44]OFD Sender: No OFD packet to send [19:30:49]OFD Sender: No OFD packet to send [19:30:54]OFD Sender: No OFD packet to send [19:30:59]OFD Sender: No OFD packet to send [19:31:04]OFD Sender: No OFD packet to send [19:31:09]OFD Sender: No OFD packet to send [19:31:14]OFD Sender: No OFD packet to send [19:31:19]OFD Sender: No OFD packet to send [19:31:24]OFD Sender: No OFD packet to send [19:31:29]OFD Sender: No OFD packet to send [19:31:34]OFD Sender: No OFD packet to send [19:31:39]OFD Sender: No OFD packet to send [19:31:44]OFD Sender: No OFD packet to send [19:31:49]OFD Sender: No OFD packet to send [19:31:54]OFD Sender: No OFD packet to send [19:31:59]OFD Sender: No OFD packet to send [19:32:04]OFD Sender: No OFD packet to send [19:32:09]OFD Sender: No OFD packet to send [19:32:14]OFD Sender: No OFD packet to send [19:32:19]OFD Sender: No OFD packet to send [19:32:24]OFD Sender: No OFD packet to send [19:32:29]OFD Sender: No OFD packet to send [19:32:34]OFD Sender: No OFD packet to send [19:32:39]OFD Sender: No OFD packet to send [19:32:44]OFD Sender: No OFD packet to send [19:32:49]OFD Sender: No OFD packet to send [19:32:54]OFD Sender: No OFD packet to send [19:32:59]OFD Sender: No OFD packet to send [19:33:04]OFD Sender: No OFD packet to send [19:33:09]OFD Sender: No OFD packet to send [19:33:14]OFD Sender: No OFD packet to send [19:33:19]OFD Sender: No OFD packet to send [19:33:24]OFD Sender: No OFD packet to send [19:33:29]OFD Sender: No OFD packet to send [19:33:34]OFD Sender: No OFD packet to send [19:33:39]OFD Sender: No OFD packet to send [19:33:44]OFD Sender: No OFD packet to send [19:33:49]OFD Sender: No OFD packet to send [19:33:54]OFD Sender: No OFD packet to send [19:33:59]OFD Sender: No OFD packet to send [19:34:04]OFD Sender: No OFD packet to send [19:34:09]OFD Sender: No OFD packet to send [19:34:14]OFD Sender: No OFD packet to send [19:34:19]OFD Sender: No OFD packet to send [19:34:24]OFD Sender: No OFD packet to send [19:34:29]OFD Sender: No OFD packet to send [19:34:34]OFD Sender: No OFD packet to send [19:34:39]OFD Sender: No OFD packet to send [19:34:44]OFD Sender: No OFD packet to send [19:34:49]OFD Sender: No OFD packet to send [19:34:54]OFD Sender: No OFD packet to send [19:34:59]OFD Sender: No OFD packet to send [19:35:04]OFD Sender: No OFD packet to send [19:35:09]OFD Sender: No OFD packet to send [19:35:14]OFD Sender: No OFD packet to send [19:35:19]OFD Sender: No OFD packet to send [19:35:24]OFD Sender: No OFD packet to send [19:35:29]OFD Sender: No OFD packet to send [19:35:34]OFD Sender: No OFD packet to send [19:35:39]OFD Sender: No OFD packet to send [19:35:44]OFD Sender: No OFD packet to send [19:35:49]OFD Sender: No OFD packet to send [19:35:54]OFD Sender: No OFD packet to send [19:35:59]OFD Sender: No OFD packet to send [19:36:04]OFD Sender: No OFD packet to send [19:36:09]OFD Sender: No OFD packet to send [19:36:14]OFD Sender: No OFD packet to send [19:36:19]OFD Sender: No OFD packet to send [19:36:24]OFD Sender: No OFD packet to send [19:36:29]OFD Sender: No OFD packet to send [19:36:34]OFD Sender: No OFD packet to send [19:36:39]OFD Sender: No OFD packet to send [19:36:44]OFD Sender: No OFD packet to send [19:36:49]OFD Sender: No OFD packet to send [19:36:54]OFD Sender: No OFD packet to send [19:36:59]OFD Sender: No OFD packet to send [19:37:04]OFD Sender: No OFD packet to send [19:37:09]OFD Sender: No OFD packet to send [19:37:14]OFD Sender: No OFD packet to send [19:37:19]OFD Sender: No OFD packet to send [19:37:24]OFD Sender: No OFD packet to send [19:37:29]OFD Sender: No OFD packet to send [19:37:34]OFD Sender: No OFD packet to send [19:37:39]OFD Sender: No OFD packet to send [19:37:44]OFD Sender: No OFD packet to send [19:37:49]OFD Sender: No OFD packet to send [19:37:54]OFD Sender: No OFD packet to send [19:37:59]OFD Sender: No OFD packet to send [19:38:04]OFD Sender: No OFD packet to send [19:38:09]OFD Sender: No OFD packet to send [19:38:14]OFD Sender: No OFD packet to send [19:38:19]OFD Sender: No OFD packet to send [19:38:24]OFD Sender: No OFD packet to send [19:38:29]OFD Sender: No OFD packet to send [19:38:34]OFD Sender: No OFD packet to send [19:38:39]OFD Sender: No OFD packet to send [19:38:44]OFD Sender: No OFD packet to send [19:38:49]OFD Sender: No OFD packet to send [19:38:54]OFD Sender: No OFD packet to send [19:38:59]OFD Sender: No OFD packet to send [19:39:04]OFD Sender: No OFD packet to send [19:39:09]OFD Sender: No OFD packet to send [19:39:14]OFD Sender: No OFD packet to send [19:39:19]OFD Sender: No OFD packet to send [19:39:24]OFD Sender: No OFD packet to send [19:39:29]OFD Sender: No OFD packet to send [19:39:34]OFD Sender: No OFD packet to send [19:39:39]OFD Sender: No OFD packet to send [19:39:44]OFD Sender: No OFD packet to send [19:39:49]OFD Sender: No OFD packet to send [19:39:54]OFD Sender: No OFD packet to send [19:39:59]OFD Sender: No OFD packet to send [19:40:04]OFD Sender: No OFD packet to send [19:40:09]OFD Sender: No OFD packet to send [19:40:14]OFD Sender: No OFD packet to send [19:40:19]OFD Sender: No OFD packet to send [19:40:24]OFD Sender: No OFD packet to send [19:40:29]OFD Sender: No OFD packet to send [19:40:34]OFD Sender: No OFD packet to send [19:40:39]OFD Sender: No OFD packet to send [19:40:44]OFD Sender: No OFD packet to send [19:40:49]OFD Sender: No OFD packet to send [19:40:54]OFD Sender: No OFD packet to send [19:40:59]OFD Sender: No OFD packet to send [19:41:04]OFD Sender: No OFD packet to send [19:41:09]OFD Sender: No OFD packet to send [19:41:14]OFD Sender: No OFD packet to send [19:41:20]OFD Sender: No OFD packet to send [19:41:25]OFD Sender: No OFD packet to send [19:41:30]OFD Sender: No OFD packet to send [19:41:35]OFD Sender: No OFD packet to send [19:41:40]OFD Sender: No OFD packet to send [19:41:45]OFD Sender: No OFD packet to send [19:41:50]OFD Sender: No OFD packet to send [19:41:55]OFD Sender: No OFD packet to send [19:42:00]OFD Sender: No OFD packet to send [19:42:05]OFD Sender: No OFD packet to send [19:42:10]OFD Sender: No OFD packet to send [19:42:14]accept exits with 9 [19:42:14]New connection [19:42:14]New thread 3066944868 created [19:42:14]Thread 3066801508 joined [19:42:14]Waiting for new connection... [19:42:14] Sock 9.Parse request [19:42:14]Sock 9.Check first char [19:42:14]Sock 9.First char is OK [19:42:14]request: POST /json_proto HTTP/1.0 [19:42:14]Method: POST [19:42:14]URL: /json_proto [19:42:14]Method is POST - this is cgi request [19:42:14]url: /json_proto [19:42:14]query_string will be loaded in cgi processing [19:42:14]execute_cgi json_proto POST (null) [19:42:14]execute_cgi path=json_proto method=POST [19:42:14]POST find Content-Length [19:42:14]Host: 172.17.62.5:8080 [19:42:14]Content-Length: 1157 [19:42:14]Content-Type: application/json [19:42:14] [19:42:14]POST finish read [19:42:14]Found Content-Length = 1157 [19:42:14]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041B\u044B\u043C\u0430\u0440\u0435\u0432\u0430 \u0412. \u000A\u0421\u0447\u0435\u0442 N : (1)191466\u000A21.04.2024 19:23\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 : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 1288.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30086781\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:14]execute_script... [19:42:14]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041B\u044B\u043C\u0430\u0440\u0435\u0432\u0430 \u0412. \u000A\u0421\u0447\u0435\u0442 N : (1)191466\u000A21.04.2024 19:23\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 : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 1288.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30086781\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:14]POST & json_proto [19:42:14]process_json_proto [19:42:14]json parsed OK: [19:42:14]protocol is kg_v1.0 [19:42:14]action value=print_text [19:42:14]process_action print_text [19:42:14]cmd_print_text [19:42:14]ExternCall_PrintAddStr [19:42:14]wPrintStart [19:42:14]Write to MH i2c: 01 00 00 EC 08 F4 [19:42:14]Write i2c OK [19:42:14]MH_I2C_Read... [19:42:14]Read from MH i2c: 01 [19:42:14]MH_I2C_Read... [19:42:14]Read from MH i2c: 01 07 00 [19:42:14]MH_I2C_Read... [19:42:14]Read from MH i2c: 01 07 00 EC 08 00 00 00 00 00 FF 0F 09 [19:42:14]RasterBufferAndPrint [19:42:14]line *****ТОВАРНЫЙ ЧЕК***** [19:42:14]line АЗС 106 [19:42:14]line Партнер нефть [19:42:14]line 02508201610067 [19:42:14]line Кассир : Лымарева В. [19:42:14]line Счет N : (1)191466 [19:42:14]line 21.04.2024 19:23 [19:42:14]line ПРОДАЖА [19:42:14]line ТРК (МРК, ГНК): 33 [19:42:14]line Вид ГСМ : 2710124130 [19:42:14]line Аи-92-К-5 [19:42:14]line 20.000 x 64.40 [19:42:14]line ИТОГ: 1288.00 [19:42:14]line Тип оплаты: Талоны: ТК ГПНА Online [19:42:14]line 30086781 [19:42:14]line ______________________ [19:42:14]line (подпись) [19:42:14]written 0, free lines is 4095 [19:42:14]Write to MH i2c: 01 00 00 00 09 09 [19:42:14]Write i2c OK [19:42:14]MH_I2C_Read... [19:42:14]Read from MH i2c: 01 [19:42:14]MH_I2C_Read... [19:42:14]Read from MH i2c: 01 07 00 [19:42:14]MH_I2C_Read... [19:42:14]Read from MH i2c: 01 07 00 00 09 00 00 00 00 00 11 0E 2F [19:42:14]RasterBufferAndPrint [19:42:14]line [19:42:14]line [19:42:14]line [19:42:14]line [19:42:14]line [19:42:14]written 0, free lines is 3603 [19:42:14]MH_Cut [19:42:14]Write to MH i2c: D1 01 00 07 09 01 E2 [19:42:14]Write i2c OK [19:42:14]MH_I2C_Read... [19:42:14]Read from MH i2c: D1 [19:42:14]MH_I2C_Read... [19:42:14]Read from MH i2c: D1 01 00 [19:42:14]MH_I2C_Read... [19:42:14]Read from MH i2c: D1 01 00 07 09 00 E1 [19:42:14]Write to MH i2c: 01 00 00 08 09 11 [19:42:14]Write i2c OK [19:42:14]MH_I2C_Read... [19:42:14]*** Cut start [19:42:14]*** Partial cut [19:42:14]*** CUTSNS_PIN = 1 [19:42:14]*** CUTSNS_PIN = 0 [19:42:15]OFD Sender: No OFD packet to send [19:42:15]*** Brake cut motor [19:42:15]Read from MH i2c: 01 [19:42:15]MH_I2C_Read... [19:42:15]*** Stop cut motor [19:42:15]*** Cut end [19:42:15]Read from MH i2c: 01 07 00 [19:42:15]MH_I2C_Read... [19:42:15]Read from MH i2c: 01 07 00 08 09 00 00 00 00 00 FF 0F 26 [19:42:15]process_action print_text done [19:42:15]requested_data is exist [19:42:15]produce_requested_data [19:42:15]requested_item fm.sn is exist - process it [19:42:15]wFMCommunicate request_size=4 [19:42:15]MH_SAM_APDU [19:42:15]CAPDU: 80 11 00 00 [19:42:15]Write to MH i2c: E2 08 00 09 09 80 11 00 00 00 00 00 00 8C [19:42:15]Write i2c OK [19:42:15]MH_I2C_Read... [19:42:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:15]Read from MH i2c: E2 [19:42:15]MH_I2C_Read... [19:42:15]Read from MH i2c: E2 17 00 [19:42:15]MH_I2C_Read... [19:42:15]Read from MH i2c: E2 17 00 09 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 DF [19:42:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:42:15]wFMCommunicate OK [19:42:15]requested_item fd.num is exist - process it [19:42:15]SAM_PROTO_GetFieldsCounters [19:42:15]wFMCommunicate request_size=4 [19:42:15]MH_SAM_APDU [19:42:15]CAPDU: 80 13 00 00 [19:42:15]Write to MH i2c: E2 08 00 0A 09 80 13 00 00 00 00 00 00 8F [19:42:15]Write i2c OK [19:42:15]MH_I2C_Read... [19:42:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:42:15]Read from MH i2c: E2 [19:42:15]MH_I2C_Read... [19:42:15]Read from MH i2c: E2 62 00 [19:42:15]MH_I2C_Read... [19:42:15]Read from MH i2c: E2 62 00 0A 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 77 2C 01 00 0E 04 04 00 74 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 D6 [19: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 77 2C 01 00 0E 04 04 00 74 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 [19:42:15]wFMCommunicate OK [19:42:15]SAM_PROTO_GetFieldsCounters done [19:42:15]requested_item shift.num is exist - process it [19:42:15]requested_item shift.opened is exist - process it [19:42:15]req_shift_opened [19:42:15]FM_GetShiftState [19:42:15]SAM_PROTO_GetShiftState [19:42:15]wFMCommunicate request_size=4 [19:42:15]MH_SAM_APDU [19:42:15]CAPDU: 80 13 01 00 [19:42:15]Write to MH i2c: E2 08 00 0B 09 80 13 01 00 00 00 00 00 91 [19:42:15]Write i2c OK [19:42:15]MH_I2C_Read... [19:42:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:15]Read from MH i2c: E2 [19:42:15]MH_I2C_Read... [19:42:15]Read from MH i2c: E2 0E 00 [19:42:15]MH_I2C_Read... [19:42:15]Read from MH i2c: E2 0E 00 0B 09 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 D8 [19:42:15]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [19:42:15]wFMCommunicate OK [19:42:15]SAM_PROTO_GetShiftState done [19:42:15]FM_GetShiftState done [19:42:15]req_shift_opened done [19:42:15]requested_item shift.open_date is exist - process it [19:42:15]req_shift_open_date [19:42:15]req_shift_open_date done [19:42:15]produce_requested_data done [19:42:15]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76919,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [19:42:15]process_action_free print_text [19:42:15]json_value_free [19:42:15]json_value_free done [19:42:15]process_json_proto returns [19:42:15]Send response to host [19:42:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76919,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [19:42:15]free response buf [19:42:15]execute_script done [19:42:15]execute_script returns [19:42:15]free content buf [19:42:15]Sock 9.Close socket [19:42:15]Sock 9.Thread stoped [19:42:20]OFD Sender: No OFD packet to send [19:42:25]OFD Sender: No OFD packet to send [19:42:30]OFD Sender: No OFD packet to send [19:42:35]OFD Sender: No OFD packet to send [19:42:40]OFD Sender: No OFD packet to send [19:42:45]OFD Sender: No OFD packet to send [19:42:50]OFD Sender: No OFD packet to send [19:42:55]OFD Sender: No OFD packet to send [19:43:00]OFD Sender: No OFD packet to send [19:43:05]OFD Sender: No OFD packet to send [19:43:10]OFD Sender: No OFD packet to send [19:43:15]OFD Sender: No OFD packet to send [19:43:20]OFD Sender: No OFD packet to send [19:43:25]OFD Sender: No OFD packet to send [19:43:30]OFD Sender: No OFD packet to send [19:43:35]OFD Sender: No OFD packet to send [19:43:40]OFD Sender: No OFD packet to send [19:43:45]OFD Sender: No OFD packet to send [19:43:50]OFD Sender: No OFD packet to send [19:43:55]OFD Sender: No OFD packet to send [19:44:00]OFD Sender: No OFD packet to send [19:44:05]OFD Sender: No OFD packet to send [19:44:10]OFD Sender: No OFD packet to send [19:44:15]OFD Sender: No OFD packet to send [19:44:20]OFD Sender: No OFD packet to send [19:44:25]OFD Sender: No OFD packet to send [19:44:30]OFD Sender: No OFD packet to send [19:44:35]OFD Sender: No OFD packet to send [19:44:40]OFD Sender: No OFD packet to send [19:44:45]OFD Sender: No OFD packet to send [19:44:50]OFD Sender: No OFD packet to send [19:44:53]accept exits with 10 [19:44:53]New connection [19:44:53]New thread 3066801508 created [19:44:53]Thread 3066944868 joined [19:44:53]Waiting for new connection... [19:44:53] Sock 10.Parse request [19:44:53]Sock 10.Check first char [19:44:53]Sock 10.First char is OK [19:44:53]request: POST /json_proto HTTP/1.0 [19:44:53]Method: POST [19:44:53]URL: /json_proto [19:44:53]Method is POST - this is cgi request [19:44:53]url: /json_proto [19:44:53]query_string will be loaded in cgi processing [19:44:53]execute_cgi json_proto POST (null) [19:44:53]execute_cgi path=json_proto method=POST [19:44:53]POST find Content-Length [19:44:53]Host: 172.17.62.5:8080 [19:44:53]Content-Length: 670 [19:44:53]Content-Type: application/json [19:44:53] [19:44:53]POST finish read [19:44:53]Found Content-Length = 670 [19:44:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 7.650, "sum" : 500.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:44:53]execute_script... [19:44: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)191467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 7.650, "sum" : 500.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:44:53]POST & json_proto [19:44:53]process_json_proto [19:44:53]json parsed OK: [19:44:53]protocol is kg_v1.0 [19:44:53]action value=close_receipt [19:44:53]process_action close_receipt [19:44:53]cmd_close_receipt [19:44:53]MH_GetDate [19:44:53]Write to MH i2c: F0 00 00 0C 09 04 [19:44:53]Write i2c OK [19:44:53]MH_I2C_Read... [19:44:53]Read from MH i2c: F0 [19:44:53]MH_I2C_Read... [19:44:53]Read from MH i2c: F0 09 00 [19:44:53]MH_I2C_Read... [19:44:53]Read from MH i2c: F0 09 00 0C 09 00 B6 6C 25 66 F4 E9 65 64 60 [19:44:53]GetLastDocTimeStamp 1713727331 [19:44:53]current date 1713728694 [19:44:53]FM_GetShiftState [19:44:53]SAM_PROTO_GetShiftState [19:44:53]wFMCommunicate request_size=4 [19:44:53]MH_SAM_APDU [19:44:53]CAPDU: 80 13 01 00 [19:44:53]Write to MH i2c: E2 08 00 0D 09 80 13 01 00 00 00 00 00 93 [19:44:53]Write i2c OK [19:44:53]MH_I2C_Read... [19:44:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:53]Read from MH i2c: E2 [19:44:53]MH_I2C_Read... [19:44:53]Read from MH i2c: E2 0E 00 [19:44:53]MH_I2C_Read... [19:44:53]Read from MH i2c: E2 0E 00 0D 09 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 DA [19:44:53]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [19:44:53]wFMCommunicate OK [19:44:53]SAM_PROTO_GetShiftState done [19:44:53]FM_GetShiftState done [19:44:53]opened in 1713658965 [19:44:53]opened+sec_in_day 1713745365 [19:44:53]quantity*price = 50031 [19:44:53]sum+1 = 50032 [19:44:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 176 21.04.2024 19:44 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76920 ФПД: 277983529516442 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T194454&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76920&fm=277983529516442&tin=02508201610067®Number=0000000000091573&sum=50000 [19:44:54]StoreToDocumentArchive [19:44:54]shift 372 fd 76920 [19:44:54]save to /storage/0372/doc_00076920 [19:44:54]save last doc name /storage/0372/doc_00076920 to /storage/kkm_last_doc_name [19:44:54]save OK [19:44:54]Clear old archive folders... [19:44:54]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:44:54]tlvbuf is 00C97E40 [19:44:54]SAM_PROTO_ClearQueue [19:44:54]wFMCommunicate request_size=4 [19:44:54]MH_SAM_APDU [19:44:54]CAPDU: 80 09 00 00 [19:44:54]Write to MH i2c: E2 08 00 1A 09 80 09 00 00 00 00 00 00 95 [19:44:54]Write i2c OK [19:44:54]MH_I2C_Read... [19:44:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:44:54]Read from MH i2c: E2 [19:44:54]MH_I2C_Read... [19:44:54]Read from MH i2c: E2 03 00 [19:44:54]MH_I2C_Read... [19:44:54]Read from MH i2c: E2 03 00 1A 09 00 90 00 97 [19:44:54]RAPDU: 90 00 [19:44:54]wFMCommunicate OK [19:44:54]SAM_PROTO_ClearQueue done [19:44:54]KKMCreateOFDPacket [19:44:54]OFDProtocolAddRootSTLVToBuf [19:44:54]FM_MakeSignedData [19:44:54]FM_MakeSignedData [19:44:54]SAM_PROTO_SignData [19:44:54]wFMCommunicate request_size=4 [19:44:54]MH_SAM_APDU [19:44:54]CAPDU: 80 0D 01 02 [19:44:54]Write to MH i2c: E2 08 00 1B 09 80 0D 01 02 00 00 00 00 9D [19:44:54]Write i2c OK [19:44:54]MH_I2C_Read... [19:44:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:44:54]Read from MH i2c: E2 [19:44:54]MH_I2C_Read... [19:44:54]Read from MH i2c: E2 03 00 [19:44:54]MH_I2C_Read... [19:44:54]Read from MH i2c: E2 03 00 1B 09 00 90 00 98 [19:44:54]RAPDU: 90 00 [19:44:54]wFMCommunicate OK [19:44:54]wFMCommunicate request_size=255 [19:44:54]MH_SAM_APDU [19:44:54]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 1D 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B0 00 00 00 F4 03 04 00 B6 6C 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 78 2C 01 00 35 04 06 00 [19:44:54]Write to MH i2c: E2 02 01 1C 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 1D 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B0 00 00 00 F4 03 04 00 B6 6C 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 78 2C 01 00 35 04 06 00 00 00 48 [19:44:54]Write i2c OK [19:44:54]MH_I2C_Read... [19:44:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:54]Read from MH i2c: E2 [19:44:54]MH_I2C_Read... [19:44:54]Read from MH i2c: E2 03 00 [19:44:54]MH_I2C_Read... [19:44:54]Read from MH i2c: E2 03 00 1C 09 00 90 00 99 [19:44:54]RAPDU: 90 00 [19:44:54]wFMCommunicate OK [19:44:54]wFMCommunicate request_size=11 [19:44:54]MH_SAM_APDU [19:44:54]CAPDU: 80 0D 02 02 06 FC D3 15 87 BD 9A [19:44:54]Write to MH i2c: E2 0E 00 1D 09 80 0D 02 02 06 00 FC D3 15 87 BD 9A 00 00 6E [19:44:54]Write i2c OK [19:44:54]MH_I2C_Read... [19:44:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:54]Read from MH i2c: E2 [19:44:54]MH_I2C_Read... [19:44:54]Read from MH i2c: E2 03 00 [19:44:54]MH_I2C_Read... [19:44:54]Read from MH i2c: E2 03 00 1D 09 00 90 00 9A [19:44:54]RAPDU: 90 00 [19:44:54]wFMCommunicate OK [19:44:54]wFMCommunicate request_size=4 [19:44:54]MH_SAM_APDU [19:44:54]CAPDU: 80 0D 03 02 [19:44:54]Write to MH i2c: E2 08 00 1E 09 80 0D 03 02 00 00 00 00 A2 [19:44:54]Write i2c OK [19:44:54]MH_I2C_Read... [19:44:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:44:54]Read from MH i2c: E2 [19:44:54]MH_I2C_Read... [19:44:54]Read from MH i2c: E2 0B 00 [19:44:54]MH_I2C_Read... [19:44:54]Read from MH i2c: E2 0B 00 1E 09 00 9D 3F 20 C0 70 F1 CF FF 90 00 8E [19:44:54]RAPDU: 9D 3F 20 C0 70 F1 CF FF 90 00 [19:44:54]wFMCommunicate OK [19:44:54]SAM_PROTO_SignData done [19:44:54]FM_MakeSignedData done [19:44:54]CreateOFDProtocolMessage [19:44:54]wFMCommunicate request_size=4 [19:44:54]MH_SAM_APDU [19:44:54]CAPDU: 80 11 00 00 [19:44:54]Write to MH i2c: E2 08 00 1F 09 80 11 00 00 00 00 00 00 A2 [19:44:54]Write i2c OK [19:44:54]MH_I2C_Read... [19:44:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:54]Read from MH i2c: E2 [19:44:54]MH_I2C_Read... [19:44:54]Read from MH i2c: E2 17 00 [19:44:54]MH_I2C_Read... [19:44:54]Read from MH i2c: E2 17 00 1F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F5 [19:44:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:44:54]wFMCommunicate OK [19:44:54]CreateOFDProtocolMessage done [19:44:54]OFDSenderStorePacket 76920 [19:44:54]StoreOFDPacket docnum=76920 [19:44:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 E9 59 08 01 54 74 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 1D 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B0 00 00 00 F4 03 04 00 B6 6C 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 78 2C 01 00 35 04 06 00 FC D3 15 87 BD 9A 9D 3F 20 C0 70 F1 CF FF [19:44:54]CheckFolder [19:44:54]dirname=/storage/ofd_packets [19:44:54]CheckFolder done [19:44:54]ProducePacketName [19:44:54]name=ofd_packets/00076920 [19:44:54]NVStorageSaveData ofd_packets/00076920 [19:44:54]File name is /storage/ofd_packets/00076920 [19:44:54]Write 302 bytes [19:44:54]NVStorageSaveData done [19:44:54]OFDSenderStorePacket done [19:44:54]KKMCreateOFDPacket done [19:44:54]NVStorageSaveData kkm_last_timestamp [19:44:54]File name is /storage/kkm_last_timestamp [19:44:54]Write 4 bytes [19:44:54]NVStorageSaveData done [19:44:54]ExternCall_PrintAddStr [19:44:54]wPrintStart [19:44:54]Write to MH i2c: 01 00 00 20 09 29 [19:44:54]Write i2c OK [19:44:54]MH_I2C_Read... [19:44:54]Read from MH i2c: 01 [19:44:54]MH_I2C_Read... [19:44:54]Read from MH i2c: 01 07 00 [19:44:54]MH_I2C_Read... [19:44:54]Read from MH i2c: 01 07 00 20 09 00 00 00 00 00 FF 0F 3E [19:44:54]RasterBufferAndPrint [19:44:54]line Счет N : (1)191467 [19:44:54]line ИНН: 02508201610067 [19:44:54]line Контрольно-Кассовый Чек [19:44:54]line ПРОДАЖА [19:44:54]line ТРК (МРК, ГНК) : 41 [19:44:54]line Товар: 2710124130 [19:44:54]line SUPER 92-К-5 [19:44:54]line 7.650 * 65.40 [19:44:54]line = 500.31 [19:44:54]line НДС 12% НСП 1% [19:44:54]line > о реализуемом товаре [19:44:54]line ОКРУГЛЕНИЕ: -0.31 [19:44:54]line ИТОГО: 500.00 [19:44:54]line Внесено: 500.00 [19:44:54]line СДАЧА: 0.00 [19:44:54]line НСП 1% : 4.43 [19:44:54]line НДС 12% : 53.13 [19:44:54]line Наличными: 500.00 [19:44:54]line Безнал.: 0.00 [19:44:54]line Место: АЗС № 106 "Партнер Нефть" [19:44:54]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [19:44:54]line СНО: Общий режим [19:44:54]line Чек 176 21.04.2024 19:44 [19:44:54]line Смена: 372 ФФД: 1.0 [19:44:54]line ЗНМ: 0300000141 [19:44:54]line РНМ: 0000000000091573 [19:44:54]line Версия ККМ: 001 [19:44:54]line ФМ: 0000000000874652 [19:44:54]line ФД: 76920 [19:44:54]line ФПД: 277983529516442 [19:44:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T194454&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76920&fm=277983529516442&tin=02508201610067®Number=0000000000091573&sum=50000 [19:44:55]written 0, free lines is 4095 [19:44:55]OFD Sender: Processing packet 76920 [packets to send 129, broken 128] [19:44:55]ProducePacketName [19:44:55]name=ofd_packets/00076920 [19:44:55]OFD Sender: To server: pG, [19:44:55]CommunicateWithHost lk.salyk.kg:30040 [19:44:55]ConnectInit lk.salyk.kg [19:44:55]Connected sock=8 [19:44:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 E9 59 08 01 54 74 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 1D 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B0 00 00 00 F4 03 04 00 B6 6C 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 78 2C 01 00 35 04 06 00 FC D3 15 87 BD 9A 9D 3F 20 C0 70 F1 CF FF [19:44:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 01 B9 47 00 E5 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 34 36 35 32 10 04 04 00 78 2C 01 00 F4 03 04 00 3A 14 25 66 B6 04 01 00 00 44 D3 A1 2D 80 34 48 B2 [19:44:55]CommunicateWithHost err = 0 [19:44:55]CheckOFDResponse [19:44:55]1017 (14) - 77093643461234 [19:44:55]1041 (16) - 0000000000874652 [19:44:55]1040 (4) - 76920 [19:44:55]1012 (4) - 21.04.2024 13:27 [19:44:55]1206 (1) - 0 [19:44:55]OFD Sender: Remove packet 76920 [19:44:55]ProducePacketName [19:44:55]name=ofd_packets/00076920 [19:44:55]NVStorageDeleteData [19:44:55]Write to MH i2c: 01 00 00 4A 09 53 [19:44:55]Write i2c OK [19:44:55]MH_I2C_Read... [19:44:55]Read from MH i2c: 01 [19:44:55]MH_I2C_Read... [19:44:55]Read from MH i2c: 01 07 00 [19:44:55]MH_I2C_Read... [19:44:55]Read from MH i2c: 01 07 00 4A 09 00 00 00 00 00 E6 0C 4C [19:44:55]RasterBufferAndPrint [19:44:55]line [19:44:55]line [19:44:55]line [19:44:55]line [19:44:55]line [19:44:55]written 0, free lines is 3308 [19:44:55]MH_Cut [19:44:55]Write to MH i2c: D1 01 00 51 09 01 2C [19:44:55]Write i2c OK [19:44:55]MH_I2C_Read... [19:44:55]Read from MH i2c: D1 [19:44:55]MH_I2C_Read... [19:44:55]Read from MH i2c: D1 01 00 [19:44:55]MH_I2C_Read... [19:44:55]Read from MH i2c: D1 01 00 51 09 00 2B [19:44:55]Write to MH i2c: 01 00 00 52 09 5B [19:44:55]Write i2c OK [19:44:55]MH_I2C_Read... [19:44:55]OFD Sender: No OFD packet to send [19:44:56]*** Cut start [19:44:56]*** Partial cut [19:44:56]*** CUTSNS_PIN = 1 [19:44:56]*** CUTSNS_PIN = 0 [19:44:56]*** Brake cut motor [19:44:56]Read from MH i2c: 01 [19:44:56]MH_I2C_Read... [19:44:56]*** Stop cut motor [19:44:56]*** Cut end [19:44:56]Read from MH i2c: 01 07 00 [19:44:56]MH_I2C_Read... [19:44:56]Read from MH i2c: 01 07 00 52 09 00 00 00 00 00 FF 0F 70 [19:44:56]process_action close_receipt done [19:44:56]requested_data is exist [19:44:56]produce_requested_data [19:44:56]requested_item fm.sn is exist - process it [19:44:56]wFMCommunicate request_size=4 [19:44:56]MH_SAM_APDU [19:44:56]CAPDU: 80 11 00 00 [19:44:56]Write to MH i2c: E2 08 00 53 09 80 11 00 00 00 00 00 00 D6 [19:44:56]Write i2c OK [19:44:56]MH_I2C_Read... [19:44:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:56]Read from MH i2c: E2 [19:44:56]MH_I2C_Read... [19:44:56]Read from MH i2c: E2 17 00 [19:44:56]MH_I2C_Read... [19:44:56]Read from MH i2c: E2 17 00 53 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 29 [19:44:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:44:56]wFMCommunicate OK [19:44:56]requested_item fd.num is exist - process it [19:44:56]SAM_PROTO_GetFieldsCounters [19:44:56]wFMCommunicate request_size=4 [19:44:56]MH_SAM_APDU [19:44:56]CAPDU: 80 13 00 00 [19:44:56]Write to MH i2c: E2 08 00 54 09 80 13 00 00 00 00 00 00 D9 [19:44:56]Write i2c OK [19:44:56]MH_I2C_Read... [19:44:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:44:57]Read from MH i2c: E2 [19:44:57]MH_I2C_Read... [19:44:57]Read from MH i2c: E2 62 00 [19:44:57]MH_I2C_Read... [19:44:57]Read from MH i2c: E2 62 00 54 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 78 2C 01 00 0E 04 04 00 74 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 24 [19:44: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 78 2C 01 00 0E 04 04 00 74 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 [19:44:57]wFMCommunicate OK [19:44:57]SAM_PROTO_GetFieldsCounters done [19:44:57]requested_item shift.num is exist - process it [19:44:57]requested_item shift.opened is exist - process it [19:44:57]req_shift_opened [19:44:57]FM_GetShiftState [19:44:57]SAM_PROTO_GetShiftState [19:44:57]wFMCommunicate request_size=4 [19:44:57]MH_SAM_APDU [19:44:57]CAPDU: 80 13 01 00 [19:44:57]Write to MH i2c: E2 08 00 55 09 80 13 01 00 00 00 00 00 DB [19:44:57]Write i2c OK [19:44:57]MH_I2C_Read... [19:44:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:57]Read from MH i2c: E2 [19:44:57]MH_I2C_Read... [19:44:57]Read from MH i2c: E2 0E 00 [19:44:57]MH_I2C_Read... [19:44:57]Read from MH i2c: E2 0E 00 55 09 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 22 [19:44:57]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [19:44:57]wFMCommunicate OK [19:44:57]SAM_PROTO_GetShiftState done [19:44:57]FM_GetShiftState done [19:44:57]req_shift_opened done [19:44:57]requested_item shift.open_date is exist - process it [19:44:57]req_shift_open_date [19:44:57]req_shift_open_date done [19:44:57]produce_requested_data done [19:44:57]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76920,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [19:44:57]process_action_free close_receipt [19:44:57]json_value_free [19:44:57]json_value_free done [19:44:57]process_json_proto returns [19:44:57]Send response to host [19:44:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76920,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [19:44:57]free response buf [19:44:57]execute_script done [19:44:57]execute_script returns [19:44:57]free content buf [19:44:57]Sock 10.Close socket [19:44:57]Sock 10.Thread stoped [19:45:00]OFD Sender: No OFD packet to send [19:45:05]OFD Sender: No OFD packet to send [19:45:10]OFD Sender: No OFD packet to send [19:45:15]OFD Sender: No OFD packet to send [19:45:20]OFD Sender: No OFD packet to send [19:45:25]OFD Sender: No OFD packet to send [19:45:30]OFD Sender: No OFD packet to send [19:45:35]OFD Sender: No OFD packet to send [19:45:40]OFD Sender: No OFD packet to send [19:45:46]OFD Sender: No OFD packet to send [19:45:51]OFD Sender: No OFD packet to send [19:45:56]OFD Sender: No OFD packet to send [19:46:01]OFD Sender: No OFD packet to send [19:46:06]OFD Sender: No OFD packet to send [19:46:11]OFD Sender: No OFD packet to send [19:46:16]OFD Sender: No OFD packet to send [19:46:21]OFD Sender: No OFD packet to send [19:46:26]OFD Sender: No OFD packet to send [19:46:31]OFD Sender: No OFD packet to send [19:46:36]OFD Sender: No OFD packet to send [19:46:41]OFD Sender: No OFD packet to send [19:46:46]OFD Sender: No OFD packet to send [19:46:51]OFD Sender: No OFD packet to send [19:46:56]OFD Sender: No OFD packet to send [19:47:01]OFD Sender: No OFD packet to send [19:47:06]OFD Sender: No OFD packet to send [19:47:11]OFD Sender: No OFD packet to send [19:47:16]OFD Sender: No OFD packet to send [19:47:21]OFD Sender: No OFD packet to send [19:47:26]OFD Sender: No OFD packet to send [19:47:31]OFD Sender: No OFD packet to send [19:47:36]OFD Sender: No OFD packet to send [19:47:41]OFD Sender: No OFD packet to send [19:47:46]OFD Sender: No OFD packet to send [19:47:51]OFD Sender: No OFD packet to send [19:47:56]OFD Sender: No OFD packet to send [19:48:01]OFD Sender: No OFD packet to send [19:48:06]OFD Sender: No OFD packet to send [19:48:11]OFD Sender: No OFD packet to send [19:48:16]OFD Sender: No OFD packet to send [19:48:21]OFD Sender: No OFD packet to send [19:48:26]OFD Sender: No OFD packet to send [19:48:31]OFD Sender: No OFD packet to send [19:48:36]OFD Sender: No OFD packet to send [19:48:41]OFD Sender: No OFD packet to send [19:48:46]OFD Sender: No OFD packet to send [19:48:51]OFD Sender: No OFD packet to send [19:48:56]OFD Sender: No OFD packet to send [19:49:01]OFD Sender: No OFD packet to send [19:49:06]OFD Sender: No OFD packet to send [19:49:11]OFD Sender: No OFD packet to send [19:49:16]OFD Sender: No OFD packet to send [19:49:21]OFD Sender: No OFD packet to send [19:49:26]OFD Sender: No OFD packet to send [19:49:31]OFD Sender: No OFD packet to send [19:49:36]OFD Sender: No OFD packet to send [19:49:41]OFD Sender: No OFD packet to send [19:49:46]OFD Sender: No OFD packet to send [19:49:51]OFD Sender: No OFD packet to send [19:49:56]OFD Sender: No OFD packet to send [19:50:01]OFD Sender: No OFD packet to send [19:50:06]OFD Sender: No OFD packet to send [19:50:11]OFD Sender: No OFD packet to send [19:50:16]OFD Sender: No OFD packet to send [19:50:21]OFD Sender: No OFD packet to send [19:50:22]accept exits with 9 [19:50:22]New connection [19:50:22]New thread 3066944868 created [19:50:22]Thread 3066801508 joined [19:50:22]Waiting for new connection... [19:50:22] Sock 9.Parse request [19:50:22]Sock 9.Check first char [19:50:22]Sock 9.First char is OK [19:50:22]request: POST /json_proto HTTP/1.0 [19:50:22]Method: POST [19:50:22]URL: /json_proto [19:50:22]Method is POST - this is cgi request [19:50:22]url: /json_proto [19:50:22]query_string will be loaded in cgi processing [19:50:22]execute_cgi json_proto POST (null) [19:50:22]execute_cgi path=json_proto method=POST [19:50:22]POST find Content-Length [19:50:22]Host: 172.17.62.5:8080 [19:50:22]Content-Length: 679 [19:50:22]Content-Type: application/json [19:50:22] [19:50:22]POST finish read [19:50:22]Found Content-Length = 679 [19:50:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [19:50:22]execute_script... [19:50: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)191469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [19:50:22]POST & json_proto [19:50:22]process_json_proto [19:50:22]json parsed OK: [19:50:22]protocol is kg_v1.0 [19:50:22]action value=close_receipt [19:50:22]process_action close_receipt [19:50:22]cmd_close_receipt [19:50:22]MH_GetDate [19:50:22]Write to MH i2c: F0 00 00 56 09 4E [19:50:22]Write i2c OK [19:50:22]MH_I2C_Read... [19:50:22]Read from MH i2c: F0 [19:50:22]MH_I2C_Read... [19:50:22]Read from MH i2c: F0 09 00 [19:50:22]MH_I2C_Read... [19:50:22]Read from MH i2c: F0 09 00 56 09 00 FF 6D 25 66 F4 E9 65 64 F4 [19:50:22]GetLastDocTimeStamp 1713728694 [19:50:22]current date 1713729023 [19:50:22]FM_GetShiftState [19:50:22]SAM_PROTO_GetShiftState [19:50:22]wFMCommunicate request_size=4 [19:50:22]MH_SAM_APDU [19:50:22]CAPDU: 80 13 01 00 [19:50:22]Write to MH i2c: E2 08 00 57 09 80 13 01 00 00 00 00 00 DD [19:50:22]Write i2c OK [19:50:22]MH_I2C_Read... [19:50:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:22]Read from MH i2c: E2 [19:50:22]MH_I2C_Read... [19:50:22]Read from MH i2c: E2 0E 00 [19:50:22]MH_I2C_Read... [19:50:22]Read from MH i2c: E2 0E 00 57 09 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 24 [19:50:22]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [19:50:22]wFMCommunicate OK [19:50:22]SAM_PROTO_GetShiftState done [19:50:22]FM_GetShiftState done [19:50:22]opened in 1713658965 [19:50:22]opened+sec_in_day 1713745365 [19:50:22]quantity*price = 100018 [19:50:22]sum+1 = 100020 [19:50:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 177 21.04.2024 19:50 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76921 ФПД: 55661534154700 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T195023&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76921&fm=55661534154700&tin=02508201610067®Number=0000000000091573&sum=100000 [19:50:23]StoreToDocumentArchive [19:50:23]shift 372 fd 76921 [19:50:23]save to /storage/0372/doc_00076921 [19:50:23]save last doc name /storage/0372/doc_00076921 to /storage/kkm_last_doc_name [19:50:23]save OK [19:50:23]Clear old archive folders... [19:50:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:50:23]tlvbuf is 00C9E780 [19:50:23]SAM_PROTO_ClearQueue [19:50:23]wFMCommunicate request_size=4 [19:50:23]MH_SAM_APDU [19:50:23]CAPDU: 80 09 00 00 [19:50:23]Write to MH i2c: E2 08 00 64 09 80 09 00 00 00 00 00 00 DF [19:50:23]Write i2c OK [19:50:23]MH_I2C_Read... [19:50:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:50:23]Read from MH i2c: E2 [19:50:23]MH_I2C_Read... [19:50:23]Read from MH i2c: E2 03 00 [19:50:23]MH_I2C_Read... [19:50:23]Read from MH i2c: E2 03 00 64 09 00 90 00 E1 [19:50:23]RAPDU: 90 00 [19:50:23]wFMCommunicate OK [19:50:23]SAM_PROTO_ClearQueue done [19:50:23]KKMCreateOFDPacket [19:50:23]OFDProtocolAddRootSTLVToBuf [19:50:23]FM_MakeSignedData [19:50:23]FM_MakeSignedData [19:50:23]SAM_PROTO_SignData [19:50:23]wFMCommunicate request_size=4 [19:50:23]MH_SAM_APDU [19:50:23]CAPDU: 80 0D 01 02 [19:50:23]Write to MH i2c: E2 08 00 65 09 80 0D 01 02 00 00 00 00 E7 [19:50:23]Write i2c OK [19:50:23]MH_I2C_Read... [19:50:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:50:23]Read from MH i2c: E2 [19:50:23]MH_I2C_Read... [19:50:23]Read from MH i2c: E2 03 00 [19:50:23]MH_I2C_Read... [19:50:23]Read from MH i2c: E2 03 00 65 09 00 90 00 E2 [19:50:23]RAPDU: 90 00 [19:50:23]wFMCommunicate OK [19:50:23]wFMCommunicate request_size=255 [19:50:23]MH_SAM_APDU [19:50:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 B1 00 00 00 F4 03 04 00 FF 6D 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 79 2C 01 00 35 04 06 00 32 9F B5 F8 [19:50:23]Write to MH i2c: E2 02 01 66 09 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 FF 6D 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 79 2C 01 00 35 04 06 00 32 9F B5 F8 00 00 8E [19:50:23]Write i2c OK [19:50:23]MH_I2C_Read... [19:50:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:23]Read from MH i2c: E2 [19:50:23]MH_I2C_Read... [19:50:23]Read from MH i2c: E2 03 00 [19:50:23]MH_I2C_Read... [19:50:23]Read from MH i2c: E2 03 00 66 09 00 90 00 E3 [19:50:23]RAPDU: 90 00 [19:50:23]wFMCommunicate OK [19:50:23]wFMCommunicate request_size=7 [19:50:23]MH_SAM_APDU [19:50:23]CAPDU: 80 0D 02 02 02 8F CC [19:50:23]Write to MH i2c: E2 0A 00 67 09 80 0D 02 02 02 00 8F CC 00 00 49 [19:50:23]Write i2c OK [19:50:23]MH_I2C_Read... [19:50:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:23]Read from MH i2c: E2 [19:50:23]MH_I2C_Read... [19:50:23]Read from MH i2c: E2 03 00 [19:50:23]MH_I2C_Read... [19:50:23]Read from MH i2c: E2 03 00 67 09 00 90 00 E4 [19:50:23]RAPDU: 90 00 [19:50:23]wFMCommunicate OK [19:50:23]wFMCommunicate request_size=4 [19:50:23]MH_SAM_APDU [19:50:23]CAPDU: 80 0D 03 02 [19:50:23]Write to MH i2c: E2 08 00 68 09 80 0D 03 02 00 00 00 00 EC [19:50:23]Write i2c OK [19:50:23]MH_I2C_Read... [19:50:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:50:23]Read from MH i2c: E2 [19:50:23]MH_I2C_Read... [19:50:23]Read from MH i2c: E2 0B 00 [19:50:23]MH_I2C_Read... [19:50:23]Read from MH i2c: E2 0B 00 68 09 00 A9 36 0B D5 0D A2 06 D2 90 00 33 [19:50:23]RAPDU: A9 36 0B D5 0D A2 06 D2 90 00 [19:50:23]wFMCommunicate OK [19:50:23]SAM_PROTO_SignData done [19:50:23]FM_MakeSignedData done [19:50:23]CreateOFDProtocolMessage [19:50:23]wFMCommunicate request_size=4 [19:50:23]MH_SAM_APDU [19:50:23]CAPDU: 80 11 00 00 [19:50:23]Write to MH i2c: E2 08 00 69 09 80 11 00 00 00 00 00 00 EC [19:50:23]Write i2c OK [19:50:23]MH_I2C_Read... [19:50:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:24]Read from MH i2c: E2 [19:50:24]MH_I2C_Read... [19:50:24]Read from MH i2c: E2 17 00 [19:50:24]MH_I2C_Read... [19:50:24]Read from MH i2c: E2 17 00 69 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 3F [19:50:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:50:24]wFMCommunicate OK [19:50:24]CreateOFDProtocolMessage done [19:50:24]OFDSenderStorePacket 76921 [19:50:24]StoreOFDPacket docnum=76921 [19:50:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 FA BD 04 01 1D AF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 FF 6D 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 79 2C 01 00 35 04 06 00 32 9F B5 F8 8F CC A9 36 0B D5 0D A2 06 D2 [19:50:24]CheckFolder [19:50:24]dirname=/storage/ofd_packets [19:50:24]CheckFolder done [19:50:24]ProducePacketName [19:50:24]name=ofd_packets/00076921 [19:50:24]NVStorageSaveData ofd_packets/00076921 [19:50:24]File name is /storage/ofd_packets/00076921 [19:50:24]Write 298 bytes [19:50:24]NVStorageSaveData done [19:50:24]OFDSenderStorePacket done [19:50:24]KKMCreateOFDPacket done [19:50:24]NVStorageSaveData kkm_last_timestamp [19:50:24]File name is /storage/kkm_last_timestamp [19:50:24]Write 4 bytes [19:50:24]NVStorageSaveData done [19:50:24]ExternCall_PrintAddStr [19:50:24]wPrintStart [19:50:24]Write to MH i2c: 01 00 00 6A 09 73 [19:50:24]Write i2c OK [19:50:24]MH_I2C_Read... [19:50:24]Read from MH i2c: 01 [19:50:24]MH_I2C_Read... [19:50:24]Read from MH i2c: 01 07 00 [19:50:24]MH_I2C_Read... [19:50:24]Read from MH i2c: 01 07 00 6A 09 00 00 00 00 00 FF 0F 88 [19:50:24]RasterBufferAndPrint [19:50:24]line Счет N : (1)191469 [19:50:24]line ИНН: 02508201610067 [19:50:24]line Контрольно-Кассовый Чек [19:50:24]line ПРОДАЖА [19:50:24]line ТРК (МРК, ГНК) : 13 [19:50:24]line Товар: 2710194210 [19:50:24]line ДТ-К-5 [19:50:24]line 13.720 * 72.90 [19:50:24]line = 1000.19 [19:50:24]line НДС 12% НСП 1% [19:50:24]line > о реализуемом товаре [19:50:24]line ОКРУГЛЕНИЕ: -0.19 [19:50:24]line ИТОГО: 1000.00 [19:50:24]line Внесено: 1000.00 [19:50:24]line СДАЧА: 0.00 [19:50:24]line НСП 1% : 8.85 [19:50:24]line НДС 12% : 106.21 [19:50:24]line Наличными: 1000.00 [19:50:24]line Безнал.: 0.00 [19:50:24]line Место: АЗС № 106 "Партнер Нефть" [19:50:24]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [19:50:24]line СНО: Общий режим [19:50:24]line Чек 177 21.04.2024 19:50 [19:50:24]line Смена: 372 ФФД: 1.0 [19:50:24]line ЗНМ: 0300000141 [19:50:24]line РНМ: 0000000000091573 [19:50:24]line Версия ККМ: 001 [19:50:24]line ФМ: 0000000000874652 [19:50:24]line ФД: 76921 [19:50:24]line ФПД: 55661534154700 [19:50:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T195023&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76921&fm=55661534154700&tin=02508201610067®Number=0000000000091573&sum=100000 [19:50:24]OFD Sender: Processing packet 76921 [packets to send 129, broken 128] [19:50:24]ProducePacketName [19:50:24]name=ofd_packets/00076921 [19:50:24]OFD Sender: To server: pG, [19:50:24]CommunicateWithHost lk.salyk.kg:30040 [19:50:24]ConnectInit lk.salyk.kg [19:50:24]written 0, free lines is 4095 [19:50:24]Connected sock=10 [19:50:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 FA BD 04 01 1D AF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 FF 6D 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 79 2C 01 00 35 04 06 00 32 9F B5 F8 8F CC A9 36 0B D5 0D A2 06 D2 [19:50:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 5B F2 47 00 CC 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 34 36 35 32 10 04 04 00 79 2C 01 00 F4 03 04 00 83 15 25 66 B6 04 01 00 00 48 21 C1 AD 0B 7E 82 2B [19:50:24]CommunicateWithHost err = 0 [19:50:24]CheckOFDResponse [19:50:24]1017 (14) - 77093643461234 [19:50:24]1041 (16) - 0000000000874652 [19:50:24]1040 (4) - 76921 [19:50:24]1012 (4) - 21.04.2024 13:32 [19:50:24]1206 (1) - 0 [19:50:24]OFD Sender: Remove packet 76921 [19:50:24]ProducePacketName [19:50:24]name=ofd_packets/00076921 [19:50:24]NVStorageDeleteData [19:50:24]Write to MH i2c: 01 00 00 94 09 9D [19:50:24]Write i2c OK [19:50:24]MH_I2C_Read... [19:50:24]Read from MH i2c: 01 [19:50:24]MH_I2C_Read... [19:50:24]Read from MH i2c: 01 07 00 [19:50:24]MH_I2C_Read... [19:50:24]Read from MH i2c: 01 07 00 94 09 00 00 00 00 00 E3 0C 93 [19:50:24]RasterBufferAndPrint [19:50:24]line [19:50:24]line [19:50:24]line [19:50:24]line [19:50:24]line [19:50:24]written 0, free lines is 3305 [19:50:24]MH_Cut [19:50:24]Write to MH i2c: D1 01 00 9B 09 01 76 [19:50:24]Write i2c OK [19:50:24]MH_I2C_Read... [19:50:24]Read from MH i2c: D1 [19:50:24]MH_I2C_Read... [19:50:24]Read from MH i2c: D1 01 00 [19:50:24]MH_I2C_Read... [19:50:24]Read from MH i2c: D1 01 00 9B 09 00 75 [19:50:24]Write to MH i2c: 01 00 00 9C 09 A5 [19:50:24]Write i2c OK [19:50:24]MH_I2C_Read... [19:50:25]OFD Sender: No OFD packet to send [19:50:25]*** Cut start [19:50:25]*** Partial cut [19:50:25]*** CUTSNS_PIN = 1 [19:50:25]*** CUTSNS_PIN = 0 [19:50:25]*** Brake cut motor [19:50:26]Read from MH i2c: 01 [19:50:26]MH_I2C_Read... [19:50:26]*** Stop cut motor [19:50:26]*** Cut end [19:50:26]Read from MH i2c: 01 07 00 [19:50:26]MH_I2C_Read... [19:50:26]Read from MH i2c: 01 07 00 9C 09 00 00 00 00 00 FF 0F BA [19:50:26]process_action close_receipt done [19:50:26]requested_data is exist [19:50:26]produce_requested_data [19:50:26]requested_item fm.sn is exist - process it [19:50:26]wFMCommunicate request_size=4 [19:50:26]MH_SAM_APDU [19:50:26]CAPDU: 80 11 00 00 [19:50:26]Write to MH i2c: E2 08 00 9D 09 80 11 00 00 00 00 00 00 20 [19:50:26]Write i2c OK [19:50:26]MH_I2C_Read... [19:50:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:26]Read from MH i2c: E2 [19:50:26]MH_I2C_Read... [19:50:26]Read from MH i2c: E2 17 00 [19:50:26]MH_I2C_Read... [19:50:26]Read from MH i2c: E2 17 00 9D 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 73 [19:50:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:50:26]wFMCommunicate OK [19:50:26]requested_item fd.num is exist - process it [19:50:26]SAM_PROTO_GetFieldsCounters [19:50:26]wFMCommunicate request_size=4 [19:50:26]MH_SAM_APDU [19:50:26]CAPDU: 80 13 00 00 [19:50:26]Write to MH i2c: E2 08 00 9E 09 80 13 00 00 00 00 00 00 23 [19:50:26]Write i2c OK [19:50:26]MH_I2C_Read... [19:50:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:50:26]Read from MH i2c: E2 [19:50:26]MH_I2C_Read... [19:50:26]Read from MH i2c: E2 62 00 [19:50:26]MH_I2C_Read... [19:50:26]Read from MH i2c: E2 62 00 9E 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 79 2C 01 00 0E 04 04 00 74 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 72 [19:50: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 79 2C 01 00 0E 04 04 00 74 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 [19:50:26]wFMCommunicate OK [19:50:26]SAM_PROTO_GetFieldsCounters done [19:50:26]requested_item shift.num is exist - process it [19:50:26]requested_item shift.opened is exist - process it [19:50:26]req_shift_opened [19:50:26]FM_GetShiftState [19:50:26]SAM_PROTO_GetShiftState [19:50:26]wFMCommunicate request_size=4 [19:50:26]MH_SAM_APDU [19:50:26]CAPDU: 80 13 01 00 [19:50:26]Write to MH i2c: E2 08 00 9F 09 80 13 01 00 00 00 00 00 25 [19:50:26]Write i2c OK [19:50:26]MH_I2C_Read... [19:50:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:26]Read from MH i2c: E2 [19:50:26]MH_I2C_Read... [19:50:26]Read from MH i2c: E2 0E 00 [19:50:26]MH_I2C_Read... [19:50:26]Read from MH i2c: E2 0E 00 9F 09 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 6C [19:50:26]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [19:50:26]wFMCommunicate OK [19:50:26]SAM_PROTO_GetShiftState done [19:50:26]FM_GetShiftState done [19:50:26]req_shift_opened done [19:50:26]requested_item shift.open_date is exist - process it [19:50:26]req_shift_open_date [19:50:26]req_shift_open_date done [19:50:26]produce_requested_data done [19:50:26]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76921,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [19:50:26]process_action_free close_receipt [19:50:26]json_value_free [19:50:26]json_value_free done [19:50:26]process_json_proto returns [19:50:26]Send response to host [19:50:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76921,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [19:50:26]free response buf [19:50:26]execute_script done [19:50:26]execute_script returns [19:50:26]free content buf [19:50:26]Sock 9.Close socket [19:50:26]Sock 9.Thread stoped [19:50:30]OFD Sender: No OFD packet to send [19:50:35]OFD Sender: No OFD packet to send [19:50:40]OFD Sender: No OFD packet to send [19:50:45]OFD Sender: No OFD packet to send [19:50:50]OFD Sender: No OFD packet to send [19:50:55]OFD Sender: No OFD packet to send [19:51:00]OFD Sender: No OFD packet to send [19:51:05]OFD Sender: No OFD packet to send [19:51:10]OFD Sender: No OFD packet to send [19:51:15]OFD Sender: No OFD packet to send [19:51:20]OFD Sender: No OFD packet to send [19:51:25]OFD Sender: No OFD packet to send [19:51:30]OFD Sender: No OFD packet to send [19:51:35]OFD Sender: No OFD packet to send [19:51:40]OFD Sender: No OFD packet to send [19:51:45]OFD Sender: No OFD packet to send [19:51:50]OFD Sender: No OFD packet to send [19:51:55]OFD Sender: No OFD packet to send [19:52:00]OFD Sender: No OFD packet to send [19:52:05]OFD Sender: No OFD packet to send [19:52:10]OFD Sender: No OFD packet to send [19:52:15]OFD Sender: No OFD packet to send [19:52:20]OFD Sender: No OFD packet to send [19:52:25]OFD Sender: No OFD packet to send [19:52:30]OFD Sender: No OFD packet to send [19:52:35]accept exits with 8 [19:52:35]New connection [19:52:35]New thread 3066801508 created [19:52:35]Thread 3066944868 joined [19:52:35]Waiting for new connection... [19:52:35] Sock 8.Parse request [19:52:35]Sock 8.Check first char [19:52:35]Sock 8.First char is OK [19:52:35]request: POST /json_proto HTTP/1.0 [19:52:35]Method: POST [19:52:35]URL: /json_proto [19:52:35]Method is POST - this is cgi request [19:52:35]url: /json_proto [19:52:35]query_string will be loaded in cgi processing [19:52:35]execute_cgi json_proto POST (null) [19:52:35]execute_cgi path=json_proto method=POST [19:52:35]POST find Content-Length [19:52:35]Host: 172.17.62.5:8080 [19:52:35]Content-Length: 682 [19:52:35]Content-Type: application/json [19:52:35] [19:52:35]POST finish read [19:52:35]Found Content-Length = 682 [19:52:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:52:35]execute_script... [19:52: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)191470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:52:35]POST & json_proto [19:52:35]process_json_proto [19:52:35]json parsed OK: [19:52:35]protocol is kg_v1.0 [19:52:35]action value=close_receipt [19:52:35]process_action close_receipt [19:52:35]cmd_close_receipt [19:52:35]MH_GetDate [19:52:35]Write to MH i2c: F0 00 00 A0 09 98 [19:52:35]Write i2c OK [19:52:35]MH_I2C_Read... [19:52:35]Read from MH i2c: F0 [19:52:35]MH_I2C_Read... [19:52:35]Read from MH i2c: F0 09 00 [19:52:35]MH_I2C_Read... [19:52:35]Read from MH i2c: F0 09 00 A0 09 00 84 6E 25 66 F4 E9 65 64 C4 [19:52:35]GetLastDocTimeStamp 1713729023 [19:52:35]current date 1713729156 [19:52:35]FM_GetShiftState [19:52:35]SAM_PROTO_GetShiftState [19:52:35]wFMCommunicate request_size=4 [19:52:35]MH_SAM_APDU [19:52:35]CAPDU: 80 13 01 00 [19:52:35]Write to MH i2c: E2 08 00 A1 09 80 13 01 00 00 00 00 00 27 [19:52:35]Write i2c OK [19:52:35]MH_I2C_Read... [19:52:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:35]Read from MH i2c: E2 [19:52:35]MH_I2C_Read... [19:52:35]Read from MH i2c: E2 0E 00 [19:52:35]MH_I2C_Read... [19:52:35]Read from MH i2c: E2 0E 00 A1 09 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 6E [19:52:35]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [19:52:35]wFMCommunicate OK [19:52:35]SAM_PROTO_GetShiftState done [19:52:35]FM_GetShiftState done [19:52:35]opened in 1713658965 [19:52:35]opened+sec_in_day 1713745365 [19:52:35]quantity*price = 100013 [19:52:35]sum+1 = 100014 [19:52:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 178 21.04.2024 19:52 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76922 ФПД: 174262389589684 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T195236&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76922&fm=174262389589684&tin=02508201610067®Number=0000000000091573&sum=100000 [19:52:36]StoreToDocumentArchive [19:52:36]shift 372 fd 76922 [19:52:36]save to /storage/0372/doc_00076922 [19:52:36]save last doc name /storage/0372/doc_00076922 to /storage/kkm_last_doc_name [19:52:36]save OK [19:52:36]Clear old archive folders... [19:52:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:52:36]tlvbuf is 00C87DD0 [19:52:36]SAM_PROTO_ClearQueue [19:52:36]wFMCommunicate request_size=4 [19:52:36]MH_SAM_APDU [19:52:36]CAPDU: 80 09 00 00 [19:52:36]Write to MH i2c: E2 08 00 AE 09 80 09 00 00 00 00 00 00 29 [19:52:36]Write i2c OK [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: E2 [19:52:36]MH_I2C_Read... [19:52:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:52:36]Read from MH i2c: E2 03 00 [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: E2 03 00 AE 09 00 90 00 2B [19:52:36]RAPDU: 90 00 [19:52:36]wFMCommunicate OK [19:52:36]SAM_PROTO_ClearQueue done [19:52:36]KKMCreateOFDPacket [19:52:36]OFDProtocolAddRootSTLVToBuf [19:52:36]FM_MakeSignedData [19:52:36]FM_MakeSignedData [19:52:36]SAM_PROTO_SignData [19:52:36]wFMCommunicate request_size=4 [19:52:36]MH_SAM_APDU [19:52:36]CAPDU: 80 0D 01 02 [19:52:36]Write to MH i2c: E2 08 00 AF 09 80 0D 01 02 00 00 00 00 31 [19:52:36]Write i2c OK [19:52:36]MH_I2C_Read... [19:52:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:52:36]Read from MH i2c: E2 [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: E2 03 00 [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: E2 03 00 AF 09 00 90 00 2C [19:52:36]RAPDU: 90 00 [19:52:36]wFMCommunicate OK [19:52:36]wFMCommunicate request_size=255 [19:52:36]MH_SAM_APDU [19:52: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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 84 6E 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7A 2C 01 00 35 04 06 00 9E [19:52:36]Write to MH i2c: E2 02 01 B0 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 84 6E 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7A 2C 01 00 35 04 06 00 9E 00 00 EB [19:52:36]Write i2c OK [19:52:36]MH_I2C_Read... [19:52:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:36]Read from MH i2c: E2 [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: E2 03 00 [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: E2 03 00 B0 09 00 90 00 2D [19:52:36]RAPDU: 90 00 [19:52:36]wFMCommunicate OK [19:52:36]wFMCommunicate request_size=10 [19:52:36]MH_SAM_APDU [19:52:36]CAPDU: 80 0D 02 02 05 7D 9F D4 46 B4 [19:52:36]Write to MH i2c: E2 0D 00 B1 09 80 0D 02 02 05 00 7D 9F D4 46 B4 00 00 28 [19:52:36]Write i2c OK [19:52:36]MH_I2C_Read... [19:52:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:36]Read from MH i2c: E2 [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: E2 03 00 [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: E2 03 00 B1 09 00 90 00 2E [19:52:36]RAPDU: 90 00 [19:52:36]wFMCommunicate OK [19:52:36]wFMCommunicate request_size=4 [19:52:36]MH_SAM_APDU [19:52:36]CAPDU: 80 0D 03 02 [19:52:36]Write to MH i2c: E2 08 00 B2 09 80 0D 03 02 00 00 00 00 36 [19:52:36]Write i2c OK [19:52:36]MH_I2C_Read... [19:52:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:52:36]Read from MH i2c: E2 [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: E2 0B 00 [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: E2 0B 00 B2 09 00 16 FC B0 21 E5 25 E5 84 90 00 8D [19:52:36]RAPDU: 16 FC B0 21 E5 25 E5 84 90 00 [19:52:36]wFMCommunicate OK [19:52:36]SAM_PROTO_SignData done [19:52:36]FM_MakeSignedData done [19:52:36]CreateOFDProtocolMessage [19:52:36]wFMCommunicate request_size=4 [19:52:36]MH_SAM_APDU [19:52:36]CAPDU: 80 11 00 00 [19:52:36]Write to MH i2c: E2 08 00 B3 09 80 11 00 00 00 00 00 00 36 [19:52:36]Write i2c OK [19:52:36]MH_I2C_Read... [19:52:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:36]Read from MH i2c: E2 [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: E2 17 00 [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: E2 17 00 B3 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 89 [19:52:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:52:36]wFMCommunicate OK [19:52:36]CreateOFDProtocolMessage done [19:52:36]OFDSenderStorePacket 76922 [19:52:36]StoreOFDPacket docnum=76922 [19:52:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 6F 95 07 01 D1 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 84 6E 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7A 2C 01 00 35 04 06 00 9E 7D 9F D4 46 B4 16 FC B0 21 E5 25 E5 84 [19:52:36]CheckFolder [19:52:36]dirname=/storage/ofd_packets [19:52:36]CheckFolder done [19:52:36]ProducePacketName [19:52:36]name=ofd_packets/00076922 [19:52:36]NVStorageSaveData ofd_packets/00076922 [19:52:36]File name is /storage/ofd_packets/00076922 [19:52:36]Write 301 bytes [19:52:36]NVStorageSaveData done [19:52:36]OFDSenderStorePacket done [19:52:36]KKMCreateOFDPacket done [19:52:36]NVStorageSaveData kkm_last_timestamp [19:52:36]File name is /storage/kkm_last_timestamp [19:52:36]Write 4 bytes [19:52:36]NVStorageSaveData done [19:52:36]ExternCall_PrintAddStr [19:52:36]wPrintStart [19:52:36]Write to MH i2c: 01 00 00 B4 09 BD [19:52:36]Write i2c OK [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: 01 [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: 01 07 00 [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: 01 07 00 B4 09 00 00 00 00 00 FF 0F D2 [19:52:36]RasterBufferAndPrint [19:52:36]line Счет N : (1)191470 [19:52:36]line ИНН: 02508201610067 [19:52:36]line Контрольно-Кассовый Чек [19:52:36]line ПРОДАЖА [19:52:36]line ТРК (МРК, ГНК) : 33 [19:52:36]line Товар: 2710124130 [19:52:36]line Аи-92-К-5 [19:52:36]line 15.530 * 64.40 [19:52:36]line = 1000.13 [19:52:36]line НДС 12% НСП 1% [19:52:36]line > о реализуемом товаре [19:52:36]line ОКРУГЛЕНИЕ: -0.13 [19:52:36]line ИТОГО: 1000.00 [19:52:36]line Внесено: 1000.00 [19:52:36]line СДАЧА: 0.00 [19:52:36]line НСП 1% : 8.85 [19:52:36]line НДС 12% : 106.21 [19:52:36]line Наличными: 1000.00 [19:52:36]line Безнал.: 0.00 [19:52:36]line Место: АЗС № 106 "Партнер Нефть" [19:52:36]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [19:52:36]line СНО: Общий режим [19:52:36]line Чек 178 21.04.2024 19:52 [19:52:36]line Смена: 372 ФФД: 1.0 [19:52:36]line ЗНМ: 0300000141 [19:52:36]line РНМ: 0000000000091573 [19:52:36]line Версия ККМ: 001 [19:52:36]line ФМ: 0000000000874652 [19:52:36]line ФД: 76922 [19:52:36]line ФПД: 174262389589684 [19:52:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T195236&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76922&fm=174262389589684&tin=02508201610067®Number=0000000000091573&sum=100000 [19:52:37]OFD Sender: Processing packet 76922 [packets to send 129, broken 128] [19:52:37]ProducePacketName [19:52:37]name=ofd_packets/00076922 [19:52:37]OFD Sender: To server: pG, [19:52:37]CommunicateWithHost lk.salyk.kg:30040 [19:52:37]ConnectInit lk.salyk.kg [19:52:37]written 0, free lines is 4095 [19:52:37]Write to MH i2c: 01 00 00 DE 09 E7 [19:52:37]Write i2c OK [19:52:37]MH_I2C_Read... [19:52:37]Read from MH i2c: 01 [19:52:37]MH_I2C_Read... [19:52:37]Read from MH i2c: 01 07 00 [19:52:37]MH_I2C_Read... [19:52:37]Read from MH i2c: 01 07 00 DE 09 00 00 00 00 00 E5 0C DF [19:52:37]RasterBufferAndPrint [19:52:37]line [19:52:37]line [19:52:37]line [19:52:37]line [19:52:37]line [19:52:37]written 0, free lines is 3307 [19:52:37]MH_Cut [19:52:37]Write to MH i2c: D1 01 00 E5 09 01 C0 [19:52:37]Write i2c OK [19:52:37]MH_I2C_Read... [19:52:37]Read from MH i2c: D1 [19:52:37]MH_I2C_Read... [19:52:37]Read from MH i2c: D1 01 00 [19:52:37]MH_I2C_Read... [19:52:37]Read from MH i2c: D1 01 00 E5 09 00 BF [19:52:37]Write to MH i2c: 01 00 00 E6 09 EF [19:52:37]Write i2c OK [19:52:37]MH_I2C_Read... [19:52:37]Connected sock=10 [19:52:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 6F 95 07 01 D1 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 84 6E 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7A 2C 01 00 35 04 06 00 9E 7D 9F D4 46 B4 16 FC B0 21 E5 25 E5 84 [19:52:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 3B F8 47 00 C4 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7A 2C 01 00 F4 03 04 00 09 16 25 66 B6 04 01 00 00 EE 06 F7 B3 0C 7D 48 89 [19:52:38]CommunicateWithHost err = 0 [19:52:38]CheckOFDResponse [19:52:38]1017 (14) - 77093643461234 [19:52:38]1041 (16) - 0000000000874652 [19:52:38]1040 (4) - 76922 [19:52:38]1012 (4) - 21.04.2024 13:35 [19:52:38]1206 (1) - 0 [19:52:38]OFD Sender: Remove packet 76922 [19:52:38]ProducePacketName [19:52:38]name=ofd_packets/00076922 [19:52:38]NVStorageDeleteData [19:52:38]*** Cut start [19:52:38]*** Partial cut [19:52:38]*** CUTSNS_PIN = 1 [19:52:38]*** CUTSNS_PIN = 0 [19:52:38]*** Brake cut motor [19:52:38]OFD Sender: No OFD packet to send [19:52:38]Read from MH i2c: 01 [19:52:38]MH_I2C_Read... [19:52:38]*** Stop cut motor [19:52:38]*** Cut end [19:52:38]Read from MH i2c: 01 07 00 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: 01 07 00 E6 09 00 00 00 00 00 FF 0F 04 [19:52:38]process_action close_receipt done [19:52:38]requested_data is exist [19:52:38]produce_requested_data [19:52:38]requested_item fm.sn is exist - process it [19:52:38]wFMCommunicate request_size=4 [19:52:38]MH_SAM_APDU [19:52:38]CAPDU: 80 11 00 00 [19:52:38]Write to MH i2c: E2 08 00 E7 09 80 11 00 00 00 00 00 00 6A [19:52:38]Write i2c OK [19:52:38]MH_I2C_Read... [19:52:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:38]Read from MH i2c: E2 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: E2 17 00 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: E2 17 00 E7 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 BD [19:52:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:52:38]wFMCommunicate OK [19:52:38]requested_item fd.num is exist - process it [19:52:38]SAM_PROTO_GetFieldsCounters [19:52:38]wFMCommunicate request_size=4 [19:52:38]MH_SAM_APDU [19:52:38]CAPDU: 80 13 00 00 [19:52:38]Write to MH i2c: E2 08 00 E8 09 80 13 00 00 00 00 00 00 6D [19:52:38]Write i2c OK [19:52:38]MH_I2C_Read... [19:52:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:52:39]Read from MH i2c: E2 [19:52:39]MH_I2C_Read... [19:52:39]Read from MH i2c: E2 62 00 [19:52:39]MH_I2C_Read... [19:52:39]Read from MH i2c: E2 62 00 E8 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 7A 2C 01 00 0E 04 04 00 74 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 C0 [19:52: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 7A 2C 01 00 0E 04 04 00 74 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 [19:52:39]wFMCommunicate OK [19:52:39]SAM_PROTO_GetFieldsCounters done [19:52:39]requested_item shift.num is exist - process it [19:52:39]requested_item shift.opened is exist - process it [19:52:39]req_shift_opened [19:52:39]FM_GetShiftState [19:52:39]SAM_PROTO_GetShiftState [19:52:39]wFMCommunicate request_size=4 [19:52:39]MH_SAM_APDU [19:52:39]CAPDU: 80 13 01 00 [19:52:39]Write to MH i2c: E2 08 00 E9 09 80 13 01 00 00 00 00 00 6F [19:52:39]Write i2c OK [19:52:39]MH_I2C_Read... [19:52:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:39]Read from MH i2c: E2 [19:52:39]MH_I2C_Read... [19:52:39]Read from MH i2c: E2 0E 00 [19:52:39]MH_I2C_Read... [19:52:39]Read from MH i2c: E2 0E 00 E9 09 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 B6 [19:52:39]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [19:52:39]wFMCommunicate OK [19:52:39]SAM_PROTO_GetShiftState done [19:52:39]FM_GetShiftState done [19:52:39]req_shift_opened done [19:52:39]requested_item shift.open_date is exist - process it [19:52:39]req_shift_open_date [19:52:39]req_shift_open_date done [19:52:39]produce_requested_data done [19:52:39]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76922,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [19:52:39]process_action_free close_receipt [19:52:39]json_value_free [19:52:39]json_value_free done [19:52:39]process_json_proto returns [19:52:39]Send response to host [19:52:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76922,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [19:52:39]free response buf [19:52:39]execute_script done [19:52:39]execute_script returns [19:52:39]free content buf [19:52:39]Sock 8.Close socket [19:52:39]Sock 8.Thread stoped [19:52:43]OFD Sender: No OFD packet to send [19:52:48]OFD Sender: No OFD packet to send [19:52:53]OFD Sender: No OFD packet to send [19:52:58]OFD Sender: No OFD packet to send [19:53:03]OFD Sender: No OFD packet to send [19:53:08]OFD Sender: No OFD packet to send [19:53:13]OFD Sender: No OFD packet to send [19:53:18]OFD Sender: No OFD packet to send [19:53:23]OFD Sender: No OFD packet to send [19:53:28]OFD Sender: No OFD packet to send [19:53:33]OFD Sender: No OFD packet to send [19:53:38]OFD Sender: No OFD packet to send [19:53:43]OFD Sender: No OFD packet to send [19:53:48]OFD Sender: No OFD packet to send [19:53:53]OFD Sender: No OFD packet to send [19:53:58]OFD Sender: No OFD packet to send [19:54:03]OFD Sender: No OFD packet to send [19:54:08]OFD Sender: No OFD packet to send [19:54:13]OFD Sender: No OFD packet to send [19:54:18]OFD Sender: No OFD packet to send [19:54:23]OFD Sender: No OFD packet to send [19:54:24]accept exits with 9 [19:54:24]New connection [19:54:24]New thread 3066944868 created [19:54:24]Thread 3066801508 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.62.5:8080 [19:54:24]Content-Length: 938 [19:54:24]Content-Type: application/json [19:54:24] [19:54:24]POST finish read [19:54:24]Found Content-Length = 938 [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)191471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 30.000, "sum" : 2157.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 2157.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)191471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 30.000, "sum" : 2157.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 2157.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 EA 09 E2 [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 EA 09 00 F1 6E 25 66 F4 E9 65 64 7B [19:54:24]GetLastDocTimeStamp 1713729156 [19:54:24]current date 1713729265 [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 EB 09 80 13 01 00 00 00 00 00 71 [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 EB 09 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 B8 [19:54:24]RAPDU: 09 00 01 55 5C 24 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 1713658965 [19:54:24]opened+sec_in_day 1713745365 [19:54:24]quantity*price = 215700 [19:54:24]sum+1 = 215701 [19:54:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2157.00 НСП 1% : 19.09 НДС 12% : 229.06 Наличными: 2157.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 179 21.04.2024 19:54 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 30.00 сом ФМ: 0000000000874652 ФД: 76923 ФПД: 195463855877975 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T195425&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76923&fm=195463855877975&tin=02508201610067®Number=0000000000091573&sum=215700 [19:54:25]StoreToDocumentArchive [19:54:25]shift 372 fd 76923 [19:54:25]save to /storage/0372/doc_00076923 [19:54:25]save last doc name /storage/0372/doc_00076923 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=248 [19:54:25]tlvbuf is 00C97690 [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 F8 09 80 09 00 00 00 00 00 00 73 [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 F8 09 00 90 00 75 [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 F9 09 80 0D 01 02 00 00 00 00 7B [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 F9 09 00 90 00 76 [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 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 94 4A 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 4A 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 59 00 00 00 00 07 04 06 00 94 4A 03 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 F1 6E 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7B 2C 01 00 35 04 06 00 B1 C5 F9 B2 [19:54:25]Write to MH i2c: E2 02 01 FA 09 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 94 4A 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 4A 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 59 00 00 00 00 07 04 06 00 94 4A 03 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 F1 6E 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7B 2C 01 00 35 04 06 00 B1 C5 F9 B2 00 00 7C [19:54:25]Write i2c OK [19:54:25]MH_I2C_Read... [19:54:25]*** iso7816_exchange 80 0D 02 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 FA 09 00 90 00 77 [19:54:25]RAPDU: 90 00 [19:54:25]wFMCommunicate OK [19:54:25]wFMCommunicate request_size=7 [19:54:25]MH_SAM_APDU [19:54:25]CAPDU: 80 0D 02 02 02 2F 57 [19:54:25]Write to MH i2c: E2 0A 00 FB 09 80 0D 02 02 02 00 2F 57 00 00 08 [19:54:25]Write i2c OK [19:54:25]MH_I2C_Read... [19:54:25]*** iso7816_exchange 80 0D 02 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 FB 09 00 90 00 78 [19:54:25]RAPDU: 90 00 [19:54:25]wFMCommunicate OK [19:54:25]wFMCommunicate request_size=4 [19:54:25]MH_SAM_APDU [19:54:25]CAPDU: 80 0D 03 02 [19:54:25]Write to MH i2c: E2 08 00 FC 09 80 0D 03 02 00 00 00 00 80 [19:54:25]Write i2c OK [19:54:25]MH_I2C_Read... [19:54:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:54:25]Read from MH i2c: E2 [19:54:25]MH_I2C_Read... [19:54:25]Read from MH i2c: E2 0B 00 [19:54:25]MH_I2C_Read... [19:54:25]Read from MH i2c: E2 0B 00 FC 09 00 11 4D A4 FA AF 69 DC EB 90 00 5C [19:54:25]RAPDU: 11 4D A4 FA AF 69 DC EB 90 00 [19:54:25]wFMCommunicate OK [19:54:25]SAM_PROTO_SignData done [19:54:25]FM_MakeSignedData done [19:54:25]CreateOFDProtocolMessage [19:54:25]wFMCommunicate request_size=4 [19:54:25]MH_SAM_APDU [19:54:25]CAPDU: 80 11 00 00 [19:54:25]Write to MH i2c: E2 08 00 FD 09 80 11 00 00 00 00 00 00 80 [19:54:25]Write i2c OK [19:54:25]MH_I2C_Read... [19:54:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:25]Read from MH i2c: E2 [19:54:25]MH_I2C_Read... [19:54:25]Read from MH i2c: E2 17 00 [19:54:25]MH_I2C_Read... [19:54:25]Read from MH i2c: E2 17 00 FD 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 D3 [19:54:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:54:25]wFMCommunicate OK [19:54:25]CreateOFDProtocolMessage done [19:54:25]OFDSenderStorePacket 76923 [19:54:25]StoreOFDPacket docnum=76923 [19:54:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 23 F2 04 01 8E 97 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 94 4A 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 4A 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 59 00 00 00 00 07 04 06 00 94 4A 03 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 F1 6E 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7B 2C 01 00 35 04 06 00 B1 C5 F9 B2 2F 57 11 4D A4 FA AF 69 DC EB [19:54:25]CheckFolder [19:54:25]dirname=/storage/ofd_packets [19:54:25]CheckFolder done [19:54:25]ProducePacketName [19:54:25]name=ofd_packets/00076923 [19:54:25]NVStorageSaveData ofd_packets/00076923 [19:54:25]File name is /storage/ofd_packets/00076923 [19:54:25]Write 298 bytes [19:54:25]NVStorageSaveData done [19:54:25]OFDSenderStorePacket done [19:54:25]KKMCreateOFDPacket done [19:54:25]NVStorageSaveData kkm_last_timestamp [19:54:25]File name is /storage/kkm_last_timestamp [19:54:25]Write 4 bytes [19:54:25]NVStorageSaveData done [19:54:25]ExternCall_PrintAddStr [19:54:25]wPrintStart [19:54:25]Write to MH i2c: 01 00 00 FE 09 07 [19:54:25]Write i2c OK [19:54:25]MH_I2C_Read... [19:54:25]Read from MH i2c: 01 [19:54:25]MH_I2C_Read... [19:54:25]Read from MH i2c: 01 07 00 [19:54:25]MH_I2C_Read... [19:54:25]Read from MH i2c: 01 07 00 FE 09 00 00 00 00 00 FF 0F 1C [19:54:25]RasterBufferAndPrint [19:54:25]line Счет N : (1)191471 [19:54:25]line ИНН: 02508201610067 [19:54:25]line Контрольно-Кассовый Чек [19:54:25]line ПРОДАЖА [19:54:25]line ТРК (МРК, ГНК) : 23 [19:54:25]line Товар: 2710194210 [19:54:25]line ДТ-К-5 [19:54:25]line 30.000 * 71.90 [19:54:25]line = 2157.00 [19:54:25]line НДС 12% НСП 1% [19:54:25]line > о реализуемом товаре [19:54:25]line ИТОГО: 2157.00 [19:54:25]line НСП 1% : 19.09 [19:54:25]line НДС 12% : 229.06 [19:54:25]line Наличными: 2157.00 [19:54:25]line Безнал.: 0.00 [19:54:25]line Место: АЗС № 106 "Партнер Нефть" [19:54:25]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [19:54:25]line СНО: Общий режим [19:54:25]line Чек 179 21.04.2024 19:54 [19:54:25]line Смена: 372 ФФД: 1.0 [19:54:25]line ЗНМ: 0300000141 [19:54:25]line РНМ: 0000000000091573 [19:54:25]line Версия ККМ: 001 [19:54:25]line [19:54:25]line Дисконтная программа [19:54:25]line ДТ [19:54:25]line номер 106 [19:54:25]line сэкономлено 30.00 сом [19:54:25]line ФМ: 0000000000874652 [19:54:25]line ФД: 76923 [19:54:25]line ФПД: 195463855877975 [19:54:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T195425&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76923&fm=195463855877975&tin=02508201610067®Number=0000000000091573&sum=215700 [19:54:26]OFD Sender: Processing packet 76923 [packets to send 129, broken 128] [19:54:26]ProducePacketName [19:54:26]name=ofd_packets/00076923 [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 34 36 35 32 0C 01 00 00 23 F2 04 01 8E 97 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 94 4A 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 4A 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 59 00 00 00 00 07 04 06 00 94 4A 03 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 F1 6E 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7B 2C 01 00 35 04 06 00 B1 C5 F9 B2 2F 57 11 4D A4 FA AF 69 DC EB [19:54:26]Write to MH i2c: 01 00 00 2A 0A 34 [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 2A 0A 00 00 00 00 00 E5 0C 2C [19:54:26]RasterBufferAndPrint [19:54:26]line [19:54:26]line [19:54:26]line [19:54:26]line [19:54:26]line [19:54:26]written 0, free lines is 3305 [19:54:26]MH_Cut [19:54:26]Write to MH i2c: D1 01 00 31 0A 01 0D [19:54:26]Write i2c OK [19:54:26]MH_I2C_Read... [19:54:26]Read from MH i2c: D1 [19:54:26]MH_I2C_Read... [19:54:26]Read from MH i2c: D1 01 00 [19:54:26]MH_I2C_Read... [19:54:26]Read from MH i2c: D1 01 00 31 0A 00 0C [19:54:26]Write to MH i2c: 01 00 00 32 0A 3C [19:54:26]Write i2c OK [19:54:26]MH_I2C_Read... [19:54:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 59 FC 47 00 D2 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7B 2C 01 00 F4 03 04 00 76 16 25 66 B6 04 01 00 00 4A 11 31 58 B7 86 CD 47 [19:54:26]CommunicateWithHost err = 0 [19:54:26]CheckOFDResponse [19:54:26]1017 (14) - 77093643461234 [19:54:26]1041 (16) - 0000000000874652 [19:54:26]1040 (4) - 76923 [19:54:26]1012 (4) - 21.04.2024 13:36 [19:54:26]1206 (1) - 0 [19:54:26]OFD Sender: Remove packet 76923 [19:54:26]ProducePacketName [19:54:26]name=ofd_packets/00076923 [19:54:26]NVStorageDeleteData [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:27]*** Brake cut motor [19:54:27]Read from MH i2c: 01 [19:54:27]MH_I2C_Read... [19:54:27]*** Stop cut motor [19:54:27]*** Cut end [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 32 0A 00 00 00 00 00 FF 0F 51 [19:54:27]process_action close_receipt done [19:54:27]requested_data is exist [19:54:27]produce_requested_data [19:54:27]requested_item fm.sn is exist - process it [19:54:27]wFMCommunicate request_size=4 [19:54:27]MH_SAM_APDU [19:54:27]CAPDU: 80 11 00 00 [19:54:27]Write to MH i2c: E2 08 00 33 0A 80 11 00 00 00 00 00 00 B7 [19:54:27]Write i2c OK [19:54:27]MH_I2C_Read... [19:54:27]Read from MH i2c: E2 [19:54:27]MH_I2C_Read... [19:54:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:27]Read from MH i2c: E2 17 00 [19:54:27]MH_I2C_Read... [19:54:27]Read from MH i2c: E2 17 00 33 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 0A [19:54:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:54:27]wFMCommunicate OK [19:54:27]requested_item fd.num is exist - process it [19:54:27]SAM_PROTO_GetFieldsCounters [19:54:27]wFMCommunicate request_size=4 [19:54:27]MH_SAM_APDU [19:54:27]CAPDU: 80 13 00 00 [19:54:27]Write to MH i2c: E2 08 00 34 0A 80 13 00 00 00 00 00 00 BA [19:54:27]Write i2c OK [19:54:27]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 34 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 7B 2C 01 00 0E 04 04 00 74 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 11 [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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 7B 2C 01 00 0E 04 04 00 74 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 [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 35 0A 80 13 01 00 00 00 00 00 BC [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 35 0A 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 03 [19:54:28]RAPDU: 09 00 01 55 5C 24 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":"0000000000874652","fd.num":76923,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [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":"0000000000874652","fd.num":76923,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [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:38]accept exits with 8 [19:55:38]New connection [19:55:38]New thread 3066801508 created [19:55:38]Thread 3066944868 joined [19:55:38]Waiting for new connection... [19:55:38] Sock 8.Parse request [19:55:38]Sock 8.Check first char [19:55:38]Sock 8.First char is OK [19:55:38]request: POST /json_proto HTTP/1.0 [19:55:38]Method: POST [19:55:38]URL: /json_proto [19:55:38]Method is POST - this is cgi request [19:55:38]url: /json_proto [19:55:38]query_string will be loaded in cgi processing [19:55:38]execute_cgi json_proto POST (null) [19:55:38]execute_cgi path=json_proto method=POST [19:55:38]POST find Content-Length [19:55:38]Host: 172.17.62.5:8080 [19:55:38]Content-Length: 817 [19:55:38]Content-Type: application/json [19:55:38] [19:55:38]POST finish read [19:55:38]Found Content-Length = 817 [19:55:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191472", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 10.870, "sum" : 700.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:55:38]execute_script... [19:55: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)191472", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 10.870, "sum" : 700.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:55:38]POST & json_proto [19:55:38]process_json_proto [19:55:38]json parsed OK: [19:55:38]protocol is kg_v1.0 [19:55:38]action value=close_receipt [19:55:38]process_action close_receipt [19:55:38]cmd_close_receipt [19:55:38]MH_GetDate [19:55:38]Write to MH i2c: F0 00 00 36 0A 2F [19:55:38]Write i2c OK [19:55:38]MH_I2C_Read... [19:55:38]Read from MH i2c: F0 [19:55:38]MH_I2C_Read... [19:55:38]Read from MH i2c: F0 09 00 [19:55:38]MH_I2C_Read... [19:55:38]Read from MH i2c: F0 09 00 36 0A 00 3B 6F 25 66 F4 E9 65 64 13 [19:55:38]GetLastDocTimeStamp 1713729265 [19:55:38]current date 1713729339 [19:55:38]FM_GetShiftState [19:55:38]SAM_PROTO_GetShiftState [19:55:38]wFMCommunicate request_size=4 [19:55:38]MH_SAM_APDU [19:55:38]CAPDU: 80 13 01 00 [19:55:38]Write to MH i2c: E2 08 00 37 0A 80 13 01 00 00 00 00 00 BE [19:55:38]Write i2c OK [19:55:38]MH_I2C_Read... [19:55:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:38]Read from MH i2c: E2 [19:55:38]MH_I2C_Read... [19:55:38]Read from MH i2c: E2 0E 00 [19:55:38]MH_I2C_Read... [19:55:38]Read from MH i2c: E2 0E 00 37 0A 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 05 [19:55:38]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [19:55:38]wFMCommunicate OK [19:55:38]SAM_PROTO_GetShiftState done [19:55:38]FM_GetShiftState done [19:55:38]opened in 1713658965 [19:55:38]opened+sec_in_day 1713745365 [19:55:38]quantity*price = 70002 [19:55:38]sum+1 = 70004 [19:55:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.03 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 0.00 Безнал.: 700.03 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 180 21.04.2024 19:55 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 76924 ФПД: 266008061751157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T195539&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76924&fm=266008061751157&tin=02508201610067®Number=0000000000091573&sum=70003 [19:55:39]StoreToDocumentArchive [19:55:39]shift 372 fd 76924 [19:55:39]save to /storage/0372/doc_00076924 [19:55:39]save last doc name /storage/0372/doc_00076924 to /storage/kkm_last_doc_name [19:55:39]save OK [19:55:39]Clear old archive folders... [19:55:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:55:39]tlvbuf is 00CCF150 [19:55:39]SAM_PROTO_ClearQueue [19:55:39]wFMCommunicate request_size=4 [19:55:39]MH_SAM_APDU [19:55:39]CAPDU: 80 09 00 00 [19:55:39]Write to MH i2c: E2 08 00 44 0A 80 09 00 00 00 00 00 00 C0 [19:55:39]Write i2c OK [19:55:39]MH_I2C_Read... [19:55:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:55:39]Read from MH i2c: E2 [19:55:39]MH_I2C_Read... [19:55:39]Read from MH i2c: E2 03 00 [19:55:39]MH_I2C_Read... [19:55:39]Read from MH i2c: E2 03 00 44 0A 00 90 00 C2 [19:55:39]RAPDU: 90 00 [19:55:39]wFMCommunicate OK [19:55:39]SAM_PROTO_ClearQueue done [19:55:39]KKMCreateOFDPacket [19:55:39]OFDProtocolAddRootSTLVToBuf [19:55:39]FM_MakeSignedData [19:55:39]FM_MakeSignedData [19:55:39]SAM_PROTO_SignData [19:55:39]wFMCommunicate request_size=4 [19:55:39]MH_SAM_APDU [19:55:39]CAPDU: 80 0D 01 02 [19:55:39]Write to MH i2c: E2 08 00 45 0A 80 0D 01 02 00 00 00 00 C8 [19:55:39]Write i2c OK [19:55:39]MH_I2C_Read... [19:55:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:55:39]Read from MH i2c: E2 [19:55:39]MH_I2C_Read... [19:55:39]Read from MH i2c: E2 03 00 [19:55:39]MH_I2C_Read... [19:55:39]Read from MH i2c: E2 03 00 45 0A 00 90 00 C3 [19:55:39]RAPDU: 90 00 [19:55:39]wFMCommunicate OK [19:55:39]wFMCommunicate request_size=255 [19:55:39]MH_SAM_APDU [19:55: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 76 2A 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 73 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 3B 6F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7C 2C 01 00 35 04 06 00 F1 [19:55:39]Write to MH i2c: E2 02 01 46 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 76 2A 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 73 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 3B 6F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7C 2C 01 00 35 04 06 00 F1 00 00 CE [19:55:39]Write i2c OK [19:55:39]MH_I2C_Read... [19:55:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:40]Read from MH i2c: E2 [19:55:40]MH_I2C_Read... [19:55:40]Read from MH i2c: E2 03 00 [19:55:40]MH_I2C_Read... [19:55:40]Read from MH i2c: E2 03 00 46 0A 00 90 00 C4 [19:55:40]RAPDU: 90 00 [19:55:40]wFMCommunicate OK [19:55:40]wFMCommunicate request_size=10 [19:55:40]MH_SAM_APDU [19:55:40]CAPDU: 80 0D 02 02 05 EE D4 07 2F 75 [19:55:40]Write to MH i2c: E2 0D 00 47 0A 80 0D 02 02 05 00 EE D4 07 2F 75 00 00 42 [19:55:40]Write i2c OK [19:55:40]MH_I2C_Read... [19:55:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:40]Read from MH i2c: E2 [19:55:40]MH_I2C_Read... [19:55:40]Read from MH i2c: E2 03 00 [19:55:40]MH_I2C_Read... [19:55:40]Read from MH i2c: E2 03 00 47 0A 00 90 00 C5 [19:55:40]RAPDU: 90 00 [19:55:40]wFMCommunicate OK [19:55:40]wFMCommunicate request_size=4 [19:55:40]MH_SAM_APDU [19:55:40]CAPDU: 80 0D 03 02 [19:55:40]Write to MH i2c: E2 08 00 48 0A 80 0D 03 02 00 00 00 00 CD [19:55:40]Write i2c OK [19:55:40]MH_I2C_Read... [19:55:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:55:40]Read from MH i2c: E2 [19:55:40]MH_I2C_Read... [19:55:40]Read from MH i2c: E2 0B 00 [19:55:40]MH_I2C_Read... [19:55:40]Read from MH i2c: E2 0B 00 48 0A 00 FD 85 1B C5 EF 61 2D 9C 90 00 49 [19:55:40]RAPDU: FD 85 1B C5 EF 61 2D 9C 90 00 [19:55:40]wFMCommunicate OK [19:55:40]SAM_PROTO_SignData done [19:55:40]FM_MakeSignedData done [19:55:40]CreateOFDProtocolMessage [19:55:40]wFMCommunicate request_size=4 [19:55:40]MH_SAM_APDU [19:55:40]CAPDU: 80 11 00 00 [19:55:40]Write to MH i2c: E2 08 00 49 0A 80 11 00 00 00 00 00 00 CD [19:55:40]Write i2c OK [19:55:40]MH_I2C_Read... [19:55:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:40]Read from MH i2c: E2 [19:55:40]MH_I2C_Read... [19:55:40]Read from MH i2c: E2 17 00 [19:55:40]MH_I2C_Read... [19:55:40]Read from MH i2c: E2 17 00 49 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 20 [19:55:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:55:40]wFMCommunicate OK [19:55:40]CreateOFDProtocolMessage done [19:55:40]OFDSenderStorePacket 76924 [19:55:40]StoreOFDPacket docnum=76924 [19:55:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 19 EA 07 01 EE D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 76 2A 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 73 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 3B 6F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7C 2C 01 00 35 04 06 00 F1 EE D4 07 2F 75 FD 85 1B C5 EF 61 2D 9C [19:55:40]CheckFolder [19:55:40]dirname=/storage/ofd_packets [19:55:40]CheckFolder done [19:55:40]ProducePacketName [19:55:40]name=ofd_packets/00076924 [19:55:40]NVStorageSaveData ofd_packets/00076924 [19:55:40]File name is /storage/ofd_packets/00076924 [19:55:40]Write 301 bytes [19:55:40]NVStorageSaveData done [19:55:40]OFDSenderStorePacket done [19:55:40]KKMCreateOFDPacket done [19:55:40]NVStorageSaveData kkm_last_timestamp [19:55:40]File name is /storage/kkm_last_timestamp [19:55:40]Write 4 bytes [19:55:40]NVStorageSaveData done [19:55:40]ExternCall_PrintAddStr [19:55:40]wPrintStart [19:55:40]Write to MH i2c: 01 00 00 4A 0A 54 [19:55:40]Write i2c OK [19:55:40]MH_I2C_Read... [19:55:40]Read from MH i2c: 01 [19:55:40]MH_I2C_Read... [19:55:40]Read from MH i2c: 01 07 00 [19:55:40]MH_I2C_Read... [19:55:40]Read from MH i2c: 01 07 00 4A 0A 00 00 00 00 00 FF 0F 69 [19:55:40]RasterBufferAndPrint [19:55:40]line Счет N : (1)191472 [19:55:40]line ИНН: 02508201610067 [19:55:40]line Контрольно-Кассовый Чек [19:55:40]line ПРОДАЖА [19:55:40]line ТРК (МРК, ГНК) : 33 [19:55:40]line Товар: 2710124130 [19:55:40]line Аи-92-К-5 [19:55:40]line 10.870 * 64.40 [19:55:40]line = 700.03 [19:55:40]line НДС 12% НСП 1% [19:55:40]line > о реализуемом товаре [19:55:40]line ИТОГО: 700.03 [19:55:40]line НСП 1% : 6.19 [19:55:40]line НДС 12% : 74.34 [19:55:40]line Наличными: 0.00 [19:55:40]line Безнал.: 700.03 [19:55:40]line Место: АЗС № 106 "Партнер Нефть" [19:55:40]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [19:55:40]line СНО: Общий режим [19:55:40]line Чек 180 21.04.2024 19:55 [19:55:40]line Смена: 372 ФФД: 1.0 [19:55:40]line ЗНМ: 0300000141 [19:55:40]line РНМ: 0000000000091573 [19:55:40]line Версия ККМ: 001 [19:55:40]line Платежная система: Бакай Банк [19:55:40]line ФМ: 0000000000874652 [19:55:40]line ФД: 76924 [19:55:40]line ФПД: 266008061751157 [19:55:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T195539&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76924&fm=266008061751157&tin=02508201610067®Number=0000000000091573&sum=70003 [19:55:40]written 0, free lines is 4095 [19:55:40]OFD Sender: Processing packet 76924 [packets to send 129, broken 128] [19:55:40]ProducePacketName [19:55:40]name=ofd_packets/00076924 [19:55:40]OFD Sender: To server: pG, [19:55:40]CommunicateWithHost lk.salyk.kg:30040 [19:55:40]ConnectInit lk.salyk.kg [19:55:40]Connected sock=10 [19:55:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 19 EA 07 01 EE D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 76 2A 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 73 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 3B 6F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7C 2C 01 00 35 04 06 00 F1 EE D4 07 2F 75 FD 85 1B C5 EF 61 2D 9C [19:55:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 70 97 47 00 5D 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 34 36 35 32 10 04 04 00 7C 2C 01 00 F4 03 04 00 BF 16 25 66 B6 04 01 00 00 F1 FE 08 74 5C 4B 8F E5 [19:55:40]CommunicateWithHost err = 0 [19:55:40]CheckOFDResponse [19:55:40]1017 (14) - 77093643461234 [19:55:40]1041 (16) - 0000000000874652 [19:55:40]1040 (4) - 76924 [19:55:40]1012 (4) - 21.04.2024 13:38 [19:55:40]1206 (1) - 0 [19:55:40]OFD Sender: Remove packet 76924 [19:55:40]ProducePacketName [19:55:40]name=ofd_packets/00076924 [19:55:40]NVStorageDeleteData [19:55:40]Write to MH i2c: 01 00 00 73 0A 7D [19:55:40]Write i2c OK [19:55:40]MH_I2C_Read... [19:55:40]Read from MH i2c: 01 [19:55:40]MH_I2C_Read... [19:55:40]Read from MH i2c: 01 07 00 [19:55:40]MH_I2C_Read... [19:55:40]Read from MH i2c: 01 07 00 73 0A 00 00 00 00 00 F5 0C 85 [19:55:40]RasterBufferAndPrint [19:55:40]line [19:55:40]line [19:55:40]line [19:55:40]line [19:55:40]line [19:55:40]written 0, free lines is 3324 [19:55:40]MH_Cut [19:55:40]Write to MH i2c: D1 01 00 7A 0A 01 56 [19:55:40]Write i2c OK [19:55:40]MH_I2C_Read... [19:55:40]Read from MH i2c: D1 [19:55:40]MH_I2C_Read... [19:55:40]Read from MH i2c: D1 01 00 [19:55:40]MH_I2C_Read... [19:55:40]Read from MH i2c: D1 01 00 7A 0A 00 55 [19:55:40]Write to MH i2c: 01 00 00 7B 0A 85 [19:55:40]Write i2c OK [19:55:40]MH_I2C_Read... [19:55:41]OFD Sender: No OFD packet to send [19:55:41]*** Cut start [19:55:41]*** Partial cut [19:55:41]*** CUTSNS_PIN = 1 [19:55:41]*** CUTSNS_PIN = 0 [19:55:41]*** Brake cut motor [19:55:42]Read from MH i2c: 01 [19:55:42]MH_I2C_Read... [19:55:42]*** Stop cut motor [19:55:42]*** Cut end [19:55:42]Read from MH i2c: 01 07 00 [19:55:42]MH_I2C_Read... [19:55:42]Read from MH i2c: 01 07 00 7B 0A 00 00 00 00 00 FF 0F 9A [19:55:42]process_action close_receipt done [19:55:42]requested_data is exist [19:55:42]produce_requested_data [19:55:42]requested_item fm.sn is exist - process it [19:55:42]wFMCommunicate request_size=4 [19:55:42]MH_SAM_APDU [19:55:42]CAPDU: 80 11 00 00 [19:55:42]Write to MH i2c: E2 08 00 7C 0A 80 11 00 00 00 00 00 00 00 [19:55:42]Write i2c OK [19:55:42]MH_I2C_Read... [19:55:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:42]Read from MH i2c: E2 [19:55:42]MH_I2C_Read... [19:55:42]Read from MH i2c: E2 17 00 [19:55:42]MH_I2C_Read... [19:55:42]Read from MH i2c: E2 17 00 7C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 53 [19:55:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:55:42]wFMCommunicate OK [19:55:42]requested_item fd.num is exist - process it [19:55:42]SAM_PROTO_GetFieldsCounters [19:55:42]wFMCommunicate request_size=4 [19:55:42]MH_SAM_APDU [19:55:42]CAPDU: 80 13 00 00 [19:55:42]Write to MH i2c: E2 08 00 7D 0A 80 13 00 00 00 00 00 00 03 [19:55:42]Write i2c OK [19:55:42]MH_I2C_Read... [19:55:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:55:42]Read from MH i2c: E2 [19:55:42]MH_I2C_Read... [19:55:42]Read from MH i2c: E2 62 00 [19:55:42]MH_I2C_Read... [19:55:42]Read from MH i2c: E2 62 00 7D 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 7C 2C 01 00 0E 04 04 00 74 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 5E [19:55: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 7C 2C 01 00 0E 04 04 00 74 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 [19:55:42]wFMCommunicate OK [19:55:42]SAM_PROTO_GetFieldsCounters done [19:55:42]requested_item shift.num is exist - process it [19:55:42]requested_item shift.opened is exist - process it [19:55:42]req_shift_opened [19:55:42]FM_GetShiftState [19:55:42]SAM_PROTO_GetShiftState [19:55:42]wFMCommunicate request_size=4 [19:55:42]MH_SAM_APDU [19:55:42]CAPDU: 80 13 01 00 [19:55:42]Write to MH i2c: E2 08 00 7E 0A 80 13 01 00 00 00 00 00 05 [19:55:42]Write i2c OK [19:55:42]MH_I2C_Read... [19:55:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:42]Read from MH i2c: E2 [19:55:42]MH_I2C_Read... [19:55:42]Read from MH i2c: E2 0E 00 [19:55:42]MH_I2C_Read... [19:55:42]Read from MH i2c: E2 0E 00 7E 0A 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 4C [19:55:42]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [19:55:42]wFMCommunicate OK [19:55:42]SAM_PROTO_GetShiftState done [19:55:42]FM_GetShiftState done [19:55:42]req_shift_opened done [19:55:42]requested_item shift.open_date is exist - process it [19:55:42]req_shift_open_date [19:55:42]req_shift_open_date done [19:55:42]produce_requested_data done [19:55:42]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76924,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [19:55:42]process_action_free close_receipt [19:55:42]json_value_free [19:55:42]json_value_free done [19:55:42]process_json_proto returns [19:55:42]Send response to host [19:55:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76924,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [19:55:42]free response buf [19:55:42]execute_script done [19:55:42]execute_script returns [19:55:42]free content buf [19:55:42]Sock 8.Close socket [19:55:42]Sock 8.Thread stoped [19:55:46]OFD Sender: No OFD packet to send [19:55:51]OFD Sender: No OFD packet to send [19:55:56]OFD Sender: No OFD packet to send [19:56:01]OFD Sender: No OFD packet to send [19:56:06]OFD Sender: No OFD packet to send [19:56:11]OFD Sender: No OFD packet to send [19:56:16]OFD Sender: No OFD packet to send [19:56:21]OFD Sender: No OFD packet to send [19:56:26]OFD Sender: No OFD packet to send [19:56:31]OFD Sender: No OFD packet to send [19:56:36]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:16]accept exits with 9 [19:57:16]New connection [19:57:16]New thread 3066944868 created [19:57:16]Thread 3066801508 joined [19:57:16]Waiting for new connection... [19:57:16] Sock 9.Parse request [19:57:16]Sock 9.Check first char [19:57:16]Sock 9.First char is OK [19:57:16]request: POST /json_proto HTTP/1.0 [19:57:16]Method: POST [19:57:16]URL: /json_proto [19:57:16]Method is POST - this is cgi request [19:57:16]url: /json_proto [19:57:16]query_string will be loaded in cgi processing [19:57:16]execute_cgi json_proto POST (null) [19:57:16]execute_cgi path=json_proto method=POST [19:57:16]POST find Content-Length [19:57:16]Host: 172.17.62.5:8080 [19:57:16]Content-Length: 822 [19:57:16]Content-Type: application/json [19:57:16] [19:57:16]POST finish read [19:57:16]Found Content-Length = 822 [19:57:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 36.520, "sum" : 1194.20, "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" : 1194.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:57:16]execute_script... [19:57: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)191468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 36.520, "sum" : 1194.20, "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" : 1194.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:57:16]POST & json_proto [19:57:16]process_json_proto [19:57:16]json parsed OK: [19:57:16]protocol is kg_v1.0 [19:57:16]action value=close_receipt [19:57:16]process_action close_receipt [19:57:16]cmd_close_receipt [19:57:16]MH_GetDate [19:57:16]Write to MH i2c: F0 00 00 7F 0A 78 [19:57:16]Write i2c OK [19:57:16]MH_I2C_Read... [19:57:16]Read from MH i2c: F0 [19:57:16]MH_I2C_Read... [19:57:16]Read from MH i2c: F0 09 00 [19:57:16]MH_I2C_Read... [19:57:16]Read from MH i2c: F0 09 00 7F 0A 00 9D 6F 25 66 F4 E9 65 64 BE [19:57:16]GetLastDocTimeStamp 1713729339 [19:57:16]current date 1713729437 [19:57:16]FM_GetShiftState [19:57:16]SAM_PROTO_GetShiftState [19:57:16]wFMCommunicate request_size=4 [19:57:16]MH_SAM_APDU [19:57:16]CAPDU: 80 13 01 00 [19:57:16]Write to MH i2c: E2 08 00 80 0A 80 13 01 00 00 00 00 00 07 [19:57:16]Write i2c OK [19:57:16]MH_I2C_Read... [19:57:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:16]Read from MH i2c: E2 [19:57:16]MH_I2C_Read... [19:57:16]Read from MH i2c: E2 0E 00 [19:57:16]MH_I2C_Read... [19:57:16]Read from MH i2c: E2 0E 00 80 0A 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 4E [19:57:16]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [19:57:16]wFMCommunicate OK [19:57:16]SAM_PROTO_GetShiftState done [19:57:16]FM_GetShiftState done [19:57:16]opened in 1713658965 [19:57:16]opened+sec_in_day 1713745365 [19:57:16]quantity*price = 119420 [19:57:16]sum+1 = 119421 [19:57:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1194.20 НСП 1% : 10.57 НДС 12% : 126.82 Наличными: 0.00 Безнал.: 1194.20 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 181 21.04.2024 19:57 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 76925 ФПД: 115951409714960 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T195717&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76925&fm=115951409714960&tin=02508201610067®Number=0000000000091573&sum=119420 [19:57:17]StoreToDocumentArchive [19:57:17]shift 372 fd 76925 [19:57:17]save to /storage/0372/doc_00076925 [19:57:17]save last doc name /storage/0372/doc_00076925 to /storage/kkm_last_doc_name [19:57:17]save OK [19:57:17]Clear old archive folders... [19:57:17]ProcessDocumentItem done err = 0, tmpTLVsize=250 [19:57:17]tlvbuf is 00CCEEC0 [19:57:17]SAM_PROTO_ClearQueue [19:57:17]wFMCommunicate request_size=4 [19:57:17]MH_SAM_APDU [19:57:17]CAPDU: 80 09 00 00 [19:57:17]Write to MH i2c: E2 08 00 8D 0A 80 09 00 00 00 00 00 00 09 [19:57:17]Write i2c OK [19:57:17]MH_I2C_Read... [19:57:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:57:17]Read from MH i2c: E2 [19:57:17]MH_I2C_Read... [19:57:17]Read from MH i2c: E2 03 00 [19:57:17]MH_I2C_Read... [19:57:17]Read from MH i2c: E2 03 00 8D 0A 00 90 00 0B [19:57:17]RAPDU: 90 00 [19:57:17]wFMCommunicate OK [19:57:17]SAM_PROTO_ClearQueue done [19:57:17]KKMCreateOFDPacket [19:57:17]OFDProtocolAddRootSTLVToBuf [19:57:17]FM_MakeSignedData [19:57:17]FM_MakeSignedData [19:57:17]SAM_PROTO_SignData [19:57:17]wFMCommunicate request_size=4 [19:57:17]MH_SAM_APDU [19:57:17]CAPDU: 80 0D 01 02 [19:57:17]Write to MH i2c: E2 08 00 8E 0A 80 0D 01 02 00 00 00 00 11 [19:57:17]Write i2c OK [19:57:17]MH_I2C_Read... [19:57:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:57:17]Read from MH i2c: E2 [19:57:17]MH_I2C_Read... [19:57:17]Read from MH i2c: E2 03 00 [19:57:17]MH_I2C_Read... [19:57:17]Read from MH i2c: E2 03 00 8E 0A 00 90 00 0C [19:57:17]RAPDU: 90 00 [19:57:17]wFMCommunicate OK [19:57:17]wFMCommunicate request_size=255 [19:57:17]MH_SAM_APDU [19:57:17]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A8 8E 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 7C D2 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C D2 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C D2 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 9D 6F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7D 2C 01 00 35 04 06 00 69 75 [19:57:17]Write to MH i2c: E2 02 01 8F 0A 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A8 8E 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 7C D2 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C D2 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C D2 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 9D 6F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7D 2C 01 00 35 04 06 00 69 75 00 00 E0 [19:57:17]Write i2c OK [19:57:17]MH_I2C_Read... [19:57:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:17]Read from MH i2c: E2 [19:57:17]MH_I2C_Read... [19:57:17]Read from MH i2c: E2 03 00 [19:57:17]MH_I2C_Read... [19:57:17]Read from MH i2c: E2 03 00 8F 0A 00 90 00 0D [19:57:17]RAPDU: 90 00 [19:57:17]wFMCommunicate OK [19:57:17]wFMCommunicate request_size=9 [19:57:17]MH_SAM_APDU [19:57:17]CAPDU: 80 0D 02 02 04 0A 96 57 10 [19:57:17]Write to MH i2c: E2 0C 00 90 0A 80 0D 02 02 04 00 0A 96 57 10 00 00 23 [19:57:17]Write i2c OK [19:57:17]MH_I2C_Read... [19:57:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:18]Read from MH i2c: E2 [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: E2 03 00 [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: E2 03 00 90 0A 00 90 00 0E [19:57:18]RAPDU: 90 00 [19:57:18]wFMCommunicate OK [19:57:18]wFMCommunicate request_size=4 [19:57:18]MH_SAM_APDU [19:57:18]CAPDU: 80 0D 03 02 [19:57:18]Write to MH i2c: E2 08 00 91 0A 80 0D 03 02 00 00 00 00 16 [19:57:18]Write i2c OK [19:57:18]MH_I2C_Read... [19:57:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:57:18]Read from MH i2c: E2 [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: E2 0B 00 [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: E2 0B 00 91 0A 00 08 C8 9A 6A 05 94 BE 63 90 00 A5 [19:57:18]RAPDU: 08 C8 9A 6A 05 94 BE 63 90 00 [19:57:18]wFMCommunicate OK [19:57:18]SAM_PROTO_SignData done [19:57:18]FM_MakeSignedData done [19:57:18]CreateOFDProtocolMessage [19:57:18]wFMCommunicate request_size=4 [19:57:18]MH_SAM_APDU [19:57:18]CAPDU: 80 11 00 00 [19:57:18]Write to MH i2c: E2 08 00 92 0A 80 11 00 00 00 00 00 00 16 [19:57:18]Write i2c OK [19:57:18]MH_I2C_Read... [19:57:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:18]Read from MH i2c: E2 [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: E2 17 00 [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: E2 17 00 92 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 69 [19:57:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:57:18]wFMCommunicate OK [19:57:18]CreateOFDProtocolMessage done [19:57:18]OFDSenderStorePacket 76925 [19:57:18]StoreOFDPacket docnum=76925 [19:57:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 D1 B0 06 01 22 7C 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A8 8E 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 7C D2 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C D2 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C D2 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 9D 6F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7D 2C 01 00 35 04 06 00 69 75 0A 96 57 10 08 C8 9A 6A 05 94 BE 63 [19:57:18]CheckFolder [19:57:18]dirname=/storage/ofd_packets [19:57:18]CheckFolder done [19:57:18]ProducePacketName [19:57:18]name=ofd_packets/00076925 [19:57:18]NVStorageSaveData ofd_packets/00076925 [19:57:18]File name is /storage/ofd_packets/00076925 [19:57:18]Write 300 bytes [19:57:18]NVStorageSaveData done [19:57:18]OFDSenderStorePacket done [19:57:18]KKMCreateOFDPacket done [19:57:18]NVStorageSaveData kkm_last_timestamp [19:57:18]File name is /storage/kkm_last_timestamp [19:57:18]Write 4 bytes [19:57:18]NVStorageSaveData done [19:57:18]ExternCall_PrintAddStr [19:57:18]wPrintStart [19:57:18]Write to MH i2c: 01 00 00 93 0A 9D [19:57:18]Write i2c OK [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: 01 [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: 01 07 00 [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: 01 07 00 93 0A 00 00 00 00 00 FF 0F B2 [19:57:18]RasterBufferAndPrint [19:57:18]line Счет N : (1)191468 [19:57:18]line ИНН: 02508201610067 [19:57:18]line Контрольно-Кассовый Чек [19:57:18]line ПРОДАЖА [19:57:18]line ТРК (МРК, ГНК) : 71 [19:57:18]line Товар: 2711190000 [19:57:18]line ГАЗ-К-5 [19:57:18]line 36.520 * 32.70 [19:57:18]line = 1194.20 [19:57:18]line НДС 12% НСП 1% [19:57:18]line > о реализуемом товаре [19:57:18]line ИТОГО: 1194.20 [19:57:18]line НСП 1% : 10.57 [19:57:18]line НДС 12% : 126.82 [19:57:18]line Наличными: 0.00 [19:57:18]line Безнал.: 1194.20 [19:57:18]line Место: АЗС № 106 "Партнер Нефть" [19:57:18]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [19:57:18]line СНО: Общий режим [19:57:18]line Чек 181 21.04.2024 19:57 [19:57:18]line Смена: 372 ФФД: 1.0 [19:57:18]line ЗНМ: 0300000141 [19:57:18]line РНМ: 0000000000091573 [19:57:18]line Версия ККМ: 001 [19:57:18]line Платежная система: Бакай Банк [19:57:18]line ФМ: 0000000000874652 [19:57:18]line ФД: 76925 [19:57:18]line ФПД: 115951409714960 [19:57:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T195717&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76925&fm=115951409714960&tin=02508201610067®Number=0000000000091573&sum=119420 [19:57:18]written 0, free lines is 4095 [19:57:18]OFD Sender: Processing packet 76925 [packets to send 129, broken 128] [19:57:18]ProducePacketName [19:57:18]name=ofd_packets/00076925 [19:57:18]OFD Sender: To server: pG, [19:57:18]CommunicateWithHost lk.salyk.kg:30040 [19:57:18]ConnectInit lk.salyk.kg [19:57:18]Write to MH i2c: 01 00 00 BC 0A C6 [19:57:18]Write i2c OK [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: 01 [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: 01 07 00 [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: 01 07 00 BC 0A 00 00 00 00 00 FE 0C D7 [19:57:18]RasterBufferAndPrint [19:57:18]line [19:57:18]line [19:57:18]line [19:57:18]line [19:57:18]line [19:57:18]written 0, free lines is 3332 [19:57:18]MH_Cut [19:57:18]Write to MH i2c: D1 01 00 C3 0A 01 9F [19:57:18]Write i2c OK [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: D1 [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: D1 01 00 [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: D1 01 00 C3 0A 00 9E [19:57:18]Write to MH i2c: 01 00 00 C4 0A CE [19:57:18]Write i2c OK [19:57:18]MH_I2C_Read... [19:57:18]Connected sock=11 [19:57:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 D1 B0 06 01 22 7C 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A8 8E 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 7C D2 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C D2 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C D2 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 9D 6F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7D 2C 01 00 35 04 06 00 69 75 0A 96 57 10 08 C8 9A 6A 05 94 BE 63 [19:57:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 C6 00 47 00 9B 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7D 2C 01 00 F4 03 04 00 22 17 25 66 B6 04 01 00 00 5C AE 0C A0 D5 47 12 6E [19:57:18]CommunicateWithHost err = 0 [19:57:18]CheckOFDResponse [19:57:18]1017 (14) - 77093643461234 [19:57:18]1041 (16) - 0000000000874652 [19:57:18]1040 (4) - 76925 [19:57:18]1012 (4) - 21.04.2024 13:39 [19:57:18]1206 (1) - 0 [19:57:18]OFD Sender: Remove packet 76925 [19:57:18]ProducePacketName [19:57:18]name=ofd_packets/00076925 [19:57:18]NVStorageDeleteData [19:57:19]*** Cut start [19:57:19]*** Partial cut [19:57:19]*** CUTSNS_PIN = 1 [19:57:19]OFD Sender: No OFD packet to send [19:57:19]*** CUTSNS_PIN = 0 [19:57:19]*** Brake cut motor [19:57:19]Read from MH i2c: 01 [19:57:19]MH_I2C_Read... [19:57:19]*** Stop cut motor [19:57:19]*** Cut end [19:57:19]Read from MH i2c: 01 07 00 [19:57:19]MH_I2C_Read... [19:57:19]Read from MH i2c: 01 07 00 C4 0A 00 00 00 00 00 FF 0F E3 [19:57:19]process_action close_receipt done [19:57:19]requested_data is exist [19:57:19]produce_requested_data [19:57:19]requested_item fm.sn is exist - process it [19:57:19]wFMCommunicate request_size=4 [19:57:19]MH_SAM_APDU [19:57:19]CAPDU: 80 11 00 00 [19:57:19]Write to MH i2c: E2 08 00 C5 0A 80 11 00 00 00 00 00 00 49 [19:57:19]Write i2c OK [19:57:19]MH_I2C_Read... [19:57:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:20]Read from MH i2c: E2 [19:57:20]MH_I2C_Read... [19:57:20]Read from MH i2c: E2 17 00 [19:57:20]MH_I2C_Read... [19:57:20]Read from MH i2c: E2 17 00 C5 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 9C [19:57:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:57:20]wFMCommunicate OK [19:57:20]requested_item fd.num is exist - process it [19:57:20]SAM_PROTO_GetFieldsCounters [19:57:20]wFMCommunicate request_size=4 [19:57:20]MH_SAM_APDU [19:57:20]CAPDU: 80 13 00 00 [19:57:20]Write to MH i2c: E2 08 00 C6 0A 80 13 00 00 00 00 00 00 4C [19:57:20]Write i2c OK [19:57:20]MH_I2C_Read... [19:57:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:57:20]Read from MH i2c: E2 [19:57:20]MH_I2C_Read... [19:57:20]Read from MH i2c: E2 62 00 [19:57:20]MH_I2C_Read... [19:57:20]Read from MH i2c: E2 62 00 C6 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 7D 2C 01 00 0E 04 04 00 74 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 AB [19:57: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 7D 2C 01 00 0E 04 04 00 74 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 [19:57:20]wFMCommunicate OK [19:57:20]SAM_PROTO_GetFieldsCounters done [19:57:20]requested_item shift.num is exist - process it [19:57:20]requested_item shift.opened is exist - process it [19:57:20]req_shift_opened [19:57:20]FM_GetShiftState [19:57:20]SAM_PROTO_GetShiftState [19:57:20]wFMCommunicate request_size=4 [19:57:20]MH_SAM_APDU [19:57:20]CAPDU: 80 13 01 00 [19:57:20]Write to MH i2c: E2 08 00 C7 0A 80 13 01 00 00 00 00 00 4E [19:57:20]Write i2c OK [19:57:20]MH_I2C_Read... [19:57:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:20]Read from MH i2c: E2 [19:57:20]MH_I2C_Read... [19:57:20]Read from MH i2c: E2 0E 00 [19:57:20]MH_I2C_Read... [19:57:20]Read from MH i2c: E2 0E 00 C7 0A 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 95 [19:57:20]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [19:57:20]wFMCommunicate OK [19:57:20]SAM_PROTO_GetShiftState done [19:57:20]FM_GetShiftState done [19:57:20]req_shift_opened done [19:57:20]requested_item shift.open_date is exist - process it [19:57:20]req_shift_open_date [19:57:20]req_shift_open_date done [19:57:20]produce_requested_data done [19:57:20]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76925,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [19:57:20]process_action_free close_receipt [19:57:20]json_value_free [19:57:20]json_value_free done [19:57:20]process_json_proto returns [19:57:20]Send response to host [19:57:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76925,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [19:57:20]free response buf [19:57:20]execute_script done [19:57:20]execute_script returns [19:57:20]free content buf [19:57:20]Sock 9.Close socket [19:57:20]Sock 9.Thread stoped [19:57:24]OFD Sender: No OFD packet to send [19:57:29]OFD Sender: No OFD packet to send [19:57:34]OFD Sender: No OFD packet to send [19:57:39]OFD Sender: No OFD packet to send [19:57:44]OFD Sender: No OFD packet to send [19:57:49]OFD Sender: No OFD packet to send [19:57:54]OFD Sender: No OFD packet to send [19:57:59]OFD Sender: No OFD packet to send [19:58:03]accept exits with 8 [19:58:03]New connection [19:58:03]New thread 3066801508 created [19:58:03]Thread 3066944868 joined [19:58:03]Waiting for new connection... [19:58:03] Sock 8.Parse request [19:58:03]Sock 8.Check first char [19:58:03]Sock 8.First char is OK [19:58:03]request: POST /json_proto HTTP/1.0 [19:58:03]Method: POST [19:58:03]URL: /json_proto [19:58:03]Method is POST - this is cgi request [19:58:03]url: /json_proto [19:58:03]query_string will be loaded in cgi processing [19:58:03]execute_cgi json_proto POST (null) [19:58:03]execute_cgi path=json_proto method=POST [19:58:03]POST find Content-Length [19:58:03]Host: 172.17.62.5:8080 [19:58:03]Content-Length: 677 [19:58:03]Content-Type: application/json [19:58:03] [19:58:03]POST finish read [19:58:03]Found Content-Length = 677 [19:58:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191473", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 6.220, "sum" : 400.57, "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:03]execute_script... [19:58: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)191473", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 6.220, "sum" : 400.57, "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:03]POST & json_proto [19:58:03]process_json_proto [19:58:03]json parsed OK: [19:58:03]protocol is kg_v1.0 [19:58:03]action value=close_receipt [19:58:03]process_action close_receipt [19:58:03]cmd_close_receipt [19:58:03]MH_GetDate [19:58:03]Write to MH i2c: F0 00 00 C8 0A C1 [19:58:03]Write i2c OK [19:58:03]MH_I2C_Read... [19:58:03]Read from MH i2c: F0 [19:58:03]MH_I2C_Read... [19:58:03]Read from MH i2c: F0 09 00 [19:58:03]MH_I2C_Read... [19:58:03]Read from MH i2c: F0 09 00 C8 0A 00 CC 6F 25 66 F4 E9 65 64 36 [19:58:03]GetLastDocTimeStamp 1713729437 [19:58:03]current date 1713729484 [19:58:03]FM_GetShiftState [19:58:03]SAM_PROTO_GetShiftState [19:58:03]wFMCommunicate request_size=4 [19:58:03]MH_SAM_APDU [19:58:03]CAPDU: 80 13 01 00 [19:58:03]Write to MH i2c: E2 08 00 C9 0A 80 13 01 00 00 00 00 00 50 [19:58:03]Write i2c OK [19:58:03]MH_I2C_Read... [19:58:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:03]Read from MH i2c: E2 [19:58:03]MH_I2C_Read... [19:58:03]Read from MH i2c: E2 0E 00 [19:58:03]MH_I2C_Read... [19:58:03]Read from MH i2c: E2 0E 00 C9 0A 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 97 [19:58:03]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [19:58:03]wFMCommunicate OK [19:58:03]SAM_PROTO_GetShiftState done [19:58:03]FM_GetShiftState done [19:58:03]opened in 1713658965 [19:58:03]opened+sec_in_day 1713745365 [19:58:03]quantity*price = 40056 [19:58:03]sum+1 = 40058 [19:58:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 182 21.04.2024 19:58 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76926 ФПД: 8917851124006 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T195804&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76926&fm=8917851124006&tin=02508201610067®Number=0000000000091573&sum=40000 [19:58:05]StoreToDocumentArchive [19:58:05]shift 372 fd 76926 [19:58:05]save to /storage/0372/doc_00076926 [19:58:05]save last doc name /storage/0372/doc_00076926 to /storage/kkm_last_doc_name [19:58:05]save OK [19:58:05]Clear old archive folders... [19:58:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:58:05]tlvbuf is 00C97230 [19:58:05]SAM_PROTO_ClearQueue [19:58:05]wFMCommunicate request_size=4 [19:58:05]MH_SAM_APDU [19:58:05]CAPDU: 80 09 00 00 [19:58:05]Write to MH i2c: E2 08 00 D6 0A 80 09 00 00 00 00 00 00 52 [19:58:05]Write i2c OK [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: E2 [19:58:05]MH_I2C_Read... [19:58:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:58:05]Read from MH i2c: E2 03 00 [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: E2 03 00 D6 0A 00 90 00 54 [19:58:05]RAPDU: 90 00 [19:58:05]wFMCommunicate OK [19:58:05]SAM_PROTO_ClearQueue done [19:58:05]KKMCreateOFDPacket [19:58:05]OFDProtocolAddRootSTLVToBuf [19:58:05]FM_MakeSignedData [19:58:05]FM_MakeSignedData [19:58:05]SAM_PROTO_SignData [19:58:05]wFMCommunicate request_size=4 [19:58:05]MH_SAM_APDU [19:58:05]CAPDU: 80 0D 01 02 [19:58:05]Write to MH i2c: E2 08 00 D7 0A 80 0D 01 02 00 00 00 00 5A [19:58:05]Write i2c OK [19:58:05]MH_I2C_Read... [19:58:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:58:05]Read from MH i2c: E2 [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: E2 03 00 [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: E2 03 00 D7 0A 00 90 00 55 [19:58:05]RAPDU: 90 00 [19:58:05]wFMCommunicate OK [19:58:05]wFMCommunicate request_size=255 [19:58:05]MH_SAM_APDU [19: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 4C 18 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 79 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 9E 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 B6 00 00 00 F4 03 04 00 CC 6F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7E 2C 01 00 35 04 06 00 08 [19:58:05]Write to MH i2c: E2 02 01 D8 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 4C 18 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 79 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 9E 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 B6 00 00 00 F4 03 04 00 CC 6F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7E 2C 01 00 35 04 06 00 08 00 00 8B [19:58:05]Write i2c OK [19:58:05]MH_I2C_Read... [19:58:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:05]Read from MH i2c: E2 [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: E2 03 00 [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: E2 03 00 D8 0A 00 90 00 56 [19:58:05]RAPDU: 90 00 [19:58:05]wFMCommunicate OK [19:58:05]wFMCommunicate request_size=10 [19:58:05]MH_SAM_APDU [19:58:05]CAPDU: 80 0D 02 02 05 1C 59 59 31 26 [19:58:05]Write to MH i2c: E2 0D 00 D9 0A 80 0D 02 02 05 00 1C 59 59 31 26 00 00 8C [19:58:05]Write i2c OK [19:58:05]MH_I2C_Read... [19:58:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:05]Read from MH i2c: E2 [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: E2 03 00 [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: E2 03 00 D9 0A 00 90 00 57 [19:58:05]RAPDU: 90 00 [19:58:05]wFMCommunicate OK [19:58:05]wFMCommunicate request_size=4 [19:58:05]MH_SAM_APDU [19:58:05]CAPDU: 80 0D 03 02 [19:58:05]Write to MH i2c: E2 08 00 DA 0A 80 0D 03 02 00 00 00 00 5F [19:58:05]Write i2c OK [19:58:05]MH_I2C_Read... [19:58:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:58:05]Read from MH i2c: E2 [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: E2 0B 00 [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: E2 0B 00 DA 0A 00 00 A8 1C 9D 75 F9 9C 46 90 00 11 [19:58:05]RAPDU: 00 A8 1C 9D 75 F9 9C 46 90 00 [19:58:05]wFMCommunicate OK [19:58:05]SAM_PROTO_SignData done [19:58:05]FM_MakeSignedData done [19:58:05]CreateOFDProtocolMessage [19:58:05]wFMCommunicate request_size=4 [19:58:05]MH_SAM_APDU [19:58:05]CAPDU: 80 11 00 00 [19:58:05]Write to MH i2c: E2 08 00 DB 0A 80 11 00 00 00 00 00 00 5F [19:58:05]Write i2c OK [19:58:05]MH_I2C_Read... [19:58:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:05]Read from MH i2c: E2 [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: E2 17 00 [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: E2 17 00 DB 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 B2 [19:58:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:58:05]wFMCommunicate OK [19:58:05]CreateOFDProtocolMessage done [19:58:05]OFDSenderStorePacket 76926 [19:58:05]StoreOFDPacket docnum=76926 [19:58:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 CB F7 07 01 45 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 18 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 79 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 9E 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 B6 00 00 00 F4 03 04 00 CC 6F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7E 2C 01 00 35 04 06 00 08 1C 59 59 31 26 00 A8 1C 9D 75 F9 9C 46 [19:58:05]CheckFolder [19:58:05]dirname=/storage/ofd_packets [19:58:05]CheckFolder done [19:58:05]ProducePacketName [19:58:05]name=ofd_packets/00076926 [19:58:05]NVStorageSaveData ofd_packets/00076926 [19:58:05]File name is /storage/ofd_packets/00076926 [19:58:05]Write 301 bytes [19:58:05]NVStorageSaveData done [19:58:05]OFDSenderStorePacket done [19:58:05]KKMCreateOFDPacket done [19:58:05]NVStorageSaveData kkm_last_timestamp [19:58:05]File name is /storage/kkm_last_timestamp [19:58:05]Write 4 bytes [19:58:05]NVStorageSaveData done [19:58:05]ExternCall_PrintAddStr [19:58:05]wPrintStart [19:58:05]Write to MH i2c: 01 00 00 DC 0A E6 [19:58:05]Write i2c OK [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: 01 [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: 01 07 00 [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: 01 07 00 DC 0A 00 00 00 00 00 FF 0F FB [19:58:05]RasterBufferAndPrint [19:58:05]line Счет N : (1)191473 [19:58:05]line ИНН: 02508201610067 [19:58:05]line Контрольно-Кассовый Чек [19:58:05]line ПРОДАЖА [19:58:05]line ТРК (МРК, ГНК) : 43 [19:58:05]line Товар: 2710124130 [19:58:05]line Аи-92-К-5 [19:58:05]line 6.220 * 64.40 [19:58:05]line = 400.57 [19:58:05]line НДС 12% НСП 1% [19:58:05]line > о реализуемом товаре [19:58:05]line ОКРУГЛЕНИЕ: -0.57 [19:58:05]line ИТОГО: 400.00 [19:58:05]line Внесено: 400.00 [19:58:05]line СДАЧА: 0.00 [19:58:05]line НСП 1% : 3.54 [19:58:05]line НДС 12% : 42.54 [19:58:05]line Наличными: 400.00 [19:58:05]line Безнал.: 0.00 [19:58:05]line Место: АЗС № 106 "Партнер Нефть" [19:58:05]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [19:58:05]line СНО: Общий режим [19:58:05]line Чек 182 21.04.2024 19:58 [19:58:05]line Смена: 372 ФФД: 1.0 [19:58:05]line ЗНМ: 0300000141 [19:58:05]line РНМ: 0000000000091573 [19:58:05]line Версия ККМ: 001 [19:58:05]line ФМ: 0000000000874652 [19:58:05]line ФД: 76926 [19:58:05]line ФПД: 8917851124006 [19:58:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T195804&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76926&fm=8917851124006&tin=02508201610067®Number=0000000000091573&sum=40000 [19:58:05]OFD Sender: Processing packet 76926 [packets to send 129, broken 128] [19:58:05]ProducePacketName [19:58:05]name=ofd_packets/00076926 [19:58:05]OFD Sender: To server: pG, [19:58:05]CommunicateWithHost lk.salyk.kg:30040 [19:58:05]ConnectInit lk.salyk.kg [19:58:05]written 0, free lines is 4095 [19:58:06]Connected sock=10 [19: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 34 36 35 32 0F 01 00 00 CB F7 07 01 45 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 18 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 79 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 9E 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 B6 00 00 00 F4 03 04 00 CC 6F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7E 2C 01 00 35 04 06 00 08 1C 59 59 31 26 00 A8 1C 9D 75 F9 9C 46 [19:58:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 CC 28 47 00 7D 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7E 2C 01 00 F4 03 04 00 51 17 25 66 B6 04 01 00 00 BD D0 75 91 CF F7 D2 DB [19:58:06]CommunicateWithHost err = 0 [19:58:06]CheckOFDResponse [19:58:06]1017 (14) - 77093643461234 [19:58:06]1041 (16) - 0000000000874652 [19:58:06]1040 (4) - 76926 [19:58:06]1012 (4) - 21.04.2024 13:40 [19:58:06]1206 (1) - 0 [19:58:06]OFD Sender: Remove packet 76926 [19:58:06]ProducePacketName [19:58:06]name=ofd_packets/00076926 [19:58:06]NVStorageDeleteData [19:58:06]Write to MH i2c: 01 00 00 06 0B 11 [19:58:06]Write i2c OK [19:58:06]MH_I2C_Read... [19:58:06]Read from MH i2c: 01 [19:58:06]MH_I2C_Read... [19:58:06]Read from MH i2c: 01 07 00 [19:58:06]MH_I2C_Read... [19:58:06]Read from MH i2c: 01 07 00 06 0B 00 00 00 00 00 F8 0C 1C [19:58:06]RasterBufferAndPrint [19:58:06]line [19:58:06]line [19:58:06]line [19:58:06]line [19:58:06]line [19:58:06]written 0, free lines is 3328 [19:58:06]MH_Cut [19:58:06]Write to MH i2c: D1 01 00 0D 0B 01 EA [19:58:06]Write i2c OK [19:58:06]MH_I2C_Read... [19:58:06]Read from MH i2c: D1 [19:58:06]MH_I2C_Read... [19:58:06]Read from MH i2c: D1 01 00 [19:58:06]MH_I2C_Read... [19:58:06]Read from MH i2c: D1 01 00 0D 0B 00 E9 [19:58:06]Write to MH i2c: 01 00 00 0E 0B 19 [19:58:06]Write i2c OK [19:58:06]MH_I2C_Read... [19:58:06]OFD Sender: No OFD packet to send [19:58:07]*** Cut start [19:58:07]*** Partial cut [19:58:07]*** CUTSNS_PIN = 1 [19:58:07]*** CUTSNS_PIN = 0 [19:58:07]*** Brake cut motor [19:58:07]Read from MH i2c: 01 [19:58:07]MH_I2C_Read... [19:58:07]*** Stop cut motor [19:58:07]*** Cut end [19:58:07]Read from MH i2c: 01 07 00 [19:58:07]MH_I2C_Read... [19:58:07]Read from MH i2c: 01 07 00 0E 0B 00 00 00 00 00 FF 0F 2E [19:58:07]process_action close_receipt done [19:58:07]requested_data is exist [19:58:07]produce_requested_data [19:58:07]requested_item fm.sn is exist - process it [19:58:07]wFMCommunicate request_size=4 [19:58:07]MH_SAM_APDU [19:58:07]CAPDU: 80 11 00 00 [19:58:07]Write to MH i2c: E2 08 00 0F 0B 80 11 00 00 00 00 00 00 94 [19:58:07]Write i2c OK [19:58:07]MH_I2C_Read... [19:58:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:07]Read from MH i2c: E2 [19:58:07]MH_I2C_Read... [19:58:07]Read from MH i2c: E2 17 00 [19:58:07]MH_I2C_Read... [19:58:07]Read from MH i2c: E2 17 00 0F 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 E7 [19:58:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:58:07]wFMCommunicate OK [19:58:07]requested_item fd.num is exist - process it [19:58:07]SAM_PROTO_GetFieldsCounters [19:58:07]wFMCommunicate request_size=4 [19:58:07]MH_SAM_APDU [19:58:07]CAPDU: 80 13 00 00 [19:58:07]Write to MH i2c: E2 08 00 10 0B 80 13 00 00 00 00 00 00 97 [19:58:07]Write i2c OK [19:58:07]MH_I2C_Read... [19:58:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:58:07]Read from MH i2c: E2 [19:58:07]MH_I2C_Read... [19:58:07]Read from MH i2c: E2 62 00 [19:58:07]MH_I2C_Read... [19:58:07]Read from MH i2c: E2 62 00 10 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 7E 2C 01 00 0E 04 04 00 74 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 FA [19:58: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 7E 2C 01 00 0E 04 04 00 74 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 [19:58:07]wFMCommunicate OK [19:58:07]SAM_PROTO_GetFieldsCounters done [19:58:07]requested_item shift.num is exist - process it [19:58:07]requested_item shift.opened is exist - process it [19:58:07]req_shift_opened [19:58:07]FM_GetShiftState [19:58:07]SAM_PROTO_GetShiftState [19:58:07]wFMCommunicate request_size=4 [19:58:07]MH_SAM_APDU [19:58:07]CAPDU: 80 13 01 00 [19:58:07]Write to MH i2c: E2 08 00 11 0B 80 13 01 00 00 00 00 00 99 [19:58:07]Write i2c OK [19:58:07]MH_I2C_Read... [19:58:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:07]Read from MH i2c: E2 [19:58:07]MH_I2C_Read... [19:58:07]Read from MH i2c: E2 0E 00 [19:58:07]MH_I2C_Read... [19:58:07]Read from MH i2c: E2 0E 00 11 0B 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 E0 [19:58:07]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [19:58:07]wFMCommunicate OK [19:58:07]SAM_PROTO_GetShiftState done [19:58:07]FM_GetShiftState done [19:58:07]req_shift_opened done [19:58:07]requested_item shift.open_date is exist - process it [19:58:07]req_shift_open_date [19:58:07]req_shift_open_date done [19:58:07]produce_requested_data done [19:58:07]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76926,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [19:58:07]process_action_free close_receipt [19:58:07]json_value_free [19:58:07]json_value_free done [19:58:07]process_json_proto returns [19:58:07]Send response to host [19:58:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76926,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [19:58:07]free response buf [19:58:07]execute_script done [19:58:07]execute_script returns [19:58:07]free content buf [19:58:07]Sock 8.Close socket [19:58:07]Sock 8.Thread stoped [19:58:11]OFD Sender: No OFD packet to send [19:58:16]OFD Sender: No OFD packet to send [19:58:21]OFD Sender: No OFD packet to send [19:58:26]OFD Sender: No OFD packet to send [19:58:31]OFD Sender: No OFD packet to send [19:58:36]OFD Sender: No OFD packet to send [19:58:41]OFD Sender: No OFD packet to send [19:58:46]OFD Sender: No OFD packet to send [19:58:51]OFD Sender: No OFD packet to send [19:58:56]OFD Sender: No OFD packet to send [19:59:01]OFD Sender: No OFD packet to send [19:59:06]OFD Sender: No OFD packet to send [19:59:11]OFD Sender: No OFD packet to send [19:59:16]OFD Sender: No OFD packet to send [19:59:21]OFD Sender: No OFD packet to send [19:59:26]OFD Sender: No OFD packet to send [19:59:31]OFD Sender: No OFD packet to send [19:59:36]OFD Sender: No OFD packet to send [19:59:41]OFD Sender: No OFD packet to send [19:59:46]OFD Sender: No OFD packet to send [19:59:51]OFD Sender: No OFD packet to send [19:59:56]OFD Sender: No OFD packet to send [20:00:01]OFD Sender: No OFD packet to send [20:00:06]OFD Sender: No OFD packet to send [20:00:11]OFD Sender: No OFD packet to send [20:00:16]OFD Sender: No OFD packet to send [20:00:21]OFD Sender: No OFD packet to send [20:00:26]OFD Sender: No OFD packet to send [20:00:31]OFD Sender: No OFD packet to send [20:00:36]OFD Sender: No OFD packet to send [20:00:41]OFD Sender: No OFD packet to send [20:00:46]OFD Sender: No OFD packet to send [20:00:52]OFD Sender: No OFD packet to send [20:00:57]OFD Sender: No OFD packet to send [20:01:02]OFD Sender: No OFD packet to send [20:01:07]OFD Sender: No OFD packet to send [20:01:12]OFD Sender: No OFD packet to send [20:01:17]OFD Sender: No OFD packet to send [20:01:22]OFD Sender: No OFD packet to send [20:01:27]OFD Sender: No OFD packet to send [20:01:32]OFD Sender: No OFD packet to send [20:01:37]OFD Sender: No OFD packet to send [20:01:42]OFD Sender: No OFD packet to send [20:01:47]OFD Sender: No OFD packet to send [20:01:52]OFD Sender: No OFD packet to send [20:01:57]OFD Sender: No OFD packet to send [20:02:02]OFD Sender: No OFD packet to send [20:02:07]OFD Sender: No OFD packet to send [20:02:12]OFD Sender: No OFD packet to send [20:02:17]OFD Sender: No OFD packet to send [20:02:22]OFD Sender: No OFD packet to send [20:02:27]OFD Sender: No OFD packet to send [20:02:32]OFD Sender: No OFD packet to send [20:02:37]OFD Sender: No OFD packet to send [20:02:42]OFD Sender: No OFD packet to send [20:02:47]OFD Sender: No OFD packet to send [20:02:52]OFD Sender: No OFD packet to send [20:02:57]OFD Sender: No OFD packet to send [20:03:02]OFD Sender: No OFD packet to send [20:03:04]accept exits with 9 [20:03:04]New connection [20:03:04]New thread 3066944868 created [20:03:04]Thread 3066801508 joined [20:03:04]Waiting for new connection... [20:03:04] Sock 9.Parse request [20:03:04]Sock 9.Check first char [20:03:04]Sock 9.First char is OK [20:03:04]request: POST /json_proto HTTP/1.0 [20:03:04]Method: POST [20:03:04]URL: /json_proto [20:03:04]Method is POST - this is cgi request [20:03:04]url: /json_proto [20:03:04]query_string will be loaded in cgi processing [20:03:04]execute_cgi json_proto POST (null) [20:03:04]execute_cgi path=json_proto method=POST [20:03:04]POST find Content-Length [20:03:04]Host: 172.17.62.5:8080 [20:03:04]Content-Length: 682 [20:03:04]Content-Type: application/json [20:03:04] [20:03:04]POST finish read [20:03:04]Found Content-Length = 682 [20:03:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 31.060, "sum" : 2000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:03:04]execute_script... [20:03: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)191474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 31.060, "sum" : 2000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:03:04]POST & json_proto [20:03:04]process_json_proto [20:03:04]json parsed OK: [20:03:04]protocol is kg_v1.0 [20:03:04]action value=close_receipt [20:03:04]process_action close_receipt [20:03:04]cmd_close_receipt [20:03:04]MH_GetDate [20:03:04]Write to MH i2c: F0 00 00 12 0B 0C [20:03:04]Write i2c OK [20:03:04]MH_I2C_Read... [20:03:04]Read from MH i2c: F0 [20:03:04]MH_I2C_Read... [20:03:04]Read from MH i2c: F0 09 00 [20:03:04]MH_I2C_Read... [20:03:04]Read from MH i2c: F0 09 00 12 0B 00 F9 70 25 66 F4 E9 65 64 AF [20:03:04]GetLastDocTimeStamp 1713729484 [20:03:04]current date 1713729785 [20:03:04]FM_GetShiftState [20:03:04]SAM_PROTO_GetShiftState [20:03:04]wFMCommunicate request_size=4 [20:03:04]MH_SAM_APDU [20:03:04]CAPDU: 80 13 01 00 [20:03:04]Write to MH i2c: E2 08 00 13 0B 80 13 01 00 00 00 00 00 9B [20:03:04]Write i2c OK [20:03:04]MH_I2C_Read... [20:03:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:03:04]Read from MH i2c: E2 [20:03:04]MH_I2C_Read... [20:03:04]Read from MH i2c: E2 0E 00 [20:03:04]MH_I2C_Read... [20:03:04]Read from MH i2c: E2 0E 00 13 0B 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 E2 [20:03:04]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [20:03:04]wFMCommunicate OK [20:03:04]SAM_PROTO_GetShiftState done [20:03:04]FM_GetShiftState done [20:03:04]opened in 1713658965 [20:03:04]opened+sec_in_day 1713745365 [20:03:04]quantity*price = 200026 [20:03:04]sum+1 = 200027 [20:03:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 183 21.04.2024 20:03 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76927 ФПД: 122354357992386 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T200305&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76927&fm=122354357992386&tin=02508201610067®Number=0000000000091573&sum=200000 [20:03:05]StoreToDocumentArchive [20:03:05]shift 372 fd 76927 [20:03:05]save to /storage/0372/doc_00076927 [20:03:05]save last doc name /storage/0372/doc_00076927 to /storage/kkm_last_doc_name [20:03:05]save OK [20:03:05]Clear old archive folders... [20:03:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:03:05]tlvbuf is 00C990E0 [20:03:05]SAM_PROTO_ClearQueue [20:03:05]wFMCommunicate request_size=4 [20:03:05]MH_SAM_APDU [20:03:05]CAPDU: 80 09 00 00 [20:03:05]Write to MH i2c: E2 08 00 20 0B 80 09 00 00 00 00 00 00 9D [20:03:05]Write i2c OK [20:03:05]MH_I2C_Read... [20:03:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:03:05]Read from MH i2c: E2 [20:03:05]MH_I2C_Read... [20:03:05]Read from MH i2c: E2 03 00 [20:03:05]MH_I2C_Read... [20:03:05]Read from MH i2c: E2 03 00 20 0B 00 90 00 9F [20:03:05]RAPDU: 90 00 [20:03:05]wFMCommunicate OK [20:03:05]SAM_PROTO_ClearQueue done [20:03:05]KKMCreateOFDPacket [20:03:05]OFDProtocolAddRootSTLVToBuf [20:03:05]FM_MakeSignedData [20:03:05]FM_MakeSignedData [20:03:05]SAM_PROTO_SignData [20:03:05]wFMCommunicate request_size=4 [20:03:05]MH_SAM_APDU [20:03:05]CAPDU: 80 0D 01 02 [20:03:05]Write to MH i2c: E2 08 00 21 0B 80 0D 01 02 00 00 00 00 A5 [20:03:05]Write i2c OK [20:03:05]MH_I2C_Read... [20:03:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:03:05]Read from MH i2c: E2 [20:03:05]MH_I2C_Read... [20:03:05]Read from MH i2c: E2 03 00 [20:03:05]MH_I2C_Read... [20:03:05]Read from MH i2c: E2 03 00 21 0B 00 90 00 A0 [20:03:05]RAPDU: 90 00 [20:03:05]wFMCommunicate OK [20:03:05]wFMCommunicate request_size=255 [20:03:05]MH_SAM_APDU [20:03: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 54 79 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 F9 70 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7F 2C 01 00 35 04 06 00 6F [20:03:05]Write to MH i2c: E2 02 01 22 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 54 79 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 F9 70 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7F 2C 01 00 35 04 06 00 6F 00 00 3E [20:03:05]Write i2c OK [20:03:05]MH_I2C_Read... [20:03:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:06]Read from MH i2c: E2 [20:03:06]MH_I2C_Read... [20:03:06]Read from MH i2c: E2 03 00 [20:03:06]MH_I2C_Read... [20:03:06]Read from MH i2c: E2 03 00 22 0B 00 90 00 A1 [20:03:06]RAPDU: 90 00 [20:03:06]wFMCommunicate OK [20:03:06]wFMCommunicate request_size=10 [20:03:06]MH_SAM_APDU [20:03:06]CAPDU: 80 0D 02 02 05 47 D8 0B 7B C2 [20:03:06]Write to MH i2c: E2 0D 00 23 0B 80 0D 02 02 05 00 47 D8 0B 7B C2 00 00 19 [20:03:06]Write i2c OK [20:03:06]MH_I2C_Read... [20:03:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:06]Read from MH i2c: E2 [20:03:06]MH_I2C_Read... [20:03:06]Read from MH i2c: E2 03 00 [20:03:06]MH_I2C_Read... [20:03:06]Read from MH i2c: E2 03 00 23 0B 00 90 00 A2 [20:03:06]RAPDU: 90 00 [20:03:06]wFMCommunicate OK [20:03:06]wFMCommunicate request_size=4 [20:03:06]MH_SAM_APDU [20:03:06]CAPDU: 80 0D 03 02 [20:03:06]Write to MH i2c: E2 08 00 24 0B 80 0D 03 02 00 00 00 00 AA [20:03:06]Write i2c OK [20:03:06]MH_I2C_Read... [20:03:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:03:06]Read from MH i2c: E2 [20:03:06]MH_I2C_Read... [20:03:06]Read from MH i2c: E2 0B 00 [20:03:06]MH_I2C_Read... [20:03:06]Read from MH i2c: E2 0B 00 24 0B 00 10 A4 05 6F 00 3E E6 4F 90 00 46 [20:03:06]RAPDU: 10 A4 05 6F 00 3E E6 4F 90 00 [20:03:06]wFMCommunicate OK [20:03:06]SAM_PROTO_SignData done [20:03:06]FM_MakeSignedData done [20:03:06]CreateOFDProtocolMessage [20:03:06]wFMCommunicate request_size=4 [20:03:06]MH_SAM_APDU [20:03:06]CAPDU: 80 11 00 00 [20:03:06]Write to MH i2c: E2 08 00 25 0B 80 11 00 00 00 00 00 00 AA [20:03:06]Write i2c OK [20:03:06]MH_I2C_Read... [20:03:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:03:06]Read from MH i2c: E2 [20:03:06]MH_I2C_Read... [20:03:06]Read from MH i2c: E2 17 00 [20:03:06]MH_I2C_Read... [20:03:06]Read from MH i2c: E2 17 00 25 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 FD [20:03:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:03:06]wFMCommunicate OK [20:03:06]CreateOFDProtocolMessage done [20:03:06]OFDSenderStorePacket 76927 [20:03:06]StoreOFDPacket docnum=76927 [20:03:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 AD 49 07 01 7A 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 54 79 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 F9 70 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7F 2C 01 00 35 04 06 00 6F 47 D8 0B 7B C2 10 A4 05 6F 00 3E E6 4F [20:03:06]CheckFolder [20:03:06]dirname=/storage/ofd_packets [20:03:06]CheckFolder done [20:03:06]ProducePacketName [20:03:06]name=ofd_packets/00076927 [20:03:06]NVStorageSaveData ofd_packets/00076927 [20:03:06]File name is /storage/ofd_packets/00076927 [20:03:06]Write 301 bytes [20:03:06]NVStorageSaveData done [20:03:06]OFDSenderStorePacket done [20:03:06]KKMCreateOFDPacket done [20:03:06]NVStorageSaveData kkm_last_timestamp [20:03:06]File name is /storage/kkm_last_timestamp [20:03:06]Write 4 bytes [20:03:06]NVStorageSaveData done [20:03:06]ExternCall_PrintAddStr [20:03:06]wPrintStart [20:03:06]Write to MH i2c: 01 00 00 26 0B 31 [20:03:06]Write i2c OK [20:03:06]MH_I2C_Read... [20:03:06]Read from MH i2c: 01 [20:03:06]MH_I2C_Read... [20:03:06]Read from MH i2c: 01 07 00 [20:03:06]MH_I2C_Read... [20:03:06]Read from MH i2c: 01 07 00 26 0B 00 00 00 00 00 FF 0F 46 [20:03:06]RasterBufferAndPrint [20:03:06]line Счет N : (1)191474 [20:03:06]line ИНН: 02508201610067 [20:03:06]line Контрольно-Кассовый Чек [20:03:06]line ПРОДАЖА [20:03:06]line ТРК (МРК, ГНК) : 43 [20:03:06]line Товар: 2710124130 [20:03:06]line Аи-92-К-5 [20:03:06]line 31.060 * 64.40 [20:03:06]line = 2000.26 [20:03:06]line НДС 12% НСП 1% [20:03:06]line > о реализуемом товаре [20:03:06]line ОКРУГЛЕНИЕ: -0.26 [20:03:06]line ИТОГО: 2000.00 [20:03:06]line Внесено: 2000.00 [20:03:06]line СДАЧА: 0.00 [20:03:06]line НСП 1% : 17.70 [20:03:06]line НДС 12% : 212.42 [20:03:06]line Наличными: 2000.00 [20:03:06]line Безнал.: 0.00 [20:03:06]line Место: АЗС № 106 "Партнер Нефть" [20:03:06]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [20:03:06]line СНО: Общий режим [20:03:06]line Чек 183 21.04.2024 20:03 [20:03:06]line Смена: 372 ФФД: 1.0 [20:03:06]line ЗНМ: 0300000141 [20:03:06]line РНМ: 0000000000091573 [20:03:06]line Версия ККМ: 001 [20:03:06]line ФМ: 0000000000874652 [20:03:06]line ФД: 76927 [20:03:06]line ФПД: 122354357992386 [20:03:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T200305&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76927&fm=122354357992386&tin=02508201610067®Number=0000000000091573&sum=200000 [20:03:06]OFD Sender: Processing packet 76927 [packets to send 129, broken 128] [20:03:06]ProducePacketName [20:03:06]name=ofd_packets/00076927 [20:03:06]OFD Sender: To server: pG, [20:03:06]CommunicateWithHost lk.salyk.kg:30040 [20:03:06]ConnectInit lk.salyk.kg [20:03:06]written 0, free lines is 4095 [20:03:06]Connected sock=10 [20:03:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 AD 49 07 01 7A 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 54 79 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 F9 70 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7F 2C 01 00 35 04 06 00 6F 47 D8 0B 7B C2 10 A4 05 6F 00 3E E6 4F [20:03:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 67 FD 47 00 EC 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 34 36 35 32 10 04 04 00 7F 2C 01 00 F4 03 04 00 7E 18 25 66 B6 04 01 00 00 29 B7 CB 90 2A 4A D0 68 [20:03:06]CommunicateWithHost err = 0 [20:03:06]CheckOFDResponse [20:03:06]1017 (14) - 77093643461234 [20:03:06]1041 (16) - 0000000000874652 [20:03:06]1040 (4) - 76927 [20:03:06]1012 (4) - 21.04.2024 13:45 [20:03:06]1206 (1) - 0 [20:03:06]OFD Sender: Remove packet 76927 [20:03:06]ProducePacketName [20:03:06]name=ofd_packets/00076927 [20:03:06]NVStorageDeleteData [20:03:07]Write to MH i2c: 01 00 00 50 0B 5B [20:03:07]Write i2c OK [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: 01 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: 01 07 00 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: 01 07 00 50 0B 00 00 00 00 00 00 0D 6F [20:03:07]RasterBufferAndPrint [20:03:07]line [20:03:07]line [20:03:07]line [20:03:07]line [20:03:07]line [20:03:07]written 0, free lines is 3334 [20:03:07]MH_Cut [20:03:07]Write to MH i2c: D1 01 00 57 0B 01 34 [20:03:07]Write i2c OK [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: D1 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: D1 01 00 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: D1 01 00 57 0B 00 33 [20:03:07]Write to MH i2c: 01 00 00 58 0B 63 [20:03:07]Write i2c OK [20:03:07]MH_I2C_Read... [20:03:07]OFD Sender: No OFD packet to send [20:03:07]*** Cut start [20:03:07]*** Partial cut [20:03:07]*** CUTSNS_PIN = 1 [20:03:07]*** CUTSNS_PIN = 0 [20:03:08]*** Brake cut motor [20:03:08]Read from MH i2c: 01 [20:03:08]MH_I2C_Read... [20:03:08]*** Stop cut motor [20:03:08]*** Cut end [20:03:08]Read from MH i2c: 01 07 00 [20:03:08]MH_I2C_Read... [20:03:08]Read from MH i2c: 01 07 00 58 0B 00 00 00 00 00 FF 0F 78 [20:03:08]process_action close_receipt done [20:03:08]requested_data is exist [20:03:08]produce_requested_data [20:03:08]requested_item fm.sn is exist - process it [20:03:08]wFMCommunicate request_size=4 [20:03:08]MH_SAM_APDU [20:03:08]CAPDU: 80 11 00 00 [20:03:08]Write to MH i2c: E2 08 00 59 0B 80 11 00 00 00 00 00 00 DE [20:03:08]Write i2c OK [20:03:08]MH_I2C_Read... [20:03:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:03:08]Read from MH i2c: E2 [20:03:08]MH_I2C_Read... [20:03:08]Read from MH i2c: E2 17 00 [20:03:08]MH_I2C_Read... [20:03:08]Read from MH i2c: E2 17 00 59 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 31 [20:03:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:03:08]wFMCommunicate OK [20:03:08]requested_item fd.num is exist - process it [20:03:08]SAM_PROTO_GetFieldsCounters [20:03:08]wFMCommunicate request_size=4 [20:03:08]MH_SAM_APDU [20:03:08]CAPDU: 80 13 00 00 [20:03:08]Write to MH i2c: E2 08 00 5A 0B 80 13 00 00 00 00 00 00 E1 [20:03:08]Write i2c OK [20:03:08]MH_I2C_Read... [20:03:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:03:08]Read from MH i2c: E2 [20:03:08]MH_I2C_Read... [20:03:08]Read from MH i2c: E2 62 00 [20:03:08]MH_I2C_Read... [20:03:08]Read from MH i2c: E2 62 00 5A 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 7F 2C 01 00 0E 04 04 00 74 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 48 [20:03: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 7F 2C 01 00 0E 04 04 00 74 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 [20:03:08]wFMCommunicate OK [20:03:08]SAM_PROTO_GetFieldsCounters done [20:03:08]requested_item shift.num is exist - process it [20:03:08]requested_item shift.opened is exist - process it [20:03:08]req_shift_opened [20:03:08]FM_GetShiftState [20:03:08]SAM_PROTO_GetShiftState [20:03:08]wFMCommunicate request_size=4 [20:03:08]MH_SAM_APDU [20:03:08]CAPDU: 80 13 01 00 [20:03:08]Write to MH i2c: E2 08 00 5B 0B 80 13 01 00 00 00 00 00 E3 [20:03:08]Write i2c OK [20:03:08]MH_I2C_Read... [20:03:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:03:08]Read from MH i2c: E2 [20:03:08]MH_I2C_Read... [20:03:08]Read from MH i2c: E2 0E 00 [20:03:08]MH_I2C_Read... [20:03:08]Read from MH i2c: E2 0E 00 5B 0B 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 2A [20:03:08]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [20:03:08]wFMCommunicate OK [20:03:08]SAM_PROTO_GetShiftState done [20:03:08]FM_GetShiftState done [20:03:08]req_shift_opened done [20:03:08]requested_item shift.open_date is exist - process it [20:03:08]req_shift_open_date [20:03:08]req_shift_open_date done [20:03:08]produce_requested_data done [20:03:08]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76927,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [20:03:08]process_action_free close_receipt [20:03:08]json_value_free [20:03:08]json_value_free done [20:03:08]process_json_proto returns [20:03:08]Send response to host [20:03:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76927,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [20:03:08]free response buf [20:03:08]execute_script done [20:03:08]execute_script returns [20:03:08]free content buf [20:03:08]Sock 9.Close socket [20:03:08]Sock 9.Thread stoped [20:03:09]accept exits with 8 [20:03:09]New connection [20:03:09]New thread 3066801508 created [20:03:09]Thread 3066944868 joined [20:03:09]Waiting for new connection... [20:03:09] Sock 8.Parse request [20:03:09]Sock 8.Check first char [20:03:09]Sock 8.First char is OK [20:03:09]request: POST /json_proto HTTP/1.0 [20:03:09]Method: POST [20:03:09]URL: /json_proto [20:03:09]Method is POST - this is cgi request [20:03:09]url: /json_proto [20:03:09]query_string will be loaded in cgi processing [20:03:09]execute_cgi json_proto POST (null) [20:03:09]execute_cgi path=json_proto method=POST [20:03:09]POST find Content-Length [20:03:09]Host: 172.17.62.5:8080 [20:03:09]Content-Length: 677 [20:03:09]Content-Type: application/json [20:03:09] [20:03:09]POST finish read [20:03:09]Found Content-Length = 677 [20:03:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:03:09]execute_script... [20:03:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:03:09]POST & json_proto [20:03:09]process_json_proto [20:03:09]json parsed OK: [20:03:09]protocol is kg_v1.0 [20:03:09]action value=close_receipt [20:03:09]process_action close_receipt [20:03:09]cmd_close_receipt [20:03:09]MH_GetDate [20:03:09]Write to MH i2c: F0 00 00 5C 0B 56 [20:03:09]Write i2c OK [20:03:09]MH_I2C_Read... [20:03:09]Read from MH i2c: F0 [20:03:09]MH_I2C_Read... [20:03:09]Read from MH i2c: F0 09 00 [20:03:09]MH_I2C_Read... [20:03:09]Read from MH i2c: F0 09 00 5C 0B 00 FE 70 25 66 F4 E9 65 64 FE [20:03:09]GetLastDocTimeStamp 1713729785 [20:03:09]current date 1713729790 [20:03:09]FM_GetShiftState [20:03:09]SAM_PROTO_GetShiftState [20:03:09]wFMCommunicate request_size=4 [20:03:09]MH_SAM_APDU [20:03:09]CAPDU: 80 13 01 00 [20:03:09]Write to MH i2c: E2 08 00 5D 0B 80 13 01 00 00 00 00 00 E5 [20:03:09]Write i2c OK [20:03:09]MH_I2C_Read... [20:03:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:03:09]Read from MH i2c: E2 [20:03:09]MH_I2C_Read... [20:03:09]Read from MH i2c: E2 0E 00 [20:03:09]MH_I2C_Read... [20:03:09]Read from MH i2c: E2 0E 00 5D 0B 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 2C [20:03:09]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [20:03:09]wFMCommunicate OK [20:03:09]SAM_PROTO_GetShiftState done [20:03:09]FM_GetShiftState done [20:03:09]opened in 1713658965 [20:03:09]opened+sec_in_day 1713745365 [20:03:09]quantity*price = 50038 [20:03:09]sum+1 = 50040 [20:03:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 184 21.04.2024 20:03 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76928 ФПД: 259298119484102 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T200310&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76928&fm=259298119484102&tin=02508201610067®Number=0000000000091573&sum=50000 [20:03:10]StoreToDocumentArchive [20:03:10]shift 372 fd 76928 [20:03:10]save to /storage/0372/doc_00076928 [20:03:10]save last doc name /storage/0372/doc_00076928 to /storage/kkm_last_doc_name [20:03:10]save OK [20:03:10]Clear old archive folders... [20:03:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:03:10]tlvbuf is 00CAB170 [20:03:10]SAM_PROTO_ClearQueue [20:03:10]wFMCommunicate request_size=4 [20:03:10]MH_SAM_APDU [20:03:10]CAPDU: 80 09 00 00 [20:03:10]Write to MH i2c: E2 08 00 6A 0B 80 09 00 00 00 00 00 00 E7 [20:03:10]Write i2c OK [20:03:10]MH_I2C_Read... [20:03:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:03:10]Read from MH i2c: E2 [20:03:10]MH_I2C_Read... [20:03:10]Read from MH i2c: E2 03 00 [20:03:10]MH_I2C_Read... [20:03:10]Read from MH i2c: E2 03 00 6A 0B 00 90 00 E9 [20:03:10]RAPDU: 90 00 [20:03:10]wFMCommunicate OK [20:03:10]SAM_PROTO_ClearQueue done [20:03:10]KKMCreateOFDPacket [20:03:10]OFDProtocolAddRootSTLVToBuf [20:03:10]FM_MakeSignedData [20:03:10]FM_MakeSignedData [20:03:10]SAM_PROTO_SignData [20:03:10]wFMCommunicate request_size=4 [20:03:10]MH_SAM_APDU [20:03:10]CAPDU: 80 0D 01 02 [20:03:10]Write to MH i2c: E2 08 00 6B 0B 80 0D 01 02 00 00 00 00 EF [20:03:10]Write i2c OK [20:03:10]MH_I2C_Read... [20:03:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:03:11]Read from MH i2c: E2 [20:03:11]MH_I2C_Read... [20:03:11]Read from MH i2c: E2 03 00 [20:03:11]MH_I2C_Read... [20:03:11]Read from MH i2c: E2 03 00 6B 0B 00 90 00 EA [20:03:11]RAPDU: 90 00 [20:03:11]wFMCommunicate OK [20:03:11]wFMCommunicate request_size=255 [20:03:11]MH_SAM_APDU [20:03:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 FE 70 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 80 2C 01 00 35 04 06 00 EB [20:03:11]Write to MH i2c: E2 02 01 6C 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 FE 70 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 80 2C 01 00 35 04 06 00 EB 00 00 62 [20:03:11]Write i2c OK [20:03:11]MH_I2C_Read... [20:03:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:11]Read from MH i2c: E2 [20:03:11]MH_I2C_Read... [20:03:11]Read from MH i2c: E2 03 00 [20:03:11]MH_I2C_Read... [20:03:11]Read from MH i2c: E2 03 00 6C 0B 00 90 00 EB [20:03:11]RAPDU: 90 00 [20:03:11]wFMCommunicate OK [20:03:11]wFMCommunicate request_size=10 [20:03:11]MH_SAM_APDU [20:03:11]CAPDU: 80 0D 02 02 05 D4 8C 4D 82 C6 [20:03:11]Write to MH i2c: E2 0D 00 6D 0B 80 0D 02 02 05 00 D4 8C 4D 82 C6 00 00 F1 [20:03:11]Write i2c OK [20:03:11]MH_I2C_Read... [20:03:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:11]Read from MH i2c: E2 [20:03:11]MH_I2C_Read... [20:03:11]Read from MH i2c: E2 03 00 [20:03:11]MH_I2C_Read... [20:03:11]Read from MH i2c: E2 03 00 6D 0B 00 90 00 EC [20:03:11]RAPDU: 90 00 [20:03:11]wFMCommunicate OK [20:03:11]wFMCommunicate request_size=4 [20:03:11]MH_SAM_APDU [20:03:11]CAPDU: 80 0D 03 02 [20:03:11]Write to MH i2c: E2 08 00 6E 0B 80 0D 03 02 00 00 00 00 F4 [20:03:11]Write i2c OK [20:03:11]MH_I2C_Read... [20:03:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:03:11]Read from MH i2c: E2 [20:03:11]MH_I2C_Read... [20:03:11]Read from MH i2c: E2 0B 00 [20:03:11]MH_I2C_Read... [20:03:11]Read from MH i2c: E2 0B 00 6E 0B 00 18 C7 88 6B 58 34 18 64 90 00 CF [20:03:11]RAPDU: 18 C7 88 6B 58 34 18 64 90 00 [20:03:11]wFMCommunicate OK [20:03:11]SAM_PROTO_SignData done [20:03:11]FM_MakeSignedData done [20:03:11]CreateOFDProtocolMessage [20:03:11]wFMCommunicate request_size=4 [20:03:11]MH_SAM_APDU [20:03:11]CAPDU: 80 11 00 00 [20:03:11]Write to MH i2c: E2 08 00 6F 0B 80 11 00 00 00 00 00 00 F4 [20:03:11]Write i2c OK [20:03:11]MH_I2C_Read... [20:03:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:03:11]Read from MH i2c: E2 [20:03:11]MH_I2C_Read... [20:03:11]Read from MH i2c: E2 17 00 [20:03:11]MH_I2C_Read... [20:03:11]Read from MH i2c: E2 17 00 6F 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 47 [20:03:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:03:11]wFMCommunicate OK [20:03:11]CreateOFDProtocolMessage done [20:03:11]OFDSenderStorePacket 76928 [20:03:11]StoreOFDPacket docnum=76928 [20:03:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 AE EA 07 01 62 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 FE 70 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 80 2C 01 00 35 04 06 00 EB D4 8C 4D 82 C6 18 C7 88 6B 58 34 18 64 [20:03:11]CheckFolder [20:03:11]dirname=/storage/ofd_packets [20:03:11]CheckFolder done [20:03:11]ProducePacketName [20:03:11]name=ofd_packets/00076928 [20:03:11]NVStorageSaveData ofd_packets/00076928 [20:03:11]File name is /storage/ofd_packets/00076928 [20:03:11]Write 301 bytes [20:03:11]NVStorageSaveData done [20:03:11]OFDSenderStorePacket done [20:03:11]KKMCreateOFDPacket done [20:03:11]NVStorageSaveData kkm_last_timestamp [20:03:11]File name is /storage/kkm_last_timestamp [20:03:11]Write 4 bytes [20:03:11]NVStorageSaveData done [20:03:11]ExternCall_PrintAddStr [20:03:11]wPrintStart [20:03:11]Write to MH i2c: 01 00 00 70 0B 7B [20:03:11]Write i2c OK [20:03:11]MH_I2C_Read... [20:03:11]Read from MH i2c: 01 [20:03:11]MH_I2C_Read... [20:03:11]Read from MH i2c: 01 07 00 [20:03:11]MH_I2C_Read... [20:03:11]Read from MH i2c: 01 07 00 70 0B 00 00 00 00 00 FF 0F 90 [20:03:11]RasterBufferAndPrint [20:03:11]line Счет N : (1)191475 [20:03:11]line ИНН: 02508201610067 [20:03:11]line Контрольно-Кассовый Чек [20:03:11]line ПРОДАЖА [20:03:11]line ТРК (МРК, ГНК) : 33 [20:03:11]line Товар: 2710124130 [20:03:11]line Аи-92-К-5 [20:03:11]line 7.770 * 64.40 [20:03:11]line = 500.39 [20:03:11]line НДС 12% НСП 1% [20:03:11]line > о реализуемом товаре [20:03:11]line ОКРУГЛЕНИЕ: -0.39 [20:03:11]line ИТОГО: 500.00 [20:03:11]line Внесено: 500.00 [20:03:11]line СДАЧА: 0.00 [20:03:11]line НСП 1% : 4.43 [20:03:11]line НДС 12% : 53.14 [20:03:11]line Наличными: 500.00 [20:03:11]line Безнал.: 0.00 [20:03:11]line Место: АЗС № 106 "Партнер Нефть" [20:03:11]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [20:03:11]line СНО: Общий режим [20:03:11]line Чек 184 21.04.2024 20:03 [20:03:11]line Смена: 372 ФФД: 1.0 [20:03:11]line ЗНМ: 0300000141 [20:03:11]line РНМ: 0000000000091573 [20:03:11]line Версия ККМ: 001 [20:03:11]line ФМ: 0000000000874652 [20:03:11]line ФД: 76928 [20:03:11]line ФПД: 259298119484102 [20:03:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T200310&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76928&fm=259298119484102&tin=02508201610067®Number=0000000000091573&sum=50000 [20:03:11]written 0, free lines is 4095 [20:03:11]OFD Sender: Processing packet 76928 [packets to send 129, broken 128] [20:03:11]ProducePacketName [20:03:11]name=ofd_packets/00076928 [20:03:11]OFD Sender: To server: pG, [20:03:11]CommunicateWithHost lk.salyk.kg:30040 [20:03:11]ConnectInit lk.salyk.kg [20:03:11]Connected sock=10 [20:03:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 AE EA 07 01 62 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 FE 70 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 80 2C 01 00 35 04 06 00 EB D4 8C 4D 82 C6 18 C7 88 6B 58 34 18 64 [20:03:11]Write to MH i2c: 01 00 00 9A 0B A5 [20:03:11]Write i2c OK [20:03:11]MH_I2C_Read... [20:03:11]Read from MH i2c: 01 [20:03:11]MH_I2C_Read... [20:03:11]Read from MH i2c: 01 07 00 [20:03:11]MH_I2C_Read... [20:03:11]Read from MH i2c: 01 07 00 9A 0B 00 00 00 00 00 FF 0C B7 [20:03:11]RasterBufferAndPrint [20:03:11]line [20:03:11]line [20:03:11]line [20:03:11]line [20:03:11]line [20:03:11]written 0, free lines is 3339 [20:03:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 1D D1 47 00 0F 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 34 36 35 32 10 04 04 00 80 2C 01 00 F4 03 04 00 83 18 25 66 B6 04 01 00 00 8F F3 9B C1 14 A9 F0 44 [20:03:12]CommunicateWithHost err = 0 [20:03:12]CheckOFDResponse [20:03:12]1017 (14) - 77093643461234 [20:03:12]1041 (16) - 0000000000874652 [20:03:12]1040 (4) - 76928 [20:03:12]1012 (4) - 21.04.2024 13:45 [20:03:12]1206 (1) - 0 [20:03:12]OFD Sender: Remove packet 76928 [20:03:12]ProducePacketName [20:03:12]name=ofd_packets/00076928 [20:03:12]NVStorageDeleteData [20:03:12]MH_Cut [20:03:12]Write to MH i2c: D1 01 00 A1 0B 01 7E [20:03:12]Write i2c OK [20:03:12]MH_I2C_Read... [20:03:12]Read from MH i2c: D1 [20:03:12]MH_I2C_Read... [20:03:12]Read from MH i2c: D1 01 00 [20:03:12]MH_I2C_Read... [20:03:12]Read from MH i2c: D1 01 00 A1 0B 00 7D [20:03:12]Write to MH i2c: 01 00 00 A2 0B AD [20:03:12]Write i2c OK [20:03:12]MH_I2C_Read... [20:03:12]OFD Sender: No OFD packet to send [20:03:12]*** Cut start [20:03:12]*** Partial cut [20:03:12]*** CUTSNS_PIN = 1 [20:03:12]*** CUTSNS_PIN = 0 [20:03:12]*** Brake cut motor [20:03:13]Read from MH i2c: 01 [20:03:13]MH_I2C_Read... [20:03:13]*** Stop cut motor [20:03:13]*** Cut end [20:03:13]Read from MH i2c: 01 07 00 [20:03:13]MH_I2C_Read... [20:03:13]Read from MH i2c: 01 07 00 A2 0B 00 00 00 00 00 FF 0F C2 [20:03:13]process_action close_receipt done [20:03:13]requested_data is exist [20:03:13]produce_requested_data [20:03:13]requested_item fm.sn is exist - process it [20:03:13]wFMCommunicate request_size=4 [20:03:13]MH_SAM_APDU [20:03:13]CAPDU: 80 11 00 00 [20:03:13]Write to MH i2c: E2 08 00 A3 0B 80 11 00 00 00 00 00 00 28 [20:03:13]Write i2c OK [20:03:13]MH_I2C_Read... [20:03:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:03:13]Read from MH i2c: E2 [20:03:13]MH_I2C_Read... [20:03:13]Read from MH i2c: E2 17 00 [20:03:13]MH_I2C_Read... [20:03:13]Read from MH i2c: E2 17 00 A3 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 7B [20:03:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:03:13]wFMCommunicate OK [20:03:13]requested_item fd.num is exist - process it [20:03:13]SAM_PROTO_GetFieldsCounters [20:03:13]wFMCommunicate request_size=4 [20:03:13]MH_SAM_APDU [20:03:13]CAPDU: 80 13 00 00 [20:03:13]Write to MH i2c: E2 08 00 A4 0B 80 13 00 00 00 00 00 00 2B [20:03:13]Write i2c OK [20:03:13]MH_I2C_Read... [20:03:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:03:13]Read from MH i2c: E2 [20:03:13]MH_I2C_Read... [20:03:13]Read from MH i2c: E2 62 00 [20:03:13]MH_I2C_Read... [20:03:13]Read from MH i2c: E2 62 00 A4 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 80 2C 01 00 0E 04 04 00 74 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 96 [20:03:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 80 2C 01 00 0E 04 04 00 74 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 [20:03:13]wFMCommunicate OK [20:03:13]SAM_PROTO_GetFieldsCounters done [20:03:13]requested_item shift.num is exist - process it [20:03:13]requested_item shift.opened is exist - process it [20:03:13]req_shift_opened [20:03:13]FM_GetShiftState [20:03:13]SAM_PROTO_GetShiftState [20:03:13]wFMCommunicate request_size=4 [20:03:13]MH_SAM_APDU [20:03:13]CAPDU: 80 13 01 00 [20:03:13]Write to MH i2c: E2 08 00 A5 0B 80 13 01 00 00 00 00 00 2D [20:03:13]Write i2c OK [20:03:13]MH_I2C_Read... [20:03:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:03:13]Read from MH i2c: E2 [20:03:13]MH_I2C_Read... [20:03:13]Read from MH i2c: E2 0E 00 [20:03:13]MH_I2C_Read... [20:03:13]Read from MH i2c: E2 0E 00 A5 0B 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 74 [20:03:13]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [20:03:13]wFMCommunicate OK [20:03:13]SAM_PROTO_GetShiftState done [20:03:13]FM_GetShiftState done [20:03:13]req_shift_opened done [20:03:13]requested_item shift.open_date is exist - process it [20:03:13]req_shift_open_date [20:03:13]req_shift_open_date done [20:03:13]produce_requested_data done [20:03:13]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76928,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [20:03:13]process_action_free close_receipt [20:03:13]json_value_free [20:03:13]json_value_free done [20:03:13]process_json_proto returns [20:03:13]Send response to host [20:03:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76928,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [20:03:13]free response buf [20:03:13]execute_script done [20:03:13]execute_script returns [20:03:13]free content buf [20:03:13]Sock 8.Close socket [20:03:13]Sock 8.Thread stoped [20:03:17]OFD Sender: No OFD packet to send [20:03:22]OFD Sender: No OFD packet to send [20:03:27]OFD Sender: No OFD packet to send [20:03:32]OFD Sender: No OFD packet to send [20:03:37]OFD Sender: No OFD packet to send [20:03:42]OFD Sender: No OFD packet to send [20:03:47]OFD Sender: No OFD packet to send [20:03:52]OFD Sender: No OFD packet to send [20:03:57]OFD Sender: No OFD packet to send [20:04:02]OFD Sender: No OFD packet to send [20:04:07]OFD Sender: No OFD packet to send [20:04:12]OFD Sender: No OFD packet to send [20:04:17]OFD Sender: No OFD packet to send [20:04:22]OFD Sender: No OFD packet to send [20:04:27]OFD Sender: No OFD packet to send [20:04:32]OFD Sender: No OFD packet to send [20:04:37]OFD Sender: No OFD packet to send [20:04:42]OFD Sender: No OFD packet to send [20:04:47]OFD Sender: No OFD packet to send [20:04:52]OFD Sender: No OFD packet to send [20:04:57]OFD Sender: No OFD packet to send [20:05:02]OFD Sender: No OFD packet to send [20:05:07]OFD Sender: No OFD packet to send [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:23]OFD Sender: No OFD packet to send [20:09:28]OFD Sender: No OFD packet to send [20:09:33]OFD Sender: No OFD packet to send [20:09:38]OFD Sender: No OFD packet to send [20:09:43]OFD Sender: No OFD packet to send [20:09:48]OFD Sender: No OFD packet to send [20:09:53]OFD Sender: No OFD packet to send [20:09:58]OFD Sender: No OFD packet to send [20:10:03]OFD Sender: No OFD packet to send [20:10:08]OFD Sender: No OFD packet to send [20:10:13]OFD Sender: No OFD packet to send [20:10:18]OFD Sender: No OFD packet to send [20:10:23]OFD Sender: No OFD packet to send [20:10:28]OFD Sender: No OFD packet to send [20:10:33]OFD Sender: No OFD packet to send [20:10:38]OFD Sender: No OFD packet to send [20:10:43]OFD Sender: No OFD packet to send [20:10:48]OFD Sender: No OFD packet to send [20:10:53]OFD Sender: No OFD packet to send [20:10:58]OFD Sender: No OFD packet to send [20:11:03]OFD Sender: No OFD packet to send [20:11:08]OFD Sender: No OFD packet to send [20:11:10]accept exits with 9 [20:11:10]New connection [20:11:10]New thread 3066944868 created [20:11:10]Thread 3066801508 joined [20:11:10]Waiting for new connection... [20:11:10] Sock 9.Parse request [20:11:10]Sock 9.Check first char [20:11:10]Sock 9.First char is OK [20:11:10]request: POST /json_proto HTTP/1.0 [20:11:10]Method: POST [20:11:10]URL: /json_proto [20:11:10]Method is POST - this is cgi request [20:11:10]url: /json_proto [20:11:10]query_string will be loaded in cgi processing [20:11:10]execute_cgi json_proto POST (null) [20:11:10]execute_cgi path=json_proto method=POST [20:11:10]POST find Content-Length [20:11:10]Host: 172.17.62.5:8080 [20:11:10]Content-Length: 675 [20:11:10]Content-Type: application/json [20:11:10] [20:11:10]POST finish read [20:11:10]Found Content-Length = 675 [20:11:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 15.300, "sum" : 1000.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:11:10]execute_script... [20:11: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)191477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 15.300, "sum" : 1000.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:11:10]POST & json_proto [20:11:10]process_json_proto [20:11:10]json parsed OK: [20:11:10]protocol is kg_v1.0 [20:11:10]action value=close_receipt [20:11:10]process_action close_receipt [20:11:10]cmd_close_receipt [20:11:10]MH_GetDate [20:11:10]Write to MH i2c: F0 00 00 A6 0B A0 [20:11:10]Write i2c OK [20:11:10]MH_I2C_Read... [20:11:10]Read from MH i2c: F0 [20:11:10]MH_I2C_Read... [20:11:10]Read from MH i2c: F0 09 00 [20:11:10]MH_I2C_Read... [20:11:10]Read from MH i2c: F0 09 00 A6 0B 00 DF 72 25 66 F4 E9 65 64 2B [20:11:10]GetLastDocTimeStamp 1713729790 [20:11:10]current date 1713730271 [20:11:10]FM_GetShiftState [20:11:10]SAM_PROTO_GetShiftState [20:11:10]wFMCommunicate request_size=4 [20:11:10]MH_SAM_APDU [20:11:10]CAPDU: 80 13 01 00 [20:11:10]Write to MH i2c: E2 08 00 A7 0B 80 13 01 00 00 00 00 00 2F [20:11:10]Write i2c OK [20:11:10]MH_I2C_Read... [20:11:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:11:10]Read from MH i2c: E2 [20:11:10]MH_I2C_Read... [20:11:10]Read from MH i2c: E2 0E 00 [20:11:10]MH_I2C_Read... [20:11:10]Read from MH i2c: E2 0E 00 A7 0B 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 76 [20:11:10]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [20:11:10]wFMCommunicate OK [20:11:10]SAM_PROTO_GetShiftState done [20:11:10]FM_GetShiftState done [20:11:10]opened in 1713658965 [20:11:10]opened+sec_in_day 1713745365 [20:11:10]quantity*price = 100062 [20:11:10]sum+1 = 100063 [20:11:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 185 21.04.2024 20:11 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76929 ФПД: 25688739043306 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T201112&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76929&fm=25688739043306&tin=02508201610067®Number=0000000000091573&sum=100000 [20:11:12]StoreToDocumentArchive [20:11:12]shift 372 fd 76929 [20:11:12]save to /storage/0372/doc_00076929 [20:11:12]save last doc name /storage/0372/doc_00076929 to /storage/kkm_last_doc_name [20:11:12]save OK [20:11:12]Clear old archive folders... [20:11:12]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:11:12]tlvbuf is 00CA3850 [20:11:12]SAM_PROTO_ClearQueue [20:11:12]wFMCommunicate request_size=4 [20:11:12]MH_SAM_APDU [20:11:12]CAPDU: 80 09 00 00 [20:11:12]Write to MH i2c: E2 08 00 B4 0B 80 09 00 00 00 00 00 00 31 [20:11:12]Write i2c OK [20:11:12]MH_I2C_Read... [20:11:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:11:12]Read from MH i2c: E2 [20:11:12]MH_I2C_Read... [20:11:12]Read from MH i2c: E2 03 00 [20:11:12]MH_I2C_Read... [20:11:12]Read from MH i2c: E2 03 00 B4 0B 00 90 00 33 [20:11:12]RAPDU: 90 00 [20:11:12]wFMCommunicate OK [20:11:12]SAM_PROTO_ClearQueue done [20:11:12]KKMCreateOFDPacket [20:11:12]OFDProtocolAddRootSTLVToBuf [20:11:12]FM_MakeSignedData [20:11:12]FM_MakeSignedData [20:11:12]SAM_PROTO_SignData [20:11:12]wFMCommunicate request_size=4 [20:11:12]MH_SAM_APDU [20:11:12]CAPDU: 80 0D 01 02 [20:11:12]Write to MH i2c: E2 08 00 B5 0B 80 0D 01 02 00 00 00 00 39 [20:11:12]Write i2c OK [20:11:12]MH_I2C_Read... [20:11:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:11:12]Read from MH i2c: E2 [20:11:12]MH_I2C_Read... [20:11:12]Read from MH i2c: E2 03 00 [20:11:12]MH_I2C_Read... [20:11:12]Read from MH i2c: E2 03 00 B5 0B 00 90 00 34 [20:11:12]RAPDU: 90 00 [20:11:12]wFMCommunicate OK [20:11:12]wFMCommunicate request_size=255 [20:11:12]MH_SAM_APDU [20:11: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 E0 72 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 81 2C 01 00 35 04 06 00 [20:11:12]Write to MH i2c: E2 02 01 B6 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 E0 72 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 81 2C 01 00 35 04 06 00 00 00 13 [20:11:12]Write i2c OK [20:11:12]MH_I2C_Read... [20:11:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:11:12]Read from MH i2c: E2 [20:11:12]MH_I2C_Read... [20:11:12]Read from MH i2c: E2 03 00 [20:11:12]MH_I2C_Read... [20:11:12]Read from MH i2c: E2 03 00 B6 0B 00 90 00 35 [20:11:12]RAPDU: 90 00 [20:11:12]wFMCommunicate OK [20:11:12]wFMCommunicate request_size=11 [20:11:12]MH_SAM_APDU [20:11:12]CAPDU: 80 0D 02 02 06 17 5D 20 2A 57 EA [20:11:12]Write to MH i2c: E2 0E 00 B7 0B 80 0D 02 02 06 00 17 5D 20 2A 57 EA 00 00 47 [20:11:12]Write i2c OK [20:11:12]MH_I2C_Read... [20:11:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:11:12]Read from MH i2c: E2 [20:11:12]MH_I2C_Read... [20:11:12]Read from MH i2c: E2 03 00 [20:11:12]MH_I2C_Read... [20:11:12]Read from MH i2c: E2 03 00 B7 0B 00 90 00 36 [20:11:12]RAPDU: 90 00 [20:11:12]wFMCommunicate OK [20:11:12]wFMCommunicate request_size=4 [20:11:12]MH_SAM_APDU [20:11:12]CAPDU: 80 0D 03 02 [20:11:12]Write to MH i2c: E2 08 00 B8 0B 80 0D 03 02 00 00 00 00 3E [20:11:12]Write i2c OK [20:11:12]MH_I2C_Read... [20:11:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:11:12]Read from MH i2c: E2 [20:11:12]MH_I2C_Read... [20:11:12]Read from MH i2c: E2 0B 00 [20:11:12]MH_I2C_Read... [20:11:12]Read from MH i2c: E2 0B 00 B8 0B 00 80 18 49 84 55 78 18 BC 90 00 45 [20:11:12]RAPDU: 80 18 49 84 55 78 18 BC 90 00 [20:11:12]wFMCommunicate OK [20:11:12]SAM_PROTO_SignData done [20:11:12]FM_MakeSignedData done [20:11:12]CreateOFDProtocolMessage [20:11:12]wFMCommunicate request_size=4 [20:11:12]MH_SAM_APDU [20:11:12]CAPDU: 80 11 00 00 [20:11:12]Write to MH i2c: E2 08 00 B9 0B 80 11 00 00 00 00 00 00 3E [20:11:12]Write i2c OK [20:11:12]MH_I2C_Read... [20:11:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:11:12]Read from MH i2c: E2 [20:11:12]MH_I2C_Read... [20:11:12]Read from MH i2c: E2 17 00 [20:11:12]MH_I2C_Read... [20:11:12]Read from MH i2c: E2 17 00 B9 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 91 [20:11:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:11:12]wFMCommunicate OK [20:11:12]CreateOFDProtocolMessage done [20:11:12]OFDSenderStorePacket 76929 [20:11:12]StoreOFDPacket docnum=76929 [20:11:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 11 FE 08 01 EC BE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 E0 72 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 81 2C 01 00 35 04 06 00 17 5D 20 2A 57 EA 80 18 49 84 55 78 18 BC [20:11:12]CheckFolder [20:11:12]dirname=/storage/ofd_packets [20:11:12]CheckFolder done [20:11:12]ProducePacketName [20:11:12]name=ofd_packets/00076929 [20:11:12]NVStorageSaveData ofd_packets/00076929 [20:11:12]File name is /storage/ofd_packets/00076929 [20:11:12]Write 302 bytes [20:11:12]NVStorageSaveData done [20:11:12]OFDSenderStorePacket done [20:11:12]KKMCreateOFDPacket done [20:11:12]NVStorageSaveData kkm_last_timestamp [20:11:12]File name is /storage/kkm_last_timestamp [20:11:12]Write 4 bytes [20:11:12]NVStorageSaveData done [20:11:12]ExternCall_PrintAddStr [20:11:12]wPrintStart [20:11:12]Write to MH i2c: 01 00 00 BA 0B C5 [20:11:12]Write i2c OK [20:11:12]MH_I2C_Read... [20:11:12]Read from MH i2c: 01 [20:11:12]MH_I2C_Read... [20:11:12]Read from MH i2c: 01 07 00 [20:11:12]MH_I2C_Read... [20:11:12]Read from MH i2c: 01 07 00 BA 0B 00 00 00 00 00 FF 0F DA [20:11:12]RasterBufferAndPrint [20:11:12]line Счет N : (1)191477 [20:11:12]line ИНН: 02508201610067 [20:11:12]line Контрольно-Кассовый Чек [20:11:12]line ПРОДАЖА [20:11:12]line ТРК (МРК, ГНК) : 31 [20:11:12]line Товар: 2710124130 [20:11:12]line SUPER 92-К-5 [20:11:12]line 15.300 * 65.40 [20:11:12]line = 1000.62 [20:11:12]line НДС 12% НСП 1% [20:11:12]line > о реализуемом товаре [20:11:12]line ОКРУГЛЕНИЕ: -0.62 [20:11:12]line ИТОГО: 1000.00 [20:11:12]line Внесено: 1000.00 [20:11:12]line СДАЧА: 0.00 [20:11:12]line НСП 1% : 8.85 [20:11:12]line НДС 12% : 106.26 [20:11:12]line Наличными: 1000.00 [20:11:12]line Безнал.: 0.00 [20:11:12]line Место: АЗС № 106 "Партнер Нефть" [20:11:12]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [20:11:12]line СНО: Общий режим [20:11:12]line Чек 185 21.04.2024 20:11 [20:11:12]line Смена: 372 ФФД: 1.0 [20:11:12]line ЗНМ: 0300000141 [20:11:12]line РНМ: 0000000000091573 [20:11:12]line Версия ККМ: 001 [20:11:12]line ФМ: 0000000000874652 [20:11:12]line ФД: 76929 [20:11:12]line ФПД: 25688739043306 [20:11:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T201112&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76929&fm=25688739043306&tin=02508201610067®Number=0000000000091573&sum=100000 [20:11:12]OFD Sender: Processing packet 76929 [packets to send 129, broken 128] [20:11:12]ProducePacketName [20:11:12]name=ofd_packets/00076929 [20:11:12]OFD Sender: To server: pG, [20:11:12]CommunicateWithHost lk.salyk.kg:30040 [20:11:12]ConnectInit lk.salyk.kg [20:11:12]written 0, free lines is 4095 [20:11:13]Connected sock=10 [20:11:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 11 FE 08 01 EC BE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 E0 72 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 81 2C 01 00 35 04 06 00 17 5D 20 2A 57 EA 80 18 49 84 55 78 18 BC [20:11:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 D2 D4 47 00 38 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 81 2C 01 00 F4 03 04 00 64 1A 25 66 B6 04 01 00 00 6F 46 6F CA 02 C0 54 F3 [20:11:13]CommunicateWithHost err = 0 [20:11:13]CheckOFDResponse [20:11:13]1017 (14) - 77093643461234 [20:11:13]1041 (16) - 0000000000874652 [20:11:13]1040 (4) - 76929 [20:11:13]1012 (4) - 21.04.2024 13:53 [20:11:13]1206 (1) - 0 [20:11:13]OFD Sender: Remove packet 76929 [20:11:13]ProducePacketName [20:11:13]name=ofd_packets/00076929 [20:11:13]NVStorageDeleteData [20:11:13]Write to MH i2c: 01 00 00 E4 0B EF [20:11:13]Write i2c OK [20:11:13]MH_I2C_Read... [20:11:13]Read from MH i2c: 01 [20:11:13]MH_I2C_Read... [20:11:13]Read from MH i2c: 01 07 00 [20:11:13]MH_I2C_Read... [20:11:13]Read from MH i2c: 01 07 00 E4 0B 00 00 00 00 00 ED 0C EF [20:11:13]RasterBufferAndPrint [20:11:13]line [20:11:13]line [20:11:13]line [20:11:13]line [20:11:13]line [20:11:13]written 0, free lines is 3316 [20:11:13]MH_Cut [20:11:13]Write to MH i2c: D1 01 00 EB 0B 01 C8 [20:11:13]Write i2c OK [20:11:13]MH_I2C_Read... [20:11:13]Read from MH i2c: D1 [20:11:13]MH_I2C_Read... [20:11:13]Read from MH i2c: D1 01 00 [20:11:13]MH_I2C_Read... [20:11:13]Read from MH i2c: D1 01 00 EB 0B 00 C7 [20:11:13]Write to MH i2c: 01 00 00 EC 0B F7 [20:11:13]Write i2c OK [20:11:13]MH_I2C_Read... [20:11:13]OFD Sender: No OFD packet to send [20:11:14]*** Cut start [20:11:14]*** Partial cut [20:11:14]*** CUTSNS_PIN = 1 [20:11:14]*** CUTSNS_PIN = 0 [20:11:14]*** Brake cut motor [20:11:14]Read from MH i2c: 01 [20:11:14]MH_I2C_Read... [20:11:14]*** Stop cut motor [20:11:14]*** Cut end [20:11:14]Read from MH i2c: 01 07 00 [20:11:14]MH_I2C_Read... [20:11:14]Read from MH i2c: 01 07 00 EC 0B 00 00 00 00 00 FF 0F 0C [20:11:14]process_action close_receipt done [20:11:14]requested_data is exist [20:11:14]produce_requested_data [20:11:14]requested_item fm.sn is exist - process it [20:11:14]wFMCommunicate request_size=4 [20:11:14]MH_SAM_APDU [20:11:14]CAPDU: 80 11 00 00 [20:11:14]Write to MH i2c: E2 08 00 ED 0B 80 11 00 00 00 00 00 00 72 [20:11:14]Write i2c OK [20:11:14]MH_I2C_Read... [20:11:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:11:14]Read from MH i2c: E2 [20:11:14]MH_I2C_Read... [20:11:14]Read from MH i2c: E2 17 00 [20:11:14]MH_I2C_Read... [20:11:14]Read from MH i2c: E2 17 00 ED 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 C5 [20:11:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:11:14]wFMCommunicate OK [20:11:14]requested_item fd.num is exist - process it [20:11:14]SAM_PROTO_GetFieldsCounters [20:11:14]wFMCommunicate request_size=4 [20:11:14]MH_SAM_APDU [20:11:14]CAPDU: 80 13 00 00 [20:11:14]Write to MH i2c: E2 08 00 EE 0B 80 13 00 00 00 00 00 00 75 [20:11:14]Write i2c OK [20:11:14]MH_I2C_Read... [20:11:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:11:14]Read from MH i2c: E2 [20:11:14]MH_I2C_Read... [20:11:14]Read from MH i2c: E2 62 00 [20:11:14]MH_I2C_Read... [20:11:14]Read from MH i2c: E2 62 00 EE 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 81 2C 01 00 0E 04 04 00 74 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 E4 [20:11: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 81 2C 01 00 0E 04 04 00 74 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 [20:11:14]wFMCommunicate OK [20:11:14]SAM_PROTO_GetFieldsCounters done [20:11:14]requested_item shift.num is exist - process it [20:11:14]requested_item shift.opened is exist - process it [20:11:14]req_shift_opened [20:11:14]FM_GetShiftState [20:11:14]SAM_PROTO_GetShiftState [20:11:14]wFMCommunicate request_size=4 [20:11:14]MH_SAM_APDU [20:11:14]CAPDU: 80 13 01 00 [20:11:14]Write to MH i2c: E2 08 00 EF 0B 80 13 01 00 00 00 00 00 77 [20:11:14]Write i2c OK [20:11:14]MH_I2C_Read... [20:11:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:11:14]Read from MH i2c: E2 [20:11:14]MH_I2C_Read... [20:11:14]Read from MH i2c: E2 0E 00 [20:11:14]MH_I2C_Read... [20:11:14]Read from MH i2c: E2 0E 00 EF 0B 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 BE [20:11:14]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [20:11:14]wFMCommunicate OK [20:11:14]SAM_PROTO_GetShiftState done [20:11:14]FM_GetShiftState done [20:11:14]req_shift_opened done [20:11:14]requested_item shift.open_date is exist - process it [20:11:14]req_shift_open_date [20:11:14]req_shift_open_date done [20:11:14]produce_requested_data done [20:11:14]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76929,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [20:11:14]process_action_free close_receipt [20:11:14]json_value_free [20:11:14]json_value_free done [20:11:14]process_json_proto returns [20:11:14]Send response to host [20:11:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76929,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [20:11:14]free response buf [20:11:14]execute_script done [20:11:14]execute_script returns [20:11:14]free content buf [20:11:14]Sock 9.Close socket [20:11:14]Sock 9.Thread stoped [20:11:18]OFD Sender: No OFD packet to send [20:11:23]OFD Sender: No OFD packet to send [20:11:28]OFD Sender: No OFD packet to send [20:11:33]OFD Sender: No OFD packet to send [20:11:38]OFD Sender: No OFD packet to send [20:11:43]OFD Sender: No OFD packet to send [20:11:48]OFD Sender: No OFD packet to send [20:11:53]OFD Sender: No OFD packet to send [20:11:58]OFD Sender: No OFD packet to send [20:12:03]OFD Sender: No OFD packet to send [20:12:08]OFD Sender: No OFD packet to send [20:12:13]OFD Sender: No OFD packet to send [20:12:18]OFD Sender: No OFD packet to send [20:12:23]OFD Sender: No OFD packet to send [20:12:28]OFD Sender: No OFD packet to send [20:12:33]OFD Sender: No OFD packet to send [20:12:38]OFD Sender: No OFD packet to send [20:12:43]OFD Sender: No OFD packet to send [20:12:48]OFD Sender: No OFD packet to send [20:12:53]OFD Sender: No OFD packet to send [20:12:58]OFD Sender: No OFD packet to send [20:13:03]OFD Sender: No OFD packet to send [20:13:08]OFD Sender: No OFD packet to send [20:13:13]OFD Sender: No OFD packet to send [20:13:18]OFD Sender: No OFD packet to send [20:13:23]OFD Sender: No OFD packet to send [20:13:28]OFD Sender: No OFD packet to send [20:13:33]OFD Sender: No OFD packet to send [20:13:38]OFD Sender: No OFD packet to send [20:13:43]OFD Sender: No OFD packet to send [20:13:48]OFD Sender: No OFD packet to send [20:13:53]OFD Sender: No OFD packet to send [20:13:58]OFD Sender: No OFD packet to send [20:14:03]OFD Sender: No OFD packet to send [20:14:08]OFD Sender: No OFD packet to send [20:14:13]OFD Sender: No OFD packet to send [20:14:18]OFD Sender: No OFD packet to send [20:14:24]OFD Sender: No OFD packet to send [20:14:29]OFD Sender: No OFD packet to send [20:14:34]OFD Sender: No OFD packet to send [20:14:38]accept exits with 8 [20:14:38]New connection [20:14:38]New thread 3066801508 created [20:14:38]Thread 3066944868 joined [20:14:38]Waiting for new connection... [20:14:38] Sock 8.Parse request [20:14:38]Sock 8.Check first char [20:14:38]Sock 8.First char is OK [20:14:38]request: POST /json_proto HTTP/1.0 [20:14:38]Method: POST [20:14:38]URL: /json_proto [20:14:38]Method is POST - this is cgi request [20:14:38]url: /json_proto [20:14:38]query_string will be loaded in cgi processing [20:14:38]execute_cgi json_proto POST (null) [20:14:38]execute_cgi path=json_proto method=POST [20:14:38]POST find Content-Length [20:14:38]Host: 172.17.62.5:8080 [20:14:38]Content-Length: 809 [20:14:38]Content-Type: application/json [20:14:38] [20:14:38]POST finish read [20:14:38]Found Content-Length = 809 [20:14:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191476", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 18.960, "sum" : 619.99, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 619.99 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:38]execute_script... [20:14: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)191476", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 18.960, "sum" : 619.99, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 619.99 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:38]POST & json_proto [20:14:38]process_json_proto [20:14:38]json parsed OK: [20:14:38]protocol is kg_v1.0 [20:14:38]action value=close_receipt [20:14:38]process_action close_receipt [20:14:38]cmd_close_receipt [20:14:38]MH_GetDate [20:14:38]Write to MH i2c: F0 00 00 F0 0B EA [20:14:38]Write i2c OK [20:14:38]MH_I2C_Read... [20:14:38]Read from MH i2c: F0 [20:14:38]MH_I2C_Read... [20:14:38]Read from MH i2c: F0 09 00 [20:14:38]MH_I2C_Read... [20:14:38]Read from MH i2c: F0 09 00 F0 0B 00 AF 73 25 66 F4 E9 65 64 46 [20:14:38]GetLastDocTimeStamp 1713730272 [20:14:38]current date 1713730479 [20:14:38]FM_GetShiftState [20:14:38]SAM_PROTO_GetShiftState [20:14:38]wFMCommunicate request_size=4 [20:14:38]MH_SAM_APDU [20:14:38]CAPDU: 80 13 01 00 [20:14:38]Write to MH i2c: E2 08 00 F1 0B 80 13 01 00 00 00 00 00 79 [20:14:38]Write i2c OK [20:14:38]MH_I2C_Read... [20:14:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:38]Read from MH i2c: E2 [20:14:38]MH_I2C_Read... [20:14:38]Read from MH i2c: E2 0E 00 [20:14:38]MH_I2C_Read... [20:14:38]Read from MH i2c: E2 0E 00 F1 0B 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 C0 [20:14:38]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [20:14:38]wFMCommunicate OK [20:14:38]SAM_PROTO_GetShiftState done [20:14:38]FM_GetShiftState done [20:14:38]opened in 1713658965 [20:14:38]opened+sec_in_day 1713745365 [20:14:38]quantity*price = 61999 [20:14:38]sum+1 = 62000 [20:14:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 619.99 НСП 1% : 5.49 НДС 12% : 65.84 Наличными: 0.00 Безнал.: 619.99 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 186 21.04.2024 20:14 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 76930 ФПД: 178648956973689 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T201439&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76930&fm=178648956973689&tin=02508201610067®Number=0000000000091573&sum=61999 [20:14:39]StoreToDocumentArchive [20:14:39]shift 372 fd 76930 [20:14:39]save to /storage/0372/doc_00076930 [20:14:39]save last doc name /storage/0372/doc_00076930 to /storage/kkm_last_doc_name [20:14:39]save OK [20:14:39]Clear old archive folders... [20:14:39]ProcessDocumentItem done err = 0, tmpTLVsize=250 [20:14:39]tlvbuf is 00CC7350 [20:14:39]SAM_PROTO_ClearQueue [20:14:39]wFMCommunicate request_size=4 [20:14:39]MH_SAM_APDU [20:14:39]CAPDU: 80 09 00 00 [20:14:39]Write to MH i2c: E2 08 00 FE 0B 80 09 00 00 00 00 00 00 7B [20:14:39]Write i2c OK [20:14:39]MH_I2C_Read... [20:14:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:14:39]Read from MH i2c: E2 [20:14:39]MH_I2C_Read... [20:14:39]Read from MH i2c: E2 03 00 [20:14:39]MH_I2C_Read... [20:14:39]Read from MH i2c: E2 03 00 FE 0B 00 90 00 7D [20:14:39]RAPDU: 90 00 [20:14:39]wFMCommunicate OK [20:14:39]SAM_PROTO_ClearQueue done [20:14:39]KKMCreateOFDPacket [20:14:39]OFDProtocolAddRootSTLVToBuf [20:14:39]FM_MakeSignedData [20:14:39]FM_MakeSignedData [20:14:39]SAM_PROTO_SignData [20:14:39]wFMCommunicate request_size=4 [20:14:39]MH_SAM_APDU [20:14:39]CAPDU: 80 0D 01 02 [20:14:39]Write to MH i2c: E2 08 00 FF 0B 80 0D 01 02 00 00 00 00 83 [20:14:39]Write i2c OK [20:14:39]MH_I2C_Read... [20:14:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:14:40]Read from MH i2c: E2 [20:14:40]MH_I2C_Read... [20:14:40]Read from MH i2c: E2 03 00 [20:14:40]MH_I2C_Read... [20:14:40]Read from MH i2c: E2 03 00 FF 0B 00 90 00 7E [20:14:40]RAPDU: 90 00 [20:14:40]wFMCommunicate OK [20:14:40]wFMCommunicate request_size=255 [20:14:40]MH_SAM_APDU [20:14:40]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 10 4A 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 2F F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2F F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 19 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2F F2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 AF 73 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 82 2C 01 00 35 04 06 00 A2 7A [20:14:40]Write to MH i2c: E2 02 01 00 0C 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 10 4A 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 2F F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2F F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 19 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2F F2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 AF 73 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 82 2C 01 00 35 04 06 00 A2 7A 00 00 63 [20:14:40]Write i2c OK [20:14:40]MH_I2C_Read... [20:14:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:40]Read from MH i2c: E2 [20:14:40]MH_I2C_Read... [20:14:40]Read from MH i2c: E2 03 00 [20:14:40]MH_I2C_Read... [20:14:40]Read from MH i2c: E2 03 00 00 0C 00 90 00 80 [20:14:40]RAPDU: 90 00 [20:14:40]wFMCommunicate OK [20:14:40]wFMCommunicate request_size=9 [20:14:40]MH_SAM_APDU [20:14:40]CAPDU: 80 0D 02 02 04 F3 9E B2 79 [20:14:40]Write to MH i2c: E2 0C 00 01 0C 80 0D 02 02 04 00 F3 9E B2 79 00 00 4B [20:14:40]Write i2c OK [20:14:40]MH_I2C_Read... [20:14:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:40]Read from MH i2c: E2 [20:14:40]MH_I2C_Read... [20:14:40]Read from MH i2c: E2 03 00 [20:14:40]MH_I2C_Read... [20:14:40]Read from MH i2c: E2 03 00 01 0C 00 90 00 81 [20:14:40]RAPDU: 90 00 [20:14:40]wFMCommunicate OK [20:14:40]wFMCommunicate request_size=4 [20:14:40]MH_SAM_APDU [20:14:40]CAPDU: 80 0D 03 02 [20:14:40]Write to MH i2c: E2 08 00 02 0C 80 0D 03 02 00 00 00 00 89 [20:14:40]Write i2c OK [20:14:40]MH_I2C_Read... [20:14:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:14:40]Read from MH i2c: E2 [20:14:40]MH_I2C_Read... [20:14:40]Read from MH i2c: E2 0B 00 [20:14:40]MH_I2C_Read... [20:14:40]Read from MH i2c: E2 0B 00 02 0C 00 9D 3E 95 C6 F5 C4 01 EC 90 00 66 [20:14:40]RAPDU: 9D 3E 95 C6 F5 C4 01 EC 90 00 [20:14:40]wFMCommunicate OK [20:14:40]SAM_PROTO_SignData done [20:14:40]FM_MakeSignedData done [20:14:40]CreateOFDProtocolMessage [20:14:40]wFMCommunicate request_size=4 [20:14:40]MH_SAM_APDU [20:14:40]CAPDU: 80 11 00 00 [20:14:40]Write to MH i2c: E2 08 00 03 0C 80 11 00 00 00 00 00 00 89 [20:14:40]Write i2c OK [20:14:40]MH_I2C_Read... [20:14:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:40]Read from MH i2c: E2 [20:14:40]MH_I2C_Read... [20:14:40]Read from MH i2c: E2 17 00 [20:14:40]MH_I2C_Read... [20:14:40]Read from MH i2c: E2 17 00 03 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 DC [20:14:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:14:40]wFMCommunicate OK [20:14:40]CreateOFDProtocolMessage done [20:14:40]OFDSenderStorePacket 76930 [20:14:40]StoreOFDPacket docnum=76930 [20:14:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 A7 E4 06 01 00 97 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 10 4A 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 2F F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2F F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 19 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2F F2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 AF 73 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 82 2C 01 00 35 04 06 00 A2 7A F3 9E B2 79 9D 3E 95 C6 F5 C4 01 EC [20:14:40]CheckFolder [20:14:40]dirname=/storage/ofd_packets [20:14:40]CheckFolder done [20:14:40]ProducePacketName [20:14:40]name=ofd_packets/00076930 [20:14:40]NVStorageSaveData ofd_packets/00076930 [20:14:40]File name is /storage/ofd_packets/00076930 [20:14:40]Write 300 bytes [20:14:40]NVStorageSaveData done [20:14:40]OFDSenderStorePacket done [20:14:40]KKMCreateOFDPacket done [20:14:40]NVStorageSaveData kkm_last_timestamp [20:14:40]File name is /storage/kkm_last_timestamp [20:14:40]Write 4 bytes [20:14:40]NVStorageSaveData done [20:14:40]ExternCall_PrintAddStr [20:14:40]wPrintStart [20:14:40]Write to MH i2c: 01 00 00 04 0C 10 [20:14:40]Write i2c OK [20:14:40]MH_I2C_Read... [20:14:40]Read from MH i2c: 01 [20:14:40]MH_I2C_Read... [20:14:40]Read from MH i2c: 01 07 00 [20:14:40]MH_I2C_Read... [20:14:40]Read from MH i2c: 01 07 00 04 0C 00 00 00 00 00 FF 0F 25 [20:14:40]RasterBufferAndPrint [20:14:40]line Счет N : (1)191476 [20:14:40]line ИНН: 02508201610067 [20:14:40]line Контрольно-Кассовый Чек [20:14:40]line ПРОДАЖА [20:14:40]line ТРК (МРК, ГНК) : 71 [20:14:40]line Товар: 2711190000 [20:14:40]line ГАЗ-К-5 [20:14:40]line 18.960 * 32.70 [20:14:40]line = 619.99 [20:14:40]line НДС 12% НСП 1% [20:14:40]line > о реализуемом товаре [20:14:40]line ИТОГО: 619.99 [20:14:40]line НСП 1% : 5.49 [20:14:40]line НДС 12% : 65.84 [20:14:40]line Наличными: 0.00 [20:14:40]line Безнал.: 619.99 [20:14:40]line Место: АЗС № 106 "Партнер Нефть" [20:14:40]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [20:14:40]line СНО: Общий режим [20:14:40]line Чек 186 21.04.2024 20:14 [20:14:40]line Смена: 372 ФФД: 1.0 [20:14:40]line ЗНМ: 0300000141 [20:14:40]line РНМ: 0000000000091573 [20:14:40]line Версия ККМ: 001 [20:14:40]line Платежная система: О! деньги [20:14:40]line ФМ: 0000000000874652 [20:14:40]line ФД: 76930 [20:14:40]line ФПД: 178648956973689 [20:14:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T201439&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76930&fm=178648956973689&tin=02508201610067®Number=0000000000091573&sum=61999 [20:14:40]written 0, free lines is 4095 [20:14:40]OFD Sender: Processing packet 76930 [packets to send 129, broken 128] [20:14:40]ProducePacketName [20:14:40]name=ofd_packets/00076930 [20:14:40]OFD Sender: To server: pG, [20:14:40]CommunicateWithHost lk.salyk.kg:30040 [20:14:40]ConnectInit lk.salyk.kg [20:14:40]Write to MH i2c: 01 00 00 2D 0C 39 [20:14:40]Write i2c OK [20:14:40]MH_I2C_Read... [20:14:40]Read from MH i2c: 01 [20:14:40]MH_I2C_Read... [20:14:40]Read from MH i2c: 01 07 00 [20:14:40]MH_I2C_Read... [20:14:40]Read from MH i2c: 01 07 00 2D 0C 00 00 00 00 00 FC 0C 48 [20:14:40]RasterBufferAndPrint [20:14:40]line [20:14:40]line [20:14:40]line [20:14:40]line [20:14:40]line [20:14:40]written 0, free lines is 3330 [20:14:40]MH_Cut [20:14:40]Write to MH i2c: D1 01 00 34 0C 01 12 [20:14:40]Write i2c OK [20:14:40]MH_I2C_Read... [20:14:40]Read from MH i2c: D1 [20:14:40]MH_I2C_Read... [20:14:40]Read from MH i2c: D1 01 00 [20:14:40]MH_I2C_Read... [20:14:40]Read from MH i2c: D1 01 00 34 0C 00 11 [20:14:40]Write to MH i2c: 01 00 00 35 0C 41 [20:14:40]Write i2c OK [20:14:40]MH_I2C_Read... [20:14:40]Connected sock=10 [20:14:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 A7 E4 06 01 00 97 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 10 4A 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 2F F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2F F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 19 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2F F2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 AF 73 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 82 2C 01 00 35 04 06 00 A2 7A F3 9E B2 79 9D 3E 95 C6 F5 C4 01 EC [20:14:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 D7 2B 47 00 C4 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 82 2C 01 00 F4 03 04 00 34 1B 25 66 B6 04 01 00 00 0C DB 17 87 D9 1B 30 03 [20:14:41]CommunicateWithHost err = 0 [20:14:41]CheckOFDResponse [20:14:41]1017 (14) - 77093643461234 [20:14:41]1041 (16) - 0000000000874652 [20:14:41]1040 (4) - 76930 [20:14:41]1012 (4) - 21.04.2024 13:57 [20:14:41]1206 (1) - 0 [20:14:41]OFD Sender: Remove packet 76930 [20:14:41]ProducePacketName [20:14:41]name=ofd_packets/00076930 [20:14:41]NVStorageDeleteData [20:14:41]OFD Sender: No OFD packet to send [20:14:41]*** Cut start [20:14:41]*** Partial cut [20:14:41]*** CUTSNS_PIN = 1 [20:14:41]*** CUTSNS_PIN = 0 [20:14:41]*** Brake cut motor [20:14:42]Read from MH i2c: 01 [20:14:42]MH_I2C_Read... [20:14:42]*** Stop cut motor [20:14:42]*** Cut end [20:14:42]Read from MH i2c: 01 07 00 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: 01 07 00 35 0C 00 00 00 00 00 FF 0F 56 [20:14:42]process_action close_receipt done [20:14:42]requested_data is exist [20:14:42]produce_requested_data [20:14:42]requested_item fm.sn is exist - process it [20:14:42]wFMCommunicate request_size=4 [20:14:42]MH_SAM_APDU [20:14:42]CAPDU: 80 11 00 00 [20:14:42]Write to MH i2c: E2 08 00 36 0C 80 11 00 00 00 00 00 00 BC [20:14:42]Write i2c OK [20:14:42]MH_I2C_Read... [20:14:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:42]Read from MH i2c: E2 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: E2 17 00 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: E2 17 00 36 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 0F [20:14:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:14:42]wFMCommunicate OK [20:14:42]requested_item fd.num is exist - process it [20:14:42]SAM_PROTO_GetFieldsCounters [20:14:42]wFMCommunicate request_size=4 [20:14:42]MH_SAM_APDU [20:14:42]CAPDU: 80 13 00 00 [20:14:42]Write to MH i2c: E2 08 00 37 0C 80 13 00 00 00 00 00 00 BF [20:14:42]Write i2c OK [20:14:42]MH_I2C_Read... [20:14:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:14:42]Read from MH i2c: E2 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: E2 62 00 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: E2 62 00 37 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 82 2C 01 00 0E 04 04 00 74 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 32 [20:14: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 82 2C 01 00 0E 04 04 00 74 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 [20:14:42]wFMCommunicate OK [20:14:42]SAM_PROTO_GetFieldsCounters done [20:14:42]requested_item shift.num is exist - process it [20:14:42]requested_item shift.opened is exist - process it [20:14:42]req_shift_opened [20:14:42]FM_GetShiftState [20:14:42]SAM_PROTO_GetShiftState [20:14:42]wFMCommunicate request_size=4 [20:14:42]MH_SAM_APDU [20:14:42]CAPDU: 80 13 01 00 [20:14:42]Write to MH i2c: E2 08 00 38 0C 80 13 01 00 00 00 00 00 C1 [20:14:42]Write i2c OK [20:14:42]MH_I2C_Read... [20:14:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:42]Read from MH i2c: E2 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: E2 0E 00 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: E2 0E 00 38 0C 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 08 [20:14:42]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [20:14:42]wFMCommunicate OK [20:14:42]SAM_PROTO_GetShiftState done [20:14:42]FM_GetShiftState done [20:14:42]req_shift_opened done [20:14:42]requested_item shift.open_date is exist - process it [20:14:42]req_shift_open_date [20:14:42]req_shift_open_date done [20:14:42]produce_requested_data done [20:14:42]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76930,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [20:14:42]process_action_free close_receipt [20:14:42]json_value_free [20:14:42]json_value_free done [20:14:42]process_json_proto returns [20:14:42]Send response to host [20:14:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76930,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [20:14:42]free response buf [20:14:42]execute_script done [20:14:42]execute_script returns [20:14:42]free content buf [20:14:42]Sock 8.Close socket [20:14:42]Sock 8.Thread stoped [20:14:46]OFD Sender: No OFD packet to send [20:14:51]OFD Sender: No OFD packet to send [20:14:56]OFD Sender: No OFD packet to send [20:15:01]OFD Sender: No OFD packet to send [20:15:06]OFD Sender: No OFD packet to send [20:15:11]OFD Sender: No OFD packet to send [20:15:16]OFD Sender: No OFD packet to send [20:15:21]OFD Sender: No OFD packet to send [20:15:26]OFD Sender: No OFD packet to send [20:15:31]OFD Sender: No OFD packet to send [20:15:36]OFD Sender: No OFD packet to send [20:15:41]OFD Sender: No OFD packet to send [20:15:46]OFD Sender: No OFD packet to send [20:15:51]OFD Sender: No OFD packet to send [20:15:56]OFD Sender: No OFD packet to send [20:16:01]OFD Sender: No OFD packet to send [20:16:06]OFD Sender: No OFD packet to send [20:16:11]OFD Sender: No OFD packet to send [20:16:16]OFD Sender: No OFD packet to send [20:16:21]OFD Sender: No OFD packet to send [20:16:26]OFD Sender: No OFD packet to send [20:16:31]OFD Sender: No OFD packet to send [20:16:36]OFD Sender: No OFD packet to send [20:16:41]OFD Sender: No OFD packet to send [20:16:46]OFD Sender: No OFD packet to send [20:16:51]OFD Sender: No OFD packet to send [20:16:56]OFD Sender: No OFD packet to send [20:17:01]OFD Sender: No OFD packet to send [20:17:06]OFD Sender: No OFD packet to send [20:17:11]OFD Sender: No OFD packet to send [20:17:16]OFD Sender: No OFD packet to send [20:17:21]OFD Sender: No OFD packet to send [20:17:26]OFD Sender: No OFD packet to send [20:17:31]OFD Sender: No OFD packet to send [20:17:36]OFD Sender: No OFD packet to send [20:17:41]OFD Sender: No OFD packet to send [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:18:57]accept exits with 9 [20:18:57]New connection [20:18:57]New thread 3066944868 created [20:18:57]Thread 3066801508 joined [20:18:57]Waiting for new connection... [20:18:57] Sock 9.Parse request [20:18:57]Sock 9.Check first char [20:18:57]Sock 9.First char is OK [20:18:57]request: POST /json_proto HTTP/1.0 [20:18:57]Method: POST [20:18:57]URL: /json_proto [20:18:57]Method is POST - this is cgi request [20:18:57]url: /json_proto [20:18:57]query_string will be loaded in cgi processing [20:18:57]execute_cgi json_proto POST (null) [20:18:57]execute_cgi path=json_proto method=POST [20:18:57]POST find Content-Length [20:18:57]Host: 172.17.62.5:8080 [20:18:57]Content-Length: 675 [20:18:57]Content-Type: application/json [20:18:57] [20:18:57]POST finish read [20:18:57]Found Content-Length = 675 [20:18:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191478", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 16.820, "sum" : 1100.03, "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" ] } } [20:18:57]execute_script... [20:18: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)191478", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 16.820, "sum" : 1100.03, "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" ] } } [20:18:57]POST & json_proto [20:18:57]process_json_proto [20:18:57]json parsed OK: [20:18:57]protocol is kg_v1.0 [20:18:57]action value=close_receipt [20:18:57]process_action close_receipt [20:18:57]cmd_close_receipt [20:18:57]MH_GetDate [20:18:57]Write to MH i2c: F0 00 00 39 0C 34 [20:18:57]Write i2c OK [20:18:57]MH_I2C_Read... [20:18:57]Read from MH i2c: F0 [20:18:57]MH_I2C_Read... [20:18:57]Read from MH i2c: F0 09 00 [20:18:57]MH_I2C_Read... [20:18:57]Read from MH i2c: F0 09 00 39 0C 00 B2 74 25 66 F4 E9 65 64 94 [20:18:57]GetLastDocTimeStamp 1713730479 [20:18:57]current date 1713730738 [20:18:57]FM_GetShiftState [20:18:57]SAM_PROTO_GetShiftState [20:18:57]wFMCommunicate request_size=4 [20:18:57]MH_SAM_APDU [20:18:57]CAPDU: 80 13 01 00 [20:18:57]Write to MH i2c: E2 08 00 3A 0C 80 13 01 00 00 00 00 00 C3 [20:18:57]Write i2c OK [20:18:57]MH_I2C_Read... [20:18:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:57]Read from MH i2c: E2 [20:18:57]MH_I2C_Read... [20:18:57]Read from MH i2c: E2 0E 00 [20:18:57]MH_I2C_Read... [20:18:57]Read from MH i2c: E2 0E 00 3A 0C 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 0A [20:18:57]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [20:18:57]wFMCommunicate OK [20:18:57]SAM_PROTO_GetShiftState done [20:18:57]FM_GetShiftState done [20:18:57]opened in 1713658965 [20:18:57]opened+sec_in_day 1713745365 [20:18:57]quantity*price = 110002 [20:18:57]sum+1 = 110004 [20:18:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.73 НДС 12% : 116.82 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 187 21.04.2024 20:18 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76931 ФПД: 33980916305891 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T201858&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76931&fm=33980916305891&tin=02508201610067®Number=0000000000091573&sum=110000 [20:18:58]StoreToDocumentArchive [20:18:58]shift 372 fd 76931 [20:18:58]save to /storage/0372/doc_00076931 [20:18:58]save last doc name /storage/0372/doc_00076931 to /storage/kkm_last_doc_name [20:18:58]save OK [20:18:58]Clear old archive folders... [20:18:58]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:18:58]tlvbuf is 00C4DA40 [20:18:58]SAM_PROTO_ClearQueue [20:18:58]wFMCommunicate request_size=4 [20:18:58]MH_SAM_APDU [20:18:58]CAPDU: 80 09 00 00 [20:18:58]Write to MH i2c: E2 08 00 47 0C 80 09 00 00 00 00 00 00 C5 [20:18:58]Write i2c OK [20:18:58]MH_I2C_Read... [20:18:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:18:58]Read from MH i2c: E2 [20:18:58]MH_I2C_Read... [20:18:58]Read from MH i2c: E2 03 00 [20:18:58]MH_I2C_Read... [20:18:58]Read from MH i2c: E2 03 00 47 0C 00 90 00 C7 [20:18:58]RAPDU: 90 00 [20:18:58]wFMCommunicate OK [20:18:58]SAM_PROTO_ClearQueue done [20:18:58]KKMCreateOFDPacket [20:18:58]OFDProtocolAddRootSTLVToBuf [20:18:58]FM_MakeSignedData [20:18:58]FM_MakeSignedData [20:18:58]SAM_PROTO_SignData [20:18:58]wFMCommunicate request_size=4 [20:18:58]MH_SAM_APDU [20:18:58]CAPDU: 80 0D 01 02 [20:18:58]Write to MH i2c: E2 08 00 48 0C 80 0D 01 02 00 00 00 00 CD [20:18:58]Write i2c OK [20:18:58]MH_I2C_Read... [20:18:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:18:58]Read from MH i2c: E2 [20:18:58]MH_I2C_Read... [20:18:58]Read from MH i2c: E2 03 00 [20:18:58]MH_I2C_Read... [20:18:58]Read from MH i2c: E2 03 00 48 0C 00 90 00 C8 [20:18:58]RAPDU: 90 00 [20:18:58]wFMCommunicate OK [20:18:58]wFMCommunicate request_size=255 [20:18:58]MH_SAM_APDU [20:18: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B4 41 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 B3 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 BB 00 00 00 F4 03 04 00 B2 74 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 83 2C 01 00 35 04 06 00 [20:18:58]Write to MH i2c: E2 02 01 49 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B4 41 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 B3 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 BB 00 00 00 F4 03 04 00 B2 74 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 83 2C 01 00 35 04 06 00 00 00 5B [20:18:58]Write i2c OK [20:18:58]MH_I2C_Read... [20:18:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:58]Read from MH i2c: E2 [20:18:58]MH_I2C_Read... [20:18:58]Read from MH i2c: E2 03 00 [20:18:58]MH_I2C_Read... [20:18:58]Read from MH i2c: E2 03 00 49 0C 00 90 00 C9 [20:18:58]RAPDU: 90 00 [20:18:58]wFMCommunicate OK [20:18:58]wFMCommunicate request_size=11 [20:18:58]MH_SAM_APDU [20:18:58]CAPDU: 80 0D 02 02 06 1E E7 CC 72 0F E3 [20:18:58]Write to MH i2c: E2 0E 00 4A 0C 80 0D 02 02 06 00 1E E7 CC 72 0F E3 00 00 11 [20:18:58]Write i2c OK [20:18:58]MH_I2C_Read... [20:18:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:58]Read from MH i2c: E2 [20:18:58]MH_I2C_Read... [20:18:58]Read from MH i2c: E2 03 00 [20:18:58]MH_I2C_Read... [20:18:58]Read from MH i2c: E2 03 00 4A 0C 00 90 00 CA [20:18:58]RAPDU: 90 00 [20:18:58]wFMCommunicate OK [20:18:58]wFMCommunicate request_size=4 [20:18:58]MH_SAM_APDU [20:18:58]CAPDU: 80 0D 03 02 [20:18:58]Write to MH i2c: E2 08 00 4B 0C 80 0D 03 02 00 00 00 00 D2 [20:18:58]Write i2c OK [20:18:58]MH_I2C_Read... [20:18:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:18:58]Read from MH i2c: E2 [20:18:58]MH_I2C_Read... [20:18:58]Read from MH i2c: E2 0B 00 [20:18:58]MH_I2C_Read... [20:18:58]Read from MH i2c: E2 0B 00 4B 0C 00 B8 79 96 4C C5 2B 67 7D 90 00 BA [20:18:58]RAPDU: B8 79 96 4C C5 2B 67 7D 90 00 [20:18:58]wFMCommunicate OK [20:18:58]SAM_PROTO_SignData done [20:18:58]FM_MakeSignedData done [20:18:58]CreateOFDProtocolMessage [20:18:58]wFMCommunicate request_size=4 [20:18:58]MH_SAM_APDU [20:18:58]CAPDU: 80 11 00 00 [20:18:58]Write to MH i2c: E2 08 00 4C 0C 80 11 00 00 00 00 00 00 D2 [20:18:58]Write i2c OK [20:18:58]MH_I2C_Read... [20:18:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:58]Read from MH i2c: E2 [20:18:58]MH_I2C_Read... [20:18:58]Read from MH i2c: E2 17 00 [20:18:58]MH_I2C_Read... [20:18:58]Read from MH i2c: E2 17 00 4C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 25 [20:18:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:18:58]wFMCommunicate OK [20:18:58]CreateOFDProtocolMessage done [20:18:58]OFDSenderStorePacket 76931 [20:18:58]StoreOFDPacket docnum=76931 [20:18:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 88 08 08 01 EF 6F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B4 41 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 B3 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 BB 00 00 00 F4 03 04 00 B2 74 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 83 2C 01 00 35 04 06 00 1E E7 CC 72 0F E3 B8 79 96 4C C5 2B 67 7D [20:18:58]CheckFolder [20:18:58]dirname=/storage/ofd_packets [20:18:58]CheckFolder done [20:18:58]ProducePacketName [20:18:58]name=ofd_packets/00076931 [20:18:58]NVStorageSaveData ofd_packets/00076931 [20:18:58]File name is /storage/ofd_packets/00076931 [20:18:58]Write 302 bytes [20:18:58]NVStorageSaveData done [20:18:58]OFDSenderStorePacket done [20:18:58]KKMCreateOFDPacket done [20:18:58]NVStorageSaveData kkm_last_timestamp [20:18:58]File name is /storage/kkm_last_timestamp [20:18:58]Write 4 bytes [20:18:58]NVStorageSaveData done [20:18:58]ExternCall_PrintAddStr [20:18:58]wPrintStart [20:18:58]Write to MH i2c: 01 00 00 4D 0C 59 [20:18:58]Write i2c OK [20:18:58]MH_I2C_Read... [20:18:58]Read from MH i2c: 01 [20:18:58]MH_I2C_Read... [20:18:58]Read from MH i2c: 01 07 00 [20:18:58]MH_I2C_Read... [20:18:58]Read from MH i2c: 01 07 00 4D 0C 00 00 00 00 00 FF 0F 6E [20:18:58]RasterBufferAndPrint [20:18:58]line Счет N : (1)191478 [20:18:58]line ИНН: 02508201610067 [20:18:58]line Контрольно-Кассовый Чек [20:18:58]line ПРОДАЖА [20:18:58]line ТРК (МРК, ГНК) : 31 [20:18:58]line Товар: 2710124130 [20:18:58]line SUPER 92-К-5 [20:18:58]line 16.820 * 65.40 [20:18:58]line = 1100.03 [20:18:58]line НДС 12% НСП 1% [20:18:58]line > о реализуемом товаре [20:18:58]line ОКРУГЛЕНИЕ: -0.03 [20:18:58]line ИТОГО: 1100.00 [20:18:58]line Внесено: 1100.00 [20:18:58]line СДАЧА: 0.00 [20:18:58]line НСП 1% : 9.73 [20:18:58]line НДС 12% : 116.82 [20:18:58]line Наличными: 1100.00 [20:18:58]line Безнал.: 0.00 [20:18:58]line Место: АЗС № 106 "Партнер Нефть" [20:18:58]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [20:18:58]line СНО: Общий режим [20:18:58]line Чек 187 21.04.2024 20:18 [20:18:58]line Смена: 372 ФФД: 1.0 [20:18:58]line ЗНМ: 0300000141 [20:18:58]line РНМ: 0000000000091573 [20:18:58]line Версия ККМ: 001 [20:18:58]line ФМ: 0000000000874652 [20:18:58]line ФД: 76931 [20:18:58]line ФПД: 33980916305891 [20:18:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T201858&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76931&fm=33980916305891&tin=02508201610067®Number=0000000000091573&sum=110000 [20:18:59]written 0, free lines is 4095 [20:18:59]OFD Sender: Processing packet 76931 [packets to send 129, broken 128] [20:18:59]ProducePacketName [20:18:59]name=ofd_packets/00076931 [20:18:59]OFD Sender: To server: pG, [20:18:59]CommunicateWithHost lk.salyk.kg:30040 [20:18:59]ConnectInit lk.salyk.kg [20:18:59]Connected sock=11 [20:18:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 88 08 08 01 EF 6F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B4 41 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 B3 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 BB 00 00 00 F4 03 04 00 B2 74 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 83 2C 01 00 35 04 06 00 1E E7 CC 72 0F E3 B8 79 96 4C C5 2B 67 7D [20:18:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 D3 92 47 00 46 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 83 2C 01 00 F4 03 04 00 36 1C 25 66 B6 04 01 00 00 B2 99 E4 9D D2 F6 E7 6C [20:18:59]CommunicateWithHost err = 0 [20:18:59]CheckOFDResponse [20:18:59]1017 (14) - 77093643461234 [20:18:59]1041 (16) - 0000000000874652 [20:18:59]1040 (4) - 76931 [20:18:59]1012 (4) - 21.04.2024 14:01 [20:18:59]1206 (1) - 0 [20:18:59]OFD Sender: Remove packet 76931 [20:18:59]ProducePacketName [20:18:59]name=ofd_packets/00076931 [20:18:59]NVStorageDeleteData [20:18:59]Write to MH i2c: 01 00 00 77 0C 83 [20:18:59]Write i2c OK [20:18:59]MH_I2C_Read... [20:18:59]Read from MH i2c: 01 [20:18:59]MH_I2C_Read... [20:18:59]Read from MH i2c: 01 07 00 [20:18:59]MH_I2C_Read... [20:18:59]Read from MH i2c: 01 07 00 77 0C 00 00 00 00 00 EE 0C 84 [20:18:59]RasterBufferAndPrint [20:18:59]line [20:18:59]line [20:18:59]line [20:18:59]line [20:18:59]line [20:18:59]written 0, free lines is 3314 [20:18:59]MH_Cut [20:18:59]Write to MH i2c: D1 01 00 7E 0C 01 5C [20:18:59]Write i2c OK [20:18:59]MH_I2C_Read... [20:18:59]Read from MH i2c: D1 [20:18:59]MH_I2C_Read... [20:18:59]Read from MH i2c: D1 01 00 [20:18:59]MH_I2C_Read... [20:18:59]Read from MH i2c: D1 01 00 7E 0C 00 5B [20:18:59]Write to MH i2c: 01 00 00 7F 0C 8B [20:18:59]Write i2c OK [20:18:59]MH_I2C_Read... [20:18:59]OFD Sender: No OFD packet to send [20:19:00]*** Cut start [20:19:00]*** Partial cut [20:19:00]*** CUTSNS_PIN = 1 [20:19:00]*** CUTSNS_PIN = 0 [20:19:00]*** Brake cut motor [20:19:00]Read from MH i2c: 01 [20:19:00]MH_I2C_Read... [20:19:00]*** Stop cut motor [20:19:00]*** Cut end [20:19:00]Read from MH i2c: 01 07 00 [20:19:00]MH_I2C_Read... [20:19:00]Read from MH i2c: 01 07 00 7F 0C 00 00 00 00 00 FF 0F A0 [20:19:00]process_action close_receipt done [20:19:00]requested_data is exist [20:19:00]produce_requested_data [20:19:00]requested_item fm.sn is exist - process it [20:19:00]wFMCommunicate request_size=4 [20:19:00]MH_SAM_APDU [20:19:00]CAPDU: 80 11 00 00 [20:19:00]Write to MH i2c: E2 08 00 80 0C 80 11 00 00 00 00 00 00 06 [20:19:00]Write i2c OK [20:19:00]MH_I2C_Read... [20:19:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:00]Read from MH i2c: E2 [20:19:00]MH_I2C_Read... [20:19:00]Read from MH i2c: E2 17 00 [20:19:00]MH_I2C_Read... [20:19:00]Read from MH i2c: E2 17 00 80 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 59 [20:19:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:19:00]wFMCommunicate OK [20:19:00]requested_item fd.num is exist - process it [20:19:00]SAM_PROTO_GetFieldsCounters [20:19:00]wFMCommunicate request_size=4 [20:19:00]MH_SAM_APDU [20:19:00]CAPDU: 80 13 00 00 [20:19:00]Write to MH i2c: E2 08 00 81 0C 80 13 00 00 00 00 00 00 09 [20:19:00]Write i2c OK [20:19:00]MH_I2C_Read... [20:19:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:19:01]Read from MH i2c: E2 [20:19:01]MH_I2C_Read... [20:19:01]Read from MH i2c: E2 62 00 [20:19:01]MH_I2C_Read... [20:19:01]Read from MH i2c: E2 62 00 81 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 83 2C 01 00 0E 04 04 00 74 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 80 [20:19:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 83 2C 01 00 0E 04 04 00 74 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 [20:19:01]wFMCommunicate OK [20:19:01]SAM_PROTO_GetFieldsCounters done [20:19:01]requested_item shift.num is exist - process it [20:19:01]requested_item shift.opened is exist - process it [20:19:01]req_shift_opened [20:19:01]FM_GetShiftState [20:19:01]SAM_PROTO_GetShiftState [20:19:01]wFMCommunicate request_size=4 [20:19:01]MH_SAM_APDU [20:19:01]CAPDU: 80 13 01 00 [20:19:01]Write to MH i2c: E2 08 00 82 0C 80 13 01 00 00 00 00 00 0B [20:19:01]Write i2c OK [20:19:01]MH_I2C_Read... [20:19:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:01]Read from MH i2c: E2 [20:19:01]MH_I2C_Read... [20:19:01]Read from MH i2c: E2 0E 00 [20:19:01]MH_I2C_Read... [20:19:01]Read from MH i2c: E2 0E 00 82 0C 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 52 [20:19:01]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [20:19:01]wFMCommunicate OK [20:19:01]SAM_PROTO_GetShiftState done [20:19:01]FM_GetShiftState done [20:19:01]req_shift_opened done [20:19:01]requested_item shift.open_date is exist - process it [20:19:01]req_shift_open_date [20:19:01]req_shift_open_date done [20:19:01]produce_requested_data done [20:19:01]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76931,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [20:19:01]process_action_free close_receipt [20:19:01]json_value_free [20:19:01]json_value_free done [20:19:01]process_json_proto returns [20:19:01]Send response to host [20:19:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76931,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [20:19:01]free response buf [20:19:01]execute_script done [20:19:01]execute_script returns [20:19:01]free content buf [20:19:01]Sock 9.Close socket [20:19:01]Sock 9.Thread stoped [20:19:04]OFD Sender: No OFD packet to send [20:19:09]OFD Sender: No OFD packet to send [20:19:14]OFD Sender: No OFD packet to send [20:19:19]OFD Sender: No OFD packet to send [20:19:25]OFD Sender: No OFD packet to send [20:19:30]OFD Sender: No OFD packet to send [20:19:35]OFD Sender: No OFD packet to send [20:19:40]OFD Sender: No OFD packet to send [20:19:45]OFD Sender: No OFD packet to send [20:19:50]OFD Sender: No OFD packet to send [20:19:55]OFD Sender: No OFD packet to send [20:20:00]OFD Sender: No OFD packet to send [20:20:05]OFD Sender: No OFD packet to send [20:20:10]OFD Sender: No OFD packet to send [20:20:15]OFD Sender: No OFD packet to send [20:20:20]OFD Sender: No OFD packet to send [20:20:25]OFD Sender: No OFD packet to send [20:20:30]OFD Sender: No OFD packet to send [20:20:35]OFD Sender: No OFD packet to send [20:20:40]OFD Sender: No OFD packet to send [20:20:45]OFD Sender: No OFD packet to send [20:20:50]OFD Sender: No OFD packet to send [20:20:55]OFD Sender: No OFD packet to send [20:21:00]OFD Sender: No OFD packet to send [20:21:05]OFD Sender: No OFD packet to send [20:21:10]OFD Sender: No OFD packet to send [20:21:15]OFD Sender: No OFD packet to send [20:21:20]OFD Sender: No OFD packet to send [20:21:25]OFD Sender: No OFD packet to send [20:21:30]OFD Sender: No OFD packet to send [20:21:35]OFD Sender: No OFD packet to send [20:21:40]OFD Sender: No OFD packet to send [20:21:45]OFD Sender: No OFD packet to send [20:21:50]OFD Sender: No OFD packet to send [20:21:55]OFD Sender: No OFD packet to send [20:22:00]OFD Sender: No OFD packet to send [20:22:05]OFD Sender: No OFD packet to send [20:22:10]OFD Sender: No OFD packet to send [20:22:15]OFD Sender: No OFD packet to send [20:22:20]OFD Sender: No OFD packet to send [20:22:25]OFD Sender: No OFD packet to send [20:22:30]OFD Sender: No OFD packet to send [20:22:35]OFD Sender: No OFD packet to send [20:22:40]OFD Sender: No OFD packet to send [20:22:45]OFD Sender: No OFD packet to send [20:22:50]OFD Sender: No OFD packet to send [20:22:55]OFD Sender: No OFD packet to send [20:23:00]OFD Sender: No OFD packet to send [20:23:05]OFD Sender: No OFD packet to send [20:23:10]OFD Sender: No OFD packet to send [20:23:15]OFD Sender: No OFD packet to send [20:23:20]OFD Sender: No OFD packet to send [20:23:25]OFD Sender: No OFD packet to send [20:23:30]OFD Sender: No OFD packet to send [20:23:35]OFD Sender: No OFD packet to send [20:23:40]OFD Sender: No OFD packet to send [20:23:45]OFD Sender: No OFD packet to send [20:23:50]OFD Sender: No OFD packet to send [20:23:55]OFD Sender: No OFD packet to send [20:24:00]OFD Sender: No OFD packet to send [20:24:05]OFD Sender: No OFD packet to send [20:24:10]OFD Sender: No OFD packet to send [20:24:15]OFD Sender: No OFD packet to send [20:24:20]OFD Sender: No OFD packet to send [20:24:25]OFD Sender: No OFD packet to send [20:24:30]OFD Sender: No OFD packet to send [20:24:35]OFD Sender: No OFD packet to send [20:24:40]OFD Sender: No OFD packet to send [20:24:45]OFD Sender: No OFD packet to send [20:24:50]OFD Sender: No OFD packet to send [20:24:55]OFD Sender: No OFD packet to send [20:25:00]OFD Sender: No OFD packet to send [20:25:05]OFD Sender: No OFD packet to send [20:25:10]OFD Sender: No OFD packet to send [20:25:15]OFD Sender: No OFD packet to send [20:25:20]OFD Sender: No OFD packet to send [20:25:25]OFD Sender: No OFD packet to send [20:25:30]OFD Sender: No OFD packet to send [20:25:35]OFD Sender: No OFD packet to send [20:25:40]OFD Sender: No OFD packet to send [20:25:45]OFD Sender: No OFD packet to send [20:25:50]OFD Sender: No OFD packet to send [20:25:55]OFD Sender: No OFD packet to send [20:26:00]OFD Sender: No OFD packet to send [20:26:05]OFD Sender: No OFD packet to send [20:26:10]OFD Sender: No OFD packet to send [20:26:15]OFD Sender: No OFD packet to send [20:26:20]OFD Sender: No OFD packet to send [20:26:25]OFD Sender: No OFD packet to send [20:26:30]OFD Sender: No OFD packet to send [20:26:35]OFD Sender: No OFD packet to send [20:26:40]OFD Sender: No OFD packet to send [20:26:45]OFD Sender: No OFD packet to send [20:26:50]OFD Sender: No OFD packet to send [20:26:55]OFD Sender: No OFD packet to send [20:27:00]OFD Sender: No OFD packet to send [20:27:05]OFD Sender: No OFD packet to send [20:27:10]OFD Sender: No OFD packet to send [20:27:15]OFD Sender: No OFD packet to send [20:27:20]OFD Sender: No OFD packet to send [20:27:25]OFD Sender: No OFD packet to send [20:27:30]OFD Sender: No OFD packet to send [20:27:35]OFD Sender: No OFD packet to send [20:27:40]OFD Sender: No OFD packet to send [20:27:45]OFD Sender: No OFD packet to send [20:27:50]OFD Sender: No OFD packet to send [20:27:55]OFD Sender: No OFD packet to send [20:28:00]OFD Sender: No OFD packet to send [20:28:05]OFD Sender: No OFD packet to send [20:28:09]accept exits with 8 [20:28:09]New connection [20:28:09]New thread 3066801508 created [20:28:09]Thread 3066944868 joined [20:28:09]Waiting for new connection... [20:28:09] Sock 8.Parse request [20:28:09]Sock 8.Check first char [20:28:09]Sock 8.First char is OK [20:28:09]request: POST /json_proto HTTP/1.0 [20:28:09]Method: POST [20:28:09]URL: /json_proto [20:28:09]Method is POST - this is cgi request [20:28:09]url: /json_proto [20:28:09]query_string will be loaded in cgi processing [20:28:09]execute_cgi json_proto POST (null) [20:28:09]execute_cgi path=json_proto method=POST [20:28:09]POST find Content-Length [20:28:09]Host: 172.17.62.5:8080 [20:28:09]Content-Length: 675 [20:28:09]Content-Type: application/json [20:28:09] [20:28:09]POST finish read [20:28:09]Found Content-Length = 675 [20:28:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191479", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 22.940, "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" ] } } [20:28:09]execute_script... [20:28: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)191479", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 22.940, "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" ] } } [20:28:09]POST & json_proto [20:28:09]process_json_proto [20:28:09]json parsed OK: [20:28:09]protocol is kg_v1.0 [20:28:09]action value=close_receipt [20:28:09]process_action close_receipt [20:28:09]cmd_close_receipt [20:28:09]MH_GetDate [20:28:09]Write to MH i2c: F0 00 00 83 0C 7E [20:28:09]Write i2c OK [20:28:09]MH_I2C_Read... [20:28:09]Read from MH i2c: F0 [20:28:09]MH_I2C_Read... [20:28:09]Read from MH i2c: F0 09 00 [20:28:09]MH_I2C_Read... [20:28:09]Read from MH i2c: F0 09 00 83 0C 00 DA 76 25 66 F4 E9 65 64 08 [20:28:09]GetLastDocTimeStamp 1713730738 [20:28:09]current date 1713731290 [20:28:09]FM_GetShiftState [20:28:09]SAM_PROTO_GetShiftState [20:28:09]wFMCommunicate request_size=4 [20:28:09]MH_SAM_APDU [20:28:09]CAPDU: 80 13 01 00 [20:28:09]Write to MH i2c: E2 08 00 84 0C 80 13 01 00 00 00 00 00 0D [20:28:09]Write i2c OK [20:28:09]MH_I2C_Read... [20:28:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:09]Read from MH i2c: E2 [20:28:09]MH_I2C_Read... [20:28:09]Read from MH i2c: E2 0E 00 [20:28:09]MH_I2C_Read... [20:28:09]Read from MH i2c: E2 0E 00 84 0C 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 54 [20:28:09]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [20:28:09]wFMCommunicate OK [20:28:09]SAM_PROTO_GetShiftState done [20:28:09]FM_GetShiftState done [20:28:09]opened in 1713658965 [20:28:09]opened+sec_in_day 1713745365 [20:28:09]quantity*price = 150027 [20:28:09]sum+1 = 150029 [20:28:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 188 21.04.2024 20:28 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76932 ФПД: 116921668702422 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T202810&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76932&fm=116921668702422&tin=02508201610067®Number=0000000000091573&sum=150000 [20:28:10]StoreToDocumentArchive [20:28:10]shift 372 fd 76932 [20:28:10]save to /storage/0372/doc_00076932 [20:28:10]save last doc name /storage/0372/doc_00076932 to /storage/kkm_last_doc_name [20:28:10]save OK [20:28:10]Clear old archive folders... [20:28:10]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:28:10]tlvbuf is 00C92AF0 [20:28:10]SAM_PROTO_ClearQueue [20:28:10]wFMCommunicate request_size=4 [20:28:10]MH_SAM_APDU [20:28:10]CAPDU: 80 09 00 00 [20:28:10]Write to MH i2c: E2 08 00 91 0C 80 09 00 00 00 00 00 00 0F [20:28:10]Write i2c OK [20:28:10]MH_I2C_Read... [20:28:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:28:10]Read from MH i2c: E2 [20:28:10]MH_I2C_Read... [20:28:10]Read from MH i2c: E2 03 00 [20:28:10]MH_I2C_Read... [20:28:10]Read from MH i2c: E2 03 00 91 0C 00 90 00 11 [20:28:10]RAPDU: 90 00 [20:28:10]wFMCommunicate OK [20:28:10]SAM_PROTO_ClearQueue done [20:28:10]KKMCreateOFDPacket [20:28:10]OFDProtocolAddRootSTLVToBuf [20:28:10]FM_MakeSignedData [20:28:10]FM_MakeSignedData [20:28:10]SAM_PROTO_SignData [20:28:10]wFMCommunicate request_size=4 [20:28:10]MH_SAM_APDU [20:28:10]CAPDU: 80 0D 01 02 [20:28:10]Write to MH i2c: E2 08 00 92 0C 80 0D 01 02 00 00 00 00 17 [20:28:10]Write i2c OK [20:28:10]MH_I2C_Read... [20:28:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:28:10]Read from MH i2c: E2 [20:28:10]MH_I2C_Read... [20:28:10]Read from MH i2c: E2 03 00 [20:28:10]MH_I2C_Read... [20:28:10]Read from MH i2c: E2 03 00 92 0C 00 90 00 12 [20:28:10]RAPDU: 90 00 [20:28:10]wFMCommunicate OK [20:28:10]wFMCommunicate request_size=255 [20:28:10]MH_SAM_APDU [20:28:10]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 59 00 00 00 00 00 37 04 06 00 8C 19 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 BC 00 00 00 F4 03 04 00 DA 76 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 84 2C 01 00 35 04 06 00 [20:28:10]Write to MH i2c: E2 02 01 93 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 59 00 00 00 00 00 37 04 06 00 8C 19 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 BC 00 00 00 F4 03 04 00 DA 76 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 84 2C 01 00 35 04 06 00 00 00 92 [20:28:10]Write i2c OK [20:28:10]MH_I2C_Read... [20:28:10]OFD Sender: No OFD packet to send [20:28:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:10]Read from MH i2c: E2 [20:28:10]MH_I2C_Read... [20:28:10]Read from MH i2c: E2 03 00 [20:28:10]MH_I2C_Read... [20:28:10]Read from MH i2c: E2 03 00 93 0C 00 90 00 13 [20:28:10]RAPDU: 90 00 [20:28:10]wFMCommunicate OK [20:28:10]wFMCommunicate request_size=11 [20:28:10]MH_SAM_APDU [20:28:10]CAPDU: 80 0D 02 02 06 6A 56 F2 87 90 D6 [20:28:10]Write to MH i2c: E2 0E 00 94 0C 80 0D 02 02 06 00 6A 56 F2 87 90 D6 00 00 C5 [20:28:10]Write i2c OK [20:28:10]MH_I2C_Read... [20:28:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:10]Read from MH i2c: E2 [20:28:10]MH_I2C_Read... [20:28:10]Read from MH i2c: E2 03 00 [20:28:10]MH_I2C_Read... [20:28:10]Read from MH i2c: E2 03 00 94 0C 00 90 00 14 [20:28:10]RAPDU: 90 00 [20:28:10]wFMCommunicate OK [20:28:10]wFMCommunicate request_size=4 [20:28:10]MH_SAM_APDU [20:28:10]CAPDU: 80 0D 03 02 [20:28:10]Write to MH i2c: E2 08 00 95 0C 80 0D 03 02 00 00 00 00 1C [20:28:10]Write i2c OK [20:28:10]MH_I2C_Read... [20:28:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:28:10]Read from MH i2c: E2 [20:28:10]MH_I2C_Read... [20:28:10]Read from MH i2c: E2 0B 00 [20:28:10]MH_I2C_Read... [20:28:10]Read from MH i2c: E2 0B 00 95 0C 00 66 A3 58 E3 12 39 B8 8C 90 00 F0 [20:28:10]RAPDU: 66 A3 58 E3 12 39 B8 8C 90 00 [20:28:10]wFMCommunicate OK [20:28:10]SAM_PROTO_SignData done [20:28:10]FM_MakeSignedData done [20:28:10]CreateOFDProtocolMessage [20:28:10]wFMCommunicate request_size=4 [20:28:10]MH_SAM_APDU [20:28:10]CAPDU: 80 11 00 00 [20:28:10]Write to MH i2c: E2 08 00 96 0C 80 11 00 00 00 00 00 00 1C [20:28:10]Write i2c OK [20:28:10]MH_I2C_Read... [20:28:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:10]Read from MH i2c: E2 [20:28:10]MH_I2C_Read... [20:28:10]Read from MH i2c: E2 17 00 [20:28:10]MH_I2C_Read... [20:28:10]Read from MH i2c: E2 17 00 96 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 6F [20:28:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:28:10]wFMCommunicate OK [20:28:10]CreateOFDProtocolMessage done [20:28:10]OFDSenderStorePacket 76932 [20:28:10]StoreOFDPacket docnum=76932 [20:28:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 62 2D 08 01 4A 07 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 59 00 00 00 00 00 37 04 06 00 8C 19 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 BC 00 00 00 F4 03 04 00 DA 76 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 84 2C 01 00 35 04 06 00 6A 56 F2 87 90 D6 66 A3 58 E3 12 39 B8 8C [20:28:10]CheckFolder [20:28:10]dirname=/storage/ofd_packets [20:28:10]CheckFolder done [20:28:10]ProducePacketName [20:28:10]name=ofd_packets/00076932 [20:28:10]NVStorageSaveData ofd_packets/00076932 [20:28:10]File name is /storage/ofd_packets/00076932 [20:28:10]Write 302 bytes [20:28:10]NVStorageSaveData done [20:28:10]OFDSenderStorePacket done [20:28:10]KKMCreateOFDPacket done [20:28:10]NVStorageSaveData kkm_last_timestamp [20:28:10]File name is /storage/kkm_last_timestamp [20:28:10]Write 4 bytes [20:28:10]NVStorageSaveData done [20:28:10]ExternCall_PrintAddStr [20:28:10]wPrintStart [20:28:10]Write to MH i2c: 01 00 00 97 0C A3 [20:28:10]OFD Sender: Processing packet 76932 [packets to send 129, broken 128] [20:28:10]ProducePacketName [20:28:10]name=ofd_packets/00076932 [20:28:10]OFD Sender: To server: pG, [20:28:10]CommunicateWithHost lk.salyk.kg:30040 [20:28:10]ConnectInit lk.salyk.kg [20:28:10]Write i2c OK [20:28:10]MH_I2C_Read... [20:28:10]Read from MH i2c: 01 [20:28:10]MH_I2C_Read... [20:28:10]Read from MH i2c: 01 07 00 [20:28:10]MH_I2C_Read... [20:28:10]Read from MH i2c: 01 07 00 97 0C 00 00 00 00 00 FF 0F B8 [20:28:10]RasterBufferAndPrint [20:28:10]line Счет N : (1)191479 [20:28:10]line ИНН: 02508201610067 [20:28:10]line Контрольно-Кассовый Чек [20:28:10]line ПРОДАЖА [20:28:10]line ТРК (МРК, ГНК) : 31 [20:28:10]line Товар: 2710124130 [20:28:10]line SUPER 92-К-5 [20:28:10]line 22.940 * 65.40 [20:28:10]line = 1500.28 [20:28:10]line НДС 12% НСП 1% [20:28:10]line > о реализуемом товаре [20:28:10]line ОКРУГЛЕНИЕ: -0.28 [20:28:10]line ИТОГО: 1500.00 [20:28:10]line Внесено: 1500.00 [20:28:10]line СДАЧА: 0.00 [20:28:10]line НСП 1% : 13.28 [20:28:10]line НДС 12% : 159.32 [20:28:10]line Наличными: 1500.00 [20:28:10]line Безнал.: 0.00 [20:28:10]line Место: АЗС № 106 "Партнер Нефть" [20:28:10]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [20:28:10]line СНО: Общий режим [20:28:10]line Чек 188 21.04.2024 20:28 [20:28:10]line Смена: 372 ФФД: 1.0 [20:28:10]line ЗНМ: 0300000141 [20:28:10]line РНМ: 0000000000091573 [20:28:10]line Версия ККМ: 001 [20:28:10]line ФМ: 0000000000874652 [20:28:10]line ФД: 76932 [20:28:10]line ФПД: 116921668702422 [20:28:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T202810&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76932&fm=116921668702422&tin=02508201610067®Number=0000000000091573&sum=150000 [20:28:11]written 0, free lines is 4095 [20:28:11]Connected sock=10 [20:28:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 62 2D 08 01 4A 07 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 59 00 00 00 00 00 37 04 06 00 8C 19 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 BC 00 00 00 F4 03 04 00 DA 76 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 84 2C 01 00 35 04 06 00 6A 56 F2 87 90 D6 66 A3 58 E3 12 39 B8 8C [20:28:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 63 47 47 00 FF F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 84 2C 01 00 F4 03 04 00 5E 1E 25 66 B6 04 01 00 00 62 96 F9 61 5D B5 B2 DB [20:28:11]CommunicateWithHost err = 0 [20:28:11]CheckOFDResponse [20:28:11]1017 (14) - 77093643461234 [20:28:11]1041 (16) - 0000000000874652 [20:28:11]1040 (4) - 76932 [20:28:11]1012 (4) - 21.04.2024 14:10 [20:28:11]1206 (1) - 0 [20:28:11]OFD Sender: Remove packet 76932 [20:28:11]ProducePacketName [20:28:11]name=ofd_packets/00076932 [20:28:11]NVStorageDeleteData [20:28:11]Write to MH i2c: 01 00 00 C1 0C CD [20:28:11]Write i2c OK [20:28:11]MH_I2C_Read... [20:28:11]Read from MH i2c: 01 [20:28:11]MH_I2C_Read... [20:28:11]Read from MH i2c: 01 07 00 [20:28:11]MH_I2C_Read... [20:28:11]Read from MH i2c: 01 07 00 C1 0C 00 00 00 00 00 FF 0C DF [20:28:11]RasterBufferAndPrint [20:28:11]line [20:28:11]line [20:28:11]line [20:28:11]line [20:28:11]line [20:28:11]written 0, free lines is 3336 [20:28:11]MH_Cut [20:28:11]Write to MH i2c: D1 01 00 C8 0C 01 A6 [20:28:11]Write i2c OK [20:28:11]MH_I2C_Read... [20:28:11]Read from MH i2c: D1 [20:28:11]MH_I2C_Read... [20:28:11]Read from MH i2c: D1 01 00 [20:28:11]MH_I2C_Read... [20:28:11]Read from MH i2c: D1 01 00 C8 0C 00 A5 [20:28:11]Write to MH i2c: 01 00 00 C9 0C D5 [20:28:11]Write i2c OK [20:28:11]MH_I2C_Read... [20:28:12]OFD Sender: No OFD packet to send [20:28:12]*** Cut start [20:28:12]*** Partial cut [20:28:12]*** CUTSNS_PIN = 1 [20:28:12]*** CUTSNS_PIN = 0 [20:28:12]*** Brake cut motor [20:28:13]Read from MH i2c: 01 [20:28:13]MH_I2C_Read... [20:28:13]*** Stop cut motor [20:28:13]*** Cut end [20:28:13]Read from MH i2c: 01 07 00 [20:28:13]MH_I2C_Read... [20:28:13]Read from MH i2c: 01 07 00 C9 0C 00 00 00 00 00 FF 0F EA [20:28:13]process_action close_receipt done [20:28:13]requested_data is exist [20:28:13]produce_requested_data [20:28:13]requested_item fm.sn is exist - process it [20:28:13]wFMCommunicate request_size=4 [20:28:13]MH_SAM_APDU [20:28:13]CAPDU: 80 11 00 00 [20:28:13]Write to MH i2c: E2 08 00 CA 0C 80 11 00 00 00 00 00 00 50 [20:28:13]Write i2c OK [20:28:13]MH_I2C_Read... [20:28:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:13]Read from MH i2c: E2 [20:28:13]MH_I2C_Read... [20:28:13]Read from MH i2c: E2 17 00 [20:28:13]MH_I2C_Read... [20:28:13]Read from MH i2c: E2 17 00 CA 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 A3 [20:28:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:28:13]wFMCommunicate OK [20:28:13]requested_item fd.num is exist - process it [20:28:13]SAM_PROTO_GetFieldsCounters [20:28:13]wFMCommunicate request_size=4 [20:28:13]MH_SAM_APDU [20:28:13]CAPDU: 80 13 00 00 [20:28:13]Write to MH i2c: E2 08 00 CB 0C 80 13 00 00 00 00 00 00 53 [20:28:13]Write i2c OK [20:28:13]MH_I2C_Read... [20:28:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:28:13]Read from MH i2c: E2 [20:28:13]MH_I2C_Read... [20:28:13]Read from MH i2c: E2 62 00 [20:28:13]MH_I2C_Read... [20:28:13]Read from MH i2c: E2 62 00 CB 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 84 2C 01 00 0E 04 04 00 74 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 CE [20:28: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 84 2C 01 00 0E 04 04 00 74 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 [20:28:13]wFMCommunicate OK [20:28:13]SAM_PROTO_GetFieldsCounters done [20:28:13]requested_item shift.num is exist - process it [20:28:13]requested_item shift.opened is exist - process it [20:28:13]req_shift_opened [20:28:13]FM_GetShiftState [20:28:13]SAM_PROTO_GetShiftState [20:28:13]wFMCommunicate request_size=4 [20:28:13]MH_SAM_APDU [20:28:13]CAPDU: 80 13 01 00 [20:28:13]Write to MH i2c: E2 08 00 CC 0C 80 13 01 00 00 00 00 00 55 [20:28:13]Write i2c OK [20:28:13]MH_I2C_Read... [20:28:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:13]Read from MH i2c: E2 [20:28:13]MH_I2C_Read... [20:28:13]Read from MH i2c: E2 0E 00 [20:28:13]MH_I2C_Read... [20:28:13]Read from MH i2c: E2 0E 00 CC 0C 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 9C [20:28:13]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [20:28:13]wFMCommunicate OK [20:28:13]SAM_PROTO_GetShiftState done [20:28:13]FM_GetShiftState done [20:28:13]req_shift_opened done [20:28:13]requested_item shift.open_date is exist - process it [20:28:13]req_shift_open_date [20:28:13]req_shift_open_date done [20:28:13]produce_requested_data done [20:28:13]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76932,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [20:28:13]process_action_free close_receipt [20:28:13]json_value_free [20:28:13]json_value_free done [20:28:13]process_json_proto returns [20:28:13]Send response to host [20:28:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76932,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [20:28:13]free response buf [20:28:13]execute_script done [20:28:13]execute_script returns [20:28:13]free content buf [20:28:13]Sock 8.Close socket [20:28:13]Sock 8.Thread stoped [20:28:17]OFD Sender: No OFD packet to send [20:28:22]OFD Sender: No OFD packet to send [20:28:27]OFD Sender: No OFD packet to send [20:28:32]OFD Sender: No OFD packet to send [20:28:37]OFD Sender: No OFD packet to send [20:28:42]OFD Sender: No OFD packet to send [20:28:47]OFD Sender: No OFD packet to send [20:28:52]OFD Sender: No OFD packet to send [20:28:57]OFD Sender: No OFD packet to send [20:29:02]OFD Sender: No OFD packet to send [20:29:07]OFD Sender: No OFD packet to send [20:29:07]accept exits with 9 [20:29:07]New connection [20:29:07]New thread 3066944868 created [20:29:07]Thread 3066801508 joined [20:29:07]Waiting for new connection... [20:29:07] Sock 9.Parse request [20:29:07]Sock 9.Check first char [20:29:07]Sock 9.First char is OK [20:29:07]request: POST /json_proto HTTP/1.0 [20:29:07]Method: POST [20:29:07]URL: /json_proto [20:29:07]Method is POST - this is cgi request [20:29:07]url: /json_proto [20:29:07]query_string will be loaded in cgi processing [20:29:07]execute_cgi json_proto POST (null) [20:29:07]execute_cgi path=json_proto method=POST [20:29:07]POST find Content-Length [20:29:07]Host: 172.17.62.5:8080 [20:29:07]Content-Length: 678 [20:29:07]Content-Type: application/json [20:29:07] [20:29:07]POST finish read [20:29:07]Found Content-Length = 678 [20:29:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191480", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 10.250, "sum" : 660.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:29:07]execute_script... [20:29: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)191480", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 10.250, "sum" : 660.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:29:07]POST & json_proto [20:29:07]process_json_proto [20:29:07]json parsed OK: [20:29:07]protocol is kg_v1.0 [20:29:07]action value=close_receipt [20:29:07]process_action close_receipt [20:29:07]cmd_close_receipt [20:29:07]MH_GetDate [20:29:07]Write to MH i2c: F0 00 00 CD 0C C8 [20:29:07]Write i2c OK [20:29:07]MH_I2C_Read... [20:29:07]Read from MH i2c: F0 [20:29:07]MH_I2C_Read... [20:29:07]Read from MH i2c: F0 09 00 [20:29:07]MH_I2C_Read... [20:29:07]Read from MH i2c: F0 09 00 CD 0C 00 14 77 25 66 F4 E9 65 64 8D [20:29:07]GetLastDocTimeStamp 1713731290 [20:29:07]current date 1713731348 [20:29:07]FM_GetShiftState [20:29:07]SAM_PROTO_GetShiftState [20:29:07]wFMCommunicate request_size=4 [20:29:07]MH_SAM_APDU [20:29:07]CAPDU: 80 13 01 00 [20:29:07]Write to MH i2c: E2 08 00 CE 0C 80 13 01 00 00 00 00 00 57 [20:29:07]Write i2c OK [20:29:07]MH_I2C_Read... [20:29:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:29:07]Read from MH i2c: E2 [20:29:07]MH_I2C_Read... [20:29:07]Read from MH i2c: E2 0E 00 [20:29:07]MH_I2C_Read... [20:29:07]Read from MH i2c: E2 0E 00 CE 0C 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 9E [20:29:07]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [20:29:07]wFMCommunicate OK [20:29:07]SAM_PROTO_GetShiftState done [20:29:07]FM_GetShiftState done [20:29:07]opened in 1713658965 [20:29:07]opened+sec_in_day 1713745365 [20:29:07]quantity*price = 66010 [20:29:07]sum+1 = 66011 [20:29:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 660.00 Внесено: 660.00 СДАЧА: 0.00 НСП 1% : 5.84 НДС 12% : 70.10 Наличными: 660.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 189 21.04.2024 20:29 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76933 ФПД: 205345013233719 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T202908&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76933&fm=205345013233719&tin=02508201610067®Number=0000000000091573&sum=66000 [20:29:08]StoreToDocumentArchive [20:29:08]shift 372 fd 76933 [20:29:08]save to /storage/0372/doc_00076933 [20:29:08]save last doc name /storage/0372/doc_00076933 to /storage/kkm_last_doc_name [20:29:08]save OK [20:29:08]Clear old archive folders... [20:29:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:29:08]tlvbuf is 00C6FC30 [20:29:08]SAM_PROTO_ClearQueue [20:29:08]wFMCommunicate request_size=4 [20:29:08]MH_SAM_APDU [20:29:08]CAPDU: 80 09 00 00 [20:29:08]Write to MH i2c: E2 08 00 DB 0C 80 09 00 00 00 00 00 00 59 [20:29:08]Write i2c OK [20:29:08]MH_I2C_Read... [20:29:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:29:08]Read from MH i2c: E2 [20:29:08]MH_I2C_Read... [20:29:08]Read from MH i2c: E2 03 00 [20:29:08]MH_I2C_Read... [20:29:08]Read from MH i2c: E2 03 00 DB 0C 00 90 00 5B [20:29:08]RAPDU: 90 00 [20:29:08]wFMCommunicate OK [20:29:08]SAM_PROTO_ClearQueue done [20:29:08]KKMCreateOFDPacket [20:29:08]OFDProtocolAddRootSTLVToBuf [20:29:08]FM_MakeSignedData [20:29:08]FM_MakeSignedData [20:29:08]SAM_PROTO_SignData [20:29:08]wFMCommunicate request_size=4 [20:29:08]MH_SAM_APDU [20:29:08]CAPDU: 80 0D 01 02 [20:29:08]Write to MH i2c: E2 08 00 DC 0C 80 0D 01 02 00 00 00 00 61 [20:29:08]Write i2c OK [20:29:08]MH_I2C_Read... [20:29:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:29:08]Read from MH i2c: E2 [20:29:08]MH_I2C_Read... [20:29:08]Read from MH i2c: E2 03 00 [20:29:08]MH_I2C_Read... [20:29:08]Read from MH i2c: E2 03 00 DC 0C 00 90 00 5C [20:29:08]RAPDU: 90 00 [20:29:08]wFMCommunicate OK [20:29:08]wFMCommunicate request_size=255 [20:29:08]MH_SAM_APDU [20:29: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 0A 28 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 DA 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 14 77 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 85 2C 01 00 35 04 06 00 BA [20:29:08]Write to MH i2c: E2 02 01 DD 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 0A 28 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 DA 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 14 77 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 85 2C 01 00 35 04 06 00 BA 00 00 D9 [20:29:08]Write i2c OK [20:29:08]MH_I2C_Read... [20:29:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:29:08]Read from MH i2c: E2 [20:29:08]MH_I2C_Read... [20:29:08]Read from MH i2c: E2 03 00 [20:29:08]MH_I2C_Read... [20:29:08]Read from MH i2c: E2 03 00 DD 0C 00 90 00 5D [20:29:08]RAPDU: 90 00 [20:29:08]wFMCommunicate OK [20:29:08]wFMCommunicate request_size=10 [20:29:08]MH_SAM_APDU [20:29:08]CAPDU: 80 0D 02 02 05 C2 9C 91 F8 37 [20:29:08]Write to MH i2c: E2 0D 00 DE 0C 80 0D 02 02 05 00 C2 9C 91 F8 37 00 00 8C [20:29:08]Write i2c OK [20:29:08]MH_I2C_Read... [20:29:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:29:08]Read from MH i2c: E2 [20:29:08]MH_I2C_Read... [20:29:08]Read from MH i2c: E2 03 00 [20:29:08]MH_I2C_Read... [20:29:08]Read from MH i2c: E2 03 00 DE 0C 00 90 00 5E [20:29:08]RAPDU: 90 00 [20:29:08]wFMCommunicate OK [20:29:08]wFMCommunicate request_size=4 [20:29:08]MH_SAM_APDU [20:29:08]CAPDU: 80 0D 03 02 [20:29:08]Write to MH i2c: E2 08 00 DF 0C 80 0D 03 02 00 00 00 00 66 [20:29:08]Write i2c OK [20:29:08]MH_I2C_Read... [20:29:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:29:08]Read from MH i2c: E2 [20:29:08]MH_I2C_Read... [20:29:08]Read from MH i2c: E2 0B 00 [20:29:08]MH_I2C_Read... [20:29:08]Read from MH i2c: E2 0B 00 DF 0C 00 BB A2 DA 71 35 49 2D 7A 90 00 34 [20:29:08]RAPDU: BB A2 DA 71 35 49 2D 7A 90 00 [20:29:08]wFMCommunicate OK [20:29:08]SAM_PROTO_SignData done [20:29:08]FM_MakeSignedData done [20:29:08]CreateOFDProtocolMessage [20:29:08]wFMCommunicate request_size=4 [20:29:08]MH_SAM_APDU [20:29:08]CAPDU: 80 11 00 00 [20:29:08]Write to MH i2c: E2 08 00 E0 0C 80 11 00 00 00 00 00 00 66 [20:29:08]Write i2c OK [20:29:08]MH_I2C_Read... [20:29:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:29:08]Read from MH i2c: E2 [20:29:08]MH_I2C_Read... [20:29:08]Read from MH i2c: E2 17 00 [20:29:08]MH_I2C_Read... [20:29:08]Read from MH i2c: E2 17 00 E0 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 B9 [20:29:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:29:08]wFMCommunicate OK [20:29:08]CreateOFDProtocolMessage done [20:29:08]OFDSenderStorePacket 76933 [20:29:08]StoreOFDPacket docnum=76933 [20:29:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 D4 B8 07 01 DC 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 28 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 DA 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 14 77 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 85 2C 01 00 35 04 06 00 BA C2 9C 91 F8 37 BB A2 DA 71 35 49 2D 7A [20:29:08]CheckFolder [20:29:08]dirname=/storage/ofd_packets [20:29:08]CheckFolder done [20:29:08]ProducePacketName [20:29:08]name=ofd_packets/00076933 [20:29:08]NVStorageSaveData ofd_packets/00076933 [20:29:08]File name is /storage/ofd_packets/00076933 [20:29:08]Write 301 bytes [20:29:08]NVStorageSaveData done [20:29:08]OFDSenderStorePacket done [20:29:08]KKMCreateOFDPacket done [20:29:08]NVStorageSaveData kkm_last_timestamp [20:29:08]File name is /storage/kkm_last_timestamp [20:29:08]Write 4 bytes [20:29:08]NVStorageSaveData done [20:29:08]ExternCall_PrintAddStr [20:29:08]wPrintStart [20:29:08]Write to MH i2c: 01 00 00 E1 0C ED [20:29:08]Write i2c OK [20:29:08]MH_I2C_Read... [20:29:08]Read from MH i2c: 01 [20:29:08]MH_I2C_Read... [20:29:08]Read from MH i2c: 01 07 00 [20:29:08]MH_I2C_Read... [20:29:08]Read from MH i2c: 01 07 00 E1 0C 00 00 00 00 00 FF 0F 02 [20:29:08]RasterBufferAndPrint [20:29:08]line Счет N : (1)191480 [20:29:08]line ИНН: 02508201610067 [20:29:08]line Контрольно-Кассовый Чек [20:29:08]line ПРОДАЖА [20:29:08]line ТРК (МРК, ГНК) : 22 [20:29:08]line Товар: 2710124130 [20:29:08]line Аи-92-К-5 [20:29:08]line 10.250 * 64.40 [20:29:08]line = 660.10 [20:29:08]line НДС 12% НСП 1% [20:29:08]line > о реализуемом товаре [20:29:08]line ОКРУГЛЕНИЕ: -0.10 [20:29:08]line ИТОГО: 660.00 [20:29:08]line Внесено: 660.00 [20:29:08]line СДАЧА: 0.00 [20:29:08]line НСП 1% : 5.84 [20:29:08]line НДС 12% : 70.10 [20:29:08]line Наличными: 660.00 [20:29:08]line Безнал.: 0.00 [20:29:08]line Место: АЗС № 106 "Партнер Нефть" [20:29:08]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [20:29:08]line СНО: Общий режим [20:29:08]line Чек 189 21.04.2024 20:29 [20:29:08]line Смена: 372 ФФД: 1.0 [20:29:08]line ЗНМ: 0300000141 [20:29:08]line РНМ: 0000000000091573 [20:29:08]line Версия ККМ: 001 [20:29:08]line ФМ: 0000000000874652 [20:29:08]line ФД: 76933 [20:29:08]line ФПД: 205345013233719 [20:29:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T202908&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76933&fm=205345013233719&tin=02508201610067®Number=0000000000091573&sum=66000 [20:29:09]written 0, free lines is 4095 [20:29:09]OFD Sender: Processing packet 76933 [packets to send 129, broken 128] [20:29:09]ProducePacketName [20:29:09]name=ofd_packets/00076933 [20:29:09]OFD Sender: To server: pG, [20:29:09]CommunicateWithHost lk.salyk.kg:30040 [20:29:09]ConnectInit lk.salyk.kg [20:29:09]Connected sock=10 [20:29:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 D4 B8 07 01 DC 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 28 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 DA 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 14 77 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 85 2C 01 00 35 04 06 00 BA C2 9C 91 F8 37 BB A2 DA 71 35 49 2D 7A [20:29:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 90 59 47 00 E6 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 85 2C 01 00 F4 03 04 00 98 1E 25 66 B6 04 01 00 00 D7 EB 38 3C B0 D6 67 E0 [20:29:09]CommunicateWithHost err = 0 [20:29:09]CheckOFDResponse [20:29:09]1017 (14) - 77093643461234 [20:29:09]1041 (16) - 0000000000874652 [20:29:09]1040 (4) - 76933 [20:29:09]1012 (4) - 21.04.2024 14:11 [20:29:09]1206 (1) - 0 [20:29:09]OFD Sender: Remove packet 76933 [20:29:09]ProducePacketName [20:29:09]name=ofd_packets/00076933 [20:29:09]NVStorageDeleteData [20:29:09]Write to MH i2c: 01 00 00 0B 0D 18 [20:29:09]Write i2c OK [20:29:09]MH_I2C_Read... [20:29:09]Read from MH i2c: 01 [20:29:09]MH_I2C_Read... [20:29:09]Read from MH i2c: 01 07 00 [20:29:09]MH_I2C_Read... [20:29:09]Read from MH i2c: 01 07 00 0B 0D 00 00 00 00 00 E3 0C 0E [20:29:09]RasterBufferAndPrint [20:29:09]line [20:29:09]line [20:29:09]line [20:29:09]line [20:29:09]line [20:29:09]written 0, free lines is 3305 [20:29:09]MH_Cut [20:29:09]Write to MH i2c: D1 01 00 12 0D 01 F1 [20:29:09]Write i2c OK [20:29:09]MH_I2C_Read... [20:29:09]Read from MH i2c: D1 [20:29:09]MH_I2C_Read... [20:29:09]Read from MH i2c: D1 01 00 [20:29:09]MH_I2C_Read... [20:29:09]Read from MH i2c: D1 01 00 12 0D 00 F0 [20:29:09]Write to MH i2c: 01 00 00 13 0D 20 [20:29:09]Write i2c OK [20:29:09]MH_I2C_Read... [20:29:10]OFD Sender: No OFD packet to send [20:29:10]*** Cut start [20:29:10]*** Partial cut [20:29:10]*** CUTSNS_PIN = 1 [20:29:10]*** CUTSNS_PIN = 0 [20:29:10]*** Brake cut motor [20:29:11]Read from MH i2c: 01 [20:29:11]MH_I2C_Read... [20:29:11]*** Stop cut motor [20:29:11]*** Cut end [20:29:11]Read from MH i2c: 01 07 00 [20:29:11]MH_I2C_Read... [20:29:11]Read from MH i2c: 01 07 00 13 0D 00 00 00 00 00 FF 0F 35 [20:29:11]process_action close_receipt done [20:29:11]requested_data is exist [20:29:11]produce_requested_data [20:29:11]requested_item fm.sn is exist - process it [20:29:11]wFMCommunicate request_size=4 [20:29:11]MH_SAM_APDU [20:29:11]CAPDU: 80 11 00 00 [20:29:11]Write to MH i2c: E2 08 00 14 0D 80 11 00 00 00 00 00 00 9B [20:29:11]Write i2c OK [20:29:11]MH_I2C_Read... [20:29:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:29:11]Read from MH i2c: E2 [20:29:11]MH_I2C_Read... [20:29:11]Read from MH i2c: E2 17 00 [20:29:11]MH_I2C_Read... [20:29:11]Read from MH i2c: E2 17 00 14 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 EE [20:29:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:29:11]wFMCommunicate OK [20:29:11]requested_item fd.num is exist - process it [20:29:11]SAM_PROTO_GetFieldsCounters [20:29:11]wFMCommunicate request_size=4 [20:29:11]MH_SAM_APDU [20:29:11]CAPDU: 80 13 00 00 [20:29:11]Write to MH i2c: E2 08 00 15 0D 80 13 00 00 00 00 00 00 9E [20:29:11]Write i2c OK [20:29:11]MH_I2C_Read... [20:29:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:29:11]Read from MH i2c: E2 [20:29:11]MH_I2C_Read... [20:29:11]Read from MH i2c: E2 62 00 [20:29:11]MH_I2C_Read... [20:29:11]Read from MH i2c: E2 62 00 15 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 85 2C 01 00 0E 04 04 00 74 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 1D [20:29:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 85 2C 01 00 0E 04 04 00 74 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 [20:29:11]wFMCommunicate OK [20:29:11]SAM_PROTO_GetFieldsCounters done [20:29:11]requested_item shift.num is exist - process it [20:29:11]requested_item shift.opened is exist - process it [20:29:11]req_shift_opened [20:29:11]FM_GetShiftState [20:29:11]SAM_PROTO_GetShiftState [20:29:11]wFMCommunicate request_size=4 [20:29:11]MH_SAM_APDU [20:29:11]CAPDU: 80 13 01 00 [20:29:11]Write to MH i2c: E2 08 00 16 0D 80 13 01 00 00 00 00 00 A0 [20:29:11]Write i2c OK [20:29:11]MH_I2C_Read... [20:29:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:29:11]Read from MH i2c: E2 [20:29:11]MH_I2C_Read... [20:29:11]Read from MH i2c: E2 0E 00 [20:29:11]MH_I2C_Read... [20:29:11]Read from MH i2c: E2 0E 00 16 0D 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 E7 [20:29:11]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [20:29:11]wFMCommunicate OK [20:29:11]SAM_PROTO_GetShiftState done [20:29:11]FM_GetShiftState done [20:29:11]req_shift_opened done [20:29:11]requested_item shift.open_date is exist - process it [20:29:11]req_shift_open_date [20:29:11]req_shift_open_date done [20:29:11]produce_requested_data done [20:29:11]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76933,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [20:29:11]process_action_free close_receipt [20:29:11]json_value_free [20:29:11]json_value_free done [20:29:11]process_json_proto returns [20:29:11]Send response to host [20:29:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76933,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [20:29:11]free response buf [20:29:11]execute_script done [20:29:11]execute_script returns [20:29:11]free content buf [20:29:11]Sock 9.Close socket [20:29:11]Sock 9.Thread stoped [20:29:15]OFD Sender: No OFD packet to send [20:29:20]OFD Sender: No OFD packet to send [20:29:25]OFD Sender: No OFD packet to send [20:29:30]OFD Sender: No OFD packet to send [20:29:35]OFD Sender: No OFD packet to send [20:29:40]OFD Sender: No OFD packet to send [20:29:45]OFD Sender: No OFD packet to send [20:29:50]OFD Sender: No OFD packet to send [20:29:55]OFD Sender: No OFD packet to send [20:30:00]OFD Sender: No OFD packet to send [20:30:05]OFD Sender: No OFD packet to send [20:30:10]OFD Sender: No OFD packet to send [20:30:15]OFD Sender: No OFD packet to send [20:30:20]OFD Sender: No OFD packet to send [20:30:25]OFD Sender: No OFD packet to send [20:30:30]OFD Sender: No OFD packet to send [20:30:35]OFD Sender: No OFD packet to send [20:30:40]OFD Sender: No OFD packet to send [20:30:45]OFD Sender: No OFD packet to send [20:30:50]OFD Sender: No OFD packet to send [20:30:55]OFD Sender: No OFD packet to send [20:31:00]OFD Sender: No OFD packet to send [20:31:05]OFD Sender: No OFD packet to send [20:31:10]OFD Sender: No OFD packet to send [20:31:15]OFD Sender: No OFD packet to send [20:31:20]OFD Sender: No OFD packet to send [20:31:25]OFD Sender: No OFD packet to send [20:31:30]OFD Sender: No OFD packet to send [20:31:35]OFD Sender: No OFD packet to send [20:31:40]OFD Sender: No OFD packet to send [20:31:45]OFD Sender: No OFD packet to send [20:31:50]OFD Sender: No OFD packet to send [20:31:55]OFD Sender: No OFD packet to send [20:32:00]OFD Sender: No OFD packet to send [20:32:05]OFD Sender: No OFD packet to send [20:32:10]OFD Sender: No OFD packet to send [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:05]OFD Sender: No OFD packet to send [20:34:10]OFD Sender: No OFD packet to send [20:34:15]OFD Sender: No OFD packet to send [20:34:20]OFD Sender: No OFD packet to send [20:34:25]OFD Sender: No OFD packet to send [20:34:30]OFD Sender: No OFD packet to send [20:34:35]OFD Sender: No OFD packet to send [20:34:38]accept exits with 8 [20:34:38]New connection [20:34:38]New thread 3066801508 created [20:34:38]Thread 3066944868 joined [20:34:38]Waiting for new connection... [20:34:38] Sock 8.Parse request [20:34:38]Sock 8.Check first char [20:34:38]Sock 8.First char is OK [20:34:38]request: POST /json_proto HTTP/1.0 [20:34:38]Method: POST [20:34:38]URL: /json_proto [20:34:38]Method is POST - this is cgi request [20:34:38]url: /json_proto [20:34:38]query_string will be loaded in cgi processing [20:34:38]execute_cgi json_proto POST (null) [20:34:38]execute_cgi path=json_proto method=POST [20:34:38]POST find Content-Length [20:34:38]Host: 172.17.62.5:8080 [20:34:38]Content-Length: 805 [20:34:38]Content-Type: application/json [20:34:38] [20:34:38]POST finish read [20:34:38]Found Content-Length = 805 [20:34:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191481", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 9.320, "sum" : 600.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:34:38]execute_script... [20:34:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191481", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 9.320, "sum" : 600.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:34:38]POST & json_proto [20:34:38]process_json_proto [20:34:38]json parsed OK: [20:34:38]protocol is kg_v1.0 [20:34:38]action value=close_receipt [20:34:38]process_action close_receipt [20:34:38]cmd_close_receipt [20:34:38]MH_GetDate [20:34:38]Write to MH i2c: F0 00 00 17 0D 13 [20:34:38]Write i2c OK [20:34:38]MH_I2C_Read... [20:34:38]Read from MH i2c: F0 [20:34:38]MH_I2C_Read... [20:34:38]Read from MH i2c: F0 09 00 [20:34:38]MH_I2C_Read... [20:34:38]Read from MH i2c: F0 09 00 17 0D 00 5F 78 25 66 F4 E9 65 64 24 [20:34:38]GetLastDocTimeStamp 1713731348 [20:34:38]current date 1713731679 [20:34:38]FM_GetShiftState [20:34:38]SAM_PROTO_GetShiftState [20:34:38]wFMCommunicate request_size=4 [20:34:38]MH_SAM_APDU [20:34:38]CAPDU: 80 13 01 00 [20:34:38]Write to MH i2c: E2 08 00 18 0D 80 13 01 00 00 00 00 00 A2 [20:34:38]Write i2c OK [20:34:38]MH_I2C_Read... [20:34:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:34:38]Read from MH i2c: E2 [20:34:38]MH_I2C_Read... [20:34:38]Read from MH i2c: E2 0E 00 [20:34:38]MH_I2C_Read... [20:34:38]Read from MH i2c: E2 0E 00 18 0D 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 E9 [20:34:38]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [20:34:38]wFMCommunicate OK [20:34:38]SAM_PROTO_GetShiftState done [20:34:38]FM_GetShiftState done [20:34:38]opened in 1713658965 [20:34:38]opened+sec_in_day 1713745365 [20:34:38]quantity*price = 60020 [20:34:38]sum+1 = 60022 [20:34:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.21 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 0.00 Безнал.: 600.21 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 190 21.04.2024 20:34 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 76934 ФПД: 217563187942835 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T203439&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76934&fm=217563187942835&tin=02508201610067®Number=0000000000091573&sum=60021 [20:34:39]StoreToDocumentArchive [20:34:39]shift 372 fd 76934 [20:34:39]save to /storage/0372/doc_00076934 [20:34:39]save last doc name /storage/0372/doc_00076934 to /storage/kkm_last_doc_name [20:34:39]save OK [20:34:39]Clear old archive folders... [20:34:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:34:39]tlvbuf is 00CBA0D0 [20:34:39]SAM_PROTO_ClearQueue [20:34:39]wFMCommunicate request_size=4 [20:34:39]MH_SAM_APDU [20:34:39]CAPDU: 80 09 00 00 [20:34:39]Write to MH i2c: E2 08 00 25 0D 80 09 00 00 00 00 00 00 A4 [20:34:39]Write i2c OK [20:34:39]MH_I2C_Read... [20:34:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:34:39]Read from MH i2c: E2 [20:34:39]MH_I2C_Read... [20:34:39]Read from MH i2c: E2 03 00 [20:34:39]MH_I2C_Read... [20:34:39]Read from MH i2c: E2 03 00 25 0D 00 90 00 A6 [20:34:39]RAPDU: 90 00 [20:34:39]wFMCommunicate OK [20:34:39]SAM_PROTO_ClearQueue done [20:34:39]KKMCreateOFDPacket [20:34:39]OFDProtocolAddRootSTLVToBuf [20:34:39]FM_MakeSignedData [20:34:39]FM_MakeSignedData [20:34:39]SAM_PROTO_SignData [20:34:39]wFMCommunicate request_size=4 [20:34:39]MH_SAM_APDU [20:34:39]CAPDU: 80 0D 01 02 [20:34:39]Write to MH i2c: E2 08 00 26 0D 80 0D 01 02 00 00 00 00 AC [20:34:39]Write i2c OK [20:34:39]MH_I2C_Read... [20:34:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:34:39]Read from MH i2c: E2 [20:34:39]MH_I2C_Read... [20:34:39]Read from MH i2c: E2 03 00 [20:34:39]MH_I2C_Read... [20:34:39]Read from MH i2c: E2 03 00 26 0D 00 90 00 A7 [20:34:39]RAPDU: 90 00 [20:34:39]wFMCommunicate OK [20:34:39]wFMCommunicate request_size=255 [20:34:39]MH_SAM_APDU [20:34:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 68 24 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 75 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 75 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 75 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 5F 78 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 86 2C 01 00 35 04 06 00 C5 [20:34:39]Write to MH i2c: E2 02 01 27 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 68 24 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 75 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 75 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 75 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 5F 78 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 86 2C 01 00 35 04 06 00 C5 00 00 C0 [20:34:39]Write i2c OK [20:34:39]MH_I2C_Read... [20:34:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:40]Read from MH i2c: E2 [20:34:40]MH_I2C_Read... [20:34:40]Read from MH i2c: E2 03 00 [20:34:40]MH_I2C_Read... [20:34:40]Read from MH i2c: E2 03 00 27 0D 00 90 00 A8 [20:34:40]RAPDU: 90 00 [20:34:40]wFMCommunicate OK [20:34:40]wFMCommunicate request_size=10 [20:34:40]MH_SAM_APDU [20:34:40]CAPDU: 80 0D 02 02 05 DF 60 88 95 B3 [20:34:40]Write to MH i2c: E2 0D 00 28 0D 80 0D 02 02 05 00 DF 60 88 95 B3 00 00 C8 [20:34:40]Write i2c OK [20:34:40]MH_I2C_Read... [20:34:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:40]Read from MH i2c: E2 [20:34:40]MH_I2C_Read... [20:34:40]Read from MH i2c: E2 03 00 [20:34:40]MH_I2C_Read... [20:34:40]Read from MH i2c: E2 03 00 28 0D 00 90 00 A9 [20:34:40]RAPDU: 90 00 [20:34:40]wFMCommunicate OK [20:34:40]wFMCommunicate request_size=4 [20:34:40]MH_SAM_APDU [20:34:40]CAPDU: 80 0D 03 02 [20:34:40]Write to MH i2c: E2 08 00 29 0D 80 0D 03 02 00 00 00 00 B1 [20:34:40]Write i2c OK [20:34:40]MH_I2C_Read... [20:34:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:34:40]Read from MH i2c: E2 [20:34:40]MH_I2C_Read... [20:34:40]Read from MH i2c: E2 0B 00 [20:34:40]MH_I2C_Read... [20:34:40]Read from MH i2c: E2 0B 00 29 0D 00 E7 54 52 F9 8F 46 8C D3 90 00 6C [20:34:40]RAPDU: E7 54 52 F9 8F 46 8C D3 90 00 [20:34:40]wFMCommunicate OK [20:34:40]SAM_PROTO_SignData done [20:34:40]FM_MakeSignedData done [20:34:40]CreateOFDProtocolMessage [20:34:40]wFMCommunicate request_size=4 [20:34:40]MH_SAM_APDU [20:34:40]CAPDU: 80 11 00 00 [20:34:40]Write to MH i2c: E2 08 00 2A 0D 80 11 00 00 00 00 00 00 B1 [20:34:40]Write i2c OK [20:34:40]MH_I2C_Read... [20:34:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:34:40]Read from MH i2c: E2 [20:34:40]MH_I2C_Read... [20:34:40]Read from MH i2c: E2 17 00 [20:34:40]MH_I2C_Read... [20:34:40]Read from MH i2c: E2 17 00 2A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 04 [20:34:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:34:40]wFMCommunicate OK [20:34:40]CreateOFDProtocolMessage done [20:34:40]OFDSenderStorePacket 76934 [20:34:40]StoreOFDPacket docnum=76934 [20:34:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 71 A0 07 01 0C 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 68 24 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 75 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 75 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 75 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 5F 78 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 86 2C 01 00 35 04 06 00 C5 DF 60 88 95 B3 E7 54 52 F9 8F 46 8C D3 [20:34:40]CheckFolder [20:34:40]dirname=/storage/ofd_packets [20:34:40]CheckFolder done [20:34:40]ProducePacketName [20:34:40]name=ofd_packets/00076934 [20:34:40]NVStorageSaveData ofd_packets/00076934 [20:34:40]File name is /storage/ofd_packets/00076934 [20:34:40]Write 301 bytes [20:34:40]NVStorageSaveData done [20:34:40]OFDSenderStorePacket done [20:34:40]KKMCreateOFDPacket done [20:34:40]NVStorageSaveData kkm_last_timestamp [20:34:40]File name is /storage/kkm_last_timestamp [20:34:40]Write 4 bytes [20:34:40]NVStorageSaveData done [20:34:40]ExternCall_PrintAddStr [20:34:40]wPrintStart [20:34:40]Write to MH i2c: 01 00 00 2B 0D 38 [20:34:40]Write i2c OK [20:34:40]MH_I2C_Read... [20:34:40]Read from MH i2c: 01 [20:34:40]MH_I2C_Read... [20:34:40]Read from MH i2c: 01 07 00 [20:34:40]MH_I2C_Read... [20:34:40]Read from MH i2c: 01 07 00 2B 0D 00 00 00 00 00 FF 0F 4D [20:34:40]RasterBufferAndPrint [20:34:40]line Счет N : (1)191481 [20:34:40]line ИНН: 02508201610067 [20:34:40]line Контрольно-Кассовый Чек [20:34:40]line ПРОДАЖА [20:34:40]line ТРК (МРК, ГНК) : 22 [20:34:40]line Товар: 2710124130 [20:34:40]line Аи-92-К-5 [20:34:40]line 9.320 * 64.40 [20:34:40]line = 600.21 [20:34:40]line НДС 12% НСП 1% [20:34:40]line > о реализуемом товаре [20:34:40]line ИТОГО: 600.21 [20:34:40]line НСП 1% : 5.31 [20:34:40]line НДС 12% : 63.74 [20:34:40]line Наличными: 0.00 [20:34:40]line Безнал.: 600.21 [20:34:40]line Место: АЗС № 106 "Партнер Нефть" [20:34:40]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [20:34:40]line СНО: Общий режим [20:34:40]line Чек 190 21.04.2024 20:34 [20:34:40]line Смена: 372 ФФД: 1.0 [20:34:40]line ЗНМ: 0300000141 [20:34:40]line РНМ: 0000000000091573 [20:34:40]line Версия ККМ: 001 [20:34:40]line Платежная система: О! деньги [20:34:40]line ФМ: 0000000000874652 [20:34:40]line ФД: 76934 [20:34:40]line ФПД: 217563187942835 [20:34:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T203439&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76934&fm=217563187942835&tin=02508201610067®Number=0000000000091573&sum=60021 [20:34:40]written 0, free lines is 4095 [20:34:40]OFD Sender: Processing packet 76934 [packets to send 129, broken 128] [20:34:40]ProducePacketName [20:34:40]name=ofd_packets/00076934 [20:34:40]OFD Sender: To server: pG, [20:34:40]CommunicateWithHost lk.salyk.kg:30040 [20:34:40]ConnectInit lk.salyk.kg [20:34:40]Connected sock=11 [20:34:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 71 A0 07 01 0C 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 68 24 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 75 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 75 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 75 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 5F 78 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 86 2C 01 00 35 04 06 00 C5 DF 60 88 95 B3 E7 54 52 F9 8F 46 8C D3 [20:34:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 70 3E 47 00 74 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 34 36 35 32 10 04 04 00 86 2C 01 00 F4 03 04 00 E3 1F 25 66 B6 04 01 00 00 E7 F3 9A 01 03 87 C3 82 [20:34:40]CommunicateWithHost err = 0 [20:34:40]CheckOFDResponse [20:34:40]1017 (14) - 77093643461234 [20:34:40]1041 (16) - 0000000000874652 [20:34:40]1040 (4) - 76934 [20:34:40]1012 (4) - 21.04.2024 14:17 [20:34:40]1206 (1) - 0 [20:34:40]OFD Sender: Remove packet 76934 [20:34:40]ProducePacketName [20:34:40]name=ofd_packets/00076934 [20:34:40]NVStorageDeleteData [20:34:40]Write to MH i2c: 01 00 00 54 0D 61 [20:34:40]Write i2c OK [20:34:40]MH_I2C_Read... [20:34:40]Read from MH i2c: 01 [20:34:40]MH_I2C_Read... [20:34:40]Read from MH i2c: 01 07 00 [20:34:40]MH_I2C_Read... [20:34:40]Read from MH i2c: 01 07 00 54 0D 00 00 00 00 00 F2 0C 66 [20:34:40]RasterBufferAndPrint [20:34:40]line [20:34:40]line [20:34:40]line [20:34:40]line [20:34:40]line [20:34:40]written 0, free lines is 3320 [20:34:40]MH_Cut [20:34:40]Write to MH i2c: D1 01 00 5B 0D 01 3A [20:34:40]Write i2c OK [20:34:40]MH_I2C_Read... [20:34:40]Read from MH i2c: D1 [20:34:40]MH_I2C_Read... [20:34:40]Read from MH i2c: D1 01 00 [20:34:40]MH_I2C_Read... [20:34:40]Read from MH i2c: D1 01 00 5B 0D 00 39 [20:34:40]Write to MH i2c: 01 00 00 5C 0D 69 [20:34:40]Write i2c OK [20:34:40]MH_I2C_Read... [20:34:41]OFD Sender: No OFD packet to send [20:34:41]*** Cut start [20:34:41]*** Partial cut [20:34:41]*** CUTSNS_PIN = 1 [20:34:41]*** CUTSNS_PIN = 0 [20:34:41]*** Brake cut motor [20:34:41]Read from MH i2c: 01 [20:34:41]MH_I2C_Read... [20:34:41]*** Stop cut motor [20:34:41]*** Cut end [20:34:41]Read from MH i2c: 01 07 00 [20:34:41]MH_I2C_Read... [20:34:41]Read from MH i2c: 01 07 00 5C 0D 00 00 00 00 00 FF 0F 7E [20:34:41]process_action close_receipt done [20:34:41]requested_data is exist [20:34:41]produce_requested_data [20:34:41]requested_item fm.sn is exist - process it [20:34:41]wFMCommunicate request_size=4 [20:34:41]MH_SAM_APDU [20:34:41]CAPDU: 80 11 00 00 [20:34:41]Write to MH i2c: E2 08 00 5D 0D 80 11 00 00 00 00 00 00 E4 [20:34:41]Write i2c OK [20:34:41]MH_I2C_Read... [20:34:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:34:42]Read from MH i2c: E2 [20:34:42]MH_I2C_Read... [20:34:42]Read from MH i2c: E2 17 00 [20:34:42]MH_I2C_Read... [20:34:42]Read from MH i2c: E2 17 00 5D 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 37 [20:34:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:34:42]wFMCommunicate OK [20:34:42]requested_item fd.num is exist - process it [20:34:42]SAM_PROTO_GetFieldsCounters [20:34:42]wFMCommunicate request_size=4 [20:34:42]MH_SAM_APDU [20:34:42]CAPDU: 80 13 00 00 [20:34:42]Write to MH i2c: E2 08 00 5E 0D 80 13 00 00 00 00 00 00 E7 [20:34:42]Write i2c OK [20:34:42]MH_I2C_Read... [20:34:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:34:42]Read from MH i2c: E2 [20:34:42]MH_I2C_Read... [20:34:42]Read from MH i2c: E2 62 00 [20:34:42]MH_I2C_Read... [20:34:42]Read from MH i2c: E2 62 00 5E 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 86 2C 01 00 0E 04 04 00 74 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 6A [20:34: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 86 2C 01 00 0E 04 04 00 74 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 [20:34:42]wFMCommunicate OK [20:34:42]SAM_PROTO_GetFieldsCounters done [20:34:42]requested_item shift.num is exist - process it [20:34:42]requested_item shift.opened is exist - process it [20:34:42]req_shift_opened [20:34:42]FM_GetShiftState [20:34:42]SAM_PROTO_GetShiftState [20:34:42]wFMCommunicate request_size=4 [20:34:42]MH_SAM_APDU [20:34:42]CAPDU: 80 13 01 00 [20:34:42]Write to MH i2c: E2 08 00 5F 0D 80 13 01 00 00 00 00 00 E9 [20:34:42]Write i2c OK [20:34:42]MH_I2C_Read... [20:34:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:34:42]Read from MH i2c: E2 [20:34:42]MH_I2C_Read... [20:34:42]Read from MH i2c: E2 0E 00 [20:34:42]MH_I2C_Read... [20:34:42]Read from MH i2c: E2 0E 00 5F 0D 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 30 [20:34:42]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [20:34:42]wFMCommunicate OK [20:34:42]SAM_PROTO_GetShiftState done [20:34:42]FM_GetShiftState done [20:34:42]req_shift_opened done [20:34:42]requested_item shift.open_date is exist - process it [20:34:42]req_shift_open_date [20:34:42]req_shift_open_date done [20:34:42]produce_requested_data done [20:34:42]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76934,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [20:34:42]process_action_free close_receipt [20:34:42]json_value_free [20:34:42]json_value_free done [20:34:42]process_json_proto returns [20:34:42]Send response to host [20:34:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76934,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [20:34:42]free response buf [20:34:42]execute_script done [20:34:42]execute_script returns [20:34:42]free content buf [20:34:42]Sock 8.Close socket [20:34:42]Sock 8.Thread stoped [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:37]accept exits with 9 [20:35:37]New connection [20:35:37]New thread 3066944868 created [20:35:37]Thread 3066801508 joined [20:35:37]Waiting for new connection... [20:35:37] Sock 9.Parse request [20:35:37]Sock 9.Check first char [20:35:37]Sock 9.First char is OK [20:35:37]request: POST /json_proto HTTP/1.0 [20:35:37]Method: POST [20:35:37]URL: /json_proto [20:35:37]Method is POST - this is cgi request [20:35:37]url: /json_proto [20:35:37]query_string will be loaded in cgi processing [20:35:37]execute_cgi json_proto POST (null) [20:35:37]execute_cgi path=json_proto method=POST [20:35:37]POST find Content-Length [20:35:37]Host: 172.17.62.5:8080 [20:35:37]Content-Length: 677 [20:35:37]Content-Type: application/json [20:35:37] [20:35:37]POST finish read [20:35:37]Found Content-Length = 677 [20:35:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191482", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 4.660, "sum" : 300.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:35:37]execute_script... [20:35: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)191482", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 4.660, "sum" : 300.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:35:37]POST & json_proto [20:35:37]process_json_proto [20:35:37]json parsed OK: [20:35:37]protocol is kg_v1.0 [20:35:37]action value=close_receipt [20:35:37]process_action close_receipt [20:35:37]cmd_close_receipt [20:35:37]MH_GetDate [20:35:37]Write to MH i2c: F0 00 00 60 0D 5C [20:35:37]Write i2c OK [20:35:37]MH_I2C_Read... [20:35:37]Read from MH i2c: F0 [20:35:37]MH_I2C_Read... [20:35:37]Read from MH i2c: F0 09 00 [20:35:37]MH_I2C_Read... [20:35:37]Read from MH i2c: F0 09 00 60 0D 00 9A 78 25 66 F4 E9 65 64 A8 [20:35:37]GetLastDocTimeStamp 1713731679 [20:35:37]current date 1713731738 [20:35:37]FM_GetShiftState [20:35:37]SAM_PROTO_GetShiftState [20:35:37]wFMCommunicate request_size=4 [20:35:37]MH_SAM_APDU [20:35:37]CAPDU: 80 13 01 00 [20:35:37]Write to MH i2c: E2 08 00 61 0D 80 13 01 00 00 00 00 00 EB [20:35:37]Write i2c OK [20:35:37]MH_I2C_Read... [20:35:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:35:37]Read from MH i2c: E2 [20:35:37]MH_I2C_Read... [20:35:37]Read from MH i2c: E2 0E 00 [20:35:37]MH_I2C_Read... [20:35:37]Read from MH i2c: E2 0E 00 61 0D 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 32 [20:35:37]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [20:35:37]wFMCommunicate OK [20:35:37]SAM_PROTO_GetShiftState done [20:35:37]FM_GetShiftState done [20:35:37]opened in 1713658965 [20:35:37]opened+sec_in_day 1713745365 [20:35:37]quantity*price = 30010 [20:35:37]sum+1 = 30011 [20:35:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 191 21.04.2024 20:35 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76935 ФПД: 182363116464461 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T203538&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76935&fm=182363116464461&tin=02508201610067®Number=0000000000091573&sum=30000 [20:35:38]StoreToDocumentArchive [20:35:38]shift 372 fd 76935 [20:35:38]save to /storage/0372/doc_00076935 [20:35:38]save last doc name /storage/0372/doc_00076935 to /storage/kkm_last_doc_name [20:35:38]save OK [20:35:38]Clear old archive folders... [20:35:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:35:38]tlvbuf is 00CB2280 [20:35:38]SAM_PROTO_ClearQueue [20:35:38]wFMCommunicate request_size=4 [20:35:38]MH_SAM_APDU [20:35:38]CAPDU: 80 09 00 00 [20:35:38]Write to MH i2c: E2 08 00 6E 0D 80 09 00 00 00 00 00 00 ED [20:35:38]Write i2c OK [20:35:38]MH_I2C_Read... [20:35:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:35:38]Read from MH i2c: E2 [20:35:38]MH_I2C_Read... [20:35:38]Read from MH i2c: E2 03 00 [20:35:38]MH_I2C_Read... [20:35:38]Read from MH i2c: E2 03 00 6E 0D 00 90 00 EF [20:35:38]RAPDU: 90 00 [20:35:38]wFMCommunicate OK [20:35:38]SAM_PROTO_ClearQueue done [20:35:38]KKMCreateOFDPacket [20:35:38]OFDProtocolAddRootSTLVToBuf [20:35:38]FM_MakeSignedData [20:35:38]FM_MakeSignedData [20:35:38]SAM_PROTO_SignData [20:35:38]wFMCommunicate request_size=4 [20:35:38]MH_SAM_APDU [20:35:38]CAPDU: 80 0D 01 02 [20:35:38]Write to MH i2c: E2 08 00 6F 0D 80 0D 01 02 00 00 00 00 F5 [20:35:38]Write i2c OK [20:35:38]MH_I2C_Read... [20:35:38]Read from MH i2c: E2 [20:35:38]MH_I2C_Read... [20:35:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:35:38]Read from MH i2c: E2 03 00 [20:35:38]MH_I2C_Read... [20:35:38]Read from MH i2c: E2 03 00 6F 0D 00 90 00 F0 [20:35:38]RAPDU: 90 00 [20:35:38]wFMCommunicate OK [20:35:38]wFMCommunicate request_size=255 [20:35:38]MH_SAM_APDU [20:35: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 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BF 00 00 00 F4 03 04 00 9A 78 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 87 2C 01 00 35 04 06 00 A5 [20:35:38]Write to MH i2c: E2 02 01 70 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 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BF 00 00 00 F4 03 04 00 9A 78 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 87 2C 01 00 35 04 06 00 A5 00 00 33 [20:35:38]Write i2c OK [20:35:38]MH_I2C_Read... [20:35:39]Read from MH i2c: E2 [20:35:39]MH_I2C_Read... [20:35:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:35:39]Read from MH i2c: E2 03 00 [20:35:39]MH_I2C_Read... [20:35:39]Read from MH i2c: E2 03 00 70 0D 00 90 00 F1 [20:35:39]RAPDU: 90 00 [20:35:39]wFMCommunicate OK [20:35:39]wFMCommunicate request_size=10 [20:35:39]MH_SAM_APDU [20:35:39]CAPDU: 80 0D 02 02 05 DB B8 C6 E9 4D [20:35:39]Write to MH i2c: E2 0D 00 71 0D 80 0D 02 02 05 00 DB B8 C6 E9 4D 00 00 91 [20:35:39]Write i2c OK [20:35:39]MH_I2C_Read... [20:35:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:35:39]Read from MH i2c: E2 [20:35:39]MH_I2C_Read... [20:35:39]Read from MH i2c: E2 03 00 [20:35:39]MH_I2C_Read... [20:35:39]Read from MH i2c: E2 03 00 71 0D 00 90 00 F2 [20:35:39]RAPDU: 90 00 [20:35:39]wFMCommunicate OK [20:35:39]wFMCommunicate request_size=4 [20:35:39]MH_SAM_APDU [20:35:39]CAPDU: 80 0D 03 02 [20:35:39]Write to MH i2c: E2 08 00 72 0D 80 0D 03 02 00 00 00 00 FA [20:35:39]Write i2c OK [20:35:39]MH_I2C_Read... [20:35:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:35:39]Read from MH i2c: E2 [20:35:39]MH_I2C_Read... [20:35:39]Read from MH i2c: E2 0B 00 [20:35:39]MH_I2C_Read... [20:35:39]Read from MH i2c: E2 0B 00 72 0D 00 D3 5B 24 3A B1 B0 69 EE 90 00 3F [20:35:39]RAPDU: D3 5B 24 3A B1 B0 69 EE 90 00 [20:35:39]wFMCommunicate OK [20:35:39]SAM_PROTO_SignData done [20:35:39]FM_MakeSignedData done [20:35:39]CreateOFDProtocolMessage [20:35:39]wFMCommunicate request_size=4 [20:35:39]MH_SAM_APDU [20:35:39]CAPDU: 80 11 00 00 [20:35:39]Write to MH i2c: E2 08 00 73 0D 80 11 00 00 00 00 00 00 FA [20:35:39]Write i2c OK [20:35:39]MH_I2C_Read... [20:35:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:35:39]Read from MH i2c: E2 [20:35:39]MH_I2C_Read... [20:35:39]Read from MH i2c: E2 17 00 [20:35:39]MH_I2C_Read... [20:35:39]Read from MH i2c: E2 17 00 73 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 4D [20:35:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:35:39]wFMCommunicate OK [20:35:39]CreateOFDProtocolMessage done [20:35:39]OFDSenderStorePacket 76935 [20:35:39]StoreOFDPacket docnum=76935 [20:35:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 28 88 07 01 C4 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BF 00 00 00 F4 03 04 00 9A 78 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 87 2C 01 00 35 04 06 00 A5 DB B8 C6 E9 4D D3 5B 24 3A B1 B0 69 EE [20:35:39]CheckFolder [20:35:39]dirname=/storage/ofd_packets [20:35:39]CheckFolder done [20:35:39]ProducePacketName [20:35:39]name=ofd_packets/00076935 [20:35:39]NVStorageSaveData ofd_packets/00076935 [20:35:39]File name is /storage/ofd_packets/00076935 [20:35:39]Write 301 bytes [20:35:39]NVStorageSaveData done [20:35:39]OFDSenderStorePacket done [20:35:39]KKMCreateOFDPacket done [20:35:39]NVStorageSaveData kkm_last_timestamp [20:35:39]File name is /storage/kkm_last_timestamp [20:35:39]Write 4 bytes [20:35:39]NVStorageSaveData done [20:35:39]ExternCall_PrintAddStr [20:35:39]wPrintStart [20:35:39]Write to MH i2c: 01 00 00 74 0D 81 [20:35:39]Write i2c OK [20:35:39]MH_I2C_Read... [20:35:39]Read from MH i2c: 01 [20:35:39]MH_I2C_Read... [20:35:39]Read from MH i2c: 01 07 00 [20:35:39]MH_I2C_Read... [20:35:39]Read from MH i2c: 01 07 00 74 0D 00 00 00 00 00 FF 0F 96 [20:35:39]RasterBufferAndPrint [20:35:39]line Счет N : (1)191482 [20:35:39]line ИНН: 02508201610067 [20:35:39]line Контрольно-Кассовый Чек [20:35:39]line ПРОДАЖА [20:35:39]line ТРК (МРК, ГНК) : 43 [20:35:39]line Товар: 2710124130 [20:35:39]line Аи-92-К-5 [20:35:39]line 4.660 * 64.40 [20:35:39]line = 300.10 [20:35:39]line НДС 12% НСП 1% [20:35:39]line > о реализуемом товаре [20:35:39]line ОКРУГЛЕНИЕ: -0.10 [20:35:39]line ИТОГО: 300.00 [20:35:39]line Внесено: 300.00 [20:35:39]line СДАЧА: 0.00 [20:35:39]line НСП 1% : 2.66 [20:35:39]line НДС 12% : 31.87 [20:35:39]line Наличными: 300.00 [20:35:39]line Безнал.: 0.00 [20:35:39]line Место: АЗС № 106 "Партнер Нефть" [20:35:39]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [20:35:39]line СНО: Общий режим [20:35:39]line Чек 191 21.04.2024 20:35 [20:35:39]line Смена: 372 ФФД: 1.0 [20:35:39]line ЗНМ: 0300000141 [20:35:39]line РНМ: 0000000000091573 [20:35:39]line Версия ККМ: 001 [20:35:39]line ФМ: 0000000000874652 [20:35:39]line ФД: 76935 [20:35:39]line ФПД: 182363116464461 [20:35:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T203538&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76935&fm=182363116464461&tin=02508201610067®Number=0000000000091573&sum=30000 [20:35:39]OFD Sender: Processing packet 76935 [packets to send 129, broken 128] [20:35:39]ProducePacketName [20:35:39]name=ofd_packets/00076935 [20:35:39]OFD Sender: To server: pG, [20:35:39]CommunicateWithHost lk.salyk.kg:30040 [20:35:39]ConnectInit lk.salyk.kg [20:35:39]written 0, free lines is 4095 [20:35:39]Connected sock=10 [20:35:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 28 88 07 01 C4 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BF 00 00 00 F4 03 04 00 9A 78 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 87 2C 01 00 35 04 06 00 A5 DB B8 C6 E9 4D D3 5B 24 3A B1 B0 69 EE [20:35:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 6F 7E 47 00 43 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 34 36 35 32 10 04 04 00 87 2C 01 00 F4 03 04 00 1F 20 25 66 B6 04 01 00 00 40 56 5C 87 49 05 9D F5 [20:35:40]CommunicateWithHost err = 0 [20:35:40]CheckOFDResponse [20:35:40]1017 (14) - 77093643461234 [20:35:40]1041 (16) - 0000000000874652 [20:35:40]1040 (4) - 76935 [20:35:40]1012 (4) - 21.04.2024 14:18 [20:35:40]1206 (1) - 0 [20:35:40]OFD Sender: Remove packet 76935 [20:35:40]ProducePacketName [20:35:40]name=ofd_packets/00076935 [20:35:40]NVStorageDeleteData [20:35:40]Write to MH i2c: 01 00 00 9E 0D AB [20:35:40]Write i2c OK [20:35:40]MH_I2C_Read... [20:35:40]Read from MH i2c: 01 [20:35:40]MH_I2C_Read... [20:35:40]Read from MH i2c: 01 07 00 [20:35:40]MH_I2C_Read... [20:35:40]Read from MH i2c: 01 07 00 9E 0D 00 00 00 00 00 F2 0C B0 [20:35:40]RasterBufferAndPrint [20:35:40]line [20:35:40]line [20:35:40]line [20:35:40]line [20:35:40]line [20:35:40]written 0, free lines is 3322 [20:35:40]MH_Cut [20:35:40]Write to MH i2c: D1 01 00 A5 0D 01 84 [20:35:40]Write i2c OK [20:35:40]MH_I2C_Read... [20:35:40]Read from MH i2c: D1 [20:35:40]MH_I2C_Read... [20:35:40]Read from MH i2c: D1 01 00 [20:35:40]MH_I2C_Read... [20:35:40]Read from MH i2c: D1 01 00 A5 0D 00 83 [20:35:40]Write to MH i2c: 01 00 00 A6 0D B3 [20:35:40]Write i2c OK [20:35:40]MH_I2C_Read... [20:35:40]OFD Sender: No OFD packet to send [20:35:40]*** Cut start [20:35:40]*** Partial cut [20:35:40]*** CUTSNS_PIN = 1 [20:35:40]*** CUTSNS_PIN = 0 [20:35:41]*** Brake cut motor [20:35:41]Read from MH i2c: 01 [20:35:41]MH_I2C_Read... [20:35:41]*** Stop cut motor [20:35:41]*** Cut end [20:35:41]Read from MH i2c: 01 07 00 [20:35:41]MH_I2C_Read... [20:35:41]Read from MH i2c: 01 07 00 A6 0D 00 00 00 00 00 FF 0F C8 [20:35:41]process_action close_receipt done [20:35:41]requested_data is exist [20:35:41]produce_requested_data [20:35:41]requested_item fm.sn is exist - process it [20:35:41]wFMCommunicate request_size=4 [20:35:41]MH_SAM_APDU [20:35:41]CAPDU: 80 11 00 00 [20:35:41]Write to MH i2c: E2 08 00 A7 0D 80 11 00 00 00 00 00 00 2E [20:35:41]Write i2c OK [20:35:41]MH_I2C_Read... [20:35:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:35:41]Read from MH i2c: E2 [20:35:41]MH_I2C_Read... [20:35:41]Read from MH i2c: E2 17 00 [20:35:41]MH_I2C_Read... [20:35:41]Read from MH i2c: E2 17 00 A7 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 81 [20:35:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:35:41]wFMCommunicate OK [20:35:41]requested_item fd.num is exist - process it [20:35:41]SAM_PROTO_GetFieldsCounters [20:35:41]wFMCommunicate request_size=4 [20:35:41]MH_SAM_APDU [20:35:41]CAPDU: 80 13 00 00 [20:35:41]Write to MH i2c: E2 08 00 A8 0D 80 13 00 00 00 00 00 00 31 [20:35:41]Write i2c OK [20:35:41]MH_I2C_Read... [20:35:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:35:41]Read from MH i2c: E2 [20:35:41]MH_I2C_Read... [20:35:41]Read from MH i2c: E2 62 00 [20:35:41]MH_I2C_Read... [20:35:41]Read from MH i2c: E2 62 00 A8 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 87 2C 01 00 0E 04 04 00 74 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 B8 [20:35: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 87 2C 01 00 0E 04 04 00 74 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 [20:35:41]wFMCommunicate OK [20:35:41]SAM_PROTO_GetFieldsCounters done [20:35:41]requested_item shift.num is exist - process it [20:35:41]requested_item shift.opened is exist - process it [20:35:41]req_shift_opened [20:35:41]FM_GetShiftState [20:35:41]SAM_PROTO_GetShiftState [20:35:41]wFMCommunicate request_size=4 [20:35:41]MH_SAM_APDU [20:35:41]CAPDU: 80 13 01 00 [20:35:41]Write to MH i2c: E2 08 00 A9 0D 80 13 01 00 00 00 00 00 33 [20:35:41]Write i2c OK [20:35:41]MH_I2C_Read... [20:35:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:35:41]Read from MH i2c: E2 [20:35:41]MH_I2C_Read... [20:35:41]Read from MH i2c: E2 0E 00 [20:35:41]MH_I2C_Read... [20:35:41]Read from MH i2c: E2 0E 00 A9 0D 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 7A [20:35:41]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [20:35:41]wFMCommunicate OK [20:35:41]SAM_PROTO_GetShiftState done [20:35:41]FM_GetShiftState done [20:35:41]req_shift_opened done [20:35:41]requested_item shift.open_date is exist - process it [20:35:41]req_shift_open_date [20:35:41]req_shift_open_date done [20:35:41]produce_requested_data done [20:35:41]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76935,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [20:35:41]process_action_free close_receipt [20:35:41]json_value_free [20:35:41]json_value_free done [20:35:41]process_json_proto returns [20:35:41]Send response to host [20:35:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76935,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [20:35:41]free response buf [20:35:41]execute_script done [20:35:41]execute_script returns [20:35:41]free content buf [20:35:41]Sock 9.Close socket [20:35:41]Sock 9.Thread stoped [20:35:45]OFD Sender: No OFD packet to send [20:35:50]OFD Sender: No OFD packet to send [20:35:55]OFD Sender: No OFD packet to send [20:36:00]OFD Sender: No OFD packet to send [20:36:05]OFD Sender: No OFD packet to send [20:36:06]accept exits with 8 [20:36:06]New connection [20:36:06]New thread 3066801508 created [20:36:06]Thread 3066944868 joined [20:36:06]Waiting for new connection... [20:36:06] Sock 8.Parse request [20:36:06]Sock 8.Check first char [20:36:06]Sock 8.First char is OK [20:36:06]request: POST /json_proto HTTP/1.0 [20:36:06]Method: POST [20:36:06]URL: /json_proto [20:36:06]Method is POST - this is cgi request [20:36:06]url: /json_proto [20:36:06]query_string will be loaded in cgi processing [20:36:06]execute_cgi json_proto POST (null) [20:36:06]execute_cgi path=json_proto method=POST [20:36:06]POST find Content-Length [20:36:06]Host: 172.17.62.5:8080 [20:36:06]Content-Length: 679 [20:36:06]Content-Type: application/json [20:36:06] [20:36:06]POST finish read [20:36:06]Found Content-Length = 679 [20:36:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191484", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:06]execute_script... [20:36: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)191484", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:06]POST & json_proto [20:36:06]process_json_proto [20:36:06]json parsed OK: [20:36:06]protocol is kg_v1.0 [20:36:06]action value=close_receipt [20:36:06]process_action close_receipt [20:36:06]cmd_close_receipt [20:36:06]MH_GetDate [20:36:06]Write to MH i2c: F0 00 00 AA 0D A6 [20:36:06]Write i2c OK [20:36:06]MH_I2C_Read... [20:36:06]Read from MH i2c: F0 [20:36:06]MH_I2C_Read... [20:36:06]Read from MH i2c: F0 09 00 [20:36:06]MH_I2C_Read... [20:36:06]Read from MH i2c: F0 09 00 AA 0D 00 B7 78 25 66 F4 E9 65 64 0F [20:36:06]GetLastDocTimeStamp 1713731738 [20:36:06]current date 1713731767 [20:36:06]FM_GetShiftState [20:36:06]SAM_PROTO_GetShiftState [20:36:06]wFMCommunicate request_size=4 [20:36:06]MH_SAM_APDU [20:36:06]CAPDU: 80 13 01 00 [20:36:06]Write to MH i2c: E2 08 00 AB 0D 80 13 01 00 00 00 00 00 35 [20:36:06]Write i2c OK [20:36:06]MH_I2C_Read... [20:36:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:06]Read from MH i2c: E2 [20:36:06]MH_I2C_Read... [20:36:06]Read from MH i2c: E2 0E 00 [20:36:06]MH_I2C_Read... [20:36:06]Read from MH i2c: E2 0E 00 AB 0D 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 7C [20:36:06]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [20:36:06]wFMCommunicate OK [20:36:06]SAM_PROTO_GetShiftState done [20:36:06]FM_GetShiftState done [20:36:06]opened in 1713658965 [20:36:06]opened+sec_in_day 1713745365 [20:36:06]quantity*price = 100018 [20:36:06]sum+1 = 100020 [20:36:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 192 21.04.2024 20:36 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76936 ФПД: 95078706106544 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T203607&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76936&fm=95078706106544&tin=02508201610067®Number=0000000000091573&sum=100000 [20:36:07]StoreToDocumentArchive [20:36:07]shift 372 fd 76936 [20:36:07]save to /storage/0372/doc_00076936 [20:36:07]save last doc name /storage/0372/doc_00076936 to /storage/kkm_last_doc_name [20:36:07]save OK [20:36:07]Clear old archive folders... [20:36:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:36:07]tlvbuf is 00C92A80 [20:36:07]SAM_PROTO_ClearQueue [20:36:07]wFMCommunicate request_size=4 [20:36:07]MH_SAM_APDU [20:36:07]CAPDU: 80 09 00 00 [20:36:07]Write to MH i2c: E2 08 00 B8 0D 80 09 00 00 00 00 00 00 37 [20:36:07]Write i2c OK [20:36:07]MH_I2C_Read... [20:36:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:36:07]Read from MH i2c: E2 [20:36:07]MH_I2C_Read... [20:36:07]Read from MH i2c: E2 03 00 [20:36:07]MH_I2C_Read... [20:36:07]Read from MH i2c: E2 03 00 B8 0D 00 90 00 39 [20:36:07]RAPDU: 90 00 [20:36:07]wFMCommunicate OK [20:36:07]SAM_PROTO_ClearQueue done [20:36:07]KKMCreateOFDPacket [20:36:07]OFDProtocolAddRootSTLVToBuf [20:36:07]FM_MakeSignedData [20:36:07]FM_MakeSignedData [20:36:07]SAM_PROTO_SignData [20:36:07]wFMCommunicate request_size=4 [20:36:07]MH_SAM_APDU [20:36:07]CAPDU: 80 0D 01 02 [20:36:07]Write to MH i2c: E2 08 00 B9 0D 80 0D 01 02 00 00 00 00 3F [20:36:07]Write i2c OK [20:36:07]MH_I2C_Read... [20:36:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:36:07]Read from MH i2c: E2 [20:36:07]MH_I2C_Read... [20:36:07]Read from MH i2c: E2 03 00 [20:36:07]MH_I2C_Read... [20:36:07]Read from MH i2c: E2 03 00 B9 0D 00 90 00 3A [20:36:07]RAPDU: 90 00 [20:36:07]wFMCommunicate OK [20:36:07]wFMCommunicate request_size=255 [20:36:07]MH_SAM_APDU [20:36:07]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 C0 00 00 00 F4 03 04 00 B7 78 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 88 2C 01 00 35 04 06 00 56 79 3C 80 [20:36:07]Write to MH i2c: E2 02 01 BA 0D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 B7 78 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 88 2C 01 00 35 04 06 00 56 79 3C 80 00 00 D4 [20:36:07]Write i2c OK [20:36:07]MH_I2C_Read... [20:36:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:07]Read from MH i2c: E2 [20:36:07]MH_I2C_Read... [20:36:07]Read from MH i2c: E2 03 00 [20:36:07]MH_I2C_Read... [20:36:07]Read from MH i2c: E2 03 00 BA 0D 00 90 00 3B [20:36:07]RAPDU: 90 00 [20:36:07]wFMCommunicate OK [20:36:07]wFMCommunicate request_size=7 [20:36:07]MH_SAM_APDU [20:36:07]CAPDU: 80 0D 02 02 02 D0 B0 [20:36:07]Write to MH i2c: E2 0A 00 BB 0D 80 0D 02 02 02 00 D0 B0 00 00 C6 [20:36:07]Write i2c OK [20:36:07]MH_I2C_Read... [20:36:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:07]Read from MH i2c: E2 [20:36:07]MH_I2C_Read... [20:36:07]Read from MH i2c: E2 03 00 [20:36:07]MH_I2C_Read... [20:36:07]Read from MH i2c: E2 03 00 BB 0D 00 90 00 3C [20:36:07]RAPDU: 90 00 [20:36:07]wFMCommunicate OK [20:36:07]wFMCommunicate request_size=4 [20:36:07]MH_SAM_APDU [20:36:07]CAPDU: 80 0D 03 02 [20:36:07]Write to MH i2c: E2 08 00 BC 0D 80 0D 03 02 00 00 00 00 44 [20:36:07]Write i2c OK [20:36:07]MH_I2C_Read... [20:36:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:36:07]Read from MH i2c: E2 [20:36:07]MH_I2C_Read... [20:36:07]Read from MH i2c: E2 0B 00 [20:36:07]MH_I2C_Read... [20:36:07]Read from MH i2c: E2 0B 00 BC 0D 00 1C ED 08 9C FB FE 99 D8 90 00 5C [20:36:07]RAPDU: 1C ED 08 9C FB FE 99 D8 90 00 [20:36:07]wFMCommunicate OK [20:36:07]SAM_PROTO_SignData done [20:36:07]FM_MakeSignedData done [20:36:07]CreateOFDProtocolMessage [20:36:07]wFMCommunicate request_size=4 [20:36:07]MH_SAM_APDU [20:36:07]CAPDU: 80 11 00 00 [20:36:07]Write to MH i2c: E2 08 00 BD 0D 80 11 00 00 00 00 00 00 44 [20:36:07]Write i2c OK [20:36:07]MH_I2C_Read... [20:36:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:07]Read from MH i2c: E2 [20:36:07]MH_I2C_Read... [20:36:07]Read from MH i2c: E2 17 00 [20:36:07]MH_I2C_Read... [20:36:07]Read from MH i2c: E2 17 00 BD 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 97 [20:36:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:36:07]wFMCommunicate OK [20:36:07]CreateOFDProtocolMessage done [20:36:07]OFDSenderStorePacket 76936 [20:36:07]StoreOFDPacket docnum=76936 [20:36:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 8F AE 04 01 56 D1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 C0 00 00 00 F4 03 04 00 B7 78 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 88 2C 01 00 35 04 06 00 56 79 3C 80 D0 B0 1C ED 08 9C FB FE 99 D8 [20:36:07]CheckFolder [20:36:07]dirname=/storage/ofd_packets [20:36:07]CheckFolder done [20:36:07]ProducePacketName [20:36:07]name=ofd_packets/00076936 [20:36:07]NVStorageSaveData ofd_packets/00076936 [20:36:07]File name is /storage/ofd_packets/00076936 [20:36:07]Write 298 bytes [20:36:07]NVStorageSaveData done [20:36:07]OFDSenderStorePacket done [20:36:07]KKMCreateOFDPacket done [20:36:07]NVStorageSaveData kkm_last_timestamp [20:36:07]File name is /storage/kkm_last_timestamp [20:36:07]Write 4 bytes [20:36:07]NVStorageSaveData done [20:36:07]ExternCall_PrintAddStr [20:36:07]wPrintStart [20:36:07]Write to MH i2c: 01 00 00 BE 0D CB [20:36:07]Write i2c OK [20:36:07]MH_I2C_Read... [20:36:07]Read from MH i2c: 01 [20:36:07]MH_I2C_Read... [20:36:07]Read from MH i2c: 01 07 00 [20:36:07]MH_I2C_Read... [20:36:07]Read from MH i2c: 01 07 00 BE 0D 00 00 00 00 00 FF 0F E0 [20:36:07]RasterBufferAndPrint [20:36:07]line Счет N : (1)191484 [20:36:07]line ИНН: 02508201610067 [20:36:07]line Контрольно-Кассовый Чек [20:36:07]line ПРОДАЖА [20:36:07]line ТРК (МРК, ГНК) : 61 [20:36:07]line Товар: 2710194210 [20:36:07]line ДТ-К-5 [20:36:07]line 13.720 * 72.90 [20:36:07]line = 1000.19 [20:36:07]line НДС 12% НСП 1% [20:36:07]line > о реализуемом товаре [20:36:07]line ОКРУГЛЕНИЕ: -0.19 [20:36:07]line ИТОГО: 1000.00 [20:36:07]line Внесено: 1000.00 [20:36:07]line СДАЧА: 0.00 [20:36:07]line НСП 1% : 8.85 [20:36:07]line НДС 12% : 106.21 [20:36:07]line Наличными: 1000.00 [20:36:07]line Безнал.: 0.00 [20:36:07]line Место: АЗС № 106 "Партнер Нефть" [20:36:07]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [20:36:07]line СНО: Общий режим [20:36:07]line Чек 192 21.04.2024 20:36 [20:36:07]line Смена: 372 ФФД: 1.0 [20:36:07]line ЗНМ: 0300000141 [20:36:07]line РНМ: 0000000000091573 [20:36:07]line Версия ККМ: 001 [20:36:07]line ФМ: 0000000000874652 [20:36:07]line ФД: 76936 [20:36:07]line ФПД: 95078706106544 [20:36:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T203607&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76936&fm=95078706106544&tin=02508201610067®Number=0000000000091573&sum=100000 [20:36:08]OFD Sender: Processing packet 76936 [packets to send 129, broken 128] [20:36:08]ProducePacketName [20:36:08]name=ofd_packets/00076936 [20:36:08]OFD Sender: To server: pG, [20:36:08]CommunicateWithHost lk.salyk.kg:30040 [20:36:08]ConnectInit lk.salyk.kg [20:36:08]written 0, free lines is 4095 [20:36:08]Connected sock=10 [20:36:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 8F AE 04 01 56 D1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 C0 00 00 00 F4 03 04 00 B7 78 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 88 2C 01 00 35 04 06 00 56 79 3C 80 D0 B0 1C ED 08 9C FB FE 99 D8 [20:36:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 C4 F7 47 00 7D 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 34 36 35 32 10 04 04 00 88 2C 01 00 F4 03 04 00 3B 20 25 66 B6 04 01 00 00 F3 9B 73 B3 4B F3 E0 C6 [20:36:08]CommunicateWithHost err = 0 [20:36:08]CheckOFDResponse [20:36:08]1017 (14) - 77093643461234 [20:36:08]1041 (16) - 0000000000874652 [20:36:08]1040 (4) - 76936 [20:36:08]1012 (4) - 21.04.2024 14:18 [20:36:08]1206 (1) - 0 [20:36:08]OFD Sender: Remove packet 76936 [20:36:08]ProducePacketName [20:36:08]name=ofd_packets/00076936 [20:36:08]NVStorageDeleteData [20:36:08]Write to MH i2c: 01 00 00 E8 0D F5 [20:36:08]Write i2c OK [20:36:08]MH_I2C_Read... [20:36:08]Read from MH i2c: 01 [20:36:08]MH_I2C_Read... [20:36:08]Read from MH i2c: 01 07 00 [20:36:08]MH_I2C_Read... [20:36:08]Read from MH i2c: 01 07 00 E8 0D 00 00 00 00 00 FE 0C 06 [20:36:08]RasterBufferAndPrint [20:36:08]line [20:36:08]line [20:36:08]line [20:36:08]line [20:36:08]line [20:36:08]written 0, free lines is 3335 [20:36:08]MH_Cut [20:36:08]Write to MH i2c: D1 01 00 EF 0D 01 CE [20:36:08]Write i2c OK [20:36:08]MH_I2C_Read... [20:36:08]Read from MH i2c: D1 [20:36:08]MH_I2C_Read... [20:36:08]Read from MH i2c: D1 01 00 [20:36:08]MH_I2C_Read... [20:36:08]Read from MH i2c: D1 01 00 EF 0D 00 CD [20:36:08]Write to MH i2c: 01 00 00 F0 0D FD [20:36:08]Write i2c OK [20:36:08]MH_I2C_Read... [20:36:09]OFD Sender: No OFD packet to send [20:36:09]*** Cut start [20:36:09]*** Partial cut [20:36:09]*** CUTSNS_PIN = 1 [20:36:09]*** CUTSNS_PIN = 0 [20:36:09]*** Brake cut motor [20:36:10]Read from MH i2c: 01 [20:36:10]MH_I2C_Read... [20:36:10]*** Stop cut motor [20:36:10]*** Cut end [20:36:10]Read from MH i2c: 01 07 00 [20:36:10]MH_I2C_Read... [20:36:10]Read from MH i2c: 01 07 00 F0 0D 00 00 00 00 00 FF 0F 12 [20:36:10]process_action close_receipt done [20:36:10]requested_data is exist [20:36:10]produce_requested_data [20:36:10]requested_item fm.sn is exist - process it [20:36:10]wFMCommunicate request_size=4 [20:36:10]MH_SAM_APDU [20:36:10]CAPDU: 80 11 00 00 [20:36:10]Write to MH i2c: E2 08 00 F1 0D 80 11 00 00 00 00 00 00 78 [20:36:10]Write i2c OK [20:36:10]MH_I2C_Read... [20:36:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:10]Read from MH i2c: E2 [20:36:10]MH_I2C_Read... [20:36:10]Read from MH i2c: E2 17 00 [20:36:10]MH_I2C_Read... [20:36:10]Read from MH i2c: E2 17 00 F1 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 CB [20:36:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:36:10]wFMCommunicate OK [20:36:10]requested_item fd.num is exist - process it [20:36:10]SAM_PROTO_GetFieldsCounters [20:36:10]wFMCommunicate request_size=4 [20:36:10]MH_SAM_APDU [20:36:10]CAPDU: 80 13 00 00 [20:36:10]Write to MH i2c: E2 08 00 F2 0D 80 13 00 00 00 00 00 00 7B [20:36:10]Write i2c OK [20:36:10]MH_I2C_Read... [20:36:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:36:10]Read from MH i2c: E2 [20:36:10]MH_I2C_Read... [20:36:10]Read from MH i2c: E2 62 00 [20:36:10]MH_I2C_Read... [20:36:10]Read from MH i2c: E2 62 00 F2 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 88 2C 01 00 0E 04 04 00 74 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 06 [20:36: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 88 2C 01 00 0E 04 04 00 74 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 [20:36:10]wFMCommunicate OK [20:36:10]SAM_PROTO_GetFieldsCounters done [20:36:10]requested_item shift.num is exist - process it [20:36:10]requested_item shift.opened is exist - process it [20:36:10]req_shift_opened [20:36:10]FM_GetShiftState [20:36:10]SAM_PROTO_GetShiftState [20:36:10]wFMCommunicate request_size=4 [20:36:10]MH_SAM_APDU [20:36:10]CAPDU: 80 13 01 00 [20:36:10]Write to MH i2c: E2 08 00 F3 0D 80 13 01 00 00 00 00 00 7D [20:36:10]Write i2c OK [20:36:10]MH_I2C_Read... [20:36:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:10]Read from MH i2c: E2 [20:36:10]MH_I2C_Read... [20:36:10]Read from MH i2c: E2 0E 00 [20:36:10]MH_I2C_Read... [20:36:10]Read from MH i2c: E2 0E 00 F3 0D 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 C4 [20:36:10]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [20:36:10]wFMCommunicate OK [20:36:10]SAM_PROTO_GetShiftState done [20:36:10]FM_GetShiftState done [20:36:10]req_shift_opened done [20:36:10]requested_item shift.open_date is exist - process it [20:36:10]req_shift_open_date [20:36:10]req_shift_open_date done [20:36:10]produce_requested_data done [20:36:10]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76936,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [20:36:10]process_action_free close_receipt [20:36:10]json_value_free [20:36:10]json_value_free done [20:36:10]process_json_proto returns [20:36:10]Send response to host [20:36:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76936,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [20:36:10]free response buf [20:36:10]execute_script done [20:36:10]execute_script returns [20:36:10]free content buf [20:36:10]Sock 8.Close socket [20:36:10]Sock 8.Thread stoped [20:36:14]OFD Sender: No OFD packet to send [20:36:19]OFD Sender: No OFD packet to send [20:36:24]OFD Sender: No OFD packet to send [20:36:29]OFD Sender: No OFD packet to send [20:36:34]OFD Sender: No OFD packet to send [20:36:39]OFD Sender: No OFD packet to send [20:36:44]OFD Sender: No OFD packet to send [20:36:49]OFD Sender: No OFD packet to send [20:36:54]OFD Sender: No OFD packet to send [20:36:59]OFD Sender: No OFD packet to send [20:37:04]OFD Sender: No OFD packet to send [20:37:09]OFD Sender: No OFD packet to send [20:37:14]OFD Sender: No OFD packet to send [20:37:19]OFD Sender: No OFD packet to send [20:37:24]OFD Sender: No OFD packet to send [20:37:29]OFD Sender: No OFD packet to send [20:37:34]OFD Sender: No OFD packet to send [20:37:39]OFD Sender: No OFD packet to send [20:37:44]OFD Sender: No OFD packet to send [20:37:49]OFD Sender: No OFD packet to send [20:37:54]OFD Sender: No OFD packet to send [20:37:59]OFD Sender: No OFD packet to send [20:38:04]OFD Sender: No OFD packet to send [20:38:09]OFD Sender: No OFD packet to send [20:38:14]OFD Sender: No OFD packet to send [20:38:19]OFD Sender: No OFD packet to send [20:38:24]OFD Sender: No OFD packet to send [20:38:29]OFD Sender: No OFD packet to send [20:38:34]OFD Sender: No OFD packet to send [20:38:39]OFD Sender: No OFD packet to send [20:38:44]OFD Sender: No OFD packet to send [20:38:49]OFD Sender: No OFD packet to send [20:38:54]OFD Sender: No OFD packet to send [20:38:59]OFD Sender: No OFD packet to send [20:39:04]OFD Sender: No OFD packet to send [20:39:09]OFD Sender: No OFD packet to send [20:39:14]OFD Sender: No OFD packet to send [20:39:19]OFD Sender: No OFD packet to send [20:39:24]OFD Sender: No OFD packet to send [20:39:29]OFD Sender: No OFD packet to send [20:39:34]OFD Sender: No OFD packet to send [20:39:39]OFD Sender: No OFD packet to send [20:39:44]OFD Sender: No OFD packet to send [20:39:49]OFD Sender: No OFD packet to send [20:39:54]OFD Sender: No OFD packet to send [20:39:59]OFD Sender: No OFD packet to send [20:40:04]OFD Sender: No OFD packet to send [20:40:09]OFD Sender: No OFD packet to send [20:40:14]OFD Sender: No OFD packet to send [20:40:19]OFD Sender: No OFD packet to send [20:40:24]OFD Sender: No OFD packet to send [20:40:29]OFD Sender: No OFD packet to send [20:40:34]OFD Sender: No OFD packet to send [20:40:39]OFD Sender: No OFD packet to send [20:40:44]OFD Sender: No OFD packet to send [20:40:49]OFD Sender: No OFD packet to send [20:40:54]OFD Sender: No OFD packet to send [20:40:59]OFD Sender: No OFD packet to send [20:41:04]OFD Sender: No OFD packet to send [20:41:09]OFD Sender: No OFD packet to send [20:41:14]OFD Sender: No OFD packet to send [20:41:19]OFD Sender: No OFD packet to send [20:41:24]OFD Sender: No OFD packet to send [20:41:29]OFD Sender: No OFD packet to send [20:41:34]OFD Sender: No OFD packet to send [20:41:39]OFD Sender: No OFD packet to send [20:41:44]OFD Sender: No OFD packet to send [20:41:49]OFD Sender: No OFD packet to send [20:41:54]OFD Sender: No OFD packet to send [20:41:59]OFD Sender: No OFD packet to send [20:42:04]OFD Sender: No OFD packet to send [20:42:09]OFD Sender: No OFD packet to send [20:42:14]OFD Sender: No OFD packet to send [20:42:16]accept exits with 9 [20:42:16]New connection [20:42:16]New thread 3066944868 created [20:42:16]Thread 3066801508 joined [20:42:16]Waiting for new connection... [20:42:16] Sock 9.Parse request [20:42:16]Sock 9.Check first char [20:42:16]Sock 9.First char is OK [20:42:16]request: POST /json_proto HTTP/1.0 [20:42:16]Method: POST [20:42:16]URL: /json_proto [20:42:16]Method is POST - this is cgi request [20:42:16]url: /json_proto [20:42:16]query_string will be loaded in cgi processing [20:42:16]execute_cgi json_proto POST (null) [20:42:16]execute_cgi path=json_proto method=POST [20:42:16]POST find Content-Length [20:42:16]Host: 172.17.62.5:8080 [20:42:16]Content-Length: 1181 [20:42:16]Content-Type: application/json [20:42:16] [20:42:16]POST finish read [20:42:16]Found Content-Length = 1181 [20:42:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041B\u044B\u043C\u0430\u0440\u0435\u0432\u0430 \u0412. \u000A\u0421\u0447\u0435\u0442 N : (1)191485\u000A21.04.2024 20:23\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\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: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3731607\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:42:16]execute_script... [20:42:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041B\u044B\u043C\u0430\u0440\u0435\u0432\u0430 \u0412. \u000A\u0421\u0447\u0435\u0442 N : (1)191485\u000A21.04.2024 20:23\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\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: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3731607\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:42:16]POST & json_proto [20:42:16]process_json_proto [20:42:16]json parsed OK: [20:42:16]protocol is kg_v1.0 [20:42:16]action value=print_text [20:42:16]process_action print_text [20:42:16]cmd_print_text [20:42:16]ExternCall_PrintAddStr [20:42:16]wPrintStart [20:42:16]Write to MH i2c: 01 00 00 F4 0D 01 [20:42:16]Write i2c OK [20:42:16]MH_I2C_Read... [20:42:16]Read from MH i2c: 01 [20:42:16]MH_I2C_Read... [20:42:16]Read from MH i2c: 01 07 00 [20:42:16]MH_I2C_Read... [20:42:16]Read from MH i2c: 01 07 00 F4 0D 00 00 00 00 00 FF 0F 16 [20:42:16]RasterBufferAndPrint [20:42:16]line *****ТОВАРНЫЙ ЧЕК***** [20:42:16]line АЗС 106 [20:42:16]line Партнер нефть [20:42:16]line 02508201610067 [20:42:16]line Кассир : Лымарева В. [20:42:16]line Счет N : (1)191485 [20:42:16]line 21.04.2024 20:23 [20:42:16]line ПРОДАЖА [20:42:16]line ТРК (МРК, ГНК): 13 [20:42:16]line Вид ГСМ : 2710194210 [20:42:16]line ДТ-К-5 [20:42:16]line 10.000 x 72.90 [20:42:16]line ИТОГ: 729.00 [20:42:16]line Тип оплаты: Талоны: Партнер нефть [20:42:16]line 3731607 [20:42:16]line ______________________ [20:42:16]line (подпись) [20:42:16]written 0, free lines is 4095 [20:42:16]Write to MH i2c: 01 00 00 08 0E 16 [20:42:16]Write i2c OK [20:42:16]MH_I2C_Read... [20:42:16]Read from MH i2c: 01 [20:42:16]MH_I2C_Read... [20:42:16]Read from MH i2c: 01 07 00 [20:42:16]MH_I2C_Read... [20:42:16]Read from MH i2c: 01 07 00 08 0E 00 00 00 00 00 0F 0E 3A [20:42:16]RasterBufferAndPrint [20:42:16]line [20:42:16]line [20:42:16]line [20:42:16]line [20:42:16]line [20:42:16]written 0, free lines is 3601 [20:42:16]MH_Cut [20:42:16]Write to MH i2c: D1 01 00 0F 0E 01 EF [20:42:16]Write i2c OK [20:42:16]MH_I2C_Read... [20:42:16]Read from MH i2c: D1 [20:42:16]MH_I2C_Read... [20:42:16]Read from MH i2c: D1 01 00 [20:42:16]MH_I2C_Read... [20:42:16]Read from MH i2c: D1 01 00 0F 0E 00 EE [20:42:16]Write to MH i2c: 01 00 00 10 0E 1E [20:42:16]Write i2c OK [20:42:16]MH_I2C_Read... [20:42:17]*** Cut start [20:42:17]*** Partial cut [20:42:17]*** CUTSNS_PIN = 1 [20:42:17]*** CUTSNS_PIN = 0 [20:42:17]*** Brake cut motor [20:42:17]Read from MH i2c: 01 [20:42:17]MH_I2C_Read... [20:42:17]*** Stop cut motor [20:42:17]*** Cut end [20:42:17]Read from MH i2c: 01 07 00 [20:42:17]MH_I2C_Read... [20:42:17]Read from MH i2c: 01 07 00 10 0E 00 00 00 00 00 FF 0F 33 [20:42:17]process_action print_text done [20:42:17]requested_data is exist [20:42:17]produce_requested_data [20:42:17]requested_item fm.sn is exist - process it [20:42:17]wFMCommunicate request_size=4 [20:42:17]MH_SAM_APDU [20:42:17]CAPDU: 80 11 00 00 [20:42:17]Write to MH i2c: E2 08 00 11 0E 80 11 00 00 00 00 00 00 99 [20:42:17]Write i2c OK [20:42:17]MH_I2C_Read... [20:42:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:42:18]Read from MH i2c: E2 [20:42:18]MH_I2C_Read... [20:42:18]Read from MH i2c: E2 17 00 [20:42:18]MH_I2C_Read... [20:42:18]Read from MH i2c: E2 17 00 11 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 EC [20:42:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:42:18]wFMCommunicate OK [20:42:18]requested_item fd.num is exist - process it [20:42:18]SAM_PROTO_GetFieldsCounters [20:42:18]wFMCommunicate request_size=4 [20:42:18]MH_SAM_APDU [20:42:18]CAPDU: 80 13 00 00 [20:42:18]Write to MH i2c: E2 08 00 12 0E 80 13 00 00 00 00 00 00 9C [20:42:18]Write i2c OK [20:42:18]MH_I2C_Read... [20:42:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:42:18]Read from MH i2c: E2 [20:42:18]MH_I2C_Read... [20:42:18]Read from MH i2c: E2 62 00 [20:42:18]MH_I2C_Read... [20:42:18]Read from MH i2c: E2 62 00 12 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 88 2C 01 00 0E 04 04 00 74 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 27 [20:42:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 88 2C 01 00 0E 04 04 00 74 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 [20:42:18]wFMCommunicate OK [20:42:18]SAM_PROTO_GetFieldsCounters done [20:42:18]requested_item shift.num is exist - process it [20:42:18]requested_item shift.opened is exist - process it [20:42:18]req_shift_opened [20:42:18]FM_GetShiftState [20:42:18]SAM_PROTO_GetShiftState [20:42:18]wFMCommunicate request_size=4 [20:42:18]MH_SAM_APDU [20:42:18]CAPDU: 80 13 01 00 [20:42:18]Write to MH i2c: E2 08 00 13 0E 80 13 01 00 00 00 00 00 9E [20:42:18]Write i2c OK [20:42:18]MH_I2C_Read... [20:42:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:42:18]Read from MH i2c: E2 [20:42:18]MH_I2C_Read... [20:42:18]Read from MH i2c: E2 0E 00 [20:42:18]MH_I2C_Read... [20:42:18]Read from MH i2c: E2 0E 00 13 0E 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 E5 [20:42:18]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [20:42:18]wFMCommunicate OK [20:42:18]SAM_PROTO_GetShiftState done [20:42:18]FM_GetShiftState done [20:42:18]req_shift_opened done [20:42:18]requested_item shift.open_date is exist - process it [20:42:18]req_shift_open_date [20:42:18]req_shift_open_date done [20:42:18]produce_requested_data done [20:42:18]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76936,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [20:42:18]process_action_free print_text [20:42:18]json_value_free [20:42:18]json_value_free done [20:42:18]process_json_proto returns [20:42:18]Send response to host [20:42:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76936,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [20:42:18]free response buf [20:42:18]execute_script done [20:42:18]execute_script returns [20:42:18]free content buf [20:42:18]Sock 9.Close socket [20:42:18]Sock 9.Thread stoped [20:42:19]OFD Sender: No OFD packet to send [20:42:24]OFD Sender: No OFD packet to send [20:42:29]OFD Sender: No OFD packet to send [20:42:34]OFD Sender: No OFD packet to send [20:42:39]OFD Sender: No OFD packet to send [20:42:41]accept exits with 8 [20:42:41]New connection [20:42:41]New thread 3066801508 created [20:42:41]Thread 3066944868 joined [20:42:41]Waiting for new connection... [20:42:41] Sock 8.Parse request [20:42:41]Sock 8.Check first char [20:42:41]Sock 8.First char is OK [20:42:41]request: POST /json_proto HTTP/1.0 [20:42:41]Method: POST [20:42:41]URL: /json_proto [20:42:41]Method is POST - this is cgi request [20:42:41]url: /json_proto [20:42:41]query_string will be loaded in cgi processing [20:42:41]execute_cgi json_proto POST (null) [20:42:41]execute_cgi path=json_proto method=POST [20:42:41]POST find Content-Length [20:42:41]Host: 172.17.62.5:8080 [20:42:41]Content-Length: 670 [20:42:41]Content-Type: application/json [20:42:41] [20:42:41]POST finish read [20:42:41]Found Content-Length = 670 [20:42:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 9.180, "sum" : 600.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:42:41]execute_script... [20:42: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)191486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 9.180, "sum" : 600.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:42:41]POST & json_proto [20:42:41]process_json_proto [20:42:41]json parsed OK: [20:42:41]protocol is kg_v1.0 [20:42:41]action value=close_receipt [20:42:41]process_action close_receipt [20:42:41]cmd_close_receipt [20:42:41]MH_GetDate [20:42:41]Write to MH i2c: F0 00 00 14 0E 11 [20:42:41]Write i2c OK [20:42:41]MH_I2C_Read... [20:42:41]Read from MH i2c: F0 [20:42:41]MH_I2C_Read... [20:42:41]Read from MH i2c: F0 09 00 [20:42:41]MH_I2C_Read... [20:42:41]Read from MH i2c: F0 09 00 14 0E 00 42 7A 25 66 F4 E9 65 64 07 [20:42:41]GetLastDocTimeStamp 1713731767 [20:42:41]current date 1713732162 [20:42:41]FM_GetShiftState [20:42:41]SAM_PROTO_GetShiftState [20:42:41]wFMCommunicate request_size=4 [20:42:41]MH_SAM_APDU [20:42:41]CAPDU: 80 13 01 00 [20:42:41]Write to MH i2c: E2 08 00 15 0E 80 13 01 00 00 00 00 00 A0 [20:42:41]Write i2c OK [20:42:41]MH_I2C_Read... [20:42:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:42:41]Read from MH i2c: E2 [20:42:41]MH_I2C_Read... [20:42:41]Read from MH i2c: E2 0E 00 [20:42:41]MH_I2C_Read... [20:42:41]Read from MH i2c: E2 0E 00 15 0E 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 E7 [20:42:41]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [20:42:41]wFMCommunicate OK [20:42:41]SAM_PROTO_GetShiftState done [20:42:41]FM_GetShiftState done [20:42:41]opened in 1713658965 [20:42:41]opened+sec_in_day 1713745365 [20:42:41]quantity*price = 60037 [20:42:41]sum+1 = 60038 [20:42:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 193 21.04.2024 20:42 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76937 ФПД: 184843159741109 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T204242&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76937&fm=184843159741109&tin=02508201610067®Number=0000000000091573&sum=60000 [20:42:42]StoreToDocumentArchive [20:42:42]shift 372 fd 76937 [20:42:42]save to /storage/0372/doc_00076937 [20:42:42]save last doc name /storage/0372/doc_00076937 to /storage/kkm_last_doc_name [20:42:42]save OK [20:42:42]Clear old archive folders... [20:42:42]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:42:42]tlvbuf is 00CA3A10 [20:42:42]SAM_PROTO_ClearQueue [20:42:42]wFMCommunicate request_size=4 [20:42:42]MH_SAM_APDU [20:42:42]CAPDU: 80 09 00 00 [20:42:42]Write to MH i2c: E2 08 00 22 0E 80 09 00 00 00 00 00 00 A2 [20:42:42]Write i2c OK [20:42:42]MH_I2C_Read... [20:42:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:42:42]Read from MH i2c: E2 [20:42:42]MH_I2C_Read... [20:42:42]Read from MH i2c: E2 03 00 [20:42:42]MH_I2C_Read... [20:42:42]Read from MH i2c: E2 03 00 22 0E 00 90 00 A4 [20:42:42]RAPDU: 90 00 [20:42:42]wFMCommunicate OK [20:42:42]SAM_PROTO_ClearQueue done [20:42:42]KKMCreateOFDPacket [20:42:42]OFDProtocolAddRootSTLVToBuf [20:42:42]FM_MakeSignedData [20:42:42]FM_MakeSignedData [20:42:42]SAM_PROTO_SignData [20:42:42]wFMCommunicate request_size=4 [20:42:42]MH_SAM_APDU [20:42:42]CAPDU: 80 0D 01 02 [20:42:42]Write to MH i2c: E2 08 00 23 0E 80 0D 01 02 00 00 00 00 AA [20:42:42]Write i2c OK [20:42:42]MH_I2C_Read... [20:42:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:42:42]Read from MH i2c: E2 [20:42:42]MH_I2C_Read... [20:42:42]Read from MH i2c: E2 03 00 [20:42:42]MH_I2C_Read... [20:42:42]Read from MH i2c: E2 03 00 23 0E 00 90 00 A5 [20:42:42]RAPDU: 90 00 [20:42:42]wFMCommunicate OK [20:42:42]wFMCommunicate request_size=255 [20:42:42]MH_SAM_APDU [20:42:42]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 23 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 85 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 E8 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 C1 00 00 00 F4 03 04 00 42 7A 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 89 2C 01 00 35 04 06 00 [20:42:42]Write to MH i2c: E2 02 01 24 0E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 23 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 85 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 E8 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 C1 00 00 00 F4 03 04 00 42 7A 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 89 2C 01 00 35 04 06 00 00 00 40 [20:42:42]Write i2c OK [20:42:42]MH_I2C_Read... [20:42:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:42:42]Read from MH i2c: E2 [20:42:42]MH_I2C_Read... [20:42:42]Read from MH i2c: E2 03 00 [20:42:42]MH_I2C_Read... [20:42:42]Read from MH i2c: E2 03 00 24 0E 00 90 00 A6 [20:42:42]RAPDU: 90 00 [20:42:42]wFMCommunicate OK [20:42:42]wFMCommunicate request_size=11 [20:42:42]MH_SAM_APDU [20:42:42]CAPDU: 80 0D 02 02 06 A8 1D 26 E0 22 B5 [20:42:42]Write to MH i2c: E2 0E 00 25 0E 80 0D 02 02 06 00 A8 1D 26 E0 22 B5 00 00 5B [20:42:42]Write i2c OK [20:42:42]MH_I2C_Read... [20:42:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:42:43]Read from MH i2c: E2 [20:42:43]MH_I2C_Read... [20:42:43]Read from MH i2c: E2 03 00 [20:42:43]MH_I2C_Read... [20:42:43]Read from MH i2c: E2 03 00 25 0E 00 90 00 A7 [20:42:43]RAPDU: 90 00 [20:42:43]wFMCommunicate OK [20:42:43]wFMCommunicate request_size=4 [20:42:43]MH_SAM_APDU [20:42:43]CAPDU: 80 0D 03 02 [20:42:43]Write to MH i2c: E2 08 00 26 0E 80 0D 03 02 00 00 00 00 AF [20:42:43]Write i2c OK [20:42:43]MH_I2C_Read... [20:42:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:42:43]Read from MH i2c: E2 [20:42:43]MH_I2C_Read... [20:42:43]Read from MH i2c: E2 0B 00 [20:42:43]MH_I2C_Read... [20:42:43]Read from MH i2c: E2 0B 00 26 0E 00 DF ED 76 CB AC EE C2 79 90 00 92 [20:42:43]RAPDU: DF ED 76 CB AC EE C2 79 90 00 [20:42:43]wFMCommunicate OK [20:42:43]SAM_PROTO_SignData done [20:42:43]FM_MakeSignedData done [20:42:43]CreateOFDProtocolMessage [20:42:43]wFMCommunicate request_size=4 [20:42:43]MH_SAM_APDU [20:42:43]CAPDU: 80 11 00 00 [20:42:43]Write to MH i2c: E2 08 00 27 0E 80 11 00 00 00 00 00 00 AF [20:42:43]Write i2c OK [20:42:43]MH_I2C_Read... [20:42:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:42:43]Read from MH i2c: E2 [20:42:43]MH_I2C_Read... [20:42:43]Read from MH i2c: E2 17 00 [20:42:43]MH_I2C_Read... [20:42:43]Read from MH i2c: E2 17 00 27 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 02 [20:42:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:42:43]wFMCommunicate OK [20:42:43]CreateOFDProtocolMessage done [20:42:43]OFDSenderStorePacket 76937 [20:42:43]StoreOFDPacket docnum=76937 [20:42:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 1D B0 08 01 C9 80 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 23 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 85 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 E8 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 C1 00 00 00 F4 03 04 00 42 7A 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 89 2C 01 00 35 04 06 00 A8 1D 26 E0 22 B5 DF ED 76 CB AC EE C2 79 [20:42:43]CheckFolder [20:42:43]dirname=/storage/ofd_packets [20:42:43]CheckFolder done [20:42:43]ProducePacketName [20:42:43]name=ofd_packets/00076937 [20:42:43]NVStorageSaveData ofd_packets/00076937 [20:42:43]File name is /storage/ofd_packets/00076937 [20:42:43]Write 302 bytes [20:42:43]NVStorageSaveData done [20:42:43]OFDSenderStorePacket done [20:42:43]KKMCreateOFDPacket done [20:42:43]NVStorageSaveData kkm_last_timestamp [20:42:43]File name is /storage/kkm_last_timestamp [20:42:43]Write 4 bytes [20:42:43]NVStorageSaveData done [20:42:43]ExternCall_PrintAddStr [20:42:43]wPrintStart [20:42:43]Write to MH i2c: 01 00 00 28 0E 36 [20:42:43]Write i2c OK [20:42:43]MH_I2C_Read... [20:42:43]Read from MH i2c: 01 [20:42:43]MH_I2C_Read... [20:42:43]Read from MH i2c: 01 07 00 [20:42:43]MH_I2C_Read... [20:42:43]Read from MH i2c: 01 07 00 28 0E 00 00 00 00 00 FF 0F 4B [20:42:43]RasterBufferAndPrint [20:42:43]line Счет N : (1)191486 [20:42:43]line ИНН: 02508201610067 [20:42:43]line Контрольно-Кассовый Чек [20:42:43]line ПРОДАЖА [20:42:43]line ТРК (МРК, ГНК) : 41 [20:42:43]line Товар: 2710124130 [20:42:43]line SUPER 92-К-5 [20:42:43]line 9.180 * 65.40 [20:42:43]line = 600.37 [20:42:43]line НДС 12% НСП 1% [20:42:43]line > о реализуемом товаре [20:42:43]line ОКРУГЛЕНИЕ: -0.37 [20:42:43]line ИТОГО: 600.00 [20:42:43]line Внесено: 600.00 [20:42:43]line СДАЧА: 0.00 [20:42:43]line НСП 1% : 5.31 [20:42:43]line НДС 12% : 63.76 [20:42:43]line Наличными: 600.00 [20:42:43]line Безнал.: 0.00 [20:42:43]line Место: АЗС № 106 "Партнер Нефть" [20:42:43]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [20:42:43]line СНО: Общий режим [20:42:43]line Чек 193 21.04.2024 20:42 [20:42:43]line Смена: 372 ФФД: 1.0 [20:42:43]line ЗНМ: 0300000141 [20:42:43]line РНМ: 0000000000091573 [20:42:43]line Версия ККМ: 001 [20:42:43]line ФМ: 0000000000874652 [20:42:43]line ФД: 76937 [20:42:43]line ФПД: 184843159741109 [20:42:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T204242&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76937&fm=184843159741109&tin=02508201610067®Number=0000000000091573&sum=60000 [20:42:43]written 0, free lines is 4095 [20:42:43]OFD Sender: Processing packet 76937 [packets to send 129, broken 128] [20:42:43]ProducePacketName [20:42:43]name=ofd_packets/00076937 [20:42:43]OFD Sender: To server: pG, [20:42:43]CommunicateWithHost lk.salyk.kg:30040 [20:42:43]ConnectInit lk.salyk.kg [20:42:43]Write to MH i2c: 01 00 00 52 0E 60 [20:42:43]Write i2c OK [20:42:43]MH_I2C_Read... [20:42:43]Read from MH i2c: 01 [20:42:43]MH_I2C_Read... [20:42:43]Read from MH i2c: 01 07 00 [20:42:43]MH_I2C_Read... [20:42:43]Read from MH i2c: 01 07 00 52 0E 00 00 00 00 00 EE 0C 61 [20:42:43]RasterBufferAndPrint [20:42:43]line [20:42:43]line [20:42:43]line [20:42:43]line [20:42:43]line [20:42:43]written 0, free lines is 3314 [20:42:43]MH_Cut [20:42:43]Write to MH i2c: D1 01 00 59 0E 01 39 [20:42:43]Write i2c OK [20:42:43]MH_I2C_Read... [20:42:43]Read from MH i2c: D1 [20:42:43]MH_I2C_Read... [20:42:43]Read from MH i2c: D1 01 00 [20:42:43]MH_I2C_Read... [20:42:43]Read from MH i2c: D1 01 00 59 0E 00 38 [20:42:43]Write to MH i2c: 01 00 00 5A 0E 68 [20:42:43]Write i2c OK [20:42:43]MH_I2C_Read... [20:42:44]Connected sock=10 [20:42:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 1D B0 08 01 C9 80 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 23 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 85 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 E8 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 C1 00 00 00 F4 03 04 00 42 7A 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 89 2C 01 00 35 04 06 00 A8 1D 26 E0 22 B5 DF ED 76 CB AC EE C2 79 [20:42:44]*** Cut start [20:42:44]*** Partial cut [20:42:44]*** CUTSNS_PIN = 1 [20:42:44]*** CUTSNS_PIN = 0 [20:42:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 83 2C 47 00 55 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 34 36 35 32 10 04 04 00 89 2C 01 00 F4 03 04 00 C8 21 25 66 B6 04 01 00 00 A5 44 E0 92 3F B4 28 17 [20:42:44]CommunicateWithHost err = 0 [20:42:44]CheckOFDResponse [20:42:44]1017 (14) - 77093643461234 [20:42:44]1041 (16) - 0000000000874652 [20:42:44]1040 (4) - 76937 [20:42:44]1012 (4) - 21.04.2024 14:25 [20:42:44]1206 (1) - 0 [20:42:44]OFD Sender: Remove packet 76937 [20:42:44]ProducePacketName [20:42:44]name=ofd_packets/00076937 [20:42:44]NVStorageDeleteData [20:42:44]*** Brake cut motor [20:42:45]Read from MH i2c: 01 [20:42:45]MH_I2C_Read... [20:42:45]*** Stop cut motor [20:42:45]*** Cut end [20:42:45]Read from MH i2c: 01 07 00 [20:42:45]MH_I2C_Read... [20:42:45]Read from MH i2c: 01 07 00 5A 0E 00 00 00 00 00 FF 0F 7D [20:42:45]process_action close_receipt done [20:42:45]requested_data is exist [20:42:45]produce_requested_data [20:42:45]requested_item fm.sn is exist - process it [20:42:45]wFMCommunicate request_size=4 [20:42:45]MH_SAM_APDU [20:42:45]CAPDU: 80 11 00 00 [20:42:45]Write to MH i2c: E2 08 00 5B 0E 80 11 00 00 00 00 00 00 E3 [20:42:45]Write i2c OK [20:42:45]MH_I2C_Read... [20:42:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:42:45]Read from MH i2c: E2 [20:42:45]MH_I2C_Read... [20:42:45]Read from MH i2c: E2 17 00 [20:42:45]MH_I2C_Read... [20:42:45]Read from MH i2c: E2 17 00 5B 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 36 [20:42:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:42:45]wFMCommunicate OK [20:42:45]requested_item fd.num is exist - process it [20:42:45]SAM_PROTO_GetFieldsCounters [20:42:45]wFMCommunicate request_size=4 [20:42:45]MH_SAM_APDU [20:42:45]CAPDU: 80 13 00 00 [20:42:45]Write to MH i2c: E2 08 00 5C 0E 80 13 00 00 00 00 00 00 E6 [20:42:45]Write i2c OK [20:42:45]MH_I2C_Read... [20:42:45]OFD Sender: No OFD packet to send [20:42:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:42:45]Read from MH i2c: E2 [20:42:45]MH_I2C_Read... [20:42:45]Read from MH i2c: E2 62 00 [20:42:45]MH_I2C_Read... [20:42:45]Read from MH i2c: E2 62 00 5C 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 89 2C 01 00 0E 04 04 00 74 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 75 [20:42: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 89 2C 01 00 0E 04 04 00 74 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 [20:42:45]wFMCommunicate OK [20:42:45]SAM_PROTO_GetFieldsCounters done [20:42:45]requested_item shift.num is exist - process it [20:42:45]requested_item shift.opened is exist - process it [20:42:45]req_shift_opened [20:42:45]FM_GetShiftState [20:42:45]SAM_PROTO_GetShiftState [20:42:45]wFMCommunicate request_size=4 [20:42:45]MH_SAM_APDU [20:42:45]CAPDU: 80 13 01 00 [20:42:45]Write to MH i2c: E2 08 00 5D 0E 80 13 01 00 00 00 00 00 E8 [20:42:45]Write i2c OK [20:42:45]MH_I2C_Read... [20:42:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:42:45]Read from MH i2c: E2 [20:42:45]MH_I2C_Read... [20:42:45]Read from MH i2c: E2 0E 00 [20:42:45]MH_I2C_Read... [20:42:45]Read from MH i2c: E2 0E 00 5D 0E 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 2F [20:42:45]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [20:42:45]wFMCommunicate OK [20:42:45]SAM_PROTO_GetShiftState done [20:42:45]FM_GetShiftState done [20:42:45]req_shift_opened done [20:42:45]requested_item shift.open_date is exist - process it [20:42:45]req_shift_open_date [20:42:45]req_shift_open_date done [20:42:45]produce_requested_data done [20:42:45]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76937,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [20:42:45]process_action_free close_receipt [20:42:45]json_value_free [20:42:45]json_value_free done [20:42:45]process_json_proto returns [20:42:45]Send response to host [20:42:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76937,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [20:42:45]free response buf [20:42:45]execute_script done [20:42:45]execute_script returns [20:42:45]free content buf [20:42:45]Sock 8.Close socket [20:42:45]Sock 8.Thread stoped [20:42:50]OFD Sender: No OFD packet to send [20:42:55]OFD Sender: No OFD packet to send [20:43:00]OFD Sender: No OFD packet to send [20:43:05]OFD Sender: No OFD packet to send [20:43:10]OFD Sender: No OFD packet to send [20:43:15]OFD Sender: No OFD packet to send [20:43:19]accept exits with 9 [20:43:19]New connection [20:43:19]New thread 3066944868 created [20:43:19]Thread 3066801508 joined [20:43:19]Waiting for new connection... [20:43:19] Sock 9.Parse request [20:43:19]Sock 9.Check first char [20:43:19]Sock 9.First char is OK [20:43:19]request: POST /json_proto HTTP/1.0 [20:43:19]Method: POST [20:43:19]URL: /json_proto [20:43:19]Method is POST - this is cgi request [20:43:19]url: /json_proto [20:43:19]query_string will be loaded in cgi processing [20:43:19]execute_cgi json_proto POST (null) [20:43:19]execute_cgi path=json_proto method=POST [20:43:19]POST find Content-Length [20:43:19]Host: 172.17.62.5:8080 [20:43:19]Content-Length: 990 [20:43:19]Content-Type: application/json [20:43:19] [20:43:19]POST finish read [20:43:19]Found Content-Length = 990 [20:43:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191483", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 47.320, "sum" : 1500.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 47.32 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:43:19]execute_script... [20:43: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)191483", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 47.320, "sum" : 1500.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 47.32 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:43:19]POST & json_proto [20:43:19]process_json_proto [20:43:19]json parsed OK: [20:43:19]protocol is kg_v1.0 [20:43:19]action value=close_receipt [20:43:19]process_action close_receipt [20:43:19]cmd_close_receipt [20:43:19]MH_GetDate [20:43:19]Write to MH i2c: F0 00 00 5E 0E 5B [20:43:19]Write i2c OK [20:43:19]MH_I2C_Read... [20:43:19]Read from MH i2c: F0 [20:43:19]MH_I2C_Read... [20:43:19]Read from MH i2c: F0 09 00 [20:43:19]MH_I2C_Read... [20:43:19]Read from MH i2c: F0 09 00 5E 0E 00 68 7A 25 66 F4 E9 65 64 77 [20:43:19]GetLastDocTimeStamp 1713732162 [20:43:19]current date 1713732200 [20:43:19]FM_GetShiftState [20:43:19]SAM_PROTO_GetShiftState [20:43:19]wFMCommunicate request_size=4 [20:43:19]MH_SAM_APDU [20:43:19]CAPDU: 80 13 01 00 [20:43:19]Write to MH i2c: E2 08 00 5F 0E 80 13 01 00 00 00 00 00 EA [20:43:19]Write i2c OK [20:43:19]MH_I2C_Read... [20:43:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:43:19]Read from MH i2c: E2 [20:43:19]MH_I2C_Read... [20:43:19]Read from MH i2c: E2 0E 00 [20:43:19]MH_I2C_Read... [20:43:19]Read from MH i2c: E2 0E 00 5F 0E 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 31 [20:43:19]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [20:43:19]wFMCommunicate OK [20:43:19]SAM_PROTO_GetShiftState done [20:43:19]FM_GetShiftState done [20:43:19]opened in 1713658965 [20:43:19]opened+sec_in_day 1713745365 [20:43:19]quantity*price = 150004 [20:43:19]sum+1 = 150005 [20:43:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.27 НДС 12% : 159.30 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 194 21.04.2024 20:43 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 47.32 сом ФМ: 0000000000874652 ФД: 76938 ФПД: 22764325521482 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T204320&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76938&fm=22764325521482&tin=02508201610067®Number=0000000000091573&sum=150000 [20:43:20]StoreToDocumentArchive [20:43:20]shift 372 fd 76938 [20:43:20]save to /storage/0372/doc_00076938 [20:43:20]save last doc name /storage/0372/doc_00076938 to /storage/kkm_last_doc_name [20:43:20]save OK [20:43:20]Clear old archive folders... [20:43:20]ProcessDocumentItem done err = 0, tmpTLVsize=250 [20:43:20]tlvbuf is 00CB1F80 [20:43:20]SAM_PROTO_ClearQueue [20:43:20]wFMCommunicate request_size=4 [20:43:20]MH_SAM_APDU [20:43:20]CAPDU: 80 09 00 00 [20:43:20]Write to MH i2c: E2 08 00 6C 0E 80 09 00 00 00 00 00 00 EC [20:43:20]Write i2c OK [20:43:20]MH_I2C_Read... [20:43:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:43:20]Read from MH i2c: E2 [20:43:20]MH_I2C_Read... [20:43:20]Read from MH i2c: E2 03 00 [20:43:20]MH_I2C_Read... [20:43:20]Read from MH i2c: E2 03 00 6C 0E 00 90 00 EE [20:43:20]RAPDU: 90 00 [20:43:20]wFMCommunicate OK [20:43:20]SAM_PROTO_ClearQueue done [20:43:20]KKMCreateOFDPacket [20:43:20]OFDProtocolAddRootSTLVToBuf [20:43:20]FM_MakeSignedData [20:43:20]FM_MakeSignedData [20:43:20]SAM_PROTO_SignData [20:43:20]wFMCommunicate request_size=4 [20:43:20]MH_SAM_APDU [20:43:20]CAPDU: 80 0D 01 02 [20:43:20]Write to MH i2c: E2 08 00 6D 0E 80 0D 01 02 00 00 00 00 F4 [20:43:20]Write i2c OK [20:43:20]MH_I2C_Read... [20:43:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:43:20]Read from MH i2c: E2 [20:43:20]MH_I2C_Read... [20:43:20]Read from MH i2c: E2 03 00 [20:43:20]MH_I2C_Read... [20:43:20]Read from MH i2c: E2 03 00 6D 0E 00 90 00 EF [20:43:20]RAPDU: 90 00 [20:43:20]wFMCommunicate OK [20:43:20]wFMCommunicate request_size=255 [20:43:20]MH_SAM_APDU [20:43:20]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 D8 B8 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 F4 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 C2 00 00 00 F4 03 04 00 68 7A 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8A 2C 01 00 35 04 06 00 14 B4 [20:43:20]Write to MH i2c: E2 02 01 6E 0E 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 D8 B8 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 F4 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 C2 00 00 00 F4 03 04 00 68 7A 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8A 2C 01 00 35 04 06 00 14 B4 00 00 27 [20:43:20]Write i2c OK [20:43:20]MH_I2C_Read... [20:43:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:43:21]Read from MH i2c: E2 [20:43:21]MH_I2C_Read... [20:43:21]Read from MH i2c: E2 03 00 [20:43:21]MH_I2C_Read... [20:43:21]Read from MH i2c: E2 03 00 6E 0E 00 90 00 F0 [20:43:21]RAPDU: 90 00 [20:43:21]wFMCommunicate OK [20:43:21]wFMCommunicate request_size=9 [20:43:21]MH_SAM_APDU [20:43:21]CAPDU: 80 0D 02 02 04 3B 89 48 4A [20:43:21]Write to MH i2c: E2 0C 00 6F 0E 80 0D 02 02 04 00 3B 89 48 4A 00 00 55 [20:43:21]Write i2c OK [20:43:21]MH_I2C_Read... [20:43:21]Read from MH i2c: E2 [20:43:21]MH_I2C_Read... [20:43:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:43:21]Read from MH i2c: E2 03 00 [20:43:21]MH_I2C_Read... [20:43:21]Read from MH i2c: E2 03 00 6F 0E 00 90 00 F1 [20:43:21]RAPDU: 90 00 [20:43:21]wFMCommunicate OK [20:43:21]wFMCommunicate request_size=4 [20:43:21]MH_SAM_APDU [20:43:21]CAPDU: 80 0D 03 02 [20:43:21]Write to MH i2c: E2 08 00 70 0E 80 0D 03 02 00 00 00 00 F9 [20:43:21]Write i2c OK [20:43:21]MH_I2C_Read... [20:43:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:43:21]Read from MH i2c: E2 [20:43:21]MH_I2C_Read... [20:43:21]Read from MH i2c: E2 0B 00 [20:43:21]MH_I2C_Read... [20:43:21]Read from MH i2c: E2 0B 00 70 0E 00 C6 72 4E 69 CF 50 86 92 90 00 20 [20:43:21]RAPDU: C6 72 4E 69 CF 50 86 92 90 00 [20:43:21]wFMCommunicate OK [20:43:21]SAM_PROTO_SignData done [20:43:21]FM_MakeSignedData done [20:43:21]CreateOFDProtocolMessage [20:43:21]wFMCommunicate request_size=4 [20:43:21]MH_SAM_APDU [20:43:21]CAPDU: 80 11 00 00 [20:43:21]Write to MH i2c: E2 08 00 71 0E 80 11 00 00 00 00 00 00 F9 [20:43:21]Write i2c OK [20:43:21]MH_I2C_Read... [20:43:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:43:21]Read from MH i2c: E2 [20:43:21]MH_I2C_Read... [20:43:21]Read from MH i2c: E2 17 00 [20:43:21]MH_I2C_Read... [20:43:21]Read from MH i2c: E2 17 00 71 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 4C [20:43:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:43:21]wFMCommunicate OK [20:43:21]CreateOFDProtocolMessage done [20:43:21]OFDSenderStorePacket 76938 [20:43:21]StoreOFDPacket docnum=76938 [20:43:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 0B 66 06 01 1C B0 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 D8 B8 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 F4 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 C2 00 00 00 F4 03 04 00 68 7A 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8A 2C 01 00 35 04 06 00 14 B4 3B 89 48 4A C6 72 4E 69 CF 50 86 92 [20:43:21]CheckFolder [20:43:21]dirname=/storage/ofd_packets [20:43:21]CheckFolder done [20:43:21]ProducePacketName [20:43:21]name=ofd_packets/00076938 [20:43:21]NVStorageSaveData ofd_packets/00076938 [20:43:21]File name is /storage/ofd_packets/00076938 [20:43:21]Write 300 bytes [20:43:21]NVStorageSaveData done [20:43:21]OFDSenderStorePacket done [20:43:21]KKMCreateOFDPacket done [20:43:21]NVStorageSaveData kkm_last_timestamp [20:43:21]File name is /storage/kkm_last_timestamp [20:43:21]Write 4 bytes [20:43:21]NVStorageSaveData done [20:43:21]ExternCall_PrintAddStr [20:43:21]wPrintStart [20:43:21]Write to MH i2c: 01 00 00 72 0E 80 [20:43:21]Write i2c OK [20:43:21]MH_I2C_Read... [20:43:21]Read from MH i2c: 01 [20:43:21]MH_I2C_Read... [20:43:21]Read from MH i2c: 01 07 00 [20:43:21]MH_I2C_Read... [20:43:21]Read from MH i2c: 01 07 00 72 0E 00 00 00 00 00 FF 0F 95 [20:43:21]RasterBufferAndPrint [20:43:21]line Счет N : (1)191483 [20:43:21]line ИНН: 02508201610067 [20:43:21]line Контрольно-Кассовый Чек [20:43:21]line ПРОДАЖА [20:43:21]line ТРК (МРК, ГНК) : 71 [20:43:21]line Товар: 2711190000 [20:43:21]line ГАЗ-К-5 [20:43:21]line 47.320 * 31.70 [20:43:21]line = 1500.04 [20:43:21]line НДС 12% НСП 1% [20:43:21]line > о реализуемом товаре [20:43:21]line ОКРУГЛЕНИЕ: -0.04 [20:43:21]line ИТОГО: 1500.00 [20:43:21]line Внесено: 1500.00 [20:43:21]line СДАЧА: 0.00 [20:43:21]line НСП 1% : 13.27 [20:43:21]line НДС 12% : 159.30 [20:43:21]line Наличными: 1500.00 [20:43:21]line Безнал.: 0.00 [20:43:21]line Место: АЗС № 106 "Партнер Нефть" [20:43:21]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [20:43:21]line СНО: Общий режим [20:43:21]line Чек 194 21.04.2024 20:43 [20:43:21]line Смена: 372 ФФД: 1.0 [20:43:21]line ЗНМ: 0300000141 [20:43:21]line РНМ: 0000000000091573 [20:43:21]line Версия ККМ: 001 [20:43:21]line [20:43:21]line Дисконтная программа [20:43:21]line СУГ [20:43:21]line номер 106 [20:43:21]line сэкономлено 47.32 сом [20:43:21]line ФМ: 0000000000874652 [20:43:21]line ФД: 76938 [20:43:21]line ФПД: 22764325521482 [20:43:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T204320&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76938&fm=22764325521482&tin=02508201610067®Number=0000000000091573&sum=150000 [20:43:21]OFD Sender: Processing packet 76938 [packets to send 129, broken 128] [20:43:21]ProducePacketName [20:43:21]name=ofd_packets/00076938 [20:43:21]OFD Sender: To server: pG, [20:43:21]CommunicateWithHost lk.salyk.kg:30040 [20:43:21]ConnectInit lk.salyk.kg [20:43:21]written 0, free lines is 4095 [20:43:21]Connected sock=10 [20:43:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 0B 66 06 01 1C B0 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 D8 B8 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 F4 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 C2 00 00 00 F4 03 04 00 68 7A 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8A 2C 01 00 35 04 06 00 14 B4 3B 89 48 4A C6 72 4E 69 CF 50 86 92 [20:43:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 20 EC 47 00 A4 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8A 2C 01 00 F4 03 04 00 ED 21 25 66 B6 04 01 00 00 03 C5 FE 8F 0E 55 1B 37 [20:43:22]CommunicateWithHost err = 0 [20:43:22]CheckOFDResponse [20:43:22]1017 (14) - 77093643461234 [20:43:22]1041 (16) - 0000000000874652 [20:43:22]1040 (4) - 76938 [20:43:22]1012 (4) - 21.04.2024 14:25 [20:43:22]1206 (1) - 0 [20:43:22]OFD Sender: Remove packet 76938 [20:43:22]ProducePacketName [20:43:22]name=ofd_packets/00076938 [20:43:22]NVStorageDeleteData [20:43:22]Write to MH i2c: 01 00 00 A1 0E AF [20:43:22]Write i2c OK [20:43:22]MH_I2C_Read... [20:43:22]Read from MH i2c: 01 [20:43:22]MH_I2C_Read... [20:43:22]Read from MH i2c: 01 07 00 [20:43:22]MH_I2C_Read... [20:43:22]Read from MH i2c: 01 07 00 A1 0E 00 00 00 00 00 97 0C 59 [20:43:22]RasterBufferAndPrint [20:43:22]line [20:43:22]line [20:43:22]line [20:43:22]line [20:43:22]line [20:43:22]written 0, free lines is 3230 [20:43:22]MH_Cut [20:43:22]Write to MH i2c: D1 01 00 A8 0E 01 88 [20:43:22]Write i2c OK [20:43:22]MH_I2C_Read... [20:43:22]Read from MH i2c: D1 [20:43:22]MH_I2C_Read... [20:43:22]Read from MH i2c: D1 01 00 [20:43:22]MH_I2C_Read... [20:43:22]Read from MH i2c: D1 01 00 A8 0E 00 87 [20:43:22]Write to MH i2c: 01 00 00 A9 0E B7 [20:43:22]Write i2c OK [20:43:22]MH_I2C_Read... [20:43:22]OFD Sender: No OFD packet to send [20:43:22]*** Cut start [20:43:22]*** Partial cut [20:43:22]*** CUTSNS_PIN = 1 [20:43:22]*** CUTSNS_PIN = 0 [20:43:23]*** Brake cut motor [20:43:23]Read from MH i2c: 01 [20:43:23]MH_I2C_Read... [20:43:23]*** Stop cut motor [20:43:23]*** Cut end [20:43:23]Read from MH i2c: 01 07 00 [20:43:23]MH_I2C_Read... [20:43:23]Read from MH i2c: 01 07 00 A9 0E 00 00 00 00 00 FF 0F CC [20:43:23]process_action close_receipt done [20:43:23]requested_data is exist [20:43:23]produce_requested_data [20:43:23]requested_item fm.sn is exist - process it [20:43:23]wFMCommunicate request_size=4 [20:43:23]MH_SAM_APDU [20:43:23]CAPDU: 80 11 00 00 [20:43:23]Write to MH i2c: E2 08 00 AA 0E 80 11 00 00 00 00 00 00 32 [20:43:23]Write i2c OK [20:43:23]MH_I2C_Read... [20:43:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:43:23]Read from MH i2c: E2 [20:43:23]MH_I2C_Read... [20:43:23]Read from MH i2c: E2 17 00 [20:43:23]MH_I2C_Read... [20:43:23]Read from MH i2c: E2 17 00 AA 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 85 [20:43:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:43:23]wFMCommunicate OK [20:43:23]requested_item fd.num is exist - process it [20:43:23]SAM_PROTO_GetFieldsCounters [20:43:23]wFMCommunicate request_size=4 [20:43:23]MH_SAM_APDU [20:43:23]CAPDU: 80 13 00 00 [20:43:23]Write to MH i2c: E2 08 00 AB 0E 80 13 00 00 00 00 00 00 35 [20:43:23]Write i2c OK [20:43:23]MH_I2C_Read... [20:43:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:43:23]Read from MH i2c: E2 [20:43:23]MH_I2C_Read... [20:43:23]Read from MH i2c: E2 62 00 [20:43:23]MH_I2C_Read... [20:43:23]Read from MH i2c: E2 62 00 AB 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 8A 2C 01 00 0E 04 04 00 74 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 C8 [20:43: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 8A 2C 01 00 0E 04 04 00 74 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 [20:43:23]wFMCommunicate OK [20:43:23]SAM_PROTO_GetFieldsCounters done [20:43:23]requested_item shift.num is exist - process it [20:43:23]requested_item shift.opened is exist - process it [20:43:23]req_shift_opened [20:43:23]FM_GetShiftState [20:43:23]SAM_PROTO_GetShiftState [20:43:23]wFMCommunicate request_size=4 [20:43:23]MH_SAM_APDU [20:43:23]CAPDU: 80 13 01 00 [20:43:23]Write to MH i2c: E2 08 00 AC 0E 80 13 01 00 00 00 00 00 37 [20:43:23]Write i2c OK [20:43:23]MH_I2C_Read... [20:43:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:43:23]Read from MH i2c: E2 [20:43:23]MH_I2C_Read... [20:43:23]Read from MH i2c: E2 0E 00 [20:43:23]MH_I2C_Read... [20:43:23]Read from MH i2c: E2 0E 00 AC 0E 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 7E [20:43:23]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [20:43:23]wFMCommunicate OK [20:43:23]SAM_PROTO_GetShiftState done [20:43:23]FM_GetShiftState done [20:43:23]req_shift_opened done [20:43:23]requested_item shift.open_date is exist - process it [20:43:23]req_shift_open_date [20:43:23]req_shift_open_date done [20:43:23]produce_requested_data done [20:43:23]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76938,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [20:43:23]process_action_free close_receipt [20:43:23]json_value_free [20:43:23]json_value_free done [20:43:23]process_json_proto returns [20:43:23]Send response to host [20:43:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76938,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [20:43:23]free response buf [20:43:23]execute_script done [20:43:23]execute_script returns [20:43:23]free content buf [20:43:23]Sock 9.Close socket [20:43:23]Sock 9.Thread stoped [20:43:27]OFD Sender: No OFD packet to send [20:43:32]OFD Sender: No OFD packet to send [20:43:37]OFD Sender: No OFD packet to send [20:43:42]OFD Sender: No OFD packet to send [20:43:47]OFD Sender: No OFD packet to send [20:43:52]OFD Sender: No OFD packet to send [20:43:56]accept exits with 8 [20:43:56]New connection [20:43:56]New thread 3066801508 created [20:43:56]Thread 3066944868 joined [20:43:56]Waiting for new connection... [20:43:56] Sock 8.Parse request [20:43:56]Sock 8.Check first char [20:43:56]Sock 8.First char is OK [20:43:56]request: POST /json_proto HTTP/1.0 [20:43:56]Method: POST [20:43:56]URL: /json_proto [20:43:56]Method is POST - this is cgi request [20:43:56]url: /json_proto [20:43:56]query_string will be loaded in cgi processing [20:43:56]execute_cgi json_proto POST (null) [20:43:56]execute_cgi path=json_proto method=POST [20:43:56]POST find Content-Length [20:43:56]Host: 172.17.62.5:8080 [20:43:56]Content-Length: 978 [20:43:56]Content-Type: application/json [20:43:56] [20:43:56]POST finish read [20:43:56]Found Content-Length = 978 [20:43:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191487", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 20.87 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:43:56]execute_script... [20:43: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)191487", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 20.87 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:43:56]POST & json_proto [20:43:56]process_json_proto [20:43:56]json parsed OK: [20:43:56]protocol is kg_v1.0 [20:43:56]action value=close_receipt [20:43:56]process_action close_receipt [20:43:56]cmd_close_receipt [20:43:56]MH_GetDate [20:43:56]Write to MH i2c: F0 00 00 AD 0E AA [20:43:56]Write i2c OK [20:43:56]MH_I2C_Read... [20:43:56]Read from MH i2c: F0 [20:43:56]MH_I2C_Read... [20:43:56]Read from MH i2c: F0 09 00 [20:43:56]MH_I2C_Read... [20:43:56]Read from MH i2c: F0 09 00 AD 0E 00 8E 7A 25 66 F4 E9 65 64 EC [20:43:56]GetLastDocTimeStamp 1713732200 [20:43:56]current date 1713732238 [20:43:56]FM_GetShiftState [20:43:56]SAM_PROTO_GetShiftState [20:43:56]wFMCommunicate request_size=4 [20:43:56]MH_SAM_APDU [20:43:56]CAPDU: 80 13 01 00 [20:43:56]Write to MH i2c: E2 08 00 AE 0E 80 13 01 00 00 00 00 00 39 [20:43:56]Write i2c OK [20:43:56]MH_I2C_Read... [20:43:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:43:57]Read from MH i2c: E2 [20:43:57]MH_I2C_Read... [20:43:57]Read from MH i2c: E2 0E 00 [20:43:57]MH_I2C_Read... [20:43:57]Read from MH i2c: E2 0E 00 AE 0E 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 80 [20:43:57]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [20:43:57]wFMCommunicate OK [20:43:57]SAM_PROTO_GetShiftState done [20:43:57]FM_GetShiftState done [20:43:57]opened in 1713658965 [20:43:57]opened+sec_in_day 1713745365 [20:43:57]quantity*price = 150055 [20:43:57]sum+1 = 150056 [20:43:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 195 21.04.2024 20:43 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 20.87 сом ФМ: 0000000000874652 ФД: 76939 ФПД: 60831831065287 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T204358&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76939&fm=60831831065287&tin=02508201610067®Number=0000000000091573&sum=150000 [20:43:58]StoreToDocumentArchive [20:43:58]shift 372 fd 76939 [20:43:58]save to /storage/0372/doc_00076939 [20:43:58]save last doc name /storage/0372/doc_00076939 to /storage/kkm_last_doc_name [20:43:58]save OK [20:43:58]Clear old archive folders... [20:43:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:43:58]tlvbuf is 00C6E8D0 [20:43:58]SAM_PROTO_ClearQueue [20:43:58]wFMCommunicate request_size=4 [20:43:58]MH_SAM_APDU [20:43:58]CAPDU: 80 09 00 00 [20:43:58]Write to MH i2c: E2 08 00 BB 0E 80 09 00 00 00 00 00 00 3B [20:43:58]Write i2c OK [20:43:58]MH_I2C_Read... [20:43:58]Read from MH i2c: E2 [20:43:58]MH_I2C_Read... [20:43:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:43:58]Read from MH i2c: E2 03 00 [20:43:58]MH_I2C_Read... [20:43:58]Read from MH i2c: E2 03 00 BB 0E 00 90 00 3D [20:43:58]RAPDU: 90 00 [20:43:58]wFMCommunicate OK [20:43:58]SAM_PROTO_ClearQueue done [20:43:58]KKMCreateOFDPacket [20:43:58]OFDProtocolAddRootSTLVToBuf [20:43:58]FM_MakeSignedData [20:43:58]FM_MakeSignedData [20:43:58]SAM_PROTO_SignData [20:43:58]wFMCommunicate request_size=4 [20:43:58]MH_SAM_APDU [20:43:58]CAPDU: 80 0D 01 02 [20:43:58]Write to MH i2c: E2 08 00 BC 0E 80 0D 01 02 00 00 00 00 43 [20:43:58]Write i2c OK [20:43:58]MH_I2C_Read... [20:43:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:43:58]Read from MH i2c: E2 [20:43:58]MH_I2C_Read... [20:43:58]Read from MH i2c: E2 03 00 [20:43:58]MH_I2C_Read... [20:43:58]Read from MH i2c: E2 03 00 BC 0E 00 90 00 3E [20:43:58]RAPDU: 90 00 [20:43:58]wFMCommunicate OK [20:43:58]wFMCommunicate request_size=255 [20:43:58]MH_SAM_APDU [20:43:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 8E 7A 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8B 2C 01 00 35 04 06 00 37 53 83 AE [20:43:58]Write to MH i2c: E2 02 01 BD 0E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 8E 7A 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8B 2C 01 00 35 04 06 00 37 53 83 AE 00 00 82 [20:43:58]Write i2c OK [20:43:58]MH_I2C_Read... [20:43:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:43:58]Read from MH i2c: E2 [20:43:58]MH_I2C_Read... [20:43:58]Read from MH i2c: E2 03 00 [20:43:58]MH_I2C_Read... [20:43:58]Read from MH i2c: E2 03 00 BD 0E 00 90 00 3F [20:43:58]RAPDU: 90 00 [20:43:58]wFMCommunicate OK [20:43:58]wFMCommunicate request_size=7 [20:43:58]MH_SAM_APDU [20:43:58]CAPDU: 80 0D 02 02 02 82 C7 [20:43:58]Write to MH i2c: E2 0A 00 BE 0E 80 0D 02 02 02 00 82 C7 00 00 93 [20:43:58]Write i2c OK [20:43:58]MH_I2C_Read... [20:43:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:43:58]Read from MH i2c: E2 [20:43:58]MH_I2C_Read... [20:43:58]Read from MH i2c: E2 03 00 [20:43:58]MH_I2C_Read... [20:43:58]Read from MH i2c: E2 03 00 BE 0E 00 90 00 40 [20:43:58]RAPDU: 90 00 [20:43:58]wFMCommunicate OK [20:43:58]wFMCommunicate request_size=4 [20:43:58]MH_SAM_APDU [20:43:58]CAPDU: 80 0D 03 02 [20:43:58]Write to MH i2c: E2 08 00 BF 0E 80 0D 03 02 00 00 00 00 48 [20:43:58]Write i2c OK [20:43:58]MH_I2C_Read... [20:43:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:43:58]Read from MH i2c: E2 [20:43:58]MH_I2C_Read... [20:43:58]Read from MH i2c: E2 0B 00 [20:43:58]MH_I2C_Read... [20:43:58]Read from MH i2c: E2 0B 00 BF 0E 00 3F 50 3A 59 4C 0F 5F E9 90 00 0E [20:43:58]RAPDU: 3F 50 3A 59 4C 0F 5F E9 90 00 [20:43:58]wFMCommunicate OK [20:43:58]SAM_PROTO_SignData done [20:43:58]FM_MakeSignedData done [20:43:58]CreateOFDProtocolMessage [20:43:58]wFMCommunicate request_size=4 [20:43:58]MH_SAM_APDU [20:43:58]CAPDU: 80 11 00 00 [20:43:58]Write to MH i2c: E2 08 00 C0 0E 80 11 00 00 00 00 00 00 48 [20:43:58]Write i2c OK [20:43:58]MH_I2C_Read... [20:43:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:43:58]Read from MH i2c: E2 [20:43:58]MH_I2C_Read... [20:43:58]Read from MH i2c: E2 17 00 [20:43:58]MH_I2C_Read... [20:43:58]Read from MH i2c: E2 17 00 C0 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 9B [20:43:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:43:58]wFMCommunicate OK [20:43:58]CreateOFDProtocolMessage done [20:43:58]OFDSenderStorePacket 76939 [20:43:58]StoreOFDPacket docnum=76939 [20:43:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 2C BA 04 01 08 9B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 8E 7A 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8B 2C 01 00 35 04 06 00 37 53 83 AE 82 C7 3F 50 3A 59 4C 0F 5F E9 [20:43:58]CheckFolder [20:43:58]dirname=/storage/ofd_packets [20:43:58]CheckFolder done [20:43:58]ProducePacketName [20:43:58]name=ofd_packets/00076939 [20:43:58]NVStorageSaveData ofd_packets/00076939 [20:43:58]File name is /storage/ofd_packets/00076939 [20:43:58]Write 298 bytes [20:43:58]NVStorageSaveData done [20:43:58]OFDSenderStorePacket done [20:43:58]KKMCreateOFDPacket done [20:43:58]NVStorageSaveData kkm_last_timestamp [20:43:58]File name is /storage/kkm_last_timestamp [20:43:58]Write 4 bytes [20:43:58]NVStorageSaveData done [20:43:58]ExternCall_PrintAddStr [20:43:58]wPrintStart [20:43:58]Write to MH i2c: 01 00 00 C1 0E CF [20:43:58]Write i2c OK [20:43:58]MH_I2C_Read... [20:43:58]Read from MH i2c: 01 [20:43:58]MH_I2C_Read... [20:43:58]Read from MH i2c: 01 07 00 [20:43:58]MH_I2C_Read... [20:43:58]Read from MH i2c: 01 07 00 C1 0E 00 00 00 00 00 FF 0F E4 [20:43:58]RasterBufferAndPrint [20:43:58]line Счет N : (1)191487 [20:43:58]line ИНН: 02508201610067 [20:43:58]line Контрольно-Кассовый Чек [20:43:58]line ПРОДАЖА [20:43:58]line ТРК (МРК, ГНК) : 51 [20:43:58]line Товар: 2710194210 [20:43:58]line ДТ-К-5 [20:43:58]line 20.870 * 71.90 [20:43:58]line = 1500.55 [20:43:58]line НДС 12% НСП 1% [20:43:58]line > о реализуемом товаре [20:43:58]line ОКРУГЛЕНИЕ: -0.55 [20:43:58]line ИТОГО: 1500.00 [20:43:58]line Внесено: 1500.00 [20:43:58]line СДАЧА: 0.00 [20:43:58]line НСП 1% : 13.28 [20:43:58]line НДС 12% : 159.35 [20:43:58]line Наличными: 1500.00 [20:43:58]line Безнал.: 0.00 [20:43:58]line Место: АЗС № 106 "Партнер Нефть" [20:43:58]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [20:43:58]line СНО: Общий режим [20:43:58]line Чек 195 21.04.2024 20:43 [20:43:58]line Смена: 372 ФФД: 1.0 [20:43:58]line ЗНМ: 0300000141 [20:43:58]line РНМ: 0000000000091573 [20:43:58]line Версия ККМ: 001 [20:43:58]line [20:43:58]line Дисконтная программа [20:43:58]line ДТ [20:43:58]line номер 106 [20:43:58]line сэкономлено 20.87 сом [20:43:58]line ФМ: 0000000000874652 [20:43:58]line ФД: 76939 [20:43:58]line ФПД: 60831831065287 [20:43:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T204358&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76939&fm=60831831065287&tin=02508201610067®Number=0000000000091573&sum=150000 [20:43:59]OFD Sender: Processing packet 76939 [packets to send 129, broken 128] [20:43:59]ProducePacketName [20:43:59]name=ofd_packets/00076939 [20:43:59]OFD Sender: To server: pG, [20:43:59]CommunicateWithHost lk.salyk.kg:30040 [20:43:59]ConnectInit lk.salyk.kg [20:43:59]written 0, free lines is 4095 [20:43:59]Connected sock=10 [20:43:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 2C BA 04 01 08 9B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 8E 7A 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8B 2C 01 00 35 04 06 00 37 53 83 AE 82 C7 3F 50 3A 59 4C 0F 5F E9 [20:43:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 82 D4 47 00 DB 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 34 36 35 32 10 04 04 00 8B 2C 01 00 F4 03 04 00 12 22 25 66 B6 04 01 00 00 E1 A4 68 BD B9 67 EE 02 [20:43:59]CommunicateWithHost err = 0 [20:43:59]CheckOFDResponse [20:43:59]1017 (14) - 77093643461234 [20:43:59]1041 (16) - 0000000000874652 [20:43:59]1040 (4) - 76939 [20:43:59]1012 (4) - 21.04.2024 14:26 [20:43:59]1206 (1) - 0 [20:43:59]OFD Sender: Remove packet 76939 [20:43:59]ProducePacketName [20:43:59]name=ofd_packets/00076939 [20:43:59]NVStorageDeleteData [20:43:59]Write to MH i2c: 01 00 00 F0 0E FE [20:43:59]Write i2c OK [20:43:59]MH_I2C_Read... [20:43:59]Read from MH i2c: 01 [20:43:59]MH_I2C_Read... [20:43:59]Read from MH i2c: 01 07 00 [20:43:59]MH_I2C_Read... [20:43:59]Read from MH i2c: 01 07 00 F0 0E 00 00 00 00 00 92 0C A3 [20:43:59]RasterBufferAndPrint [20:43:59]line [20:43:59]line [20:43:59]line [20:43:59]line [20:43:59]line [20:43:59]written 0, free lines is 3225 [20:43:59]MH_Cut [20:43:59]Write to MH i2c: D1 01 00 F7 0E 01 D7 [20:43:59]Write i2c OK [20:43:59]MH_I2C_Read... [20:43:59]Read from MH i2c: D1 [20:43:59]MH_I2C_Read... [20:43:59]Read from MH i2c: D1 01 00 [20:43:59]MH_I2C_Read... [20:43:59]Read from MH i2c: D1 01 00 F7 0E 00 D6 [20:43:59]Write to MH i2c: 01 00 00 F8 0E 06 [20:43:59]Write i2c OK [20:43:59]MH_I2C_Read... [20:43:59]OFD Sender: No OFD packet to send [20:44:00]*** Cut start [20:44:00]*** Partial cut [20:44:00]*** CUTSNS_PIN = 1 [20:44:00]*** CUTSNS_PIN = 0 [20:44:00]*** Brake cut motor [20:44:00]Read from MH i2c: 01 [20:44:00]MH_I2C_Read... [20:44:00]*** Stop cut motor [20:44:00]*** Cut end [20:44:00]Read from MH i2c: 01 07 00 [20:44:00]MH_I2C_Read... [20:44:00]Read from MH i2c: 01 07 00 F8 0E 00 00 00 00 00 FF 0F 1B [20:44:00]process_action close_receipt done [20:44:00]requested_data is exist [20:44:00]produce_requested_data [20:44:00]requested_item fm.sn is exist - process it [20:44:00]wFMCommunicate request_size=4 [20:44:00]MH_SAM_APDU [20:44:00]CAPDU: 80 11 00 00 [20:44:00]Write to MH i2c: E2 08 00 F9 0E 80 11 00 00 00 00 00 00 81 [20:44:00]Write i2c OK [20:44:00]MH_I2C_Read... [20:44:00]Read from MH i2c: E2 [20:44:00]MH_I2C_Read... [20:44:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:00]Read from MH i2c: E2 17 00 [20:44:00]MH_I2C_Read... [20:44:00]Read from MH i2c: E2 17 00 F9 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 D4 [20:44:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:44:00]wFMCommunicate OK [20:44:00]requested_item fd.num is exist - process it [20:44:00]SAM_PROTO_GetFieldsCounters [20:44:00]wFMCommunicate request_size=4 [20:44:00]MH_SAM_APDU [20:44:00]CAPDU: 80 13 00 00 [20:44:00]Write to MH i2c: E2 08 00 FA 0E 80 13 00 00 00 00 00 00 84 [20:44:00]Write i2c OK [20:44:00]MH_I2C_Read... [20:44:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:44:01]Read from MH i2c: E2 [20:44:01]MH_I2C_Read... [20:44:01]Read from MH i2c: E2 62 00 [20:44:01]MH_I2C_Read... [20:44:01]Read from MH i2c: E2 62 00 FA 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 8B 2C 01 00 0E 04 04 00 74 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 1B [20:44: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 8B 2C 01 00 0E 04 04 00 74 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 [20:44:01]wFMCommunicate OK [20:44:01]SAM_PROTO_GetFieldsCounters done [20:44:01]requested_item shift.num is exist - process it [20:44:01]requested_item shift.opened is exist - process it [20:44:01]req_shift_opened [20:44:01]FM_GetShiftState [20:44:01]SAM_PROTO_GetShiftState [20:44:01]wFMCommunicate request_size=4 [20:44:01]MH_SAM_APDU [20:44:01]CAPDU: 80 13 01 00 [20:44:01]Write to MH i2c: E2 08 00 FB 0E 80 13 01 00 00 00 00 00 86 [20:44:01]Write i2c OK [20:44:01]MH_I2C_Read... [20:44:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:01]Read from MH i2c: E2 [20:44:01]MH_I2C_Read... [20:44:01]Read from MH i2c: E2 0E 00 [20:44:01]MH_I2C_Read... [20:44:01]Read from MH i2c: E2 0E 00 FB 0E 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 CD [20:44:01]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [20:44:01]wFMCommunicate OK [20:44:01]SAM_PROTO_GetShiftState done [20:44:01]FM_GetShiftState done [20:44:01]req_shift_opened done [20:44:01]requested_item shift.open_date is exist - process it [20:44:01]req_shift_open_date [20:44:01]req_shift_open_date done [20:44:01]produce_requested_data done [20:44:01]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76939,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [20:44:01]process_action_free close_receipt [20:44:01]json_value_free [20:44:01]json_value_free done [20:44:01]process_json_proto returns [20:44:01]Send response to host [20:44:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76939,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [20:44:01]free response buf [20:44:01]execute_script done [20:44:01]execute_script returns [20:44:01]free content buf [20:44:01]Sock 8.Close socket [20:44:01]Sock 8.Thread stoped [20:44:04]OFD Sender: No OFD packet to send [20:44:09]OFD Sender: No OFD packet to send [20:44:14]OFD Sender: No OFD packet to send [20:44:19]OFD Sender: No OFD packet to send [20:44:24]OFD Sender: No OFD packet to send [20:44:29]OFD Sender: No OFD packet to send [20:44:34]OFD Sender: No OFD packet to send [20:44:39]OFD Sender: No OFD packet to send [20:44:44]OFD Sender: No OFD packet to send [20:44:49]OFD Sender: No OFD packet to send [20:44:54]OFD Sender: No OFD packet to send [20:44:59]OFD Sender: No OFD packet to send [20:45:04]OFD Sender: No OFD packet to send [20:45:09]OFD Sender: No OFD packet to send [20:45:14]OFD Sender: No OFD packet to send [20:45:19]OFD Sender: No OFD packet to send [20:45:25]OFD Sender: No OFD packet to send [20:45:30]OFD Sender: No OFD packet to send [20:45:35]OFD Sender: No OFD packet to send [20:45:40]OFD Sender: No OFD packet to send [20:45:45]OFD Sender: No OFD packet to send [20:45:50]OFD Sender: No OFD packet to send [20:45:55]OFD Sender: No OFD packet to send [20:46:00]OFD Sender: No OFD packet to send [20:46:05]OFD Sender: No OFD packet to send [20:46:10]OFD Sender: No OFD packet to send [20:46:15]OFD Sender: No OFD packet to send [20:46:20]OFD Sender: No OFD packet to send [20:46:25]OFD Sender: No OFD packet to send [20:46:30]OFD Sender: No OFD packet to send [20:46:35]OFD Sender: No OFD packet to send [20:46:40]OFD Sender: No OFD packet to send [20:46:45]OFD Sender: No OFD packet to send [20:46:50]OFD Sender: No OFD packet to send [20:46:55]OFD Sender: No OFD packet to send [20:47:00]OFD Sender: No OFD packet to send [20:47:05]OFD Sender: No OFD packet to send [20:47:10]OFD Sender: No OFD packet to send [20:47:15]OFD Sender: No OFD packet to send [20:47:20]OFD Sender: No OFD packet to send [20:47:25]OFD Sender: No OFD packet to send [20:47:30]OFD Sender: No OFD packet to send [20:47:35]OFD Sender: No OFD packet to send [20:47:40]OFD Sender: No OFD packet to send [20:47:45]OFD Sender: No OFD packet to send [20:47:50]OFD Sender: No OFD packet to send [20:47:55]OFD Sender: No OFD packet to send [20:48:00]OFD Sender: No OFD packet to send [20:48:05]OFD Sender: No OFD packet to send [20:48:10]OFD Sender: No OFD packet to send [20:48:15]OFD Sender: No OFD packet to send [20:48:20]OFD Sender: No OFD packet to send [20:48:25]OFD Sender: No OFD packet to send [20:48:30]OFD Sender: No OFD packet to send [20:48:35]OFD Sender: No OFD packet to send [20:48:40]OFD Sender: No OFD packet to send [20:48:45]OFD Sender: No OFD packet to send [20:48:50]OFD Sender: No OFD packet to send [20:48:55]OFD Sender: No OFD packet to send [20:49:00]OFD Sender: No OFD packet to send [20:49:05]OFD Sender: No OFD packet to send [20:49:10]OFD Sender: No OFD packet to send [20:49:15]OFD Sender: No OFD packet to send [20:49:20]OFD Sender: No OFD packet to send [20:49:25]OFD Sender: No OFD packet to send [20:49:30]OFD Sender: No OFD packet to send [20:49:35]OFD Sender: No OFD packet to send [20:49:40]OFD Sender: No OFD packet to send [20:49:45]OFD Sender: No OFD packet to send [20:49:50]OFD Sender: No OFD packet to send [20:49:55]OFD Sender: No OFD packet to send [20:50:00]OFD Sender: No OFD packet to send [20:50:05]OFD Sender: No OFD packet to send [20:50:10]OFD Sender: No OFD packet to send [20:50:15]OFD Sender: No OFD packet to send [20:50:20]OFD Sender: No OFD packet to send [20:50:25]OFD Sender: No OFD packet to send [20:50:30]OFD Sender: No OFD packet to send [20:50:35]OFD Sender: No OFD packet to send [20:50:40]OFD Sender: No OFD packet to send [20:50:45]OFD Sender: No OFD packet to send [20:50:50]OFD Sender: No OFD packet to send [20:50:55]OFD Sender: No OFD packet to send [20:51:00]OFD Sender: No OFD packet to send [20:51:05]OFD Sender: No OFD packet to send [20:51:10]OFD Sender: No OFD packet to send [20:51:15]OFD Sender: No OFD packet to send [20:51:18]accept exits with 9 [20:51:18]New connection [20:51:18]New thread 3066944868 created [20:51:18]Thread 3066801508 joined [20:51:18]Waiting for new connection... [20:51:18] Sock 9.Parse request [20:51:18]Sock 9.Check first char [20:51:18]Sock 9.First char is OK [20:51:18]request: POST /json_proto HTTP/1.0 [20:51:18]Method: POST [20:51:18]URL: /json_proto [20:51:18]Method is POST - this is cgi request [20:51:18]url: /json_proto [20:51:18]query_string will be loaded in cgi processing [20:51:18]execute_cgi json_proto POST (null) [20:51:18]execute_cgi path=json_proto method=POST [20:51:18]POST find Content-Length [20:51:18]Host: 172.17.62.5:8080 [20:51:18]Content-Length: 808 [20:51:18]Content-Type: application/json [20:51:18] [20:51:18]POST finish read [20:51:18]Found Content-Length = 808 [20:51:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191488", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:51:18]execute_script... [20:51: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)191488", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:51:18]POST & json_proto [20:51:18]process_json_proto [20:51:18]json parsed OK: [20:51:18]protocol is kg_v1.0 [20:51:18]action value=close_receipt [20:51:18]process_action close_receipt [20:51:18]cmd_close_receipt [20:51:18]MH_GetDate [20:51:18]Write to MH i2c: F0 00 00 FC 0E F9 [20:51:18]Write i2c OK [20:51:18]MH_I2C_Read... [20:51:18]Read from MH i2c: F0 [20:51:18]MH_I2C_Read... [20:51:18]Read from MH i2c: F0 09 00 [20:51:18]MH_I2C_Read... [20:51:18]Read from MH i2c: F0 09 00 FC 0E 00 47 7C 25 66 F4 E9 65 64 F6 [20:51:18]GetLastDocTimeStamp 1713732238 [20:51:18]current date 1713732679 [20:51:18]FM_GetShiftState [20:51:18]SAM_PROTO_GetShiftState [20:51:18]wFMCommunicate request_size=4 [20:51:18]MH_SAM_APDU [20:51:18]CAPDU: 80 13 01 00 [20:51:18]Write to MH i2c: E2 08 00 FD 0E 80 13 01 00 00 00 00 00 88 [20:51:18]Write i2c OK [20:51:18]MH_I2C_Read... [20:51:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:18]Read from MH i2c: E2 [20:51:18]MH_I2C_Read... [20:51:18]Read from MH i2c: E2 0E 00 [20:51:18]MH_I2C_Read... [20:51:18]Read from MH i2c: E2 0E 00 FD 0E 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 CF [20:51:18]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [20:51:18]wFMCommunicate OK [20:51:18]SAM_PROTO_GetShiftState done [20:51:18]FM_GetShiftState done [20:51:18]opened in 1713658965 [20:51:18]opened+sec_in_day 1713745365 [20:51:18]quantity*price = 100018 [20:51:18]sum+1 = 100020 [20:51:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.19 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.19 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 196 21.04.2024 20:51 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 76940 ФПД: 263557349231742 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T205119&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76940&fm=263557349231742&tin=02508201610067®Number=0000000000091573&sum=100019 [20:51:19]StoreToDocumentArchive [20:51:19]shift 372 fd 76940 [20:51:19]save to /storage/0372/doc_00076940 [20:51:19]save last doc name /storage/0372/doc_00076940 to /storage/kkm_last_doc_name [20:51:19]save OK [20:51:19]Clear old archive folders... [20:51:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:51:19]tlvbuf is 00CA2D20 [20:51:19]SAM_PROTO_ClearQueue [20:51:19]wFMCommunicate request_size=4 [20:51:19]MH_SAM_APDU [20:51:19]CAPDU: 80 09 00 00 [20:51:19]Write to MH i2c: E2 08 00 0A 0F 80 09 00 00 00 00 00 00 8B [20:51:19]Write i2c OK [20:51:19]MH_I2C_Read... [20:51:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:51:19]Read from MH i2c: E2 [20:51:19]MH_I2C_Read... [20:51:19]Read from MH i2c: E2 03 00 [20:51:19]MH_I2C_Read... [20:51:19]Read from MH i2c: E2 03 00 0A 0F 00 90 00 8D [20:51:19]RAPDU: 90 00 [20:51:19]wFMCommunicate OK [20:51:19]SAM_PROTO_ClearQueue done [20:51:19]KKMCreateOFDPacket [20:51:19]OFDProtocolAddRootSTLVToBuf [20:51:19]FM_MakeSignedData [20:51:19]FM_MakeSignedData [20:51:19]SAM_PROTO_SignData [20:51:19]wFMCommunicate request_size=4 [20:51:19]MH_SAM_APDU [20:51:19]CAPDU: 80 0D 01 02 [20:51:19]Write to MH i2c: E2 08 00 0B 0F 80 0D 01 02 00 00 00 00 93 [20:51:19]Write i2c OK [20:51:19]MH_I2C_Read... [20:51:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:51:19]Read from MH i2c: E2 [20:51:19]MH_I2C_Read... [20:51:19]Read from MH i2c: E2 03 00 [20:51:19]MH_I2C_Read... [20:51:19]Read from MH i2c: E2 03 00 0B 0F 00 90 00 8E [20:51:19]RAPDU: 90 00 [20:51:19]wFMCommunicate OK [20:51:19]wFMCommunicate request_size=255 [20:51:19]MH_SAM_APDU [20:51: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 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 C4 00 00 00 F4 03 04 00 47 7C 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8C 2C 01 00 35 04 06 00 EF [20:51:19]Write to MH i2c: E2 02 01 0C 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 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 C4 00 00 00 F4 03 04 00 47 7C 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8C 2C 01 00 35 04 06 00 EF 00 00 FF [20:51:19]Write i2c OK [20:51:19]MH_I2C_Read... [20:51:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:19]Read from MH i2c: E2 [20:51:19]MH_I2C_Read... [20:51:19]Read from MH i2c: E2 03 00 [20:51:19]MH_I2C_Read... [20:51:19]Read from MH i2c: E2 03 00 0C 0F 00 90 00 8F [20:51:19]RAPDU: 90 00 [20:51:19]wFMCommunicate OK [20:51:19]wFMCommunicate request_size=10 [20:51:19]MH_SAM_APDU [20:51:19]CAPDU: 80 0D 02 02 05 B4 3A 2D CC 7E [20:51:19]Write to MH i2c: E2 0D 00 0D 0F 80 0D 02 02 05 00 B4 3A 2D CC 7E 00 00 05 [20:51:19]Write i2c OK [20:51:19]MH_I2C_Read... [20:51:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:19]Read from MH i2c: E2 [20:51:19]MH_I2C_Read... [20:51:19]Read from MH i2c: E2 03 00 [20:51:19]MH_I2C_Read... [20:51:19]Read from MH i2c: E2 03 00 0D 0F 00 90 00 90 [20:51:19]RAPDU: 90 00 [20:51:19]wFMCommunicate OK [20:51:19]wFMCommunicate request_size=4 [20:51:19]MH_SAM_APDU [20:51:19]CAPDU: 80 0D 03 02 [20:51:19]Write to MH i2c: E2 08 00 0E 0F 80 0D 03 02 00 00 00 00 98 [20:51:19]Write i2c OK [20:51:19]MH_I2C_Read... [20:51:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:51:19]Read from MH i2c: E2 [20:51:19]MH_I2C_Read... [20:51:19]Read from MH i2c: E2 0B 00 [20:51:19]MH_I2C_Read... [20:51:19]Read from MH i2c: E2 0B 00 0E 0F 00 E6 24 4B 55 37 AD 9C BA 90 00 7D [20:51:19]RAPDU: E6 24 4B 55 37 AD 9C BA 90 00 [20:51:19]wFMCommunicate OK [20:51:19]SAM_PROTO_SignData done [20:51:19]FM_MakeSignedData done [20:51:19]CreateOFDProtocolMessage [20:51:19]wFMCommunicate request_size=4 [20:51:19]MH_SAM_APDU [20:51:19]CAPDU: 80 11 00 00 [20:51:19]Write to MH i2c: E2 08 00 0F 0F 80 11 00 00 00 00 00 00 98 [20:51:19]Write i2c OK [20:51:19]MH_I2C_Read... [20:51:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:20]Read from MH i2c: E2 [20:51:20]MH_I2C_Read... [20:51:20]Read from MH i2c: E2 17 00 [20:51:20]MH_I2C_Read... [20:51:20]Read from MH i2c: E2 17 00 0F 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 EB [20:51:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:51:20]wFMCommunicate OK [20:51:20]CreateOFDProtocolMessage done [20:51:20]OFDSenderStorePacket 76940 [20:51:20]StoreOFDPacket docnum=76940 [20:51:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 FA 21 07 01 6E 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 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 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 C4 00 00 00 F4 03 04 00 47 7C 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8C 2C 01 00 35 04 06 00 EF B4 3A 2D CC 7E E6 24 4B 55 37 AD 9C BA [20:51:20]CheckFolder [20:51:20]dirname=/storage/ofd_packets [20:51:20]CheckFolder done [20:51:20]ProducePacketName [20:51:20]name=ofd_packets/00076940 [20:51:20]NVStorageSaveData ofd_packets/00076940 [20:51:20]File name is /storage/ofd_packets/00076940 [20:51:20]Write 301 bytes [20:51:20]NVStorageSaveData done [20:51:20]OFDSenderStorePacket done [20:51:20]KKMCreateOFDPacket done [20:51:20]NVStorageSaveData kkm_last_timestamp [20:51:20]File name is /storage/kkm_last_timestamp [20:51:20]Write 4 bytes [20:51:20]NVStorageSaveData done [20:51:20]ExternCall_PrintAddStr [20:51:20]wPrintStart [20:51:20]Write to MH i2c: 01 00 00 10 0F 1F [20:51:20]Write i2c OK [20:51:20]MH_I2C_Read... [20:51:20]Read from MH i2c: 01 [20:51:20]MH_I2C_Read... [20:51:20]Read from MH i2c: 01 07 00 [20:51:20]MH_I2C_Read... [20:51:20]Read from MH i2c: 01 07 00 10 0F 00 00 00 00 00 FF 0F 34 [20:51:20]RasterBufferAndPrint [20:51:20]line Счет N : (1)191488 [20:51:20]line ИНН: 02508201610067 [20:51:20]line Контрольно-Кассовый Чек [20:51:20]line ПРОДАЖА [20:51:20]line ТРК (МРК, ГНК) : 42 [20:51:20]line Товар: 2710124500 [20:51:20]line Аи-95-К-5 [20:51:20]line 13.720 * 72.90 [20:51:20]line = 1000.19 [20:51:20]line НДС 12% НСП 1% [20:51:20]line > о реализуемом товаре [20:51:20]line ИТОГО: 1000.19 [20:51:20]line НСП 1% : 8.85 [20:51:20]line НДС 12% : 106.21 [20:51:20]line Наличными: 0.00 [20:51:20]line Безнал.: 1000.19 [20:51:20]line Место: АЗС № 106 "Партнер Нефть" [20:51:20]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [20:51:20]line СНО: Общий режим [20:51:20]line Чек 196 21.04.2024 20:51 [20:51:20]line Смена: 372 ФФД: 1.0 [20:51:20]line ЗНМ: 0300000141 [20:51:20]line РНМ: 0000000000091573 [20:51:20]line Версия ККМ: 001 [20:51:20]line Платежная система: О! деньги [20:51:20]line ФМ: 0000000000874652 [20:51:20]line ФД: 76940 [20:51:20]line ФПД: 263557349231742 [20:51:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T205119&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76940&fm=263557349231742&tin=02508201610067®Number=0000000000091573&sum=100019 [20:51:20]OFD Sender: Processing packet 76940 [packets to send 129, broken 128] [20:51:20]ProducePacketName [20:51:20]name=ofd_packets/00076940 [20:51:20]OFD Sender: To server: pG, [20:51:20]CommunicateWithHost lk.salyk.kg:30040 [20:51:20]ConnectInit lk.salyk.kg [20:51:20]written 0, free lines is 4095 [20:51:20]Connected sock=10 [20:51:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 FA 21 07 01 6E 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 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 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 C4 00 00 00 F4 03 04 00 47 7C 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8C 2C 01 00 35 04 06 00 EF B4 3A 2D CC 7E E6 24 4B 55 37 AD 9C BA [20:51:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 3B A8 47 00 36 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8C 2C 01 00 F4 03 04 00 CC 23 25 66 B6 04 01 00 00 EF 28 EA 4D 70 9D FE 54 [20:51:20]CommunicateWithHost err = 0 [20:51:20]CheckOFDResponse [20:51:20]1017 (14) - 77093643461234 [20:51:20]1041 (16) - 0000000000874652 [20:51:20]1040 (4) - 76940 [20:51:20]1012 (4) - 21.04.2024 14:33 [20:51:20]1206 (1) - 0 [20:51:20]OFD Sender: Remove packet 76940 [20:51:20]ProducePacketName [20:51:20]name=ofd_packets/00076940 [20:51:20]NVStorageDeleteData [20:51:20]Write to MH i2c: 01 00 00 39 0F 48 [20:51:20]Write i2c OK [20:51:20]MH_I2C_Read... [20:51:20]Read from MH i2c: 01 [20:51:20]MH_I2C_Read... [20:51:20]Read from MH i2c: 01 07 00 [20:51:20]MH_I2C_Read... [20:51:20]Read from MH i2c: 01 07 00 39 0F 00 00 00 00 00 F4 0C 4F [20:51:20]RasterBufferAndPrint [20:51:20]line [20:51:20]line [20:51:20]line [20:51:20]line [20:51:20]line [20:51:20]written 0, free lines is 3323 [20:51:20]MH_Cut [20:51:20]Write to MH i2c: D1 01 00 40 0F 01 21 [20:51:20]Write i2c OK [20:51:20]MH_I2C_Read... [20:51:20]Read from MH i2c: D1 [20:51:20]MH_I2C_Read... [20:51:20]Read from MH i2c: D1 01 00 [20:51:20]MH_I2C_Read... [20:51:20]Read from MH i2c: D1 01 00 40 0F 00 20 [20:51:20]Write to MH i2c: 01 00 00 41 0F 50 [20:51:20]Write i2c OK [20:51:20]MH_I2C_Read... [20:51:21]OFD Sender: No OFD packet to send [20:51:21]*** Cut start [20:51:21]*** Partial cut [20:51:21]*** CUTSNS_PIN = 1 [20:51:21]*** CUTSNS_PIN = 0 [20:51:21]*** Brake cut motor [20:51:22]Read from MH i2c: 01 [20:51:22]MH_I2C_Read... [20:51:22]*** Stop cut motor [20:51:22]*** Cut end [20:51:22]Read from MH i2c: 01 07 00 [20:51:22]MH_I2C_Read... [20:51:22]Read from MH i2c: 01 07 00 41 0F 00 00 00 00 00 FF 0F 65 [20:51:22]process_action close_receipt done [20:51:22]requested_data is exist [20:51:22]produce_requested_data [20:51:22]requested_item fm.sn is exist - process it [20:51:22]wFMCommunicate request_size=4 [20:51:22]MH_SAM_APDU [20:51:22]CAPDU: 80 11 00 00 [20:51:22]Write to MH i2c: E2 08 00 42 0F 80 11 00 00 00 00 00 00 CB [20:51:22]Write i2c OK [20:51:22]MH_I2C_Read... [20:51:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:22]Read from MH i2c: E2 [20:51:22]MH_I2C_Read... [20:51:22]Read from MH i2c: E2 17 00 [20:51:22]MH_I2C_Read... [20:51:22]Read from MH i2c: E2 17 00 42 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 1E [20:51:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:51:22]wFMCommunicate OK [20:51:22]requested_item fd.num is exist - process it [20:51:22]SAM_PROTO_GetFieldsCounters [20:51:22]wFMCommunicate request_size=4 [20:51:22]MH_SAM_APDU [20:51:22]CAPDU: 80 13 00 00 [20:51:22]Write to MH i2c: E2 08 00 43 0F 80 13 00 00 00 00 00 00 CE [20:51:22]Write i2c OK [20:51:22]MH_I2C_Read... [20:51:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:51:22]Read from MH i2c: E2 [20:51:22]MH_I2C_Read... [20:51:22]Read from MH i2c: E2 62 00 [20:51:22]MH_I2C_Read... [20:51:22]Read from MH i2c: E2 62 00 43 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 8C 2C 01 00 0E 04 04 00 74 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 69 [20:51: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 8C 2C 01 00 0E 04 04 00 74 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 [20:51:22]wFMCommunicate OK [20:51:22]SAM_PROTO_GetFieldsCounters done [20:51:22]requested_item shift.num is exist - process it [20:51:22]requested_item shift.opened is exist - process it [20:51:22]req_shift_opened [20:51:22]FM_GetShiftState [20:51:22]SAM_PROTO_GetShiftState [20:51:22]wFMCommunicate request_size=4 [20:51:22]MH_SAM_APDU [20:51:22]CAPDU: 80 13 01 00 [20:51:22]Write to MH i2c: E2 08 00 44 0F 80 13 01 00 00 00 00 00 D0 [20:51:22]Write i2c OK [20:51:22]MH_I2C_Read... [20:51:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:22]Read from MH i2c: E2 [20:51:22]MH_I2C_Read... [20:51:22]Read from MH i2c: E2 0E 00 [20:51:22]MH_I2C_Read... [20:51:22]Read from MH i2c: E2 0E 00 44 0F 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 17 [20:51:22]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [20:51:22]wFMCommunicate OK [20:51:22]SAM_PROTO_GetShiftState done [20:51:22]FM_GetShiftState done [20:51:22]req_shift_opened done [20:51:22]requested_item shift.open_date is exist - process it [20:51:22]req_shift_open_date [20:51:22]req_shift_open_date done [20:51:22]produce_requested_data done [20:51:22]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76940,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [20:51:22]process_action_free close_receipt [20:51:22]json_value_free [20:51:22]json_value_free done [20:51:22]process_json_proto returns [20:51:22]Send response to host [20:51:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76940,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [20:51:22]free response buf [20:51:22]execute_script done [20:51:22]execute_script returns [20:51:22]free content buf [20:51:22]Sock 9.Close socket [20:51:22]Sock 9.Thread stoped [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:03]accept exits with 8 [20:53:03]New connection [20:53:03]New thread 3066801508 created [20:53:03]Thread 3066944868 joined [20:53:03]Waiting for new connection... [20:53:03] Sock 8.Parse request [20:53:03]Sock 8.Check first char [20:53:03]Sock 8.First char is OK [20:53:03]request: POST /json_proto HTTP/1.0 [20:53:03]Method: POST [20:53:03]URL: /json_proto [20:53:03]Method is POST - this is cgi request [20:53:03]url: /json_proto [20:53:03]query_string will be loaded in cgi processing [20:53:03]execute_cgi json_proto POST (null) [20:53:03]execute_cgi path=json_proto method=POST [20:53:03]POST find Content-Length [20:53:03]Host: 172.17.62.5:8080 [20:53:03]Content-Length: 813 [20:53:03]Content-Type: application/json [20:53:03] [20:53:03]POST finish read [20:53:03]Found Content-Length = 813 [20:53:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:53:03]execute_script... [20:53: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)191489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:53:03]POST & json_proto [20:53:03]process_json_proto [20:53:03]json parsed OK: [20:53:03]protocol is kg_v1.0 [20:53:03]action value=close_receipt [20:53:03]process_action close_receipt [20:53:03]cmd_close_receipt [20:53:03]MH_GetDate [20:53:03]Write to MH i2c: F0 00 00 45 0F 43 [20:53:03]Write i2c OK [20:53:03]MH_I2C_Read... [20:53:03]Read from MH i2c: F0 [20:53:03]MH_I2C_Read... [20:53:03]Read from MH i2c: F0 09 00 [20:53:03]MH_I2C_Read... [20:53:03]Read from MH i2c: F0 09 00 45 0F 00 B0 7C 25 66 F4 E9 65 64 A9 [20:53:03]GetLastDocTimeStamp 1713732679 [20:53:03]current date 1713732784 [20:53:03]FM_GetShiftState [20:53:03]SAM_PROTO_GetShiftState [20:53:03]wFMCommunicate request_size=4 [20:53:03]MH_SAM_APDU [20:53:03]CAPDU: 80 13 01 00 [20:53:03]Write to MH i2c: E2 08 00 46 0F 80 13 01 00 00 00 00 00 D2 [20:53:03]Write i2c OK [20:53:03]MH_I2C_Read... [20:53:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:03]Read from MH i2c: E2 [20:53:03]MH_I2C_Read... [20:53:03]Read from MH i2c: E2 0E 00 [20:53:03]MH_I2C_Read... [20:53:03]Read from MH i2c: E2 0E 00 46 0F 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 19 [20:53:03]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [20:53:03]wFMCommunicate OK [20:53:03]SAM_PROTO_GetShiftState done [20:53:03]FM_GetShiftState done [20:53:03]opened in 1713658965 [20:53:03]opened+sec_in_day 1713745365 [20:53:03]quantity*price = 50009 [20:53:03]sum+1 = 50010 [20:53:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.09 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.09 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 197 21.04.2024 20:53 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 76941 ФПД: 71940965297717 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T205304&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76941&fm=71940965297717&tin=02508201610067®Number=0000000000091573&sum=50009 [20:53:04]StoreToDocumentArchive [20:53:04]shift 372 fd 76941 [20:53:04]save to /storage/0372/doc_00076941 [20:53:04]save last doc name /storage/0372/doc_00076941 to /storage/kkm_last_doc_name [20:53:04]save OK [20:53:04]Clear old archive folders... [20:53:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:53:04]tlvbuf is 00CA3CE0 [20:53:04]SAM_PROTO_ClearQueue [20:53:04]wFMCommunicate request_size=4 [20:53:04]MH_SAM_APDU [20:53:04]CAPDU: 80 09 00 00 [20:53:04]Write to MH i2c: E2 08 00 53 0F 80 09 00 00 00 00 00 00 D4 [20:53:04]Write i2c OK [20:53:04]MH_I2C_Read... [20:53:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:53:04]Read from MH i2c: E2 [20:53:04]MH_I2C_Read... [20:53:04]Read from MH i2c: E2 03 00 [20:53:04]MH_I2C_Read... [20:53:04]Read from MH i2c: E2 03 00 53 0F 00 90 00 D6 [20:53:04]RAPDU: 90 00 [20:53:04]wFMCommunicate OK [20:53:04]SAM_PROTO_ClearQueue done [20:53:04]KKMCreateOFDPacket [20:53:04]OFDProtocolAddRootSTLVToBuf [20:53:04]FM_MakeSignedData [20:53:04]FM_MakeSignedData [20:53:04]SAM_PROTO_SignData [20:53:04]wFMCommunicate request_size=4 [20:53:04]MH_SAM_APDU [20:53:04]CAPDU: 80 0D 01 02 [20:53:04]Write to MH i2c: E2 08 00 54 0F 80 0D 01 02 00 00 00 00 DC [20:53:04]Write i2c OK [20:53:04]MH_I2C_Read... [20:53:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:53:04]Read from MH i2c: E2 [20:53:04]MH_I2C_Read... [20:53:04]Read from MH i2c: E2 03 00 [20:53:04]MH_I2C_Read... [20:53:04]Read from MH i2c: E2 03 00 54 0F 00 90 00 D7 [20:53:04]RAPDU: 90 00 [20:53:04]wFMCommunicate OK [20:53:04]wFMCommunicate request_size=255 [20:53:04]MH_SAM_APDU [20:53:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 B0 7C 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8D 2C 01 00 35 04 06 00 41 6E 0F AE [20:53:04]Write to MH i2c: E2 02 01 55 0F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 B0 7C 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8D 2C 01 00 35 04 06 00 41 6E 0F AE 00 00 AF [20:53:04]Write i2c OK [20:53:04]MH_I2C_Read... [20:53:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:05]Read from MH i2c: E2 [20:53:05]MH_I2C_Read... [20:53:05]Read from MH i2c: E2 03 00 [20:53:05]MH_I2C_Read... [20:53:05]Read from MH i2c: E2 03 00 55 0F 00 90 00 D8 [20:53:05]RAPDU: 90 00 [20:53:05]wFMCommunicate OK [20:53:05]wFMCommunicate request_size=7 [20:53:05]MH_SAM_APDU [20:53:05]CAPDU: 80 0D 02 02 02 6E 35 [20:53:05]Write to MH i2c: E2 0A 00 56 0F 80 0D 02 02 02 00 6E 35 00 00 86 [20:53:05]Write i2c OK [20:53:05]MH_I2C_Read... [20:53:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:05]Read from MH i2c: E2 [20:53:05]MH_I2C_Read... [20:53:05]Read from MH i2c: E2 03 00 [20:53:05]MH_I2C_Read... [20:53:05]Read from MH i2c: E2 03 00 56 0F 00 90 00 D9 [20:53:05]RAPDU: 90 00 [20:53:05]wFMCommunicate OK [20:53:05]wFMCommunicate request_size=4 [20:53:05]MH_SAM_APDU [20:53:05]CAPDU: 80 0D 03 02 [20:53:05]Write to MH i2c: E2 08 00 57 0F 80 0D 03 02 00 00 00 00 E1 [20:53:05]Write i2c OK [20:53:05]MH_I2C_Read... [20:53:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:53:05]Read from MH i2c: E2 [20:53:05]MH_I2C_Read... [20:53:05]Read from MH i2c: E2 0B 00 [20:53:05]MH_I2C_Read... [20:53:05]Read from MH i2c: E2 0B 00 57 0F 00 70 4C 66 D2 C9 68 4D 16 90 00 6A [20:53:05]RAPDU: 70 4C 66 D2 C9 68 4D 16 90 00 [20:53:05]wFMCommunicate OK [20:53:05]SAM_PROTO_SignData done [20:53:05]FM_MakeSignedData done [20:53:05]CreateOFDProtocolMessage [20:53:05]wFMCommunicate request_size=4 [20:53:05]MH_SAM_APDU [20:53:05]CAPDU: 80 11 00 00 [20:53:05]Write to MH i2c: E2 08 00 58 0F 80 11 00 00 00 00 00 00 E1 [20:53:05]Write i2c OK [20:53:05]MH_I2C_Read... [20:53:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:05]Read from MH i2c: E2 [20:53:05]MH_I2C_Read... [20:53:05]Read from MH i2c: E2 17 00 [20:53:05]MH_I2C_Read... [20:53:05]Read from MH i2c: E2 17 00 58 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 34 [20:53:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:53:05]wFMCommunicate OK [20:53:05]CreateOFDProtocolMessage done [20:53:05]OFDSenderStorePacket 76941 [20:53:05]StoreOFDPacket docnum=76941 [20:53:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 18 2D 04 01 16 16 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 B0 7C 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8D 2C 01 00 35 04 06 00 41 6E 0F AE 6E 35 70 4C 66 D2 C9 68 4D 16 [20:53:05]CheckFolder [20:53:05]dirname=/storage/ofd_packets [20:53:05]CheckFolder done [20:53:05]ProducePacketName [20:53:05]name=ofd_packets/00076941 [20:53:05]NVStorageSaveData ofd_packets/00076941 [20:53:05]File name is /storage/ofd_packets/00076941 [20:53:05]Write 298 bytes [20:53:05]NVStorageSaveData done [20:53:05]OFDSenderStorePacket done [20:53:05]KKMCreateOFDPacket done [20:53:05]NVStorageSaveData kkm_last_timestamp [20:53:05]File name is /storage/kkm_last_timestamp [20:53:05]Write 4 bytes [20:53:05]NVStorageSaveData done [20:53:05]ExternCall_PrintAddStr [20:53:05]wPrintStart [20:53:05]Write to MH i2c: 01 00 00 59 0F 68 [20:53:05]Write i2c OK [20:53:05]MH_I2C_Read... [20:53:05]Read from MH i2c: 01 [20:53:05]MH_I2C_Read... [20:53:05]Read from MH i2c: 01 07 00 [20:53:05]MH_I2C_Read... [20:53:05]Read from MH i2c: 01 07 00 59 0F 00 00 00 00 00 FF 0F 7D [20:53:05]RasterBufferAndPrint [20:53:05]line Счет N : (1)191489 [20:53:05]line ИНН: 02508201610067 [20:53:05]line Контрольно-Кассовый Чек [20:53:05]line ПРОДАЖА [20:53:05]line ТРК (МРК, ГНК) : 51 [20:53:05]line Товар: 2710194210 [20:53:05]line ДТ-К-5 [20:53:05]line 6.860 * 72.90 [20:53:05]line = 500.09 [20:53:05]line НДС 12% НСП 1% [20:53:05]line > о реализуемом товаре [20:53:05]line ИТОГО: 500.09 [20:53:05]line НСП 1% : 4.43 [20:53:05]line НДС 12% : 53.11 [20:53:05]line Наличными: 0.00 [20:53:05]line Безнал.: 500.09 [20:53:05]line Место: АЗС № 106 "Партнер Нефть" [20:53:05]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [20:53:05]line СНО: Общий режим [20:53:05]line Чек 197 21.04.2024 20:53 [20:53:05]line Смена: 372 ФФД: 1.0 [20:53:05]line ЗНМ: 0300000141 [20:53:05]line РНМ: 0000000000091573 [20:53:05]line Версия ККМ: 001 [20:53:05]line Платежная система: Бакай Банк [20:53:05]line ФМ: 0000000000874652 [20:53:05]line ФД: 76941 [20:53:05]line ФПД: 71940965297717 [20:53:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T205304&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76941&fm=71940965297717&tin=02508201610067®Number=0000000000091573&sum=50009 [20:53:05]OFD Sender: Processing packet 76941 [packets to send 129, broken 128] [20:53:05]ProducePacketName [20:53:05]name=ofd_packets/00076941 [20:53:05]OFD Sender: To server: pG, [20:53:05]CommunicateWithHost lk.salyk.kg:30040 [20:53:05]ConnectInit lk.salyk.kg [20:53:05]written 0, free lines is 4095 [20:53:05]Connected sock=10 [20:53:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 18 2D 04 01 16 16 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 B0 7C 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8D 2C 01 00 35 04 06 00 41 6E 0F AE 6E 35 70 4C 66 D2 C9 68 4D 16 [20:53:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 27 DB 47 00 58 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 34 36 35 32 10 04 04 00 8D 2C 01 00 F4 03 04 00 35 24 25 66 B6 04 01 00 00 89 26 CF 08 E9 D3 01 5A [20:53:05]CommunicateWithHost err = 0 [20:53:05]CheckOFDResponse [20:53:05]1017 (14) - 77093643461234 [20:53:05]1041 (16) - 0000000000874652 [20:53:05]1040 (4) - 76941 [20:53:05]1012 (4) - 21.04.2024 14:35 [20:53:05]1206 (1) - 0 [20:53:05]OFD Sender: Remove packet 76941 [20:53:05]ProducePacketName [20:53:05]name=ofd_packets/00076941 [20:53:05]NVStorageDeleteData [20:53:06]Write to MH i2c: 01 00 00 82 0F 91 [20:53:06]Write i2c OK [20:53:06]MH_I2C_Read... [20:53:06]Read from MH i2c: 01 [20:53:06]MH_I2C_Read... [20:53:06]Read from MH i2c: 01 07 00 [20:53:06]MH_I2C_Read... [20:53:06]Read from MH i2c: 01 07 00 82 0F 00 00 00 00 00 03 0D A8 [20:53:06]RasterBufferAndPrint [20:53:06]line [20:53:06]line [20:53:06]line [20:53:06]line [20:53:06]line [20:53:06]written 0, free lines is 3337 [20:53:06]MH_Cut [20:53:06]Write to MH i2c: D1 01 00 89 0F 01 6A [20:53:06]Write i2c OK [20:53:06]MH_I2C_Read... [20:53:06]Read from MH i2c: D1 [20:53:06]MH_I2C_Read... [20:53:06]Read from MH i2c: D1 01 00 [20:53:06]MH_I2C_Read... [20:53:06]Read from MH i2c: D1 01 00 89 0F 00 69 [20:53:06]Write to MH i2c: 01 00 00 8A 0F 99 [20:53:06]Write i2c OK [20:53:06]MH_I2C_Read... [20:53:06]OFD Sender: No OFD packet to send [20:53:06]*** Cut start [20:53:06]*** Partial cut [20:53:06]*** CUTSNS_PIN = 1 [20:53:06]*** CUTSNS_PIN = 0 [20:53:07]*** Brake cut motor [20:53:07]Read from MH i2c: 01 [20:53:07]MH_I2C_Read... [20:53:07]*** Stop cut motor [20:53:07]*** Cut end [20:53:07]Read from MH i2c: 01 07 00 [20:53:07]MH_I2C_Read... [20:53:07]Read from MH i2c: 01 07 00 8A 0F 00 00 00 00 00 FF 0F AE [20:53:07]process_action close_receipt done [20:53:07]requested_data is exist [20:53:07]produce_requested_data [20:53:07]requested_item fm.sn is exist - process it [20:53:07]wFMCommunicate request_size=4 [20:53:07]MH_SAM_APDU [20:53:07]CAPDU: 80 11 00 00 [20:53:07]Write to MH i2c: E2 08 00 8B 0F 80 11 00 00 00 00 00 00 14 [20:53:07]Write i2c OK [20:53:07]MH_I2C_Read... [20:53:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:07]Read from MH i2c: E2 [20:53:07]MH_I2C_Read... [20:53:07]Read from MH i2c: E2 17 00 [20:53:07]MH_I2C_Read... [20:53:07]Read from MH i2c: E2 17 00 8B 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 67 [20:53:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:53:07]wFMCommunicate OK [20:53:07]requested_item fd.num is exist - process it [20:53:07]SAM_PROTO_GetFieldsCounters [20:53:07]wFMCommunicate request_size=4 [20:53:07]MH_SAM_APDU [20:53:07]CAPDU: 80 13 00 00 [20:53:07]Write to MH i2c: E2 08 00 8C 0F 80 13 00 00 00 00 00 00 17 [20:53:07]Write i2c OK [20:53:07]MH_I2C_Read... [20:53:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:53:07]Read from MH i2c: E2 [20:53:07]MH_I2C_Read... [20:53:07]Read from MH i2c: E2 62 00 [20:53:07]MH_I2C_Read... [20:53:07]Read from MH i2c: E2 62 00 8C 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 8D 2C 01 00 0E 04 04 00 74 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 B6 [20:53: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 8D 2C 01 00 0E 04 04 00 74 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 [20:53:07]wFMCommunicate OK [20:53:07]SAM_PROTO_GetFieldsCounters done [20:53:07]requested_item shift.num is exist - process it [20:53:07]requested_item shift.opened is exist - process it [20:53:07]req_shift_opened [20:53:07]FM_GetShiftState [20:53:07]SAM_PROTO_GetShiftState [20:53:07]wFMCommunicate request_size=4 [20:53:07]MH_SAM_APDU [20:53:07]CAPDU: 80 13 01 00 [20:53:07]Write to MH i2c: E2 08 00 8D 0F 80 13 01 00 00 00 00 00 19 [20:53:07]Write i2c OK [20:53:07]MH_I2C_Read... [20:53:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:07]Read from MH i2c: E2 [20:53:07]MH_I2C_Read... [20:53:07]Read from MH i2c: E2 0E 00 [20:53:07]MH_I2C_Read... [20:53:07]Read from MH i2c: E2 0E 00 8D 0F 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 60 [20:53:07]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [20:53:07]wFMCommunicate OK [20:53:07]SAM_PROTO_GetShiftState done [20:53:07]FM_GetShiftState done [20:53:07]req_shift_opened done [20:53:07]requested_item shift.open_date is exist - process it [20:53:07]req_shift_open_date [20:53:07]req_shift_open_date done [20:53:07]produce_requested_data done [20:53:07]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76941,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [20:53:07]process_action_free close_receipt [20:53:07]json_value_free [20:53:07]json_value_free done [20:53:07]process_json_proto returns [20:53:07]Send response to host [20:53:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76941,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [20:53:07]free response buf [20:53:07]execute_script done [20:53:07]execute_script returns [20:53:07]free content buf [20:53:07]Sock 8.Close socket [20:53:07]Sock 8.Thread stoped [20:53:11]OFD Sender: No OFD packet to send [20:53:16]OFD Sender: No OFD packet to send [20:53:21]OFD Sender: No OFD packet to send [20:53:26]OFD Sender: No OFD packet to send [20:53:31]OFD Sender: No OFD packet to send [20:53:36]OFD Sender: No OFD packet to send [20:53:41]OFD Sender: No OFD packet to send [20:53:46]OFD Sender: No OFD packet to send [20:53:51]OFD Sender: No OFD packet to send [20:53:56]OFD Sender: No OFD packet to send [20:54:01]OFD Sender: No OFD packet to send [20:54:06]OFD Sender: No OFD packet to send [20:54:11]OFD Sender: No OFD packet to send [20:54:16]OFD Sender: No OFD packet to send [20:54:21]OFD Sender: No OFD packet to send [20:54:26]OFD Sender: No OFD packet to send [20:54:31]OFD Sender: No OFD packet to send [20:54:36]OFD Sender: No OFD packet to send [20:54:41]OFD Sender: No OFD packet to send [20:54:46]OFD Sender: No OFD packet to send [20:54:51]OFD Sender: No OFD packet to send [20:54:56]OFD Sender: No OFD packet to send [20:55:01]OFD Sender: No OFD packet to send [20:55:06]OFD Sender: No OFD packet to send [20:55:11]OFD Sender: No OFD packet to send [20:55:16]accept exits with 9 [20:55:16]New connection [20:55:16]New thread 3066944868 created [20:55:16]Thread 3066801508 joined [20:55:16]Waiting for new connection... [20:55:16] Sock 9.Parse request [20:55:16]Sock 9.Check first char [20:55:16]Sock 9.First char is OK [20:55:16]request: POST /json_proto HTTP/1.0 [20:55:16]Method: POST [20:55:16]URL: /json_proto [20:55:16]Method is POST - this is cgi request [20:55:16]url: /json_proto [20:55:16]query_string will be loaded in cgi processing [20:55:16]execute_cgi json_proto POST (null) [20:55:16]execute_cgi path=json_proto method=POST [20:55:16]POST find Content-Length [20:55:16]Host: 172.17.62.5:8080 [20:55:16]Content-Length: 677 [20:55:16]Content-Type: application/json [20:55:16] [20:55:16]POST finish read [20:55:16]Found Content-Length = 677 [20:55:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191490", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [20:55:16]execute_script... [20:55: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)191490", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [20:55:16]POST & json_proto [20:55:16]process_json_proto [20:55:16]json parsed OK: [20:55:16]protocol is kg_v1.0 [20:55:16]action value=close_receipt [20:55:16]process_action close_receipt [20:55:16]cmd_close_receipt [20:55:16]MH_GetDate [20:55:16]Write to MH i2c: F0 00 00 8E 0F 8C [20:55:16]Write i2c OK [20:55:16]MH_I2C_Read... [20:55:16]Read from MH i2c: F0 [20:55:16]MH_I2C_Read... [20:55:16]Read from MH i2c: F0 09 00 [20:55:16]MH_I2C_Read... [20:55:16]Read from MH i2c: F0 09 00 8E 0F 00 35 7D 25 66 F4 E9 65 64 78 [20:55:16]GetLastDocTimeStamp 1713732784 [20:55:16]current date 1713732917 [20:55:16]FM_GetShiftState [20:55:16]SAM_PROTO_GetShiftState [20:55:16]wFMCommunicate request_size=4 [20:55:16]MH_SAM_APDU [20:55:16]CAPDU: 80 13 01 00 [20:55:16]Write to MH i2c: E2 08 00 8F 0F 80 13 01 00 00 00 00 00 1B [20:55:16]Write i2c OK [20:55:16]MH_I2C_Read... [20:55:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:16]Read from MH i2c: E2 [20:55:16]MH_I2C_Read... [20:55:16]Read from MH i2c: E2 0E 00 [20:55:16]MH_I2C_Read... [20:55:16]Read from MH i2c: E2 0E 00 8F 0F 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 62 [20:55:16]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [20:55:16]wFMCommunicate OK [20:55:16]SAM_PROTO_GetShiftState done [20:55:16]FM_GetShiftState done [20:55:16]opened in 1713658965 [20:55:16]opened+sec_in_day 1713745365 [20:55:16]quantity*price = 60069 [20:55:16]sum+1 = 60071 [20:55:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.32 НДС 12% : 63.79 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 198 21.04.2024 20:55 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76942 ФПД: 206451158874617 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T205517&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76942&fm=206451158874617&tin=02508201610067®Number=0000000000091573&sum=60000 [20:55:17]StoreToDocumentArchive [20:55:17]shift 372 fd 76942 [20:55:17]save to /storage/0372/doc_00076942 [20:55:17]save last doc name /storage/0372/doc_00076942 to /storage/kkm_last_doc_name [20:55:17]save OK [20:55:17]Clear old archive folders... [20:55:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:55:17]tlvbuf is 00CC05E0 [20:55:17]SAM_PROTO_ClearQueue [20:55:17]wFMCommunicate request_size=4 [20:55:17]MH_SAM_APDU [20:55:17]CAPDU: 80 09 00 00 [20:55:17]Write to MH i2c: E2 08 00 9C 0F 80 09 00 00 00 00 00 00 1D [20:55:17]Write i2c OK [20:55:17]MH_I2C_Read... [20:55:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:55:17]Read from MH i2c: E2 [20:55:17]MH_I2C_Read... [20:55:17]Read from MH i2c: E2 03 00 [20:55:17]MH_I2C_Read... [20:55:17]Read from MH i2c: E2 03 00 9C 0F 00 90 00 1F [20:55:17]RAPDU: 90 00 [20:55:17]wFMCommunicate OK [20:55:17]SAM_PROTO_ClearQueue done [20:55:17]KKMCreateOFDPacket [20:55:17]OFDProtocolAddRootSTLVToBuf [20:55:17]FM_MakeSignedData [20:55:17]FM_MakeSignedData [20:55:17]SAM_PROTO_SignData [20:55:17]wFMCommunicate request_size=4 [20:55:17]MH_SAM_APDU [20:55:17]CAPDU: 80 0D 01 02 [20:55:17]Write to MH i2c: E2 08 00 9D 0F 80 0D 01 02 00 00 00 00 25 [20:55:17]Write i2c OK [20:55:17]MH_I2C_Read... [20:55:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:55:17]Read from MH i2c: E2 [20:55:17]MH_I2C_Read... [20:55:17]Read from MH i2c: E2 03 00 [20:55:17]MH_I2C_Read... [20:55:17]Read from MH i2c: E2 03 00 9D 0F 00 90 00 20 [20:55:17]RAPDU: 90 00 [20:55:17]wFMCommunicate OK [20:55:17]wFMCommunicate request_size=255 [20:55:17]MH_SAM_APDU [20:55: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 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 C6 00 00 00 F4 03 04 00 35 7D 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8E 2C 01 00 35 04 06 00 BB [20:55:17]Write to MH i2c: E2 02 01 9E 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 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 C6 00 00 00 F4 03 04 00 35 7D 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8E 2C 01 00 35 04 06 00 BB 00 00 44 [20:55:17]Write i2c OK [20:55:17]MH_I2C_Read... [20:55:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:17]Read from MH i2c: E2 [20:55:17]MH_I2C_Read... [20:55:17]Read from MH i2c: E2 03 00 [20:55:17]MH_I2C_Read... [20:55:17]Read from MH i2c: E2 03 00 9E 0F 00 90 00 21 [20:55:17]RAPDU: 90 00 [20:55:17]wFMCommunicate OK [20:55:17]wFMCommunicate request_size=10 [20:55:17]MH_SAM_APDU [20:55:17]CAPDU: 80 0D 02 02 05 C4 27 FC F9 F9 [20:55:17]Write to MH i2c: E2 0D 00 9F 0F 80 0D 02 02 05 00 C4 27 FC F9 F9 00 00 0B [20:55:17]Write i2c OK [20:55:17]MH_I2C_Read... [20:55:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:17]Read from MH i2c: E2 [20:55:17]MH_I2C_Read... [20:55:17]Read from MH i2c: E2 03 00 [20:55:17]MH_I2C_Read... [20:55:17]Read from MH i2c: E2 03 00 9F 0F 00 90 00 22 [20:55:17]RAPDU: 90 00 [20:55:17]wFMCommunicate OK [20:55:17]wFMCommunicate request_size=4 [20:55:17]MH_SAM_APDU [20:55:17]CAPDU: 80 0D 03 02 [20:55:17]Write to MH i2c: E2 08 00 A0 0F 80 0D 03 02 00 00 00 00 2A [20:55:17]Write i2c OK [20:55:17]MH_I2C_Read... [20:55:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:55:17]Read from MH i2c: E2 [20:55:17]MH_I2C_Read... [20:55:17]Read from MH i2c: E2 0B 00 [20:55:17]MH_I2C_Read... [20:55:17]Read from MH i2c: E2 0B 00 A0 0F 00 FA 4D 77 0A 3A 52 A2 70 90 00 91 [20:55:17]RAPDU: FA 4D 77 0A 3A 52 A2 70 90 00 [20:55:17]wFMCommunicate OK [20:55:17]SAM_PROTO_SignData done [20:55:17]FM_MakeSignedData done [20:55:17]CreateOFDProtocolMessage [20:55:17]wFMCommunicate request_size=4 [20:55:17]MH_SAM_APDU [20:55:17]CAPDU: 80 11 00 00 [20:55:17]Write to MH i2c: E2 08 00 A1 0F 80 11 00 00 00 00 00 00 2A [20:55:17]Write i2c OK [20:55:17]MH_I2C_Read... [20:55:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:17]Read from MH i2c: E2 [20:55:17]MH_I2C_Read... [20:55:17]Read from MH i2c: E2 17 00 [20:55:17]MH_I2C_Read... [20:55:17]Read from MH i2c: E2 17 00 A1 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 7D [20:55:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:55:17]wFMCommunicate OK [20:55:17]CreateOFDProtocolMessage done [20:55:17]OFDSenderStorePacket 76942 [20:55:17]StoreOFDPacket docnum=76942 [20:55:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 D6 91 07 01 C7 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 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 C6 00 00 00 F4 03 04 00 35 7D 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8E 2C 01 00 35 04 06 00 BB C4 27 FC F9 F9 FA 4D 77 0A 3A 52 A2 70 [20:55:17]CheckFolder [20:55:17]dirname=/storage/ofd_packets [20:55:17]CheckFolder done [20:55:17]ProducePacketName [20:55:17]name=ofd_packets/00076942 [20:55:17]NVStorageSaveData ofd_packets/00076942 [20:55:17]File name is /storage/ofd_packets/00076942 [20:55:17]Write 301 bytes [20:55:17]NVStorageSaveData done [20:55:17]OFDSenderStorePacket done [20:55:17]KKMCreateOFDPacket done [20:55:17]NVStorageSaveData kkm_last_timestamp [20:55:17]File name is /storage/kkm_last_timestamp [20:55:17]Write 4 bytes [20:55:17]NVStorageSaveData done [20:55:17]ExternCall_PrintAddStr [20:55:17]wPrintStart [20:55:17]Write to MH i2c: 01 00 00 A2 0F B1 [20:55:17]Write i2c OK [20:55:17]MH_I2C_Read... [20:55:17]Read from MH i2c: 01 [20:55:17]MH_I2C_Read... [20:55:17]Read from MH i2c: 01 07 00 [20:55:17]MH_I2C_Read... [20:55:17]Read from MH i2c: 01 07 00 A2 0F 00 00 00 00 00 FF 0F C6 [20:55:17]RasterBufferAndPrint [20:55:17]line Счет N : (1)191490 [20:55:17]line ИНН: 02508201610067 [20:55:17]line Контрольно-Кассовый Чек [20:55:17]line ПРОДАЖА [20:55:17]line ТРК (МРК, ГНК) : 42 [20:55:17]line Товар: 2710124500 [20:55:17]line Аи-95-К-5 [20:55:17]line 8.240 * 72.90 [20:55:17]line = 600.70 [20:55:17]line НДС 12% НСП 1% [20:55:17]line > о реализуемом товаре [20:55:17]line ОКРУГЛЕНИЕ: -0.70 [20:55:17]line ИТОГО: 600.00 [20:55:17]line Внесено: 600.00 [20:55:17]line СДАЧА: 0.00 [20:55:17]line НСП 1% : 5.32 [20:55:17]line НДС 12% : 63.79 [20:55:17]line Наличными: 600.00 [20:55:17]line Безнал.: 0.00 [20:55:17]line Место: АЗС № 106 "Партнер Нефть" [20:55:17]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [20:55:17]line СНО: Общий режим [20:55:17]line Чек 198 21.04.2024 20:55 [20:55:17]line Смена: 372 ФФД: 1.0 [20:55:17]line ЗНМ: 0300000141 [20:55:17]line РНМ: 0000000000091573 [20:55:17]line Версия ККМ: 001 [20:55:17]line ФМ: 0000000000874652 [20:55:17]line ФД: 76942 [20:55:17]line ФПД: 206451158874617 [20:55:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T205517&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76942&fm=206451158874617&tin=02508201610067®Number=0000000000091573&sum=60000 [20:55:18]OFD Sender: Processing packet 76942 [packets to send 129, broken 128] [20:55:18]ProducePacketName [20:55:18]name=ofd_packets/00076942 [20:55:18]OFD Sender: To server: pG, [20:55:18]CommunicateWithHost lk.salyk.kg:30040 [20:55:18]ConnectInit lk.salyk.kg [20:55:18]written 0, free lines is 4095 [20:55:18]Connected sock=10 [20:55:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 D6 91 07 01 C7 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 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 C6 00 00 00 F4 03 04 00 35 7D 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8E 2C 01 00 35 04 06 00 BB C4 27 FC F9 F9 FA 4D 77 0A 3A 52 A2 70 [20:55:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 98 54 47 00 93 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8E 2C 01 00 F4 03 04 00 B9 24 25 66 B6 04 01 00 00 09 10 20 45 BF 38 3C FC [20:55:18]CommunicateWithHost err = 0 [20:55:18]CheckOFDResponse [20:55:18]1017 (14) - 77093643461234 [20:55:18]1041 (16) - 0000000000874652 [20:55:18]1040 (4) - 76942 [20:55:18]1012 (4) - 21.04.2024 14:37 [20:55:18]1206 (1) - 0 [20:55:18]OFD Sender: Remove packet 76942 [20:55:18]ProducePacketName [20:55:18]name=ofd_packets/00076942 [20:55:18]NVStorageDeleteData [20:55:18]Write to MH i2c: 01 00 00 CC 0F DB [20:55:18]Write i2c OK [20:55:18]MH_I2C_Read... [20:55:18]Read from MH i2c: 01 [20:55:18]MH_I2C_Read... [20:55:18]Read from MH i2c: 01 07 00 [20:55:18]MH_I2C_Read... [20:55:18]Read from MH i2c: 01 07 00 CC 0F 00 00 00 00 00 00 0D EF [20:55:18]RasterBufferAndPrint [20:55:18]line [20:55:18]line [20:55:18]line [20:55:18]line [20:55:18]line [20:55:18]written 0, free lines is 3334 [20:55:18]MH_Cut [20:55:18]Write to MH i2c: D1 01 00 D3 0F 01 B4 [20:55:18]Write i2c OK [20:55:18]MH_I2C_Read... [20:55:18]Read from MH i2c: D1 [20:55:18]MH_I2C_Read... [20:55:18]Read from MH i2c: D1 01 00 [20:55:18]MH_I2C_Read... [20:55:18]Read from MH i2c: D1 01 00 D3 0F 00 B3 [20:55:18]Write to MH i2c: 01 00 00 D4 0F E3 [20:55:18]Write i2c OK [20:55:18]MH_I2C_Read... [20:55:18]OFD Sender: No OFD packet to send [20:55:19]*** Cut start [20:55:19]*** Partial cut [20:55:19]*** CUTSNS_PIN = 1 [20:55:19]*** CUTSNS_PIN = 0 [20:55:19]*** Brake cut motor [20:55:19]Read from MH i2c: 01 [20:55:19]MH_I2C_Read... [20:55:19]*** Stop cut motor [20:55:19]*** Cut end [20:55:19]Read from MH i2c: 01 07 00 [20:55:19]MH_I2C_Read... [20:55:19]Read from MH i2c: 01 07 00 D4 0F 00 00 00 00 00 FF 0F F8 [20:55:19]process_action close_receipt done [20:55:19]requested_data is exist [20:55:19]produce_requested_data [20:55:19]requested_item fm.sn is exist - process it [20:55:19]wFMCommunicate request_size=4 [20:55:19]MH_SAM_APDU [20:55:19]CAPDU: 80 11 00 00 [20:55:19]Write to MH i2c: E2 08 00 D5 0F 80 11 00 00 00 00 00 00 5E [20:55:19]Write i2c OK [20:55:19]MH_I2C_Read... [20:55:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:19]Read from MH i2c: E2 [20:55:19]MH_I2C_Read... [20:55:19]Read from MH i2c: E2 17 00 [20:55:19]MH_I2C_Read... [20:55:19]Read from MH i2c: E2 17 00 D5 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 B1 [20:55:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:55:19]wFMCommunicate OK [20:55:19]requested_item fd.num is exist - process it [20:55:19]SAM_PROTO_GetFieldsCounters [20:55:19]wFMCommunicate request_size=4 [20:55:19]MH_SAM_APDU [20:55:19]CAPDU: 80 13 00 00 [20:55:19]Write to MH i2c: E2 08 00 D6 0F 80 13 00 00 00 00 00 00 61 [20:55:19]Write i2c OK [20:55:19]MH_I2C_Read... [20:55:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:55:20]Read from MH i2c: E2 [20:55:20]MH_I2C_Read... [20:55:20]Read from MH i2c: E2 62 00 [20:55:20]MH_I2C_Read... [20:55:20]Read from MH i2c: E2 62 00 D6 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 8E 2C 01 00 0E 04 04 00 74 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 04 [20:55: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 8E 2C 01 00 0E 04 04 00 74 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 [20:55:20]wFMCommunicate OK [20:55:20]SAM_PROTO_GetFieldsCounters done [20:55:20]requested_item shift.num is exist - process it [20:55:20]requested_item shift.opened is exist - process it [20:55:20]req_shift_opened [20:55:20]FM_GetShiftState [20:55:20]SAM_PROTO_GetShiftState [20:55:20]wFMCommunicate request_size=4 [20:55:20]MH_SAM_APDU [20:55:20]CAPDU: 80 13 01 00 [20:55:20]Write to MH i2c: E2 08 00 D7 0F 80 13 01 00 00 00 00 00 63 [20:55:20]Write i2c OK [20:55:20]MH_I2C_Read... [20:55:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:20]Read from MH i2c: E2 [20:55:20]MH_I2C_Read... [20:55:20]Read from MH i2c: E2 0E 00 [20:55:20]MH_I2C_Read... [20:55:20]Read from MH i2c: E2 0E 00 D7 0F 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 AA [20:55:20]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [20:55:20]wFMCommunicate OK [20:55:20]SAM_PROTO_GetShiftState done [20:55:20]FM_GetShiftState done [20:55:20]req_shift_opened done [20:55:20]requested_item shift.open_date is exist - process it [20:55:20]req_shift_open_date [20:55:20]req_shift_open_date done [20:55:20]produce_requested_data done [20:55:20]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76942,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [20:55:20]process_action_free close_receipt [20:55:20]json_value_free [20:55:20]json_value_free done [20:55:20]process_json_proto returns [20:55:20]Send response to host [20:55:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76942,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [20:55:20]free response buf [20:55:20]execute_script done [20:55:20]execute_script returns [20:55:20]free content buf [20:55:20]Sock 9.Close socket [20:55:20]Sock 9.Thread stoped [20:55:23]OFD Sender: No OFD packet to send [20:55:29]OFD Sender: No OFD packet to send [20:55:34]OFD Sender: No OFD packet to send [20:55:39]OFD Sender: No OFD packet to send [20:55:44]OFD Sender: No OFD packet to send [20:55:49]OFD Sender: No OFD packet to send [20:55:54]OFD Sender: No OFD packet to send [20:55:59]OFD Sender: No OFD packet to send [20:56:04]OFD Sender: No OFD packet to send [20:56:09]OFD Sender: No OFD packet to send [20:56:14]OFD Sender: No OFD packet to send [20:56:19]OFD Sender: No OFD packet to send [20:56:24]OFD Sender: No OFD packet to send [20:56:29]OFD Sender: No OFD packet to send [20:56:34]OFD Sender: No OFD packet to send [20:56:39]OFD Sender: No OFD packet to send [20:56:44]OFD Sender: No OFD packet to send [20:56:49]OFD Sender: No OFD packet to send [20:56:54]OFD Sender: No OFD packet to send [20:56:59]OFD Sender: No OFD packet to send [20:57:04]OFD Sender: No OFD packet to send [20:57:09]OFD Sender: No OFD packet to send [20:57:13]accept exits with 8 [20:57:13]New connection [20:57:13]New thread 3066801508 created [20:57:13]Thread 3066944868 joined [20:57:13]Waiting for new connection... [20:57:13] Sock 8.Parse request [20:57:13]Sock 8.Check first char [20:57:13]Sock 8.First char is OK [20:57:13]request: POST /json_proto HTTP/1.0 [20:57:13]Method: POST [20:57:13]URL: /json_proto [20:57:13]Method is POST - this is cgi request [20:57:13]url: /json_proto [20:57:13]query_string will be loaded in cgi processing [20:57:13]execute_cgi json_proto POST (null) [20:57:13]execute_cgi path=json_proto method=POST [20:57:13]POST find Content-Length [20:57:13]Host: 172.17.62.5:8080 [20:57:13]Content-Length: 978 [20:57:13]Content-Type: application/json [20:57:13] [20:57:13]POST finish read [20:57:13]Found Content-Length = 978 [20:57:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191491", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 27.82 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:57:13]execute_script... [20:57:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191491", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 27.82 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:57:13]POST & json_proto [20:57:13]process_json_proto [20:57:13]json parsed OK: [20:57:13]protocol is kg_v1.0 [20:57:13]action value=close_receipt [20:57:13]process_action close_receipt [20:57:13]cmd_close_receipt [20:57:13]MH_GetDate [20:57:13]Write to MH i2c: F0 00 00 D8 0F D6 [20:57:13]Write i2c OK [20:57:13]MH_I2C_Read... [20:57:13]Read from MH i2c: F0 [20:57:13]MH_I2C_Read... [20:57:13]Read from MH i2c: F0 09 00 [20:57:13]MH_I2C_Read... [20:57:13]Read from MH i2c: F0 09 00 D8 0F 00 AA 7D 25 66 F4 E9 65 64 37 [20:57:13]GetLastDocTimeStamp 1713732917 [20:57:13]current date 1713733034 [20:57:13]FM_GetShiftState [20:57:13]SAM_PROTO_GetShiftState [20:57:13]wFMCommunicate request_size=4 [20:57:13]MH_SAM_APDU [20:57:13]CAPDU: 80 13 01 00 [20:57:13]Write to MH i2c: E2 08 00 D9 0F 80 13 01 00 00 00 00 00 65 [20:57:13]Write i2c OK [20:57:13]MH_I2C_Read... [20:57:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:13]Read from MH i2c: E2 [20:57:13]MH_I2C_Read... [20:57:13]Read from MH i2c: E2 0E 00 [20:57:13]MH_I2C_Read... [20:57:13]Read from MH i2c: E2 0E 00 D9 0F 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 AC [20:57:13]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [20:57:13]wFMCommunicate OK [20:57:13]SAM_PROTO_GetShiftState done [20:57:13]FM_GetShiftState done [20:57:13]opened in 1713658965 [20:57:13]opened+sec_in_day 1713745365 [20:57:13]quantity*price = 200025 [20:57:13]sum+1 = 200027 [20:57:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 199 21.04.2024 20:57 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 27.82 сом ФМ: 0000000000874652 ФД: 76943 ФПД: 221592247791298 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T205714&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76943&fm=221592247791298&tin=02508201610067®Number=0000000000091573&sum=200000 [20:57:14]StoreToDocumentArchive [20:57:14]shift 372 fd 76943 [20:57:14]save to /storage/0372/doc_00076943 [20:57:14]save last doc name /storage/0372/doc_00076943 to /storage/kkm_last_doc_name [20:57:14]save OK [20:57:14]Clear old archive folders... [20:57:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:57:14]tlvbuf is 00C4D990 [20:57:14]SAM_PROTO_ClearQueue [20:57:14]wFMCommunicate request_size=4 [20:57:14]MH_SAM_APDU [20:57:14]CAPDU: 80 09 00 00 [20:57:14]Write to MH i2c: E2 08 00 E6 0F 80 09 00 00 00 00 00 00 67 [20:57:14]Write i2c OK [20:57:14]MH_I2C_Read... [20:57:14]Read from MH i2c: E2 [20:57:14]MH_I2C_Read... [20:57:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:57:14]Read from MH i2c: E2 03 00 [20:57:14]MH_I2C_Read... [20:57:14]Read from MH i2c: E2 03 00 E6 0F 00 90 00 69 [20:57:14]RAPDU: 90 00 [20:57:14]wFMCommunicate OK [20:57:14]SAM_PROTO_ClearQueue done [20:57:14]KKMCreateOFDPacket [20:57:14]OFDProtocolAddRootSTLVToBuf [20:57:14]FM_MakeSignedData [20:57:14]FM_MakeSignedData [20:57:14]SAM_PROTO_SignData [20:57:14]wFMCommunicate request_size=4 [20:57:14]MH_SAM_APDU [20:57:14]CAPDU: 80 0D 01 02 [20:57:14]Write to MH i2c: E2 08 00 E7 0F 80 0D 01 02 00 00 00 00 6F [20:57:14]Write i2c OK [20:57:14]MH_I2C_Read... [20:57:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:57:14]Read from MH i2c: E2 [20:57:14]MH_I2C_Read... [20:57:14]Read from MH i2c: E2 03 00 [20:57:14]MH_I2C_Read... [20:57:14]Read from MH i2c: E2 03 00 E7 0F 00 90 00 6A [20:57:14]RAPDU: 90 00 [20:57:14]wFMCommunicate OK [20:57:14]wFMCommunicate request_size=255 [20:57:14]MH_SAM_APDU [20:57:14]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 AA 7D 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8F 2C 01 00 35 04 06 00 C9 89 77 36 [20:57:14]Write to MH i2c: E2 02 01 E8 0F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 AA 7D 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8F 2C 01 00 35 04 06 00 C9 89 77 36 00 00 05 [20:57:14]Write i2c OK [20:57:14]MH_I2C_Read... [20:57:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:57:14]Read from MH i2c: E2 [20:57:14]MH_I2C_Read... [20:57:14]Read from MH i2c: E2 03 00 [20:57:14]MH_I2C_Read... [20:57:14]Read from MH i2c: E2 03 00 E8 0F 00 90 00 6B [20:57:14]RAPDU: 90 00 [20:57:14]wFMCommunicate OK [20:57:14]wFMCommunicate request_size=7 [20:57:14]MH_SAM_APDU [20:57:14]CAPDU: 80 0D 02 02 02 EE C2 [20:57:14]Write to MH i2c: E2 0A 00 E9 0F 80 0D 02 02 02 00 EE C2 00 00 26 [20:57:14]Write i2c OK [20:57:14]MH_I2C_Read... [20:57:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:57:14]Read from MH i2c: E2 [20:57:14]MH_I2C_Read... [20:57:14]Read from MH i2c: E2 03 00 [20:57:14]MH_I2C_Read... [20:57:14]Read from MH i2c: E2 03 00 E9 0F 00 90 00 6C [20:57:14]RAPDU: 90 00 [20:57:14]wFMCommunicate OK [20:57:14]wFMCommunicate request_size=4 [20:57:14]MH_SAM_APDU [20:57:14]CAPDU: 80 0D 03 02 [20:57:14]Write to MH i2c: E2 08 00 EA 0F 80 0D 03 02 00 00 00 00 74 [20:57:14]Write i2c OK [20:57:14]MH_I2C_Read... [20:57:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:57:14]Read from MH i2c: E2 [20:57:14]MH_I2C_Read... [20:57:14]Read from MH i2c: E2 0B 00 [20:57:14]MH_I2C_Read... [20:57:14]Read from MH i2c: E2 0B 00 EA 0F 00 9E 1B D1 89 6A B5 35 4F 90 00 2B [20:57:14]RAPDU: 9E 1B D1 89 6A B5 35 4F 90 00 [20:57:14]wFMCommunicate OK [20:57:14]SAM_PROTO_SignData done [20:57:14]FM_MakeSignedData done [20:57:14]CreateOFDProtocolMessage [20:57:14]wFMCommunicate request_size=4 [20:57:14]MH_SAM_APDU [20:57:14]CAPDU: 80 11 00 00 [20:57:14]Write to MH i2c: E2 08 00 EB 0F 80 11 00 00 00 00 00 00 74 [20:57:14]Write i2c OK [20:57:14]MH_I2C_Read... [20:57:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:14]Read from MH i2c: E2 [20:57:14]MH_I2C_Read... [20:57:14]Read from MH i2c: E2 17 00 [20:57:14]MH_I2C_Read... [20:57:14]Read from MH i2c: E2 17 00 EB 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 C7 [20:57:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:57:14]wFMCommunicate OK [20:57:14]CreateOFDProtocolMessage done [20:57:14]OFDSenderStorePacket 76943 [20:57:14]StoreOFDPacket docnum=76943 [20:57:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 81 60 04 01 FA 3E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 AA 7D 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8F 2C 01 00 35 04 06 00 C9 89 77 36 EE C2 9E 1B D1 89 6A B5 35 4F [20:57:14]CheckFolder [20:57:14]dirname=/storage/ofd_packets [20:57:14]CheckFolder done [20:57:14]ProducePacketName [20:57:14]name=ofd_packets/00076943 [20:57:14]NVStorageSaveData ofd_packets/00076943 [20:57:14]File name is /storage/ofd_packets/00076943 [20:57:14]Write 298 bytes [20:57:14]NVStorageSaveData done [20:57:14]OFDSenderStorePacket done [20:57:14]KKMCreateOFDPacket done [20:57:14]NVStorageSaveData kkm_last_timestamp [20:57:14]File name is /storage/kkm_last_timestamp [20:57:14]Write 4 bytes [20:57:14]NVStorageSaveData done [20:57:14]ExternCall_PrintAddStr [20:57:14]wPrintStart [20:57:14]Write to MH i2c: 01 00 00 EC 0F FB [20:57:14]Write i2c OK [20:57:14]MH_I2C_Read... [20:57:14]Read from MH i2c: 01 [20:57:14]MH_I2C_Read... [20:57:14]Read from MH i2c: 01 07 00 [20:57:14]MH_I2C_Read... [20:57:14]Read from MH i2c: 01 07 00 EC 0F 00 00 00 00 00 FF 0F 10 [20:57:14]RasterBufferAndPrint [20:57:14]line Счет N : (1)191491 [20:57:14]line ИНН: 02508201610067 [20:57:14]line Контрольно-Кассовый Чек [20:57:14]line ПРОДАЖА [20:57:14]line ТРК (МРК, ГНК) : 13 [20:57:14]line Товар: 2710194210 [20:57:14]line ДТ-К-5 [20:57:14]line 27.820 * 71.90 [20:57:14]line = 2000.26 [20:57:14]line НДС 12% НСП 1% [20:57:14]line > о реализуемом товаре [20:57:14]line ОКРУГЛЕНИЕ: -0.26 [20:57:14]line ИТОГО: 2000.00 [20:57:14]line Внесено: 2000.00 [20:57:14]line СДАЧА: 0.00 [20:57:14]line НСП 1% : 17.70 [20:57:14]line НДС 12% : 212.42 [20:57:14]line Наличными: 2000.00 [20:57:14]line Безнал.: 0.00 [20:57:14]line Место: АЗС № 106 "Партнер Нефть" [20:57:14]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [20:57:14]line СНО: Общий режим [20:57:14]line Чек 199 21.04.2024 20:57 [20:57:14]line Смена: 372 ФФД: 1.0 [20:57:14]line ЗНМ: 0300000141 [20:57:14]line РНМ: 0000000000091573 [20:57:14]line Версия ККМ: 001 [20:57:14]line [20:57:14]line Дисконтная программа [20:57:14]line ДТ [20:57:14]line номер 106 [20:57:14]line сэкономлено 27.82 сом [20:57:14]line ФМ: 0000000000874652 [20:57:14]line ФД: 76943 [20:57:14]line ФПД: 221592247791298 [20:57:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T205714&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76943&fm=221592247791298&tin=02508201610067®Number=0000000000091573&sum=200000 [20:57:15]OFD Sender: Processing packet 76943 [packets to send 129, broken 128] [20:57:15]ProducePacketName [20:57:15]name=ofd_packets/00076943 [20:57:15]OFD Sender: To server: pG, [20:57:15]CommunicateWithHost lk.salyk.kg:30040 [20:57:15]ConnectInit lk.salyk.kg [20:57:15]written 0, free lines is 4095 [20:57:15]Write to MH i2c: 01 00 00 1B 10 2B [20:57:15]Write i2c OK [20:57:15]MH_I2C_Read... [20:57:15]Read from MH i2c: 01 [20:57:15]MH_I2C_Read... [20:57:15]Read from MH i2c: 01 07 00 [20:57:15]MH_I2C_Read... [20:57:15]Read from MH i2c: 01 07 00 1B 10 00 00 00 00 00 92 0C D0 [20:57:15]RasterBufferAndPrint [20:57:15]line [20:57:15]line [20:57:15]line [20:57:15]line [20:57:15]line [20:57:15]written 0, free lines is 3224 [20:57:15]MH_Cut [20:57:15]Write to MH i2c: D1 01 00 22 10 01 04 [20:57:15]Write i2c OK [20:57:15]MH_I2C_Read... [20:57:15]Read from MH i2c: D1 [20:57:15]MH_I2C_Read... [20:57:15]Read from MH i2c: D1 01 00 [20:57:15]MH_I2C_Read... [20:57:15]Read from MH i2c: D1 01 00 22 10 00 03 [20:57:15]Write to MH i2c: 01 00 00 23 10 33 [20:57:15]Write i2c OK [20:57:15]MH_I2C_Read... [20:57:16]*** Cut start [20:57:16]*** Partial cut [20:57:16]*** CUTSNS_PIN = 1 [20:57:16]*** CUTSNS_PIN = 0 [20:57:16]*** Brake cut motor [20:57:17]Read from MH i2c: 01 [20:57:17]MH_I2C_Read... [20:57:17]*** Stop cut motor [20:57:17]*** Cut end [20:57:17]Read from MH i2c: 01 07 00 [20:57:17]MH_I2C_Read... [20:57:17]Read from MH i2c: 01 07 00 23 10 00 00 00 00 00 FF 0F 48 [20:57:17]process_action close_receipt done [20:57:17]requested_data is exist [20:57:17]produce_requested_data [20:57:17]requested_item fm.sn is exist - process it [20:57:17]wFMCommunicate request_size=4 [20:57:17]MH_SAM_APDU [20:57:17]CAPDU: 80 11 00 00 [20:57:17]Write to MH i2c: E2 08 00 24 10 80 11 00 00 00 00 00 00 AE [20:57:17]Write i2c OK [20:57:17]MH_I2C_Read... [20:57:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:17]Read from MH i2c: E2 [20:57:17]MH_I2C_Read... [20:57:17]Read from MH i2c: E2 17 00 [20:57:17]MH_I2C_Read... [20:57:17]Read from MH i2c: E2 17 00 24 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 01 [20:57:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:57:17]wFMCommunicate OK [20:57:17]requested_item fd.num is exist - process it [20:57:17]SAM_PROTO_GetFieldsCounters [20:57:17]wFMCommunicate request_size=4 [20:57:17]MH_SAM_APDU [20:57:17]CAPDU: 80 13 00 00 [20:57:17]Write to MH i2c: E2 08 00 25 10 80 13 00 00 00 00 00 00 B1 [20:57:17]Write i2c OK [20:57:17]MH_I2C_Read... [20:57:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:57:17]Read from MH i2c: E2 [20:57:17]MH_I2C_Read... [20:57:17]Read from MH i2c: E2 62 00 [20:57:17]MH_I2C_Read... [20:57:17]Read from MH i2c: E2 62 00 25 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 8F 2C 01 00 0E 04 04 00 74 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 58 [20:57:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 8F 2C 01 00 0E 04 04 00 74 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 [20:57:17]wFMCommunicate OK [20:57:17]SAM_PROTO_GetFieldsCounters done [20:57:17]requested_item shift.num is exist - process it [20:57:17]requested_item shift.opened is exist - process it [20:57:17]req_shift_opened [20:57:17]FM_GetShiftState [20:57:17]SAM_PROTO_GetShiftState [20:57:17]wFMCommunicate request_size=4 [20:57:17]MH_SAM_APDU [20:57:17]CAPDU: 80 13 01 00 [20:57:17]Write to MH i2c: E2 08 00 26 10 80 13 01 00 00 00 00 00 B3 [20:57:17]Write i2c OK [20:57:17]MH_I2C_Read... [20:57:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:17]Read from MH i2c: E2 [20:57:17]MH_I2C_Read... [20:57:17]Read from MH i2c: E2 0E 00 [20:57:17]MH_I2C_Read... [20:57:17]Read from MH i2c: E2 0E 00 26 10 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 FA [20:57:17]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [20:57:17]wFMCommunicate OK [20:57:17]SAM_PROTO_GetShiftState done [20:57:17]FM_GetShiftState done [20:57:17]req_shift_opened done [20:57:17]requested_item shift.open_date is exist - process it [20:57:17]req_shift_open_date [20:57:17]req_shift_open_date done [20:57:17]produce_requested_data done [20:57:17]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76943,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [20:57:17]process_action_free close_receipt [20:57:17]json_value_free [20:57:17]json_value_free done [20:57:17]process_json_proto returns [20:57:17]Send response to host [20:57:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76943,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [20:57:17]free response buf [20:57:17]execute_script done [20:57:17]execute_script returns [20:57:17]free content buf [20:57:17]Sock 8.Close socket [20:57:17]Sock 8.Thread stoped [20:59:24]accept exits with 9 [20:59:24]New connection [20:59:24]New thread 3066944868 created [20:59:24]Thread 3066801508 joined [20:59:24]Waiting for new connection... [20:59:24] Sock 9.Parse request [20:59:24]Sock 9.Check first char [20:59:24]Sock 9.First char is OK [20:59:24]request: POST /json_proto HTTP/1.0 [20:59:24]Method: POST [20:59:24]URL: /json_proto [20:59:24]Method is POST - this is cgi request [20:59:24]url: /json_proto [20:59:24]query_string will be loaded in cgi processing [20:59:24]execute_cgi json_proto POST (null) [20:59:24]execute_cgi path=json_proto method=POST [20:59:24]POST find Content-Length [20:59:24]Host: 172.17.62.5:8080 [20:59:24]Content-Length: 682 [20:59:24]Content-Type: application/json [20:59:24] [20:59:24]POST finish read [20:59:24]Found Content-Length = 682 [20:59:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191492", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:59:24]execute_script... [20:59: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)191492", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:59:24]POST & json_proto [20:59:24]process_json_proto [20:59:24]json parsed OK: [20:59:24]protocol is kg_v1.0 [20:59:24]action value=close_receipt [20:59:24]process_action close_receipt [20:59:24]cmd_close_receipt [20:59:24]MH_GetDate [20:59:24]Write to MH i2c: F0 00 00 27 10 26 [20:59:24]Write i2c OK [20:59:24]MH_I2C_Read... [20:59:24]Read from MH i2c: F0 [20:59:24]MH_I2C_Read... [20:59:24]Read from MH i2c: F0 09 00 [20:59:24]MH_I2C_Read... [20:59:24]Read from MH i2c: F0 09 00 27 10 00 2D 7E 25 66 F4 E9 65 64 0B [20:59:24]GetLastDocTimeStamp 1713733034 [20:59:24]current date 1713733165 [20:59:24]FM_GetShiftState [20:59:24]SAM_PROTO_GetShiftState [20:59:24]wFMCommunicate request_size=4 [20:59:24]MH_SAM_APDU [20:59:24]CAPDU: 80 13 01 00 [20:59:24]Write to MH i2c: E2 08 00 28 10 80 13 01 00 00 00 00 00 B5 [20:59:24]Write i2c OK [20:59:24]MH_I2C_Read... [20:59:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:59:24]Read from MH i2c: E2 [20:59:24]MH_I2C_Read... [20:59:24]Read from MH i2c: E2 0E 00 [20:59:24]MH_I2C_Read... [20:59:24]Read from MH i2c: E2 0E 00 28 10 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 FC [20:59:24]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [20:59:24]wFMCommunicate OK [20:59:24]SAM_PROTO_GetShiftState done [20:59:24]FM_GetShiftState done [20:59:24]opened in 1713658965 [20:59:24]opened+sec_in_day 1713745365 [20:59:24]quantity*price = 100013 [20:59:24]sum+1 = 100014 [20:59:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 200 21.04.2024 20:59 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76944 ФПД: 147818886742575 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T205925&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76944&fm=147818886742575&tin=02508201610067®Number=0000000000091573&sum=100000 [20:59:25]StoreToDocumentArchive [20:59:25]shift 372 fd 76944 [20:59:25]save to /storage/0372/doc_00076944 [20:59:25]save last doc name /storage/0372/doc_00076944 to /storage/kkm_last_doc_name [20:59:25]save OK [20:59:25]Clear old archive folders... [20:59:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:59:25]tlvbuf is 00C781D0 [20:59:25]SAM_PROTO_ClearQueue [20:59:25]wFMCommunicate request_size=4 [20:59:25]MH_SAM_APDU [20:59:25]CAPDU: 80 09 00 00 [20:59:25]Write to MH i2c: E2 08 00 35 10 80 09 00 00 00 00 00 00 B7 [20:59:25]Write i2c OK [20:59:25]MH_I2C_Read... [20:59:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:59:25]Read from MH i2c: E2 [20:59:25]MH_I2C_Read... [20:59:25]Read from MH i2c: E2 03 00 [20:59:25]MH_I2C_Read... [20:59:25]Read from MH i2c: E2 03 00 35 10 00 90 00 B9 [20:59:25]RAPDU: 90 00 [20:59:25]wFMCommunicate OK [20:59:25]SAM_PROTO_ClearQueue done [20:59:25]KKMCreateOFDPacket [20:59:25]OFDProtocolAddRootSTLVToBuf [20:59:25]FM_MakeSignedData [20:59:25]FM_MakeSignedData [20:59:25]SAM_PROTO_SignData [20:59:25]wFMCommunicate request_size=4 [20:59:25]MH_SAM_APDU [20:59:25]CAPDU: 80 0D 01 02 [20:59:25]Write to MH i2c: E2 08 00 36 10 80 0D 01 02 00 00 00 00 BF [20:59:25]Write i2c OK [20:59:25]MH_I2C_Read... [20:59:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:59:25]Read from MH i2c: E2 [20:59:25]MH_I2C_Read... [20:59:25]Read from MH i2c: E2 03 00 [20:59:25]MH_I2C_Read... [20:59:25]Read from MH i2c: E2 03 00 36 10 00 90 00 BA [20:59:25]RAPDU: 90 00 [20:59:25]wFMCommunicate OK [20:59:25]wFMCommunicate request_size=255 [20:59:25]MH_SAM_APDU [20:59: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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 2D 7E 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 90 2C 01 00 35 04 06 00 86 [20:59:25]Write to MH i2c: E2 02 01 37 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 2D 7E 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 90 2C 01 00 35 04 06 00 86 00 00 46 [20:59:25]Write i2c OK [20:59:25]MH_I2C_Read... [20:59:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:59:25]Read from MH i2c: E2 [20:59:25]MH_I2C_Read... [20:59:25]Read from MH i2c: E2 03 00 [20:59:25]MH_I2C_Read... [20:59:25]Read from MH i2c: E2 03 00 37 10 00 90 00 BB [20:59:25]RAPDU: 90 00 [20:59:25]wFMCommunicate OK [20:59:25]wFMCommunicate request_size=10 [20:59:25]MH_SAM_APDU [20:59:25]CAPDU: 80 0D 02 02 05 70 C4 3C 42 2F [20:59:25]Write to MH i2c: E2 0D 00 38 10 80 0D 02 02 05 00 70 C4 3C 42 2F 00 00 AD [20:59:25]Write i2c OK [20:59:25]MH_I2C_Read... [20:59:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:59:25]Read from MH i2c: E2 [20:59:25]MH_I2C_Read... [20:59:25]Read from MH i2c: E2 03 00 [20:59:25]MH_I2C_Read... [20:59:25]Read from MH i2c: E2 03 00 38 10 00 90 00 BC [20:59:25]RAPDU: 90 00 [20:59:25]wFMCommunicate OK [20:59:25]wFMCommunicate request_size=4 [20:59:25]MH_SAM_APDU [20:59:25]CAPDU: 80 0D 03 02 [20:59:25]Write to MH i2c: E2 08 00 39 10 80 0D 03 02 00 00 00 00 C4 [20:59:25]Write i2c OK [20:59:25]MH_I2C_Read... [20:59:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:59:25]Read from MH i2c: E2 [20:59:25]MH_I2C_Read... [20:59:25]Read from MH i2c: E2 0B 00 [20:59:25]MH_I2C_Read... [20:59:25]Read from MH i2c: E2 0B 00 39 10 00 42 EC DC 7D 1D 68 D2 42 90 00 E5 [20:59:25]RAPDU: 42 EC DC 7D 1D 68 D2 42 90 00 [20:59:25]wFMCommunicate OK [20:59:25]SAM_PROTO_SignData done [20:59:25]FM_MakeSignedData done [20:59:25]CreateOFDProtocolMessage [20:59:25]wFMCommunicate request_size=4 [20:59:25]MH_SAM_APDU [20:59:25]CAPDU: 80 11 00 00 [20:59:25]Write to MH i2c: E2 08 00 3A 10 80 11 00 00 00 00 00 00 C4 [20:59:25]Write i2c OK [20:59:25]MH_I2C_Read... [20:59:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:59:25]Read from MH i2c: E2 [20:59:25]MH_I2C_Read... [20:59:25]Read from MH i2c: E2 17 00 [20:59:25]MH_I2C_Read... [20:59:25]Read from MH i2c: E2 17 00 3A 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 17 [20:59:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:59:25]wFMCommunicate OK [20:59:25]CreateOFDProtocolMessage done [20:59:25]OFDSenderStorePacket 76944 [20:59:25]StoreOFDPacket docnum=76944 [20:59:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 BB FF 07 01 2F 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 2D 7E 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 90 2C 01 00 35 04 06 00 86 70 C4 3C 42 2F 42 EC DC 7D 1D 68 D2 42 [20:59:25]CheckFolder [20:59:25]dirname=/storage/ofd_packets [20:59:25]CheckFolder done [20:59:25]ProducePacketName [20:59:25]name=ofd_packets/00076944 [20:59:25]NVStorageSaveData ofd_packets/00076944 [20:59:25]File name is /storage/ofd_packets/00076944 [20:59:25]Write 301 bytes [20:59:25]NVStorageSaveData done [20:59:25]OFDSenderStorePacket done [20:59:25]KKMCreateOFDPacket done [20:59:25]NVStorageSaveData kkm_last_timestamp [20:59:25]File name is /storage/kkm_last_timestamp [20:59:25]Write 4 bytes [20:59:25]NVStorageSaveData done [20:59:25]ExternCall_PrintAddStr [20:59:25]wPrintStart [20:59:25]Write to MH i2c: 01 00 00 3B 10 4B [20:59:25]Write i2c OK [20:59:25]MH_I2C_Read... [20:59:25]Read from MH i2c: 01 [20:59:25]MH_I2C_Read... [20:59:25]Read from MH i2c: 01 07 00 [20:59:25]MH_I2C_Read... [20:59:25]Read from MH i2c: 01 07 00 3B 10 00 00 00 00 00 FF 0F 60 [20:59:25]RasterBufferAndPrint [20:59:25]line Счет N : (1)191492 [20:59:25]line ИНН: 02508201610067 [20:59:25]line Контрольно-Кассовый Чек [20:59:25]line ПРОДАЖА [20:59:25]line ТРК (МРК, ГНК) : 43 [20:59:25]line Товар: 2710124130 [20:59:25]line Аи-92-К-5 [20:59:25]line 15.530 * 64.40 [20:59:25]line = 1000.13 [20:59:25]line НДС 12% НСП 1% [20:59:25]line > о реализуемом товаре [20:59:25]line ОКРУГЛЕНИЕ: -0.13 [20:59:25]line ИТОГО: 1000.00 [20:59:25]line Внесено: 1000.00 [20:59:25]line СДАЧА: 0.00 [20:59:25]line НСП 1% : 8.85 [20:59:25]line НДС 12% : 106.21 [20:59:25]line Наличными: 1000.00 [20:59:25]line Безнал.: 0.00 [20:59:25]line Место: АЗС № 106 "Партнер Нефть" [20:59:25]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [20:59:25]line СНО: Общий режим [20:59:25]line Чек 200 21.04.2024 20:59 [20:59:25]line Смена: 372 ФФД: 1.0 [20:59:25]line ЗНМ: 0300000141 [20:59:25]line РНМ: 0000000000091573 [20:59:25]line Версия ККМ: 001 [20:59:25]line ФМ: 0000000000874652 [20:59:25]line ФД: 76944 [20:59:25]line ФПД: 147818886742575 [20:59:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T205925&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76944&fm=147818886742575&tin=02508201610067®Number=0000000000091573&sum=100000 [20:59:26]written 0, free lines is 4095 [20:59:26]OFD Sender: Processing packet 76943 [packets to send 130, broken 128] [20:59:26]ProducePacketName [20:59:26]name=ofd_packets/00076943 [20:59:26]OFD Sender: To server: pG, [20:59:26]CommunicateWithHost lk.salyk.kg:30040 [20:59:26]ConnectInit lk.salyk.kg [20:59:26]Connected sock=10 [20:59:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 81 60 04 01 FA 3E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 AA 7D 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8F 2C 01 00 35 04 06 00 C9 89 77 36 EE C2 9E 1B D1 89 6A B5 35 4F [20:59:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 03 59 47 00 F9 B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8F 2C 01 00 F4 03 04 00 B2 25 25 66 B6 04 01 00 00 90 59 D3 77 7B DF FC 9B [20:59:26]CommunicateWithHost err = 0 [20:59:26]CheckOFDResponse [20:59:26]1017 (14) - 77093643461234 [20:59:26]1041 (16) - 0000000000874652 [20:59:26]1040 (4) - 76943 [20:59:26]1012 (4) - 21.04.2024 14:41 [20:59:26]1206 (1) - 0 [20:59:26]OFD Sender: Remove packet 76943 [20:59:26]ProducePacketName [20:59:26]name=ofd_packets/00076943 [20:59:26]NVStorageDeleteData [20:59:26]Write to MH i2c: 01 00 00 65 10 75 [20:59:26]Write i2c OK [20:59:26]MH_I2C_Read... [20:59:26]Read from MH i2c: 01 [20:59:26]MH_I2C_Read... [20:59:26]Read from MH i2c: 01 07 00 [20:59:26]MH_I2C_Read... [20:59:26]Read from MH i2c: 01 07 00 65 10 00 00 00 00 00 FB 0C 83 [20:59:26]RasterBufferAndPrint [20:59:26]line [20:59:26]line [20:59:26]line [20:59:26]line [20:59:26]line [20:59:26]written 0, free lines is 3329 [20:59:26]MH_Cut [20:59:26]Write to MH i2c: D1 01 00 6C 10 01 4E [20:59:26]Write i2c OK [20:59:26]MH_I2C_Read... [20:59:26]Read from MH i2c: D1 [20:59:26]MH_I2C_Read... [20:59:26]Read from MH i2c: D1 01 00 [20:59:26]MH_I2C_Read... [20:59:26]Read from MH i2c: D1 01 00 6C 10 00 4D [20:59:26]Write to MH i2c: 01 00 00 6D 10 7D [20:59:26]Write i2c OK [20:59:26]MH_I2C_Read... [20:59:27]OFD Sender: Processing packet 76944 [packets to send 129, broken 128] [20:59:27]ProducePacketName [20:59:27]name=ofd_packets/00076944 [20:59:27]OFD Sender: To server: pG, [20:59:27]CommunicateWithHost lk.salyk.kg:30040 [20:59:27]ConnectInit lk.salyk.kg [20:59:27]Connected sock=10 [20:59:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 BB FF 07 01 2F 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 2D 7E 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 90 2C 01 00 35 04 06 00 86 70 C4 3C 42 2F 42 EC DC 7D 1D 68 D2 42 [20:59:27]*** Cut start [20:59:27]*** Partial cut [20:59:27]*** CUTSNS_PIN = 1 [20:59:27]*** CUTSNS_PIN = 0 [20:59:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 FC 7D 47 00 EE 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 34 36 35 32 10 04 04 00 90 2C 01 00 F4 03 04 00 B2 25 25 66 B6 04 01 00 00 38 57 19 EE 09 1E CD 2D [20:59:27]CommunicateWithHost err = 0 [20:59:27]CheckOFDResponse [20:59:27]1017 (14) - 77093643461234 [20:59:27]1041 (16) - 0000000000874652 [20:59:27]1040 (4) - 76944 [20:59:27]1012 (4) - 21.04.2024 14:41 [20:59:27]1206 (1) - 0 [20:59:27]OFD Sender: Remove packet 76944 [20:59:27]ProducePacketName [20:59:27]name=ofd_packets/00076944 [20:59:27]NVStorageDeleteData [20:59:27]*** Brake cut motor [20:59:28]OFD Sender: No OFD packet to send [20:59:28]Read from MH i2c: 01 [20:59:28]MH_I2C_Read... [20:59:28]*** Stop cut motor [20:59:28]*** Cut end [20:59:28]Read from MH i2c: 01 07 00 [20:59:28]MH_I2C_Read... [20:59:28]Read from MH i2c: 01 07 00 6D 10 00 00 00 00 00 FF 0F 92 [20:59:28]process_action close_receipt done [20:59:28]requested_data is exist [20:59:28]produce_requested_data [20:59:28]requested_item fm.sn is exist - process it [20:59:28]wFMCommunicate request_size=4 [20:59:28]MH_SAM_APDU [20:59:28]CAPDU: 80 11 00 00 [20:59:28]Write to MH i2c: E2 08 00 6E 10 80 11 00 00 00 00 00 00 F8 [20:59:28]Write i2c OK [20:59:28]MH_I2C_Read... [20:59:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:59:28]Read from MH i2c: E2 [20:59:28]MH_I2C_Read... [20:59:28]Read from MH i2c: E2 17 00 [20:59:28]MH_I2C_Read... [20:59:28]Read from MH i2c: E2 17 00 6E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 4B [20:59:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:59:28]wFMCommunicate OK [20:59:28]requested_item fd.num is exist - process it [20:59:28]SAM_PROTO_GetFieldsCounters [20:59:28]wFMCommunicate request_size=4 [20:59:28]MH_SAM_APDU [20:59:28]CAPDU: 80 13 00 00 [20:59:28]Write to MH i2c: E2 08 00 6F 10 80 13 00 00 00 00 00 00 FB [20:59:28]Write i2c OK [20:59:28]MH_I2C_Read... [20:59:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:59:28]Read from MH i2c: E2 [20:59:28]MH_I2C_Read... [20:59:28]Read from MH i2c: E2 62 00 [20:59:28]MH_I2C_Read... [20:59:28]Read from MH i2c: E2 62 00 6F 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 90 2C 01 00 0E 04 04 00 74 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 A6 [20:59: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 90 2C 01 00 0E 04 04 00 74 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 [20:59:28]wFMCommunicate OK [20:59:28]SAM_PROTO_GetFieldsCounters done [20:59:28]requested_item shift.num is exist - process it [20:59:28]requested_item shift.opened is exist - process it [20:59:28]req_shift_opened [20:59:28]FM_GetShiftState [20:59:28]SAM_PROTO_GetShiftState [20:59:28]wFMCommunicate request_size=4 [20:59:28]MH_SAM_APDU [20:59:28]CAPDU: 80 13 01 00 [20:59:28]Write to MH i2c: E2 08 00 70 10 80 13 01 00 00 00 00 00 FD [20:59:28]Write i2c OK [20:59:28]MH_I2C_Read... [20:59:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:59:28]Read from MH i2c: E2 [20:59:28]MH_I2C_Read... [20:59:28]Read from MH i2c: E2 0E 00 [20:59:28]MH_I2C_Read... [20:59:28]Read from MH i2c: E2 0E 00 70 10 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 44 [20:59:28]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [20:59:28]wFMCommunicate OK [20:59:28]SAM_PROTO_GetShiftState done [20:59:28]FM_GetShiftState done [20:59:28]req_shift_opened done [20:59:28]requested_item shift.open_date is exist - process it [20:59:28]req_shift_open_date [20:59:28]req_shift_open_date done [20:59:28]produce_requested_data done [20:59:28]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76944,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [20:59:28]process_action_free close_receipt [20:59:28]json_value_free [20:59:28]json_value_free done [20:59:28]process_json_proto returns [20:59:28]Send response to host [20:59:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76944,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [20:59:28]free response buf [20:59:28]execute_script done [20:59:28]execute_script returns [20:59:28]free content buf [20:59:28]Sock 9.Close socket [20:59:28]Sock 9.Thread stoped [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:23]accept exits with 8 [21:01:23]New connection [21:01:23]New thread 3066801508 created [21:01:23]Thread 3066944868 joined [21:01:23]Waiting for new connection... [21:01:23] Sock 8.Parse request [21:01:23]Sock 8.Check first char [21:01:23]Sock 8.First char is OK [21:01:23]request: POST /json_proto HTTP/1.0 [21:01:23]Method: POST [21:01:23]URL: /json_proto [21:01:23]Method is POST - this is cgi request [21:01:23]url: /json_proto [21:01:23]query_string will be loaded in cgi processing [21:01:23]execute_cgi json_proto POST (null) [21:01:23]execute_cgi path=json_proto method=POST [21:01:23]POST find Content-Length [21:01:23]Host: 172.17.62.5:8080 [21:01:23]Content-Length: 682 [21:01:23]Content-Type: application/json [21:01:23] [21:01:23]POST finish read [21:01:23]Found Content-Length = 682 [21:01:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [21:01:23]execute_script... [21:01: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)191493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [21:01:23]POST & json_proto [21:01:23]process_json_proto [21:01:23]json parsed OK: [21:01:23]protocol is kg_v1.0 [21:01:23]action value=close_receipt [21:01:23]process_action close_receipt [21:01:23]cmd_close_receipt [21:01:23]MH_GetDate [21:01:23]Write to MH i2c: F0 00 00 71 10 70 [21:01:23]Write i2c OK [21:01:23]MH_I2C_Read... [21:01:23]Read from MH i2c: F0 [21:01:23]MH_I2C_Read... [21:01:23]Read from MH i2c: F0 09 00 [21:01:23]MH_I2C_Read... [21:01:23]Read from MH i2c: F0 09 00 71 10 00 A4 7E 25 66 F4 E9 65 64 CC [21:01:23]GetLastDocTimeStamp 1713733165 [21:01:23]current date 1713733284 [21:01:23]FM_GetShiftState [21:01:23]SAM_PROTO_GetShiftState [21:01:23]wFMCommunicate request_size=4 [21:01:23]MH_SAM_APDU [21:01:23]CAPDU: 80 13 01 00 [21:01:23]Write to MH i2c: E2 08 00 72 10 80 13 01 00 00 00 00 00 FF [21:01:23]Write i2c OK [21:01:23]MH_I2C_Read... [21:01:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:23]Read from MH i2c: E2 [21:01:23]MH_I2C_Read... [21:01:23]Read from MH i2c: E2 0E 00 [21:01:23]MH_I2C_Read... [21:01:23]Read from MH i2c: E2 0E 00 72 10 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 46 [21:01:23]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:01:23]wFMCommunicate OK [21:01:23]SAM_PROTO_GetShiftState done [21:01:23]FM_GetShiftState done [21:01:23]opened in 1713658965 [21:01:23]opened+sec_in_day 1713745365 [21:01:23]quantity*price = 100018 [21:01:23]sum+1 = 100020 [21:01:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 201 21.04.2024 21:01 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76945 ФПД: 198111347850105 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T210124&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76945&fm=198111347850105&tin=02508201610067®Number=0000000000091573&sum=100000 [21:01:24]StoreToDocumentArchive [21:01:24]shift 372 fd 76945 [21:01:24]save to /storage/0372/doc_00076945 [21:01:24]save last doc name /storage/0372/doc_00076945 to /storage/kkm_last_doc_name [21:01:24]save OK [21:01:24]Clear old archive folders... [21:01:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:01:24]tlvbuf is 00C4CFD0 [21:01:24]SAM_PROTO_ClearQueue [21:01:24]wFMCommunicate request_size=4 [21:01:24]MH_SAM_APDU [21:01:24]CAPDU: 80 09 00 00 [21:01:24]Write to MH i2c: E2 08 00 7F 10 80 09 00 00 00 00 00 00 01 [21:01:24]Write i2c OK [21:01:24]MH_I2C_Read... [21:01:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:01:24]Read from MH i2c: E2 [21:01:24]MH_I2C_Read... [21:01:24]Read from MH i2c: E2 03 00 [21:01:24]MH_I2C_Read... [21:01:24]Read from MH i2c: E2 03 00 7F 10 00 90 00 03 [21:01:24]RAPDU: 90 00 [21:01:24]wFMCommunicate OK [21:01:24]SAM_PROTO_ClearQueue done [21:01:24]KKMCreateOFDPacket [21:01:24]OFDProtocolAddRootSTLVToBuf [21:01:24]FM_MakeSignedData [21:01:24]FM_MakeSignedData [21:01:24]SAM_PROTO_SignData [21:01:24]wFMCommunicate request_size=4 [21:01:24]MH_SAM_APDU [21:01:24]CAPDU: 80 0D 01 02 [21:01:24]Write to MH i2c: E2 08 00 80 10 80 0D 01 02 00 00 00 00 09 [21:01:24]Write i2c OK [21:01:24]MH_I2C_Read... [21:01:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:01:24]Read from MH i2c: E2 [21:01:24]MH_I2C_Read... [21:01:24]Read from MH i2c: E2 03 00 [21:01:24]MH_I2C_Read... [21:01:24]Read from MH i2c: E2 03 00 80 10 00 90 00 04 [21:01:24]RAPDU: 90 00 [21:01:24]wFMCommunicate OK [21:01:24]wFMCommunicate request_size=255 [21:01:24]MH_SAM_APDU [21:01: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 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 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 C9 00 00 00 F4 03 04 00 A4 7E 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 91 2C 01 00 35 04 06 00 B4 [21:01:24]Write to MH i2c: E2 02 01 81 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 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 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 C9 00 00 00 F4 03 04 00 A4 7E 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 91 2C 01 00 35 04 06 00 B4 00 00 7D [21:01:24]Write i2c OK [21:01:24]MH_I2C_Read... [21:01:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:24]Read from MH i2c: E2 [21:01:24]MH_I2C_Read... [21:01:24]Read from MH i2c: E2 03 00 [21:01:24]MH_I2C_Read... [21:01:24]Read from MH i2c: E2 03 00 81 10 00 90 00 05 [21:01:24]RAPDU: 90 00 [21:01:24]wFMCommunicate OK [21:01:24]wFMCommunicate request_size=10 [21:01:24]MH_SAM_APDU [21:01:24]CAPDU: 80 0D 02 02 05 2E 64 83 BB 79 [21:01:24]Write to MH i2c: E2 0D 00 82 10 80 0D 02 02 05 00 2E 64 83 BB 79 00 00 5F [21:01:24]Write i2c OK [21:01:24]MH_I2C_Read... [21:01:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:24]Read from MH i2c: E2 [21:01:24]MH_I2C_Read... [21:01:24]Read from MH i2c: E2 03 00 [21:01:24]MH_I2C_Read... [21:01:24]Read from MH i2c: E2 03 00 82 10 00 90 00 06 [21:01:24]RAPDU: 90 00 [21:01:24]wFMCommunicate OK [21:01:24]wFMCommunicate request_size=4 [21:01:24]MH_SAM_APDU [21:01:24]CAPDU: 80 0D 03 02 [21:01:24]Write to MH i2c: E2 08 00 83 10 80 0D 03 02 00 00 00 00 0E [21:01:24]Write i2c OK [21:01:24]MH_I2C_Read... [21:01:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:01:24]Read from MH i2c: E2 [21:01:24]MH_I2C_Read... [21:01:24]Read from MH i2c: E2 0B 00 [21:01:24]MH_I2C_Read... [21:01:24]Read from MH i2c: E2 0B 00 83 10 00 E9 97 A2 3E 84 D0 91 B8 90 00 0C [21:01:24]RAPDU: E9 97 A2 3E 84 D0 91 B8 90 00 [21:01:24]wFMCommunicate OK [21:01:24]SAM_PROTO_SignData done [21:01:24]FM_MakeSignedData done [21:01:24]CreateOFDProtocolMessage [21:01:24]wFMCommunicate request_size=4 [21:01:24]MH_SAM_APDU [21:01:24]CAPDU: 80 11 00 00 [21:01:24]Write to MH i2c: E2 08 00 84 10 80 11 00 00 00 00 00 00 0E [21:01:24]Write i2c OK [21:01:24]MH_I2C_Read... [21:01:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:25]Read from MH i2c: E2 [21:01:25]MH_I2C_Read... [21:01:25]Read from MH i2c: E2 17 00 [21:01:25]MH_I2C_Read... [21:01:25]Read from MH i2c: E2 17 00 84 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 61 [21:01:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:01:25]wFMCommunicate OK [21:01:25]CreateOFDProtocolMessage done [21:01:25]OFDSenderStorePacket 76945 [21:01:25]StoreOFDPacket docnum=76945 [21:01:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 14 D7 07 01 8B DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 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 C9 00 00 00 F4 03 04 00 A4 7E 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 91 2C 01 00 35 04 06 00 B4 2E 64 83 BB 79 E9 97 A2 3E 84 D0 91 B8 [21:01:25]CheckFolder [21:01:25]dirname=/storage/ofd_packets [21:01:25]CheckFolder done [21:01:25]ProducePacketName [21:01:25]name=ofd_packets/00076945 [21:01:25]NVStorageSaveData ofd_packets/00076945 [21:01:25]File name is /storage/ofd_packets/00076945 [21:01:25]Write 301 bytes [21:01:25]NVStorageSaveData done [21:01:25]OFDSenderStorePacket done [21:01:25]KKMCreateOFDPacket done [21:01:25]NVStorageSaveData kkm_last_timestamp [21:01:25]File name is /storage/kkm_last_timestamp [21:01:25]Write 4 bytes [21:01:25]NVStorageSaveData done [21:01:25]ExternCall_PrintAddStr [21:01:25]wPrintStart [21:01:25]Write to MH i2c: 01 00 00 85 10 95 [21:01:25]Write i2c OK [21:01:25]MH_I2C_Read... [21:01:25]Read from MH i2c: 01 [21:01:25]MH_I2C_Read... [21:01:25]Read from MH i2c: 01 07 00 [21:01:25]MH_I2C_Read... [21:01:25]Read from MH i2c: 01 07 00 85 10 00 00 00 00 00 FF 0F AA [21:01:25]RasterBufferAndPrint [21:01:25]line Счет N : (1)191493 [21:01:25]line ИНН: 02508201610067 [21:01:25]line Контрольно-Кассовый Чек [21:01:25]line ПРОДАЖА [21:01:25]line ТРК (МРК, ГНК) : 11 [21:01:25]line Товар: 2710124500 [21:01:25]line Аи-95-К-5 [21:01:25]line 13.720 * 72.90 [21:01:25]line = 1000.19 [21:01:25]line НДС 12% НСП 1% [21:01:25]line > о реализуемом товаре [21:01:25]line ОКРУГЛЕНИЕ: -0.19 [21:01:25]line ИТОГО: 1000.00 [21:01:25]line Внесено: 1000.00 [21:01:25]line СДАЧА: 0.00 [21:01:25]line НСП 1% : 8.85 [21:01:25]line НДС 12% : 106.21 [21:01:25]line Наличными: 1000.00 [21:01:25]line Безнал.: 0.00 [21:01:25]line Место: АЗС № 106 "Партнер Нефть" [21:01:25]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [21:01:25]line СНО: Общий режим [21:01:25]line Чек 201 21.04.2024 21:01 [21:01:25]line Смена: 372 ФФД: 1.0 [21:01:25]line ЗНМ: 0300000141 [21:01:25]line РНМ: 0000000000091573 [21:01:25]line Версия ККМ: 001 [21:01:25]line ФМ: 0000000000874652 [21:01:25]line ФД: 76945 [21:01:25]line ФПД: 198111347850105 [21:01:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T210124&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76945&fm=198111347850105&tin=02508201610067®Number=0000000000091573&sum=100000 [21:01:25]OFD Sender: Processing packet 76945 [packets to send 129, broken 128] [21:01:25]ProducePacketName [21:01:25]name=ofd_packets/00076945 [21:01:25]OFD Sender: To server: pG, [21:01:25]CommunicateWithHost lk.salyk.kg:30040 [21:01:25]ConnectInit lk.salyk.kg [21:01:25]written 0, free lines is 4095 [21:01:25]Connected sock=10 [21:01:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 14 D7 07 01 8B DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 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 C9 00 00 00 F4 03 04 00 A4 7E 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 91 2C 01 00 35 04 06 00 B4 2E 64 83 BB 79 E9 97 A2 3E 84 D0 91 B8 [21:01:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 EA C4 47 00 5C 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 34 36 35 32 10 04 04 00 91 2C 01 00 F4 03 04 00 29 26 25 66 B6 04 01 00 00 AD 96 97 DB D4 C2 BB DC [21:01:25]CommunicateWithHost err = 0 [21:01:25]CheckOFDResponse [21:01:25]1017 (14) - 77093643461234 [21:01:25]1041 (16) - 0000000000874652 [21:01:25]1040 (4) - 76945 [21:01:25]1012 (4) - 21.04.2024 14:43 [21:01:25]1206 (1) - 0 [21:01:25]OFD Sender: Remove packet 76945 [21:01:25]ProducePacketName [21:01:25]name=ofd_packets/00076945 [21:01:25]NVStorageDeleteData [21:01:25]Write to MH i2c: 01 00 00 AF 10 BF [21:01:25]Write i2c OK [21:01:25]MH_I2C_Read... [21:01:25]Read from MH i2c: 01 [21:01:25]MH_I2C_Read... [21:01:25]Read from MH i2c: 01 07 00 [21:01:25]MH_I2C_Read... [21:01:25]Read from MH i2c: 01 07 00 AF 10 00 00 00 00 00 F8 0C CA [21:01:25]RasterBufferAndPrint [21:01:25]line [21:01:25]line [21:01:25]line [21:01:25]line [21:01:25]line [21:01:25]written 0, free lines is 3327 [21:01:25]MH_Cut [21:01:25]Write to MH i2c: D1 01 00 B6 10 01 98 [21:01:25]Write i2c OK [21:01:25]MH_I2C_Read... [21:01:25]Read from MH i2c: D1 [21:01:25]MH_I2C_Read... [21:01:25]Read from MH i2c: D1 01 00 [21:01:25]MH_I2C_Read... [21:01:25]Read from MH i2c: D1 01 00 B6 10 00 97 [21:01:25]Write to MH i2c: 01 00 00 B7 10 C7 [21:01:25]Write i2c OK [21:01:25]MH_I2C_Read... [21:01:26]OFD Sender: No OFD packet to send [21:01:26]*** Cut start [21:01:26]*** Partial cut [21:01:26]*** CUTSNS_PIN = 1 [21:01:26]*** CUTSNS_PIN = 0 [21:01:26]*** Brake cut motor [21:01:27]Read from MH i2c: 01 [21:01:27]MH_I2C_Read... [21:01:27]*** Stop cut motor [21:01:27]*** Cut end [21:01:27]Read from MH i2c: 01 07 00 [21:01:27]MH_I2C_Read... [21:01:27]Read from MH i2c: 01 07 00 B7 10 00 00 00 00 00 FF 0F DC [21:01:27]process_action close_receipt done [21:01:27]requested_data is exist [21:01:27]produce_requested_data [21:01:27]requested_item fm.sn is exist - process it [21:01:27]wFMCommunicate request_size=4 [21:01:27]MH_SAM_APDU [21:01:27]CAPDU: 80 11 00 00 [21:01:27]Write to MH i2c: E2 08 00 B8 10 80 11 00 00 00 00 00 00 42 [21:01:27]Write i2c OK [21:01:27]MH_I2C_Read... [21:01:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:27]Read from MH i2c: E2 [21:01:27]MH_I2C_Read... [21:01:27]Read from MH i2c: E2 17 00 [21:01:27]MH_I2C_Read... [21:01:27]Read from MH i2c: E2 17 00 B8 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 95 [21:01:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:01:27]wFMCommunicate OK [21:01:27]requested_item fd.num is exist - process it [21:01:27]SAM_PROTO_GetFieldsCounters [21:01:27]wFMCommunicate request_size=4 [21:01:27]MH_SAM_APDU [21:01:27]CAPDU: 80 13 00 00 [21:01:27]Write to MH i2c: E2 08 00 B9 10 80 13 00 00 00 00 00 00 45 [21:01:27]Write i2c OK [21:01:27]MH_I2C_Read... [21:01:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:01:27]Read from MH i2c: E2 [21:01:27]MH_I2C_Read... [21:01:27]Read from MH i2c: E2 62 00 [21:01:27]MH_I2C_Read... [21:01:27]Read from MH i2c: E2 62 00 B9 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 91 2C 01 00 0E 04 04 00 74 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 F4 [21:01: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 91 2C 01 00 0E 04 04 00 74 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 [21:01:27]wFMCommunicate OK [21:01:27]SAM_PROTO_GetFieldsCounters done [21:01:27]requested_item shift.num is exist - process it [21:01:27]requested_item shift.opened is exist - process it [21:01:27]req_shift_opened [21:01:27]FM_GetShiftState [21:01:27]SAM_PROTO_GetShiftState [21:01:27]wFMCommunicate request_size=4 [21:01:27]MH_SAM_APDU [21:01:27]CAPDU: 80 13 01 00 [21:01:27]Write to MH i2c: E2 08 00 BA 10 80 13 01 00 00 00 00 00 47 [21:01:27]Write i2c OK [21:01:27]MH_I2C_Read... [21:01:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:27]Read from MH i2c: E2 [21:01:27]MH_I2C_Read... [21:01:27]Read from MH i2c: E2 0E 00 [21:01:27]MH_I2C_Read... [21:01:27]Read from MH i2c: E2 0E 00 BA 10 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 8E [21:01:27]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:01:27]wFMCommunicate OK [21:01:27]SAM_PROTO_GetShiftState done [21:01:27]FM_GetShiftState done [21:01:27]req_shift_opened done [21:01:27]requested_item shift.open_date is exist - process it [21:01:27]req_shift_open_date [21:01:27]req_shift_open_date done [21:01:27]produce_requested_data done [21:01:27]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76945,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [21:01:27]process_action_free close_receipt [21:01:27]json_value_free [21:01:27]json_value_free done [21:01:27]process_json_proto returns [21:01:27]Send response to host [21:01:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76945,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [21:01:27]free response buf [21:01:27]execute_script done [21:01:27]execute_script returns [21:01:27]free content buf [21:01:27]Sock 8.Close socket [21:01:27]Sock 8.Thread stoped [21:01:31]OFD Sender: No OFD packet to send [21:01:36]OFD Sender: No OFD packet to send [21:01:41]OFD Sender: No OFD packet to send [21:01:46]OFD Sender: No OFD packet to send [21:01:51]OFD Sender: No OFD packet to send [21:01:56]OFD Sender: No OFD packet to send [21:02:01]OFD Sender: No OFD packet to send [21:02:06]OFD Sender: No OFD packet to send [21:02:11]OFD Sender: No OFD packet to send [21:02:16]OFD Sender: No OFD packet to send [21:02:21]OFD Sender: No OFD packet to send [21:02:26]OFD Sender: No OFD packet to send [21:02:31]OFD Sender: No OFD packet to send [21:02:36]OFD Sender: No OFD packet to send [21:02:41]OFD Sender: No OFD packet to send [21:02:46]OFD Sender: No OFD packet to send [21:02:51]OFD Sender: No OFD packet to send [21:02:56]OFD Sender: No OFD packet to send [21:03:01]OFD Sender: No OFD packet to send [21:03:06]OFD Sender: No OFD packet to send [21:03:11]OFD Sender: No OFD packet to send [21:03:16]OFD Sender: No OFD packet to send [21:03:17]accept exits with 9 [21:03:17]New connection [21:03:17]New thread 3066944868 created [21:03:17]Thread 3066801508 joined [21:03:17]Waiting for new connection... [21:03:17] Sock 9.Parse request [21:03:17]Sock 9.Check first char [21:03:17]Sock 9.First char is OK [21:03:17]request: POST /json_proto HTTP/1.0 [21:03:17]Method: POST [21:03:17]URL: /json_proto [21:03:17]Method is POST - this is cgi request [21:03:17]url: /json_proto [21:03:17]query_string will be loaded in cgi processing [21:03:17]execute_cgi json_proto POST (null) [21:03:17]execute_cgi path=json_proto method=POST [21:03:17]POST find Content-Length [21:03:17]Host: 172.17.62.5:8080 [21:03:17]Content-Length: 677 [21:03:17]Content-Type: application/json [21:03:17] [21:03:17]POST finish read [21:03:17]Found Content-Length = 677 [21:03:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 4.660, "sum" : 300.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:03:17]execute_script... [21:03: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)191494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 4.660, "sum" : 300.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:03:17]POST & json_proto [21:03:17]process_json_proto [21:03:17]json parsed OK: [21:03:17]protocol is kg_v1.0 [21:03:17]action value=close_receipt [21:03:17]process_action close_receipt [21:03:17]cmd_close_receipt [21:03:17]MH_GetDate [21:03:17]Write to MH i2c: F0 00 00 BB 10 BA [21:03:17]Write i2c OK [21:03:17]MH_I2C_Read... [21:03:17]Read from MH i2c: F0 [21:03:17]MH_I2C_Read... [21:03:17]Read from MH i2c: F0 09 00 [21:03:17]MH_I2C_Read... [21:03:17]Read from MH i2c: F0 09 00 BB 10 00 17 7F 25 66 F4 E9 65 64 8A [21:03:17]GetLastDocTimeStamp 1713733284 [21:03:17]current date 1713733399 [21:03:17]FM_GetShiftState [21:03:17]SAM_PROTO_GetShiftState [21:03:17]wFMCommunicate request_size=4 [21:03:17]MH_SAM_APDU [21:03:17]CAPDU: 80 13 01 00 [21:03:17]Write to MH i2c: E2 08 00 BC 10 80 13 01 00 00 00 00 00 49 [21:03:17]Write i2c OK [21:03:17]MH_I2C_Read... [21:03:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:03:17]Read from MH i2c: E2 [21:03:17]MH_I2C_Read... [21:03:17]Read from MH i2c: E2 0E 00 [21:03:17]MH_I2C_Read... [21:03:17]Read from MH i2c: E2 0E 00 BC 10 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 90 [21:03:17]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:03:17]wFMCommunicate OK [21:03:17]SAM_PROTO_GetShiftState done [21:03:17]FM_GetShiftState done [21:03:17]opened in 1713658965 [21:03:17]opened+sec_in_day 1713745365 [21:03:17]quantity*price = 30010 [21:03:17]sum+1 = 30011 [21:03:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 202 21.04.2024 21:03 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76946 ФПД: 157355397792155 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T210319&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76946&fm=157355397792155&tin=02508201610067®Number=0000000000091573&sum=30000 [21:03:18]StoreToDocumentArchive [21:03:18]shift 372 fd 76946 [21:03:18]save to /storage/0372/doc_00076946 [21:03:18]save last doc name /storage/0372/doc_00076946 to /storage/kkm_last_doc_name [21:03:18]save OK [21:03:18]Clear old archive folders... [21:03:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:03:18]tlvbuf is 00C6FC90 [21:03:18]SAM_PROTO_ClearQueue [21:03:18]wFMCommunicate request_size=4 [21:03:18]MH_SAM_APDU [21:03:18]CAPDU: 80 09 00 00 [21:03:18]Write to MH i2c: E2 08 00 C9 10 80 09 00 00 00 00 00 00 4B [21:03:18]Write i2c OK [21:03:18]MH_I2C_Read... [21:03:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:03:18]Read from MH i2c: E2 [21:03:18]MH_I2C_Read... [21:03:18]Read from MH i2c: E2 03 00 [21:03:18]MH_I2C_Read... [21:03:18]Read from MH i2c: E2 03 00 C9 10 00 90 00 4D [21:03:18]RAPDU: 90 00 [21:03:18]wFMCommunicate OK [21:03:18]SAM_PROTO_ClearQueue done [21:03:18]KKMCreateOFDPacket [21:03:18]OFDProtocolAddRootSTLVToBuf [21:03:18]FM_MakeSignedData [21:03:18]FM_MakeSignedData [21:03:18]SAM_PROTO_SignData [21:03:18]wFMCommunicate request_size=4 [21:03:18]MH_SAM_APDU [21:03:18]CAPDU: 80 0D 01 02 [21:03:18]Write to MH i2c: E2 08 00 CA 10 80 0D 01 02 00 00 00 00 53 [21:03:18]Write i2c OK [21:03:18]MH_I2C_Read... [21:03:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:03:19]Read from MH i2c: E2 [21:03:19]MH_I2C_Read... [21:03:19]Read from MH i2c: E2 03 00 [21:03:19]MH_I2C_Read... [21:03:19]Read from MH i2c: E2 03 00 CA 10 00 90 00 4E [21:03:19]RAPDU: 90 00 [21:03:19]wFMCommunicate OK [21:03:19]wFMCommunicate request_size=255 [21:03:19]MH_SAM_APDU [21:03: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 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CA 00 00 00 F4 03 04 00 17 7F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 92 2C 01 00 35 04 06 00 8F [21:03:19]Write to MH i2c: E2 02 01 CB 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 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CA 00 00 00 F4 03 04 00 17 7F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 92 2C 01 00 35 04 06 00 8F 00 00 15 [21:03:19]Write i2c OK [21:03:19]MH_I2C_Read... [21:03:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:03:19]Read from MH i2c: E2 [21:03:19]MH_I2C_Read... [21:03:19]Read from MH i2c: E2 03 00 [21:03:19]MH_I2C_Read... [21:03:19]Read from MH i2c: E2 03 00 CB 10 00 90 00 4F [21:03:19]RAPDU: 90 00 [21:03:19]wFMCommunicate OK [21:03:19]wFMCommunicate request_size=10 [21:03:19]MH_SAM_APDU [21:03:19]CAPDU: 80 0D 02 02 05 1D 28 96 C1 9B [21:03:19]Write to MH i2c: E2 0D 00 CC 10 80 0D 02 02 05 00 1D 28 96 C1 9B 00 00 97 [21:03:19]Write i2c OK [21:03:19]MH_I2C_Read... [21:03:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:03:19]Read from MH i2c: E2 [21:03:19]MH_I2C_Read... [21:03:19]Read from MH i2c: E2 03 00 [21:03:19]MH_I2C_Read... [21:03:19]Read from MH i2c: E2 03 00 CC 10 00 90 00 50 [21:03:19]RAPDU: 90 00 [21:03:19]wFMCommunicate OK [21:03:19]wFMCommunicate request_size=4 [21:03:19]MH_SAM_APDU [21:03:19]CAPDU: 80 0D 03 02 [21:03:19]Write to MH i2c: E2 08 00 CD 10 80 0D 03 02 00 00 00 00 58 [21:03:19]Write i2c OK [21:03:19]MH_I2C_Read... [21:03:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:03:19]Read from MH i2c: E2 [21:03:19]MH_I2C_Read... [21:03:19]Read from MH i2c: E2 0B 00 [21:03:19]MH_I2C_Read... [21:03:19]Read from MH i2c: E2 0B 00 CD 10 00 0E B8 78 6B 18 AE 8B D7 90 00 2A [21:03:19]RAPDU: 0E B8 78 6B 18 AE 8B D7 90 00 [21:03:19]wFMCommunicate OK [21:03:19]SAM_PROTO_SignData done [21:03:19]FM_MakeSignedData done [21:03:19]CreateOFDProtocolMessage [21:03:19]wFMCommunicate request_size=4 [21:03:19]MH_SAM_APDU [21:03:19]CAPDU: 80 11 00 00 [21:03:19]Write to MH i2c: E2 08 00 CE 10 80 11 00 00 00 00 00 00 58 [21:03:19]Write i2c OK [21:03:19]MH_I2C_Read... [21:03:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:03:19]Read from MH i2c: E2 [21:03:19]MH_I2C_Read... [21:03:19]Read from MH i2c: E2 17 00 [21:03:19]MH_I2C_Read... [21:03:19]Read from MH i2c: E2 17 00 CE 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 AB [21:03:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:03:19]wFMCommunicate OK [21:03:19]CreateOFDProtocolMessage done [21:03:19]OFDSenderStorePacket 76946 [21:03:19]StoreOFDPacket docnum=76946 [21:03:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 EC F8 07 01 B9 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CA 00 00 00 F4 03 04 00 17 7F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 92 2C 01 00 35 04 06 00 8F 1D 28 96 C1 9B 0E B8 78 6B 18 AE 8B D7 [21:03:19]CheckFolder [21:03:19]dirname=/storage/ofd_packets [21:03:19]CheckFolder done [21:03:19]ProducePacketName [21:03:19]name=ofd_packets/00076946 [21:03:19]NVStorageSaveData ofd_packets/00076946 [21:03:19]File name is /storage/ofd_packets/00076946 [21:03:19]Write 301 bytes [21:03:19]NVStorageSaveData done [21:03:19]OFDSenderStorePacket done [21:03:19]KKMCreateOFDPacket done [21:03:19]NVStorageSaveData kkm_last_timestamp [21:03:19]File name is /storage/kkm_last_timestamp [21:03:19]Write 4 bytes [21:03:19]NVStorageSaveData done [21:03:19]ExternCall_PrintAddStr [21:03:19]wPrintStart [21:03:19]Write to MH i2c: 01 00 00 CF 10 DF [21:03:19]Write i2c OK [21:03:19]MH_I2C_Read... [21:03:19]Read from MH i2c: 01 [21:03:19]MH_I2C_Read... [21:03:19]Read from MH i2c: 01 07 00 [21:03:19]MH_I2C_Read... [21:03:19]Read from MH i2c: 01 07 00 CF 10 00 00 00 00 00 FF 0F F4 [21:03:19]RasterBufferAndPrint [21:03:19]line Счет N : (1)191494 [21:03:19]line ИНН: 02508201610067 [21:03:19]line Контрольно-Кассовый Чек [21:03:19]line ПРОДАЖА [21:03:19]line ТРК (МРК, ГНК) : 22 [21:03:19]line Товар: 2710124130 [21:03:19]line Аи-92-К-5 [21:03:19]line 4.660 * 64.40 [21:03:19]line = 300.10 [21:03:19]line НДС 12% НСП 1% [21:03:19]line > о реализуемом товаре [21:03:19]line ОКРУГЛЕНИЕ: -0.10 [21:03:19]line ИТОГО: 300.00 [21:03:19]line Внесено: 300.00 [21:03:19]line СДАЧА: 0.00 [21:03:19]line НСП 1% : 2.66 [21:03:19]line НДС 12% : 31.87 [21:03:19]line Наличными: 300.00 [21:03:19]line Безнал.: 0.00 [21:03:19]line Место: АЗС № 106 "Партнер Нефть" [21:03:19]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [21:03:19]line СНО: Общий режим [21:03:19]line Чек 202 21.04.2024 21:03 [21:03:19]line Смена: 372 ФФД: 1.0 [21:03:19]line ЗНМ: 0300000141 [21:03:19]line РНМ: 0000000000091573 [21:03:19]line Версия ККМ: 001 [21:03:19]line ФМ: 0000000000874652 [21:03:19]line ФД: 76946 [21:03:19]line ФПД: 157355397792155 [21:03:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T210319&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76946&fm=157355397792155&tin=02508201610067®Number=0000000000091573&sum=30000 [21:03:19]written 0, free lines is 4095 [21:03:19]OFD Sender: Processing packet 76946 [packets to send 129, broken 128] [21:03:19]ProducePacketName [21:03:19]name=ofd_packets/00076946 [21:03:19]OFD Sender: To server: pG, [21:03:19]CommunicateWithHost lk.salyk.kg:30040 [21:03:19]ConnectInit lk.salyk.kg [21:03:19]Connected sock=10 [21:03:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 EC F8 07 01 B9 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CA 00 00 00 F4 03 04 00 17 7F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 92 2C 01 00 35 04 06 00 8F 1D 28 96 C1 9B 0E B8 78 6B 18 AE 8B D7 [21:03:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 26 CE 47 00 20 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 92 2C 01 00 F4 03 04 00 9B 26 25 66 B6 04 01 00 00 01 13 D7 10 9B 13 E9 8A [21:03:20]CommunicateWithHost err = 0 [21:03:20]CheckOFDResponse [21:03:20]1017 (14) - 77093643461234 [21:03:20]1041 (16) - 0000000000874652 [21:03:20]1040 (4) - 76946 [21:03:20]1012 (4) - 21.04.2024 14:45 [21:03:20]1206 (1) - 0 [21:03:20]OFD Sender: Remove packet 76946 [21:03:20]ProducePacketName [21:03:20]name=ofd_packets/00076946 [21:03:20]NVStorageDeleteData [21:03:20]Write to MH i2c: 01 00 00 F9 10 09 [21:03:20]Write i2c OK [21:03:20]MH_I2C_Read... [21:03:20]Read from MH i2c: 01 [21:03:20]MH_I2C_Read... [21:03:20]Read from MH i2c: 01 07 00 [21:03:20]MH_I2C_Read... [21:03:20]Read from MH i2c: 01 07 00 F9 10 00 00 00 00 00 EE 0C 0A [21:03:20]RasterBufferAndPrint [21:03:20]line [21:03:20]line [21:03:20]line [21:03:20]line [21:03:20]line [21:03:20]written 0, free lines is 3318 [21:03:20]MH_Cut [21:03:20]Write to MH i2c: D1 01 00 00 11 01 E3 [21:03:20]Write i2c OK [21:03:20]MH_I2C_Read... [21:03:20]Read from MH i2c: D1 [21:03:20]MH_I2C_Read... [21:03:20]Read from MH i2c: D1 01 00 [21:03:20]MH_I2C_Read... [21:03:20]Read from MH i2c: D1 01 00 00 11 00 E2 [21:03:20]Write to MH i2c: 01 00 00 01 11 12 [21:03:20]Write i2c OK [21:03:20]MH_I2C_Read... [21:03:20]OFD Sender: No OFD packet to send [21:03:20]*** Cut start [21:03:20]*** Partial cut [21:03:20]*** CUTSNS_PIN = 1 [21:03:21]*** CUTSNS_PIN = 0 [21:03:21]*** Brake cut motor [21:03:21]Read from MH i2c: 01 [21:03:21]MH_I2C_Read... [21:03:21]*** Stop cut motor [21:03:21]*** Cut end [21:03:21]Read from MH i2c: 01 07 00 [21:03:21]MH_I2C_Read... [21:03:21]Read from MH i2c: 01 07 00 01 11 00 00 00 00 00 FF 0F 27 [21:03:21]process_action close_receipt done [21:03:21]requested_data is exist [21:03:21]produce_requested_data [21:03:21]requested_item fm.sn is exist - process it [21:03:21]wFMCommunicate request_size=4 [21:03:21]MH_SAM_APDU [21:03:21]CAPDU: 80 11 00 00 [21:03:21]Write to MH i2c: E2 08 00 02 11 80 11 00 00 00 00 00 00 8D [21:03:21]Write i2c OK [21:03:21]MH_I2C_Read... [21:03:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:03:21]Read from MH i2c: E2 [21:03:21]MH_I2C_Read... [21:03:21]Read from MH i2c: E2 17 00 [21:03:21]MH_I2C_Read... [21:03:21]Read from MH i2c: E2 17 00 02 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 E0 [21:03:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:03:21]wFMCommunicate OK [21:03:21]requested_item fd.num is exist - process it [21:03:21]SAM_PROTO_GetFieldsCounters [21:03:21]wFMCommunicate request_size=4 [21:03:21]MH_SAM_APDU [21:03:21]CAPDU: 80 13 00 00 [21:03:21]Write to MH i2c: E2 08 00 03 11 80 13 00 00 00 00 00 00 90 [21:03:21]Write i2c OK [21:03:21]MH_I2C_Read... [21:03:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:03:21]Read from MH i2c: E2 [21:03:21]MH_I2C_Read... [21:03:21]Read from MH i2c: E2 62 00 [21:03:21]MH_I2C_Read... [21:03:21]Read from MH i2c: E2 62 00 03 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 92 2C 01 00 0E 04 04 00 74 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 43 [21:03: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 92 2C 01 00 0E 04 04 00 74 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 [21:03:21]wFMCommunicate OK [21:03:21]SAM_PROTO_GetFieldsCounters done [21:03:21]requested_item shift.num is exist - process it [21:03:21]requested_item shift.opened is exist - process it [21:03:21]req_shift_opened [21:03:21]FM_GetShiftState [21:03:21]SAM_PROTO_GetShiftState [21:03:21]wFMCommunicate request_size=4 [21:03:21]MH_SAM_APDU [21:03:21]CAPDU: 80 13 01 00 [21:03:21]Write to MH i2c: E2 08 00 04 11 80 13 01 00 00 00 00 00 92 [21:03:21]Write i2c OK [21:03:21]MH_I2C_Read... [21:03:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:03:21]Read from MH i2c: E2 [21:03:21]MH_I2C_Read... [21:03:21]Read from MH i2c: E2 0E 00 [21:03:21]MH_I2C_Read... [21:03:21]Read from MH i2c: E2 0E 00 04 11 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 D9 [21:03:21]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:03:21]wFMCommunicate OK [21:03:21]SAM_PROTO_GetShiftState done [21:03:21]FM_GetShiftState done [21:03:21]req_shift_opened done [21:03:21]requested_item shift.open_date is exist - process it [21:03:21]req_shift_open_date [21:03:21]req_shift_open_date done [21:03:21]produce_requested_data done [21:03:21]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76946,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [21:03:21]process_action_free close_receipt [21:03:21]json_value_free [21:03:21]json_value_free done [21:03:21]process_json_proto returns [21:03:21]Send response to host [21:03:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76946,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [21:03:21]free response buf [21:03:21]execute_script done [21:03:21]execute_script returns [21:03:21]free content buf [21:03:21]Sock 9.Close socket [21:03:21]Sock 9.Thread stoped [21:03:25]OFD Sender: No OFD packet to send [21:03:30]OFD Sender: No OFD packet to send [21:03:35]OFD Sender: No OFD packet to send [21:03:40]OFD Sender: No OFD packet to send [21:03:45]OFD Sender: No OFD packet to send [21:03:50]OFD Sender: No OFD packet to send [21:03:55]OFD Sender: No OFD packet to send [21:04:00]OFD Sender: No OFD packet to send [21:04:05]OFD Sender: No OFD packet to send [21:04:10]OFD Sender: No OFD packet to send [21:04:15]OFD Sender: No OFD packet to send [21:04:20]OFD Sender: No OFD packet to send [21:04:25]OFD Sender: No OFD packet to send [21:04:30]OFD Sender: No OFD packet to send [21:04:35]OFD Sender: No OFD packet to send [21:04:40]OFD Sender: No OFD packet to send [21:04:45]OFD Sender: No OFD packet to send [21:04:50]OFD Sender: No OFD packet to send [21:04:55]OFD Sender: No OFD packet to send [21:05:00]OFD Sender: No OFD packet to send [21:05:05]OFD Sender: No OFD packet to send [21:05:10]OFD Sender: No OFD packet to send [21:05:15]OFD Sender: No OFD packet to send [21:05:20]OFD Sender: No OFD packet to send [21:05:25]OFD Sender: No OFD packet to send [21:05:30]OFD Sender: No OFD packet to send [21:05:35]OFD Sender: No OFD packet to send [21:05:40]OFD Sender: No OFD packet to send [21:05:45]OFD Sender: No OFD packet to send [21:05:50]OFD Sender: No OFD packet to send [21:05:55]OFD Sender: No OFD packet to send [21:06:00]OFD Sender: No OFD packet to send [21:06:05]OFD Sender: No OFD packet to send [21:06:10]OFD Sender: No OFD packet to send [21:06:15]OFD Sender: No OFD packet to send [21:06:20]OFD Sender: No OFD packet to send [21:06:25]OFD Sender: No OFD packet to send [21:06:30]OFD Sender: No OFD packet to send [21:06:35]OFD Sender: No OFD packet to send [21:06:40]OFD Sender: No OFD packet to send [21:06:45]OFD Sender: No OFD packet to send [21:06:50]OFD Sender: No OFD packet to send [21:06:55]OFD Sender: No OFD packet to send [21:07:00]OFD Sender: No OFD packet to send [21:07:05]OFD Sender: No OFD packet to send [21:07:10]OFD Sender: No OFD packet to send [21:07:15]OFD Sender: No OFD packet to send [21:07:20]OFD Sender: No OFD packet to send [21:07:25]OFD Sender: No OFD packet to send [21:07:30]OFD Sender: No OFD packet to send [21:07:35]OFD Sender: No OFD packet to send [21:07:40]OFD Sender: No OFD packet to send [21:07:45]OFD Sender: No OFD packet to send [21:07:50]OFD Sender: No OFD packet to send [21:07:55]OFD Sender: No OFD packet to send [21:08:00]OFD Sender: No OFD packet to send [21:08:06]OFD Sender: No OFD packet to send [21:08:11]OFD Sender: No OFD packet to send [21:08:16]OFD Sender: No OFD packet to send [21:08:21]OFD Sender: No OFD packet to send [21:08:26]OFD Sender: No OFD packet to send [21:08:31]OFD Sender: No OFD packet to send [21:08:36]OFD Sender: No OFD packet to send [21:08:41]OFD Sender: No OFD packet to send [21:08:46]OFD Sender: No OFD packet to send [21:08:51]OFD Sender: No OFD packet to send [21:08:56]OFD Sender: No OFD packet to send [21:09:01]OFD Sender: No OFD packet to send [21:09:06]OFD Sender: No OFD packet to send [21:09:11]OFD Sender: No OFD packet to send [21:09:16]OFD Sender: No OFD packet to send [21:09:21]OFD Sender: No OFD packet to send [21:09:26]OFD Sender: No OFD packet to send [21:09:31]OFD Sender: No OFD packet to send [21:09:36]OFD Sender: No OFD packet to send [21:09:41]OFD Sender: No OFD packet to send [21:09:46]OFD Sender: No OFD packet to send [21:09:51]OFD Sender: No OFD packet to send [21:09:56]OFD Sender: No OFD packet to send [21:10:01]OFD Sender: No OFD packet to send [21:10:06]OFD Sender: No OFD packet to send [21:10:11]OFD Sender: No OFD packet to send [21:10:16]OFD Sender: No OFD packet to send [21:10:21]OFD Sender: No OFD packet to send [21:10:26]OFD Sender: No OFD packet to send [21:10:30]accept exits with 8 [21:10:30]New connection [21:10:30]New thread 3066801508 created [21:10:30]Thread 3066944868 joined [21:10:30]Waiting for new connection... [21:10:30] Sock 8.Parse request [21:10:30]Sock 8.Check first char [21:10:30]Sock 8.First char is OK [21:10:30]request: POST /json_proto HTTP/1.0 [21:10:30]Method: POST [21:10:30]URL: /json_proto [21:10:30]Method is POST - this is cgi request [21:10:30]url: /json_proto [21:10:30]query_string will be loaded in cgi processing [21:10:30]execute_cgi json_proto POST (null) [21:10:30]execute_cgi path=json_proto method=POST [21:10:30]POST find Content-Length [21:10:30]Host: 172.17.62.5:8080 [21:10:30]Content-Length: 677 [21:10:30]Content-Type: application/json [21:10:30] [21:10:30]POST finish read [21:10:30]Found Content-Length = 677 [21:10:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [21:10:30]execute_script... [21:10:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [21:10:30]POST & json_proto [21:10:30]process_json_proto [21:10:30]json parsed OK: [21:10:30]protocol is kg_v1.0 [21:10:30]action value=close_receipt [21:10:30]process_action close_receipt [21:10:30]cmd_close_receipt [21:10:30]MH_GetDate [21:10:30]Write to MH i2c: F0 00 00 05 11 05 [21:10:30]Write i2c OK [21:10:30]MH_I2C_Read... [21:10:30]Read from MH i2c: F0 [21:10:30]MH_I2C_Read... [21:10:30]Read from MH i2c: F0 09 00 [21:10:30]MH_I2C_Read... [21:10:30]Read from MH i2c: F0 09 00 05 11 00 C8 80 25 66 F4 E9 65 64 87 [21:10:30]GetLastDocTimeStamp 1713733399 [21:10:30]current date 1713733832 [21:10:30]FM_GetShiftState [21:10:30]SAM_PROTO_GetShiftState [21:10:30]wFMCommunicate request_size=4 [21:10:30]MH_SAM_APDU [21:10:30]CAPDU: 80 13 01 00 [21:10:30]Write to MH i2c: E2 08 00 06 11 80 13 01 00 00 00 00 00 94 [21:10:30]Write i2c OK [21:10:30]MH_I2C_Read... [21:10:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:10:30]Read from MH i2c: E2 [21:10:30]MH_I2C_Read... [21:10:30]Read from MH i2c: E2 0E 00 [21:10:30]MH_I2C_Read... [21:10:30]Read from MH i2c: E2 0E 00 06 11 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 DB [21:10:30]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:10:30]wFMCommunicate OK [21:10:30]SAM_PROTO_GetShiftState done [21:10:30]FM_GetShiftState done [21:10:30]opened in 1713658965 [21:10:30]opened+sec_in_day 1713745365 [21:10:30]quantity*price = 50009 [21:10:30]sum+1 = 50010 [21:10:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 203 21.04.2024 21:10 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76947 ФПД: 21262245312910 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T211032&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76947&fm=21262245312910&tin=02508201610067®Number=0000000000091573&sum=50000 [21:10:31]StoreToDocumentArchive [21:10:31]shift 372 fd 76947 [21:10:31]save to /storage/0372/doc_00076947 [21:10:31]save last doc name /storage/0372/doc_00076947 to /storage/kkm_last_doc_name [21:10:31]save OK [21:10:31]Clear old archive folders... [21:10:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:10:31]tlvbuf is 00CC0AB0 [21:10:31]SAM_PROTO_ClearQueue [21:10:31]wFMCommunicate request_size=4 [21:10:31]MH_SAM_APDU [21:10:31]CAPDU: 80 09 00 00 [21:10:31]Write to MH i2c: E2 08 00 13 11 80 09 00 00 00 00 00 00 96 [21:10:31]Write i2c OK [21:10:31]MH_I2C_Read... [21:10:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:10:31]Read from MH i2c: E2 [21:10:31]MH_I2C_Read... [21:10:31]Read from MH i2c: E2 03 00 [21:10:31]MH_I2C_Read... [21:10:31]Read from MH i2c: E2 03 00 13 11 00 90 00 98 [21:10:31]RAPDU: 90 00 [21:10:31]wFMCommunicate OK [21:10:31]SAM_PROTO_ClearQueue done [21:10:31]KKMCreateOFDPacket [21:10:31]OFDProtocolAddRootSTLVToBuf [21:10:31]FM_MakeSignedData [21:10:31]FM_MakeSignedData [21:10:31]SAM_PROTO_SignData [21:10:31]wFMCommunicate request_size=4 [21:10:31]MH_SAM_APDU [21:10:31]CAPDU: 80 0D 01 02 [21:10:31]Write to MH i2c: E2 08 00 14 11 80 0D 01 02 00 00 00 00 9E [21:10:31]Write i2c OK [21:10:31]MH_I2C_Read... [21:10:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:10:32]Read from MH i2c: E2 [21:10:32]MH_I2C_Read... [21:10:32]Read from MH i2c: E2 03 00 [21:10:32]MH_I2C_Read... [21:10:32]Read from MH i2c: E2 03 00 14 11 00 90 00 99 [21:10:32]RAPDU: 90 00 [21:10:32]wFMCommunicate OK [21:10:32]wFMCommunicate request_size=255 [21:10:32]MH_SAM_APDU [21:10: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 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 CB 00 00 00 F4 03 04 00 C8 80 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 93 2C 01 00 35 04 06 00 13 [21:10:32]Write to MH i2c: E2 02 01 15 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 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 CB 00 00 00 F4 03 04 00 C8 80 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 93 2C 01 00 35 04 06 00 13 00 00 DF [21:10:32]Write i2c OK [21:10:32]MH_I2C_Read... [21:10:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:10:32]Read from MH i2c: E2 [21:10:32]MH_I2C_Read... [21:10:32]Read from MH i2c: E2 03 00 [21:10:32]MH_I2C_Read... [21:10:32]Read from MH i2c: E2 03 00 15 11 00 90 00 9A [21:10:32]RAPDU: 90 00 [21:10:32]wFMCommunicate OK [21:10:32]wFMCommunicate request_size=10 [21:10:32]MH_SAM_APDU [21:10:32]CAPDU: 80 0D 02 02 05 56 80 94 39 8E [21:10:32]Write to MH i2c: E2 0D 00 16 11 80 0D 02 02 05 00 56 80 94 39 8E 00 00 DC [21:10:32]Write i2c OK [21:10:32]MH_I2C_Read... [21:10:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:10:32]Read from MH i2c: E2 [21:10:32]MH_I2C_Read... [21:10:32]Read from MH i2c: E2 03 00 [21:10:32]MH_I2C_Read... [21:10:32]Read from MH i2c: E2 03 00 16 11 00 90 00 9B [21:10:32]RAPDU: 90 00 [21:10:32]wFMCommunicate OK [21:10:32]wFMCommunicate request_size=4 [21:10:32]MH_SAM_APDU [21:10:32]CAPDU: 80 0D 03 02 [21:10:32]Write to MH i2c: E2 08 00 17 11 80 0D 03 02 00 00 00 00 A3 [21:10:32]Write i2c OK [21:10:32]MH_I2C_Read... [21:10:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:10:32]Read from MH i2c: E2 [21:10:32]MH_I2C_Read... [21:10:32]Read from MH i2c: E2 0B 00 [21:10:32]MH_I2C_Read... [21:10:32]Read from MH i2c: E2 0B 00 17 11 00 47 D1 3C FE A5 89 64 93 90 00 1B [21:10:32]RAPDU: 47 D1 3C FE A5 89 64 93 90 00 [21:10:32]wFMCommunicate OK [21:10:32]SAM_PROTO_SignData done [21:10:32]FM_MakeSignedData done [21:10:32]CreateOFDProtocolMessage [21:10:32]wFMCommunicate request_size=4 [21:10:32]MH_SAM_APDU [21:10:32]CAPDU: 80 11 00 00 [21:10:32]Write to MH i2c: E2 08 00 18 11 80 11 00 00 00 00 00 00 A3 [21:10:32]Write i2c OK [21:10:32]MH_I2C_Read... [21:10:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:10:32]Read from MH i2c: E2 [21:10:32]MH_I2C_Read... [21:10:32]Read from MH i2c: E2 17 00 [21:10:32]MH_I2C_Read... [21:10:32]Read from MH i2c: E2 17 00 18 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F6 [21:10:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:10:32]wFMCommunicate OK [21:10:32]CreateOFDProtocolMessage done [21:10:32]OFDSenderStorePacket 76947 [21:10:32]StoreOFDPacket docnum=76947 [21:10:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 49 23 07 01 42 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 CB 00 00 00 F4 03 04 00 C8 80 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 93 2C 01 00 35 04 06 00 13 56 80 94 39 8E 47 D1 3C FE A5 89 64 93 [21:10:32]CheckFolder [21:10:32]dirname=/storage/ofd_packets [21:10:32]CheckFolder done [21:10:32]ProducePacketName [21:10:32]name=ofd_packets/00076947 [21:10:32]NVStorageSaveData ofd_packets/00076947 [21:10:32]File name is /storage/ofd_packets/00076947 [21:10:32]Write 301 bytes [21:10:32]NVStorageSaveData done [21:10:32]OFDSenderStorePacket done [21:10:32]KKMCreateOFDPacket done [21:10:32]NVStorageSaveData kkm_last_timestamp [21:10:32]File name is /storage/kkm_last_timestamp [21:10:32]Write 4 bytes [21:10:32]NVStorageSaveData done [21:10:32]ExternCall_PrintAddStr [21:10:32]wPrintStart [21:10:32]Write to MH i2c: 01 00 00 19 11 2A [21:10:32]Write i2c OK [21:10:32]MH_I2C_Read... [21:10:32]Read from MH i2c: 01 [21:10:32]MH_I2C_Read... [21:10:32]Read from MH i2c: 01 07 00 [21:10:32]MH_I2C_Read... [21:10:32]Read from MH i2c: 01 07 00 19 11 00 00 00 00 00 FF 0F 3F [21:10:32]RasterBufferAndPrint [21:10:32]line Счет N : (1)191495 [21:10:32]line ИНН: 02508201610067 [21:10:32]line Контрольно-Кассовый Чек [21:10:32]line ПРОДАЖА [21:10:32]line ТРК (МРК, ГНК) : 42 [21:10:32]line Товар: 2710124500 [21:10:32]line Аи-95-К-5 [21:10:32]line 6.860 * 72.90 [21:10:32]line = 500.09 [21:10:32]line НДС 12% НСП 1% [21:10:32]line > о реализуемом товаре [21:10:32]line ОКРУГЛЕНИЕ: -0.09 [21:10:32]line ИТОГО: 500.00 [21:10:32]line Внесено: 500.00 [21:10:32]line СДАЧА: 0.00 [21:10:32]line НСП 1% : 4.43 [21:10:32]line НДС 12% : 53.11 [21:10:32]line Наличными: 500.00 [21:10:32]line Безнал.: 0.00 [21:10:32]line Место: АЗС № 106 "Партнер Нефть" [21:10:32]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [21:10:32]line СНО: Общий режим [21:10:32]line Чек 203 21.04.2024 21:10 [21:10:32]line Смена: 372 ФФД: 1.0 [21:10:32]line ЗНМ: 0300000141 [21:10:32]line РНМ: 0000000000091573 [21:10:32]line Версия ККМ: 001 [21:10:32]line ФМ: 0000000000874652 [21:10:32]line ФД: 76947 [21:10:32]line ФПД: 21262245312910 [21:10:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T211032&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76947&fm=21262245312910&tin=02508201610067®Number=0000000000091573&sum=50000 [21:10:32]written 0, free lines is 4095 [21:10:32]OFD Sender: Processing packet 76947 [packets to send 129, broken 128] [21:10:32]ProducePacketName [21:10:32]name=ofd_packets/00076947 [21:10:32]OFD Sender: To server: pG, [21:10:32]CommunicateWithHost lk.salyk.kg:30040 [21:10:32]ConnectInit lk.salyk.kg [21:10:32]Connected sock=9 [21:10:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 49 23 07 01 42 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 CB 00 00 00 F4 03 04 00 C8 80 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 93 2C 01 00 35 04 06 00 13 56 80 94 39 8E 47 D1 3C FE A5 89 64 93 [21:10:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 66 F3 47 00 33 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 93 2C 01 00 F4 03 04 00 4C 28 25 66 B6 04 01 00 00 75 CA 46 CE 00 B9 ED E2 [21:10:33]CommunicateWithHost err = 0 [21:10:33]CheckOFDResponse [21:10:33]1017 (14) - 77093643461234 [21:10:33]1041 (16) - 0000000000874652 [21:10:33]1040 (4) - 76947 [21:10:33]1012 (4) - 21.04.2024 14:53 [21:10:33]1206 (1) - 0 [21:10:33]OFD Sender: Remove packet 76947 [21:10:33]ProducePacketName [21:10:33]name=ofd_packets/00076947 [21:10:33]NVStorageDeleteData [21:10:33]Write to MH i2c: 01 00 00 43 11 54 [21:10:33]Write i2c OK [21:10:33]MH_I2C_Read... [21:10:33]Read from MH i2c: 01 [21:10:33]MH_I2C_Read... [21:10:33]Read from MH i2c: 01 07 00 [21:10:33]MH_I2C_Read... [21:10:33]Read from MH i2c: 01 07 00 43 11 00 00 00 00 00 FA 0C 61 [21:10:33]RasterBufferAndPrint [21:10:33]line [21:10:33]line [21:10:33]line [21:10:33]line [21:10:33]line [21:10:33]written 0, free lines is 3328 [21:10:33]MH_Cut [21:10:33]Write to MH i2c: D1 01 00 4A 11 01 2D [21:10:33]Write i2c OK [21:10:33]MH_I2C_Read... [21:10:33]Read from MH i2c: D1 [21:10:33]MH_I2C_Read... [21:10:33]Read from MH i2c: D1 01 00 [21:10:33]MH_I2C_Read... [21:10:33]Read from MH i2c: D1 01 00 4A 11 00 2C [21:10:33]Write to MH i2c: 01 00 00 4B 11 5C [21:10:33]Write i2c OK [21:10:33]MH_I2C_Read... [21:10:33]OFD Sender: No OFD packet to send [21:10:33]*** Cut start [21:10:33]*** Partial cut [21:10:33]*** CUTSNS_PIN = 1 [21:10:34]*** CUTSNS_PIN = 0 [21:10:34]*** Brake cut motor [21:10:34]Read from MH i2c: 01 [21:10:34]MH_I2C_Read... [21:10:34]*** Stop cut motor [21:10:34]*** Cut end [21:10:34]Read from MH i2c: 01 07 00 [21:10:34]MH_I2C_Read... [21:10:34]Read from MH i2c: 01 07 00 4B 11 00 00 00 00 00 FF 0F 71 [21:10:34]process_action close_receipt done [21:10:34]requested_data is exist [21:10:34]produce_requested_data [21:10:34]requested_item fm.sn is exist - process it [21:10:34]wFMCommunicate request_size=4 [21:10:34]MH_SAM_APDU [21:10:34]CAPDU: 80 11 00 00 [21:10:34]Write to MH i2c: E2 08 00 4C 11 80 11 00 00 00 00 00 00 D7 [21:10:34]Write i2c OK [21:10:34]MH_I2C_Read... [21:10:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:10:34]Read from MH i2c: E2 [21:10:34]MH_I2C_Read... [21:10:34]Read from MH i2c: E2 17 00 [21:10:34]MH_I2C_Read... [21:10:34]Read from MH i2c: E2 17 00 4C 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 2A [21:10:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:10:34]wFMCommunicate OK [21:10:34]requested_item fd.num is exist - process it [21:10:34]SAM_PROTO_GetFieldsCounters [21:10:34]wFMCommunicate request_size=4 [21:10:34]MH_SAM_APDU [21:10:34]CAPDU: 80 13 00 00 [21:10:34]Write to MH i2c: E2 08 00 4D 11 80 13 00 00 00 00 00 00 DA [21:10:34]Write i2c OK [21:10:34]MH_I2C_Read... [21:10:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:10:34]Read from MH i2c: E2 [21:10:34]MH_I2C_Read... [21:10:34]Read from MH i2c: E2 62 00 [21:10:34]MH_I2C_Read... [21:10:34]Read from MH i2c: E2 62 00 4D 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 93 2C 01 00 0E 04 04 00 74 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 91 [21:10:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 93 2C 01 00 0E 04 04 00 74 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 [21:10:34]wFMCommunicate OK [21:10:34]SAM_PROTO_GetFieldsCounters done [21:10:34]requested_item shift.num is exist - process it [21:10:34]requested_item shift.opened is exist - process it [21:10:34]req_shift_opened [21:10:34]FM_GetShiftState [21:10:34]SAM_PROTO_GetShiftState [21:10:34]wFMCommunicate request_size=4 [21:10:34]MH_SAM_APDU [21:10:34]CAPDU: 80 13 01 00 [21:10:34]Write to MH i2c: E2 08 00 4E 11 80 13 01 00 00 00 00 00 DC [21:10:34]Write i2c OK [21:10:34]MH_I2C_Read... [21:10:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:10:34]Read from MH i2c: E2 [21:10:34]MH_I2C_Read... [21:10:34]Read from MH i2c: E2 0E 00 [21:10:34]MH_I2C_Read... [21:10:34]Read from MH i2c: E2 0E 00 4E 11 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 23 [21:10:34]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:10:34]wFMCommunicate OK [21:10:34]SAM_PROTO_GetShiftState done [21:10:34]FM_GetShiftState done [21:10:34]req_shift_opened done [21:10:34]requested_item shift.open_date is exist - process it [21:10:34]req_shift_open_date [21:10:34]req_shift_open_date done [21:10:34]produce_requested_data done [21:10:34]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76947,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [21:10:34]process_action_free close_receipt [21:10:34]json_value_free [21:10:34]json_value_free done [21:10:34]process_json_proto returns [21:10:34]Send response to host [21:10:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76947,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [21:10:34]free response buf [21:10:34]execute_script done [21:10:34]execute_script returns [21:10:34]free content buf [21:10:34]Sock 8.Close socket [21:10:34]Sock 8.Thread stoped [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:49]accept exits with 10 [21:12:49]New connection [21:12:49]New thread 3066944868 created [21:12:49]Thread 3066801508 joined [21:12:49]Waiting for new connection... [21:12:49] Sock 10.Parse request [21:12:49]Sock 10.Check first char [21:12:49]Sock 10.First char is OK [21:12:49]request: POST /json_proto HTTP/1.0 [21:12:49]Method: POST [21:12:49]URL: /json_proto [21:12:49]Method is POST - this is cgi request [21:12:49]url: /json_proto [21:12:49]query_string will be loaded in cgi processing [21:12:49]execute_cgi json_proto POST (null) [21:12:49]execute_cgi path=json_proto method=POST [21:12:49]POST find Content-Length [21:12:49]Host: 172.17.62.5:8080 [21:12:49]Content-Length: 978 [21:12:49]Content-Type: application/json [21:12:49] [21:12:49]POST finish read [21:12:49]Found Content-Length = 978 [21:12:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191497", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 35.750, "sum" : 2570.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 35.75 \u0441\u043E\u043C", "deposit" : 2570.00, "total" : 2570.00, "payments": [ { "type": 0, "sum" : 2570.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:12:49]execute_script... [21:12: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)191497", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 35.750, "sum" : 2570.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 35.75 \u0441\u043E\u043C", "deposit" : 2570.00, "total" : 2570.00, "payments": [ { "type": 0, "sum" : 2570.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:12:49]POST & json_proto [21:12:49]process_json_proto [21:12:49]json parsed OK: [21:12:49]protocol is kg_v1.0 [21:12:49]action value=close_receipt [21:12:49]process_action close_receipt [21:12:49]cmd_close_receipt [21:12:49]MH_GetDate [21:12:49]Write to MH i2c: F0 00 00 4F 11 4F [21:12:49]Write i2c OK [21:12:49]MH_I2C_Read... [21:12:49]Read from MH i2c: F0 [21:12:49]MH_I2C_Read... [21:12:49]Read from MH i2c: F0 09 00 [21:12:49]MH_I2C_Read... [21:12:49]Read from MH i2c: F0 09 00 4F 11 00 52 81 25 66 F4 E9 65 64 5C [21:12:49]GetLastDocTimeStamp 1713733832 [21:12:49]current date 1713733970 [21:12:49]FM_GetShiftState [21:12:49]SAM_PROTO_GetShiftState [21:12:49]wFMCommunicate request_size=4 [21:12:49]MH_SAM_APDU [21:12:49]CAPDU: 80 13 01 00 [21:12:49]Write to MH i2c: E2 08 00 50 11 80 13 01 00 00 00 00 00 DE [21:12:49]Write i2c OK [21:12:49]MH_I2C_Read... [21:12:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:12:49]Read from MH i2c: E2 [21:12:49]MH_I2C_Read... [21:12:49]Read from MH i2c: E2 0E 00 [21:12:49]MH_I2C_Read... [21:12:49]Read from MH i2c: E2 0E 00 50 11 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 25 [21:12:49]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:12:49]wFMCommunicate OK [21:12:49]SAM_PROTO_GetShiftState done [21:12:49]FM_GetShiftState done [21:12:49]opened in 1713658965 [21:12:49]opened+sec_in_day 1713745365 [21:12:49]quantity*price = 257042 [21:12:49]sum+1 = 257044 [21:12:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2570.00 Внесено: 2570.00 СДАЧА: 0.00 НСП 1% : 22.75 НДС 12% : 272.97 Наличными: 2570.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 204 21.04.2024 21:12 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 35.75 сом ФМ: 0000000000874652 ФД: 76948 ФПД: 2614846478047 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T211250&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76948&fm=2614846478047&tin=02508201610067®Number=0000000000091573&sum=257000 [21:12:50]StoreToDocumentArchive [21:12:50]shift 372 fd 76948 [21:12:50]save to /storage/0372/doc_00076948 [21:12:50]save last doc name /storage/0372/doc_00076948 to /storage/kkm_last_doc_name [21:12:50]save OK [21:12:50]Clear old archive folders... [21:12:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:12:50]tlvbuf is 00C9E4E0 [21:12:50]SAM_PROTO_ClearQueue [21:12:50]wFMCommunicate request_size=4 [21:12:50]MH_SAM_APDU [21:12:50]CAPDU: 80 09 00 00 [21:12:50]Write to MH i2c: E2 08 00 5D 11 80 09 00 00 00 00 00 00 E0 [21:12:50]Write i2c OK [21:12:50]MH_I2C_Read... [21:12:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:12:50]Read from MH i2c: E2 [21:12:50]MH_I2C_Read... [21:12:50]Read from MH i2c: E2 03 00 [21:12:50]MH_I2C_Read... [21:12:50]Read from MH i2c: E2 03 00 5D 11 00 90 00 E2 [21:12:50]RAPDU: 90 00 [21:12:50]wFMCommunicate OK [21:12:50]SAM_PROTO_ClearQueue done [21:12:50]KKMCreateOFDPacket [21:12:50]OFDProtocolAddRootSTLVToBuf [21:12:50]FM_MakeSignedData [21:12:50]FM_MakeSignedData [21:12:50]SAM_PROTO_SignData [21:12:50]wFMCommunicate request_size=4 [21:12:50]MH_SAM_APDU [21:12:50]CAPDU: 80 0D 01 02 [21:12:50]Write to MH i2c: E2 08 00 5E 11 80 0D 01 02 00 00 00 00 E8 [21:12:50]Write i2c OK [21:12:50]MH_I2C_Read... [21:12:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:12:50]Read from MH i2c: E2 [21:12:50]MH_I2C_Read... [21:12:50]Read from MH i2c: E2 03 00 [21:12:50]MH_I2C_Read... [21:12:50]Read from MH i2c: E2 03 00 5E 11 00 90 00 E3 [21:12:50]RAPDU: 90 00 [21:12:50]wFMCommunicate OK [21:12:50]wFMCommunicate request_size=255 [21:12:50]MH_SAM_APDU [21:12:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A6 8B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 13 EC 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 EB 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 6A 00 00 00 00 07 04 06 00 E8 EB 03 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 52 81 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 94 2C 01 00 35 04 06 00 02 60 D0 FE [21:12:50]Write to MH i2c: E2 02 01 5F 11 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A6 8B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 13 EC 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 EB 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 6A 00 00 00 00 07 04 06 00 E8 EB 03 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 52 81 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 94 2C 01 00 35 04 06 00 02 60 D0 FE 00 00 DC [21:12:50]Write i2c OK [21:12:50]MH_I2C_Read... [21:12:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:12:50]Read from MH i2c: E2 [21:12:50]MH_I2C_Read... [21:12:50]Read from MH i2c: E2 03 00 [21:12:50]MH_I2C_Read... [21:12:50]Read from MH i2c: E2 03 00 5F 11 00 90 00 E4 [21:12:50]RAPDU: 90 00 [21:12:50]wFMCommunicate OK [21:12:50]wFMCommunicate request_size=7 [21:12:50]MH_SAM_APDU [21:12:50]CAPDU: 80 0D 02 02 02 D6 DF [21:12:50]Write to MH i2c: E2 0A 00 60 11 80 0D 02 02 02 00 D6 DF 00 00 A4 [21:12:50]Write i2c OK [21:12:50]MH_I2C_Read... [21:12:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:12:50]Read from MH i2c: E2 [21:12:50]MH_I2C_Read... [21:12:50]Read from MH i2c: E2 03 00 [21:12:50]MH_I2C_Read... [21:12:50]Read from MH i2c: E2 03 00 60 11 00 90 00 E5 [21:12:50]RAPDU: 90 00 [21:12:50]wFMCommunicate OK [21:12:50]wFMCommunicate request_size=4 [21:12:50]MH_SAM_APDU [21:12:50]CAPDU: 80 0D 03 02 [21:12:50]Write to MH i2c: E2 08 00 61 11 80 0D 03 02 00 00 00 00 ED [21:12:50]Write i2c OK [21:12:50]MH_I2C_Read... [21:12:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:12:50]Read from MH i2c: E2 [21:12:50]MH_I2C_Read... [21:12:50]Read from MH i2c: E2 0B 00 [21:12:50]MH_I2C_Read... [21:12:50]Read from MH i2c: E2 0B 00 61 11 00 69 30 E0 61 AF 6E 39 9F 90 00 BD [21:12:50]RAPDU: 69 30 E0 61 AF 6E 39 9F 90 00 [21:12:50]wFMCommunicate OK [21:12:50]SAM_PROTO_SignData done [21:12:50]FM_MakeSignedData done [21:12:50]CreateOFDProtocolMessage [21:12:50]wFMCommunicate request_size=4 [21:12:50]MH_SAM_APDU [21:12:50]CAPDU: 80 11 00 00 [21:12:50]Write to MH i2c: E2 08 00 62 11 80 11 00 00 00 00 00 00 ED [21:12:50]Write i2c OK [21:12:50]MH_I2C_Read... [21:12:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:12:50]Read from MH i2c: E2 [21:12:50]MH_I2C_Read... [21:12:50]Read from MH i2c: E2 17 00 [21:12:50]MH_I2C_Read... [21:12:50]Read from MH i2c: E2 17 00 62 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 40 [21:12:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:12:50]wFMCommunicate OK [21:12:50]CreateOFDProtocolMessage done [21:12:50]OFDSenderStorePacket 76948 [21:12:50]StoreOFDPacket docnum=76948 [21:12:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 70 15 04 01 02 DD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A6 8B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 13 EC 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 EB 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 6A 00 00 00 00 07 04 06 00 E8 EB 03 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 52 81 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 94 2C 01 00 35 04 06 00 02 60 D0 FE D6 DF 69 30 E0 61 AF 6E 39 9F [21:12:50]CheckFolder [21:12:50]dirname=/storage/ofd_packets [21:12:50]CheckFolder done [21:12:50]ProducePacketName [21:12:50]name=ofd_packets/00076948 [21:12:50]NVStorageSaveData ofd_packets/00076948 [21:12:50]File name is /storage/ofd_packets/00076948 [21:12:50]Write 298 bytes [21:12:50]NVStorageSaveData done [21:12:50]OFDSenderStorePacket done [21:12:50]KKMCreateOFDPacket done [21:12:50]NVStorageSaveData kkm_last_timestamp [21:12:50]File name is /storage/kkm_last_timestamp [21:12:50]Write 4 bytes [21:12:50]NVStorageSaveData done [21:12:50]ExternCall_PrintAddStr [21:12:50]wPrintStart [21:12:50]Write to MH i2c: 01 00 00 63 11 74 [21:12:50]Write i2c OK [21:12:50]MH_I2C_Read... [21:12:50]Read from MH i2c: 01 [21:12:50]MH_I2C_Read... [21:12:50]Read from MH i2c: 01 07 00 [21:12:50]MH_I2C_Read... [21:12:50]Read from MH i2c: 01 07 00 63 11 00 00 00 00 00 FF 0F 89 [21:12:50]RasterBufferAndPrint [21:12:50]line Счет N : (1)191497 [21:12:50]line ИНН: 02508201610067 [21:12:50]line Контрольно-Кассовый Чек [21:12:50]line ПРОДАЖА [21:12:50]line ТРК (МРК, ГНК) : 13 [21:12:50]line Товар: 2710194210 [21:12:50]line ДТ-К-5 [21:12:50]line 35.750 * 71.90 [21:12:50]line = 2570.43 [21:12:50]line НДС 12% НСП 1% [21:12:50]line > о реализуемом товаре [21:12:50]line ОКРУГЛЕНИЕ: -0.43 [21:12:50]line ИТОГО: 2570.00 [21:12:50]line Внесено: 2570.00 [21:12:50]line СДАЧА: 0.00 [21:12:50]line НСП 1% : 22.75 [21:12:50]line НДС 12% : 272.97 [21:12:50]line Наличными: 2570.00 [21:12:50]line Безнал.: 0.00 [21:12:50]line Место: АЗС № 106 "Партнер Нефть" [21:12:50]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [21:12:50]line СНО: Общий режим [21:12:50]line Чек 204 21.04.2024 21:12 [21:12:50]line Смена: 372 ФФД: 1.0 [21:12:50]line ЗНМ: 0300000141 [21:12:50]line РНМ: 0000000000091573 [21:12:50]line Версия ККМ: 001 [21:12:50]line [21:12:50]line Дисконтная программа [21:12:50]line ДТ [21:12:50]line номер 106 [21:12:50]line сэкономлено 35.75 сом [21:12:50]line ФМ: 0000000000874652 [21:12:50]line ФД: 76948 [21:12:50]line ФПД: 2614846478047 [21:12:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T211250&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76948&fm=2614846478047&tin=02508201610067®Number=0000000000091573&sum=257000 [21:12:51]OFD Sender: Processing packet 76948 [packets to send 129, broken 128] [21:12:51]ProducePacketName [21:12:51]name=ofd_packets/00076948 [21:12:51]OFD Sender: To server: pG, [21:12:51]CommunicateWithHost lk.salyk.kg:30040 [21:12:51]ConnectInit lk.salyk.kg [21:12:51]written 0, free lines is 4095 [21:12:51]Connected sock=9 [21:12:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 70 15 04 01 02 DD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A6 8B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 13 EC 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 EB 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 6A 00 00 00 00 07 04 06 00 E8 EB 03 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 52 81 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 94 2C 01 00 35 04 06 00 02 60 D0 FE D6 DF 69 30 E0 61 AF 6E 39 9F [21:12:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 87 F6 47 00 BD 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 34 36 35 32 10 04 04 00 94 2C 01 00 F4 03 04 00 D6 28 25 66 B6 04 01 00 00 7D 91 C8 88 88 B8 44 56 [21:12:51]CommunicateWithHost err = 0 [21:12:51]CheckOFDResponse [21:12:51]1017 (14) - 77093643461234 [21:12:51]1041 (16) - 0000000000874652 [21:12:51]1040 (4) - 76948 [21:12:51]1012 (4) - 21.04.2024 14:55 [21:12:51]1206 (1) - 0 [21:12:51]OFD Sender: Remove packet 76948 [21:12:51]ProducePacketName [21:12:51]name=ofd_packets/00076948 [21:12:51]NVStorageDeleteData [21:12:51]Write to MH i2c: 01 00 00 92 11 A3 [21:12:51]Write i2c OK [21:12:51]MH_I2C_Read... [21:12:51]Read from MH i2c: 01 [21:12:51]MH_I2C_Read... [21:12:51]Read from MH i2c: 01 07 00 [21:12:51]MH_I2C_Read... [21:12:51]Read from MH i2c: 01 07 00 92 11 00 00 00 00 00 93 0C 49 [21:12:51]RasterBufferAndPrint [21:12:51]line [21:12:51]line [21:12:51]line [21:12:51]line [21:12:51]line [21:12:51]written 0, free lines is 3225 [21:12:51]MH_Cut [21:12:51]Write to MH i2c: D1 01 00 99 11 01 7C [21:12:51]Write i2c OK [21:12:51]MH_I2C_Read... [21:12:51]Read from MH i2c: D1 [21:12:51]MH_I2C_Read... [21:12:51]Read from MH i2c: D1 01 00 [21:12:51]MH_I2C_Read... [21:12:51]Read from MH i2c: D1 01 00 99 11 00 7B [21:12:51]Write to MH i2c: 01 00 00 9A 11 AB [21:12:51]Write i2c OK [21:12:51]MH_I2C_Read... [21:12:52]OFD Sender: No OFD packet to send [21:12:52]*** Cut start [21:12:52]*** Partial cut [21:12:52]*** CUTSNS_PIN = 1 [21:12:52]*** CUTSNS_PIN = 0 [21:12:52]*** Brake cut motor [21:12:53]Read from MH i2c: 01 [21:12:53]MH_I2C_Read... [21:12:53]*** Stop cut motor [21:12:53]*** Cut end [21:12:53]Read from MH i2c: 01 07 00 [21:12:53]MH_I2C_Read... [21:12:53]Read from MH i2c: 01 07 00 9A 11 00 00 00 00 00 FF 0F C0 [21:12:53]process_action close_receipt done [21:12:53]requested_data is exist [21:12:53]produce_requested_data [21:12:53]requested_item fm.sn is exist - process it [21:12:53]wFMCommunicate request_size=4 [21:12:53]MH_SAM_APDU [21:12:53]CAPDU: 80 11 00 00 [21:12:53]Write to MH i2c: E2 08 00 9B 11 80 11 00 00 00 00 00 00 26 [21:12:53]Write i2c OK [21:12:53]MH_I2C_Read... [21:12:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:12:53]Read from MH i2c: E2 [21:12:53]MH_I2C_Read... [21:12:53]Read from MH i2c: E2 17 00 [21:12:53]MH_I2C_Read... [21:12:53]Read from MH i2c: E2 17 00 9B 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 79 [21:12:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:12:53]wFMCommunicate OK [21:12:53]requested_item fd.num is exist - process it [21:12:53]SAM_PROTO_GetFieldsCounters [21:12:53]wFMCommunicate request_size=4 [21:12:53]MH_SAM_APDU [21:12:53]CAPDU: 80 13 00 00 [21:12:53]Write to MH i2c: E2 08 00 9C 11 80 13 00 00 00 00 00 00 29 [21:12:53]Write i2c OK [21:12:53]MH_I2C_Read... [21:12:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:12:53]Read from MH i2c: E2 [21:12:53]MH_I2C_Read... [21:12:53]Read from MH i2c: E2 62 00 [21:12:53]MH_I2C_Read... [21:12:53]Read from MH i2c: E2 62 00 9C 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 94 2C 01 00 0E 04 04 00 74 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 E4 [21:12: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 94 2C 01 00 0E 04 04 00 74 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 [21:12:53]wFMCommunicate OK [21:12:53]SAM_PROTO_GetFieldsCounters done [21:12:53]requested_item shift.num is exist - process it [21:12:53]requested_item shift.opened is exist - process it [21:12:53]req_shift_opened [21:12:53]FM_GetShiftState [21:12:53]SAM_PROTO_GetShiftState [21:12:53]wFMCommunicate request_size=4 [21:12:53]MH_SAM_APDU [21:12:53]CAPDU: 80 13 01 00 [21:12:53]Write to MH i2c: E2 08 00 9D 11 80 13 01 00 00 00 00 00 2B [21:12:53]Write i2c OK [21:12:53]MH_I2C_Read... [21:12:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:12:53]Read from MH i2c: E2 [21:12:53]MH_I2C_Read... [21:12:53]Read from MH i2c: E2 0E 00 [21:12:53]MH_I2C_Read... [21:12:53]Read from MH i2c: E2 0E 00 9D 11 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 72 [21:12:53]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:12:53]wFMCommunicate OK [21:12:53]SAM_PROTO_GetShiftState done [21:12:53]FM_GetShiftState done [21:12:53]req_shift_opened done [21:12:53]requested_item shift.open_date is exist - process it [21:12:53]req_shift_open_date [21:12:53]req_shift_open_date done [21:12:53]produce_requested_data done [21:12:53]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76948,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [21:12:53]process_action_free close_receipt [21:12:53]json_value_free [21:12:53]json_value_free done [21:12:53]process_json_proto returns [21:12:53]Send response to host [21:12:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76948,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [21:12:53]free response buf [21:12:53]execute_script done [21:12:53]execute_script returns [21:12:53]free content buf [21:12:53]Sock 10.Close socket [21:12:53]Sock 10.Thread stoped [21:12:57]OFD Sender: No OFD packet to send [21:12:59]accept exits with 8 [21:12:59]New connection [21:12:59]New thread 3066801508 created [21:12:59]Thread 3066944868 joined [21:12:59]Waiting for new connection... [21:12:59] Sock 8.Parse request [21:12:59]Sock 8.Check first char [21:12:59]Sock 8.First char is OK [21:12:59]request: POST /json_proto HTTP/1.0 [21:12:59]Method: POST [21:12:59]URL: /json_proto [21:12:59]Method is POST - this is cgi request [21:12:59]url: /json_proto [21:12:59]query_string will be loaded in cgi processing [21:12:59]execute_cgi json_proto POST (null) [21:12:59]execute_cgi path=json_proto method=POST [21:12:59]POST find Content-Length [21:12:59]Host: 172.17.62.5:8080 [21:12:59]Content-Length: 978 [21:12:59]Content-Type: application/json [21:12:59] [21:12:59]POST finish read [21:12:59]Found Content-Length = 978 [21:12:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 27.82 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:12:59]execute_script... [21:12: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)191498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 27.82 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:12:59]POST & json_proto [21:12:59]process_json_proto [21:12:59]json parsed OK: [21:12:59]protocol is kg_v1.0 [21:12:59]action value=close_receipt [21:12:59]process_action close_receipt [21:12:59]cmd_close_receipt [21:12:59]MH_GetDate [21:12:59]Write to MH i2c: F0 00 00 9E 11 9E [21:12:59]Write i2c OK [21:12:59]MH_I2C_Read... [21:12:59]Read from MH i2c: F0 [21:12:59]MH_I2C_Read... [21:12:59]Read from MH i2c: F0 09 00 [21:12:59]MH_I2C_Read... [21:12:59]Read from MH i2c: F0 09 00 9E 11 00 5D 81 25 66 F4 E9 65 64 B6 [21:12:59]GetLastDocTimeStamp 1713733970 [21:12:59]current date 1713733981 [21:12:59]FM_GetShiftState [21:12:59]SAM_PROTO_GetShiftState [21:12:59]wFMCommunicate request_size=4 [21:12:59]MH_SAM_APDU [21:12:59]CAPDU: 80 13 01 00 [21:12:59]Write to MH i2c: E2 08 00 9F 11 80 13 01 00 00 00 00 00 2D [21:12:59]Write i2c OK [21:12:59]MH_I2C_Read... [21:12:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:12:59]Read from MH i2c: E2 [21:12:59]MH_I2C_Read... [21:12:59]Read from MH i2c: E2 0E 00 [21:12:59]MH_I2C_Read... [21:12:59]Read from MH i2c: E2 0E 00 9F 11 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 74 [21:12:59]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:12:59]wFMCommunicate OK [21:12:59]SAM_PROTO_GetShiftState done [21:12:59]FM_GetShiftState done [21:12:59]opened in 1713658965 [21:12:59]opened+sec_in_day 1713745365 [21:12:59]quantity*price = 200025 [21:12:59]sum+1 = 200027 [21:12:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 205 21.04.2024 21:13 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 27.82 сом ФМ: 0000000000874652 ФД: 76949 ФПД: 200937013434618 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T211301&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76949&fm=200937013434618&tin=02508201610067®Number=0000000000091573&sum=200000 [21:13:00]StoreToDocumentArchive [21:13:00]shift 372 fd 76949 [21:13:00]save to /storage/0372/doc_00076949 [21:13:00]save last doc name /storage/0372/doc_00076949 to /storage/kkm_last_doc_name [21:13:00]save OK [21:13:00]Clear old archive folders... [21:13:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:13:01]tlvbuf is 00CC7AB0 [21:13:01]SAM_PROTO_ClearQueue [21:13:01]wFMCommunicate request_size=4 [21:13:01]MH_SAM_APDU [21:13:01]CAPDU: 80 09 00 00 [21:13:01]Write to MH i2c: E2 08 00 AC 11 80 09 00 00 00 00 00 00 2F [21:13:01]Write i2c OK [21:13:01]MH_I2C_Read... [21:13:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:13:01]Read from MH i2c: E2 [21:13:01]MH_I2C_Read... [21:13:01]Read from MH i2c: E2 03 00 [21:13:01]MH_I2C_Read... [21:13:01]Read from MH i2c: E2 03 00 AC 11 00 90 00 31 [21:13:01]RAPDU: 90 00 [21:13:01]wFMCommunicate OK [21:13:01]SAM_PROTO_ClearQueue done [21:13:01]KKMCreateOFDPacket [21:13:01]OFDProtocolAddRootSTLVToBuf [21:13:01]FM_MakeSignedData [21:13:01]FM_MakeSignedData [21:13:01]SAM_PROTO_SignData [21:13:01]wFMCommunicate request_size=4 [21:13:01]MH_SAM_APDU [21:13:01]CAPDU: 80 0D 01 02 [21:13:01]Write to MH i2c: E2 08 00 AD 11 80 0D 01 02 00 00 00 00 37 [21:13:01]Write i2c OK [21:13:01]MH_I2C_Read... [21:13:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:13:01]Read from MH i2c: E2 [21:13:01]MH_I2C_Read... [21:13:01]Read from MH i2c: E2 03 00 [21:13:01]MH_I2C_Read... [21:13:01]Read from MH i2c: E2 03 00 AD 11 00 90 00 32 [21:13:01]RAPDU: 90 00 [21:13:01]wFMCommunicate OK [21:13:01]wFMCommunicate request_size=255 [21:13:01]MH_SAM_APDU [21:13:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 5D 81 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 95 2C 01 00 35 04 06 00 B6 C0 4B 4E [21:13:01]Write to MH i2c: E2 02 01 AE 11 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 5D 81 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 95 2C 01 00 35 04 06 00 B6 C0 4B 4E 00 00 A0 [21:13:01]Write i2c OK [21:13:01]MH_I2C_Read... [21:13:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:13:01]Read from MH i2c: E2 [21:13:01]MH_I2C_Read... [21:13:01]Read from MH i2c: E2 03 00 [21:13:01]MH_I2C_Read... [21:13:01]Read from MH i2c: E2 03 00 AE 11 00 90 00 33 [21:13:01]RAPDU: 90 00 [21:13:01]wFMCommunicate OK [21:13:01]wFMCommunicate request_size=7 [21:13:01]MH_SAM_APDU [21:13:01]CAPDU: 80 0D 02 02 02 D8 FA [21:13:01]Write to MH i2c: E2 0A 00 AF 11 80 0D 02 02 02 00 D8 FA 00 00 10 [21:13:01]Write i2c OK [21:13:01]MH_I2C_Read... [21:13:01]Read from MH i2c: E2 [21:13:01]MH_I2C_Read... [21:13:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:13:01]Read from MH i2c: E2 03 00 [21:13:01]MH_I2C_Read... [21:13:01]Read from MH i2c: E2 03 00 AF 11 00 90 00 34 [21:13:01]RAPDU: 90 00 [21:13:01]wFMCommunicate OK [21:13:01]wFMCommunicate request_size=4 [21:13:01]MH_SAM_APDU [21:13:01]CAPDU: 80 0D 03 02 [21:13:01]Write to MH i2c: E2 08 00 B0 11 80 0D 03 02 00 00 00 00 3C [21:13:01]Write i2c OK [21:13:01]MH_I2C_Read... [21:13:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:13:01]Read from MH i2c: E2 [21:13:01]MH_I2C_Read... [21:13:01]Read from MH i2c: E2 0B 00 [21:13:01]MH_I2C_Read... [21:13:01]Read from MH i2c: E2 0B 00 B0 11 00 93 82 F7 EE E7 54 35 59 90 00 00 [21:13:01]RAPDU: 93 82 F7 EE E7 54 35 59 90 00 [21:13:01]wFMCommunicate OK [21:13:01]SAM_PROTO_SignData done [21:13:01]FM_MakeSignedData done [21:13:01]CreateOFDProtocolMessage [21:13:01]wFMCommunicate request_size=4 [21:13:01]MH_SAM_APDU [21:13:01]CAPDU: 80 11 00 00 [21:13:01]Write to MH i2c: E2 08 00 B1 11 80 11 00 00 00 00 00 00 3C [21:13:01]Write i2c OK [21:13:01]MH_I2C_Read... [21:13:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:13:01]Read from MH i2c: E2 [21:13:01]MH_I2C_Read... [21:13:01]Read from MH i2c: E2 17 00 [21:13:01]MH_I2C_Read... [21:13:01]Read from MH i2c: E2 17 00 B1 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 8F [21:13:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:13:01]wFMCommunicate OK [21:13:01]CreateOFDProtocolMessage done [21:13:01]OFDSenderStorePacket 76949 [21:13:01]StoreOFDPacket docnum=76949 [21:13:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 F2 B3 04 01 00 17 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 5D 81 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 95 2C 01 00 35 04 06 00 B6 C0 4B 4E D8 FA 93 82 F7 EE E7 54 35 59 [21:13:01]CheckFolder [21:13:01]dirname=/storage/ofd_packets [21:13:01]CheckFolder done [21:13:01]ProducePacketName [21:13:01]name=ofd_packets/00076949 [21:13:01]NVStorageSaveData ofd_packets/00076949 [21:13:01]File name is /storage/ofd_packets/00076949 [21:13:01]Write 298 bytes [21:13:01]NVStorageSaveData done [21:13:01]OFDSenderStorePacket done [21:13:01]KKMCreateOFDPacket done [21:13:01]NVStorageSaveData kkm_last_timestamp [21:13:01]File name is /storage/kkm_last_timestamp [21:13:01]Write 4 bytes [21:13:01]NVStorageSaveData done [21:13:01]ExternCall_PrintAddStr [21:13:01]wPrintStart [21:13:01]Write to MH i2c: 01 00 00 B2 11 C3 [21:13:01]Write i2c OK [21:13:01]MH_I2C_Read... [21:13:01]Read from MH i2c: 01 [21:13:01]MH_I2C_Read... [21:13:01]Read from MH i2c: 01 07 00 [21:13:01]MH_I2C_Read... [21:13:01]Read from MH i2c: 01 07 00 B2 11 00 00 00 00 00 FF 0F D8 [21:13:01]RasterBufferAndPrint [21:13:01]line Счет N : (1)191498 [21:13:01]line ИНН: 02508201610067 [21:13:01]line Контрольно-Кассовый Чек [21:13:01]line ПРОДАЖА [21:13:01]line ТРК (МРК, ГНК) : 61 [21:13:01]line Товар: 2710194210 [21:13:01]line ДТ-К-5 [21:13:01]line 27.820 * 71.90 [21:13:01]line = 2000.26 [21:13:01]line НДС 12% НСП 1% [21:13:01]line > о реализуемом товаре [21:13:01]line ОКРУГЛЕНИЕ: -0.26 [21:13:01]line ИТОГО: 2000.00 [21:13:01]line Внесено: 2000.00 [21:13:01]line СДАЧА: 0.00 [21:13:01]line НСП 1% : 17.70 [21:13:01]line НДС 12% : 212.42 [21:13:01]line Наличными: 2000.00 [21:13:01]line Безнал.: 0.00 [21:13:01]line Место: АЗС № 106 "Партнер Нефть" [21:13:01]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [21:13:01]line СНО: Общий режим [21:13:01]line Чек 205 21.04.2024 21:13 [21:13:01]line Смена: 372 ФФД: 1.0 [21:13:01]line ЗНМ: 0300000141 [21:13:01]line РНМ: 0000000000091573 [21:13:01]line Версия ККМ: 001 [21:13:01]line [21:13:01]line Дисконтная программа [21:13:01]line ДТ [21:13:01]line номер 106 [21:13:01]line сэкономлено 27.82 сом [21:13:01]line ФМ: 0000000000874652 [21:13:01]line ФД: 76949 [21:13:01]line ФПД: 200937013434618 [21:13:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T211301&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76949&fm=200937013434618&tin=02508201610067®Number=0000000000091573&sum=200000 [21:13:01]OFD Sender: Processing packet 76949 [packets to send 129, broken 128] [21:13:01]ProducePacketName [21:13:01]name=ofd_packets/00076949 [21:13:01]OFD Sender: To server: pG, [21:13:01]CommunicateWithHost lk.salyk.kg:30040 [21:13:01]ConnectInit lk.salyk.kg [21:13:01]written 0, free lines is 4095 [21:13:01]Connected sock=10 [21:13:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 F2 B3 04 01 00 17 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 5D 81 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 95 2C 01 00 35 04 06 00 B6 C0 4B 4E D8 FA 93 82 F7 EE E7 54 35 59 [21:13:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 AE E9 47 00 E4 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 34 36 35 32 10 04 04 00 95 2C 01 00 F4 03 04 00 E1 28 25 66 B6 04 01 00 00 F9 2E F4 70 E5 2C DF E4 [21:13:01]CommunicateWithHost err = 0 [21:13:01]CheckOFDResponse [21:13:01]1017 (14) - 77093643461234 [21:13:01]1041 (16) - 0000000000874652 [21:13:01]1040 (4) - 76949 [21:13:01]1012 (4) - 21.04.2024 14:55 [21:13:01]1206 (1) - 0 [21:13:01]OFD Sender: Remove packet 76949 [21:13:01]ProducePacketName [21:13:01]name=ofd_packets/00076949 [21:13:01]NVStorageDeleteData [21:13:02]Write to MH i2c: 01 00 00 E1 11 F2 [21:13:02]Write i2c OK [21:13:02]MH_I2C_Read... [21:13:02]Read from MH i2c: 01 [21:13:02]MH_I2C_Read... [21:13:02]Read from MH i2c: 01 07 00 [21:13:02]MH_I2C_Read... [21:13:02]Read from MH i2c: 01 07 00 E1 11 00 00 00 00 00 97 0C 9C [21:13:02]RasterBufferAndPrint [21:13:02]line [21:13:02]line [21:13:02]line [21:13:02]line [21:13:02]line [21:13:02]written 0, free lines is 3234 [21:13:02]MH_Cut [21:13:02]Write to MH i2c: D1 01 00 E8 11 01 CB [21:13:02]Write i2c OK [21:13:02]MH_I2C_Read... [21:13:02]Read from MH i2c: D1 [21:13:02]MH_I2C_Read... [21:13:02]Read from MH i2c: D1 01 00 [21:13:02]MH_I2C_Read... [21:13:02]Read from MH i2c: D1 01 00 E8 11 00 CA [21:13:02]Write to MH i2c: 01 00 00 E9 11 FA [21:13:02]Write i2c OK [21:13:02]MH_I2C_Read... [21:13:02]OFD Sender: No OFD packet to send [21:13:02]*** Cut start [21:13:02]*** Partial cut [21:13:02]*** CUTSNS_PIN = 1 [21:13:02]*** CUTSNS_PIN = 0 [21:13:03]*** Brake cut motor [21:13:03]Read from MH i2c: 01 [21:13:03]MH_I2C_Read... [21:13:03]*** Stop cut motor [21:13:03]*** Cut end [21:13:03]Read from MH i2c: 01 07 00 [21:13:03]MH_I2C_Read... [21:13:03]Read from MH i2c: 01 07 00 E9 11 00 00 00 00 00 FF 0F 0F [21:13:03]process_action close_receipt done [21:13:03]requested_data is exist [21:13:03]produce_requested_data [21:13:03]requested_item fm.sn is exist - process it [21:13:03]wFMCommunicate request_size=4 [21:13:03]MH_SAM_APDU [21:13:03]CAPDU: 80 11 00 00 [21:13:03]Write to MH i2c: E2 08 00 EA 11 80 11 00 00 00 00 00 00 75 [21:13:03]Write i2c OK [21:13:03]MH_I2C_Read... [21:13:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:13:03]Read from MH i2c: E2 [21:13:03]MH_I2C_Read... [21:13:03]Read from MH i2c: E2 17 00 [21:13:03]MH_I2C_Read... [21:13:03]Read from MH i2c: E2 17 00 EA 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 C8 [21:13:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:13:03]wFMCommunicate OK [21:13:03]requested_item fd.num is exist - process it [21:13:03]SAM_PROTO_GetFieldsCounters [21:13:03]wFMCommunicate request_size=4 [21:13:03]MH_SAM_APDU [21:13:03]CAPDU: 80 13 00 00 [21:13:03]Write to MH i2c: E2 08 00 EB 11 80 13 00 00 00 00 00 00 78 [21:13:03]Write i2c OK [21:13:03]MH_I2C_Read... [21:13:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:13:03]Read from MH i2c: E2 [21:13:03]MH_I2C_Read... [21:13:03]Read from MH i2c: E2 62 00 [21:13:03]MH_I2C_Read... [21:13:03]Read from MH i2c: E2 62 00 EB 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 95 2C 01 00 0E 04 04 00 74 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 37 [21:13: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 95 2C 01 00 0E 04 04 00 74 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 [21:13:03]wFMCommunicate OK [21:13:03]SAM_PROTO_GetFieldsCounters done [21:13:03]requested_item shift.num is exist - process it [21:13:03]requested_item shift.opened is exist - process it [21:13:03]req_shift_opened [21:13:03]FM_GetShiftState [21:13:03]SAM_PROTO_GetShiftState [21:13:03]wFMCommunicate request_size=4 [21:13:03]MH_SAM_APDU [21:13:03]CAPDU: 80 13 01 00 [21:13:03]Write to MH i2c: E2 08 00 EC 11 80 13 01 00 00 00 00 00 7A [21:13:03]Write i2c OK [21:13:03]MH_I2C_Read... [21:13:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:13:03]Read from MH i2c: E2 [21:13:03]MH_I2C_Read... [21:13:03]Read from MH i2c: E2 0E 00 [21:13:03]MH_I2C_Read... [21:13:03]Read from MH i2c: E2 0E 00 EC 11 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 C1 [21:13:03]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:13:03]wFMCommunicate OK [21:13:03]SAM_PROTO_GetShiftState done [21:13:03]FM_GetShiftState done [21:13:03]req_shift_opened done [21:13:03]requested_item shift.open_date is exist - process it [21:13:03]req_shift_open_date [21:13:03]req_shift_open_date done [21:13:03]produce_requested_data done [21:13:03]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76949,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [21:13:03]process_action_free close_receipt [21:13:03]json_value_free [21:13:03]json_value_free done [21:13:03]process_json_proto returns [21:13:03]Send response to host [21:13:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76949,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [21:13:03]free response buf [21:13:03]execute_script done [21:13:03]execute_script returns [21:13:03]free content buf [21:13:03]Sock 8.Close socket [21:13:03]Sock 8.Thread stoped [21:13:07]OFD Sender: No OFD packet to send [21:13:12]OFD Sender: No OFD packet to send [21:13:17]OFD Sender: No OFD packet to send [21:13:22]OFD Sender: No OFD packet to send [21:13:27]OFD Sender: No OFD packet to send [21:13:32]OFD Sender: No OFD packet to send [21:13:37]OFD Sender: No OFD packet to send [21:13:42]OFD Sender: No OFD packet to send [21:13:47]OFD Sender: No OFD packet to send [21:13:52]OFD Sender: No OFD packet to send [21:13:57]OFD Sender: No OFD packet to send [21:14:02]OFD Sender: No OFD packet to send [21:14:07]OFD Sender: No OFD packet to send [21:14:09]accept exits with 9 [21:14:09]New connection [21:14:09]New thread 3066944868 created [21:14:09]Thread 3066801508 joined [21:14:09]Waiting for new connection... [21:14:09] Sock 9.Parse request [21:14:09]Sock 9.Check first char [21:14:09]Sock 9.First char is OK [21:14:09]request: POST /json_proto HTTP/1.0 [21:14:09]Method: POST [21:14:09]URL: /json_proto [21:14:09]Method is POST - this is cgi request [21:14:09]url: /json_proto [21:14:09]query_string will be loaded in cgi processing [21:14:09]execute_cgi json_proto POST (null) [21:14:09]execute_cgi path=json_proto method=POST [21:14:09]POST find Content-Length [21:14:09]Host: 172.17.62.5:8080 [21:14:09]Content-Length: 682 [21:14:09]Content-Type: application/json [21:14:09] [21:14:09]POST finish read [21:14:09]Found Content-Length = 682 [21:14:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191499", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:14:09]execute_script... [21:14: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)191499", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:14:09]POST & json_proto [21:14:09]process_json_proto [21:14:09]json parsed OK: [21:14:09]protocol is kg_v1.0 [21:14:09]action value=close_receipt [21:14:09]process_action close_receipt [21:14:09]cmd_close_receipt [21:14:09]MH_GetDate [21:14:09]Write to MH i2c: F0 00 00 ED 11 ED [21:14:09]Write i2c OK [21:14:09]MH_I2C_Read... [21:14:09]Read from MH i2c: F0 [21:14:09]MH_I2C_Read... [21:14:09]Read from MH i2c: F0 09 00 [21:14:09]MH_I2C_Read... [21:14:09]Read from MH i2c: F0 09 00 ED 11 00 A2 81 25 66 F4 E9 65 64 4A [21:14:09]GetLastDocTimeStamp 1713733981 [21:14:09]current date 1713734050 [21:14:09]FM_GetShiftState [21:14:09]SAM_PROTO_GetShiftState [21:14:09]wFMCommunicate request_size=4 [21:14:09]MH_SAM_APDU [21:14:09]CAPDU: 80 13 01 00 [21:14:09]Write to MH i2c: E2 08 00 EE 11 80 13 01 00 00 00 00 00 7C [21:14:09]Write i2c OK [21:14:09]MH_I2C_Read... [21:14:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:14:09]Read from MH i2c: E2 [21:14:09]MH_I2C_Read... [21:14:09]Read from MH i2c: E2 0E 00 [21:14:09]MH_I2C_Read... [21:14:09]Read from MH i2c: E2 0E 00 EE 11 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 C3 [21:14:09]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:14:09]wFMCommunicate OK [21:14:09]SAM_PROTO_GetShiftState done [21:14:09]FM_GetShiftState done [21:14:09]opened in 1713658965 [21:14:09]opened+sec_in_day 1713745365 [21:14:09]quantity*price = 100013 [21:14:09]sum+1 = 100014 [21:14:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 206 21.04.2024 21:14 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76950 ФПД: 214626290560409 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T211410&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76950&fm=214626290560409&tin=02508201610067®Number=0000000000091573&sum=100000 [21:14:10]StoreToDocumentArchive [21:14:10]shift 372 fd 76950 [21:14:10]save to /storage/0372/doc_00076950 [21:14:10]save last doc name /storage/0372/doc_00076950 to /storage/kkm_last_doc_name [21:14:10]save OK [21:14:10]Clear old archive folders... [21:14:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:14:10]tlvbuf is 00C9EC00 [21:14:10]SAM_PROTO_ClearQueue [21:14:10]wFMCommunicate request_size=4 [21:14:10]MH_SAM_APDU [21:14:10]CAPDU: 80 09 00 00 [21:14:10]Write to MH i2c: E2 08 00 FB 11 80 09 00 00 00 00 00 00 7E [21:14:10]Write i2c OK [21:14:10]MH_I2C_Read... [21:14:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:14:10]Read from MH i2c: E2 [21:14:10]MH_I2C_Read... [21:14:10]Read from MH i2c: E2 03 00 [21:14:10]MH_I2C_Read... [21:14:10]Read from MH i2c: E2 03 00 FB 11 00 90 00 80 [21:14:10]RAPDU: 90 00 [21:14:10]wFMCommunicate OK [21:14:10]SAM_PROTO_ClearQueue done [21:14:10]KKMCreateOFDPacket [21:14:10]OFDProtocolAddRootSTLVToBuf [21:14:10]FM_MakeSignedData [21:14:10]FM_MakeSignedData [21:14:10]SAM_PROTO_SignData [21:14:10]wFMCommunicate request_size=4 [21:14:10]MH_SAM_APDU [21:14:10]CAPDU: 80 0D 01 02 [21:14:10]Write to MH i2c: E2 08 00 FC 11 80 0D 01 02 00 00 00 00 86 [21:14:10]Write i2c OK [21:14:10]MH_I2C_Read... [21:14:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:14:10]Read from MH i2c: E2 [21:14:10]MH_I2C_Read... [21:14:10]Read from MH i2c: E2 03 00 [21:14:10]MH_I2C_Read... [21:14:10]Read from MH i2c: E2 03 00 FC 11 00 90 00 81 [21:14:10]RAPDU: 90 00 [21:14:10]wFMCommunicate OK [21:14:10]wFMCommunicate request_size=255 [21:14:10]MH_SAM_APDU [21:14: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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 A2 81 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 96 2C 01 00 35 04 06 00 C3 [21:14:10]Write to MH i2c: E2 02 01 FD 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 A2 81 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 96 2C 01 00 35 04 06 00 C3 00 00 CE [21:14:10]Write i2c OK [21:14:10]MH_I2C_Read... [21:14:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:14:10]Read from MH i2c: E2 [21:14:10]MH_I2C_Read... [21:14:10]Read from MH i2c: E2 03 00 [21:14:10]MH_I2C_Read... [21:14:10]Read from MH i2c: E2 03 00 FD 11 00 90 00 82 [21:14:10]RAPDU: 90 00 [21:14:10]wFMCommunicate OK [21:14:10]wFMCommunicate request_size=10 [21:14:10]MH_SAM_APDU [21:14:10]CAPDU: 80 0D 02 02 05 33 93 CE ED 99 [21:14:10]Write to MH i2c: E2 0D 00 FE 11 80 0D 02 02 05 00 33 93 CE ED 99 00 00 AD [21:14:10]Write i2c OK [21:14:10]MH_I2C_Read... [21:14:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:14:10]Read from MH i2c: E2 [21:14:10]MH_I2C_Read... [21:14:10]Read from MH i2c: E2 03 00 [21:14:10]MH_I2C_Read... [21:14:10]Read from MH i2c: E2 03 00 FE 11 00 90 00 83 [21:14:10]RAPDU: 90 00 [21:14:10]wFMCommunicate OK [21:14:10]wFMCommunicate request_size=4 [21:14:10]MH_SAM_APDU [21:14:10]CAPDU: 80 0D 03 02 [21:14:10]Write to MH i2c: E2 08 00 FF 11 80 0D 03 02 00 00 00 00 8B [21:14:10]Write i2c OK [21:14:10]MH_I2C_Read... [21:14:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:14:10]Read from MH i2c: E2 [21:14:10]MH_I2C_Read... [21:14:10]Read from MH i2c: E2 0B 00 [21:14:10]MH_I2C_Read... [21:14:10]Read from MH i2c: E2 0B 00 FF 11 00 31 F6 3D 72 67 B5 36 0A 90 00 BE [21:14:10]RAPDU: 31 F6 3D 72 67 B5 36 0A 90 00 [21:14:10]wFMCommunicate OK [21:14:10]SAM_PROTO_SignData done [21:14:10]FM_MakeSignedData done [21:14:10]CreateOFDProtocolMessage [21:14:10]wFMCommunicate request_size=4 [21:14:10]MH_SAM_APDU [21:14:10]CAPDU: 80 11 00 00 [21:14:10]Write to MH i2c: E2 08 00 00 12 80 11 00 00 00 00 00 00 8C [21:14:10]Write i2c OK [21:14:10]MH_I2C_Read... [21:14:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:14:11]Read from MH i2c: E2 [21:14:11]MH_I2C_Read... [21:14:11]Read from MH i2c: E2 17 00 [21:14:11]MH_I2C_Read... [21:14:11]Read from MH i2c: E2 17 00 00 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 DF [21:14:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:14:11]wFMCommunicate OK [21:14:11]CreateOFDProtocolMessage done [21:14:11]OFDSenderStorePacket 76950 [21:14:11]StoreOFDPacket docnum=76950 [21:14:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 84 FA 07 01 49 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 A2 81 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 96 2C 01 00 35 04 06 00 C3 33 93 CE ED 99 31 F6 3D 72 67 B5 36 0A [21:14:11]CheckFolder [21:14:11]dirname=/storage/ofd_packets [21:14:11]CheckFolder done [21:14:11]ProducePacketName [21:14:11]name=ofd_packets/00076950 [21:14:11]NVStorageSaveData ofd_packets/00076950 [21:14:11]File name is /storage/ofd_packets/00076950 [21:14:11]Write 301 bytes [21:14:11]NVStorageSaveData done [21:14:11]OFDSenderStorePacket done [21:14:11]KKMCreateOFDPacket done [21:14:11]NVStorageSaveData kkm_last_timestamp [21:14:11]File name is /storage/kkm_last_timestamp [21:14:11]Write 4 bytes [21:14:11]NVStorageSaveData done [21:14:11]ExternCall_PrintAddStr [21:14:11]wPrintStart [21:14:11]Write to MH i2c: 01 00 00 01 12 13 [21:14:11]Write i2c OK [21:14:11]MH_I2C_Read... [21:14:11]Read from MH i2c: 01 [21:14:11]MH_I2C_Read... [21:14:11]Read from MH i2c: 01 07 00 [21:14:11]MH_I2C_Read... [21:14:11]Read from MH i2c: 01 07 00 01 12 00 00 00 00 00 FF 0F 28 [21:14:11]RasterBufferAndPrint [21:14:11]line Счет N : (1)191499 [21:14:11]line ИНН: 02508201610067 [21:14:11]line Контрольно-Кассовый Чек [21:14:11]line ПРОДАЖА [21:14:11]line ТРК (МРК, ГНК) : 33 [21:14:11]line Товар: 2710124130 [21:14:11]line Аи-92-К-5 [21:14:11]line 15.530 * 64.40 [21:14:11]line = 1000.13 [21:14:11]line НДС 12% НСП 1% [21:14:11]line > о реализуемом товаре [21:14:11]line ОКРУГЛЕНИЕ: -0.13 [21:14:11]line ИТОГО: 1000.00 [21:14:11]line Внесено: 1000.00 [21:14:11]line СДАЧА: 0.00 [21:14:11]line НСП 1% : 8.85 [21:14:11]line НДС 12% : 106.21 [21:14:11]line Наличными: 1000.00 [21:14:11]line Безнал.: 0.00 [21:14:11]line Место: АЗС № 106 "Партнер Нефть" [21:14:11]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [21:14:11]line СНО: Общий режим [21:14:11]line Чек 206 21.04.2024 21:14 [21:14:11]line Смена: 372 ФФД: 1.0 [21:14:11]line ЗНМ: 0300000141 [21:14:11]line РНМ: 0000000000091573 [21:14:11]line Версия ККМ: 001 [21:14:11]line ФМ: 0000000000874652 [21:14:11]line ФД: 76950 [21:14:11]line ФПД: 214626290560409 [21:14:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T211410&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76950&fm=214626290560409&tin=02508201610067®Number=0000000000091573&sum=100000 [21:14:11]OFD Sender: Processing packet 76950 [packets to send 129, broken 128] [21:14:11]ProducePacketName [21:14:11]name=ofd_packets/00076950 [21:14:11]OFD Sender: To server: pG, [21:14:11]CommunicateWithHost lk.salyk.kg:30040 [21:14:11]ConnectInit lk.salyk.kg [21:14:11]written 0, free lines is 4095 [21:14:11]Connected sock=10 [21:14:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 84 FA 07 01 49 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 A2 81 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 96 2C 01 00 35 04 06 00 C3 33 93 CE ED 99 31 F6 3D 72 67 B5 36 0A [21:14:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 14 96 47 00 3C 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 96 2C 01 00 F4 03 04 00 27 29 25 66 B6 04 01 00 00 98 50 3F C4 05 51 DD 56 [21:14:11]CommunicateWithHost err = 0 [21:14:11]CheckOFDResponse [21:14:11]1017 (14) - 77093643461234 [21:14:11]1041 (16) - 0000000000874652 [21:14:11]1040 (4) - 76950 [21:14:11]1012 (4) - 21.04.2024 14:56 [21:14:11]1206 (1) - 0 [21:14:11]OFD Sender: Remove packet 76950 [21:14:11]ProducePacketName [21:14:11]name=ofd_packets/00076950 [21:14:11]NVStorageDeleteData [21:14:11]Write to MH i2c: 01 00 00 2B 12 3D [21:14:11]Write i2c OK [21:14:11]MH_I2C_Read... [21:14:11]Read from MH i2c: 01 [21:14:11]MH_I2C_Read... [21:14:11]Read from MH i2c: 01 07 00 [21:14:11]MH_I2C_Read... [21:14:11]Read from MH i2c: 01 07 00 2B 12 00 00 00 00 00 FB 0C 4B [21:14:11]RasterBufferAndPrint [21:14:11]line [21:14:11]line [21:14:11]line [21:14:11]line [21:14:11]line [21:14:11]written 0, free lines is 3329 [21:14:11]MH_Cut [21:14:11]Write to MH i2c: D1 01 00 32 12 01 16 [21:14:11]Write i2c OK [21:14:11]MH_I2C_Read... [21:14:11]Read from MH i2c: D1 [21:14:11]MH_I2C_Read... [21:14:11]Read from MH i2c: D1 01 00 [21:14:11]MH_I2C_Read... [21:14:11]Read from MH i2c: D1 01 00 32 12 00 15 [21:14:11]Write to MH i2c: 01 00 00 33 12 45 [21:14:11]Write i2c OK [21:14:11]MH_I2C_Read... [21:14:12]OFD Sender: No OFD packet to send [21:14:12]*** Cut start [21:14:12]*** Partial cut [21:14:12]*** CUTSNS_PIN = 1 [21:14:12]*** CUTSNS_PIN = 0 [21:14:12]*** Brake cut motor [21:14:13]Read from MH i2c: 01 [21:14:13]MH_I2C_Read... [21:14:13]*** Stop cut motor [21:14:13]*** Cut end [21:14:13]Read from MH i2c: 01 07 00 [21:14:13]MH_I2C_Read... [21:14:13]Read from MH i2c: 01 07 00 33 12 00 00 00 00 00 FF 0F 5A [21:14:13]process_action close_receipt done [21:14:13]requested_data is exist [21:14:13]produce_requested_data [21:14:13]requested_item fm.sn is exist - process it [21:14:13]wFMCommunicate request_size=4 [21:14:13]MH_SAM_APDU [21:14:13]CAPDU: 80 11 00 00 [21:14:13]Write to MH i2c: E2 08 00 34 12 80 11 00 00 00 00 00 00 C0 [21:14:13]Write i2c OK [21:14:13]MH_I2C_Read... [21:14:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:14:13]Read from MH i2c: E2 [21:14:13]MH_I2C_Read... [21:14:13]Read from MH i2c: E2 17 00 [21:14:13]MH_I2C_Read... [21:14:13]Read from MH i2c: E2 17 00 34 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 13 [21:14:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:14:13]wFMCommunicate OK [21:14:13]requested_item fd.num is exist - process it [21:14:13]SAM_PROTO_GetFieldsCounters [21:14:13]wFMCommunicate request_size=4 [21:14:13]MH_SAM_APDU [21:14:13]CAPDU: 80 13 00 00 [21:14:13]Write to MH i2c: E2 08 00 35 12 80 13 00 00 00 00 00 00 C3 [21:14:13]Write i2c OK [21:14:13]MH_I2C_Read... [21:14:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:14:13]Read from MH i2c: E2 [21:14:13]MH_I2C_Read... [21:14:13]Read from MH i2c: E2 62 00 [21:14:13]MH_I2C_Read... [21:14:13]Read from MH i2c: E2 62 00 35 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 96 2C 01 00 0E 04 04 00 74 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 86 [21:14: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 96 2C 01 00 0E 04 04 00 74 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 [21:14:13]wFMCommunicate OK [21:14:13]SAM_PROTO_GetFieldsCounters done [21:14:13]requested_item shift.num is exist - process it [21:14:13]requested_item shift.opened is exist - process it [21:14:13]req_shift_opened [21:14:13]FM_GetShiftState [21:14:13]SAM_PROTO_GetShiftState [21:14:13]wFMCommunicate request_size=4 [21:14:13]MH_SAM_APDU [21:14:13]CAPDU: 80 13 01 00 [21:14:13]Write to MH i2c: E2 08 00 36 12 80 13 01 00 00 00 00 00 C5 [21:14:13]Write i2c OK [21:14:13]MH_I2C_Read... [21:14:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:14:13]Read from MH i2c: E2 [21:14:13]MH_I2C_Read... [21:14:13]Read from MH i2c: E2 0E 00 [21:14:13]MH_I2C_Read... [21:14:13]Read from MH i2c: E2 0E 00 36 12 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 0C [21:14:13]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:14:13]wFMCommunicate OK [21:14:13]SAM_PROTO_GetShiftState done [21:14:13]FM_GetShiftState done [21:14:13]req_shift_opened done [21:14:13]requested_item shift.open_date is exist - process it [21:14:13]req_shift_open_date [21:14:13]req_shift_open_date done [21:14:13]produce_requested_data done [21:14:13]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76950,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [21:14:13]process_action_free close_receipt [21:14:13]json_value_free [21:14:13]json_value_free done [21:14:13]process_json_proto returns [21:14:13]Send response to host [21:14:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76950,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [21:14:13]free response buf [21:14:13]execute_script done [21:14:13]execute_script returns [21:14:13]free content buf [21:14:13]Sock 9.Close socket [21:14:13]Sock 9.Thread stoped [21:14:17]OFD Sender: No OFD packet to send [21:14:22]OFD Sender: No OFD packet to send [21:14:27]OFD Sender: No OFD packet to send [21:14:32]OFD Sender: No OFD packet to send [21:14:37]OFD Sender: No OFD packet to send [21:14:42]OFD Sender: No OFD packet to send [21:14:47]OFD Sender: No OFD packet to send [21:14:52]OFD Sender: No OFD packet to send [21:14:57]OFD Sender: No OFD packet to send [21:15:02]OFD Sender: No OFD packet to send [21:15:07]OFD Sender: No OFD packet to send [21:15:12]OFD Sender: No OFD packet to send [21:15:17]OFD Sender: No OFD packet to send [21:15:22]OFD Sender: No OFD packet to send [21:15:27]OFD Sender: No OFD packet to send [21:15:32]OFD Sender: No OFD packet to send [21:15:37]OFD Sender: No OFD packet to send [21:15:42]OFD Sender: No OFD packet to send [21:15:47]OFD Sender: No OFD packet to send [21:15:52]OFD Sender: No OFD packet to send [21:15:57]OFD Sender: No OFD packet to send [21:16:02]OFD Sender: No OFD packet to send [21:16:07]OFD Sender: No OFD packet to send [21:16:12]OFD Sender: No OFD packet to send [21:16:17]OFD Sender: No OFD packet to send [21:16:22]OFD Sender: No OFD packet to send [21:16:27]OFD Sender: No OFD packet to send [21:16:32]OFD Sender: No OFD packet to send [21:16:37]OFD Sender: No OFD packet to send [21:16:42]OFD Sender: No OFD packet to send [21:16:47]OFD Sender: No OFD packet to send [21:16:52]OFD Sender: No OFD packet to send [21:16:56]accept exits with 8 [21:16:56]New connection [21:16:56]New thread 3066801508 created [21:16:56]Thread 3066944868 joined [21:16:56]Waiting for new connection... [21:16:56] Sock 8.Parse request [21:16:56]Sock 8.Check first char [21:16:56]Sock 8.First char is OK [21:16:56]request: POST /json_proto HTTP/1.0 [21:16:56]Method: POST [21:16:56]URL: /json_proto [21:16:56]Method is POST - this is cgi request [21:16:56]url: /json_proto [21:16:56]query_string will be loaded in cgi processing [21:16:56]execute_cgi json_proto POST (null) [21:16:56]execute_cgi path=json_proto method=POST [21:16:56]POST find Content-Length [21:16:56]Host: 172.17.62.5:8080 [21:16:56]Content-Length: 679 [21:16:56]Content-Type: application/json [21:16:56] [21:16:56]POST finish read [21:16:56]Found Content-Length = 679 [21:16:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191500", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:56]execute_script... [21:16: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)191500", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:56]POST & json_proto [21:16:56]process_json_proto [21:16:56]json parsed OK: [21:16:56]protocol is kg_v1.0 [21:16:56]action value=close_receipt [21:16:56]process_action close_receipt [21:16:56]cmd_close_receipt [21:16:56]MH_GetDate [21:16:56]Write to MH i2c: F0 00 00 37 12 38 [21:16:56]Write i2c OK [21:16:56]MH_I2C_Read... [21:16:56]Read from MH i2c: F0 [21:16:56]MH_I2C_Read... [21:16:56]Read from MH i2c: F0 09 00 [21:16:56]MH_I2C_Read... [21:16:56]Read from MH i2c: F0 09 00 37 12 00 49 82 25 66 F4 E9 65 64 3D [21:16:56]GetLastDocTimeStamp 1713734050 [21:16:56]current date 1713734217 [21:16:56]FM_GetShiftState [21:16:56]SAM_PROTO_GetShiftState [21:16:56]wFMCommunicate request_size=4 [21:16:56]MH_SAM_APDU [21:16:56]CAPDU: 80 13 01 00 [21:16:56]Write to MH i2c: E2 08 00 38 12 80 13 01 00 00 00 00 00 C7 [21:16:56]Write i2c OK [21:16:56]MH_I2C_Read... [21:16:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:56]Read from MH i2c: E2 [21:16:56]MH_I2C_Read... [21:16:56]Read from MH i2c: E2 0E 00 [21:16:56]MH_I2C_Read... [21:16:56]Read from MH i2c: E2 0E 00 38 12 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 0E [21:16:56]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:16:56]wFMCommunicate OK [21:16:56]SAM_PROTO_GetShiftState done [21:16:56]FM_GetShiftState done [21:16:56]opened in 1713658965 [21:16:56]opened+sec_in_day 1713745365 [21:16:56]quantity*price = 100018 [21:16:56]sum+1 = 100020 [21:16: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 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 207 21.04.2024 21:16 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76951 ФПД: 224541401879952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T211657&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76951&fm=224541401879952&tin=02508201610067®Number=0000000000091573&sum=100000 [21:16:57]StoreToDocumentArchive [21:16:57]shift 372 fd 76951 [21:16:57]save to /storage/0372/doc_00076951 [21:16:57]save last doc name /storage/0372/doc_00076951 to /storage/kkm_last_doc_name [21:16:57]save OK [21:16:57]Clear old archive folders... [21:16:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:16:57]tlvbuf is 00CBFC80 [21:16:57]SAM_PROTO_ClearQueue [21:16:57]wFMCommunicate request_size=4 [21:16:57]MH_SAM_APDU [21:16:57]CAPDU: 80 09 00 00 [21:16:57]Write to MH i2c: E2 08 00 45 12 80 09 00 00 00 00 00 00 C9 [21:16:57]Write i2c OK [21:16:57]MH_I2C_Read... [21:16:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:16:57]OFD Sender: No OFD packet to send [21:16:57]Read from MH i2c: E2 [21:16:57]MH_I2C_Read... [21:16:57]Read from MH i2c: E2 03 00 [21:16:57]MH_I2C_Read... [21:16:57]Read from MH i2c: E2 03 00 45 12 00 90 00 CB [21:16:57]RAPDU: 90 00 [21:16:57]wFMCommunicate OK [21:16:57]SAM_PROTO_ClearQueue done [21:16:57]KKMCreateOFDPacket [21:16:57]OFDProtocolAddRootSTLVToBuf [21:16:57]FM_MakeSignedData [21:16:57]FM_MakeSignedData [21:16:57]SAM_PROTO_SignData [21:16:57]wFMCommunicate request_size=4 [21:16:57]MH_SAM_APDU [21:16:57]CAPDU: 80 0D 01 02 [21:16:57]Write to MH i2c: E2 08 00 46 12 80 0D 01 02 00 00 00 00 D1 [21:16:57]Write i2c OK [21:16:57]MH_I2C_Read... [21:16:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:16:57]Read from MH i2c: E2 [21:16:57]MH_I2C_Read... [21:16:57]Read from MH i2c: E2 03 00 [21:16:57]MH_I2C_Read... [21:16:57]Read from MH i2c: E2 03 00 46 12 00 90 00 CC [21:16:57]RAPDU: 90 00 [21:16:57]wFMCommunicate OK [21:16:57]wFMCommunicate request_size=255 [21:16:57]MH_SAM_APDU [21:16:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 49 82 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 97 2C 01 00 35 04 06 00 CC 38 1E 7F [21:16:57]Write to MH i2c: E2 02 01 47 12 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 49 82 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 97 2C 01 00 35 04 06 00 CC 38 1E 7F 00 00 36 [21:16:57]Write i2c OK [21:16:57]MH_I2C_Read... [21:16:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:57]Read from MH i2c: E2 [21:16:57]MH_I2C_Read... [21:16:57]Read from MH i2c: E2 03 00 [21:16:57]MH_I2C_Read... [21:16:57]Read from MH i2c: E2 03 00 47 12 00 90 00 CD [21:16:57]RAPDU: 90 00 [21:16:57]wFMCommunicate OK [21:16:57]wFMCommunicate request_size=7 [21:16:57]MH_SAM_APDU [21:16:57]CAPDU: 80 0D 02 02 02 15 90 [21:16:57]Write to MH i2c: E2 0A 00 48 12 80 0D 02 02 02 00 15 90 00 00 7D [21:16:57]Write i2c OK [21:16:57]MH_I2C_Read... [21:16:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:57]Read from MH i2c: E2 [21:16:57]MH_I2C_Read... [21:16:57]Read from MH i2c: E2 03 00 [21:16:57]MH_I2C_Read... [21:16:57]Read from MH i2c: E2 03 00 48 12 00 90 00 CE [21:16:57]RAPDU: 90 00 [21:16:57]wFMCommunicate OK [21:16:57]wFMCommunicate request_size=4 [21:16:57]MH_SAM_APDU [21:16:57]CAPDU: 80 0D 03 02 [21:16:57]Write to MH i2c: E2 08 00 49 12 80 0D 03 02 00 00 00 00 D6 [21:16:57]Write i2c OK [21:16:57]MH_I2C_Read... [21:16:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:16:57]Read from MH i2c: E2 [21:16:57]MH_I2C_Read... [21:16:57]Read from MH i2c: E2 0B 00 [21:16:57]MH_I2C_Read... [21:16:57]Read from MH i2c: E2 0B 00 49 12 00 4E EC C0 91 BA 8E 86 69 90 00 99 [21:16:57]RAPDU: 4E EC C0 91 BA 8E 86 69 90 00 [21:16:57]wFMCommunicate OK [21:16:57]SAM_PROTO_SignData done [21:16:57]FM_MakeSignedData done [21:16:57]CreateOFDProtocolMessage [21:16:57]wFMCommunicate request_size=4 [21:16:57]MH_SAM_APDU [21:16:57]CAPDU: 80 11 00 00 [21:16:57]Write to MH i2c: E2 08 00 4A 12 80 11 00 00 00 00 00 00 D6 [21:16:57]Write i2c OK [21:16:57]MH_I2C_Read... [21:16:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:57]Read from MH i2c: E2 [21:16:57]MH_I2C_Read... [21:16:57]Read from MH i2c: E2 17 00 [21:16:57]MH_I2C_Read... [21:16:57]Read from MH i2c: E2 17 00 4A 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 29 [21:16:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:16:57]wFMCommunicate OK [21:16:57]CreateOFDProtocolMessage done [21:16:57]OFDSenderStorePacket 76951 [21:16:57]StoreOFDPacket docnum=76951 [21:16:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 63 F3 04 01 8F A9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 CF 00 00 00 F4 03 04 00 49 82 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 97 2C 01 00 35 04 06 00 CC 38 1E 7F 15 90 4E EC C0 91 BA 8E 86 69 [21:16:57]CheckFolder [21:16:57]dirname=/storage/ofd_packets [21:16:57]CheckFolder done [21:16:57]ProducePacketName [21:16:57]name=ofd_packets/00076951 [21:16:57]NVStorageSaveData ofd_packets/00076951 [21:16:57]File name is /storage/ofd_packets/00076951 [21:16:57]Write 298 bytes [21:16:57]NVStorageSaveData done [21:16:57]OFDSenderStorePacket done [21:16:57]KKMCreateOFDPacket done [21:16:57]NVStorageSaveData kkm_last_timestamp [21:16:57]File name is /storage/kkm_last_timestamp [21:16:57]Write 4 bytes [21:16:57]NVStorageSaveData done [21:16:57]ExternCall_PrintAddStr [21:16:57]wPrintStart [21:16:57]Write to MH i2c: 01 00 00 4B 12 5D [21:16:57]Write i2c OK [21:16:57]MH_I2C_Read... [21:16:57]Read from MH i2c: 01 [21:16:57]MH_I2C_Read... [21:16:57]Read from MH i2c: 01 07 00 [21:16:57]MH_I2C_Read... [21:16:57]Read from MH i2c: 01 07 00 4B 12 00 00 00 00 00 FF 0F 72 [21:16:57]RasterBufferAndPrint [21:16:57]line Счет N : (1)191500 [21:16:57]line ИНН: 02508201610067 [21:16:57]line Контрольно-Кассовый Чек [21:16:57]line ПРОДАЖА [21:16:57]line ТРК (МРК, ГНК) : 51 [21:16:57]line Товар: 2710194210 [21:16:57]line ДТ-К-5 [21:16:57]line 13.720 * 72.90 [21:16:57]line = 1000.19 [21:16:57]line НДС 12% НСП 1% [21:16:57]line > о реализуемом товаре [21:16:57]line ОКРУГЛЕНИЕ: -0.19 [21:16:57]line ИТОГО: 1000.00 [21:16:57]line Внесено: 1000.00 [21:16:57]line СДАЧА: 0.00 [21:16:57]line НСП 1% : 8.85 [21:16:57]line НДС 12% : 106.21 [21:16:57]line Наличными: 1000.00 [21:16:57]line Безнал.: 0.00 [21:16:57]line Место: АЗС № 106 "Партнер Нефть" [21:16:57]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [21:16:57]line СНО: Общий режим [21:16:57]line Чек 207 21.04.2024 21:16 [21:16:57]line Смена: 372 ФФД: 1.0 [21:16:57]line ЗНМ: 0300000141 [21:16:57]line РНМ: 0000000000091573 [21:16:57]line Версия ККМ: 001 [21:16:57]line ФМ: 0000000000874652 [21:16:57]line ФД: 76951 [21:16:57]line ФПД: 224541401879952 [21:16:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T211657&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76951&fm=224541401879952&tin=02508201610067®Number=0000000000091573&sum=100000 [21:16:58]OFD Sender: Processing packet 76951 [packets to send 129, broken 128] [21:16:58]ProducePacketName [21:16:58]name=ofd_packets/00076951 [21:16:58]OFD Sender: To server: pG, [21:16:58]CommunicateWithHost lk.salyk.kg:30040 [21:16:58]ConnectInit lk.salyk.kg [21:16:58]written 0, free lines is 4095 [21:16:58]Connected sock=10 [21:16:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 63 F3 04 01 8F A9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 CF 00 00 00 F4 03 04 00 49 82 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 97 2C 01 00 35 04 06 00 CC 38 1E 7F 15 90 4E EC C0 91 BA 8E 86 69 [21:16:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 BB 60 47 00 9E 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 34 36 35 32 10 04 04 00 97 2C 01 00 F4 03 04 00 CE 29 25 66 B6 04 01 00 00 98 7D A6 09 8B 11 10 AC [21:16:58]CommunicateWithHost err = 0 [21:16:58]CheckOFDResponse [21:16:58]1017 (14) - 77093643461234 [21:16:58]1041 (16) - 0000000000874652 [21:16:58]1040 (4) - 76951 [21:16:58]1012 (4) - 21.04.2024 14:59 [21:16:58]1206 (1) - 0 [21:16:58]OFD Sender: Remove packet 76951 [21:16:58]ProducePacketName [21:16:58]name=ofd_packets/00076951 [21:16:58]NVStorageDeleteData [21:16:58]Write to MH i2c: 01 00 00 75 12 87 [21:16:58]Write i2c OK [21:16:58]MH_I2C_Read... [21:16:58]Read from MH i2c: 01 [21:16:58]MH_I2C_Read... [21:16:58]Read from MH i2c: 01 07 00 [21:16:58]MH_I2C_Read... [21:16:58]Read from MH i2c: 01 07 00 75 12 00 00 00 00 00 F2 0C 8C [21:16:58]RasterBufferAndPrint [21:16:58]line [21:16:58]line [21:16:58]line [21:16:58]line [21:16:58]line [21:16:58]written 0, free lines is 3322 [21:16:58]MH_Cut [21:16:58]Write to MH i2c: D1 01 00 7C 12 01 60 [21:16:58]Write i2c OK [21:16:58]MH_I2C_Read... [21:16:58]Read from MH i2c: D1 [21:16:58]MH_I2C_Read... [21:16:58]Read from MH i2c: D1 01 00 [21:16:58]MH_I2C_Read... [21:16:58]Read from MH i2c: D1 01 00 7C 12 00 5F [21:16:58]Write to MH i2c: 01 00 00 7D 12 8F [21:16:58]Write i2c OK [21:16:58]MH_I2C_Read... [21:16:59]OFD Sender: No OFD packet to send [21:16:59]*** Cut start [21:16:59]*** Partial cut [21:16:59]*** CUTSNS_PIN = 1 [21:16:59]*** CUTSNS_PIN = 0 [21:16:59]*** Brake cut motor [21:17:00]Read from MH i2c: 01 [21:17:00]MH_I2C_Read... [21:17:00]*** Stop cut motor [21:17:00]*** Cut end [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 7D 12 00 00 00 00 00 FF 0F A4 [21:17:00]process_action close_receipt done [21:17:00]requested_data is exist [21:17:00]produce_requested_data [21:17:00]requested_item fm.sn is exist - process it [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 7E 12 80 11 00 00 00 00 00 00 0A [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 7E 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 5D [21:17:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:17:00]wFMCommunicate OK [21:17:00]requested_item fd.num is exist - process it [21:17:00]SAM_PROTO_GetFieldsCounters [21:17:00]wFMCommunicate request_size=4 [21:17:00]MH_SAM_APDU [21:17:00]CAPDU: 80 13 00 00 [21:17:00]Write to MH i2c: E2 08 00 7F 12 80 13 00 00 00 00 00 00 0D [21:17:00]Write i2c OK [21:17:00]MH_I2C_Read... [21:17:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:17:00]Read from MH i2c: E2 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: E2 62 00 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: E2 62 00 7F 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 97 2C 01 00 0E 04 04 00 74 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 D4 [21:17: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 97 2C 01 00 0E 04 04 00 74 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 [21:17:00]wFMCommunicate OK [21:17:00]SAM_PROTO_GetFieldsCounters done [21:17:00]requested_item shift.num is exist - process it [21:17:00]requested_item shift.opened is exist - process it [21:17:00]req_shift_opened [21:17:00]FM_GetShiftState [21:17:00]SAM_PROTO_GetShiftState [21:17:00]wFMCommunicate request_size=4 [21:17:00]MH_SAM_APDU [21:17:00]CAPDU: 80 13 01 00 [21:17:00]Write to MH i2c: E2 08 00 80 12 80 13 01 00 00 00 00 00 0F [21:17:00]Write i2c OK [21:17:00]MH_I2C_Read... [21:17:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:00]Read from MH i2c: E2 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: E2 0E 00 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: E2 0E 00 80 12 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 56 [21:17:00]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:17:00]wFMCommunicate OK [21:17:00]SAM_PROTO_GetShiftState done [21:17:00]FM_GetShiftState done [21:17:00]req_shift_opened done [21:17:00]requested_item shift.open_date is exist - process it [21:17:00]req_shift_open_date [21:17:00]req_shift_open_date done [21:17:00]produce_requested_data done [21:17:00]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76951,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [21:17:00]process_action_free close_receipt [21:17:00]json_value_free [21:17:00]json_value_free done [21:17:00]process_json_proto returns [21:17:00]Send response to host [21:17:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76951,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [21:17:00]free response buf [21:17:00]execute_script done [21:17:00]execute_script returns [21:17:00]free content buf [21:17:00]Sock 8.Close socket [21:17:00]Sock 8.Thread stoped [21:17:04]OFD Sender: No OFD packet to send [21:17:08]accept exits with 9 [21:17:08]New connection [21:17:08]New thread 3066944868 created [21:17:08]Thread 3066801508 joined [21:17:08]Waiting for new connection... [21:17:08] Sock 9.Parse request [21:17:08]Sock 9.Check first char [21:17:08]Sock 9.First char is OK [21:17:08]request: POST /json_proto HTTP/1.0 [21:17:08]Method: POST [21:17:08]URL: /json_proto [21:17:08]Method is POST - this is cgi request [21:17:08]url: /json_proto [21:17:08]query_string will be loaded in cgi processing [21:17:08]execute_cgi json_proto POST (null) [21:17:08]execute_cgi path=json_proto method=POST [21:17:08]POST find Content-Length [21:17:08]Host: 172.17.62.5:8080 [21:17:08]Content-Length: 990 [21:17:08]Content-Type: application/json [21:17:08] [21:17:08]POST finish read [21:17:08]Found Content-Length = 990 [21:17:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191496", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 42.620, "sum" : 1351.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 42.62 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 1351.00, "payments": [ { "type": 0, "sum" : 1351.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:17:08]execute_script... [21:17: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)191496", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 42.620, "sum" : 1351.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 42.62 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 1351.00, "payments": [ { "type": 0, "sum" : 1351.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:17:08]POST & json_proto [21:17:08]process_json_proto [21:17:08]json parsed OK: [21:17:08]protocol is kg_v1.0 [21:17:08]action value=close_receipt [21:17:08]process_action close_receipt [21:17:08]cmd_close_receipt [21:17:08]MH_GetDate [21:17:08]Write to MH i2c: F0 00 00 81 12 82 [21:17:08]Write i2c OK [21:17:08]MH_I2C_Read... [21:17:08]Read from MH i2c: F0 [21:17:08]MH_I2C_Read... [21:17:08]Read from MH i2c: F0 09 00 [21:17:08]MH_I2C_Read... [21:17:08]Read from MH i2c: F0 09 00 81 12 00 55 82 25 66 F4 E9 65 64 93 [21:17:08]GetLastDocTimeStamp 1713734217 [21:17:08]current date 1713734229 [21:17:08]FM_GetShiftState [21:17:08]SAM_PROTO_GetShiftState [21:17:08]wFMCommunicate request_size=4 [21:17:08]MH_SAM_APDU [21:17:08]CAPDU: 80 13 01 00 [21:17:08]Write to MH i2c: E2 08 00 82 12 80 13 01 00 00 00 00 00 11 [21:17:08]Write i2c OK [21:17:08]MH_I2C_Read... [21:17:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:08]Read from MH i2c: E2 [21:17:08]MH_I2C_Read... [21:17:08]Read from MH i2c: E2 0E 00 [21:17:08]MH_I2C_Read... [21:17:08]Read from MH i2c: E2 0E 00 82 12 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 58 [21:17:08]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:17:08]wFMCommunicate OK [21:17:08]SAM_PROTO_GetShiftState done [21:17:08]FM_GetShiftState done [21:17:08]opened in 1713658965 [21:17:08]opened+sec_in_day 1713745365 [21:17:08]quantity*price = 135105 [21:17:08]sum+1 = 135106 [21:17:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1351.00 Внесено: 2000.00 СДАЧА: 649.00 НСП 1% : 11.96 НДС 12% : 143.47 Наличными: 1351.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 208 21.04.2024 21:17 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 42.62 сом ФМ: 0000000000874652 ФД: 76952 ФПД: 84905180345616 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T211709&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76952&fm=84905180345616&tin=02508201610067®Number=0000000000091573&sum=135100 [21:17:09]StoreToDocumentArchive [21:17:09]shift 372 fd 76952 [21:17:09]save to /storage/0372/doc_00076952 [21:17:09]save last doc name /storage/0372/doc_00076952 to /storage/kkm_last_doc_name [21:17:09]OFD Sender: No OFD packet to send [21:17:09]save OK [21:17:09]Clear old archive folders... [21:17:09]ProcessDocumentItem done err = 0, tmpTLVsize=250 [21:17:09]tlvbuf is 00C6EA00 [21:17:09]SAM_PROTO_ClearQueue [21:17:09]wFMCommunicate request_size=4 [21:17:09]MH_SAM_APDU [21:17:09]CAPDU: 80 09 00 00 [21:17:09]Write to MH i2c: E2 08 00 8F 12 80 09 00 00 00 00 00 00 13 [21:17:09]Write i2c OK [21:17:09]MH_I2C_Read... [21:17:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:17:09]Read from MH i2c: E2 [21:17:09]MH_I2C_Read... [21:17:09]Read from MH i2c: E2 03 00 [21:17:09]MH_I2C_Read... [21:17:09]Read from MH i2c: E2 03 00 8F 12 00 90 00 15 [21:17:09]RAPDU: 90 00 [21:17:09]wFMCommunicate OK [21:17:09]SAM_PROTO_ClearQueue done [21:17:09]KKMCreateOFDPacket [21:17:09]OFDProtocolAddRootSTLVToBuf [21:17:09]FM_MakeSignedData [21:17:09]FM_MakeSignedData [21:17:09]SAM_PROTO_SignData [21:17:09]wFMCommunicate request_size=4 [21:17:09]MH_SAM_APDU [21:17:09]CAPDU: 80 0D 01 02 [21:17:09]Write to MH i2c: E2 08 00 90 12 80 0D 01 02 00 00 00 00 1B [21:17:09]Write i2c OK [21:17:09]MH_I2C_Read... [21:17:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:17:09]Read from MH i2c: E2 [21:17:09]MH_I2C_Read... [21:17:09]Read from MH i2c: E2 03 00 [21:17:09]MH_I2C_Read... [21:17:09]Read from MH i2c: E2 03 00 90 12 00 90 00 16 [21:17:09]RAPDU: 90 00 [21:17:09]wFMCommunicate OK [21:17:09]wFMCommunicate request_size=255 [21:17:09]MH_SAM_APDU [21:17:09]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7C A6 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 C1 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 38 00 00 00 00 07 04 06 00 BC 0F 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 55 82 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 98 2C 01 00 35 04 06 00 4D 38 [21:17:09]Write to MH i2c: E2 02 01 91 12 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7C A6 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 C1 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 38 00 00 00 00 07 04 06 00 BC 0F 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 55 82 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 98 2C 01 00 35 04 06 00 4D 38 00 00 AC [21:17:09]Write i2c OK [21:17:09]MH_I2C_Read... [21:17:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:09]Read from MH i2c: E2 [21:17:09]MH_I2C_Read... [21:17:09]Read from MH i2c: E2 03 00 [21:17:09]MH_I2C_Read... [21:17:09]Read from MH i2c: E2 03 00 91 12 00 90 00 17 [21:17:09]RAPDU: 90 00 [21:17:09]wFMCommunicate OK [21:17:09]wFMCommunicate request_size=9 [21:17:09]MH_SAM_APDU [21:17:09]CAPDU: 80 0D 02 02 04 87 1D 35 10 [21:17:09]Write to MH i2c: E2 0C 00 92 12 80 0D 02 02 04 00 87 1D 35 10 00 00 0F [21:17:09]Write i2c OK [21:17:09]MH_I2C_Read... [21:17:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:09]Read from MH i2c: E2 [21:17:09]MH_I2C_Read... [21:17:09]Read from MH i2c: E2 03 00 [21:17:09]MH_I2C_Read... [21:17:09]Read from MH i2c: E2 03 00 92 12 00 90 00 18 [21:17:09]RAPDU: 90 00 [21:17:09]wFMCommunicate OK [21:17:09]wFMCommunicate request_size=4 [21:17:09]MH_SAM_APDU [21:17:09]CAPDU: 80 0D 03 02 [21:17:09]Write to MH i2c: E2 08 00 93 12 80 0D 03 02 00 00 00 00 20 [21:17:09]Write i2c OK [21:17:09]MH_I2C_Read... [21:17:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:17:09]Read from MH i2c: E2 [21:17:09]MH_I2C_Read... [21:17:09]Read from MH i2c: E2 0B 00 [21:17:09]MH_I2C_Read... [21:17:09]Read from MH i2c: E2 0B 00 93 12 00 F6 D6 ED 76 D8 84 45 C1 90 00 B2 [21:17:09]RAPDU: F6 D6 ED 76 D8 84 45 C1 90 00 [21:17:09]wFMCommunicate OK [21:17:09]SAM_PROTO_SignData done [21:17:09]FM_MakeSignedData done [21:17:09]CreateOFDProtocolMessage [21:17:09]wFMCommunicate request_size=4 [21:17:09]MH_SAM_APDU [21:17:09]CAPDU: 80 11 00 00 [21:17:09]Write to MH i2c: E2 08 00 94 12 80 11 00 00 00 00 00 00 20 [21:17:09]Write i2c OK [21:17:09]MH_I2C_Read... [21:17:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:09]Read from MH i2c: E2 [21:17:09]MH_I2C_Read... [21:17:09]Read from MH i2c: E2 17 00 [21:17:09]MH_I2C_Read... [21:17:09]Read from MH i2c: E2 17 00 94 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 73 [21:17:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:17:09]wFMCommunicate OK [21:17:09]CreateOFDProtocolMessage done [21:17:09]OFDSenderStorePacket 76952 [21:17:09]StoreOFDPacket docnum=76952 [21:17:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 86 E7 06 01 EE AA 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7C A6 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 C1 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 38 00 00 00 00 07 04 06 00 BC 0F 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 55 82 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 98 2C 01 00 35 04 06 00 4D 38 87 1D 35 10 F6 D6 ED 76 D8 84 45 C1 [21:17:09]CheckFolder [21:17:09]dirname=/storage/ofd_packets [21:17:09]CheckFolder done [21:17:09]ProducePacketName [21:17:09]name=ofd_packets/00076952 [21:17:09]NVStorageSaveData ofd_packets/00076952 [21:17:09]File name is /storage/ofd_packets/00076952 [21:17:09]Write 300 bytes [21:17:09]NVStorageSaveData done [21:17:09]OFDSenderStorePacket done [21:17:09]KKMCreateOFDPacket done [21:17:09]NVStorageSaveData kkm_last_timestamp [21:17:09]File name is /storage/kkm_last_timestamp [21:17:09]Write 4 bytes [21:17:09]NVStorageSaveData done [21:17:09]ExternCall_PrintAddStr [21:17:09]wPrintStart [21:17:09]Write to MH i2c: 01 00 00 95 12 A7 [21:17:09]Write i2c OK [21:17:09]MH_I2C_Read... [21:17:09]Read from MH i2c: 01 [21:17:09]MH_I2C_Read... [21:17:09]Read from MH i2c: 01 07 00 [21:17:09]MH_I2C_Read... [21:17:09]Read from MH i2c: 01 07 00 95 12 00 00 00 00 00 FF 0F BC [21:17:09]RasterBufferAndPrint [21:17:09]line Счет N : (1)191496 [21:17:09]line ИНН: 02508201610067 [21:17:09]line Контрольно-Кассовый Чек [21:17:09]line ПРОДАЖА [21:17:09]line ТРК (МРК, ГНК) : 71 [21:17:09]line Товар: 2711190000 [21:17:09]line ГАЗ-К-5 [21:17:09]line 42.620 * 31.70 [21:17:09]line = 1351.05 [21:17:09]line НДС 12% НСП 1% [21:17:09]line > о реализуемом товаре [21:17:09]line ОКРУГЛЕНИЕ: -0.05 [21:17:09]line ИТОГО: 1351.00 [21:17:09]line Внесено: 2000.00 [21:17:09]line СДАЧА: 649.00 [21:17:09]line НСП 1% : 11.96 [21:17:09]line НДС 12% : 143.47 [21:17:09]line Наличными: 1351.00 [21:17:09]line Безнал.: 0.00 [21:17:09]line Место: АЗС № 106 "Партнер Нефть" [21:17:09]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [21:17:09]line СНО: Общий режим [21:17:09]line Чек 208 21.04.2024 21:17 [21:17:09]line Смена: 372 ФФД: 1.0 [21:17:09]line ЗНМ: 0300000141 [21:17:09]line РНМ: 0000000000091573 [21:17:09]line Версия ККМ: 001 [21:17:09]line [21:17:09]line Дисконтная программа [21:17:09]line СУГ [21:17:09]line номер 106 [21:17:09]line сэкономлено 42.62 сом [21:17:09]line ФМ: 0000000000874652 [21:17:09]line ФД: 76952 [21:17:09]line ФПД: 84905180345616 [21:17:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T211709&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76952&fm=84905180345616&tin=02508201610067®Number=0000000000091573&sum=135100 [21:17:10]OFD Sender: Processing packet 76952 [packets to send 129, broken 128] [21:17:10]ProducePacketName [21:17:10]name=ofd_packets/00076952 [21:17:10]OFD Sender: To server: pG, [21:17:10]CommunicateWithHost lk.salyk.kg:30040 [21:17:10]ConnectInit lk.salyk.kg [21:17:10]written 0, free lines is 4095 [21:17:10]Connected sock=10 [21:17:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 86 E7 06 01 EE AA 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7C A6 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 C1 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 38 00 00 00 00 07 04 06 00 BC 0F 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 55 82 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 98 2C 01 00 35 04 06 00 4D 38 87 1D 35 10 F6 D6 ED 76 D8 84 45 C1 [21:17:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 1D AA 47 00 53 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 98 2C 01 00 F4 03 04 00 D9 29 25 66 B6 04 01 00 00 FA AC A2 B9 FC 1E 61 C8 [21:17:10]CommunicateWithHost err = 0 [21:17:10]CheckOFDResponse [21:17:10]1017 (14) - 77093643461234 [21:17:10]1041 (16) - 0000000000874652 [21:17:10]1040 (4) - 76952 [21:17:10]1012 (4) - 21.04.2024 14:59 [21:17:10]1206 (1) - 0 [21:17:10]OFD Sender: Remove packet 76952 [21:17:10]ProducePacketName [21:17:10]name=ofd_packets/00076952 [21:17:10]NVStorageDeleteData [21:17:10]Write to MH i2c: 01 00 00 C4 12 D6 [21:17:10]Write i2c OK [21:17:10]MH_I2C_Read... [21:17:10]Read from MH i2c: 01 [21:17:10]MH_I2C_Read... [21:17:10]Read from MH i2c: 01 07 00 [21:17:10]MH_I2C_Read... [21:17:10]Read from MH i2c: 01 07 00 C4 12 00 00 00 00 00 8E 0C 77 [21:17:10]RasterBufferAndPrint [21:17:10]line [21:17:10]line [21:17:10]line [21:17:10]line [21:17:10]line [21:17:10]written 0, free lines is 3223 [21:17:10]MH_Cut [21:17:10]Write to MH i2c: D1 01 00 CB 12 01 AF [21:17:10]Write i2c OK [21:17:10]MH_I2C_Read... [21:17:10]Read from MH i2c: D1 [21:17:10]MH_I2C_Read... [21:17:10]Read from MH i2c: D1 01 00 [21:17:10]MH_I2C_Read... [21:17:10]Read from MH i2c: D1 01 00 CB 12 00 AE [21:17:10]Write to MH i2c: 01 00 00 CC 12 DE [21:17:10]Write i2c OK [21:17:10]MH_I2C_Read... [21:17:11]OFD Sender: No OFD packet to send [21:17:11]*** Cut start [21:17:11]*** Partial cut [21:17:11]*** CUTSNS_PIN = 1 [21:17:11]*** CUTSNS_PIN = 0 [21:17:11]*** Brake cut motor [21:17:11]Read from MH i2c: 01 [21:17:11]MH_I2C_Read... [21:17:11]*** Stop cut motor [21:17:11]*** Cut end [21:17:11]Read from MH i2c: 01 07 00 [21:17:11]MH_I2C_Read... [21:17:11]Read from MH i2c: 01 07 00 CC 12 00 00 00 00 00 FF 0F F3 [21:17:11]process_action close_receipt done [21:17:11]requested_data is exist [21:17:11]produce_requested_data [21:17:11]requested_item fm.sn is exist - process it [21:17:11]wFMCommunicate request_size=4 [21:17:11]MH_SAM_APDU [21:17:11]CAPDU: 80 11 00 00 [21:17:11]Write to MH i2c: E2 08 00 CD 12 80 11 00 00 00 00 00 00 59 [21:17:11]Write i2c OK [21:17:11]MH_I2C_Read... [21:17:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:12]Read from MH i2c: E2 [21:17:12]MH_I2C_Read... [21:17:12]Read from MH i2c: E2 17 00 [21:17:12]MH_I2C_Read... [21:17:12]Read from MH i2c: E2 17 00 CD 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 AC [21:17:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:17:12]wFMCommunicate OK [21:17:12]requested_item fd.num is exist - process it [21:17:12]SAM_PROTO_GetFieldsCounters [21:17:12]wFMCommunicate request_size=4 [21:17:12]MH_SAM_APDU [21:17:12]CAPDU: 80 13 00 00 [21:17:12]Write to MH i2c: E2 08 00 CE 12 80 13 00 00 00 00 00 00 5C [21:17:12]Write i2c OK [21:17:12]MH_I2C_Read... [21:17:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:17:12]Read from MH i2c: E2 [21:17:12]MH_I2C_Read... [21:17:12]Read from MH i2c: E2 62 00 [21:17:12]MH_I2C_Read... [21:17:12]Read from MH i2c: E2 62 00 CE 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 98 2C 01 00 0E 04 04 00 74 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 27 [21:17: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 98 2C 01 00 0E 04 04 00 74 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 [21:17:12]wFMCommunicate OK [21:17:12]SAM_PROTO_GetFieldsCounters done [21:17:12]requested_item shift.num is exist - process it [21:17:12]requested_item shift.opened is exist - process it [21:17:12]req_shift_opened [21:17:12]FM_GetShiftState [21:17:12]SAM_PROTO_GetShiftState [21:17:12]wFMCommunicate request_size=4 [21:17:12]MH_SAM_APDU [21:17:12]CAPDU: 80 13 01 00 [21:17:12]Write to MH i2c: E2 08 00 CF 12 80 13 01 00 00 00 00 00 5E [21:17:12]Write i2c OK [21:17:12]MH_I2C_Read... [21:17:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:12]Read from MH i2c: E2 [21:17:12]MH_I2C_Read... [21:17:12]Read from MH i2c: E2 0E 00 [21:17:12]MH_I2C_Read... [21:17:12]Read from MH i2c: E2 0E 00 CF 12 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 A5 [21:17:12]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:17:12]wFMCommunicate OK [21:17:12]SAM_PROTO_GetShiftState done [21:17:12]FM_GetShiftState done [21:17:12]req_shift_opened done [21:17:12]requested_item shift.open_date is exist - process it [21:17:12]req_shift_open_date [21:17:12]req_shift_open_date done [21:17:12]produce_requested_data done [21:17:12]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76952,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [21:17:12]process_action_free close_receipt [21:17:12]json_value_free [21:17:12]json_value_free done [21:17:12]process_json_proto returns [21:17:12]Send response to host [21:17:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76952,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [21:17:12]free response buf [21:17:12]execute_script done [21:17:12]execute_script returns [21:17:12]free content buf [21:17:12]Sock 9.Close socket [21:17:12]Sock 9.Thread stoped [21:17:16]OFD Sender: No OFD packet to send [21:17:21]OFD Sender: No OFD packet to send [21:17:26]OFD Sender: No OFD packet to send [21:17:31]OFD Sender: No OFD packet to send [21:17:36]OFD Sender: No OFD packet to send [21:17:41]OFD Sender: No OFD packet to send [21:17:46]OFD Sender: No OFD packet to send [21:17:51]OFD Sender: No OFD packet to send [21:17:56]OFD Sender: No OFD packet to send [21:18:01]OFD Sender: No OFD packet to send [21:18:06]OFD Sender: No OFD packet to send [21:18:11]OFD Sender: No OFD packet to send [21:18:16]OFD Sender: No OFD packet to send [21:18:21]OFD Sender: No OFD packet to send [21:18:26]OFD Sender: No OFD packet to send [21:18:31]OFD Sender: No OFD packet to send [21:18:36]OFD Sender: No OFD packet to send [21:18:41]OFD Sender: No OFD packet to send [21:18:46]OFD Sender: No OFD packet to send [21:18:51]OFD Sender: No OFD packet to send [21:18:56]OFD Sender: No OFD packet to send [21:19:01]OFD Sender: No OFD packet to send [21:19:06]OFD Sender: No OFD packet to send [21:19:11]OFD Sender: No OFD packet to send [21:19:16]OFD Sender: No OFD packet to send [21:19:21]OFD Sender: No OFD packet to send [21:19:26]OFD Sender: No OFD packet to send [21:19:31]OFD Sender: No OFD packet to send [21:19:36]OFD Sender: No OFD packet to send [21:19:41]OFD Sender: No OFD packet to send [21:19:46]OFD Sender: No OFD packet to send [21:19:51]OFD Sender: No OFD packet to send [21:19:56]OFD Sender: No OFD packet to send [21:20:01]OFD Sender: No OFD packet to send [21:20:06]OFD Sender: No OFD packet to send [21:20:11]OFD Sender: No OFD packet to send [21:20:16]OFD Sender: No OFD packet to send [21:20:21]OFD Sender: No OFD packet to send [21:20:26]OFD Sender: No OFD packet to send [21:20:31]OFD Sender: No OFD packet to send [21:20:36]OFD Sender: No OFD packet to send [21:20:41]OFD Sender: No OFD packet to send [21:20:46]OFD Sender: No OFD packet to send [21:20:51]OFD Sender: No OFD packet to send [21:20:56]OFD Sender: No OFD packet to send [21:21:01]OFD Sender: No OFD packet to send [21:21:06]OFD Sender: No OFD packet to send [21:21:11]OFD Sender: No OFD packet to send [21:21:16]OFD Sender: No OFD packet to send [21:21:21]OFD Sender: No OFD packet to send [21:21:26]OFD Sender: No OFD packet to send [21:21:31]OFD Sender: No OFD packet to send [21:21:36]OFD Sender: No OFD packet to send [21:21:41]OFD Sender: No OFD packet to send [21:21:46]OFD Sender: No OFD packet to send [21:21:51]OFD Sender: No OFD packet to send [21:21:56]OFD Sender: No OFD packet to send [21:22:01]OFD Sender: No OFD packet to send [21:22:06]OFD Sender: No OFD packet to send [21:22:11]OFD Sender: No OFD packet to send [21:22:16]OFD Sender: No OFD packet to send [21:22:21]OFD Sender: No OFD packet to send [21:22:26]OFD Sender: No OFD packet to send [21:22:31]OFD Sender: No OFD packet to send [21:22:36]OFD Sender: No OFD packet to send [21:22:41]OFD Sender: No OFD packet to send [21:22:46]OFD Sender: No OFD packet to send [21:22:51]OFD Sender: No OFD packet to send [21:22:56]OFD Sender: No OFD packet to send [21:23:01]OFD Sender: No OFD packet to send [21:23:06]OFD Sender: No OFD packet to send [21:23:11]OFD Sender: No OFD packet to send [21:23:16]OFD Sender: No OFD packet to send [21:23:21]OFD Sender: No OFD packet to send [21:23:26]OFD Sender: No OFD packet to send [21:23:31]OFD Sender: No OFD packet to send [21:23:36]OFD Sender: No OFD packet to send [21:23:41]OFD Sender: No OFD packet to send [21:23:46]OFD Sender: No OFD packet to send [21:23:51]OFD Sender: No OFD packet to send [21:23:56]OFD Sender: No OFD packet to send [21:24:01]OFD Sender: No OFD packet to send [21:24:06]OFD Sender: No OFD packet to send [21:24:11]OFD Sender: No OFD packet to send [21:24:16]OFD Sender: No OFD packet to send [21:24:21]OFD Sender: No OFD packet to send [21:24:26]OFD Sender: No OFD packet to send [21:24:31]OFD Sender: No OFD packet to send [21:24:36]OFD Sender: No OFD packet to send [21:24:38]accept exits with 8 [21:24:38]New connection [21:24:38]New thread 3066801508 created [21:24:38]Thread 3066944868 joined [21:24:38]Waiting for new connection... [21:24:38] Sock 8.Parse request [21:24:38]Sock 8.Check first char [21:24:38]Sock 8.First char is OK [21:24:38]request: POST /json_proto HTTP/1.0 [21:24:38]Method: POST [21:24:38]URL: /json_proto [21:24:38]Method is POST - this is cgi request [21:24:38]url: /json_proto [21:24:38]query_string will be loaded in cgi processing [21:24:38]execute_cgi json_proto POST (null) [21:24:38]execute_cgi path=json_proto method=POST [21:24:38]POST find Content-Length [21:24:38]Host: 172.17.62.5:8080 [21:24:38]Content-Length: 677 [21:24:38]Content-Type: application/json [21:24:38] [21:24:38]POST finish read [21:24:38]Found Content-Length = 677 [21:24:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191502", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 3.430, "sum" : 250.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:24:38]execute_script... [21:24: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)191502", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 3.430, "sum" : 250.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:24:38]POST & json_proto [21:24:38]process_json_proto [21:24:38]json parsed OK: [21:24:38]protocol is kg_v1.0 [21:24:38]action value=close_receipt [21:24:38]process_action close_receipt [21:24:38]cmd_close_receipt [21:24:38]MH_GetDate [21:24:38]Write to MH i2c: F0 00 00 D0 12 D1 [21:24:38]Write i2c OK [21:24:38]MH_I2C_Read... [21:24:38]Read from MH i2c: F0 [21:24:38]MH_I2C_Read... [21:24:38]Read from MH i2c: F0 09 00 [21:24:38]MH_I2C_Read... [21:24:38]Read from MH i2c: F0 09 00 D0 12 00 17 84 25 66 F4 E9 65 64 A6 [21:24:38]GetLastDocTimeStamp 1713734229 [21:24:38]current date 1713734679 [21:24:38]FM_GetShiftState [21:24:38]SAM_PROTO_GetShiftState [21:24:38]wFMCommunicate request_size=4 [21:24:38]MH_SAM_APDU [21:24:38]CAPDU: 80 13 01 00 [21:24:38]Write to MH i2c: E2 08 00 D1 12 80 13 01 00 00 00 00 00 60 [21:24:38]Write i2c OK [21:24:38]MH_I2C_Read... [21:24:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:38]Read from MH i2c: E2 [21:24:38]MH_I2C_Read... [21:24:38]Read from MH i2c: E2 0E 00 [21:24:38]MH_I2C_Read... [21:24:38]Read from MH i2c: E2 0E 00 D1 12 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 A7 [21:24:38]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:24:38]wFMCommunicate OK [21:24:38]SAM_PROTO_GetShiftState done [21:24:38]FM_GetShiftState done [21:24:38]opened in 1713658965 [21:24:38]opened+sec_in_day 1713745365 [21:24:38]quantity*price = 25004 [21:24:38]sum+1 = 25006 [21:24:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 209 21.04.2024 21:24 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76953 ФПД: 9951412130825 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T212439&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76953&fm=9951412130825&tin=02508201610067®Number=0000000000091573&sum=25000 [21:24:39]StoreToDocumentArchive [21:24:39]shift 372 fd 76953 [21:24:39]save to /storage/0372/doc_00076953 [21:24:39]save last doc name /storage/0372/doc_00076953 to /storage/kkm_last_doc_name [21:24:39]save OK [21:24:39]Clear old archive folders... [21:24:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:24:39]tlvbuf is 00C4CCD0 [21:24:39]SAM_PROTO_ClearQueue [21:24:39]wFMCommunicate request_size=4 [21:24:39]MH_SAM_APDU [21:24:39]CAPDU: 80 09 00 00 [21:24:39]Write to MH i2c: E2 08 00 DE 12 80 09 00 00 00 00 00 00 62 [21:24:39]Write i2c OK [21:24:39]MH_I2C_Read... [21:24:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:24:39]Read from MH i2c: E2 [21:24:39]MH_I2C_Read... [21:24:39]Read from MH i2c: E2 03 00 [21:24:39]MH_I2C_Read... [21:24:39]Read from MH i2c: E2 03 00 DE 12 00 90 00 64 [21:24:39]RAPDU: 90 00 [21:24:39]wFMCommunicate OK [21:24:39]SAM_PROTO_ClearQueue done [21:24:39]KKMCreateOFDPacket [21:24:39]OFDProtocolAddRootSTLVToBuf [21:24:39]FM_MakeSignedData [21:24:39]FM_MakeSignedData [21:24:39]SAM_PROTO_SignData [21:24:39]wFMCommunicate request_size=4 [21:24:39]MH_SAM_APDU [21:24:39]CAPDU: 80 0D 01 02 [21:24:39]Write to MH i2c: E2 08 00 DF 12 80 0D 01 02 00 00 00 00 6A [21:24:39]Write i2c OK [21:24:39]MH_I2C_Read... [21:24:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:24:39]Read from MH i2c: E2 [21:24:39]MH_I2C_Read... [21:24:39]Read from MH i2c: E2 03 00 [21:24:39]MH_I2C_Read... [21:24:39]Read from MH i2c: E2 03 00 DF 12 00 90 00 65 [21:24:39]RAPDU: 90 00 [21:24:39]wFMCommunicate OK [21:24:39]wFMCommunicate request_size=255 [21:24:39]MH_SAM_APDU [21:24: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 66 0D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 17 84 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 99 2C 01 00 35 04 06 00 09 [21:24:39]Write to MH i2c: E2 02 01 E0 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 66 0D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 17 84 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 99 2C 01 00 35 04 06 00 09 00 00 22 [21:24:39]Write i2c OK [21:24:39]MH_I2C_Read... [21:24:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:39]Read from MH i2c: E2 [21:24:39]MH_I2C_Read... [21:24:39]Read from MH i2c: E2 03 00 [21:24:39]MH_I2C_Read... [21:24:39]Read from MH i2c: E2 03 00 E0 12 00 90 00 66 [21:24:39]RAPDU: 90 00 [21:24:39]wFMCommunicate OK [21:24:39]wFMCommunicate request_size=10 [21:24:39]MH_SAM_APDU [21:24:39]CAPDU: 80 0D 02 02 05 0C FE 62 94 09 [21:24:39]Write to MH i2c: E2 0D 00 E1 12 80 0D 02 02 05 00 0C FE 62 94 09 00 00 80 [21:24:39]Write i2c OK [21:24:39]MH_I2C_Read... [21:24:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:39]Read from MH i2c: E2 [21:24:39]MH_I2C_Read... [21:24:39]Read from MH i2c: E2 03 00 [21:24:39]MH_I2C_Read... [21:24:39]Read from MH i2c: E2 03 00 E1 12 00 90 00 67 [21:24:39]RAPDU: 90 00 [21:24:39]wFMCommunicate OK [21:24:39]wFMCommunicate request_size=4 [21:24:39]MH_SAM_APDU [21:24:39]CAPDU: 80 0D 03 02 [21:24:39]Write to MH i2c: E2 08 00 E2 12 80 0D 03 02 00 00 00 00 6F [21:24:39]Write i2c OK [21:24:39]MH_I2C_Read... [21:24:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:24:39]Read from MH i2c: E2 [21:24:39]MH_I2C_Read... [21:24:39]Read from MH i2c: E2 0B 00 [21:24:39]MH_I2C_Read... [21:24:39]Read from MH i2c: E2 0B 00 E2 12 00 3F 59 BC 0D 19 48 DC EF 90 00 FD [21:24:39]RAPDU: 3F 59 BC 0D 19 48 DC EF 90 00 [21:24:39]wFMCommunicate OK [21:24:39]SAM_PROTO_SignData done [21:24:39]FM_MakeSignedData done [21:24:39]CreateOFDProtocolMessage [21:24:39]wFMCommunicate request_size=4 [21:24:39]MH_SAM_APDU [21:24:39]CAPDU: 80 11 00 00 [21:24:39]Write to MH i2c: E2 08 00 E3 12 80 11 00 00 00 00 00 00 6F [21:24:39]Write i2c OK [21:24:39]MH_I2C_Read... [21:24:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:39]Read from MH i2c: E2 [21:24:39]MH_I2C_Read... [21:24:39]Read from MH i2c: E2 17 00 [21:24:39]MH_I2C_Read... [21:24:39]Read from MH i2c: E2 17 00 E3 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 C2 [21:24:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:24:39]wFMCommunicate OK [21:24:39]CreateOFDProtocolMessage done [21:24:39]OFDSenderStorePacket 76953 [21:24:39]StoreOFDPacket docnum=76953 [21:24:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 33 90 07 01 E2 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 66 0D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 17 84 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 99 2C 01 00 35 04 06 00 09 0C FE 62 94 09 3F 59 BC 0D 19 48 DC EF [21:24:39]CheckFolder [21:24:39]dirname=/storage/ofd_packets [21:24:39]CheckFolder done [21:24:39]ProducePacketName [21:24:39]name=ofd_packets/00076953 [21:24:39]NVStorageSaveData ofd_packets/00076953 [21:24:39]File name is /storage/ofd_packets/00076953 [21:24:39]Write 301 bytes [21:24:39]NVStorageSaveData done [21:24:39]OFDSenderStorePacket done [21:24:39]KKMCreateOFDPacket done [21:24:39]NVStorageSaveData kkm_last_timestamp [21:24:39]File name is /storage/kkm_last_timestamp [21:24:39]Write 4 bytes [21:24:39]NVStorageSaveData done [21:24:39]ExternCall_PrintAddStr [21:24:39]wPrintStart [21:24:39]Write to MH i2c: 01 00 00 E4 12 F6 [21:24:39]Write i2c OK [21:24:39]MH_I2C_Read... [21:24:39]Read from MH i2c: 01 [21:24:39]MH_I2C_Read... [21:24:39]Read from MH i2c: 01 07 00 [21:24:39]MH_I2C_Read... [21:24:39]Read from MH i2c: 01 07 00 E4 12 00 00 00 00 00 FF 0F 0B [21:24:39]RasterBufferAndPrint [21:24:39]line Счет N : (1)191502 [21:24:39]line ИНН: 02508201610067 [21:24:39]line Контрольно-Кассовый Чек [21:24:39]line ПРОДАЖА [21:24:39]line ТРК (МРК, ГНК) : 21 [21:24:39]line Товар: 2710124500 [21:24:39]line Аи-95-К-5 [21:24:39]line 3.430 * 72.90 [21:24:39]line = 250.05 [21:24:39]line НДС 12% НСП 1% [21:24:39]line > о реализуемом товаре [21:24:39]line ОКРУГЛЕНИЕ: -0.05 [21:24:39]line ИТОГО: 250.00 [21:24:39]line Внесено: 250.00 [21:24:39]line СДАЧА: 0.00 [21:24:39]line НСП 1% : 2.21 [21:24:39]line НДС 12% : 26.55 [21:24:39]line Наличными: 250.00 [21:24:39]line Безнал.: 0.00 [21:24:39]line Место: АЗС № 106 "Партнер Нефть" [21:24:39]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [21:24:39]line СНО: Общий режим [21:24:39]line Чек 209 21.04.2024 21:24 [21:24:39]line Смена: 372 ФФД: 1.0 [21:24:39]line ЗНМ: 0300000141 [21:24:39]line РНМ: 0000000000091573 [21:24:39]line Версия ККМ: 001 [21:24:39]line ФМ: 0000000000874652 [21:24:39]line ФД: 76953 [21:24:39]line ФПД: 9951412130825 [21:24:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T212439&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76953&fm=9951412130825&tin=02508201610067®Number=0000000000091573&sum=25000 [21:24:40]written 0, free lines is 4095 [21:24:40]OFD Sender: Processing packet 76953 [packets to send 129, broken 128] [21:24:40]ProducePacketName [21:24:40]name=ofd_packets/00076953 [21:24:40]OFD Sender: To server: pG, [21:24:40]CommunicateWithHost lk.salyk.kg:30040 [21:24:40]ConnectInit lk.salyk.kg [21:24:40]Connected sock=10 [21:24:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 33 90 07 01 E2 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 66 0D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 17 84 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 99 2C 01 00 35 04 06 00 09 0C FE 62 94 09 3F 59 BC 0D 19 48 DC EF [21:24:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 A8 51 47 00 97 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 99 2C 01 00 F4 03 04 00 9B 2B 25 66 B6 04 01 00 00 31 44 11 3D 37 F5 FC 1A [21:24:40]CommunicateWithHost err = 0 [21:24:40]CheckOFDResponse [21:24:40]1017 (14) - 77093643461234 [21:24:40]1041 (16) - 0000000000874652 [21:24:40]1040 (4) - 76953 [21:24:40]1012 (4) - 21.04.2024 15:07 [21:24:40]1206 (1) - 0 [21:24:40]OFD Sender: Remove packet 76953 [21:24:40]ProducePacketName [21:24:40]name=ofd_packets/00076953 [21:24:40]NVStorageDeleteData [21:24:40]Write to MH i2c: 01 00 00 0E 13 21 [21:24:40]Write i2c OK [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: 01 [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: 01 07 00 [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: 01 07 00 0E 13 00 00 00 00 00 E4 0C 18 [21:24:40]RasterBufferAndPrint [21:24:40]line [21:24:40]line [21:24:40]line [21:24:40]line [21:24:40]line [21:24:40]written 0, free lines is 3306 [21:24:40]MH_Cut [21:24:40]Write to MH i2c: D1 01 00 15 13 01 FA [21:24:40]Write i2c OK [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: D1 [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: D1 01 00 [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: D1 01 00 15 13 00 F9 [21:24:40]Write to MH i2c: 01 00 00 16 13 29 [21:24:40]Write i2c OK [21:24:40]MH_I2C_Read... [21:24:41]OFD Sender: No OFD packet to send [21:24:41]*** Cut start [21:24:41]*** Partial cut [21:24:41]*** CUTSNS_PIN = 1 [21:24:41]*** CUTSNS_PIN = 0 [21:24:41]*** Brake cut motor [21:24:42]Read from MH i2c: 01 [21:24:42]MH_I2C_Read... [21:24:42]*** Stop cut motor [21:24:42]*** Cut end [21:24:42]Read from MH i2c: 01 07 00 [21:24:42]MH_I2C_Read... [21:24:42]Read from MH i2c: 01 07 00 16 13 00 00 00 00 00 FF 0F 3E [21:24:42]process_action close_receipt done [21:24:42]requested_data is exist [21:24:42]produce_requested_data [21:24:42]requested_item fm.sn is exist - process it [21:24:42]wFMCommunicate request_size=4 [21:24:42]MH_SAM_APDU [21:24:42]CAPDU: 80 11 00 00 [21:24:42]Write to MH i2c: E2 08 00 17 13 80 11 00 00 00 00 00 00 A4 [21:24:42]Write i2c OK [21:24:42]MH_I2C_Read... [21:24:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:42]Read from MH i2c: E2 [21:24:42]MH_I2C_Read... [21:24:42]Read from MH i2c: E2 17 00 [21:24:42]MH_I2C_Read... [21:24:42]Read from MH i2c: E2 17 00 17 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F7 [21:24:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:24:42]wFMCommunicate OK [21:24:42]requested_item fd.num is exist - process it [21:24:42]SAM_PROTO_GetFieldsCounters [21:24:42]wFMCommunicate request_size=4 [21:24:42]MH_SAM_APDU [21:24:42]CAPDU: 80 13 00 00 [21:24:42]Write to MH i2c: E2 08 00 18 13 80 13 00 00 00 00 00 00 A7 [21:24:42]Write i2c OK [21:24:42]MH_I2C_Read... [21:24:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:24:42]Read from MH i2c: E2 [21:24:42]MH_I2C_Read... [21:24:42]Read from MH i2c: E2 62 00 [21:24:42]MH_I2C_Read... [21:24:42]Read from MH i2c: E2 62 00 18 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 99 2C 01 00 0E 04 04 00 74 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 76 [21:24:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 99 2C 01 00 0E 04 04 00 74 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 [21:24:42]wFMCommunicate OK [21:24:42]SAM_PROTO_GetFieldsCounters done [21:24:42]requested_item shift.num is exist - process it [21:24:42]requested_item shift.opened is exist - process it [21:24:42]req_shift_opened [21:24:42]FM_GetShiftState [21:24:42]SAM_PROTO_GetShiftState [21:24:42]wFMCommunicate request_size=4 [21:24:42]MH_SAM_APDU [21:24:42]CAPDU: 80 13 01 00 [21:24:42]Write to MH i2c: E2 08 00 19 13 80 13 01 00 00 00 00 00 A9 [21:24:42]Write i2c OK [21:24:42]MH_I2C_Read... [21:24:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:42]Read from MH i2c: E2 [21:24:42]MH_I2C_Read... [21:24:42]Read from MH i2c: E2 0E 00 [21:24:42]MH_I2C_Read... [21:24:42]Read from MH i2c: E2 0E 00 19 13 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 F0 [21:24:42]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:24:42]wFMCommunicate OK [21:24:42]SAM_PROTO_GetShiftState done [21:24:42]FM_GetShiftState done [21:24:42]req_shift_opened done [21:24:42]requested_item shift.open_date is exist - process it [21:24:42]req_shift_open_date [21:24:42]req_shift_open_date done [21:24:42]produce_requested_data done [21:24:42]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76953,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [21:24:42]process_action_free close_receipt [21:24:42]json_value_free [21:24:42]json_value_free done [21:24:42]process_json_proto returns [21:24:42]Send response to host [21:24:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76953,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [21:24:42]free response buf [21:24:42]execute_script done [21:24:42]execute_script returns [21:24:42]free content buf [21:24:42]Sock 8.Close socket [21:24:42]Sock 8.Thread stoped [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:26]accept exits with 9 [21:25:26]New connection [21:25:26]New thread 3066944868 created [21:25:26]Thread 3066801508 joined [21:25:26]Waiting for new connection... [21:25:26] Sock 9.Parse request [21:25:26]Sock 9.Check first char [21:25:26]Sock 9.First char is OK [21:25:26]request: POST /json_proto HTTP/1.0 [21:25:26]Method: POST [21:25:26]URL: /json_proto [21:25:26]Method is POST - this is cgi request [21:25:26]url: /json_proto [21:25:26]query_string will be loaded in cgi processing [21:25:26]execute_cgi json_proto POST (null) [21:25:26]execute_cgi path=json_proto method=POST [21:25:26]POST find Content-Length [21:25:26]Host: 172.17.62.5:8080 [21:25:26]Content-Length: 682 [21:25:26]Content-Type: application/json [21:25:26] [21:25:26]POST finish read [21:25:26]Found Content-Length = 682 [21:25:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191503", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:25:26]execute_script... [21:25: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)191503", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:25:26]POST & json_proto [21:25:26]process_json_proto [21:25:26]json parsed OK: [21:25:26]protocol is kg_v1.0 [21:25:26]action value=close_receipt [21:25:26]process_action close_receipt [21:25:26]cmd_close_receipt [21:25:26]MH_GetDate [21:25:26]Write to MH i2c: F0 00 00 1A 13 1C [21:25:26]Write i2c OK [21:25:26]MH_I2C_Read... [21:25:26]Read from MH i2c: F0 [21:25:26]MH_I2C_Read... [21:25:26]Read from MH i2c: F0 09 00 [21:25:26]MH_I2C_Read... [21:25:26]Read from MH i2c: F0 09 00 1A 13 00 48 84 25 66 F4 E9 65 64 22 [21:25:26]GetLastDocTimeStamp 1713734679 [21:25:26]current date 1713734728 [21:25:26]FM_GetShiftState [21:25:26]SAM_PROTO_GetShiftState [21:25:26]wFMCommunicate request_size=4 [21:25:26]MH_SAM_APDU [21:25:26]CAPDU: 80 13 01 00 [21:25:26]Write to MH i2c: E2 08 00 1B 13 80 13 01 00 00 00 00 00 AB [21:25:26]Write i2c OK [21:25:26]MH_I2C_Read... [21:25:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:26]Read from MH i2c: E2 [21:25:26]MH_I2C_Read... [21:25:26]Read from MH i2c: E2 0E 00 [21:25:26]MH_I2C_Read... [21:25:26]Read from MH i2c: E2 0E 00 1B 13 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 F2 [21:25:26]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:25:26]wFMCommunicate OK [21:25:26]SAM_PROTO_GetShiftState done [21:25:26]FM_GetShiftState done [21:25:26]opened in 1713658965 [21:25:26]opened+sec_in_day 1713745365 [21:25:26]quantity*price = 100013 [21:25:26]sum+1 = 100014 [21:25:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 210 21.04.2024 21:25 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76954 ФПД: 142191359469044 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T212528&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76954&fm=142191359469044&tin=02508201610067®Number=0000000000091573&sum=100000 [21:25:27]StoreToDocumentArchive [21:25:27]shift 372 fd 76954 [21:25:27]save to /storage/0372/doc_00076954 [21:25:27]save last doc name /storage/0372/doc_00076954 to /storage/kkm_last_doc_name [21:25:27]save OK [21:25:27]Clear old archive folders... [21:25:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:25:27]tlvbuf is 00C4CA90 [21:25:27]SAM_PROTO_ClearQueue [21:25:27]wFMCommunicate request_size=4 [21:25:27]MH_SAM_APDU [21:25:27]CAPDU: 80 09 00 00 [21:25:27]Write to MH i2c: E2 08 00 28 13 80 09 00 00 00 00 00 00 AD [21:25:27]Write i2c OK [21:25:27]MH_I2C_Read... [21:25:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:25:27]Read from MH i2c: E2 [21:25:27]MH_I2C_Read... [21:25:27]Read from MH i2c: E2 03 00 [21:25:27]MH_I2C_Read... [21:25:27]Read from MH i2c: E2 03 00 28 13 00 90 00 AF [21:25:27]RAPDU: 90 00 [21:25:27]wFMCommunicate OK [21:25:27]SAM_PROTO_ClearQueue done [21:25:27]KKMCreateOFDPacket [21:25:27]OFDProtocolAddRootSTLVToBuf [21:25:27]FM_MakeSignedData [21:25:27]FM_MakeSignedData [21:25:27]SAM_PROTO_SignData [21:25:27]wFMCommunicate request_size=4 [21:25:27]MH_SAM_APDU [21:25:27]CAPDU: 80 0D 01 02 [21:25:27]Write to MH i2c: E2 08 00 29 13 80 0D 01 02 00 00 00 00 B5 [21:25:27]Write i2c OK [21:25:27]MH_I2C_Read... [21:25:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:25:27]Read from MH i2c: E2 [21:25:27]MH_I2C_Read... [21:25:27]Read from MH i2c: E2 03 00 [21:25:27]MH_I2C_Read... [21:25:27]Read from MH i2c: E2 03 00 29 13 00 90 00 B0 [21:25:27]RAPDU: 90 00 [21:25:27]wFMCommunicate OK [21:25:27]wFMCommunicate request_size=255 [21:25:27]MH_SAM_APDU [21:25: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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 48 84 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9A 2C 01 00 35 04 06 00 81 [21:25:27]Write to MH i2c: E2 02 01 2A 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 48 84 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9A 2C 01 00 35 04 06 00 81 00 00 6C [21:25:28]Write i2c OK [21:25:28]MH_I2C_Read... [21:25:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:28]Read from MH i2c: E2 [21:25:28]MH_I2C_Read... [21:25:28]Read from MH i2c: E2 03 00 [21:25:28]MH_I2C_Read... [21:25:28]Read from MH i2c: E2 03 00 2A 13 00 90 00 B1 [21:25:28]RAPDU: 90 00 [21:25:28]wFMCommunicate OK [21:25:28]wFMCommunicate request_size=10 [21:25:28]MH_SAM_APDU [21:25:28]CAPDU: 80 0D 02 02 05 52 81 78 A5 F4 [21:25:28]Write to MH i2c: E2 0D 00 2B 13 80 0D 02 02 05 00 52 81 78 A5 F4 00 00 A6 [21:25:28]Write i2c OK [21:25:28]MH_I2C_Read... [21:25:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:28]Read from MH i2c: E2 [21:25:28]MH_I2C_Read... [21:25:28]Read from MH i2c: E2 03 00 [21:25:28]MH_I2C_Read... [21:25:28]Read from MH i2c: E2 03 00 2B 13 00 90 00 B2 [21:25:28]RAPDU: 90 00 [21:25:28]wFMCommunicate OK [21:25:28]wFMCommunicate request_size=4 [21:25:28]MH_SAM_APDU [21:25:28]CAPDU: 80 0D 03 02 [21:25:28]Write to MH i2c: E2 08 00 2C 13 80 0D 03 02 00 00 00 00 BA [21:25:28]Write i2c OK [21:25:28]MH_I2C_Read... [21:25:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:25:28]Read from MH i2c: E2 [21:25:28]MH_I2C_Read... [21:25:28]Read from MH i2c: E2 0B 00 [21:25:28]MH_I2C_Read... [21:25:28]Read from MH i2c: E2 0B 00 2C 13 00 D3 6A EF 35 56 C6 A6 57 90 00 35 [21:25:28]RAPDU: D3 6A EF 35 56 C6 A6 57 90 00 [21:25:28]wFMCommunicate OK [21:25:28]SAM_PROTO_SignData done [21:25:28]FM_MakeSignedData done [21:25:28]CreateOFDProtocolMessage [21:25:28]wFMCommunicate request_size=4 [21:25:28]MH_SAM_APDU [21:25:28]CAPDU: 80 11 00 00 [21:25:28]Write to MH i2c: E2 08 00 2D 13 80 11 00 00 00 00 00 00 BA [21:25:28]Write i2c OK [21:25:28]MH_I2C_Read... [21:25:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:28]Read from MH i2c: E2 [21:25:28]MH_I2C_Read... [21:25:28]Read from MH i2c: E2 17 00 [21:25:28]MH_I2C_Read... [21:25:28]Read from MH i2c: E2 17 00 2D 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 0D [21:25:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:25:28]wFMCommunicate OK [21:25:28]CreateOFDProtocolMessage done [21:25:28]OFDSenderStorePacket 76954 [21:25:28]StoreOFDPacket docnum=76954 [21:25:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 82 B1 07 01 3A 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 48 84 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9A 2C 01 00 35 04 06 00 81 52 81 78 A5 F4 D3 6A EF 35 56 C6 A6 57 [21:25:28]CheckFolder [21:25:28]dirname=/storage/ofd_packets [21:25:28]CheckFolder done [21:25:28]ProducePacketName [21:25:28]name=ofd_packets/00076954 [21:25:28]NVStorageSaveData ofd_packets/00076954 [21:25:28]File name is /storage/ofd_packets/00076954 [21:25:28]Write 301 bytes [21:25:28]NVStorageSaveData done [21:25:28]OFDSenderStorePacket done [21:25:28]KKMCreateOFDPacket done [21:25:28]NVStorageSaveData kkm_last_timestamp [21:25:28]File name is /storage/kkm_last_timestamp [21:25:28]Write 4 bytes [21:25:28]NVStorageSaveData done [21:25:28]ExternCall_PrintAddStr [21:25:28]wPrintStart [21:25:28]Write to MH i2c: 01 00 00 2E 13 41 [21:25:28]Write i2c OK [21:25:28]MH_I2C_Read... [21:25:28]Read from MH i2c: 01 [21:25:28]MH_I2C_Read... [21:25:28]Read from MH i2c: 01 07 00 [21:25:28]MH_I2C_Read... [21:25:28]Read from MH i2c: 01 07 00 2E 13 00 00 00 00 00 FF 0F 56 [21:25:28]RasterBufferAndPrint [21:25:28]line Счет N : (1)191503 [21:25:28]line ИНН: 02508201610067 [21:25:28]line Контрольно-Кассовый Чек [21:25:28]line ПРОДАЖА [21:25:28]line ТРК (МРК, ГНК) : 43 [21:25:28]line Товар: 2710124130 [21:25:28]line Аи-92-К-5 [21:25:28]line 15.530 * 64.40 [21:25:28]line = 1000.13 [21:25:28]line НДС 12% НСП 1% [21:25:28]line > о реализуемом товаре [21:25:28]line ОКРУГЛЕНИЕ: -0.13 [21:25:28]line ИТОГО: 1000.00 [21:25:28]line Внесено: 1000.00 [21:25:28]line СДАЧА: 0.00 [21:25:28]line НСП 1% : 8.85 [21:25:28]line НДС 12% : 106.21 [21:25:28]line Наличными: 1000.00 [21:25:28]line Безнал.: 0.00 [21:25:28]line Место: АЗС № 106 "Партнер Нефть" [21:25:28]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [21:25:28]line СНО: Общий режим [21:25:28]line Чек 210 21.04.2024 21:25 [21:25:28]line Смена: 372 ФФД: 1.0 [21:25:28]line ЗНМ: 0300000141 [21:25:28]line РНМ: 0000000000091573 [21:25:28]line Версия ККМ: 001 [21:25:28]line ФМ: 0000000000874652 [21:25:28]line ФД: 76954 [21:25:28]line ФПД: 142191359469044 [21:25:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T212528&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76954&fm=142191359469044&tin=02508201610067®Number=0000000000091573&sum=100000 [21:25:28]written 0, free lines is 4095 [21:25:28]OFD Sender: Processing packet 76954 [packets to send 129, broken 128] [21:25:28]ProducePacketName [21:25:28]name=ofd_packets/00076954 [21:25:28]OFD Sender: To server: pG, [21:25:28]CommunicateWithHost lk.salyk.kg:30040 [21:25:28]ConnectInit lk.salyk.kg [21:25:28]Connected sock=11 [21:25:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 82 B1 07 01 3A 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 48 84 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9A 2C 01 00 35 04 06 00 81 52 81 78 A5 F4 D3 6A EF 35 56 C6 A6 57 [21:25:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 5C 3F 47 00 3C 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9A 2C 01 00 F4 03 04 00 CC 2B 25 66 B6 04 01 00 00 34 03 D9 AB 76 0A 3B C8 [21:25:29]CommunicateWithHost err = 0 [21:25:29]CheckOFDResponse [21:25:29]1017 (14) - 77093643461234 [21:25:29]1041 (16) - 0000000000874652 [21:25:29]1040 (4) - 76954 [21:25:29]1012 (4) - 21.04.2024 15:07 [21:25:29]1206 (1) - 0 [21:25:29]OFD Sender: Remove packet 76954 [21:25:29]ProducePacketName [21:25:29]name=ofd_packets/00076954 [21:25:29]NVStorageDeleteData [21:25:29]Write to MH i2c: 01 00 00 58 13 6B [21:25:29]Write i2c OK [21:25:29]MH_I2C_Read... [21:25:29]Read from MH i2c: 01 [21:25:29]MH_I2C_Read... [21:25:29]Read from MH i2c: 01 07 00 [21:25:29]MH_I2C_Read... [21:25:29]Read from MH i2c: 01 07 00 58 13 00 00 00 00 00 E6 0C 64 [21:25:29]RasterBufferAndPrint [21:25:29]line [21:25:29]line [21:25:29]line [21:25:29]line [21:25:29]line [21:25:29]written 0, free lines is 3309 [21:25:29]MH_Cut [21:25:29]Write to MH i2c: D1 01 00 5F 13 01 44 [21:25:29]Write i2c OK [21:25:29]MH_I2C_Read... [21:25:29]Read from MH i2c: D1 [21:25:29]MH_I2C_Read... [21:25:29]Read from MH i2c: D1 01 00 [21:25:29]MH_I2C_Read... [21:25:29]Read from MH i2c: D1 01 00 5F 13 00 43 [21:25:29]Write to MH i2c: 01 00 00 60 13 73 [21:25:29]Write i2c OK [21:25:29]MH_I2C_Read... [21:25:29]OFD Sender: No OFD packet to send [21:25:29]*** Cut start [21:25:29]*** Partial cut [21:25:29]*** CUTSNS_PIN = 1 [21:25:30]*** CUTSNS_PIN = 0 [21:25:30]*** Brake cut motor [21:25:30]Read from MH i2c: 01 [21:25:30]MH_I2C_Read... [21:25:30]*** Stop cut motor [21:25:30]*** Cut end [21:25:30]Read from MH i2c: 01 07 00 [21:25:30]MH_I2C_Read... [21:25:30]Read from MH i2c: 01 07 00 60 13 00 00 00 00 00 FF 0F 88 [21:25:30]process_action close_receipt done [21:25:30]requested_data is exist [21:25:30]produce_requested_data [21:25:30]requested_item fm.sn is exist - process it [21:25:30]wFMCommunicate request_size=4 [21:25:30]MH_SAM_APDU [21:25:30]CAPDU: 80 11 00 00 [21:25:30]Write to MH i2c: E2 08 00 61 13 80 11 00 00 00 00 00 00 EE [21:25:30]Write i2c OK [21:25:30]MH_I2C_Read... [21:25:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:30]Read from MH i2c: E2 [21:25:30]MH_I2C_Read... [21:25:30]Read from MH i2c: E2 17 00 [21:25:30]MH_I2C_Read... [21:25:30]Read from MH i2c: E2 17 00 61 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 41 [21:25:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:25:30]wFMCommunicate OK [21:25:30]requested_item fd.num is exist - process it [21:25:30]SAM_PROTO_GetFieldsCounters [21:25:30]wFMCommunicate request_size=4 [21:25:30]MH_SAM_APDU [21:25:30]CAPDU: 80 13 00 00 [21:25:30]Write to MH i2c: E2 08 00 62 13 80 13 00 00 00 00 00 00 F1 [21:25:30]Write i2c OK [21:25:30]MH_I2C_Read... [21:25:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:25:30]Read from MH i2c: E2 [21:25:30]MH_I2C_Read... [21:25:30]Read from MH i2c: E2 62 00 [21:25:30]MH_I2C_Read... [21:25:30]Read from MH i2c: E2 62 00 62 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 9A 2C 01 00 0E 04 04 00 74 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 C4 [21:25:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 9A 2C 01 00 0E 04 04 00 74 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 [21:25:30]wFMCommunicate OK [21:25:30]SAM_PROTO_GetFieldsCounters done [21:25:30]requested_item shift.num is exist - process it [21:25:30]requested_item shift.opened is exist - process it [21:25:30]req_shift_opened [21:25:30]FM_GetShiftState [21:25:30]SAM_PROTO_GetShiftState [21:25:30]wFMCommunicate request_size=4 [21:25:30]MH_SAM_APDU [21:25:30]CAPDU: 80 13 01 00 [21:25:30]Write to MH i2c: E2 08 00 63 13 80 13 01 00 00 00 00 00 F3 [21:25:30]Write i2c OK [21:25:30]MH_I2C_Read... [21:25:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:30]Read from MH i2c: E2 [21:25:30]MH_I2C_Read... [21:25:30]Read from MH i2c: E2 0E 00 [21:25:30]MH_I2C_Read... [21:25:30]Read from MH i2c: E2 0E 00 63 13 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 3A [21:25:30]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:25:30]wFMCommunicate OK [21:25:30]SAM_PROTO_GetShiftState done [21:25:30]FM_GetShiftState done [21:25:30]req_shift_opened done [21:25:30]requested_item shift.open_date is exist - process it [21:25:30]req_shift_open_date [21:25:30]req_shift_open_date done [21:25:30]produce_requested_data done [21:25:30]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76954,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [21:25:30]process_action_free close_receipt [21:25:30]json_value_free [21:25:30]json_value_free done [21:25:30]process_json_proto returns [21:25:30]Send response to host [21:25:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76954,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [21:25:30]free response buf [21:25:30]execute_script done [21:25:30]execute_script returns [21:25:30]free content buf [21:25:30]Sock 9.Close socket [21:25:30]Sock 9.Thread stoped [21:25:34]OFD Sender: No OFD packet to send [21:25:39]OFD Sender: No OFD packet to send [21:25:44]OFD Sender: No OFD packet to send [21:25:49]OFD Sender: No OFD packet to send [21:25:54]OFD Sender: No OFD packet to send [21:25:59]OFD Sender: No OFD packet to send [21:26:04]OFD Sender: No OFD packet to send [21:26:09]OFD Sender: No OFD packet to send [21:26:14]OFD Sender: No OFD packet to send [21:26:19]OFD Sender: No OFD packet to send [21:26:24]OFD Sender: No OFD packet to send [21:26:29]OFD Sender: No OFD packet to send [21:26:34]OFD Sender: No OFD packet to send [21:26:39]OFD Sender: No OFD packet to send [21:26:44]OFD Sender: No OFD packet to send [21:26:49]OFD Sender: No OFD packet to send [21:26:54]OFD Sender: No OFD packet to send [21:26:59]OFD Sender: No OFD packet to send [21:27:04]OFD Sender: No OFD packet to send [21:27:09]OFD Sender: No OFD packet to send [21:27:14]OFD Sender: No OFD packet to send [21:27:19]OFD Sender: No OFD packet to send [21:27:24]OFD Sender: No OFD packet to send [21:27:29]OFD Sender: No OFD packet to send [21:27:34]OFD Sender: No OFD packet to send [21:27:39]OFD Sender: No OFD packet to send [21:27:44]OFD Sender: No OFD packet to send [21:27:49]OFD Sender: No OFD packet to send [21:27:54]OFD Sender: No OFD packet to send [21:27:56]accept exits with 8 [21:27:56]New connection [21:27:56]New thread 3066801508 created [21:27:56]Thread 3066944868 joined [21:27:56]Waiting for new connection... [21:27:56] Sock 8.Parse request [21:27:56]Sock 8.Check first char [21:27:56]Sock 8.First char is OK [21:27:56]request: POST /json_proto HTTP/1.0 [21:27:56]Method: POST [21:27:56]URL: /json_proto [21:27:56]Method is POST - this is cgi request [21:27:56]url: /json_proto [21:27:56]query_string will be loaded in cgi processing [21:27:56]execute_cgi json_proto POST (null) [21:27:56]execute_cgi path=json_proto method=POST [21:27:56]POST find Content-Length [21:27:56]Host: 172.17.62.5:8080 [21:27:56]Content-Length: 990 [21:27:56]Content-Type: application/json [21:27:56] [21:27:56]POST finish read [21:27:56]Found Content-Length = 990 [21:27:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 37.860, "sum" : 1200.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 37.86 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:27:56]execute_script... [21:27:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 37.860, "sum" : 1200.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 37.86 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:27:56]POST & json_proto [21:27:56]process_json_proto [21:27:56]json parsed OK: [21:27:56]protocol is kg_v1.0 [21:27:56]action value=close_receipt [21:27:56]process_action close_receipt [21:27:56]cmd_close_receipt [21:27:56]MH_GetDate [21:27:56]Write to MH i2c: F0 00 00 64 13 66 [21:27:56]Write i2c OK [21:27:56]MH_I2C_Read... [21:27:56]Read from MH i2c: F0 [21:27:56]MH_I2C_Read... [21:27:56]Read from MH i2c: F0 09 00 [21:27:56]MH_I2C_Read... [21:27:56]Read from MH i2c: F0 09 00 64 13 00 DD 84 25 66 F4 E9 65 64 01 [21:27:56]GetLastDocTimeStamp 1713734728 [21:27:56]current date 1713734877 [21:27:56]FM_GetShiftState [21:27:56]SAM_PROTO_GetShiftState [21:27:56]wFMCommunicate request_size=4 [21:27:56]MH_SAM_APDU [21:27:56]CAPDU: 80 13 01 00 [21:27:56]Write to MH i2c: E2 08 00 65 13 80 13 01 00 00 00 00 00 F5 [21:27:56]Write i2c OK [21:27:56]MH_I2C_Read... [21:27:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:56]Read from MH i2c: E2 [21:27:56]MH_I2C_Read... [21:27:56]Read from MH i2c: E2 0E 00 [21:27:56]MH_I2C_Read... [21:27:56]Read from MH i2c: E2 0E 00 65 13 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 3C [21:27:56]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:27:56]wFMCommunicate OK [21:27:56]SAM_PROTO_GetShiftState done [21:27:56]FM_GetShiftState done [21:27:56]opened in 1713658965 [21:27:56]opened+sec_in_day 1713745365 [21:27:56]quantity*price = 120016 [21:27:56]sum+1 = 120017 [21:27:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1200.00 Внесено: 2000.00 СДАЧА: 800.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 211 21.04.2024 21:27 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 37.86 сом ФМ: 0000000000874652 ФД: 76955 ФПД: 122236269545274 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T212757&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76955&fm=122236269545274&tin=02508201610067®Number=0000000000091573&sum=120000 [21:27:57]StoreToDocumentArchive [21:27:57]shift 372 fd 76955 [21:27:57]save to /storage/0372/doc_00076955 [21:27:57]save last doc name /storage/0372/doc_00076955 to /storage/kkm_last_doc_name [21:27:57]save OK [21:27:57]Clear old archive folders... [21:27:57]ProcessDocumentItem done err = 0, tmpTLVsize=250 [21:27:57]tlvbuf is 00CC28D0 [21:27:57]SAM_PROTO_ClearQueue [21:27:57]wFMCommunicate request_size=4 [21:27:57]MH_SAM_APDU [21:27:57]CAPDU: 80 09 00 00 [21:27:57]Write to MH i2c: E2 08 00 72 13 80 09 00 00 00 00 00 00 F7 [21:27:57]Write i2c OK [21:27:57]MH_I2C_Read... [21:27:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:27:57]Read from MH i2c: E2 [21:27:57]MH_I2C_Read... [21:27:57]Read from MH i2c: E2 03 00 [21:27:57]MH_I2C_Read... [21:27:57]Read from MH i2c: E2 03 00 72 13 00 90 00 F9 [21:27:57]RAPDU: 90 00 [21:27:57]wFMCommunicate OK [21:27:57]SAM_PROTO_ClearQueue done [21:27:57]KKMCreateOFDPacket [21:27:57]OFDProtocolAddRootSTLVToBuf [21:27:57]FM_MakeSignedData [21:27:57]FM_MakeSignedData [21:27:57]SAM_PROTO_SignData [21:27:57]wFMCommunicate request_size=4 [21:27:57]MH_SAM_APDU [21:27:57]CAPDU: 80 0D 01 02 [21:27:57]Write to MH i2c: E2 08 00 73 13 80 0D 01 02 00 00 00 00 FF [21:27:57]Write i2c OK [21:27:57]MH_I2C_Read... [21:27:57]Read from MH i2c: E2 [21:27:57]MH_I2C_Read... [21:27:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:27:57]Read from MH i2c: E2 03 00 [21:27:57]MH_I2C_Read... [21:27:57]Read from MH i2c: E2 03 00 73 13 00 90 00 FA [21:27:57]RAPDU: 90 00 [21:27:57]wFMCommunicate OK [21:27:57]wFMCommunicate request_size=255 [21:27:57]MH_SAM_APDU [21:27:57]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E4 93 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 D0 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 D3 00 00 00 F4 03 04 00 DD 84 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9B 2C 01 00 35 04 06 00 6F 2C [21:27:57]Write to MH i2c: E2 02 01 74 13 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E4 93 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 D0 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 D3 00 00 00 F4 03 04 00 DD 84 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9B 2C 01 00 35 04 06 00 6F 2C 00 00 1F [21:27:57]Write i2c OK [21:27:57]MH_I2C_Read... [21:27:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:57]Read from MH i2c: E2 [21:27:57]MH_I2C_Read... [21:27:57]Read from MH i2c: E2 03 00 [21:27:57]MH_I2C_Read... [21:27:57]Read from MH i2c: E2 03 00 74 13 00 90 00 FB [21:27:57]RAPDU: 90 00 [21:27:57]wFMCommunicate OK [21:27:57]wFMCommunicate request_size=9 [21:27:57]MH_SAM_APDU [21:27:57]CAPDU: 80 0D 02 02 04 59 6C C7 3A [21:27:57]Write to MH i2c: E2 0C 00 75 13 80 0D 02 02 04 00 59 6C C7 3A 00 00 D0 [21:27:57]Write i2c OK [21:27:57]MH_I2C_Read... [21:27:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:57]Read from MH i2c: E2 [21:27:57]MH_I2C_Read... [21:27:57]Read from MH i2c: E2 03 00 [21:27:57]MH_I2C_Read... [21:27:57]Read from MH i2c: E2 03 00 75 13 00 90 00 FC [21:27:57]RAPDU: 90 00 [21:27:57]wFMCommunicate OK [21:27:57]wFMCommunicate request_size=4 [21:27:57]MH_SAM_APDU [21:27:57]CAPDU: 80 0D 03 02 [21:27:57]Write to MH i2c: E2 08 00 76 13 80 0D 03 02 00 00 00 00 04 [21:27:57]Write i2c OK [21:27:57]MH_I2C_Read... [21:27:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:27:58]Read from MH i2c: E2 [21:27:58]MH_I2C_Read... [21:27:58]Read from MH i2c: E2 0B 00 [21:27:58]MH_I2C_Read... [21:27:58]Read from MH i2c: E2 0B 00 76 13 00 BC 85 24 FC D3 4C EE D5 90 00 48 [21:27:58]RAPDU: BC 85 24 FC D3 4C EE D5 90 00 [21:27:58]wFMCommunicate OK [21:27:58]SAM_PROTO_SignData done [21:27:58]FM_MakeSignedData done [21:27:58]CreateOFDProtocolMessage [21:27:58]wFMCommunicate request_size=4 [21:27:58]MH_SAM_APDU [21:27:58]CAPDU: 80 11 00 00 [21:27:58]Write to MH i2c: E2 08 00 77 13 80 11 00 00 00 00 00 00 04 [21:27:58]Write i2c OK [21:27:58]MH_I2C_Read... [21:27:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:58]Read from MH i2c: E2 [21:27:58]MH_I2C_Read... [21:27:58]Read from MH i2c: E2 17 00 [21:27:58]MH_I2C_Read... [21:27:58]Read from MH i2c: E2 17 00 77 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 57 [21:27:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:27:58]wFMCommunicate OK [21:27:58]CreateOFDProtocolMessage done [21:27:58]OFDSenderStorePacket 76955 [21:27:58]StoreOFDPacket docnum=76955 [21:27:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 4E 8F 06 01 FB B3 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E4 93 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 D0 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 D3 00 00 00 F4 03 04 00 DD 84 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9B 2C 01 00 35 04 06 00 6F 2C 59 6C C7 3A BC 85 24 FC D3 4C EE D5 [21:27:58]CheckFolder [21:27:58]dirname=/storage/ofd_packets [21:27:58]CheckFolder done [21:27:58]ProducePacketName [21:27:58]name=ofd_packets/00076955 [21:27:58]NVStorageSaveData ofd_packets/00076955 [21:27:58]File name is /storage/ofd_packets/00076955 [21:27:58]Write 300 bytes [21:27:58]NVStorageSaveData done [21:27:58]OFDSenderStorePacket done [21:27:58]KKMCreateOFDPacket done [21:27:58]NVStorageSaveData kkm_last_timestamp [21:27:58]File name is /storage/kkm_last_timestamp [21:27:58]Write 4 bytes [21:27:58]NVStorageSaveData done [21:27:58]ExternCall_PrintAddStr [21:27:58]wPrintStart [21:27:58]Write to MH i2c: 01 00 00 78 13 8B [21:27:58]Write i2c OK [21:27:58]MH_I2C_Read... [21:27:58]Read from MH i2c: 01 [21:27:58]MH_I2C_Read... [21:27:58]Read from MH i2c: 01 07 00 [21:27:58]MH_I2C_Read... [21:27:58]Read from MH i2c: 01 07 00 78 13 00 00 00 00 00 FF 0F A0 [21:27:58]RasterBufferAndPrint [21:27:58]line Счет N : (1)191501 [21:27:58]line ИНН: 02508201610067 [21:27:58]line Контрольно-Кассовый Чек [21:27:58]line ПРОДАЖА [21:27:58]line ТРК (МРК, ГНК) : 71 [21:27:58]line Товар: 2711190000 [21:27:58]line ГАЗ-К-5 [21:27:58]line 37.860 * 31.70 [21:27:58]line = 1200.16 [21:27:58]line НДС 12% НСП 1% [21:27:58]line > о реализуемом товаре [21:27:58]line ОКРУГЛЕНИЕ: -0.16 [21:27:58]line ИТОГО: 1200.00 [21:27:58]line Внесено: 2000.00 [21:27:58]line СДАЧА: 800.00 [21:27:58]line НСП 1% : 10.62 [21:27:58]line НДС 12% : 127.45 [21:27:58]line Наличными: 1200.00 [21:27:58]line Безнал.: 0.00 [21:27:58]line Место: АЗС № 106 "Партнер Нефть" [21:27:58]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [21:27:58]line СНО: Общий режим [21:27:58]line Чек 211 21.04.2024 21:27 [21:27:58]line Смена: 372 ФФД: 1.0 [21:27:58]line ЗНМ: 0300000141 [21:27:58]line РНМ: 0000000000091573 [21:27:58]line Версия ККМ: 001 [21:27:58]line [21:27:58]line Дисконтная программа [21:27:58]line СУГ [21:27:58]line номер 106 [21:27:58]line сэкономлено 37.86 сом [21:27:58]line ФМ: 0000000000874652 [21:27:58]line ФД: 76955 [21:27:58]line ФПД: 122236269545274 [21:27:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T212757&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76955&fm=122236269545274&tin=02508201610067®Number=0000000000091573&sum=120000 [21:27:58]OFD Sender: Processing packet 76955 [packets to send 129, broken 128] [21:27:58]ProducePacketName [21:27:58]name=ofd_packets/00076955 [21:27:58]OFD Sender: To server: pG, [21:27:58]CommunicateWithHost lk.salyk.kg:30040 [21:27:58]ConnectInit lk.salyk.kg [21:27:58]written 0, free lines is 4095 [21:27:58]Connected sock=10 [21:27:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 4E 8F 06 01 FB B3 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E4 93 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 D0 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 D3 00 00 00 F4 03 04 00 DD 84 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9B 2C 01 00 35 04 06 00 6F 2C 59 6C C7 3A BC 85 24 FC D3 4C EE D5 [21:27:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 FA 78 47 00 FC 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9B 2C 01 00 F4 03 04 00 62 2C 25 66 B6 04 01 00 00 37 E4 F6 FF 66 C4 04 2C [21:27:58]CommunicateWithHost err = 0 [21:27:58]CheckOFDResponse [21:27:58]1017 (14) - 77093643461234 [21:27:58]1041 (16) - 0000000000874652 [21:27:58]1040 (4) - 76955 [21:27:58]1012 (4) - 21.04.2024 15:10 [21:27:58]1206 (1) - 0 [21:27:58]OFD Sender: Remove packet 76955 [21:27:58]ProducePacketName [21:27:58]name=ofd_packets/00076955 [21:27:58]NVStorageDeleteData [21:27:58]Write to MH i2c: 01 00 00 A7 13 BA [21:27:58]Write i2c OK [21:27:58]MH_I2C_Read... [21:27:58]Read from MH i2c: 01 [21:27:58]MH_I2C_Read... [21:27:58]Read from MH i2c: 01 07 00 [21:27:58]MH_I2C_Read... [21:27:58]Read from MH i2c: 01 07 00 A7 13 00 00 00 00 00 9C 0C 69 [21:27:58]RasterBufferAndPrint [21:27:58]line [21:27:58]line [21:27:58]line [21:27:58]line [21:27:58]line [21:27:58]written 0, free lines is 3236 [21:27:58]MH_Cut [21:27:58]Write to MH i2c: D1 01 00 AE 13 01 93 [21:27:58]Write i2c OK [21:27:58]MH_I2C_Read... [21:27:58]Read from MH i2c: D1 [21:27:58]MH_I2C_Read... [21:27:58]Read from MH i2c: D1 01 00 [21:27:58]MH_I2C_Read... [21:27:58]Read from MH i2c: D1 01 00 AE 13 00 92 [21:27:58]Write to MH i2c: 01 00 00 AF 13 C2 [21:27:58]Write i2c OK [21:27:58]MH_I2C_Read... [21:27:59]OFD Sender: No OFD packet to send [21:27:59]*** Cut start [21:27:59]*** Partial cut [21:27:59]*** CUTSNS_PIN = 1 [21:27:59]*** CUTSNS_PIN = 0 [21:27:59]*** Brake cut motor [21:28:00]Read from MH i2c: 01 [21:28:00]MH_I2C_Read... [21:28:00]*** Stop cut motor [21:28:00]*** Cut end [21:28:00]Read from MH i2c: 01 07 00 [21:28:00]MH_I2C_Read... [21:28:00]Read from MH i2c: 01 07 00 AF 13 00 00 00 00 00 FF 0F D7 [21:28:00]process_action close_receipt done [21:28:00]requested_data is exist [21:28:00]produce_requested_data [21:28:00]requested_item fm.sn is exist - process it [21:28:00]wFMCommunicate request_size=4 [21:28:00]MH_SAM_APDU [21:28:00]CAPDU: 80 11 00 00 [21:28:00]Write to MH i2c: E2 08 00 B0 13 80 11 00 00 00 00 00 00 3D [21:28:00]Write i2c OK [21:28:00]MH_I2C_Read... [21:28:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:28:00]Read from MH i2c: E2 [21:28:00]MH_I2C_Read... [21:28:00]Read from MH i2c: E2 17 00 [21:28:00]MH_I2C_Read... [21:28:00]Read from MH i2c: E2 17 00 B0 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 90 [21:28:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:28:00]wFMCommunicate OK [21:28:00]requested_item fd.num is exist - process it [21:28:00]SAM_PROTO_GetFieldsCounters [21:28:00]wFMCommunicate request_size=4 [21:28:00]MH_SAM_APDU [21:28:00]CAPDU: 80 13 00 00 [21:28:00]Write to MH i2c: E2 08 00 B1 13 80 13 00 00 00 00 00 00 40 [21:28:00]Write i2c OK [21:28:00]MH_I2C_Read... [21:28:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:28:00]Read from MH i2c: E2 [21:28:00]MH_I2C_Read... [21:28:00]Read from MH i2c: E2 62 00 [21:28:00]MH_I2C_Read... [21:28:00]Read from MH i2c: E2 62 00 B1 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 9B 2C 01 00 0E 04 04 00 74 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 17 [21:28:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 9B 2C 01 00 0E 04 04 00 74 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 [21:28:00]wFMCommunicate OK [21:28:00]SAM_PROTO_GetFieldsCounters done [21:28:00]requested_item shift.num is exist - process it [21:28:00]requested_item shift.opened is exist - process it [21:28:00]req_shift_opened [21:28:00]FM_GetShiftState [21:28:00]SAM_PROTO_GetShiftState [21:28:00]wFMCommunicate request_size=4 [21:28:00]MH_SAM_APDU [21:28:00]CAPDU: 80 13 01 00 [21:28:00]Write to MH i2c: E2 08 00 B2 13 80 13 01 00 00 00 00 00 42 [21:28:00]Write i2c OK [21:28:00]MH_I2C_Read... [21:28:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:28:00]Read from MH i2c: E2 [21:28:00]MH_I2C_Read... [21:28:00]Read from MH i2c: E2 0E 00 [21:28:00]MH_I2C_Read... [21:28:00]Read from MH i2c: E2 0E 00 B2 13 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 89 [21:28:00]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:28:00]wFMCommunicate OK [21:28:00]SAM_PROTO_GetShiftState done [21:28:00]FM_GetShiftState done [21:28:00]req_shift_opened done [21:28:00]requested_item shift.open_date is exist - process it [21:28:00]req_shift_open_date [21:28:00]req_shift_open_date done [21:28:00]produce_requested_data done [21:28:00]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76955,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [21:28:00]process_action_free close_receipt [21:28:00]json_value_free [21:28:00]json_value_free done [21:28:00]process_json_proto returns [21:28:00]Send response to host [21:28:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76955,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [21:28:00]free response buf [21:28:00]execute_script done [21:28:00]execute_script returns [21:28:00]free content buf [21:28:00]Sock 8.Close socket [21:28:00]Sock 8.Thread stoped [21:28:04]OFD Sender: No OFD packet to send [21:28:09]OFD Sender: No OFD packet to send [21:28:14]OFD Sender: No OFD packet to send [21:28:19]OFD Sender: No OFD packet to send [21:28:24]OFD Sender: No OFD packet to send [21:28:29]OFD Sender: No OFD packet to send [21:28:34]OFD Sender: No OFD packet to send [21:28:39]OFD Sender: No OFD packet to send [21:28:44]OFD Sender: No OFD packet to send [21:28:49]OFD Sender: No OFD packet to send [21:28:54]OFD Sender: No OFD packet to send [21:28:59]accept exits with 9 [21:28:59]New connection [21:28:59]New thread 3066944868 created [21:28:59]Thread 3066801508 joined [21:28:59]Waiting for new connection... [21:28:59] Sock 9.Parse request [21:28:59]Sock 9.Check first char [21:28:59]Sock 9.First char is OK [21:28:59]request: POST /json_proto HTTP/1.0 [21:28:59]Method: POST [21:28:59]URL: /json_proto [21:28:59]Method is POST - this is cgi request [21:28:59]url: /json_proto [21:28:59]query_string will be loaded in cgi processing [21:28:59]execute_cgi json_proto POST (null) [21:28:59]execute_cgi path=json_proto method=POST [21:28:59]POST find Content-Length [21:28:59]Host: 172.17.62.5:8080 [21:28:59]Content-Length: 677 [21:28:59]Content-Type: application/json [21:28:59] [21:28:59]POST finish read [21:28:59]Found Content-Length = 677 [21:28:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191504", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:28:59]execute_script... [21:28: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)191504", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:28:59]POST & json_proto [21:28:59]process_json_proto [21:28:59]json parsed OK: [21:28:59]protocol is kg_v1.0 [21:28:59]action value=close_receipt [21:28:59]process_action close_receipt [21:28:59]cmd_close_receipt [21:28:59]MH_GetDate [21:28:59]Write to MH i2c: F0 00 00 B3 13 B5 [21:28:59]Write i2c OK [21:28:59]MH_I2C_Read... [21:28:59]Read from MH i2c: F0 [21:28:59]MH_I2C_Read... [21:28:59]Read from MH i2c: F0 09 00 [21:28:59]MH_I2C_Read... [21:28:59]Read from MH i2c: F0 09 00 B3 13 00 1C 85 25 66 F4 E9 65 64 90 [21:28:59]GetLastDocTimeStamp 1713734877 [21:28:59]current date 1713734940 [21:28:59]FM_GetShiftState [21:28:59]SAM_PROTO_GetShiftState [21:28:59]wFMCommunicate request_size=4 [21:28:59]MH_SAM_APDU [21:28:59]CAPDU: 80 13 01 00 [21:28:59]Write to MH i2c: E2 08 00 B4 13 80 13 01 00 00 00 00 00 44 [21:28:59]Write i2c OK [21:28:59]MH_I2C_Read... [21:28:59]OFD Sender: No OFD packet to send [21:28:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:28:59]Read from MH i2c: E2 [21:28:59]MH_I2C_Read... [21:28:59]Read from MH i2c: E2 0E 00 [21:28:59]MH_I2C_Read... [21:28:59]Read from MH i2c: E2 0E 00 B4 13 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 8B [21:28:59]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:28:59]wFMCommunicate OK [21:28:59]SAM_PROTO_GetShiftState done [21:28:59]FM_GetShiftState done [21:28:59]opened in 1713658965 [21:28:59]opened+sec_in_day 1713745365 [21:28:59]quantity*price = 50038 [21:28:59]sum+1 = 50040 [21:28:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 212 21.04.2024 21:29 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76956 ФПД: 144640867383858 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T212900&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76956&fm=144640867383858&tin=02508201610067®Number=0000000000091573&sum=50000 [21:29:00]StoreToDocumentArchive [21:29:00]shift 372 fd 76956 [21:29:00]save to /storage/0372/doc_00076956 [21:29:00]save last doc name /storage/0372/doc_00076956 to /storage/kkm_last_doc_name [21:29:00]save OK [21:29:00]Clear old archive folders... [21:29:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:29:00]tlvbuf is 00C673E0 [21:29:00]SAM_PROTO_ClearQueue [21:29:00]wFMCommunicate request_size=4 [21:29:00]MH_SAM_APDU [21:29:00]CAPDU: 80 09 00 00 [21:29:00]Write to MH i2c: E2 08 00 C1 13 80 09 00 00 00 00 00 00 46 [21:29:00]Write i2c OK [21:29:00]MH_I2C_Read... [21:29:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:29:00]Read from MH i2c: E2 [21:29:00]MH_I2C_Read... [21:29:00]Read from MH i2c: E2 03 00 [21:29:00]MH_I2C_Read... [21:29:00]Read from MH i2c: E2 03 00 C1 13 00 90 00 48 [21:29:00]RAPDU: 90 00 [21:29:00]wFMCommunicate OK [21:29:00]SAM_PROTO_ClearQueue done [21:29:00]KKMCreateOFDPacket [21:29:00]OFDProtocolAddRootSTLVToBuf [21:29:00]FM_MakeSignedData [21:29:00]FM_MakeSignedData [21:29:00]SAM_PROTO_SignData [21:29:00]wFMCommunicate request_size=4 [21:29:00]MH_SAM_APDU [21:29:00]CAPDU: 80 0D 01 02 [21:29:00]Write to MH i2c: E2 08 00 C2 13 80 0D 01 02 00 00 00 00 4E [21:29:00]Write i2c OK [21:29:00]MH_I2C_Read... [21:29:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:29:00]Read from MH i2c: E2 [21:29:00]MH_I2C_Read... [21:29:00]Read from MH i2c: E2 03 00 [21:29:00]MH_I2C_Read... [21:29:00]Read from MH i2c: E2 03 00 C2 13 00 90 00 49 [21:29:00]RAPDU: 90 00 [21:29:00]wFMCommunicate OK [21:29:00]wFMCommunicate request_size=255 [21:29:00]MH_SAM_APDU [21:29: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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 1C 85 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9C 2C 01 00 35 04 06 00 83 [21:29:00]Write to MH i2c: E2 02 01 C3 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 1C 85 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9C 2C 01 00 35 04 06 00 83 00 00 C4 [21:29:00]Write i2c OK [21:29:00]MH_I2C_Read... [21:29:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:29:00]Read from MH i2c: E2 [21:29:00]MH_I2C_Read... [21:29:00]Read from MH i2c: E2 03 00 [21:29:00]MH_I2C_Read... [21:29:00]Read from MH i2c: E2 03 00 C3 13 00 90 00 4A [21:29:00]RAPDU: 90 00 [21:29:00]wFMCommunicate OK [21:29:00]wFMCommunicate request_size=10 [21:29:00]MH_SAM_APDU [21:29:00]CAPDU: 80 0D 02 02 05 8C D3 85 3A 32 [21:29:00]Write to MH i2c: E2 0D 00 C4 13 80 0D 02 02 05 00 8C D3 85 3A 32 00 00 AB [21:29:00]Write i2c OK [21:29:00]MH_I2C_Read... [21:29:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:29:01]Read from MH i2c: E2 [21:29:01]MH_I2C_Read... [21:29:01]Read from MH i2c: E2 03 00 [21:29:01]MH_I2C_Read... [21:29:01]Read from MH i2c: E2 03 00 C4 13 00 90 00 4B [21:29:01]RAPDU: 90 00 [21:29:01]wFMCommunicate OK [21:29:01]wFMCommunicate request_size=4 [21:29:01]MH_SAM_APDU [21:29:01]CAPDU: 80 0D 03 02 [21:29:01]Write to MH i2c: E2 08 00 C5 13 80 0D 03 02 00 00 00 00 53 [21:29:01]Write i2c OK [21:29:01]MH_I2C_Read... [21:29:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:29:01]Read from MH i2c: E2 [21:29:01]MH_I2C_Read... [21:29:01]Read from MH i2c: E2 0B 00 [21:29:01]MH_I2C_Read... [21:29:01]Read from MH i2c: E2 0B 00 C5 13 00 E3 B8 01 58 07 FD FA 61 90 00 A7 [21:29:01]RAPDU: E3 B8 01 58 07 FD FA 61 90 00 [21:29:01]wFMCommunicate OK [21:29:01]SAM_PROTO_SignData done [21:29:01]FM_MakeSignedData done [21:29:01]CreateOFDProtocolMessage [21:29:01]wFMCommunicate request_size=4 [21:29:01]MH_SAM_APDU [21:29:01]CAPDU: 80 11 00 00 [21:29:01]Write to MH i2c: E2 08 00 C6 13 80 11 00 00 00 00 00 00 53 [21:29:01]Write i2c OK [21:29:01]MH_I2C_Read... [21:29:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:29:01]Read from MH i2c: E2 [21:29:01]MH_I2C_Read... [21:29:01]Read from MH i2c: E2 17 00 [21:29:01]MH_I2C_Read... [21:29:01]Read from MH i2c: E2 17 00 C6 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 A6 [21:29:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:29:01]wFMCommunicate OK [21:29:01]CreateOFDProtocolMessage done [21:29:01]OFDSenderStorePacket 76956 [21:29:01]StoreOFDPacket docnum=76956 [21:29:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 5E E9 07 01 6F 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 1C 85 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9C 2C 01 00 35 04 06 00 83 8C D3 85 3A 32 E3 B8 01 58 07 FD FA 61 [21:29:01]CheckFolder [21:29:01]dirname=/storage/ofd_packets [21:29:01]CheckFolder done [21:29:01]ProducePacketName [21:29:01]name=ofd_packets/00076956 [21:29:01]NVStorageSaveData ofd_packets/00076956 [21:29:01]File name is /storage/ofd_packets/00076956 [21:29:01]Write 301 bytes [21:29:01]NVStorageSaveData done [21:29:01]OFDSenderStorePacket done [21:29:01]KKMCreateOFDPacket done [21:29:01]NVStorageSaveData kkm_last_timestamp [21:29:01]File name is /storage/kkm_last_timestamp [21:29:01]Write 4 bytes [21:29:01]NVStorageSaveData done [21:29:01]ExternCall_PrintAddStr [21:29:01]wPrintStart [21:29:01]Write to MH i2c: 01 00 00 C7 13 DA [21:29:01]Write i2c OK [21:29:01]MH_I2C_Read... [21:29:01]Read from MH i2c: 01 [21:29:01]MH_I2C_Read... [21:29:01]Read from MH i2c: 01 07 00 [21:29:01]MH_I2C_Read... [21:29:01]Read from MH i2c: 01 07 00 C7 13 00 00 00 00 00 FF 0F EF [21:29:01]RasterBufferAndPrint [21:29:01]line Счет N : (1)191504 [21:29:01]line ИНН: 02508201610067 [21:29:01]line Контрольно-Кассовый Чек [21:29:01]line ПРОДАЖА [21:29:01]line ТРК (МРК, ГНК) : 43 [21:29:01]line Товар: 2710124130 [21:29:01]line Аи-92-К-5 [21:29:01]line 7.770 * 64.40 [21:29:01]line = 500.39 [21:29:01]line НДС 12% НСП 1% [21:29:01]line > о реализуемом товаре [21:29:01]line ОКРУГЛЕНИЕ: -0.39 [21:29:01]line ИТОГО: 500.00 [21:29:01]line Внесено: 500.00 [21:29:01]line СДАЧА: 0.00 [21:29:01]line НСП 1% : 4.43 [21:29:01]line НДС 12% : 53.14 [21:29:01]line Наличными: 500.00 [21:29:01]line Безнал.: 0.00 [21:29:01]line Место: АЗС № 106 "Партнер Нефть" [21:29:01]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [21:29:01]line СНО: Общий режим [21:29:01]line Чек 212 21.04.2024 21:29 [21:29:01]line Смена: 372 ФФД: 1.0 [21:29:01]line ЗНМ: 0300000141 [21:29:01]line РНМ: 0000000000091573 [21:29:01]line Версия ККМ: 001 [21:29:01]line ФМ: 0000000000874652 [21:29:01]line ФД: 76956 [21:29:01]line ФПД: 144640867383858 [21:29:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T212900&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76956&fm=144640867383858&tin=02508201610067®Number=0000000000091573&sum=50000 [21:29:01]written 0, free lines is 4095 [21:29:01]OFD Sender: Processing packet 76956 [packets to send 129, broken 128] [21:29:01]ProducePacketName [21:29:01]name=ofd_packets/00076956 [21:29:01]OFD Sender: To server: pG, [21:29:01]CommunicateWithHost lk.salyk.kg:30040 [21:29:01]ConnectInit lk.salyk.kg [21:29:01]Connected sock=11 [21:29:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 5E E9 07 01 6F 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 1C 85 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9C 2C 01 00 35 04 06 00 83 8C D3 85 3A 32 E3 B8 01 58 07 FD FA 61 [21:29:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 2D 39 47 00 98 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9C 2C 01 00 F4 03 04 00 A1 2C 25 66 B6 04 01 00 00 63 C9 71 26 54 1E 65 4C [21:29:01]CommunicateWithHost err = 0 [21:29:01]CheckOFDResponse [21:29:01]1017 (14) - 77093643461234 [21:29:01]1041 (16) - 0000000000874652 [21:29:01]1040 (4) - 76956 [21:29:01]1012 (4) - 21.04.2024 15:11 [21:29:01]1206 (1) - 0 [21:29:01]OFD Sender: Remove packet 76956 [21:29:01]ProducePacketName [21:29:01]name=ofd_packets/00076956 [21:29:01]NVStorageDeleteData [21:29:01]Write to MH i2c: 01 00 00 F1 13 04 [21:29:01]Write i2c OK [21:29:01]MH_I2C_Read... [21:29:01]Read from MH i2c: 01 [21:29:01]MH_I2C_Read... [21:29:01]Read from MH i2c: 01 07 00 [21:29:01]MH_I2C_Read... [21:29:01]Read from MH i2c: 01 07 00 F1 13 00 00 00 00 00 EB 0C 02 [21:29:01]RasterBufferAndPrint [21:29:01]line [21:29:01]line [21:29:01]line [21:29:01]line [21:29:01]line [21:29:01]written 0, free lines is 3313 [21:29:01]MH_Cut [21:29:01]Write to MH i2c: D1 01 00 F8 13 01 DD [21:29:01]Write i2c OK [21:29:01]MH_I2C_Read... [21:29:01]Read from MH i2c: D1 [21:29:01]MH_I2C_Read... [21:29:01]Read from MH i2c: D1 01 00 [21:29:01]MH_I2C_Read... [21:29:01]Read from MH i2c: D1 01 00 F8 13 00 DC [21:29:01]Write to MH i2c: 01 00 00 F9 13 0C [21:29:01]Write i2c OK [21:29:01]MH_I2C_Read... [21:29:02]OFD Sender: No OFD packet to send [21:29:02]*** Cut start [21:29:02]*** Partial cut [21:29:02]*** CUTSNS_PIN = 1 [21:29:02]*** CUTSNS_PIN = 0 [21:29:02]*** Brake cut motor [21:29:03]Read from MH i2c: 01 [21:29:03]MH_I2C_Read... [21:29:03]*** Stop cut motor [21:29:03]*** Cut end [21:29:03]Read from MH i2c: 01 07 00 [21:29:03]MH_I2C_Read... [21:29:03]Read from MH i2c: 01 07 00 F9 13 00 00 00 00 00 FF 0F 21 [21:29:03]process_action close_receipt done [21:29:03]requested_data is exist [21:29:03]produce_requested_data [21:29:03]requested_item fm.sn is exist - process it [21:29:03]wFMCommunicate request_size=4 [21:29:03]MH_SAM_APDU [21:29:03]CAPDU: 80 11 00 00 [21:29:03]Write to MH i2c: E2 08 00 FA 13 80 11 00 00 00 00 00 00 87 [21:29:03]Write i2c OK [21:29:03]MH_I2C_Read... [21:29:03]Read from MH i2c: E2 [21:29:03]MH_I2C_Read... [21:29:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:29:03]Read from MH i2c: E2 17 00 [21:29:03]MH_I2C_Read... [21:29:03]Read from MH i2c: E2 17 00 FA 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 DA [21:29:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:29:03]wFMCommunicate OK [21:29:03]requested_item fd.num is exist - process it [21:29:03]SAM_PROTO_GetFieldsCounters [21:29:03]wFMCommunicate request_size=4 [21:29:03]MH_SAM_APDU [21:29:03]CAPDU: 80 13 00 00 [21:29:03]Write to MH i2c: E2 08 00 FB 13 80 13 00 00 00 00 00 00 8A [21:29:03]Write i2c OK [21:29:03]MH_I2C_Read... [21:29:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:29:03]Read from MH i2c: E2 [21:29:03]MH_I2C_Read... [21:29:03]Read from MH i2c: E2 62 00 [21:29:03]MH_I2C_Read... [21:29:03]Read from MH i2c: E2 62 00 FB 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 9C 2C 01 00 0E 04 04 00 74 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 65 [21:29: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 9C 2C 01 00 0E 04 04 00 74 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 [21:29:03]wFMCommunicate OK [21:29:03]SAM_PROTO_GetFieldsCounters done [21:29:03]requested_item shift.num is exist - process it [21:29:03]requested_item shift.opened is exist - process it [21:29:03]req_shift_opened [21:29:03]FM_GetShiftState [21:29:03]SAM_PROTO_GetShiftState [21:29:03]wFMCommunicate request_size=4 [21:29:03]MH_SAM_APDU [21:29:03]CAPDU: 80 13 01 00 [21:29:03]Write to MH i2c: E2 08 00 FC 13 80 13 01 00 00 00 00 00 8C [21:29:03]Write i2c OK [21:29:03]MH_I2C_Read... [21:29:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:03]Read from MH i2c: E2 [21:29:03]MH_I2C_Read... [21:29:03]Read from MH i2c: E2 0E 00 [21:29:03]MH_I2C_Read... [21:29:03]Read from MH i2c: E2 0E 00 FC 13 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 D3 [21:29:03]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:29:03]wFMCommunicate OK [21:29:03]SAM_PROTO_GetShiftState done [21:29:03]FM_GetShiftState done [21:29:03]req_shift_opened done [21:29:03]requested_item shift.open_date is exist - process it [21:29:03]req_shift_open_date [21:29:03]req_shift_open_date done [21:29:03]produce_requested_data done [21:29:03]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76956,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [21:29:03]process_action_free close_receipt [21:29:03]json_value_free [21:29:03]json_value_free done [21:29:03]process_json_proto returns [21:29:03]Send response to host [21:29:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76956,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [21:29:03]free response buf [21:29:03]execute_script done [21:29:03]execute_script returns [21:29:03]free content buf [21:29:03]Sock 9.Close socket [21:29:03]Sock 9.Thread stoped [21:29:07]OFD Sender: No OFD packet to send [21:29:12]OFD Sender: No OFD packet to send [21:29:17]OFD Sender: No OFD packet to send [21:29:22]OFD Sender: No OFD packet to send [21:29:27]OFD Sender: No OFD packet to send [21:29:32]OFD Sender: No OFD packet to send [21:29:37]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:00]accept exits with 8 [21:30:00]New connection [21:30:00]New thread 3066801508 created [21:30:00]Thread 3066944868 joined [21:30:00]Waiting for new connection... [21:30:00] Sock 8.Parse request [21:30:00]Sock 8.Check first char [21:30:00]Sock 8.First char is OK [21:30:00]request: POST /json_proto HTTP/1.0 [21:30:00]Method: POST [21:30:00]URL: /json_proto [21:30:00]Method is POST - this is cgi request [21:30:00]url: /json_proto [21:30:00]query_string will be loaded in cgi processing [21:30:00]execute_cgi json_proto POST (null) [21:30:00]execute_cgi path=json_proto method=POST [21:30:00]POST find Content-Length [21:30:00]Host: 172.17.62.5:8080 [21:30:00]Content-Length: 671 [21:30:00]Content-Type: application/json [21:30:00] [21:30:00]POST finish read [21:30:00]Found Content-Length = 671 [21:30:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191505", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 0.030, "sum" : 1.93, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 1.00, "payments": [ { "type": 0, "sum" : 1.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:30:00]execute_script... [21:30: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)191505", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 0.030, "sum" : 1.93, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 1.00, "payments": [ { "type": 0, "sum" : 1.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:30:00]POST & json_proto [21:30:00]process_json_proto [21:30:00]json parsed OK: [21:30:00]protocol is kg_v1.0 [21:30:00]action value=close_receipt [21:30:00]process_action close_receipt [21:30:00]cmd_close_receipt [21:30:00]MH_GetDate [21:30:00]Write to MH i2c: F0 00 00 FD 13 FF [21:30:00]Write i2c OK [21:30:00]MH_I2C_Read... [21:30:00]Read from MH i2c: F0 [21:30:00]MH_I2C_Read... [21:30:00]Read from MH i2c: F0 09 00 [21:30:00]MH_I2C_Read... [21:30:00]Read from MH i2c: F0 09 00 FD 13 00 59 85 25 66 F4 E9 65 64 17 [21:30:00]GetLastDocTimeStamp 1713734940 [21:30:00]current date 1713735001 [21:30:00]FM_GetShiftState [21:30:00]SAM_PROTO_GetShiftState [21:30:00]wFMCommunicate request_size=4 [21:30:00]MH_SAM_APDU [21:30:00]CAPDU: 80 13 01 00 [21:30:00]Write to MH i2c: E2 08 00 FE 13 80 13 01 00 00 00 00 00 8E [21:30:00]Write i2c OK [21:30:00]MH_I2C_Read... [21:30:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:30:00]Read from MH i2c: E2 [21:30:00]MH_I2C_Read... [21:30:00]Read from MH i2c: E2 0E 00 [21:30:00]MH_I2C_Read... [21:30:00]Read from MH i2c: E2 0E 00 FE 13 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 D5 [21:30:00]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:30:00]wFMCommunicate OK [21:30:00]SAM_PROTO_GetShiftState done [21:30:00]FM_GetShiftState done [21:30:00]opened in 1713658965 [21:30:00]opened+sec_in_day 1713745365 [21:30:00]quantity*price = 193 [21:30:00]sum+1 = 194 [21:30:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.93 ИТОГО: 1.00 Внесено: 500.00 СДАЧА: 499.00 НСП 1% : 0.02 НДС 12% : 0.20 Наличными: 1.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 213 21.04.2024 21:30 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76957 ФПД: 150043481747162 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T213001&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76957&fm=150043481747162&tin=02508201610067®Number=0000000000091573&sum=100 [21:30:01]StoreToDocumentArchive [21:30:01]shift 372 fd 76957 [21:30:01]save to /storage/0372/doc_00076957 [21:30:01]save last doc name /storage/0372/doc_00076957 to /storage/kkm_last_doc_name [21:30:01]save OK [21:30:01]Clear old archive folders... [21:30:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:30:01]tlvbuf is 00C9E670 [21:30:01]SAM_PROTO_ClearQueue [21:30:01]wFMCommunicate request_size=4 [21:30:01]MH_SAM_APDU [21:30:01]CAPDU: 80 09 00 00 [21:30:01]Write to MH i2c: E2 08 00 0B 14 80 09 00 00 00 00 00 00 91 [21:30:01]Write i2c OK [21:30:01]MH_I2C_Read... [21:30:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:30:01]Read from MH i2c: E2 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: E2 03 00 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: E2 03 00 0B 14 00 90 00 93 [21:30:01]RAPDU: 90 00 [21:30:01]wFMCommunicate OK [21:30:01]SAM_PROTO_ClearQueue done [21:30:01]KKMCreateOFDPacket [21:30:01]OFDProtocolAddRootSTLVToBuf [21:30:01]FM_MakeSignedData [21:30:01]FM_MakeSignedData [21:30:01]SAM_PROTO_SignData [21:30:01]wFMCommunicate request_size=4 [21:30:01]MH_SAM_APDU [21:30:01]CAPDU: 80 0D 01 02 [21:30:01]Write to MH i2c: E2 08 00 0C 14 80 0D 01 02 00 00 00 00 99 [21:30:01]Write i2c OK [21:30:01]MH_I2C_Read... [21:30:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:30:01]Read from MH i2c: E2 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: E2 03 00 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: E2 03 00 0C 14 00 90 00 94 [21:30:01]RAPDU: 90 00 [21:30:01]wFMCommunicate OK [21:30:01]wFMCommunicate request_size=255 [21:30:01]MH_SAM_APDU [21:30: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 1E 00 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 C1 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 00 00 00 00 00 07 04 06 00 64 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 59 85 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9D 2C 01 00 35 04 06 00 88 [21:30:01]Write to MH i2c: E2 02 01 0D 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 1E 00 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 C1 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 00 00 00 00 00 07 04 06 00 64 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 59 85 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9D 2C 01 00 35 04 06 00 88 00 00 A6 [21:30:01]Write i2c OK [21:30:01]MH_I2C_Read... [21:30:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:30:02]Read from MH i2c: E2 [21:30:02]MH_I2C_Read... [21:30:02]Read from MH i2c: E2 03 00 [21:30:02]MH_I2C_Read... [21:30:02]Read from MH i2c: E2 03 00 0D 14 00 90 00 95 [21:30:02]RAPDU: 90 00 [21:30:02]wFMCommunicate OK [21:30:02]wFMCommunicate request_size=10 [21:30:02]MH_SAM_APDU [21:30:02]CAPDU: 80 0D 02 02 05 76 B8 6E 2E DA [21:30:02]Write to MH i2c: E2 0D 00 0E 14 80 0D 02 02 05 00 76 B8 6E 2E DA 00 00 4A [21:30:02]Write i2c OK [21:30:02]MH_I2C_Read... [21:30:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:30:02]Read from MH i2c: E2 [21:30:02]MH_I2C_Read... [21:30:02]Read from MH i2c: E2 03 00 [21:30:02]MH_I2C_Read... [21:30:02]Read from MH i2c: E2 03 00 0E 14 00 90 00 96 [21:30:02]RAPDU: 90 00 [21:30:02]wFMCommunicate OK [21:30:02]wFMCommunicate request_size=4 [21:30:02]MH_SAM_APDU [21:30:02]CAPDU: 80 0D 03 02 [21:30:02]Write to MH i2c: E2 08 00 0F 14 80 0D 03 02 00 00 00 00 9E [21:30:02]Write i2c OK [21:30:02]MH_I2C_Read... [21:30:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:30:02]Read from MH i2c: E2 [21:30:02]MH_I2C_Read... [21:30:02]Read from MH i2c: E2 0B 00 [21:30:02]MH_I2C_Read... [21:30:02]Read from MH i2c: E2 0B 00 0F 14 00 2F 9C 2C 2A 41 7E 60 EB 90 00 CA [21:30:02]RAPDU: 2F 9C 2C 2A 41 7E 60 EB 90 00 [21:30:02]wFMCommunicate OK [21:30:02]SAM_PROTO_SignData done [21:30:02]FM_MakeSignedData done [21:30:02]CreateOFDProtocolMessage [21:30:02]wFMCommunicate request_size=4 [21:30:02]MH_SAM_APDU [21:30:02]CAPDU: 80 11 00 00 [21:30:02]Write to MH i2c: E2 08 00 10 14 80 11 00 00 00 00 00 00 9E [21:30:02]Write i2c OK [21:30:02]MH_I2C_Read... [21:30:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:30:02]Read from MH i2c: E2 [21:30:02]MH_I2C_Read... [21:30:02]Read from MH i2c: E2 17 00 [21:30:02]MH_I2C_Read... [21:30:02]Read from MH i2c: E2 17 00 10 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F1 [21:30:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:30:02]wFMCommunicate OK [21:30:02]CreateOFDProtocolMessage done [21:30:02]OFDSenderStorePacket 76957 [21:30:02]StoreOFDPacket docnum=76957 [21:30:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 92 85 07 01 D8 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 00 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 C1 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 00 00 00 00 00 07 04 06 00 64 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 59 85 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9D 2C 01 00 35 04 06 00 88 76 B8 6E 2E DA 2F 9C 2C 2A 41 7E 60 EB [21:30:02]CheckFolder [21:30:02]dirname=/storage/ofd_packets [21:30:02]CheckFolder done [21:30:02]ProducePacketName [21:30:02]name=ofd_packets/00076957 [21:30:02]NVStorageSaveData ofd_packets/00076957 [21:30:02]File name is /storage/ofd_packets/00076957 [21:30:02]Write 301 bytes [21:30:02]NVStorageSaveData done [21:30:02]OFDSenderStorePacket done [21:30:02]KKMCreateOFDPacket done [21:30:02]NVStorageSaveData kkm_last_timestamp [21:30:02]File name is /storage/kkm_last_timestamp [21:30:02]Write 4 bytes [21:30:02]NVStorageSaveData done [21:30:02]OFD Sender: Processing packet 76957 [packets to send 129, broken 128] [21:30:02]ProducePacketName [21:30:02]name=ofd_packets/00076957 [21:30:02]OFD Sender: To server: pG, [21:30:02]CommunicateWithHost lk.salyk.kg:30040 [21:30:02]ConnectInit lk.salyk.kg [21:30:02]ExternCall_PrintAddStr [21:30:02]wPrintStart [21:30:02]Write to MH i2c: 01 00 00 11 14 25 [21:30:02]Write i2c OK [21:30:02]MH_I2C_Read... [21:30:02]Read from MH i2c: 01 [21:30:02]MH_I2C_Read... [21:30:02]Read from MH i2c: 01 07 00 [21:30:02]MH_I2C_Read... [21:30:02]Read from MH i2c: 01 07 00 11 14 00 00 00 00 00 FF 0F 3A [21:30:02]RasterBufferAndPrint [21:30:02]line Счет N : (1)191505 [21:30:02]line ИНН: 02508201610067 [21:30:02]line Контрольно-Кассовый Чек [21:30:02]line ПРОДАЖА [21:30:02]line ТРК (МРК, ГНК) : 22 [21:30:02]line Товар: 2710124130 [21:30:02]line Аи-92-К-5 [21:30:02]line 0.030 * 64.40 [21:30:02]line = 1.93 [21:30:02]line НДС 12% НСП 1% [21:30:02]line > о реализуемом товаре [21:30:02]line ОКРУГЛЕНИЕ: -0.93 [21:30:02]line ИТОГО: 1.00 [21:30:02]line Внесено: 500.00 [21:30:02]line СДАЧА: 499.00 [21:30:02]line НСП 1% : 0.02 [21:30:02]line НДС 12% : 0.20 [21:30:02]line Наличными: 1.00 [21:30:02]line Безнал.: 0.00 [21:30:02]line Место: АЗС № 106 "Партнер Нефть" [21:30:02]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [21:30:02]line СНО: Общий режим [21:30:02]line Чек 213 21.04.2024 21:30 [21:30:02]line Смена: 372 ФФД: 1.0 [21:30:02]line ЗНМ: 0300000141 [21:30:02]line РНМ: 0000000000091573 [21:30:02]line Версия ККМ: 001 [21:30:02]line ФМ: 0000000000874652 [21:30:02]line ФД: 76957 [21:30:02]line ФПД: 150043481747162 [21:30:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T213001&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76957&fm=150043481747162&tin=02508201610067®Number=0000000000091573&sum=100 [21:30:02]Connected sock=11 [21:30:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 92 85 07 01 D8 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 00 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 C1 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 00 00 00 00 00 07 04 06 00 64 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 59 85 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9D 2C 01 00 35 04 06 00 88 76 B8 6E 2E DA 2F 9C 2C 2A 41 7E 60 EB [21:30:02]written 0, free lines is 4095 [21:30:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 10 B5 47 00 2C 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 34 36 35 32 10 04 04 00 9D 2C 01 00 F4 03 04 00 DE 2C 25 66 B6 04 01 00 00 7F 60 6E F2 8C C9 04 2F [21:30:02]CommunicateWithHost err = 0 [21:30:02]CheckOFDResponse [21:30:02]1017 (14) - 77093643461234 [21:30:02]1041 (16) - 0000000000874652 [21:30:02]1040 (4) - 76957 [21:30:02]1012 (4) - 21.04.2024 15:12 [21:30:02]1206 (1) - 0 [21:30:02]OFD Sender: Remove packet 76957 [21:30:02]ProducePacketName [21:30:02]name=ofd_packets/00076957 [21:30:02]NVStorageDeleteData [21:30:03]Write to MH i2c: 01 00 00 3B 14 4F [21:30:03]Write i2c OK [21:30:03]MH_I2C_Read... [21:30:03]Read from MH i2c: 01 [21:30:03]MH_I2C_Read... [21:30:03]Read from MH i2c: 01 07 00 [21:30:03]MH_I2C_Read... [21:30:03]Read from MH i2c: 01 07 00 3B 14 00 00 00 00 00 E1 0C 43 [21:30:03]RasterBufferAndPrint [21:30:03]line [21:30:03]line [21:30:03]line [21:30:03]line [21:30:03]line [21:30:03]written 0, free lines is 3303 [21:30:03]MH_Cut [21:30:03]Write to MH i2c: D1 01 00 42 14 01 28 [21:30:03]Write i2c OK [21:30:03]MH_I2C_Read... [21:30:03]Read from MH i2c: D1 [21:30:03]MH_I2C_Read... [21:30:03]Read from MH i2c: D1 01 00 [21:30:03]MH_I2C_Read... [21:30:03]Read from MH i2c: D1 01 00 42 14 00 27 [21:30:03]Write to MH i2c: 01 00 00 43 14 57 [21:30:03]Write i2c OK [21:30:03]MH_I2C_Read... [21:30:03]OFD Sender: No OFD packet to send [21:30:03]*** Cut start [21:30:03]*** Partial cut [21:30:03]*** CUTSNS_PIN = 1 [21:30:03]*** CUTSNS_PIN = 0 [21:30:04]*** Brake cut motor [21:30:04]Read from MH i2c: 01 [21:30:04]MH_I2C_Read... [21:30:04]*** Stop cut motor [21:30:04]*** Cut end [21:30:04]Read from MH i2c: 01 07 00 [21:30:04]MH_I2C_Read... [21:30:04]Read from MH i2c: 01 07 00 43 14 00 00 00 00 00 FF 0F 6C [21:30:04]process_action close_receipt done [21:30:04]requested_data is exist [21:30:04]produce_requested_data [21:30:04]requested_item fm.sn is exist - process it [21:30:04]wFMCommunicate request_size=4 [21:30:04]MH_SAM_APDU [21:30:04]CAPDU: 80 11 00 00 [21:30:04]Write to MH i2c: E2 08 00 44 14 80 11 00 00 00 00 00 00 D2 [21:30:04]Write i2c OK [21:30:04]MH_I2C_Read... [21:30:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:30:04]Read from MH i2c: E2 [21:30:04]MH_I2C_Read... [21:30:04]Read from MH i2c: E2 17 00 [21:30:04]MH_I2C_Read... [21:30:04]Read from MH i2c: E2 17 00 44 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 25 [21:30:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:30:04]wFMCommunicate OK [21:30:04]requested_item fd.num is exist - process it [21:30:04]SAM_PROTO_GetFieldsCounters [21:30:04]wFMCommunicate request_size=4 [21:30:04]MH_SAM_APDU [21:30:04]CAPDU: 80 13 00 00 [21:30:04]Write to MH i2c: E2 08 00 45 14 80 13 00 00 00 00 00 00 D5 [21:30:04]Write i2c OK [21:30:04]MH_I2C_Read... [21:30:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:30:04]Read from MH i2c: E2 [21:30:04]MH_I2C_Read... [21:30:04]Read from MH i2c: E2 62 00 [21:30:04]MH_I2C_Read... [21:30:04]Read from MH i2c: E2 62 00 45 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 9D 2C 01 00 0E 04 04 00 74 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 B4 [21:30: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 9D 2C 01 00 0E 04 04 00 74 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 [21:30:04]wFMCommunicate OK [21:30:04]SAM_PROTO_GetFieldsCounters done [21:30:04]requested_item shift.num is exist - process it [21:30:04]requested_item shift.opened is exist - process it [21:30:04]req_shift_opened [21:30:04]FM_GetShiftState [21:30:04]SAM_PROTO_GetShiftState [21:30:04]wFMCommunicate request_size=4 [21:30:04]MH_SAM_APDU [21:30:04]CAPDU: 80 13 01 00 [21:30:04]Write to MH i2c: E2 08 00 46 14 80 13 01 00 00 00 00 00 D7 [21:30:04]Write i2c OK [21:30:04]MH_I2C_Read... [21:30:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:30:04]Read from MH i2c: E2 [21:30:04]MH_I2C_Read... [21:30:04]Read from MH i2c: E2 0E 00 [21:30:04]MH_I2C_Read... [21:30:04]Read from MH i2c: E2 0E 00 46 14 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 1E [21:30:04]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:30:04]wFMCommunicate OK [21:30:04]SAM_PROTO_GetShiftState done [21:30:04]FM_GetShiftState done [21:30:04]req_shift_opened done [21:30:04]requested_item shift.open_date is exist - process it [21:30:04]req_shift_open_date [21:30:04]req_shift_open_date done [21:30:04]produce_requested_data done [21:30:04]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76957,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [21:30:04]process_action_free close_receipt [21:30:04]json_value_free [21:30:04]json_value_free done [21:30:04]process_json_proto returns [21:30:04]Send response to host [21:30:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76957,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [21:30:04]free response buf [21:30:04]execute_script done [21:30:04]execute_script returns [21:30:04]free content buf [21:30:04]Sock 8.Close socket [21:30:04]Sock 8.Thread stoped [21:30:08]OFD Sender: No OFD packet to send [21:30:13]OFD Sender: No OFD packet to send [21:30:18]OFD Sender: No OFD packet to send [21:30:23]OFD Sender: No OFD packet to send [21:30:28]OFD Sender: No OFD packet to send [21:30:33]OFD Sender: No OFD packet to send [21:30:38]OFD Sender: No OFD packet to send [21:30:43]OFD Sender: No OFD packet to send [21:30:45]accept exits with 9 [21:30:45]New connection [21:30:45]New thread 3066944868 created [21:30:45]Thread 3066801508 joined [21:30:45]Waiting for new connection... [21:30:45] Sock 9.Parse request [21:30:45]Sock 9.Check first char [21:30:45]Sock 9.First char is OK [21:30:45]request: POST /json_proto HTTP/1.0 [21:30:45]Method: POST [21:30:45]URL: /json_proto [21:30:45]Method is POST - this is cgi request [21:30:45]url: /json_proto [21:30:45]query_string will be loaded in cgi processing [21:30:45]execute_cgi json_proto POST (null) [21:30:45]execute_cgi path=json_proto method=POST [21:30:45]POST find Content-Length [21:30:45]Host: 172.17.62.5:8080 [21:30:45]Content-Length: 677 [21:30:45]Content-Type: application/json [21:30:45] [21:30:45]POST finish read [21:30:45]Found Content-Length = 677 [21:30:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191507", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:30:45]execute_script... [21:30: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)191507", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:30:45]POST & json_proto [21:30:45]process_json_proto [21:30:45]json parsed OK: [21:30:45]protocol is kg_v1.0 [21:30:45]action value=close_receipt [21:30:45]process_action close_receipt [21:30:45]cmd_close_receipt [21:30:45]MH_GetDate [21:30:45]Write to MH i2c: F0 00 00 47 14 4A [21:30:45]Write i2c OK [21:30:45]MH_I2C_Read... [21:30:45]Read from MH i2c: F0 [21:30:45]MH_I2C_Read... [21:30:45]Read from MH i2c: F0 09 00 [21:30:45]MH_I2C_Read... [21:30:45]Read from MH i2c: F0 09 00 47 14 00 86 85 25 66 F4 E9 65 64 8F [21:30:45]GetLastDocTimeStamp 1713735001 [21:30:45]current date 1713735046 [21:30:45]FM_GetShiftState [21:30:45]SAM_PROTO_GetShiftState [21:30:45]wFMCommunicate request_size=4 [21:30:45]MH_SAM_APDU [21:30:45]CAPDU: 80 13 01 00 [21:30:45]Write to MH i2c: E2 08 00 48 14 80 13 01 00 00 00 00 00 D9 [21:30:45]Write i2c OK [21:30:45]MH_I2C_Read... [21:30:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:30:45]Read from MH i2c: E2 [21:30:45]MH_I2C_Read... [21:30:45]Read from MH i2c: E2 0E 00 [21:30:45]MH_I2C_Read... [21:30:45]Read from MH i2c: E2 0E 00 48 14 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 20 [21:30:45]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:30:45]wFMCommunicate OK [21:30:45]SAM_PROTO_GetShiftState done [21:30:45]FM_GetShiftState done [21:30:45]opened in 1713658965 [21:30:45]opened+sec_in_day 1713745365 [21:30:45]quantity*price = 50038 [21:30:45]sum+1 = 50040 [21:30:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 214 21.04.2024 21:30 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76958 ФПД: 22223310643560 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T213046&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76958&fm=22223310643560&tin=02508201610067®Number=0000000000091573&sum=50000 [21:30:46]StoreToDocumentArchive [21:30:46]shift 372 fd 76958 [21:30:46]save to /storage/0372/doc_00076958 [21:30:46]save last doc name /storage/0372/doc_00076958 to /storage/kkm_last_doc_name [21:30:46]save OK [21:30:46]Clear old archive folders... [21:30:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:30:46]tlvbuf is 00C67100 [21:30:46]SAM_PROTO_ClearQueue [21:30:46]wFMCommunicate request_size=4 [21:30:46]MH_SAM_APDU [21:30:46]CAPDU: 80 09 00 00 [21:30:46]Write to MH i2c: E2 08 00 55 14 80 09 00 00 00 00 00 00 DB [21:30:46]Write i2c OK [21:30:46]MH_I2C_Read... [21:30:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:30:46]Read from MH i2c: E2 [21:30:46]MH_I2C_Read... [21:30:46]Read from MH i2c: E2 03 00 [21:30:46]MH_I2C_Read... [21:30:46]Read from MH i2c: E2 03 00 55 14 00 90 00 DD [21:30:46]RAPDU: 90 00 [21:30:46]wFMCommunicate OK [21:30:46]SAM_PROTO_ClearQueue done [21:30:46]KKMCreateOFDPacket [21:30:46]OFDProtocolAddRootSTLVToBuf [21:30:46]FM_MakeSignedData [21:30:46]FM_MakeSignedData [21:30:46]SAM_PROTO_SignData [21:30:46]wFMCommunicate request_size=4 [21:30:46]MH_SAM_APDU [21:30:46]CAPDU: 80 0D 01 02 [21:30:46]Write to MH i2c: E2 08 00 56 14 80 0D 01 02 00 00 00 00 E3 [21:30:46]Write i2c OK [21:30:46]MH_I2C_Read... [21:30:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:30:46]Read from MH i2c: E2 [21:30:46]MH_I2C_Read... [21:30:46]Read from MH i2c: E2 03 00 [21:30:46]MH_I2C_Read... [21:30:46]Read from MH i2c: E2 03 00 56 14 00 90 00 DE [21:30:46]RAPDU: 90 00 [21:30:46]wFMCommunicate OK [21:30:46]wFMCommunicate request_size=255 [21:30:46]MH_SAM_APDU [21:30:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 86 85 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9E 2C 01 00 35 04 06 00 14 [21:30:46]Write to MH i2c: E2 02 01 57 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 86 85 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9E 2C 01 00 35 04 06 00 14 00 00 58 [21:30:46]Write i2c OK [21:30:46]MH_I2C_Read... [21:30:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:30:46]Read from MH i2c: E2 [21:30:46]MH_I2C_Read... [21:30:46]Read from MH i2c: E2 03 00 [21:30:46]MH_I2C_Read... [21:30:46]Read from MH i2c: E2 03 00 57 14 00 90 00 DF [21:30:46]RAPDU: 90 00 [21:30:46]wFMCommunicate OK [21:30:46]wFMCommunicate request_size=10 [21:30:46]MH_SAM_APDU [21:30:46]CAPDU: 80 0D 02 02 05 36 44 89 61 68 [21:30:46]Write to MH i2c: E2 0D 00 58 14 80 0D 02 02 05 00 36 44 89 61 68 00 00 BC [21:30:46]Write i2c OK [21:30:46]MH_I2C_Read... [21:30:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:30:46]Read from MH i2c: E2 [21:30:46]MH_I2C_Read... [21:30:46]Read from MH i2c: E2 03 00 [21:30:46]MH_I2C_Read... [21:30:46]Read from MH i2c: E2 03 00 58 14 00 90 00 E0 [21:30:46]RAPDU: 90 00 [21:30:46]wFMCommunicate OK [21:30:46]wFMCommunicate request_size=4 [21:30:46]MH_SAM_APDU [21:30:46]CAPDU: 80 0D 03 02 [21:30:46]Write to MH i2c: E2 08 00 59 14 80 0D 03 02 00 00 00 00 E8 [21:30:46]Write i2c OK [21:30:46]MH_I2C_Read... [21:30:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:30:46]Read from MH i2c: E2 [21:30:46]MH_I2C_Read... [21:30:46]Read from MH i2c: E2 0B 00 [21:30:46]MH_I2C_Read... [21:30:46]Read from MH i2c: E2 0B 00 59 14 00 98 51 58 8F 8C F2 5D D1 90 00 65 [21:30:46]RAPDU: 98 51 58 8F 8C F2 5D D1 90 00 [21:30:46]wFMCommunicate OK [21:30:46]SAM_PROTO_SignData done [21:30:46]FM_MakeSignedData done [21:30:46]CreateOFDProtocolMessage [21:30:46]wFMCommunicate request_size=4 [21:30:46]MH_SAM_APDU [21:30:46]CAPDU: 80 11 00 00 [21:30:46]Write to MH i2c: E2 08 00 5A 14 80 11 00 00 00 00 00 00 E8 [21:30:46]Write i2c OK [21:30:46]MH_I2C_Read... [21:30:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:30:46]Read from MH i2c: E2 [21:30:46]MH_I2C_Read... [21:30:46]Read from MH i2c: E2 17 00 [21:30:46]MH_I2C_Read... [21:30:46]Read from MH i2c: E2 17 00 5A 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 3B [21:30:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:30:46]wFMCommunicate OK [21:30:46]CreateOFDProtocolMessage done [21:30:46]OFDSenderStorePacket 76958 [21:30:46]StoreOFDPacket docnum=76958 [21:30:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 E0 52 07 01 D2 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 86 85 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9E 2C 01 00 35 04 06 00 14 36 44 89 61 68 98 51 58 8F 8C F2 5D D1 [21:30:46]CheckFolder [21:30:46]dirname=/storage/ofd_packets [21:30:46]CheckFolder done [21:30:46]ProducePacketName [21:30:46]name=ofd_packets/00076958 [21:30:46]NVStorageSaveData ofd_packets/00076958 [21:30:46]File name is /storage/ofd_packets/00076958 [21:30:46]Write 301 bytes [21:30:46]NVStorageSaveData done [21:30:46]OFDSenderStorePacket done [21:30:46]KKMCreateOFDPacket done [21:30:46]NVStorageSaveData kkm_last_timestamp [21:30:46]File name is /storage/kkm_last_timestamp [21:30:46]Write 4 bytes [21:30:46]NVStorageSaveData done [21:30:46]ExternCall_PrintAddStr [21:30:46]wPrintStart [21:30:46]Write to MH i2c: 01 00 00 5B 14 6F [21:30:46]Write i2c OK [21:30:46]MH_I2C_Read... [21:30:46]Read from MH i2c: 01 [21:30:46]MH_I2C_Read... [21:30:46]Read from MH i2c: 01 07 00 [21:30:46]MH_I2C_Read... [21:30:46]Read from MH i2c: 01 07 00 5B 14 00 00 00 00 00 FF 0F 84 [21:30:46]RasterBufferAndPrint [21:30:46]line Счет N : (1)191507 [21:30:46]line ИНН: 02508201610067 [21:30:46]line Контрольно-Кассовый Чек [21:30:46]line ПРОДАЖА [21:30:46]line ТРК (МРК, ГНК) : 22 [21:30:46]line Товар: 2710124130 [21:30:46]line Аи-92-К-5 [21:30:46]line 7.770 * 64.40 [21:30:46]line = 500.39 [21:30:46]line НДС 12% НСП 1% [21:30:46]line > о реализуемом товаре [21:30:46]line ОКРУГЛЕНИЕ: -0.39 [21:30:46]line ИТОГО: 500.00 [21:30:46]line Внесено: 500.00 [21:30:46]line СДАЧА: 0.00 [21:30:46]line НСП 1% : 4.43 [21:30:46]line НДС 12% : 53.14 [21:30:46]line Наличными: 500.00 [21:30:46]line Безнал.: 0.00 [21:30:46]line Место: АЗС № 106 "Партнер Нефть" [21:30:46]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [21:30:46]line СНО: Общий режим [21:30:46]line Чек 214 21.04.2024 21:30 [21:30:46]line Смена: 372 ФФД: 1.0 [21:30:46]line ЗНМ: 0300000141 [21:30:46]line РНМ: 0000000000091573 [21:30:46]line Версия ККМ: 001 [21:30:46]line ФМ: 0000000000874652 [21:30:46]line ФД: 76958 [21:30:46]line ФПД: 22223310643560 [21:30:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T213046&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76958&fm=22223310643560&tin=02508201610067®Number=0000000000091573&sum=50000 [21:30:47]written 0, free lines is 4095 [21:30:47]OFD Sender: Processing packet 76958 [packets to send 129, broken 128] [21:30:47]ProducePacketName [21:30:47]name=ofd_packets/00076958 [21:30:47]OFD Sender: To server: pG, [21:30:47]CommunicateWithHost lk.salyk.kg:30040 [21:30:47]ConnectInit lk.salyk.kg [21:30:47]Connected sock=10 [21:30:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 E0 52 07 01 D2 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 86 85 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9E 2C 01 00 35 04 06 00 14 36 44 89 61 68 98 51 58 8F 8C F2 5D D1 [21:30:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 73 02 47 00 84 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 34 36 35 32 10 04 04 00 9E 2C 01 00 F4 03 04 00 0B 2D 25 66 B6 04 01 00 00 CF 89 BD 06 A1 4B E1 5C [21:30:47]CommunicateWithHost err = 0 [21:30:47]CheckOFDResponse [21:30:47]1017 (14) - 77093643461234 [21:30:47]1041 (16) - 0000000000874652 [21:30:47]1040 (4) - 76958 [21:30:47]1012 (4) - 21.04.2024 15:13 [21:30:47]1206 (1) - 0 [21:30:47]OFD Sender: Remove packet 76958 [21:30:47]ProducePacketName [21:30:47]name=ofd_packets/00076958 [21:30:47]NVStorageDeleteData [21:30:47]Write to MH i2c: 01 00 00 85 14 99 [21:30:47]Write i2c OK [21:30:47]MH_I2C_Read... [21:30:47]Read from MH i2c: 01 [21:30:47]MH_I2C_Read... [21:30:47]Read from MH i2c: 01 07 00 [21:30:47]MH_I2C_Read... [21:30:47]Read from MH i2c: 01 07 00 85 14 00 00 00 00 00 F7 0C A3 [21:30:47]RasterBufferAndPrint [21:30:47]line [21:30:47]line [21:30:47]line [21:30:47]line [21:30:47]line [21:30:47]written 0, free lines is 3326 [21:30:47]MH_Cut [21:30:47]Write to MH i2c: D1 01 00 8C 14 01 72 [21:30:47]Write i2c OK [21:30:47]MH_I2C_Read... [21:30:47]Read from MH i2c: D1 [21:30:47]MH_I2C_Read... [21:30:47]Read from MH i2c: D1 01 00 [21:30:47]MH_I2C_Read... [21:30:47]Read from MH i2c: D1 01 00 8C 14 00 71 [21:30:47]Write to MH i2c: 01 00 00 8D 14 A1 [21:30:47]Write i2c OK [21:30:47]MH_I2C_Read... [21:30:48]OFD Sender: No OFD packet to send [21:30:48]*** Cut start [21:30:48]*** Partial cut [21:30:48]*** CUTSNS_PIN = 1 [21:30:48]*** CUTSNS_PIN = 0 [21:30:48]*** Brake cut motor [21:30:49]Read from MH i2c: 01 [21:30:49]MH_I2C_Read... [21:30:49]*** Stop cut motor [21:30:49]*** Cut end [21:30:49]Read from MH i2c: 01 07 00 [21:30:49]MH_I2C_Read... [21:30:49]Read from MH i2c: 01 07 00 8D 14 00 00 00 00 00 FF 0F B6 [21:30:49]process_action close_receipt done [21:30:49]requested_data is exist [21:30:49]produce_requested_data [21:30:49]requested_item fm.sn is exist - process it [21:30:49]wFMCommunicate request_size=4 [21:30:49]MH_SAM_APDU [21:30:49]CAPDU: 80 11 00 00 [21:30:49]Write to MH i2c: E2 08 00 8E 14 80 11 00 00 00 00 00 00 1C [21:30:49]Write i2c OK [21:30:49]MH_I2C_Read... [21:30:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:30:49]Read from MH i2c: E2 [21:30:49]MH_I2C_Read... [21:30:49]Read from MH i2c: E2 17 00 [21:30:49]MH_I2C_Read... [21:30:49]Read from MH i2c: E2 17 00 8E 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 6F [21:30:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:30:49]wFMCommunicate OK [21:30:49]requested_item fd.num is exist - process it [21:30:49]SAM_PROTO_GetFieldsCounters [21:30:49]wFMCommunicate request_size=4 [21:30:49]MH_SAM_APDU [21:30:49]CAPDU: 80 13 00 00 [21:30:49]Write to MH i2c: E2 08 00 8F 14 80 13 00 00 00 00 00 00 1F [21:30:49]Write i2c OK [21:30:49]MH_I2C_Read... [21:30:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:30:49]Read from MH i2c: E2 [21:30:49]MH_I2C_Read... [21:30:49]Read from MH i2c: E2 62 00 [21:30:49]MH_I2C_Read... [21:30:49]Read from MH i2c: E2 62 00 8F 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 9E 2C 01 00 0E 04 04 00 74 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 02 [21: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 9E 2C 01 00 0E 04 04 00 74 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 [21:30:49]wFMCommunicate OK [21:30:49]SAM_PROTO_GetFieldsCounters done [21:30:49]requested_item shift.num is exist - process it [21:30:49]requested_item shift.opened is exist - process it [21:30:49]req_shift_opened [21:30:49]FM_GetShiftState [21:30:49]SAM_PROTO_GetShiftState [21:30:49]wFMCommunicate request_size=4 [21:30:49]MH_SAM_APDU [21:30:49]CAPDU: 80 13 01 00 [21:30:49]Write to MH i2c: E2 08 00 90 14 80 13 01 00 00 00 00 00 21 [21:30:49]Write i2c OK [21:30:49]MH_I2C_Read... [21:30:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:30:49]Read from MH i2c: E2 [21:30:49]MH_I2C_Read... [21:30:49]Read from MH i2c: E2 0E 00 [21:30:49]MH_I2C_Read... [21:30:49]Read from MH i2c: E2 0E 00 90 14 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 68 [21:30:49]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:30:49]wFMCommunicate OK [21:30:49]SAM_PROTO_GetShiftState done [21:30:49]FM_GetShiftState done [21:30:49]req_shift_opened done [21:30:49]requested_item shift.open_date is exist - process it [21:30:49]req_shift_open_date [21:30:49]req_shift_open_date done [21:30:49]produce_requested_data done [21:30:49]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76958,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [21:30:49]process_action_free close_receipt [21:30:49]json_value_free [21:30:49]json_value_free done [21:30:49]process_json_proto returns [21:30:49]Send response to host [21:30:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76958,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [21:30:49]free response buf [21:30:49]execute_script done [21:30:49]execute_script returns [21:30:49]free content buf [21:30:49]Sock 9.Close socket [21:30:49]Sock 9.Thread stoped [21:30:51]accept exits with 8 [21:30:51]New connection [21:30:51]New thread 3066801508 created [21:30:51]Thread 3066944868 joined [21:30:51]Waiting for new connection... [21:30:51] Sock 8.Parse request [21:30:51]Sock 8.Check first char [21:30:51]Sock 8.First char is OK [21:30:51]request: POST /json_proto HTTP/1.0 [21:30:51]Method: POST [21:30:51]URL: /json_proto [21:30:51]Method is POST - this is cgi request [21:30:51]url: /json_proto [21:30:51]query_string will be loaded in cgi processing [21:30:51]execute_cgi json_proto POST (null) [21:30:51]execute_cgi path=json_proto method=POST [21:30:51]POST find Content-Length [21:30:51]Host: 172.17.62.5:8080 [21:30:51]Content-Length: 978 [21:30:51]Content-Type: application/json [21:30:51] [21:30:51]POST finish read [21:30:51]Found Content-Length = 978 [21:30:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191506", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 27.82 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:30:51]execute_script... [21:30: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)191506", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 27.82 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:30:51]POST & json_proto [21:30:51]process_json_proto [21:30:51]json parsed OK: [21:30:51]protocol is kg_v1.0 [21:30:51]action value=close_receipt [21:30:51]process_action close_receipt [21:30:51]cmd_close_receipt [21:30:51]MH_GetDate [21:30:51]Write to MH i2c: F0 00 00 91 14 94 [21:30:51]Write i2c OK [21:30:51]MH_I2C_Read... [21:30:51]Read from MH i2c: F0 [21:30:51]MH_I2C_Read... [21:30:51]Read from MH i2c: F0 09 00 [21:30:51]MH_I2C_Read... [21:30:51]Read from MH i2c: F0 09 00 91 14 00 8C 85 25 66 F4 E9 65 64 DF [21:30:51]GetLastDocTimeStamp 1713735046 [21:30:51]current date 1713735052 [21:30:51]FM_GetShiftState [21:30:51]SAM_PROTO_GetShiftState [21:30:51]wFMCommunicate request_size=4 [21:30:51]MH_SAM_APDU [21:30:51]CAPDU: 80 13 01 00 [21:30:51]Write to MH i2c: E2 08 00 92 14 80 13 01 00 00 00 00 00 23 [21:30:51]Write i2c OK [21:30:51]MH_I2C_Read... [21:30:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:30:51]Read from MH i2c: E2 [21:30:51]MH_I2C_Read... [21:30:51]Read from MH i2c: E2 0E 00 [21:30:51]MH_I2C_Read... [21:30:51]Read from MH i2c: E2 0E 00 92 14 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 6A [21:30:51]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:30:51]wFMCommunicate OK [21:30:51]SAM_PROTO_GetShiftState done [21:30:51]FM_GetShiftState done [21:30:51]opened in 1713658965 [21:30:51]opened+sec_in_day 1713745365 [21:30:51]quantity*price = 200025 [21:30:51]sum+1 = 200027 [21:30:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 215 21.04.2024 21:30 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 27.82 сом ФМ: 0000000000874652 ФД: 76959 ФПД: 239424044520562 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T213052&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76959&fm=239424044520562&tin=02508201610067®Number=0000000000091573&sum=200000 [21:30:52]StoreToDocumentArchive [21:30:52]shift 372 fd 76959 [21:30:52]save to /storage/0372/doc_00076959 [21:30:52]save last doc name /storage/0372/doc_00076959 to /storage/kkm_last_doc_name [21:30:52]save OK [21:30:52]Clear old archive folders... [21:30:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:30:52]tlvbuf is 00C920B0 [21:30:52]SAM_PROTO_ClearQueue [21:30:52]wFMCommunicate request_size=4 [21:30:52]MH_SAM_APDU [21:30:52]CAPDU: 80 09 00 00 [21:30:52]Write to MH i2c: E2 08 00 9F 14 80 09 00 00 00 00 00 00 25 [21:30:52]Write i2c OK [21:30:52]MH_I2C_Read... [21:30:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:30:52]Read from MH i2c: E2 [21:30:52]MH_I2C_Read... [21:30:52]Read from MH i2c: E2 03 00 [21:30:52]MH_I2C_Read... [21:30:52]Read from MH i2c: E2 03 00 9F 14 00 90 00 27 [21:30:52]RAPDU: 90 00 [21:30:52]wFMCommunicate OK [21:30:52]SAM_PROTO_ClearQueue done [21:30:52]KKMCreateOFDPacket [21:30:52]OFDProtocolAddRootSTLVToBuf [21:30:52]FM_MakeSignedData [21:30:52]FM_MakeSignedData [21:30:52]SAM_PROTO_SignData [21:30:52]wFMCommunicate request_size=4 [21:30:52]MH_SAM_APDU [21:30:52]CAPDU: 80 0D 01 02 [21:30:52]Write to MH i2c: E2 08 00 A0 14 80 0D 01 02 00 00 00 00 2D [21:30:52]Write i2c OK [21:30:52]MH_I2C_Read... [21:30:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:30:52]Read from MH i2c: E2 [21:30:52]MH_I2C_Read... [21:30:52]Read from MH i2c: E2 03 00 [21:30:52]MH_I2C_Read... [21:30:52]Read from MH i2c: E2 03 00 A0 14 00 90 00 28 [21:30:52]RAPDU: 90 00 [21:30:52]wFMCommunicate OK [21:30:52]wFMCommunicate request_size=255 [21:30:52]MH_SAM_APDU [21:30:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 8C 85 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9F 2C 01 00 35 04 06 00 D9 C1 41 1F [21:30:52]Write to MH i2c: E2 02 01 A1 14 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 8C 85 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9F 2C 01 00 35 04 06 00 D9 C1 41 1F 00 00 C8 [21:30:52]Write i2c OK [21:30:52]MH_I2C_Read... [21:30:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:30:52]Read from MH i2c: E2 [21:30:52]MH_I2C_Read... [21:30:52]Read from MH i2c: E2 03 00 [21:30:52]MH_I2C_Read... [21:30:52]Read from MH i2c: E2 03 00 A1 14 00 90 00 29 [21:30:52]RAPDU: 90 00 [21:30:52]wFMCommunicate OK [21:30:52]wFMCommunicate request_size=7 [21:30:52]MH_SAM_APDU [21:30:52]CAPDU: 80 0D 02 02 02 D4 72 [21:30:52]Write to MH i2c: E2 0A 00 A2 14 80 0D 02 02 02 00 D4 72 00 00 7A [21:30:52]Write i2c OK [21:30:52]MH_I2C_Read... [21:30:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:30:53]Read from MH i2c: E2 [21:30:53]MH_I2C_Read... [21:30:53]Read from MH i2c: E2 03 00 [21:30:53]MH_I2C_Read... [21:30:53]Read from MH i2c: E2 03 00 A2 14 00 90 00 2A [21:30:53]RAPDU: 90 00 [21:30:53]wFMCommunicate OK [21:30:53]wFMCommunicate request_size=4 [21:30:53]MH_SAM_APDU [21:30:53]CAPDU: 80 0D 03 02 [21:30:53]Write to MH i2c: E2 08 00 A3 14 80 0D 03 02 00 00 00 00 32 [21:30:53]Write i2c OK [21:30:53]MH_I2C_Read... [21:30:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:30:53]Read from MH i2c: E2 [21:30:53]MH_I2C_Read... [21:30:53]Read from MH i2c: E2 0B 00 [21:30:53]MH_I2C_Read... [21:30:53]Read from MH i2c: E2 0B 00 A3 14 00 F9 34 66 0C 3E 70 E3 F5 90 00 58 [21:30:53]RAPDU: F9 34 66 0C 3E 70 E3 F5 90 00 [21:30:53]wFMCommunicate OK [21:30:53]SAM_PROTO_SignData done [21:30:53]FM_MakeSignedData done [21:30:53]CreateOFDProtocolMessage [21:30:53]wFMCommunicate request_size=4 [21:30:53]MH_SAM_APDU [21:30:53]CAPDU: 80 11 00 00 [21:30:53]Write to MH i2c: E2 08 00 A4 14 80 11 00 00 00 00 00 00 32 [21:30:53]Write i2c OK [21:30:53]MH_I2C_Read... [21:30:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:30:53]Read from MH i2c: E2 [21:30:53]MH_I2C_Read... [21:30:53]Read from MH i2c: E2 17 00 [21:30:53]MH_I2C_Read... [21:30:53]Read from MH i2c: E2 17 00 A4 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 85 [21:30:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:30:53]wFMCommunicate OK [21:30:53]CreateOFDProtocolMessage done [21:30:53]OFDSenderStorePacket 76959 [21:30:53]StoreOFDPacket docnum=76959 [21:30:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 4B 30 04 01 CF 77 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 8C 85 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9F 2C 01 00 35 04 06 00 D9 C1 41 1F D4 72 F9 34 66 0C 3E 70 E3 F5 [21:30:53]CheckFolder [21:30:53]dirname=/storage/ofd_packets [21:30:53]CheckFolder done [21:30:53]ProducePacketName [21:30:53]name=ofd_packets/00076959 [21:30:53]NVStorageSaveData ofd_packets/00076959 [21:30:53]File name is /storage/ofd_packets/00076959 [21:30:53]Write 298 bytes [21:30:53]NVStorageSaveData done [21:30:53]OFDSenderStorePacket done [21:30:53]KKMCreateOFDPacket done [21:30:53]NVStorageSaveData kkm_last_timestamp [21:30:53]File name is /storage/kkm_last_timestamp [21:30:53]Write 4 bytes [21:30:53]NVStorageSaveData done [21:30:53]ExternCall_PrintAddStr [21:30:53]wPrintStart [21:30:53]Write to MH i2c: 01 00 00 A5 14 B9 [21:30:53]Write i2c OK [21:30:53]MH_I2C_Read... [21:30:53]Read from MH i2c: 01 [21:30:53]MH_I2C_Read... [21:30:53]Read from MH i2c: 01 07 00 [21:30:53]MH_I2C_Read... [21:30:53]Read from MH i2c: 01 07 00 A5 14 00 00 00 00 00 FF 0F CE [21:30:53]RasterBufferAndPrint [21:30:53]line Счет N : (1)191506 [21:30:53]line ИНН: 02508201610067 [21:30:53]line Контрольно-Кассовый Чек [21:30:53]line ПРОДАЖА [21:30:53]line ТРК (МРК, ГНК) : 51 [21:30:53]line Товар: 2710194210 [21:30:53]line ДТ-К-5 [21:30:53]line 27.820 * 71.90 [21:30:53]line = 2000.26 [21:30:53]line НДС 12% НСП 1% [21:30:53]line > о реализуемом товаре [21:30:53]line ОКРУГЛЕНИЕ: -0.26 [21:30:53]line ИТОГО: 2000.00 [21:30:53]line Внесено: 2000.00 [21:30:53]line СДАЧА: 0.00 [21:30:53]line НСП 1% : 17.70 [21:30:53]line НДС 12% : 212.42 [21:30:53]line Наличными: 2000.00 [21:30:53]line Безнал.: 0.00 [21:30:53]line Место: АЗС № 106 "Партнер Нефть" [21:30:53]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [21:30:53]line СНО: Общий режим [21:30:53]line Чек 215 21.04.2024 21:30 [21:30:53]line Смена: 372 ФФД: 1.0 [21:30:53]line ЗНМ: 0300000141 [21:30:53]line РНМ: 0000000000091573 [21:30:53]line Версия ККМ: 001 [21:30:53]line [21:30:53]line Дисконтная программа [21:30:53]line ДТ [21:30:53]line номер 106 [21:30:53]line сэкономлено 27.82 сом [21:30:53]line ФМ: 0000000000874652 [21:30:53]line ФД: 76959 [21:30:53]line ФПД: 239424044520562 [21:30:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T213052&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76959&fm=239424044520562&tin=02508201610067®Number=0000000000091573&sum=200000 [21:30:53]written 0, free lines is 4095 [21:30:53]OFD Sender: Processing packet 76959 [packets to send 129, broken 128] [21:30:53]ProducePacketName [21:30:53]name=ofd_packets/00076959 [21:30:53]OFD Sender: To server: pG, [21:30:53]CommunicateWithHost lk.salyk.kg:30040 [21:30:53]ConnectInit lk.salyk.kg [21:30:53]Connected sock=10 [21:30:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 4B 30 04 01 CF 77 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 8C 85 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9F 2C 01 00 35 04 06 00 D9 C1 41 1F D4 72 F9 34 66 0C 3E 70 E3 F5 [21:30:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 A9 3C 47 00 64 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9F 2C 01 00 F4 03 04 00 10 2D 25 66 B6 04 01 00 00 51 9B 97 A6 B9 99 15 F2 [21:30:53]CommunicateWithHost err = 0 [21:30:53]CheckOFDResponse [21:30:53]1017 (14) - 77093643461234 [21:30:53]1041 (16) - 0000000000874652 [21:30:53]1040 (4) - 76959 [21:30:53]1012 (4) - 21.04.2024 15:13 [21:30:53]1206 (1) - 0 [21:30:53]OFD Sender: Remove packet 76959 [21:30:53]ProducePacketName [21:30:53]name=ofd_packets/00076959 [21:30:53]NVStorageDeleteData [21:30:53]Write to MH i2c: 01 00 00 D4 14 E8 [21:30:53]Write i2c OK [21:30:53]MH_I2C_Read... [21:30:53]Read from MH i2c: 01 [21:30:53]MH_I2C_Read... [21:30:53]Read from MH i2c: 01 07 00 [21:30:53]MH_I2C_Read... [21:30:53]Read from MH i2c: 01 07 00 D4 14 00 00 00 00 00 A2 0C 9D [21:30:53]RasterBufferAndPrint [21:30:53]line [21:30:53]line [21:30:53]line [21:30:53]line [21:30:53]line [21:30:53]written 0, free lines is 3247 [21:30:53]MH_Cut [21:30:53]Write to MH i2c: D1 01 00 DB 14 01 C1 [21:30:53]Write i2c OK [21:30:53]MH_I2C_Read... [21:30:53]Read from MH i2c: D1 [21:30:53]MH_I2C_Read... [21:30:53]Read from MH i2c: D1 01 00 [21:30:53]MH_I2C_Read... [21:30:53]Read from MH i2c: D1 01 00 DB 14 00 C0 [21:30:53]Write to MH i2c: 01 00 00 DC 14 F0 [21:30:53]Write i2c OK [21:30:53]MH_I2C_Read... [21:30:54]OFD Sender: No OFD packet to send [21:30:54]*** Cut start [21:30:54]*** Partial cut [21:30:54]*** CUTSNS_PIN = 1 [21:30:54]*** CUTSNS_PIN = 0 [21:30:54]*** Brake cut motor [21:30:55]Read from MH i2c: 01 [21:30:55]MH_I2C_Read... [21:30:55]*** Stop cut motor [21:30:55]*** Cut end [21:30:55]Read from MH i2c: 01 07 00 [21:30:55]MH_I2C_Read... [21:30:55]Read from MH i2c: 01 07 00 DC 14 00 00 00 00 00 FF 0F 05 [21:30:55]process_action close_receipt done [21:30:55]requested_data is exist [21:30:55]produce_requested_data [21:30:55]requested_item fm.sn is exist - process it [21:30:55]wFMCommunicate request_size=4 [21:30:55]MH_SAM_APDU [21:30:55]CAPDU: 80 11 00 00 [21:30:55]Write to MH i2c: E2 08 00 DD 14 80 11 00 00 00 00 00 00 6B [21:30:55]Write i2c OK [21:30:55]MH_I2C_Read... [21:30:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:30:55]Read from MH i2c: E2 [21:30:55]MH_I2C_Read... [21:30:55]Read from MH i2c: E2 17 00 [21:30:55]MH_I2C_Read... [21:30:55]Read from MH i2c: E2 17 00 DD 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 BE [21:30:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:30:55]wFMCommunicate OK [21:30:55]requested_item fd.num is exist - process it [21:30:55]SAM_PROTO_GetFieldsCounters [21:30:55]wFMCommunicate request_size=4 [21:30:55]MH_SAM_APDU [21:30:55]CAPDU: 80 13 00 00 [21:30:55]Write to MH i2c: E2 08 00 DE 14 80 13 00 00 00 00 00 00 6E [21:30:55]Write i2c OK [21:30:55]MH_I2C_Read... [21:30:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:30:55]Read from MH i2c: E2 [21:30:55]MH_I2C_Read... [21:30:55]Read from MH i2c: E2 62 00 [21:30:55]MH_I2C_Read... [21:30:55]Read from MH i2c: E2 62 00 DE 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 9F 2C 01 00 0E 04 04 00 74 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 55 [21:30: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 9F 2C 01 00 0E 04 04 00 74 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 [21:30:55]wFMCommunicate OK [21:30:55]SAM_PROTO_GetFieldsCounters done [21:30:55]requested_item shift.num is exist - process it [21:30:55]requested_item shift.opened is exist - process it [21:30:55]req_shift_opened [21:30:55]FM_GetShiftState [21:30:55]SAM_PROTO_GetShiftState [21:30:55]wFMCommunicate request_size=4 [21:30:55]MH_SAM_APDU [21:30:55]CAPDU: 80 13 01 00 [21:30:55]Write to MH i2c: E2 08 00 DF 14 80 13 01 00 00 00 00 00 70 [21:30:55]Write i2c OK [21:30:55]MH_I2C_Read... [21:30:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:30:55]Read from MH i2c: E2 [21:30:55]MH_I2C_Read... [21:30:55]Read from MH i2c: E2 0E 00 [21:30:55]MH_I2C_Read... [21:30:55]Read from MH i2c: E2 0E 00 DF 14 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 B7 [21:30:55]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:30:55]wFMCommunicate OK [21:30:55]SAM_PROTO_GetShiftState done [21:30:55]FM_GetShiftState done [21:30:55]req_shift_opened done [21:30:55]requested_item shift.open_date is exist - process it [21:30:55]req_shift_open_date [21:30:55]req_shift_open_date done [21:30:55]produce_requested_data done [21:30:55]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76959,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [21:30:55]process_action_free close_receipt [21:30:55]json_value_free [21:30:55]json_value_free done [21:30:55]process_json_proto returns [21:30:55]Send response to host [21:30:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76959,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [21:30:55]free response buf [21:30:55]execute_script done [21:30:55]execute_script returns [21:30:55]free content buf [21:30:55]Sock 8.Close socket [21:30:55]Sock 8.Thread stoped [21:30:59]OFD Sender: No OFD packet to send [21:31:04]OFD Sender: No OFD packet to send [21:31:09]OFD Sender: No OFD packet to send [21:31:14]OFD Sender: No OFD packet to send [21:31:19]OFD Sender: No OFD packet to send [21:31:24]OFD Sender: No OFD packet to send [21:31:29]OFD Sender: No OFD packet to send [21:31:34]OFD Sender: No OFD packet to send [21:31:39]OFD Sender: No OFD packet to send [21:31:44]OFD Sender: No OFD packet to send [21:31:49]OFD Sender: No OFD packet to send [21:31:54]OFD Sender: No OFD packet to send [21:31:59]OFD Sender: No OFD packet to send [21:32:04]OFD Sender: No OFD packet to send [21:32:09]OFD Sender: No OFD packet to send [21:32:14]OFD Sender: No OFD packet to send [21:32:19]OFD Sender: No OFD packet to send [21:32:24]OFD Sender: No OFD packet to send [21:32:29]OFD Sender: No OFD packet to send [21:32:34]OFD Sender: No OFD packet to send [21:32:39]OFD Sender: No OFD packet to send [21:32:44]OFD Sender: No OFD packet to send [21:32:49]OFD Sender: No OFD packet to send [21:32:54]OFD Sender: No OFD packet to send [21:32:59]OFD Sender: No OFD packet to send [21:33:04]OFD Sender: No OFD packet to send [21:33:09]OFD Sender: No OFD packet to send [21:33:14]OFD Sender: No OFD packet to send [21:33:19]OFD Sender: No OFD packet to send [21:33:24]OFD Sender: No OFD packet to send [21:33:29]OFD Sender: No OFD packet to send [21:33:34]OFD Sender: No OFD packet to send [21:33:39]OFD Sender: No OFD packet to send [21:33:44]OFD Sender: No OFD packet to send [21:33:49]OFD Sender: No OFD packet to send [21:33:54]OFD Sender: No OFD packet to send [21:33:59]OFD Sender: No OFD packet to send [21:34:04]OFD Sender: No OFD packet to send [21:34:09]OFD Sender: No OFD packet to send [21:34:14]OFD Sender: No OFD packet to send [21:34:19]OFD Sender: No OFD packet to send [21:34:24]OFD Sender: No OFD packet to send [21:34:29]OFD Sender: No OFD packet to send [21:34:34]OFD Sender: No OFD packet to send [21:34:39]OFD Sender: No OFD packet to send [21:34:44]OFD Sender: No OFD packet to send [21:34:49]OFD Sender: No OFD packet to send [21:34:54]OFD Sender: No OFD packet to send [21:34:59]OFD Sender: No OFD packet to send [21:35:04]OFD Sender: No OFD packet to send [21:35:09]OFD Sender: No OFD packet to send [21:35:14]OFD Sender: No OFD packet to send [21:35:19]OFD Sender: No OFD packet to send [21:35:24]OFD Sender: No OFD packet to send [21:35:29]OFD Sender: No OFD packet to send [21:35:34]OFD Sender: No OFD packet to send [21:35:39]OFD Sender: No OFD packet to send [21:35:44]OFD Sender: No OFD packet to send [21:35:49]OFD Sender: No OFD packet to send [21:35:54]OFD Sender: No OFD packet to send [21:35:59]OFD Sender: No OFD packet to send [21:36:04]OFD Sender: No OFD packet to send [21:36:09]OFD Sender: No OFD packet to send [21:36:14]OFD Sender: No OFD packet to send [21:36:19]OFD Sender: No OFD packet to send [21:36:24]OFD Sender: No OFD packet to send [21:36:29]OFD Sender: No OFD packet to send [21:36:34]OFD Sender: No OFD packet to send [21:36:39]OFD Sender: No OFD packet to send [21:36:44]OFD Sender: No OFD packet to send [21:36:49]OFD Sender: No OFD packet to send [21:36:54]OFD Sender: No OFD packet to send [21:36:59]OFD Sender: No OFD packet to send [21:37:04]OFD Sender: No OFD packet to send [21:37:09]OFD Sender: No OFD packet to send [21:37:14]OFD Sender: No OFD packet to send [21:37:19]OFD Sender: No OFD packet to send [21:37:24]OFD Sender: No OFD packet to send [21:37:29]OFD Sender: No OFD packet to send [21:37:34]OFD Sender: No OFD packet to send [21:37:39]OFD Sender: No OFD packet to send [21:37:44]OFD Sender: No OFD packet to send [21:37:49]OFD Sender: No OFD packet to send [21:37:54]OFD Sender: No OFD packet to send [21:37:59]OFD Sender: No OFD packet to send [21:38:04]OFD Sender: No OFD packet to send [21:38:09]OFD Sender: No OFD packet to send [21:38:14]OFD Sender: No OFD packet to send [21:38:19]OFD Sender: No OFD packet to send [21:38:24]OFD Sender: No OFD packet to send [21:38:29]OFD Sender: No OFD packet to send [21:38:34]OFD Sender: No OFD packet to send [21:38:39]OFD Sender: No OFD packet to send [21:38:44]OFD Sender: No OFD packet to send [21:38:46]accept exits with 9 [21:38:46]New connection [21:38:46]New thread 3066944868 created [21:38:46]Thread 3066801508 joined [21:38:46]Waiting for new connection... [21:38:46] Sock 9.Parse request [21:38:46]Sock 9.Check first char [21:38:46]Sock 9.First char is OK [21:38:46]request: POST /json_proto HTTP/1.0 [21:38:46]Method: POST [21:38:46]URL: /json_proto [21:38:46]Method is POST - this is cgi request [21:38:46]url: /json_proto [21:38:46]query_string will be loaded in cgi processing [21:38:46]execute_cgi json_proto POST (null) [21:38:46]execute_cgi path=json_proto method=POST [21:38:46]POST find Content-Length [21:38:46]Host: 172.17.62.5:8080 [21:38:46]Content-Length: 682 [21:38:46]Content-Type: application/json [21:38:46] [21:38:46]POST finish read [21:38:46]Found Content-Length = 682 [21:38:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191508", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:38:46]execute_script... [21:38: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)191508", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:38:46]POST & json_proto [21:38:46]process_json_proto [21:38:46]json parsed OK: [21:38:46]protocol is kg_v1.0 [21:38:46]action value=close_receipt [21:38:46]process_action close_receipt [21:38:46]cmd_close_receipt [21:38:46]MH_GetDate [21:38:46]Write to MH i2c: F0 00 00 E0 14 E3 [21:38:46]Write i2c OK [21:38:46]MH_I2C_Read... [21:38:46]Read from MH i2c: F0 [21:38:46]MH_I2C_Read... [21:38:46]Read from MH i2c: F0 09 00 [21:38:46]MH_I2C_Read... [21:38:46]Read from MH i2c: F0 09 00 E0 14 00 67 87 25 66 F4 E9 65 64 0B [21:38:46]GetLastDocTimeStamp 1713735052 [21:38:46]current date 1713735527 [21:38:46]FM_GetShiftState [21:38:46]SAM_PROTO_GetShiftState [21:38:46]wFMCommunicate request_size=4 [21:38:46]MH_SAM_APDU [21:38:46]CAPDU: 80 13 01 00 [21:38:46]Write to MH i2c: E2 08 00 E1 14 80 13 01 00 00 00 00 00 72 [21:38:46]Write i2c OK [21:38:46]MH_I2C_Read... [21:38:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:46]Read from MH i2c: E2 [21:38:46]MH_I2C_Read... [21:38:46]Read from MH i2c: E2 0E 00 [21:38:46]MH_I2C_Read... [21:38:46]Read from MH i2c: E2 0E 00 E1 14 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 B9 [21:38:46]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:38:46]wFMCommunicate OK [21:38:46]SAM_PROTO_GetShiftState done [21:38:46]FM_GetShiftState done [21:38:46]opened in 1713658965 [21:38:46]opened+sec_in_day 1713745365 [21:38:46]quantity*price = 100013 [21:38:46]sum+1 = 100014 [21:38:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 216 21.04.2024 21:38 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76960 ФПД: 73237752256318 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T213847&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76960&fm=73237752256318&tin=02508201610067®Number=0000000000091573&sum=100000 [21:38:47]StoreToDocumentArchive [21:38:47]shift 372 fd 76960 [21:38:47]save to /storage/0372/doc_00076960 [21:38:47]save last doc name /storage/0372/doc_00076960 to /storage/kkm_last_doc_name [21:38:47]save OK [21:38:47]Clear old archive folders... [21:38:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:38:47]tlvbuf is 00C67840 [21:38:47]SAM_PROTO_ClearQueue [21:38:47]wFMCommunicate request_size=4 [21:38:47]MH_SAM_APDU [21:38:47]CAPDU: 80 09 00 00 [21:38:47]Write to MH i2c: E2 08 00 EE 14 80 09 00 00 00 00 00 00 74 [21:38:47]Write i2c OK [21:38:47]MH_I2C_Read... [21:38:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:38:47]Read from MH i2c: E2 [21:38:47]MH_I2C_Read... [21:38:47]Read from MH i2c: E2 03 00 [21:38:47]MH_I2C_Read... [21:38:47]Read from MH i2c: E2 03 00 EE 14 00 90 00 76 [21:38:47]RAPDU: 90 00 [21:38:47]wFMCommunicate OK [21:38:47]SAM_PROTO_ClearQueue done [21:38:47]KKMCreateOFDPacket [21:38:47]OFDProtocolAddRootSTLVToBuf [21:38:47]FM_MakeSignedData [21:38:47]FM_MakeSignedData [21:38:47]SAM_PROTO_SignData [21:38:47]wFMCommunicate request_size=4 [21:38:47]MH_SAM_APDU [21:38:47]CAPDU: 80 0D 01 02 [21:38:47]Write to MH i2c: E2 08 00 EF 14 80 0D 01 02 00 00 00 00 7C [21:38:47]Write i2c OK [21:38:47]MH_I2C_Read... [21:38:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:38:47]Read from MH i2c: E2 [21:38:47]MH_I2C_Read... [21:38:47]Read from MH i2c: E2 03 00 [21:38:47]MH_I2C_Read... [21:38:47]Read from MH i2c: E2 03 00 EF 14 00 90 00 77 [21:38:47]RAPDU: 90 00 [21:38:47]wFMCommunicate OK [21:38:47]wFMCommunicate request_size=255 [21:38:47]MH_SAM_APDU [21:38: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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 67 87 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A0 2C 01 00 35 04 06 00 42 [21:38:47]Write to MH i2c: E2 02 01 F0 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 67 87 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A0 2C 01 00 35 04 06 00 42 00 00 22 [21:38:47]Write i2c OK [21:38:47]MH_I2C_Read... [21:38:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:38:48]Read from MH i2c: E2 [21:38:48]MH_I2C_Read... [21:38:48]Read from MH i2c: E2 03 00 [21:38:48]MH_I2C_Read... [21:38:48]Read from MH i2c: E2 03 00 F0 14 00 90 00 78 [21:38:48]RAPDU: 90 00 [21:38:48]wFMCommunicate OK [21:38:48]wFMCommunicate request_size=10 [21:38:48]MH_SAM_APDU [21:38:48]CAPDU: 80 0D 02 02 05 9B FE 35 17 3E [21:38:48]Write to MH i2c: E2 0D 00 F1 14 80 0D 02 02 05 00 9B FE 35 17 3E 00 00 AC [21:38:48]Write i2c OK [21:38:48]MH_I2C_Read... [21:38:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:38:48]Read from MH i2c: E2 [21:38:48]MH_I2C_Read... [21:38:48]Read from MH i2c: E2 03 00 [21:38:48]MH_I2C_Read... [21:38:48]Read from MH i2c: E2 03 00 F1 14 00 90 00 79 [21:38:48]RAPDU: 90 00 [21:38:48]wFMCommunicate OK [21:38:48]wFMCommunicate request_size=4 [21:38:48]MH_SAM_APDU [21:38:48]CAPDU: 80 0D 03 02 [21:38:48]Write to MH i2c: E2 08 00 F2 14 80 0D 03 02 00 00 00 00 81 [21:38:48]Write i2c OK [21:38:48]MH_I2C_Read... [21:38:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:38:48]Read from MH i2c: E2 [21:38:48]MH_I2C_Read... [21:38:48]Read from MH i2c: E2 0B 00 [21:38:48]MH_I2C_Read... [21:38:48]Read from MH i2c: E2 0B 00 F2 14 00 89 84 B7 D7 16 70 32 60 90 00 35 [21:38:48]RAPDU: 89 84 B7 D7 16 70 32 60 90 00 [21:38:48]wFMCommunicate OK [21:38:48]SAM_PROTO_SignData done [21:38:48]FM_MakeSignedData done [21:38:48]CreateOFDProtocolMessage [21:38:48]wFMCommunicate request_size=4 [21:38:48]MH_SAM_APDU [21:38:48]CAPDU: 80 11 00 00 [21:38:48]Write to MH i2c: E2 08 00 F3 14 80 11 00 00 00 00 00 00 81 [21:38:48]Write i2c OK [21:38:48]MH_I2C_Read... [21:38:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:48]Read from MH i2c: E2 [21:38:48]MH_I2C_Read... [21:38:48]Read from MH i2c: E2 17 00 [21:38:48]MH_I2C_Read... [21:38:48]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 34 36 35 32 90 00 D4 [21:38:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:38:48]wFMCommunicate OK [21:38:48]CreateOFDProtocolMessage done [21:38:48]OFDSenderStorePacket 76960 [21:38:48]StoreOFDPacket docnum=76960 [21:38:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 2A 1A 07 01 13 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 67 87 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A0 2C 01 00 35 04 06 00 42 9B FE 35 17 3E 89 84 B7 D7 16 70 32 60 [21:38:48]CheckFolder [21:38:48]dirname=/storage/ofd_packets [21:38:48]CheckFolder done [21:38:48]ProducePacketName [21:38:48]name=ofd_packets/00076960 [21:38:48]NVStorageSaveData ofd_packets/00076960 [21:38:48]File name is /storage/ofd_packets/00076960 [21:38:48]Write 301 bytes [21:38:48]NVStorageSaveData done [21:38:48]OFDSenderStorePacket done [21:38:48]KKMCreateOFDPacket done [21:38:48]NVStorageSaveData kkm_last_timestamp [21:38:48]File name is /storage/kkm_last_timestamp [21:38:48]Write 4 bytes [21:38:48]NVStorageSaveData done [21:38:48]ExternCall_PrintAddStr [21:38:48]wPrintStart [21:38:48]Write to MH i2c: 01 00 00 F4 14 08 [21:38:48]Write i2c OK [21:38:48]MH_I2C_Read... [21:38:48]Read from MH i2c: 01 [21:38:48]MH_I2C_Read... [21:38:48]Read from MH i2c: 01 07 00 [21:38:48]MH_I2C_Read... [21:38:48]Read from MH i2c: 01 07 00 F4 14 00 00 00 00 00 FF 0F 1D [21:38:48]RasterBufferAndPrint [21:38:48]line Счет N : (1)191508 [21:38:48]line ИНН: 02508201610067 [21:38:48]line Контрольно-Кассовый Чек [21:38:48]line ПРОДАЖА [21:38:48]line ТРК (МРК, ГНК) : 43 [21:38:48]line Товар: 2710124130 [21:38:48]line Аи-92-К-5 [21:38:48]line 15.530 * 64.40 [21:38:48]line = 1000.13 [21:38:48]line НДС 12% НСП 1% [21:38:48]line > о реализуемом товаре [21:38:48]line ОКРУГЛЕНИЕ: -0.13 [21:38:48]line ИТОГО: 1000.00 [21:38:48]line Внесено: 1000.00 [21:38:48]line СДАЧА: 0.00 [21:38:48]line НСП 1% : 8.85 [21:38:48]line НДС 12% : 106.21 [21:38:48]line Наличными: 1000.00 [21:38:48]line Безнал.: 0.00 [21:38:48]line Место: АЗС № 106 "Партнер Нефть" [21:38:48]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [21:38:48]line СНО: Общий режим [21:38:48]line Чек 216 21.04.2024 21:38 [21:38:48]line Смена: 372 ФФД: 1.0 [21:38:48]line ЗНМ: 0300000141 [21:38:48]line РНМ: 0000000000091573 [21:38:48]line Версия ККМ: 001 [21:38:48]line ФМ: 0000000000874652 [21:38:48]line ФД: 76960 [21:38:48]line ФПД: 73237752256318 [21:38:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T213847&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76960&fm=73237752256318&tin=02508201610067®Number=0000000000091573&sum=100000 [21:38:48]written 0, free lines is 4095 [21:38:48]OFD Sender: Processing packet 76960 [packets to send 129, broken 128] [21:38:48]ProducePacketName [21:38:48]name=ofd_packets/00076960 [21:38:48]OFD Sender: To server: pG, [21:38:48]CommunicateWithHost lk.salyk.kg:30040 [21:38:48]ConnectInit lk.salyk.kg [21:38:48]Connected sock=10 [21:38:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 2A 1A 07 01 13 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 67 87 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A0 2C 01 00 35 04 06 00 42 9B FE 35 17 3E 89 84 B7 D7 16 70 32 60 [21:38:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 66 A3 47 00 C1 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 34 36 35 32 10 04 04 00 A0 2C 01 00 F4 03 04 00 EC 2E 25 66 B6 04 01 00 00 60 8D C0 5F E7 30 47 79 [21:38:48]CommunicateWithHost err = 0 [21:38:48]CheckOFDResponse [21:38:48]1017 (14) - 77093643461234 [21:38:48]1041 (16) - 0000000000874652 [21:38:48]1040 (4) - 76960 [21:38:48]1012 (4) - 21.04.2024 15:21 [21:38:48]1206 (1) - 0 [21:38:48]OFD Sender: Remove packet 76960 [21:38:48]ProducePacketName [21:38:48]name=ofd_packets/00076960 [21:38:48]NVStorageDeleteData [21:38:49]Write to MH i2c: 01 00 00 1E 15 33 [21:38:49]Write i2c OK [21:38:49]MH_I2C_Read... [21:38:49]Read from MH i2c: 01 [21:38:49]MH_I2C_Read... [21:38:49]Read from MH i2c: 01 07 00 [21:38:49]MH_I2C_Read... [21:38:49]Read from MH i2c: 01 07 00 1E 15 00 00 00 00 00 E7 0C 2D [21:38:49]RasterBufferAndPrint [21:38:49]line [21:38:49]line [21:38:49]line [21:38:49]line [21:38:49]line [21:38:49]written 0, free lines is 3309 [21:38:49]MH_Cut [21:38:49]Write to MH i2c: D1 01 00 25 15 01 0C [21:38:49]Write i2c OK [21:38:49]MH_I2C_Read... [21:38:49]Read from MH i2c: D1 [21:38:49]MH_I2C_Read... [21:38:49]Read from MH i2c: D1 01 00 [21:38:49]MH_I2C_Read... [21:38:49]Read from MH i2c: D1 01 00 25 15 00 0B [21:38:49]Write to MH i2c: 01 00 00 26 15 3B [21:38:49]Write i2c OK [21:38:49]MH_I2C_Read... [21:38:49]OFD Sender: No OFD packet to send [21:38:49]*** Cut start [21:38:49]*** Partial cut [21:38:49]*** CUTSNS_PIN = 1 [21:38:49]*** CUTSNS_PIN = 0 [21:38:50]*** Brake cut motor [21:38:50]Read from MH i2c: 01 [21:38:50]MH_I2C_Read... [21:38:50]*** Stop cut motor [21:38:50]*** Cut end [21:38:50]Read from MH i2c: 01 07 00 [21:38:50]MH_I2C_Read... [21:38:50]Read from MH i2c: 01 07 00 26 15 00 00 00 00 00 FF 0F 50 [21:38:50]process_action close_receipt done [21:38:50]requested_data is exist [21:38:50]produce_requested_data [21:38:50]requested_item fm.sn is exist - process it [21:38:50]wFMCommunicate request_size=4 [21:38:50]MH_SAM_APDU [21:38:50]CAPDU: 80 11 00 00 [21:38:50]Write to MH i2c: E2 08 00 27 15 80 11 00 00 00 00 00 00 B6 [21:38:50]Write i2c OK [21:38:50]MH_I2C_Read... [21:38:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:50]Read from MH i2c: E2 [21:38:50]MH_I2C_Read... [21:38:50]Read from MH i2c: E2 17 00 [21:38:50]MH_I2C_Read... [21:38:50]Read from MH i2c: E2 17 00 27 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 09 [21:38:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:38:50]wFMCommunicate OK [21:38:50]requested_item fd.num is exist - process it [21:38:50]SAM_PROTO_GetFieldsCounters [21:38:50]wFMCommunicate request_size=4 [21:38:50]MH_SAM_APDU [21:38:50]CAPDU: 80 13 00 00 [21:38:50]Write to MH i2c: E2 08 00 28 15 80 13 00 00 00 00 00 00 B9 [21:38:50]Write i2c OK [21:38:50]MH_I2C_Read... [21:38:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:38:50]Read from MH i2c: E2 [21:38:50]MH_I2C_Read... [21:38:50]Read from MH i2c: E2 62 00 [21:38:50]MH_I2C_Read... [21:38:50]Read from MH i2c: E2 62 00 28 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 A0 2C 01 00 0E 04 04 00 74 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 A4 [21:38: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 A0 2C 01 00 0E 04 04 00 74 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 [21:38:50]wFMCommunicate OK [21:38:50]SAM_PROTO_GetFieldsCounters done [21:38:50]requested_item shift.num is exist - process it [21:38:50]requested_item shift.opened is exist - process it [21:38:50]req_shift_opened [21:38:50]FM_GetShiftState [21:38:50]SAM_PROTO_GetShiftState [21:38:50]wFMCommunicate request_size=4 [21:38:50]MH_SAM_APDU [21:38:50]CAPDU: 80 13 01 00 [21:38:50]Write to MH i2c: E2 08 00 29 15 80 13 01 00 00 00 00 00 BB [21:38:50]Write i2c OK [21:38:50]MH_I2C_Read... [21:38:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:50]Read from MH i2c: E2 [21:38:50]MH_I2C_Read... [21:38:50]Read from MH i2c: E2 0E 00 [21:38:50]MH_I2C_Read... [21:38:50]Read from MH i2c: E2 0E 00 29 15 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 02 [21:38:50]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:38:50]wFMCommunicate OK [21:38:50]SAM_PROTO_GetShiftState done [21:38:50]FM_GetShiftState done [21:38:50]req_shift_opened done [21:38:50]requested_item shift.open_date is exist - process it [21:38:50]req_shift_open_date [21:38:50]req_shift_open_date done [21:38:50]produce_requested_data done [21:38:50]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76960,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [21:38:50]process_action_free close_receipt [21:38:50]json_value_free [21:38:50]json_value_free done [21:38:50]process_json_proto returns [21:38:50]Send response to host [21:38:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76960,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [21:38:50]free response buf [21:38:50]execute_script done [21:38:50]execute_script returns [21:38:50]free content buf [21:38:50]Sock 9.Close socket [21:38:50]Sock 9.Thread stoped [21:38:54]OFD Sender: No OFD packet to send [21:38:59]OFD Sender: No OFD packet to send [21:39:04]OFD Sender: No OFD packet to send [21:39:09]OFD Sender: No OFD packet to send [21:39:14]OFD Sender: No OFD packet to send [21:39:19]OFD Sender: No OFD packet to send [21:39:24]OFD Sender: No OFD packet to send [21:39:29]OFD Sender: No OFD packet to send [21:39:34]OFD Sender: No OFD packet to send [21:39:39]OFD Sender: No OFD packet to send [21:39:44]OFD Sender: No OFD packet to send [21:39:49]OFD Sender: No OFD packet to send [21:39:54]OFD Sender: No OFD packet to send [21:39:59]OFD Sender: No OFD packet to send [21:40:04]OFD Sender: No OFD packet to send [21:40:09]OFD Sender: No OFD packet to send [21:40:14]OFD Sender: No OFD packet to send [21:40:19]OFD Sender: No OFD packet to send [21:40:24]OFD Sender: No OFD packet to send [21:40:29]OFD Sender: No OFD packet to send [21:40:34]OFD Sender: No OFD packet to send [21:40:39]OFD Sender: No OFD packet to send [21:40:44]OFD Sender: No OFD packet to send [21:40:49]OFD Sender: No OFD packet to send [21:40:54]OFD Sender: No OFD packet to send [21:40:54]accept exits with 8 [21:40:54]New connection [21:40:54]New thread 3066801508 created [21:40:54]Thread 3066944868 joined [21:40:54]Waiting for new connection... [21:40:54] Sock 8.Parse request [21:40:54]Sock 8.Check first char [21:40:54]Sock 8.First char is OK [21:40:54]request: POST /json_proto HTTP/1.0 [21:40:54]Method: POST [21:40:54]URL: /json_proto [21:40:54]Method is POST - this is cgi request [21:40:54]url: /json_proto [21:40:54]query_string will be loaded in cgi processing [21:40:54]execute_cgi json_proto POST (null) [21:40:54]execute_cgi path=json_proto method=POST [21:40:54]POST find Content-Length [21:40:54]Host: 172.17.62.5:8080 [21:40:54]Content-Length: 674 [21:40:54]Content-Type: application/json [21:40:54] [21:40:54]POST finish read [21:40:54]Found Content-Length = 674 [21:40:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191509", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 9.610, "sum" : 700.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:40:54]execute_script... [21:40: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)191509", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 9.610, "sum" : 700.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:40:54]POST & json_proto [21:40:54]process_json_proto [21:40:54]json parsed OK: [21:40:54]protocol is kg_v1.0 [21:40:54]action value=close_receipt [21:40:54]process_action close_receipt [21:40:54]cmd_close_receipt [21:40:54]MH_GetDate [21:40:54]Write to MH i2c: F0 00 00 2A 15 2E [21:40:54]Write i2c OK [21:40:54]MH_I2C_Read... [21:40:54]Read from MH i2c: F0 [21:40:54]MH_I2C_Read... [21:40:54]Read from MH i2c: F0 09 00 [21:40:54]MH_I2C_Read... [21:40:54]Read from MH i2c: F0 09 00 2A 15 00 E8 87 25 66 F4 E9 65 64 D7 [21:40:54]GetLastDocTimeStamp 1713735527 [21:40:54]current date 1713735656 [21:40:54]FM_GetShiftState [21:40:54]SAM_PROTO_GetShiftState [21:40:54]wFMCommunicate request_size=4 [21:40:54]MH_SAM_APDU [21:40:54]CAPDU: 80 13 01 00 [21:40:54]Write to MH i2c: E2 08 00 2B 15 80 13 01 00 00 00 00 00 BD [21:40:54]Write i2c OK [21:40:54]MH_I2C_Read... [21:40:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:40:54]Read from MH i2c: E2 [21:40:54]MH_I2C_Read... [21:40:54]Read from MH i2c: E2 0E 00 [21:40:54]MH_I2C_Read... [21:40:54]Read from MH i2c: E2 0E 00 2B 15 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 04 [21:40:54]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:40:54]wFMCommunicate OK [21:40:54]SAM_PROTO_GetShiftState done [21:40:54]FM_GetShiftState done [21:40:54]opened in 1713658965 [21:40:54]opened+sec_in_day 1713745365 [21:40:54]quantity*price = 70056 [21:40:54]sum+1 = 70058 [21:40:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 217 21.04.2024 21:40 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76961 ФПД: 33486296752158 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T214056&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76961&fm=33486296752158&tin=02508201610067®Number=0000000000091573&sum=70000 [21:40:55]StoreToDocumentArchive [21:40:55]shift 372 fd 76961 [21:40:55]save to /storage/0372/doc_00076961 [21:40:55]save last doc name /storage/0372/doc_00076961 to /storage/kkm_last_doc_name [21:40:55]save OK [21:40:55]Clear old archive folders... [21:40:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:40:55]tlvbuf is B6EA6DE0 [21:40:55]SAM_PROTO_ClearQueue [21:40:55]wFMCommunicate request_size=4 [21:40:55]MH_SAM_APDU [21:40:55]CAPDU: 80 09 00 00 [21:40:55]Write to MH i2c: E2 08 00 38 15 80 09 00 00 00 00 00 00 BF [21:40:56]Write i2c OK [21:40:56]MH_I2C_Read... [21:40:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:40:56]Read from MH i2c: E2 [21:40:56]MH_I2C_Read... [21:40:56]Read from MH i2c: E2 03 00 [21:40:56]MH_I2C_Read... [21:40:56]Read from MH i2c: E2 03 00 38 15 00 90 00 C1 [21:40:56]RAPDU: 90 00 [21:40:56]wFMCommunicate OK [21:40:56]SAM_PROTO_ClearQueue done [21:40:56]KKMCreateOFDPacket [21:40:56]OFDProtocolAddRootSTLVToBuf [21:40:56]FM_MakeSignedData [21:40:56]FM_MakeSignedData [21:40:56]SAM_PROTO_SignData [21:40:56]wFMCommunicate request_size=4 [21:40:56]MH_SAM_APDU [21:40:56]CAPDU: 80 0D 01 02 [21:40:56]Write to MH i2c: E2 08 00 39 15 80 0D 01 02 00 00 00 00 C7 [21:40:56]Write i2c OK [21:40:56]MH_I2C_Read... [21:40:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:40:56]Read from MH i2c: E2 [21:40:56]MH_I2C_Read... [21:40:56]Read from MH i2c: E2 03 00 [21:40:56]MH_I2C_Read... [21:40:56]Read from MH i2c: E2 03 00 39 15 00 90 00 C2 [21:40:56]RAPDU: 90 00 [21:40:56]wFMCommunicate OK [21:40:56]wFMCommunicate request_size=255 [21:40:56]MH_SAM_APDU [21:40:56]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 E8 87 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A1 2C 01 00 35 04 06 00 1E 74 A2 D2 [21:40:56]Write to MH i2c: E2 02 01 3A 15 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 E8 87 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A1 2C 01 00 35 04 06 00 1E 74 A2 D2 00 00 DF [21:40:56]Write i2c OK [21:40:56]MH_I2C_Read... [21:40:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:40:56]Read from MH i2c: E2 [21:40:56]MH_I2C_Read... [21:40:56]Read from MH i2c: E2 03 00 [21:40:56]MH_I2C_Read... [21:40:56]Read from MH i2c: E2 03 00 3A 15 00 90 00 C3 [21:40:56]RAPDU: 90 00 [21:40:56]wFMCommunicate OK [21:40:56]wFMCommunicate request_size=7 [21:40:56]MH_SAM_APDU [21:40:56]CAPDU: 80 0D 02 02 02 A0 1E [21:40:56]Write to MH i2c: E2 0A 00 3B 15 80 0D 02 02 02 00 A0 1E 00 00 8C [21:40:56]Write i2c OK [21:40:56]MH_I2C_Read... [21:40:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:40:56]Read from MH i2c: E2 [21:40:56]MH_I2C_Read... [21:40:56]Read from MH i2c: E2 03 00 [21:40:56]MH_I2C_Read... [21:40:56]Read from MH i2c: E2 03 00 3B 15 00 90 00 C4 [21:40:56]RAPDU: 90 00 [21:40:56]wFMCommunicate OK [21:40:56]wFMCommunicate request_size=4 [21:40:56]MH_SAM_APDU [21:40:56]CAPDU: 80 0D 03 02 [21:40:56]Write to MH i2c: E2 08 00 3C 15 80 0D 03 02 00 00 00 00 CC [21:40:56]Write i2c OK [21:40:56]MH_I2C_Read... [21:40:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:40:56]Read from MH i2c: E2 [21:40:56]MH_I2C_Read... [21:40:56]Read from MH i2c: E2 0B 00 [21:40:56]MH_I2C_Read... [21:40:56]Read from MH i2c: E2 0B 00 3C 15 00 B4 86 B7 D8 0A 19 3F 49 90 00 41 [21:40:56]RAPDU: B4 86 B7 D8 0A 19 3F 49 90 00 [21:40:56]wFMCommunicate OK [21:40:56]SAM_PROTO_SignData done [21:40:56]FM_MakeSignedData done [21:40:56]CreateOFDProtocolMessage [21:40:56]wFMCommunicate request_size=4 [21:40:56]MH_SAM_APDU [21:40:56]CAPDU: 80 11 00 00 [21:40:56]Write to MH i2c: E2 08 00 3D 15 80 11 00 00 00 00 00 00 CC [21:40:56]Write i2c OK [21:40:56]MH_I2C_Read... [21:40:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:40:56]Read from MH i2c: E2 [21:40:56]MH_I2C_Read... [21:40:56]Read from MH i2c: E2 17 00 [21:40:56]MH_I2C_Read... [21:40:56]Read from MH i2c: E2 17 00 3D 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 1F [21:40:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:40:56]wFMCommunicate OK [21:40:56]CreateOFDProtocolMessage done [21:40:56]OFDSenderStorePacket 76961 [21:40:56]StoreOFDPacket docnum=76961 [21:40:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 06 4D 04 01 CD 4B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 E8 87 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A1 2C 01 00 35 04 06 00 1E 74 A2 D2 A0 1E B4 86 B7 D8 0A 19 3F 49 [21:40:56]CheckFolder [21:40:56]dirname=/storage/ofd_packets [21:40:56]CheckFolder done [21:40:56]ProducePacketName [21:40:56]name=ofd_packets/00076961 [21:40:56]NVStorageSaveData ofd_packets/00076961 [21:40:56]File name is /storage/ofd_packets/00076961 [21:40:56]Write 298 bytes [21:40:56]NVStorageSaveData done [21:40:56]OFDSenderStorePacket done [21:40:56]KKMCreateOFDPacket done [21:40:56]NVStorageSaveData kkm_last_timestamp [21:40:56]File name is /storage/kkm_last_timestamp [21:40:56]Write 4 bytes [21:40:56]NVStorageSaveData done [21:40:56]ExternCall_PrintAddStr [21:40:56]wPrintStart [21:40:56]Write to MH i2c: 01 00 00 3E 15 53 [21:40:56]Write i2c OK [21:40:56]MH_I2C_Read... [21:40:56]Read from MH i2c: 01 [21:40:56]MH_I2C_Read... [21:40:56]Read from MH i2c: 01 07 00 [21:40:56]MH_I2C_Read... [21:40:56]Read from MH i2c: 01 07 00 3E 15 00 00 00 00 00 FF 0F 68 [21:40:56]RasterBufferAndPrint [21:40:56]line Счет N : (1)191509 [21:40:56]line ИНН: 02508201610067 [21:40:56]line Контрольно-Кассовый Чек [21:40:56]line ПРОДАЖА [21:40:56]line ТРК (МРК, ГНК) : 51 [21:40:56]line Товар: 2710194210 [21:40:56]line ДТ-К-5 [21:40:56]line 9.610 * 72.90 [21:40:56]line = 700.57 [21:40:56]line НДС 12% НСП 1% [21:40:56]line > о реализуемом товаре [21:40:56]line ОКРУГЛЕНИЕ: -0.57 [21:40:56]line ИТОГО: 700.00 [21:40:56]line Внесено: 700.00 [21:40:56]line СДАЧА: 0.00 [21:40:56]line НСП 1% : 6.20 [21:40:56]line НДС 12% : 74.40 [21:40:56]line Наличными: 700.00 [21:40:56]line Безнал.: 0.00 [21:40:56]line Место: АЗС № 106 "Партнер Нефть" [21:40:56]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [21:40:56]line СНО: Общий режим [21:40:56]line Чек 217 21.04.2024 21:40 [21:40:56]line Смена: 372 ФФД: 1.0 [21:40:56]line ЗНМ: 0300000141 [21:40:56]line РНМ: 0000000000091573 [21:40:56]line Версия ККМ: 001 [21:40:56]line ФМ: 0000000000874652 [21:40:56]line ФД: 76961 [21:40:56]line ФПД: 33486296752158 [21:40:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T214056&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76961&fm=33486296752158&tin=02508201610067®Number=0000000000091573&sum=70000 [21:40:56]OFD Sender: Processing packet 76961 [packets to send 129, broken 128] [21:40:56]ProducePacketName [21:40:56]name=ofd_packets/00076961 [21:40:56]OFD Sender: To server: pG, [21:40:56]CommunicateWithHost lk.salyk.kg:30040 [21:40:56]ConnectInit lk.salyk.kg [21:40:56]written 0, free lines is 4095 [21:40:57]Connected sock=10 [21:40:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 06 4D 04 01 CD 4B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 E8 87 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A1 2C 01 00 35 04 06 00 1E 74 A2 D2 A0 1E B4 86 B7 D8 0A 19 3F 49 [21:40:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 2F FD 47 00 A0 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A1 2C 01 00 F4 03 04 00 6C 2F 25 66 B6 04 01 00 00 64 E7 E2 BA 04 4B 04 94 [21:40:57]CommunicateWithHost err = 0 [21:40:57]CheckOFDResponse [21:40:57]1017 (14) - 77093643461234 [21:40:57]1041 (16) - 0000000000874652 [21:40:57]1040 (4) - 76961 [21:40:57]1012 (4) - 21.04.2024 15:23 [21:40:57]1206 (1) - 0 [21:40:57]OFD Sender: Remove packet 76961 [21:40:57]ProducePacketName [21:40:57]name=ofd_packets/00076961 [21:40:57]NVStorageDeleteData [21:40:57]Write to MH i2c: 01 00 00 68 15 7D [21:40:57]Write i2c OK [21:40:57]MH_I2C_Read... [21:40:57]Read from MH i2c: 01 [21:40:57]MH_I2C_Read... [21:40:57]Read from MH i2c: 01 07 00 [21:40:57]MH_I2C_Read... [21:40:57]Read from MH i2c: 01 07 00 68 15 00 00 00 00 00 E9 0C 79 [21:40:57]RasterBufferAndPrint [21:40:57]line [21:40:57]line [21:40:57]line [21:40:57]line [21:40:57]line [21:40:57]written 0, free lines is 3311 [21:40:57]MH_Cut [21:40:57]Write to MH i2c: D1 01 00 6F 15 01 56 [21:40:57]Write i2c OK [21:40:57]MH_I2C_Read... [21:40:57]Read from MH i2c: D1 [21:40:57]MH_I2C_Read... [21:40:57]Read from MH i2c: D1 01 00 [21:40:57]MH_I2C_Read... [21:40:57]Read from MH i2c: D1 01 00 6F 15 00 55 [21:40:57]Write to MH i2c: 01 00 00 70 15 85 [21:40:57]Write i2c OK [21:40:57]MH_I2C_Read... [21:40:57]OFD Sender: No OFD packet to send [21:40:58]*** Cut start [21:40:58]*** Partial cut [21:40:58]*** CUTSNS_PIN = 1 [21:40:58]*** CUTSNS_PIN = 0 [21:40:58]*** Brake cut motor [21:40:58]Read from MH i2c: 01 [21:40:58]MH_I2C_Read... [21:40:58]*** Stop cut motor [21:40:58]Read from MH i2c: 01 07 00 [21:40:58]MH_I2C_Read... [21:40:58]*** Cut end [21:40:58]Read from MH i2c: 01 07 00 70 15 00 00 00 00 00 FF 0F 9A [21:40:58]process_action close_receipt done [21:40:58]requested_data is exist [21:40:58]produce_requested_data [21:40:58]requested_item fm.sn is exist - process it [21:40:58]wFMCommunicate request_size=4 [21:40:58]MH_SAM_APDU [21:40:58]CAPDU: 80 11 00 00 [21:40:58]Write to MH i2c: E2 08 00 71 15 80 11 00 00 00 00 00 00 00 [21:40:58]Write i2c OK [21:40:58]MH_I2C_Read... [21:40:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:40:58]Read from MH i2c: E2 [21:40:58]MH_I2C_Read... [21:40:58]Read from MH i2c: E2 17 00 [21:40:58]MH_I2C_Read... [21:40:58]Read from MH i2c: E2 17 00 71 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 53 [21:40:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:40:58]wFMCommunicate OK [21:40:58]requested_item fd.num is exist - process it [21:40:58]SAM_PROTO_GetFieldsCounters [21:40:58]wFMCommunicate request_size=4 [21:40:58]MH_SAM_APDU [21:40:58]CAPDU: 80 13 00 00 [21:40:58]Write to MH i2c: E2 08 00 72 15 80 13 00 00 00 00 00 00 03 [21:40:58]Write i2c OK [21:40:58]MH_I2C_Read... [21:40:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:40:58]Read from MH i2c: E2 [21:40:58]MH_I2C_Read... [21:40:58]Read from MH i2c: E2 62 00 [21:40:58]MH_I2C_Read... [21:40:58]Read from MH i2c: E2 62 00 72 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 A1 2C 01 00 0E 04 04 00 74 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 F2 [21:40: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 A1 2C 01 00 0E 04 04 00 74 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 [21:40:58]wFMCommunicate OK [21:40:58]SAM_PROTO_GetFieldsCounters done [21:40:58]requested_item shift.num is exist - process it [21:40:58]requested_item shift.opened is exist - process it [21:40:58]req_shift_opened [21:40:58]FM_GetShiftState [21:40:58]SAM_PROTO_GetShiftState [21:40:58]wFMCommunicate request_size=4 [21:40:58]MH_SAM_APDU [21:40:58]CAPDU: 80 13 01 00 [21:40:58]Write to MH i2c: E2 08 00 73 15 80 13 01 00 00 00 00 00 05 [21:40:58]Write i2c OK [21:40:58]MH_I2C_Read... [21:40:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:40:58]Read from MH i2c: E2 [21:40:58]MH_I2C_Read... [21:40:58]Read from MH i2c: E2 0E 00 [21:40:58]MH_I2C_Read... [21:40:58]Read from MH i2c: E2 0E 00 73 15 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 4C [21:40:58]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:40:58]wFMCommunicate OK [21:40:58]SAM_PROTO_GetShiftState done [21:40:58]FM_GetShiftState done [21:40:58]req_shift_opened done [21:40:58]requested_item shift.open_date is exist - process it [21:40:58]req_shift_open_date [21:40:58]req_shift_open_date done [21:40:58]produce_requested_data done [21:40:58]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76961,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [21:40:58]process_action_free close_receipt [21:40:58]json_value_free [21:40:58]json_value_free done [21:40:58]process_json_proto returns [21:40:58]Send response to host [21:40:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76961,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [21:40:58]free response buf [21:40:58]execute_script done [21:40:58]execute_script returns [21:40:58]free content buf [21:40:58]Sock 8.Close socket [21:40:58]Sock 8.Thread stoped [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]OFD Sender: No OFD packet to send [21:41:57]OFD Sender: No OFD packet to send [21:42:02]OFD Sender: No OFD packet to send [21:42:07]OFD Sender: No OFD packet to send [21:42:08]accept exits with 9 [21:42:08]New connection [21:42:08]New thread 3066944868 created [21:42:08]Thread 3066801508 joined [21:42:08]Waiting for new connection... [21:42:08] Sock 9.Parse request [21:42:08]Sock 9.Check first char [21:42:08]Sock 9.First char is OK [21:42:08]request: POST /json_proto HTTP/1.0 [21:42:08]Method: POST [21:42:08]URL: /json_proto [21:42:08]Method is POST - this is cgi request [21:42:08]url: /json_proto [21:42:08]query_string will be loaded in cgi processing [21:42:08]execute_cgi json_proto POST (null) [21:42:08]execute_cgi path=json_proto method=POST [21:42:08]POST find Content-Length [21:42:08]Host: 172.17.62.5:8080 [21:42:08]Content-Length: 674 [21:42:08]Content-Type: application/json [21:42:08] [21:42:08]POST finish read [21:42:08]Found Content-Length = 674 [21:42:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191510", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [21:42:08]execute_script... [21: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)191510", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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" ] } } [21:42:08]POST & json_proto [21:42:08]process_json_proto [21:42:08]json parsed OK: [21:42:08]protocol is kg_v1.0 [21:42:08]action value=close_receipt [21:42:08]process_action close_receipt [21:42:08]cmd_close_receipt [21:42:08]MH_GetDate [21:42:08]Write to MH i2c: F0 00 00 74 15 78 [21:42:08]Write i2c OK [21:42:08]MH_I2C_Read... [21:42:08]Read from MH i2c: F0 [21:42:08]MH_I2C_Read... [21:42:08]Read from MH i2c: F0 09 00 [21:42:08]MH_I2C_Read... [21:42:08]Read from MH i2c: F0 09 00 74 15 00 31 88 25 66 F4 E9 65 64 6B [21:42:08]GetLastDocTimeStamp 1713735656 [21:42:08]current date 1713735729 [21:42:08]FM_GetShiftState [21:42:08]SAM_PROTO_GetShiftState [21:42:08]wFMCommunicate request_size=4 [21:42:08]MH_SAM_APDU [21:42:08]CAPDU: 80 13 01 00 [21:42:08]Write to MH i2c: E2 08 00 75 15 80 13 01 00 00 00 00 00 07 [21:42:08]Write i2c OK [21:42:08]MH_I2C_Read... [21:42:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:08]Read from MH i2c: E2 [21:42:08]MH_I2C_Read... [21:42:08]Read from MH i2c: E2 0E 00 [21:42:08]MH_I2C_Read... [21:42:08]Read from MH i2c: E2 0E 00 75 15 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 4E [21:42:08]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:42:08]wFMCommunicate OK [21:42:08]SAM_PROTO_GetShiftState done [21:42:08]FM_GetShiftState done [21:42:08]opened in 1713658965 [21:42:08]opened+sec_in_day 1713745365 [21:42:08]quantity*price = 50009 [21:42:08]sum+1 = 50010 [21:42: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 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 218 21.04.2024 21:42 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76962 ФПД: 47772798800794 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T214209&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76962&fm=47772798800794&tin=02508201610067®Number=0000000000091573&sum=50000 [21:42:09]StoreToDocumentArchive [21:42:09]shift 372 fd 76962 [21:42:09]save to /storage/0372/doc_00076962 [21:42:09]save last doc name /storage/0372/doc_00076962 to /storage/kkm_last_doc_name [21:42:09]save OK [21:42:09]Clear old archive folders... [21:42:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:42:09]tlvbuf is B6DA6300 [21:42:09]SAM_PROTO_ClearQueue [21:42:09]wFMCommunicate request_size=4 [21:42:09]MH_SAM_APDU [21:42:09]CAPDU: 80 09 00 00 [21:42:09]Write to MH i2c: E2 08 00 82 15 80 09 00 00 00 00 00 00 09 [21:42:09]Write i2c OK [21:42:09]MH_I2C_Read... [21:42:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:42:09]Read from MH i2c: E2 [21:42:09]MH_I2C_Read... [21:42:09]Read from MH i2c: E2 03 00 [21:42:09]MH_I2C_Read... [21:42:09]Read from MH i2c: E2 03 00 82 15 00 90 00 0B [21:42:09]RAPDU: 90 00 [21:42:09]wFMCommunicate OK [21:42:09]SAM_PROTO_ClearQueue done [21:42:09]KKMCreateOFDPacket [21:42:09]OFDProtocolAddRootSTLVToBuf [21:42:09]FM_MakeSignedData [21:42:09]FM_MakeSignedData [21:42:09]SAM_PROTO_SignData [21:42:09]wFMCommunicate request_size=4 [21:42:09]MH_SAM_APDU [21:42:09]CAPDU: 80 0D 01 02 [21:42:09]Write to MH i2c: E2 08 00 83 15 80 0D 01 02 00 00 00 00 11 [21:42:09]Write i2c OK [21:42:09]MH_I2C_Read... [21:42:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:42:09]Read from MH i2c: E2 [21:42:09]MH_I2C_Read... [21:42:09]Read from MH i2c: E2 03 00 [21:42:09]MH_I2C_Read... [21:42:09]Read from MH i2c: E2 03 00 83 15 00 90 00 0C [21:42:09]RAPDU: 90 00 [21:42:09]wFMCommunicate OK [21:42:09]wFMCommunicate request_size=255 [21:42:09]MH_SAM_APDU [21:42:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 DA 00 00 00 F4 03 04 00 31 88 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A2 2C 01 00 35 04 06 00 2B 72 F8 B3 [21:42:09]Write to MH i2c: E2 02 01 84 15 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 DA 00 00 00 F4 03 04 00 31 88 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A2 2C 01 00 35 04 06 00 2B 72 F8 B3 00 00 65 [21:42:09]Write i2c OK [21:42:09]MH_I2C_Read... [21:42:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:42:09]Read from MH i2c: E2 [21:42:09]MH_I2C_Read... [21:42:09]Read from MH i2c: E2 03 00 [21:42:09]MH_I2C_Read... [21:42:09]Read from MH i2c: E2 03 00 84 15 00 90 00 0D [21:42:09]RAPDU: 90 00 [21:42:09]wFMCommunicate OK [21:42:09]wFMCommunicate request_size=7 [21:42:09]MH_SAM_APDU [21:42:09]CAPDU: 80 0D 02 02 02 D3 9A [21:42:09]Write to MH i2c: E2 0A 00 85 15 80 0D 02 02 02 00 D3 9A 00 00 85 [21:42:09]Write i2c OK [21:42:09]MH_I2C_Read... [21:42:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:42:09]Read from MH i2c: E2 [21:42:09]MH_I2C_Read... [21:42:09]Read from MH i2c: E2 03 00 [21:42:09]MH_I2C_Read... [21:42:09]Read from MH i2c: E2 03 00 85 15 00 90 00 0E [21:42:09]RAPDU: 90 00 [21:42:09]wFMCommunicate OK [21:42:09]wFMCommunicate request_size=4 [21:42:09]MH_SAM_APDU [21:42:09]CAPDU: 80 0D 03 02 [21:42:09]Write to MH i2c: E2 08 00 86 15 80 0D 03 02 00 00 00 00 16 [21:42:09]Write i2c OK [21:42:09]MH_I2C_Read... [21:42:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:42:09]Read from MH i2c: E2 [21:42:09]MH_I2C_Read... [21:42:09]Read from MH i2c: E2 0B 00 [21:42:09]MH_I2C_Read... [21:42:09]Read from MH i2c: E2 0B 00 86 15 00 92 37 8E 00 07 F4 A2 37 90 00 42 [21:42:09]RAPDU: 92 37 8E 00 07 F4 A2 37 90 00 [21:42:09]wFMCommunicate OK [21:42:09]SAM_PROTO_SignData done [21:42:09]FM_MakeSignedData done [21:42:09]CreateOFDProtocolMessage [21:42:09]wFMCommunicate request_size=4 [21:42:09]MH_SAM_APDU [21:42:09]CAPDU: 80 11 00 00 [21:42:09]Write to MH i2c: E2 08 00 87 15 80 11 00 00 00 00 00 00 16 [21:42:09]Write i2c OK [21:42:09]MH_I2C_Read... [21:42:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:09]Read from MH i2c: E2 [21:42:09]MH_I2C_Read... [21:42:09]Read from MH i2c: E2 17 00 [21:42:09]MH_I2C_Read... [21:42:10]Read from MH i2c: E2 17 00 87 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 69 [21:42:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:42:10]wFMCommunicate OK [21:42:10]CreateOFDProtocolMessage done [21:42:10]OFDSenderStorePacket 76962 [21:42:10]StoreOFDPacket docnum=76962 [21:42:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 78 22 04 01 3D D8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 DA 00 00 00 F4 03 04 00 31 88 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A2 2C 01 00 35 04 06 00 2B 72 F8 B3 D3 9A 92 37 8E 00 07 F4 A2 37 [21:42:10]CheckFolder [21:42:10]dirname=/storage/ofd_packets [21:42:10]CheckFolder done [21:42:10]ProducePacketName [21:42:10]name=ofd_packets/00076962 [21:42:10]NVStorageSaveData ofd_packets/00076962 [21:42:10]File name is /storage/ofd_packets/00076962 [21:42:10]Write 298 bytes [21:42:10]NVStorageSaveData done [21:42:10]OFDSenderStorePacket done [21:42:10]KKMCreateOFDPacket done [21:42:10]NVStorageSaveData kkm_last_timestamp [21:42:10]File name is /storage/kkm_last_timestamp [21:42:10]Write 4 bytes [21:42:10]NVStorageSaveData done [21:42:10]ExternCall_PrintAddStr [21:42:10]wPrintStart [21:42:10]Write to MH i2c: 01 00 00 88 15 9D [21:42:10]Write i2c OK [21:42:10]MH_I2C_Read... [21:42:10]Read from MH i2c: 01 [21:42:10]MH_I2C_Read... [21:42:10]Read from MH i2c: 01 07 00 [21:42:10]MH_I2C_Read... [21:42:10]Read from MH i2c: 01 07 00 88 15 00 00 00 00 00 FF 0F B2 [21:42:10]RasterBufferAndPrint [21:42:10]line Счет N : (1)191510 [21:42:10]line ИНН: 02508201610067 [21:42:10]line Контрольно-Кассовый Чек [21:42:10]line ПРОДАЖА [21:42:10]line ТРК (МРК, ГНК) : 13 [21:42:10]line Товар: 2710194210 [21:42:10]line ДТ-К-5 [21:42:10]line 6.860 * 72.90 [21:42:10]line = 500.09 [21:42:10]line НДС 12% НСП 1% [21:42:10]line > о реализуемом товаре [21:42:10]line ОКРУГЛЕНИЕ: -0.09 [21:42:10]line ИТОГО: 500.00 [21:42:10]line Внесено: 500.00 [21:42:10]line СДАЧА: 0.00 [21:42:10]line НСП 1% : 4.43 [21:42:10]line НДС 12% : 53.11 [21:42:10]line Наличными: 500.00 [21:42:10]line Безнал.: 0.00 [21:42:10]line Место: АЗС № 106 "Партнер Нефть" [21:42:10]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [21:42:10]line СНО: Общий режим [21:42:10]line Чек 218 21.04.2024 21:42 [21:42:10]line Смена: 372 ФФД: 1.0 [21:42:10]line ЗНМ: 0300000141 [21:42:10]line РНМ: 0000000000091573 [21:42:10]line Версия ККМ: 001 [21:42:10]line ФМ: 0000000000874652 [21:42:10]line ФД: 76962 [21:42:10]line ФПД: 47772798800794 [21:42:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T214209&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76962&fm=47772798800794&tin=02508201610067®Number=0000000000091573&sum=50000 [21:42:10]OFD Sender: Processing packet 76962 [packets to send 129, broken 128] [21:42:10]ProducePacketName [21:42:10]name=ofd_packets/00076962 [21:42:10]OFD Sender: To server: pG, [21:42:10]CommunicateWithHost lk.salyk.kg:30040 [21:42:10]ConnectInit lk.salyk.kg [21:42:10]written 0, free lines is 4095 [21:42:10]Connected sock=10 [21:42:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 78 22 04 01 3D D8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 DA 00 00 00 F4 03 04 00 31 88 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A2 2C 01 00 35 04 06 00 2B 72 F8 B3 D3 9A 92 37 8E 00 07 F4 A2 37 [21:42:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 25 B6 47 00 49 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 34 36 35 32 10 04 04 00 A2 2C 01 00 F4 03 04 00 B6 2F 25 66 B6 04 01 00 00 65 5F 45 0B 73 68 B5 C3 [21:42:10]CommunicateWithHost err = 0 [21:42:10]CheckOFDResponse [21:42:10]1017 (14) - 77093643461234 [21:42:10]1041 (16) - 0000000000874652 [21:42:10]1040 (4) - 76962 [21:42:10]1012 (4) - 21.04.2024 15:24 [21:42:10]1206 (1) - 0 [21:42:10]OFD Sender: Remove packet 76962 [21:42:10]ProducePacketName [21:42:10]name=ofd_packets/00076962 [21:42:10]NVStorageDeleteData [21:42:10]Write to MH i2c: 01 00 00 B2 15 C7 [21:42:10]Write i2c OK [21:42:10]MH_I2C_Read... [21:42:10]Read from MH i2c: 01 [21:42:10]MH_I2C_Read... [21:42:10]Read from MH i2c: 01 07 00 [21:42:10]MH_I2C_Read... [21:42:10]Read from MH i2c: 01 07 00 B2 15 00 00 00 00 00 EB 0C C5 [21:42:10]RasterBufferAndPrint [21:42:10]line [21:42:10]line [21:42:10]line [21:42:10]line [21:42:10]line [21:42:10]written 0, free lines is 3313 [21:42:10]MH_Cut [21:42:10]Write to MH i2c: D1 01 00 B9 15 01 A0 [21:42:10]Write i2c OK [21:42:10]MH_I2C_Read... [21:42:10]Read from MH i2c: D1 [21:42:10]MH_I2C_Read... [21:42:10]Read from MH i2c: D1 01 00 [21:42:10]MH_I2C_Read... [21:42:10]Read from MH i2c: D1 01 00 B9 15 00 9F [21:42:10]Write to MH i2c: 01 00 00 BA 15 CF [21:42:10]Write i2c OK [21:42:10]MH_I2C_Read... [21:42:11]OFD Sender: No OFD packet to send [21:42:11]*** Cut start [21:42:11]*** Partial cut [21:42:11]*** CUTSNS_PIN = 1 [21:42:11]*** CUTSNS_PIN = 0 [21:42:11]*** Brake cut motor [21:42:12]Read from MH i2c: 01 [21:42:12]MH_I2C_Read... [21:42:12]*** Stop cut motor [21:42:12]*** Cut end [21:42:12]Read from MH i2c: 01 07 00 [21:42:12]MH_I2C_Read... [21:42:12]Read from MH i2c: 01 07 00 BA 15 00 00 00 00 00 FF 0F E4 [21:42:12]process_action close_receipt done [21:42:12]requested_data is exist [21:42:12]produce_requested_data [21:42:12]requested_item fm.sn is exist - process it [21:42:12]wFMCommunicate request_size=4 [21:42:12]MH_SAM_APDU [21:42:12]CAPDU: 80 11 00 00 [21:42:12]Write to MH i2c: E2 08 00 BB 15 80 11 00 00 00 00 00 00 4A [21:42:12]Write i2c OK [21:42:12]MH_I2C_Read... [21:42:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:12]Read from MH i2c: E2 [21:42:12]MH_I2C_Read... [21:42:12]Read from MH i2c: E2 17 00 [21:42:12]MH_I2C_Read... [21:42:12]Read from MH i2c: E2 17 00 BB 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 9D [21:42:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:42:12]wFMCommunicate OK [21:42:12]requested_item fd.num is exist - process it [21:42:12]SAM_PROTO_GetFieldsCounters [21:42:12]wFMCommunicate request_size=4 [21:42:12]MH_SAM_APDU [21:42:12]CAPDU: 80 13 00 00 [21:42:12]Write to MH i2c: E2 08 00 BC 15 80 13 00 00 00 00 00 00 4D [21:42:12]Write i2c OK [21:42:12]MH_I2C_Read... [21:42:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:42:12]Read from MH i2c: E2 [21:42:12]MH_I2C_Read... [21:42:12]Read from MH i2c: E2 62 00 [21:42:12]MH_I2C_Read... [21:42:12]Read from MH i2c: E2 62 00 BC 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 A2 2C 01 00 0E 04 04 00 74 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 40 [21: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 A2 2C 01 00 0E 04 04 00 74 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 [21:42:12]wFMCommunicate OK [21:42:12]SAM_PROTO_GetFieldsCounters done [21:42:12]requested_item shift.num is exist - process it [21:42:12]requested_item shift.opened is exist - process it [21:42:12]req_shift_opened [21:42:12]FM_GetShiftState [21:42:12]SAM_PROTO_GetShiftState [21:42:12]wFMCommunicate request_size=4 [21:42:12]MH_SAM_APDU [21:42:12]CAPDU: 80 13 01 00 [21:42:12]Write to MH i2c: E2 08 00 BD 15 80 13 01 00 00 00 00 00 4F [21:42:12]Write i2c OK [21:42:12]MH_I2C_Read... [21:42:12]Read from MH i2c: E2 [21:42:12]MH_I2C_Read... [21:42:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:12]Read from MH i2c: E2 0E 00 [21:42:12]MH_I2C_Read... [21:42:12]Read from MH i2c: E2 0E 00 BD 15 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 96 [21:42:12]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:42:12]wFMCommunicate OK [21:42:12]SAM_PROTO_GetShiftState done [21:42:12]FM_GetShiftState done [21:42:12]req_shift_opened done [21:42:12]requested_item shift.open_date is exist - process it [21:42:12]req_shift_open_date [21:42:12]req_shift_open_date done [21:42:12]produce_requested_data done [21:42:12]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76962,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [21:42:12]process_action_free close_receipt [21:42:12]json_value_free [21:42:12]json_value_free done [21:42:12]process_json_proto returns [21:42:12]Send response to host [21:42:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76962,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [21:42:12]free response buf [21:42:12]execute_script done [21:42:12]execute_script returns [21:42:12]free content buf [21:42:12]Sock 9.Close socket [21:42:12]Sock 9.Thread stoped [21:42:16]OFD Sender: No OFD packet to send [21:42:21]OFD Sender: No OFD packet to send [21:42:26]OFD Sender: No OFD packet to send [21:42:31]OFD Sender: No OFD packet to send [21:42:36]OFD Sender: No OFD packet to send [21:42:41]OFD Sender: No OFD packet to send [21:42:46]OFD Sender: No OFD packet to send [21:42:51]OFD Sender: No OFD packet to send [21:42:56]OFD Sender: No OFD packet to send [21:43:01]OFD Sender: No OFD packet to send [21:43:06]OFD Sender: No OFD packet to send [21:43:11]OFD Sender: No OFD packet to send [21:43:16]OFD Sender: No OFD packet to send [21:43:21]OFD Sender: No OFD packet to send [21:43:26]OFD Sender: No OFD packet to send [21:43:31]OFD Sender: No OFD packet to send [21:43:36]OFD Sender: No OFD packet to send [21:43:41]OFD Sender: No OFD packet to send [21:43:46]OFD Sender: No OFD packet to send [21:43:51]OFD Sender: No OFD packet to send [21:43:56]OFD Sender: No OFD packet to send [21:44:01]OFD Sender: No OFD packet to send [21:44:06]OFD Sender: No OFD packet to send [21:44:11]OFD Sender: No OFD packet to send [21:44:16]OFD Sender: No OFD packet to send [21:44:21]OFD Sender: No OFD packet to send [21:44:26]OFD Sender: No OFD packet to send [21:44:31]OFD Sender: No OFD packet to send [21:44:36]OFD Sender: No OFD packet to send [21:44:41]OFD Sender: No OFD packet to send [21:44:46]OFD Sender: No OFD packet to send [21:44:51]OFD Sender: No OFD packet to send [21:44:56]OFD Sender: No OFD packet to send [21:45:01]OFD Sender: No OFD packet to send [21:45:06]OFD Sender: No OFD packet to send [21:45:11]OFD Sender: No OFD packet to send [21:45:16]OFD Sender: No OFD packet to send [21:45:21]OFD Sender: No OFD packet to send [21:45:26]OFD Sender: No OFD packet to send [21:45:31]OFD Sender: No OFD packet to send [21:45:36]OFD Sender: No OFD packet to send [21:45:41]OFD Sender: No OFD packet to send [21:45:46]OFD Sender: No OFD packet to send [21:45:51]OFD Sender: No OFD packet to send [21:45:56]OFD Sender: No OFD packet to send [21:46:01]OFD Sender: No OFD packet to send [21:46:06]OFD Sender: No OFD packet to send [21:46:11]OFD Sender: No OFD packet to send [21:46:16]OFD Sender: No OFD packet to send [21:46:21]OFD Sender: No OFD packet to send [21:46:26]OFD Sender: No OFD packet to send [21:46:31]OFD Sender: No OFD packet to send [21:46:36]OFD Sender: No OFD packet to send [21:46:41]OFD Sender: No OFD packet to send [21:46:46]OFD Sender: No OFD packet to send [21:46:51]OFD Sender: No OFD packet to send [21:46:56]OFD Sender: No OFD packet to send [21:47:01]OFD Sender: No OFD packet to send [21:47:06]OFD Sender: No OFD packet to send [21:47:11]OFD Sender: No OFD packet to send [21:47:16]OFD Sender: No OFD packet to send [21:47:18]accept exits with 8 [21:47:18]New connection [21:47:18]New thread 3066801508 created [21:47:18]Thread 3066944868 joined [21:47:18]Waiting for new connection... [21:47:18] Sock 8.Parse request [21:47:18]Sock 8.Check first char [21:47:18]Sock 8.First char is OK [21:47:18]request: POST /json_proto HTTP/1.0 [21:47:18]Method: POST [21:47:18]URL: /json_proto [21:47:18]Method is POST - this is cgi request [21:47:18]url: /json_proto [21:47:18]query_string will be loaded in cgi processing [21:47:18]execute_cgi json_proto POST (null) [21:47:18]execute_cgi path=json_proto method=POST [21:47:18]POST find Content-Length [21:47:18]Host: 172.17.62.5:8080 [21:47:18]Content-Length: 215 [21:47:18]Content-Type: application/json [21:47:18] [21:47:18]POST finish read [21:47:18]Found Content-Length = 215 [21:47: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" ] } } [21:47:18]execute_script... [21:47: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" ] } } [21:47:18]POST & json_proto [21:47:18]process_json_proto [21:47:18]json parsed OK: [21:47:18]protocol is kg_v1.0 [21:47:18]action value=get_value [21:47:18]process_action get_value [21:47:18]cmd_get_value [21:47:18]process_action get_value done [21:47:18]requested_data is exist [21:47:18]produce_requested_data [21:47:18]requested_item kkm.sn is exist - process it [21:47:18]requested_item kkm.ver is exist - process it [21:47:18]requested_item fm.sn is exist - process it [21:47:18]wFMCommunicate request_size=4 [21:47:18]MH_SAM_APDU [21:47:18]CAPDU: 80 11 00 00 [21:47:18]Write to MH i2c: E2 08 00 BE 15 80 11 00 00 00 00 00 00 4D [21:47:18]Write i2c OK [21:47:18]MH_I2C_Read... [21:47:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:47:18]Read from MH i2c: E2 [21:47:18]MH_I2C_Read... [21:47:18]Read from MH i2c: E2 17 00 [21:47:18]MH_I2C_Read... [21:47:18]Read from MH i2c: E2 17 00 BE 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 A0 [21:47:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:47:18]wFMCommunicate OK [21:47:18]requested_item fd.num is exist - process it [21:47:18]SAM_PROTO_GetFieldsCounters [21:47:18]wFMCommunicate request_size=4 [21:47:18]MH_SAM_APDU [21:47:18]CAPDU: 80 13 00 00 [21:47:18]Write to MH i2c: E2 08 00 BF 15 80 13 00 00 00 00 00 00 50 [21:47:18]Write i2c OK [21:47:18]MH_I2C_Read... [21:47:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:47:18]Read from MH i2c: E2 [21:47:18]MH_I2C_Read... [21:47:18]Read from MH i2c: E2 62 00 [21:47:18]MH_I2C_Read... [21:47:18]Read from MH i2c: E2 62 00 BF 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 A2 2C 01 00 0E 04 04 00 74 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 43 [21:47: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 A2 2C 01 00 0E 04 04 00 74 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 [21:47:18]wFMCommunicate OK [21:47:18]SAM_PROTO_GetFieldsCounters done [21:47:18]requested_item shift.num is exist - process it [21:47:18]requested_item shift.opened is exist - process it [21:47:18]req_shift_opened [21:47:18]FM_GetShiftState [21:47:18]SAM_PROTO_GetShiftState [21:47:18]wFMCommunicate request_size=4 [21:47:18]MH_SAM_APDU [21:47:18]CAPDU: 80 13 01 00 [21:47:18]Write to MH i2c: E2 08 00 C0 15 80 13 01 00 00 00 00 00 52 [21:47:18]Write i2c OK [21:47:18]MH_I2C_Read... [21:47:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:47:18]Read from MH i2c: E2 [21:47:18]MH_I2C_Read... [21:47:18]Read from MH i2c: E2 0E 00 [21:47:18]MH_I2C_Read... [21:47:18]Read from MH i2c: E2 0E 00 C0 15 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 99 [21:47:18]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:47:18]wFMCommunicate OK [21:47:18]SAM_PROTO_GetShiftState done [21:47:18]FM_GetShiftState done [21:47:18]req_shift_opened done [21:47:18]requested_item shift.open_date is exist - process it [21:47:18]req_shift_open_date [21:47:18]req_shift_open_date done [21:47:18]produce_requested_data done [21:47:18]produce_requested_data return {"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76962,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [21:47:18]process_action_free get_value [21:47:18]json_value_free [21:47:18]json_value_free done [21:47:18]process_json_proto returns [21:47:18]Send response to host [21:47:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76962,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [21:47:18]free response buf [21:47:18]execute_script done [21:47:18]execute_script returns [21:47:18]free content buf [21:47:18]Sock 8.Close socket [21:47:18]Sock 8.Thread stoped [21:47:18]accept exits with 9 [21:47:18]New connection [21:47:18]New thread 3066944868 created [21:47:18]Thread 3066801508 joined [21:47:18]Waiting for new connection... [21:47:18] Sock 9.Parse request [21:47:18]Sock 9.Check first char [21:47:18]Sock 9.First char is OK [21:47:18]request: POST /json_proto HTTP/1.0 [21:47:18]Method: POST [21:47:18]URL: /json_proto [21:47:18]Method is POST - this is cgi request [21:47:18]url: /json_proto [21:47:18]query_string will be loaded in cgi processing [21:47:18]execute_cgi json_proto POST (null) [21:47:18]execute_cgi path=json_proto method=POST [21:47:18]POST find Content-Length [21:47:18]Host: 172.17.62.5:8080 [21:47:18]Content-Length: 331 [21:47:18]Content-Type: application/json [21:47:18] [21:47:18]POST finish read [21:47:18]Found Content-Length = 331 [21:47: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" ] } } [21:47:18]execute_script... [21:47: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" ] } } [21:47:18]POST & json_proto [21:47:18]process_json_proto [21:47:18]json parsed OK: [21:47:18]protocol is kg_v1.0 [21:47:18]action value=get_value [21:47:18]process_action get_value [21:47:18]cmd_get_value [21:47:18]process_action get_value done [21:47:18]requested_data is exist [21:47:18]produce_requested_data [21:47:18]requested_item fm.sale.total is exist - process it [21:47:18]SAM_PROTO_GetFMData [21:47:18]wFMCommunicate request_size=4 [21:47:18]MH_SAM_APDU [21:47:18]CAPDU: 80 13 03 00 [21:47:18]Write to MH i2c: E2 08 00 C1 15 80 13 03 00 00 00 00 00 55 [21:47:18]Write i2c OK [21:47:18]MH_I2C_Read... [21:47:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [21:47:19]Read from MH i2c: E2 [21:47:19]MH_I2C_Read... [21:47:19]Read from MH i2c: E2 FD 00 [21:47:19]MH_I2C_Read... [21:47:19]Read from MH i2c: E2 FD 00 C1 15 00 C8 04 85 04 C4 04 6E 04 04 00 BA 29 01 00 69 04 A3 00 6F 04 04 00 C7 27 01 00 B1 04 05 00 2B 97 A9 BB 02 70 04 05 00 C4 A1 93 77 02 72 04 04 00 67 F5 15 44 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 46 97 4F 4A 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 C0 3B 31 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F3 01 00 00 B1 04 05 00 F4 34 DE 15 01 70 04 05 00 F4 34 DE 15 01 72 04 00 00 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 6D 18 82 1D EF 90 00 92 [21:47:19]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 BA 29 01 00 69 04 A3 00 6F 04 04 00 C7 27 01 00 B1 04 05 00 2B 97 A9 BB 02 70 04 05 00 C4 A1 93 77 02 72 04 04 00 67 F5 15 44 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 46 97 4F 4A 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 C0 3B 31 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F3 01 00 00 B1 04 05 00 F4 34 DE 15 01 70 04 05 00 F4 34 DE 15 01 72 04 00 00 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 6D 18 82 1D EF 90 00 [21:47:19]wFMCommunicate OK [21:47:19]wFMCommunicate request_size=4 [21:47:19]MH_SAM_APDU [21:47:19]CAPDU: 80 17 00 00 [21:47:19]Write to MH i2c: E2 08 00 C2 15 80 17 00 00 00 00 00 00 57 [21:47:19]Write i2c OK [21:47:19]MH_I2C_Read... [21:47:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:47:19]Read from MH i2c: E2 [21:47:19]MH_I2C_Read... [21:47:19]Read from MH i2c: E2 FD 00 [21:47:19]MH_I2C_Read... [21:47:19]Read from MH i2c: E2 FD 00 C2 15 00 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 ED 81 75 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 90 00 4B [21:47:19]RAPDU: 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 ED 81 75 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 90 00 [21:47:19]wFMCommunicate OK [21:47:19]wFMCommunicate request_size=4 [21:47:19]MH_SAM_APDU [21:47:19]CAPDU: 80 17 00 00 [21:47:19]Write to MH i2c: E2 08 00 C3 15 80 17 00 00 00 00 00 00 58 [21:47:19]Write i2c OK [21:47:19]MH_I2C_Read... [21:47:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:47:19]Read from MH i2c: E2 [21:47:19]MH_I2C_Read... [21:47:19]Read from MH i2c: E2 FD 00 [21:47:19]MH_I2C_Read... [21:47:19]Read from MH i2c: E2 FD 00 C3 15 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 30 [21:47:19]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [21:47:19]wFMCommunicate OK [21:47:19]wFMCommunicate request_size=4 [21:47:19]MH_SAM_APDU [21:47:19]CAPDU: 80 17 00 00 [21:47:19]Write to MH i2c: E2 08 00 C4 15 80 17 00 00 00 00 00 00 59 [21:47:19]Write i2c OK [21:47:19]MH_I2C_Read... [21:47:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:47:20]Read from MH i2c: E2 [21:47:20]MH_I2C_Read... [21:47:20]Read from MH i2c: E2 FD 00 [21:47:20]MH_I2C_Read... [21:47:20]Read from MH i2c: E2 FD 00 C4 15 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 D1 [21:47:20]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [21:47:20]wFMCommunicate OK [21:47:20]wFMCommunicate request_size=4 [21:47:20]MH_SAM_APDU [21:47:20]CAPDU: 80 17 00 00 [21:47:20]Write to MH i2c: E2 08 00 C5 15 80 17 00 00 00 00 00 00 5A [21:47:20]Write i2c OK [21:47:20]MH_I2C_Read... [21:47:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [21:47:20]Read from MH i2c: E2 [21:47:20]MH_I2C_Read... [21:47:20]Read from MH i2c: E2 E5 00 [21:47:20]MH_I2C_Read... [21:47:20]Read from MH i2c: E2 E5 00 C5 15 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 3E [21:47:20]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [21:47:20]wFMCommunicate OK [21:47:20]SAM_PROTO_GetFMData done [21:47:20]requested_item fm.sale_refund.total is exist - process it [21:47:20]requested_item fm.buy.total is exist - process it [21:47:20]requested_item shift.sale.total is exist - process it [21:47:20]SAM_PROTO_GetShiftData [21:47:20]wFMCommunicate request_size=4 [21:47:20]MH_SAM_APDU [21:47:20]CAPDU: 80 13 02 00 [21:47:20]Write to MH i2c: E2 08 00 C6 15 80 13 02 00 00 00 00 00 59 [21:47:20]Write i2c OK [21:47:20]MH_I2C_Read... [21:47:20]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [21:47:20]Read from MH i2c: E2 [21:47:20]MH_I2C_Read... [21:47:20]Read from MH i2c: E2 FD 00 [21:47:20]MH_I2C_Read... [21:47:20]Read from MH i2c: E2 FD 00 C6 15 00 BB 04 AA 04 B7 04 6E 04 04 00 DA 00 00 00 69 04 9E 00 6F 04 04 00 D7 00 00 00 B1 04 04 00 DC 78 ED 01 70 04 04 00 38 33 98 01 72 04 03 00 A4 45 55 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 78 69 34 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 1D 5E 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 03 00 00 00 B1 04 03 00 00 52 03 70 04 03 00 00 52 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 4E 5A EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 85 [21:47:20]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 DA 00 00 00 69 04 9E 00 6F 04 04 00 D7 00 00 00 B1 04 04 00 DC 78 ED 01 70 04 04 00 38 33 98 01 72 04 03 00 A4 45 55 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 78 69 34 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 1D 5E 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 03 00 00 00 B1 04 03 00 00 52 03 70 04 03 00 00 52 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 4E 5A EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [21:47:20]wFMCommunicate OK [21:47:20]wFMCommunicate request_size=4 [21:47:20]MH_SAM_APDU [21:47:20]CAPDU: 80 17 00 00 [21:47:20]Write to MH i2c: E2 08 00 C7 15 80 17 00 00 00 00 00 00 5C [21:47:20]Write i2c OK [21:47:20]MH_I2C_Read... [21:47:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:47:20]Read from MH i2c: E2 [21:47:20]MH_I2C_Read... [21:47:20]Read from MH i2c: E2 FD 00 [21:47:20]MH_I2C_Read... [21:47:20]Read from MH i2c: E2 FD 00 C7 15 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 87 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 [21:47:21]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 87 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [21:47:21]wFMCommunicate OK [21:47:21]wFMCommunicate request_size=4 [21:47:21]MH_SAM_APDU [21:47:21]CAPDU: 80 17 00 00 [21:47:21]Write to MH i2c: E2 08 00 C8 15 80 17 00 00 00 00 00 00 5D [21:47:21]Write i2c OK [21:47:21]MH_I2C_Read... [21:47:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:47:21]Read from MH i2c: E2 [21:47:21]MH_I2C_Read... [21:47:21]Read from MH i2c: E2 FD 00 [21:47:21]MH_I2C_Read... [21:47:21]Read from MH i2c: E2 FD 00 C8 15 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 89 [21:47: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 [21:47:21]wFMCommunicate OK [21:47:21]wFMCommunicate request_size=4 [21:47:21]MH_SAM_APDU [21:47:21]CAPDU: 80 17 00 00 [21:47:21]Write to MH i2c: E2 08 00 C9 15 80 17 00 00 00 00 00 00 5E [21:47:21]Write i2c OK [21:47:21]MH_I2C_Read... [21:47:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:47:21]Read from MH i2c: E2 [21:47:21]MH_I2C_Read... [21:47:21]Read from MH i2c: E2 FD 00 [21:47:21]MH_I2C_Read... [21:47:21]Read from MH i2c: E2 FD 00 C9 15 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 D3 [21:47: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 [21:47:21]wFMCommunicate OK [21:47:21]wFMCommunicate request_size=4 [21:47:21]MH_SAM_APDU [21:47:21]CAPDU: 80 17 00 00 [21:47:21]Write to MH i2c: E2 08 00 CA 15 80 17 00 00 00 00 00 00 5F [21:47:21]Write i2c OK [21:47:21]MH_I2C_Read... [21:47:21]OFD Sender: No OFD packet to send [21:47:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [21:47:21]Read from MH i2c: E2 [21:47:21]MH_I2C_Read... [21:47:21]Read from MH i2c: E2 D8 00 [21:47:21]MH_I2C_Read... [21:47:21]Read from MH i2c: E2 D8 00 CA 15 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 46 [21:47: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 [21:47:21]wFMCommunicate OK [21:47:21]SAM_PROTO_GetShiftData done [21:47:21]requested_item shift.sale.total_cash is exist - process it [21:47:21]requested_item shift.sale_refund.total is exist - process it [21:47:21]requested_item shift.sale_refund.total_cash is exist - process it [21:47:21]requested_item shift.buy.total is exist - process it [21:47:21]requested_item shift.buy.total_cash is exist - process it [21:47:21]produce_requested_data done [21:47:21]produce_requested_data return {"fm.sale.total":117383882.67,"fm.sale_refund.total":46618513.80,"fm.buy.total":0.00,"shift.sale.total":323401.88,"shift.sale.total_cash":267518.00,"shift.sale_refund.total":2176.00,"shift.sale_refund.total_cash":2176.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [21:47:21]process_action_free get_value [21:47:21]json_value_free [21:47:21]json_value_free done [21:47:21]process_json_proto returns [21:47:21]Send response to host [21:47:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":117383882.67,"fm.sale_refund.total":46618513.80,"fm.buy.total":0.00,"shift.sale.total":323401.88,"shift.sale.total_cash":267518.00,"shift.sale_refund.total":2176.00,"shift.sale_refund.total_cash":2176.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [21:47:21]free response buf [21:47:21]execute_script done [21:47:21]execute_script returns [21:47:21]free content buf [21:47:21]Sock 9.Close socket [21:47:21]Sock 9.Thread stoped [21:47:26]OFD Sender: No OFD packet to send [21:47:31]OFD Sender: No OFD packet to send [21:47:36]OFD Sender: No OFD packet to send [21:47:41]OFD Sender: No OFD packet to send [21:47:46]OFD Sender: No OFD packet to send [21:47:51]OFD Sender: No OFD packet to send [21:47:56]OFD Sender: No OFD packet to send [21:48:01]OFD Sender: No OFD packet to send [21:48:06]OFD Sender: No OFD packet to send [21:48:11]OFD Sender: No OFD packet to send [21:48:16]OFD Sender: No OFD packet to send [21:48:21]OFD Sender: No OFD packet to send [21:48:26]OFD Sender: No OFD packet to send [21:48:31]OFD Sender: No OFD packet to send [21:48:36]OFD Sender: No OFD packet to send [21:48:41]OFD Sender: No OFD packet to send [21:48:44]accept exits with 8 [21:48:44]New connection [21:48:44]New thread 3066801508 created [21:48:44]Thread 3066944868 joined [21:48:44]Waiting for new connection... [21:48:44] Sock 8.Parse request [21:48:44]Sock 8.Check first char [21:48:44]Sock 8.First char is OK [21:48:44]request: POST /json_proto HTTP/1.0 [21:48:44]Method: POST [21:48:44]URL: /json_proto [21:48:44]Method is POST - this is cgi request [21:48:44]url: /json_proto [21:48:44]query_string will be loaded in cgi processing [21:48:44]execute_cgi json_proto POST (null) [21:48:44]execute_cgi path=json_proto method=POST [21:48:44]POST find Content-Length [21:48:44]Host: 172.17.62.5:8080 [21:48:44]Content-Length: 677 [21:48:44]Content-Type: application/json [21:48:44] [21:48:44]POST finish read [21:48:44]Found Content-Length = 677 [21:48:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191511", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:48:44]execute_script... [21:48:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191511", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:48:44]POST & json_proto [21:48:44]process_json_proto [21:48:44]json parsed OK: [21:48:44]protocol is kg_v1.0 [21:48:44]action value=close_receipt [21:48:44]process_action close_receipt [21:48:44]cmd_close_receipt [21:48:44]MH_GetDate [21:48:44]Write to MH i2c: F0 00 00 CB 15 CF [21:48:44]Write i2c OK [21:48:44]MH_I2C_Read... [21:48:44]Read from MH i2c: F0 [21:48:44]MH_I2C_Read... [21:48:44]Read from MH i2c: F0 09 00 [21:48:44]MH_I2C_Read... [21:48:44]Read from MH i2c: F0 09 00 CB 15 00 BD 89 25 66 F4 E9 65 64 4F [21:48:44]GetLastDocTimeStamp 1713735729 [21:48:44]current date 1713736125 [21:48:44]FM_GetShiftState [21:48:44]SAM_PROTO_GetShiftState [21:48:44]wFMCommunicate request_size=4 [21:48:44]MH_SAM_APDU [21:48:44]CAPDU: 80 13 01 00 [21:48:44]Write to MH i2c: E2 08 00 CC 15 80 13 01 00 00 00 00 00 5E [21:48:44]Write i2c OK [21:48:44]MH_I2C_Read... [21:48:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:44]Read from MH i2c: E2 [21:48:44]MH_I2C_Read... [21:48:44]Read from MH i2c: E2 0E 00 [21:48:44]MH_I2C_Read... [21:48:44]Read from MH i2c: E2 0E 00 CC 15 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 A5 [21:48:44]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:48:44]wFMCommunicate OK [21:48:44]SAM_PROTO_GetShiftState done [21:48:44]FM_GetShiftState done [21:48:44]opened in 1713658965 [21:48:44]opened+sec_in_day 1713745365 [21:48:44]quantity*price = 50038 [21:48:44]sum+1 = 50040 [21:48:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 219 21.04.2024 21:48 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76963 ФПД: 258096800523892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T214845&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76963&fm=258096800523892&tin=02508201610067®Number=0000000000091573&sum=50000 [21:48:45]StoreToDocumentArchive [21:48:45]shift 372 fd 76963 [21:48:45]save to /storage/0372/doc_00076963 [21:48:45]save last doc name /storage/0372/doc_00076963 to /storage/kkm_last_doc_name [21:48:45]save OK [21:48:45]Clear old archive folders... [21:48:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:48:45]tlvbuf is B6EA6380 [21:48:45]SAM_PROTO_ClearQueue [21:48:45]wFMCommunicate request_size=4 [21:48:45]MH_SAM_APDU [21:48:45]CAPDU: 80 09 00 00 [21:48:45]Write to MH i2c: E2 08 00 D9 15 80 09 00 00 00 00 00 00 60 [21:48:45]Write i2c OK [21:48:45]MH_I2C_Read... [21:48:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:48:45]Read from MH i2c: E2 [21:48:45]MH_I2C_Read... [21:48:45]Read from MH i2c: E2 03 00 [21:48:45]MH_I2C_Read... [21:48:45]Read from MH i2c: E2 03 00 D9 15 00 90 00 62 [21:48:45]RAPDU: 90 00 [21:48:45]wFMCommunicate OK [21:48:45]SAM_PROTO_ClearQueue done [21:48:45]KKMCreateOFDPacket [21:48:45]OFDProtocolAddRootSTLVToBuf [21:48:45]FM_MakeSignedData [21:48:45]FM_MakeSignedData [21:48:45]SAM_PROTO_SignData [21:48:45]wFMCommunicate request_size=4 [21:48:45]MH_SAM_APDU [21:48:45]CAPDU: 80 0D 01 02 [21:48:45]Write to MH i2c: E2 08 00 DA 15 80 0D 01 02 00 00 00 00 68 [21:48:45]Write i2c OK [21:48:45]MH_I2C_Read... [21:48:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:48:45]Read from MH i2c: E2 [21:48:45]MH_I2C_Read... [21:48:45]Read from MH i2c: E2 03 00 [21:48:45]MH_I2C_Read... [21:48:45]Read from MH i2c: E2 03 00 DA 15 00 90 00 63 [21:48:45]RAPDU: 90 00 [21:48:45]wFMCommunicate OK [21:48:45]wFMCommunicate request_size=255 [21:48:45]MH_SAM_APDU [21:48:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 BD 89 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A3 2C 01 00 35 04 06 00 EA [21:48:45]Write to MH i2c: E2 02 01 DB 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 BD 89 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A3 2C 01 00 35 04 06 00 EA 00 00 F8 [21:48:45]Write i2c OK [21:48:45]MH_I2C_Read... [21:48:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:48:45]Read from MH i2c: E2 [21:48:45]MH_I2C_Read... [21:48:45]Read from MH i2c: E2 03 00 [21:48:45]MH_I2C_Read... [21:48:45]Read from MH i2c: E2 03 00 DB 15 00 90 00 64 [21:48:45]RAPDU: 90 00 [21:48:45]wFMCommunicate OK [21:48:45]wFMCommunicate request_size=10 [21:48:45]MH_SAM_APDU [21:48:45]CAPDU: 80 0D 02 02 05 BC D8 1C E6 74 [21:48:45]Write to MH i2c: E2 0D 00 DC 15 80 0D 02 02 05 00 BC D8 1C E6 74 00 00 7F [21:48:45]Write i2c OK [21:48:45]MH_I2C_Read... [21:48:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:48:45]Read from MH i2c: E2 [21:48:45]MH_I2C_Read... [21:48:45]Read from MH i2c: E2 03 00 [21:48:45]MH_I2C_Read... [21:48:45]Read from MH i2c: E2 03 00 DC 15 00 90 00 65 [21:48:45]RAPDU: 90 00 [21:48:45]wFMCommunicate OK [21:48:45]wFMCommunicate request_size=4 [21:48:45]MH_SAM_APDU [21:48:45]CAPDU: 80 0D 03 02 [21:48:45]Write to MH i2c: E2 08 00 DD 15 80 0D 03 02 00 00 00 00 6D [21:48:45]Write i2c OK [21:48:45]MH_I2C_Read... [21:48:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:48:45]Read from MH i2c: E2 [21:48:45]MH_I2C_Read... [21:48:45]Read from MH i2c: E2 0B 00 [21:48:45]MH_I2C_Read... [21:48:45]Read from MH i2c: E2 0B 00 DD 15 00 0C 05 77 6D E6 4C 0C 64 90 00 05 [21:48:45]RAPDU: 0C 05 77 6D E6 4C 0C 64 90 00 [21:48:45]wFMCommunicate OK [21:48:45]SAM_PROTO_SignData done [21:48:45]FM_MakeSignedData done [21:48:45]CreateOFDProtocolMessage [21:48:45]wFMCommunicate request_size=4 [21:48:45]MH_SAM_APDU [21:48:45]CAPDU: 80 11 00 00 [21:48:45]Write to MH i2c: E2 08 00 DE 15 80 11 00 00 00 00 00 00 6D [21:48:45]Write i2c OK [21:48:45]MH_I2C_Read... [21:48:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:45]Read from MH i2c: E2 [21:48:45]MH_I2C_Read... [21:48:45]Read from MH i2c: E2 17 00 [21:48:45]MH_I2C_Read... [21:48:45]Read from MH i2c: E2 17 00 DE 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 C0 [21:48:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:48:45]wFMCommunicate OK [21:48:45]CreateOFDProtocolMessage done [21:48:45]OFDSenderStorePacket 76963 [21:48:45]StoreOFDPacket docnum=76963 [21:48:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 73 DA 07 01 B3 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 BD 89 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A3 2C 01 00 35 04 06 00 EA BC D8 1C E6 74 0C 05 77 6D E6 4C 0C 64 [21:48:45]CheckFolder [21:48:45]dirname=/storage/ofd_packets [21:48:45]CheckFolder done [21:48:45]ProducePacketName [21:48:45]name=ofd_packets/00076963 [21:48:45]NVStorageSaveData ofd_packets/00076963 [21:48:45]File name is /storage/ofd_packets/00076963 [21:48:45]Write 301 bytes [21:48:45]NVStorageSaveData done [21:48:45]OFDSenderStorePacket done [21:48:45]KKMCreateOFDPacket done [21:48:45]NVStorageSaveData kkm_last_timestamp [21:48:45]File name is /storage/kkm_last_timestamp [21:48:45]Write 4 bytes [21:48:45]NVStorageSaveData done [21:48:45]ExternCall_PrintAddStr [21:48:45]wPrintStart [21:48:45]Write to MH i2c: 01 00 00 DF 15 F4 [21:48:45]Write i2c OK [21:48:45]MH_I2C_Read... [21:48:45]Read from MH i2c: 01 [21:48:45]MH_I2C_Read... [21:48:45]Read from MH i2c: 01 07 00 [21:48:45]MH_I2C_Read... [21:48:45]Read from MH i2c: 01 07 00 DF 15 00 00 00 00 00 FF 0F 09 [21:48:45]RasterBufferAndPrint [21:48:45]line Счет N : (1)191511 [21:48:45]line ИНН: 02508201610067 [21:48:45]line Контрольно-Кассовый Чек [21:48:45]line ПРОДАЖА [21:48:45]line ТРК (МРК, ГНК) : 12 [21:48:45]line Товар: 2710124130 [21:48:45]line Аи-92-К-5 [21:48:45]line 7.770 * 64.40 [21:48:45]line = 500.39 [21:48:45]line НДС 12% НСП 1% [21:48:45]line > о реализуемом товаре [21:48:45]line ОКРУГЛЕНИЕ: -0.39 [21:48:45]line ИТОГО: 500.00 [21:48:45]line Внесено: 500.00 [21:48:45]line СДАЧА: 0.00 [21:48:45]line НСП 1% : 4.43 [21:48:45]line НДС 12% : 53.14 [21:48:45]line Наличными: 500.00 [21:48:45]line Безнал.: 0.00 [21:48:45]line Место: АЗС № 106 "Партнер Нефть" [21:48:45]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [21:48:45]line СНО: Общий режим [21:48:45]line Чек 219 21.04.2024 21:48 [21:48:45]line Смена: 372 ФФД: 1.0 [21:48:45]line ЗНМ: 0300000141 [21:48:45]line РНМ: 0000000000091573 [21:48:45]line Версия ККМ: 001 [21:48:45]line ФМ: 0000000000874652 [21:48:45]line ФД: 76963 [21:48:45]line ФПД: 258096800523892 [21:48:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T214845&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76963&fm=258096800523892&tin=02508201610067®Number=0000000000091573&sum=50000 [21:48:46]OFD Sender: Processing packet 76963 [packets to send 129, broken 128] [21:48:46]ProducePacketName [21:48:46]name=ofd_packets/00076963 [21:48:46]OFD Sender: To server: pG, [21:48:46]CommunicateWithHost lk.salyk.kg:30040 [21:48:46]ConnectInit lk.salyk.kg [21:48:46]written 0, free lines is 4095 [21:48:46]Write to MH i2c: 01 00 00 09 16 1F [21:48:46]Write i2c OK [21:48:46]MH_I2C_Read... [21:48:46]Read from MH i2c: 01 [21:48:46]MH_I2C_Read... [21:48:46]Read from MH i2c: 01 07 00 [21:48:46]MH_I2C_Read... [21:48:46]Read from MH i2c: 01 07 00 09 16 00 00 00 00 00 E0 0C 12 [21:48:46]RasterBufferAndPrint [21:48:46]line [21:48:46]line [21:48:46]line [21:48:46]line [21:48:46]line [21:48:46]written 0, free lines is 3301 [21:48:46]MH_Cut [21:48:46]Write to MH i2c: D1 01 00 10 16 01 F8 [21:48:46]Write i2c OK [21:48:46]MH_I2C_Read... [21:48:46]Read from MH i2c: D1 [21:48:46]MH_I2C_Read... [21:48:46]Read from MH i2c: D1 01 00 [21:48:46]MH_I2C_Read... [21:48:46]Read from MH i2c: D1 01 00 10 16 00 F7 [21:48:46]Write to MH i2c: 01 00 00 11 16 27 [21:48:46]Write i2c OK [21:48:46]MH_I2C_Read... [21:48:46]Connected sock=11 [21:48:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 73 DA 07 01 B3 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 BD 89 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A3 2C 01 00 35 04 06 00 EA BC D8 1C E6 74 0C 05 77 6D E6 4C 0C 64 [21:48:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 10 EA 47 00 54 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 34 36 35 32 10 04 04 00 A3 2C 01 00 F4 03 04 00 42 31 25 66 B6 04 01 00 00 CD DF F9 D6 8E C5 90 94 [21:48:47]CommunicateWithHost err = 0 [21:48:47]CheckOFDResponse [21:48:47]1017 (14) - 77093643461234 [21:48:47]1041 (16) - 0000000000874652 [21:48:47]1040 (4) - 76963 [21:48:47]1012 (4) - 21.04.2024 15:31 [21:48:47]1206 (1) - 0 [21:48:47]OFD Sender: Remove packet 76963 [21:48:47]ProducePacketName [21:48:47]name=ofd_packets/00076963 [21:48:47]NVStorageDeleteData [21:48:47]*** Cut start [21:48:47]*** Partial cut [21:48:47]*** CUTSNS_PIN = 1 [21:48:47]*** CUTSNS_PIN = 0 [21:48:47]*** Brake cut motor [21:48:47]OFD Sender: No OFD packet to send [21:48:47]Read from MH i2c: 01 [21:48:47]MH_I2C_Read... [21:48:47]*** Stop cut motor [21:48:47]*** Cut end [21:48:47]Read from MH i2c: 01 07 00 [21:48:47]MH_I2C_Read... [21:48:47]Read from MH i2c: 01 07 00 11 16 00 00 00 00 00 FF 0F 3C [21:48:47]process_action close_receipt done [21:48:47]requested_data is exist [21:48:47]produce_requested_data [21:48:47]requested_item fm.sn is exist - process it [21:48:47]wFMCommunicate request_size=4 [21:48:47]MH_SAM_APDU [21:48:47]CAPDU: 80 11 00 00 [21:48:47]Write to MH i2c: E2 08 00 12 16 80 11 00 00 00 00 00 00 A2 [21:48:47]Write i2c OK [21:48:47]MH_I2C_Read... [21:48:48]Read from MH i2c: E2 [21:48:48]MH_I2C_Read... [21:48:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:48]Read from MH i2c: E2 17 00 [21:48:48]MH_I2C_Read... [21:48:48]Read from MH i2c: E2 17 00 12 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F5 [21:48:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:48:48]wFMCommunicate OK [21:48:48]requested_item fd.num is exist - process it [21:48:48]SAM_PROTO_GetFieldsCounters [21:48:48]wFMCommunicate request_size=4 [21:48:48]MH_SAM_APDU [21:48:48]CAPDU: 80 13 00 00 [21:48:48]Write to MH i2c: E2 08 00 13 16 80 13 00 00 00 00 00 00 A5 [21:48:48]Write i2c OK [21:48:48]MH_I2C_Read... [21:48:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:48:48]Read from MH i2c: E2 [21:48:48]MH_I2C_Read... [21:48:48]Read from MH i2c: E2 62 00 [21:48:48]MH_I2C_Read... [21:48:48]Read from MH i2c: E2 62 00 13 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 A3 2C 01 00 0E 04 04 00 74 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 9C [21:48:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 A3 2C 01 00 0E 04 04 00 74 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 [21:48:48]wFMCommunicate OK [21:48:48]SAM_PROTO_GetFieldsCounters done [21:48:48]requested_item shift.num is exist - process it [21:48:48]requested_item shift.opened is exist - process it [21:48:48]req_shift_opened [21:48:48]FM_GetShiftState [21:48:48]SAM_PROTO_GetShiftState [21:48:48]wFMCommunicate request_size=4 [21:48:48]MH_SAM_APDU [21:48:48]CAPDU: 80 13 01 00 [21:48:48]Write to MH i2c: E2 08 00 14 16 80 13 01 00 00 00 00 00 A7 [21:48:48]Write i2c OK [21:48:48]MH_I2C_Read... [21:48:48]Read from MH i2c: E2 [21:48:48]MH_I2C_Read... [21:48:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:48]Read from MH i2c: E2 0E 00 [21:48:48]MH_I2C_Read... [21:48:48]Read from MH i2c: E2 0E 00 14 16 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 EE [21:48:48]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:48:48]wFMCommunicate OK [21:48:48]SAM_PROTO_GetShiftState done [21:48:48]FM_GetShiftState done [21:48:48]req_shift_opened done [21:48:48]requested_item shift.open_date is exist - process it [21:48:48]req_shift_open_date [21:48:48]req_shift_open_date done [21:48:48]produce_requested_data done [21:48:48]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76963,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [21:48:48]process_action_free close_receipt [21:48:48]json_value_free [21:48:48]json_value_free done [21:48:48]process_json_proto returns [21:48:48]Send response to host [21:48:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76963,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [21:48:48]free response buf [21:48:48]execute_script done [21:48:48]execute_script returns [21:48:48]free content buf [21:48:48]Sock 8.Close socket [21:48:48]Sock 8.Thread stoped [21:48:52]OFD Sender: No OFD packet to send [21:48:57]OFD Sender: No OFD packet to send [21:49:02]OFD Sender: No OFD packet to send [21:49:07]OFD Sender: No OFD packet to send [21:49:12]OFD Sender: No OFD packet to send [21:49:17]OFD Sender: No OFD packet to send [21:49:22]OFD Sender: No OFD packet to send [21:49:27]OFD Sender: No OFD packet to send [21:49:32]OFD Sender: No OFD packet to send [21:49:37]OFD Sender: No OFD packet to send [21:49:42]OFD Sender: No OFD packet to send [21:49:47]OFD Sender: No OFD packet to send [21:49:52]OFD Sender: No OFD packet to send [21:49:57]OFD Sender: No OFD packet to send [21:50:02]OFD Sender: No OFD packet to send [21:50:07]OFD Sender: No OFD packet to send [21:50:12]OFD Sender: No OFD packet to send [21:50:17]OFD Sender: No OFD packet to send [21:50:22]OFD Sender: No OFD packet to send [21:50:27]OFD Sender: No OFD packet to send [21:50:32]OFD Sender: No OFD packet to send [21:50:37]OFD Sender: No OFD packet to send [21:50:42]OFD Sender: No OFD packet to send [21:50:47]OFD Sender: No OFD packet to send [21:50:52]OFD Sender: No OFD packet to send [21:50:57]OFD Sender: No OFD packet to send [21:51:02]OFD Sender: No OFD packet to send [21:51:07]OFD Sender: No OFD packet to send [21:51:12]OFD Sender: No OFD packet to send [21:51:17]OFD Sender: No OFD packet to send [21:51:22]OFD Sender: No OFD packet to send [21:51:27]OFD Sender: No OFD packet to send [21:51:32]OFD Sender: No OFD packet to send [21:51:37]OFD Sender: No OFD packet to send [21:51:42]OFD Sender: No OFD packet to send [21:51:47]OFD Sender: No OFD packet to send [21:51:52]OFD Sender: No OFD packet to send [21:51:57]OFD Sender: No OFD packet to send [21:52:02]OFD Sender: No OFD packet to send [21:52:07]OFD Sender: No OFD packet to send [21:52:12]OFD Sender: No OFD packet to send [21:52:14]accept exits with 10 [21:52:14]New connection [21:52:14]New thread 3066944868 created [21:52:14]Thread 3066801508 joined [21:52:14]Waiting for new connection... [21:52:14] Sock 10.Parse request [21:52:14]Sock 10.Check first char [21:52:14]Sock 10.First char is OK [21:52:14]request: POST /json_proto HTTP/1.0 [21:52:14]Method: POST [21:52:14]URL: /json_proto [21:52:14]Method is POST - this is cgi request [21:52:14]url: /json_proto [21:52:14]query_string will be loaded in cgi processing [21:52:14]execute_cgi json_proto POST (null) [21:52:14]execute_cgi path=json_proto method=POST [21:52:14]POST find Content-Length [21:52:14]Host: 172.17.62.5:8080 [21:52:14]Content-Length: 670 [21:52:14]Content-Type: application/json [21:52:14] [21:52:14]POST finish read [21:52:14]Found Content-Length = 670 [21:52:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 3.060, "sum" : 200.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:14]execute_script... [21:52: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)191512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 3.060, "sum" : 200.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:14]POST & json_proto [21:52:14]process_json_proto [21:52:14]json parsed OK: [21:52:14]protocol is kg_v1.0 [21:52:14]action value=close_receipt [21:52:14]process_action close_receipt [21:52:14]cmd_close_receipt [21:52:14]MH_GetDate [21:52:14]Write to MH i2c: F0 00 00 15 16 1A [21:52:14]Write i2c OK [21:52:14]MH_I2C_Read... [21:52:14]Read from MH i2c: F0 [21:52:14]MH_I2C_Read... [21:52:14]Read from MH i2c: F0 09 00 [21:52:14]MH_I2C_Read... [21:52:14]Read from MH i2c: F0 09 00 15 16 00 90 8A 25 66 F4 E9 65 64 6E [21:52:14]GetLastDocTimeStamp 1713736125 [21:52:14]current date 1713736336 [21:52:14]FM_GetShiftState [21:52:14]SAM_PROTO_GetShiftState [21:52:14]wFMCommunicate request_size=4 [21:52:14]MH_SAM_APDU [21:52:14]CAPDU: 80 13 01 00 [21:52:14]Write to MH i2c: E2 08 00 16 16 80 13 01 00 00 00 00 00 A9 [21:52:14]Write i2c OK [21:52:14]MH_I2C_Read... [21:52:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:14]Read from MH i2c: E2 [21:52:14]MH_I2C_Read... [21:52:14]Read from MH i2c: E2 0E 00 [21:52:14]MH_I2C_Read... [21:52:14]Read from MH i2c: E2 0E 00 16 16 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 F0 [21:52:14]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:52:14]wFMCommunicate OK [21:52:14]SAM_PROTO_GetShiftState done [21:52:14]FM_GetShiftState done [21:52:14]opened in 1713658965 [21:52:14]opened+sec_in_day 1713745365 [21:52:14]quantity*price = 20012 [21:52:14]sum+1 = 20013 [21:52:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.25 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 220 21.04.2024 21:52 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76964 ФПД: 26316390302371 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T215216&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76964&fm=26316390302371&tin=02508201610067®Number=0000000000091573&sum=20000 [21:52:16]StoreToDocumentArchive [21:52:16]shift 372 fd 76964 [21:52:16]save to /storage/0372/doc_00076964 [21:52:16]save last doc name /storage/0372/doc_00076964 to /storage/kkm_last_doc_name [21:52:16]save OK [21:52:16]Clear old archive folders... [21:52:16]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:52:16]tlvbuf is 00C6C670 [21:52:16]SAM_PROTO_ClearQueue [21:52:16]wFMCommunicate request_size=4 [21:52:16]MH_SAM_APDU [21:52:16]CAPDU: 80 09 00 00 [21:52:16]Write to MH i2c: E2 08 00 23 16 80 09 00 00 00 00 00 00 AB [21:52:16]Write i2c OK [21:52:16]MH_I2C_Read... [21:52:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:52:16]Read from MH i2c: E2 [21:52:16]MH_I2C_Read... [21:52:16]Read from MH i2c: E2 03 00 [21:52:16]MH_I2C_Read... [21:52:16]Read from MH i2c: E2 03 00 23 16 00 90 00 AD [21:52:16]RAPDU: 90 00 [21:52:16]wFMCommunicate OK [21:52:16]SAM_PROTO_ClearQueue done [21:52:16]KKMCreateOFDPacket [21:52:16]OFDProtocolAddRootSTLVToBuf [21:52:16]FM_MakeSignedData [21:52:16]FM_MakeSignedData [21:52:16]SAM_PROTO_SignData [21:52:16]wFMCommunicate request_size=4 [21:52:16]MH_SAM_APDU [21:52:16]CAPDU: 80 0D 01 02 [21:52:16]Write to MH i2c: E2 08 00 24 16 80 0D 01 02 00 00 00 00 B3 [21:52:16]Write i2c OK [21:52:16]MH_I2C_Read... [21:52:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:52:16]Read from MH i2c: E2 [21:52:16]MH_I2C_Read... [21:52:16]Read from MH i2c: E2 03 00 [21:52:16]MH_I2C_Read... [21:52:16]Read from MH i2c: E2 03 00 24 16 00 90 00 AE [21:52:16]RAPDU: 90 00 [21:52:16]wFMCommunicate OK [21:52:16]wFMCommunicate request_size=255 [21:52:16]MH_SAM_APDU [21:52: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 0B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 2C 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 4D 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 DC 00 00 00 F4 03 04 00 90 8A 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A4 2C 01 00 35 04 06 00 [21:52:16]Write to MH i2c: E2 02 01 25 16 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 0B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 2C 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 4D 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 DC 00 00 00 F4 03 04 00 90 8A 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A4 2C 01 00 35 04 06 00 00 00 21 [21:52:16]Write i2c OK [21:52:16]MH_I2C_Read... [21:52:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:16]Read from MH i2c: E2 [21:52:16]MH_I2C_Read... [21:52:16]Read from MH i2c: E2 03 00 [21:52:16]MH_I2C_Read... [21:52:16]Read from MH i2c: E2 03 00 25 16 00 90 00 AF [21:52:16]RAPDU: 90 00 [21:52:16]wFMCommunicate OK [21:52:16]wFMCommunicate request_size=11 [21:52:16]MH_SAM_APDU [21:52:16]CAPDU: 80 0D 02 02 06 17 EF 43 18 82 A3 [21:52:16]Write to MH i2c: E2 0E 00 26 16 80 0D 02 02 06 00 17 EF 43 18 82 A3 00 00 48 [21:52:16]Write i2c OK [21:52:16]MH_I2C_Read... [21:52:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:16]Read from MH i2c: E2 [21:52:16]MH_I2C_Read... [21:52:16]Read from MH i2c: E2 03 00 [21:52:16]MH_I2C_Read... [21:52:16]Read from MH i2c: E2 03 00 26 16 00 90 00 B0 [21:52:16]RAPDU: 90 00 [21:52:16]wFMCommunicate OK [21:52:16]wFMCommunicate request_size=4 [21:52:16]MH_SAM_APDU [21:52:16]CAPDU: 80 0D 03 02 [21:52:16]Write to MH i2c: E2 08 00 27 16 80 0D 03 02 00 00 00 00 B8 [21:52:16]Write i2c OK [21:52:16]MH_I2C_Read... [21:52:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:52:16]Read from MH i2c: E2 [21:52:16]MH_I2C_Read... [21:52:16]Read from MH i2c: E2 0B 00 [21:52:16]MH_I2C_Read... [21:52:16]Read from MH i2c: E2 0B 00 27 16 00 72 BB A3 76 01 C8 18 50 90 00 30 [21:52:16]RAPDU: 72 BB A3 76 01 C8 18 50 90 00 [21:52:16]wFMCommunicate OK [21:52:16]SAM_PROTO_SignData done [21:52:16]FM_MakeSignedData done [21:52:16]CreateOFDProtocolMessage [21:52:16]wFMCommunicate request_size=4 [21:52:16]MH_SAM_APDU [21:52:16]CAPDU: 80 11 00 00 [21:52:16]Write to MH i2c: E2 08 00 28 16 80 11 00 00 00 00 00 00 B8 [21:52:16]Write i2c OK [21:52:16]MH_I2C_Read... [21:52:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:16]Read from MH i2c: E2 [21:52:16]MH_I2C_Read... [21:52:16]Read from MH i2c: E2 17 00 [21:52:16]MH_I2C_Read... [21:52:16]Read from MH i2c: E2 17 00 28 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 0B [21:52:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:52:16]wFMCommunicate OK [21:52:16]CreateOFDProtocolMessage done [21:52:16]OFDSenderStorePacket 76964 [21:52:16]StoreOFDPacket docnum=76964 [21:52:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 5D BB 08 01 9D 17 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 0B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 2C 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 4D 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 DC 00 00 00 F4 03 04 00 90 8A 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A4 2C 01 00 35 04 06 00 17 EF 43 18 82 A3 72 BB A3 76 01 C8 18 50 [21:52:16]CheckFolder [21:52:16]dirname=/storage/ofd_packets [21:52:16]CheckFolder done [21:52:16]ProducePacketName [21:52:16]name=ofd_packets/00076964 [21:52:16]NVStorageSaveData ofd_packets/00076964 [21:52:16]File name is /storage/ofd_packets/00076964 [21:52:16]Write 302 bytes [21:52:16]NVStorageSaveData done [21:52:16]OFDSenderStorePacket done [21:52:16]KKMCreateOFDPacket done [21:52:16]NVStorageSaveData kkm_last_timestamp [21:52:16]File name is /storage/kkm_last_timestamp [21:52:16]Write 4 bytes [21:52:16]NVStorageSaveData done [21:52:16]ExternCall_PrintAddStr [21:52:16]wPrintStart [21:52:16]Write to MH i2c: 01 00 00 29 16 3F [21:52:16]Write i2c OK [21:52:16]MH_I2C_Read... [21:52:16]Read from MH i2c: 01 [21:52:16]MH_I2C_Read... [21:52:16]Read from MH i2c: 01 07 00 [21:52:16]MH_I2C_Read... [21:52:16]Read from MH i2c: 01 07 00 29 16 00 00 00 00 00 FF 0F 54 [21:52:16]RasterBufferAndPrint [21:52:16]line Счет N : (1)191512 [21:52:16]line ИНН: 02508201610067 [21:52:16]line Контрольно-Кассовый Чек [21:52:16]line ПРОДАЖА [21:52:16]line ТРК (МРК, ГНК) : 41 [21:52:16]line Товар: 2710124130 [21:52:16]line SUPER 92-К-5 [21:52:16]line 3.060 * 65.40 [21:52:16]line = 200.12 [21:52:16]line НДС 12% НСП 1% [21:52:16]line > о реализуемом товаре [21:52:16]line ОКРУГЛЕНИЕ: -0.12 [21:52:16]line ИТОГО: 200.00 [21:52:16]line Внесено: 200.00 [21:52:16]line СДАЧА: 0.00 [21:52:16]line НСП 1% : 1.77 [21:52:16]line НДС 12% : 21.25 [21:52:16]line Наличными: 200.00 [21:52:16]line Безнал.: 0.00 [21:52:16]line Место: АЗС № 106 "Партнер Нефть" [21:52:16]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [21:52:16]line СНО: Общий режим [21:52:16]line Чек 220 21.04.2024 21:52 [21:52:16]line Смена: 372 ФФД: 1.0 [21:52:16]line ЗНМ: 0300000141 [21:52:16]line РНМ: 0000000000091573 [21:52:16]line Версия ККМ: 001 [21:52:16]line ФМ: 0000000000874652 [21:52:16]line ФД: 76964 [21:52:16]line ФПД: 26316390302371 [21:52:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T215216&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76964&fm=26316390302371&tin=02508201610067®Number=0000000000091573&sum=20000 [21:52:16]written 0, free lines is 4095 [21:52:16]OFD Sender: Processing packet 76964 [packets to send 129, broken 128] [21:52:16]ProducePacketName [21:52:16]name=ofd_packets/00076964 [21:52:16]OFD Sender: To server: pG, [21:52:16]CommunicateWithHost lk.salyk.kg:30040 [21:52:16]ConnectInit lk.salyk.kg [21:52:17]Connected sock=11 [21:52:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 5D BB 08 01 9D 17 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 0B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 2C 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 4D 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 DC 00 00 00 F4 03 04 00 90 8A 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A4 2C 01 00 35 04 06 00 17 EF 43 18 82 A3 72 BB A3 76 01 C8 18 50 [21:52:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 29 45 47 00 95 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 34 36 35 32 10 04 04 00 A4 2C 01 00 F4 03 04 00 14 32 25 66 B6 04 01 00 00 A5 05 42 31 8B FF 1C 36 [21:52:17]CommunicateWithHost err = 0 [21:52:17]CheckOFDResponse [21:52:17]1017 (14) - 77093643461234 [21:52:17]1041 (16) - 0000000000874652 [21:52:17]1040 (4) - 76964 [21:52:17]1012 (4) - 21.04.2024 15:34 [21:52:17]1206 (1) - 0 [21:52:17]OFD Sender: Remove packet 76964 [21:52:17]ProducePacketName [21:52:17]name=ofd_packets/00076964 [21:52:17]NVStorageDeleteData [21:52:17]Write to MH i2c: 01 00 00 53 16 69 [21:52:17]Write i2c OK [21:52:17]MH_I2C_Read... [21:52:17]Read from MH i2c: 01 [21:52:17]MH_I2C_Read... [21:52:17]Read from MH i2c: 01 07 00 [21:52:17]MH_I2C_Read... [21:52:17]Read from MH i2c: 01 07 00 53 16 00 00 00 00 00 DF 0C 5B [21:52:17]RasterBufferAndPrint [21:52:17]line [21:52:17]line [21:52:17]line [21:52:17]line [21:52:17]line [21:52:17]written 0, free lines is 3301 [21:52:17]MH_Cut [21:52:17]Write to MH i2c: D1 01 00 5A 16 01 42 [21:52:17]Write i2c OK [21:52:17]MH_I2C_Read... [21:52:17]Read from MH i2c: D1 [21:52:17]MH_I2C_Read... [21:52:17]Read from MH i2c: D1 01 00 [21:52:17]MH_I2C_Read... [21:52:17]Read from MH i2c: D1 01 00 5A 16 00 41 [21:52:17]Write to MH i2c: 01 00 00 5B 16 71 [21:52:17]Write i2c OK [21:52:17]MH_I2C_Read... [21:52:17]OFD Sender: No OFD packet to send [21:52:18]*** Cut start [21:52:18]*** Partial cut [21:52:18]*** CUTSNS_PIN = 1 [21:52:18]*** CUTSNS_PIN = 0 [21:52:18]*** Brake cut motor [21:52:18]Read from MH i2c: 01 [21:52:18]MH_I2C_Read... [21:52:18]*** Stop cut motor [21:52:18]*** Cut end [21:52:18]Read from MH i2c: 01 07 00 [21:52:18]MH_I2C_Read... [21:52:18]Read from MH i2c: 01 07 00 5B 16 00 00 00 00 00 FF 0F 86 [21:52:18]process_action close_receipt done [21:52:18]requested_data is exist [21:52:18]produce_requested_data [21:52:18]requested_item fm.sn is exist - process it [21:52:18]wFMCommunicate request_size=4 [21:52:18]MH_SAM_APDU [21:52:18]CAPDU: 80 11 00 00 [21:52:18]Write to MH i2c: E2 08 00 5C 16 80 11 00 00 00 00 00 00 EC [21:52:18]Write i2c OK [21:52:18]MH_I2C_Read... [21:52:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:18]Read from MH i2c: E2 [21:52:18]MH_I2C_Read... [21:52:18]Read from MH i2c: E2 17 00 [21:52:18]MH_I2C_Read... [21:52:18]Read from MH i2c: E2 17 00 5C 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 3F [21:52:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:52:18]wFMCommunicate OK [21:52:18]requested_item fd.num is exist - process it [21:52:18]SAM_PROTO_GetFieldsCounters [21:52:18]wFMCommunicate request_size=4 [21:52:18]MH_SAM_APDU [21:52:18]CAPDU: 80 13 00 00 [21:52:18]Write to MH i2c: E2 08 00 5D 16 80 13 00 00 00 00 00 00 EF [21:52:18]Write i2c OK [21:52:18]MH_I2C_Read... [21:52:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:52:18]Read from MH i2c: E2 [21:52:19]MH_I2C_Read... [21:52:19]Read from MH i2c: E2 62 00 [21:52:19]MH_I2C_Read... [21:52:19]Read from MH i2c: E2 62 00 5D 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 A4 2C 01 00 0E 04 04 00 74 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 EA [21:52:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 A4 2C 01 00 0E 04 04 00 74 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 [21:52:19]wFMCommunicate OK [21:52:19]SAM_PROTO_GetFieldsCounters done [21:52:19]requested_item shift.num is exist - process it [21:52:19]requested_item shift.opened is exist - process it [21:52:19]req_shift_opened [21:52:19]FM_GetShiftState [21:52:19]SAM_PROTO_GetShiftState [21:52:19]wFMCommunicate request_size=4 [21:52:19]MH_SAM_APDU [21:52:19]CAPDU: 80 13 01 00 [21:52:19]Write to MH i2c: E2 08 00 5E 16 80 13 01 00 00 00 00 00 F1 [21:52:19]Write i2c OK [21:52:19]MH_I2C_Read... [21:52:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:19]Read from MH i2c: E2 [21:52:19]MH_I2C_Read... [21:52:19]Read from MH i2c: E2 0E 00 [21:52:19]MH_I2C_Read... [21:52:19]Read from MH i2c: E2 0E 00 5E 16 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 38 [21:52:19]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:52:19]wFMCommunicate OK [21:52:19]SAM_PROTO_GetShiftState done [21:52:19]FM_GetShiftState done [21:52:19]req_shift_opened done [21:52:19]requested_item shift.open_date is exist - process it [21:52:19]req_shift_open_date [21:52:19]req_shift_open_date done [21:52:19]produce_requested_data done [21:52:19]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76964,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [21:52:19]process_action_free close_receipt [21:52:19]json_value_free [21:52:19]json_value_free done [21:52:19]process_json_proto returns [21:52:19]Send response to host [21:52:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76964,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [21:52:19]free response buf [21:52:19]execute_script done [21:52:19]execute_script returns [21:52:19]free content buf [21:52:19]Sock 10.Close socket [21:52:19]Sock 10.Thread stoped [21:52:22]OFD Sender: No OFD packet to send [21:52:27]OFD Sender: No OFD packet to send [21:52:32]OFD Sender: No OFD packet to send [21:52:37]OFD Sender: No OFD packet to send [21:52:42]OFD Sender: No OFD packet to send [21:52:47]OFD Sender: No OFD packet to send [21:52:52]OFD Sender: No OFD packet to send [21:52:57]OFD Sender: No OFD packet to send [21:53:02]OFD Sender: No OFD packet to send [21:53:07]OFD Sender: No OFD packet to send [21:53:12]OFD Sender: No OFD packet to send [21:53:17]OFD Sender: No OFD packet to send [21:53:22]OFD Sender: No OFD packet to send [21:53:27]OFD Sender: No OFD packet to send [21:53:32]OFD Sender: No OFD packet to send [21:53:37]OFD Sender: No OFD packet to send [21:53:42]OFD Sender: No OFD packet to send [21:53:47]OFD Sender: No OFD packet to send [21:53:52]OFD Sender: No OFD packet to send [21:53:57]OFD Sender: No OFD packet to send [21:54:02]OFD Sender: No OFD packet to send [21:54:07]OFD Sender: No OFD packet to send [21:54:12]OFD Sender: No OFD packet to send [21:54:17]OFD Sender: No OFD packet to send [21:54:23]OFD Sender: No OFD packet to send [21:54:28]OFD Sender: No OFD packet to send [21:54:33]OFD Sender: No OFD packet to send [21:54:38]OFD Sender: No OFD packet to send [21:54:43]OFD Sender: No OFD packet to send [21:54:48]OFD Sender: No OFD packet to send [21:54:53]OFD Sender: No OFD packet to send [21:54:58]OFD Sender: No OFD packet to send [21:55:01]accept exits with 9 [21:55:01]New connection [21:55:01]New thread 3066801508 created [21:55:01]Thread 3066944868 joined [21:55:01]Waiting for new connection... [21:55:01] Sock 9.Parse request [21:55:01]Sock 9.Check first char [21:55:01]Sock 9.First char is OK [21:55:01]request: POST /json_proto HTTP/1.0 [21:55:01]Method: POST [21:55:01]URL: /json_proto [21:55:01]Method is POST - this is cgi request [21:55:01]url: /json_proto [21:55:01]query_string will be loaded in cgi processing [21:55:01]execute_cgi json_proto POST (null) [21:55:01]execute_cgi path=json_proto method=POST [21:55:01]POST find Content-Length [21:55:01]Host: 172.17.62.5:8080 [21:55:01]Content-Length: 816 [21:55:01]Content-Type: application/json [21:55:01] [21:55:01]POST finish read [21:55:01]Found Content-Length = 816 [21:55:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191514", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:55:01]execute_script... [21:55: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)191514", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:55:01]POST & json_proto [21:55:01]process_json_proto [21:55:01]json parsed OK: [21:55:01]protocol is kg_v1.0 [21:55:01]action value=close_receipt [21:55:01]process_action close_receipt [21:55:01]cmd_close_receipt [21:55:01]MH_GetDate [21:55:01]Write to MH i2c: F0 00 00 5F 16 64 [21:55:01]Write i2c OK [21:55:01]MH_I2C_Read... [21:55:01]Read from MH i2c: F0 [21:55:01]MH_I2C_Read... [21:55:01]Read from MH i2c: F0 09 00 [21:55:01]MH_I2C_Read... [21:55:01]Read from MH i2c: F0 09 00 5F 16 00 36 8B 25 66 F4 E9 65 64 5F [21:55:01]GetLastDocTimeStamp 1713736336 [21:55:01]current date 1713736502 [21:55:01]FM_GetShiftState [21:55:01]SAM_PROTO_GetShiftState [21:55:01]wFMCommunicate request_size=4 [21:55:01]MH_SAM_APDU [21:55:01]CAPDU: 80 13 01 00 [21:55:01]Write to MH i2c: E2 08 00 60 16 80 13 01 00 00 00 00 00 F3 [21:55:01]Write i2c OK [21:55:01]MH_I2C_Read... [21:55:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:55:01]Read from MH i2c: E2 [21:55:01]MH_I2C_Read... [21:55:01]Read from MH i2c: E2 0E 00 [21:55:01]MH_I2C_Read... [21:55:01]Read from MH i2c: E2 0E 00 60 16 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 3A [21:55:01]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:55:01]wFMCommunicate OK [21:55:01]SAM_PROTO_GetShiftState done [21:55:01]FM_GetShiftState done [21:55:01]opened in 1713658965 [21:55:01]opened+sec_in_day 1713745365 [21:55:01]quantity*price = 50038 [21:55:01]sum+1 = 50040 [21:55:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.39 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.39 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 221 21.04.2024 21:55 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 76965 ФПД: 111150228627499 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T215502&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76965&fm=111150228627499&tin=02508201610067®Number=0000000000091573&sum=50039 [21:55:02]StoreToDocumentArchive [21:55:02]shift 372 fd 76965 [21:55:02]save to /storage/0372/doc_00076965 [21:55:02]save last doc name /storage/0372/doc_00076965 to /storage/kkm_last_doc_name [21:55:02]save OK [21:55:02]Clear old archive folders... [21:55:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:55:02]tlvbuf is 00CF69E0 [21:55:02]SAM_PROTO_ClearQueue [21:55:02]wFMCommunicate request_size=4 [21:55:02]MH_SAM_APDU [21:55:02]CAPDU: 80 09 00 00 [21:55:02]Write to MH i2c: E2 08 00 6D 16 80 09 00 00 00 00 00 00 F5 [21:55:02]Write i2c OK [21:55:02]MH_I2C_Read... [21:55:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:55:02]Read from MH i2c: E2 [21:55:02]MH_I2C_Read... [21:55:02]Read from MH i2c: E2 03 00 [21:55:02]MH_I2C_Read... [21:55:02]Read from MH i2c: E2 03 00 6D 16 00 90 00 F7 [21:55:02]RAPDU: 90 00 [21:55:02]wFMCommunicate OK [21:55:02]SAM_PROTO_ClearQueue done [21:55:02]KKMCreateOFDPacket [21:55:02]OFDProtocolAddRootSTLVToBuf [21:55:02]FM_MakeSignedData [21:55:02]FM_MakeSignedData [21:55:02]SAM_PROTO_SignData [21:55:02]wFMCommunicate request_size=4 [21:55:02]MH_SAM_APDU [21:55:02]CAPDU: 80 0D 01 02 [21:55:02]Write to MH i2c: E2 08 00 6E 16 80 0D 01 02 00 00 00 00 FD [21:55:02]Write i2c OK [21:55:02]MH_I2C_Read... [21:55:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:55:02]Read from MH i2c: E2 [21:55:02]MH_I2C_Read... [21:55:02]Read from MH i2c: E2 03 00 [21:55:02]MH_I2C_Read... [21:55:02]Read from MH i2c: E2 03 00 6E 16 00 90 00 F8 [21:55:02]RAPDU: 90 00 [21:55:02]wFMCommunicate OK [21:55:02]wFMCommunicate request_size=255 [21:55:02]MH_SAM_APDU [21:55: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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 77 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 77 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 36 8B 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A5 2C 01 00 35 04 06 00 65 [21:55:02]Write to MH i2c: E2 02 01 6F 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 77 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 77 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 36 8B 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A5 2C 01 00 35 04 06 00 65 00 00 D5 [21:55:02]Write i2c OK [21:55:02]MH_I2C_Read... [21:55:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:55:03]Read from MH i2c: E2 [21:55:03]MH_I2C_Read... [21:55:03]Read from MH i2c: E2 03 00 [21:55:03]MH_I2C_Read... [21:55:03]Read from MH i2c: E2 03 00 6F 16 00 90 00 F9 [21:55:03]RAPDU: 90 00 [21:55:03]wFMCommunicate OK [21:55:03]wFMCommunicate request_size=10 [21:55:03]MH_SAM_APDU [21:55:03]CAPDU: 80 0D 02 02 05 17 2D E4 E0 2B [21:55:03]Write to MH i2c: E2 0D 00 70 16 80 0D 02 02 05 00 17 2D E4 E0 2B 00 00 3D [21:55:03]Write i2c OK [21:55:03]MH_I2C_Read... [21:55:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:55:03]Read from MH i2c: E2 [21:55:03]MH_I2C_Read... [21:55:03]Read from MH i2c: E2 03 00 [21:55:03]MH_I2C_Read... [21:55:03]Read from MH i2c: E2 03 00 70 16 00 90 00 FA [21:55:03]RAPDU: 90 00 [21:55:03]wFMCommunicate OK [21:55:03]wFMCommunicate request_size=4 [21:55:03]MH_SAM_APDU [21:55:03]CAPDU: 80 0D 03 02 [21:55:03]Write to MH i2c: E2 08 00 71 16 80 0D 03 02 00 00 00 00 02 [21:55:03]Write i2c OK [21:55:03]MH_I2C_Read... [21:55:03]OFD Sender: No OFD packet to send [21:55:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:55:03]Read from MH i2c: E2 [21:55:03]MH_I2C_Read... [21:55:03]Read from MH i2c: E2 0B 00 [21:55:03]MH_I2C_Read... [21:55:03]Read from MH i2c: E2 0B 00 71 16 00 09 7B D2 9C 9C 73 A1 81 90 00 26 [21:55:03]RAPDU: 09 7B D2 9C 9C 73 A1 81 90 00 [21:55:03]wFMCommunicate OK [21:55:03]SAM_PROTO_SignData done [21:55:03]FM_MakeSignedData done [21:55:03]CreateOFDProtocolMessage [21:55:03]wFMCommunicate request_size=4 [21:55:03]MH_SAM_APDU [21:55:03]CAPDU: 80 11 00 00 [21:55:03]Write to MH i2c: E2 08 00 72 16 80 11 00 00 00 00 00 00 02 [21:55:03]Write i2c OK [21:55:03]MH_I2C_Read... [21:55:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:55:03]Read from MH i2c: E2 [21:55:03]MH_I2C_Read... [21:55:03]Read from MH i2c: E2 17 00 [21:55:03]MH_I2C_Read... [21:55:03]Read from MH i2c: E2 17 00 72 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 55 [21:55:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:55:03]wFMCommunicate OK [21:55:03]CreateOFDProtocolMessage done [21:55:03]OFDSenderStorePacket 76965 [21:55:03]StoreOFDPacket docnum=76965 [21:55:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 77 3A 07 01 94 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 77 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 77 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 36 8B 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A5 2C 01 00 35 04 06 00 65 17 2D E4 E0 2B 09 7B D2 9C 9C 73 A1 81 [21:55:03]CheckFolder [21:55:03]dirname=/storage/ofd_packets [21:55:03]CheckFolder done [21:55:03]ProducePacketName [21:55:03]name=ofd_packets/00076965 [21:55:03]NVStorageSaveData ofd_packets/00076965 [21:55:03]File name is /storage/ofd_packets/00076965 [21:55:03]Write 301 bytes [21:55:03]NVStorageSaveData done [21:55:03]OFDSenderStorePacket done [21:55:03]KKMCreateOFDPacket done [21:55:03]NVStorageSaveData kkm_last_timestamp [21:55:03]File name is /storage/kkm_last_timestamp [21:55:03]Write 4 bytes [21:55:03]NVStorageSaveData done [21:55:03]ExternCall_PrintAddStr [21:55:03]wPrintStart [21:55:03]Write to MH i2c: 01 00 00 73 16 89 [21:55:03]Write i2c OK [21:55:03]MH_I2C_Read... [21:55:03]Read from MH i2c: 01 [21:55:03]MH_I2C_Read... [21:55:03]Read from MH i2c: 01 07 00 [21:55:03]MH_I2C_Read... [21:55:03]Read from MH i2c: 01 07 00 73 16 00 00 00 00 00 FF 0F 9E [21:55:03]RasterBufferAndPrint [21:55:03]line Счет N : (1)191514 [21:55:03]line ИНН: 02508201610067 [21:55:03]line Контрольно-Кассовый Чек [21:55:03]line ПРОДАЖА [21:55:03]line ТРК (МРК, ГНК) : 33 [21:55:03]line Товар: 2710124130 [21:55:03]line Аи-92-К-5 [21:55:03]line 7.770 * 64.40 [21:55:03]line = 500.39 [21:55:03]line НДС 12% НСП 1% [21:55:03]line > о реализуемом товаре [21:55:03]line ИТОГО: 500.39 [21:55:03]line НСП 1% : 4.43 [21:55:03]line НДС 12% : 53.14 [21:55:03]line Наличными: 0.00 [21:55:03]line Безнал.: 500.39 [21:55:03]line Место: АЗС № 106 "Партнер Нефть" [21:55:03]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [21:55:03]line СНО: Общий режим [21:55:03]line Чек 221 21.04.2024 21:55 [21:55:03]line Смена: 372 ФФД: 1.0 [21:55:03]line ЗНМ: 0300000141 [21:55:03]line РНМ: 0000000000091573 [21:55:03]line Версия ККМ: 001 [21:55:03]line Платежная система: Бакай Банк [21:55:03]line ФМ: 0000000000874652 [21:55:03]line ФД: 76965 [21:55:03]line ФПД: 111150228627499 [21:55:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T215502&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76965&fm=111150228627499&tin=02508201610067®Number=0000000000091573&sum=50039 [21:55:03]written 0, free lines is 4095 [21:55:03]OFD Sender: Processing packet 76965 [packets to send 129, broken 128] [21:55:03]ProducePacketName [21:55:03]name=ofd_packets/00076965 [21:55:03]OFD Sender: To server: pG, [21:55:03]CommunicateWithHost lk.salyk.kg:30040 [21:55:03]ConnectInit lk.salyk.kg [21:55:03]Write to MH i2c: 01 00 00 9C 16 B2 [21:55:03]Write i2c OK [21:55:03]MH_I2C_Read... [21:55:03]Read from MH i2c: 01 [21:55:03]MH_I2C_Read... [21:55:03]Read from MH i2c: 01 07 00 [21:55:03]MH_I2C_Read... [21:55:03]Read from MH i2c: 01 07 00 9C 16 00 00 00 00 00 F0 0C B5 [21:55:03]RasterBufferAndPrint [21:55:03]line [21:55:03]line [21:55:03]line [21:55:03]line [21:55:03]line [21:55:03]written 0, free lines is 3318 [21:55:03]MH_Cut [21:55:03]Write to MH i2c: D1 01 00 A3 16 01 8B [21:55:03]Write i2c OK [21:55:03]MH_I2C_Read... [21:55:03]Read from MH i2c: D1 [21:55:03]MH_I2C_Read... [21:55:03]Read from MH i2c: D1 01 00 [21:55:03]MH_I2C_Read... [21:55:03]Read from MH i2c: D1 01 00 A3 16 00 8A [21:55:03]Write to MH i2c: 01 00 00 A4 16 BA [21:55:03]Write i2c OK [21:55:03]MH_I2C_Read... [21:55:04]*** Cut start [21:55:04]*** Partial cut [21:55:04]*** CUTSNS_PIN = 1 [21:55:04]*** CUTSNS_PIN = 0 [21:55:04]*** Brake cut motor [21:55:05]Read from MH i2c: 01 [21:55:05]MH_I2C_Read... [21:55:05]*** Stop cut motor [21:55:05]*** Cut end [21:55:05]Read from MH i2c: 01 07 00 [21:55:05]MH_I2C_Read... [21:55:05]Read from MH i2c: 01 07 00 A4 16 00 00 00 00 00 FF 0F CF [21:55:05]process_action close_receipt done [21:55:05]requested_data is exist [21:55:05]produce_requested_data [21:55:05]requested_item fm.sn is exist - process it [21:55:05]wFMCommunicate request_size=4 [21:55:05]MH_SAM_APDU [21:55:05]CAPDU: 80 11 00 00 [21:55:05]Write to MH i2c: E2 08 00 A5 16 80 11 00 00 00 00 00 00 35 [21:55:05]Write i2c OK [21:55:05]MH_I2C_Read... [21:55:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:55:05]Read from MH i2c: E2 [21:55:05]MH_I2C_Read... [21:55:05]Read from MH i2c: E2 17 00 [21:55:05]MH_I2C_Read... [21:55:05]Read from MH i2c: E2 17 00 A5 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 88 [21:55:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:55:05]wFMCommunicate OK [21:55:05]requested_item fd.num is exist - process it [21:55:05]SAM_PROTO_GetFieldsCounters [21:55:05]wFMCommunicate request_size=4 [21:55:05]MH_SAM_APDU [21:55:05]CAPDU: 80 13 00 00 [21:55:05]Write to MH i2c: E2 08 00 A6 16 80 13 00 00 00 00 00 00 38 [21:55:05]Write i2c OK [21:55:05]MH_I2C_Read... [21:55:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:55:05]Read from MH i2c: E2 [21:55:05]MH_I2C_Read... [21:55:05]Read from MH i2c: E2 62 00 [21:55:05]MH_I2C_Read... [21:55:05]Read from MH i2c: E2 62 00 A6 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 A5 2C 01 00 0E 04 04 00 74 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 37 [21:55: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 A5 2C 01 00 0E 04 04 00 74 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 [21:55:05]wFMCommunicate OK [21:55:05]SAM_PROTO_GetFieldsCounters done [21:55:05]requested_item shift.num is exist - process it [21:55:05]requested_item shift.opened is exist - process it [21:55:05]req_shift_opened [21:55:05]FM_GetShiftState [21:55:05]SAM_PROTO_GetShiftState [21:55:05]wFMCommunicate request_size=4 [21:55:05]MH_SAM_APDU [21:55:05]CAPDU: 80 13 01 00 [21:55:05]Write to MH i2c: E2 08 00 A7 16 80 13 01 00 00 00 00 00 3A [21:55:05]Write i2c OK [21:55:05]MH_I2C_Read... [21:55:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:55:05]Read from MH i2c: E2 [21:55:05]MH_I2C_Read... [21:55:05]Read from MH i2c: E2 0E 00 [21:55:05]MH_I2C_Read... [21:55:05]Read from MH i2c: E2 0E 00 A7 16 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 81 [21:55:05]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:55:05]wFMCommunicate OK [21:55:05]SAM_PROTO_GetShiftState done [21:55:05]FM_GetShiftState done [21:55:05]req_shift_opened done [21:55:05]requested_item shift.open_date is exist - process it [21:55:05]req_shift_open_date [21:55:05]req_shift_open_date done [21:55:05]produce_requested_data done [21:55:05]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76965,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [21:55:05]process_action_free close_receipt [21:55:05]json_value_free [21:55:05]json_value_free done [21:55:05]process_json_proto returns [21:55:05]Send response to host [21:55:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76965,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [21:55:05]free response buf [21:55:05]execute_script done [21:55:05]execute_script returns [21:55:05]free content buf [21:55:05]Sock 9.Close socket [21:55:05]Sock 9.Thread stoped [21:55:06]Connected sock=11 [21:55:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 77 3A 07 01 94 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 77 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 77 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 36 8B 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A5 2C 01 00 35 04 06 00 65 17 2D E4 E0 2B 09 7B D2 9C 9C 73 A1 81 [21:55:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 27 8B 47 00 AA 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 34 36 35 32 10 04 04 00 A5 2C 01 00 F4 03 04 00 BD 32 25 66 B6 04 01 00 00 B8 89 23 F4 77 B5 0C FC [21:55:06]CommunicateWithHost err = 0 [21:55:06]CheckOFDResponse [21:55:06]1017 (14) - 77093643461234 [21:55:06]1041 (16) - 0000000000874652 [21:55:06]1040 (4) - 76965 [21:55:06]1012 (4) - 21.04.2024 15:37 [21:55:06]1206 (1) - 0 [21:55:06]OFD Sender: Remove packet 76965 [21:55:06]ProducePacketName [21:55:06]name=ofd_packets/00076965 [21:55:06]NVStorageDeleteData [21:55:06]OFD Sender: No OFD packet to send [21:55:11]OFD Sender: No OFD packet to send [21:55:16]OFD Sender: No OFD packet to send [21:55:21]OFD Sender: No OFD packet to send [21:55:26]OFD Sender: No OFD packet to send [21:55:31]OFD Sender: No OFD packet to send [21:55:36]OFD Sender: No OFD packet to send [21:55:41]OFD Sender: No OFD packet to send [21:55:46]OFD Sender: No OFD packet to send [21:55:51]OFD Sender: No OFD packet to send [21:55:56]OFD Sender: No OFD packet to send [21:56:01]OFD Sender: No OFD packet to send [21:56:06]OFD Sender: No OFD packet to send [21:56:11]OFD Sender: No OFD packet to send [21:56:16]OFD Sender: No OFD packet to send [21:56:21]OFD Sender: No OFD packet to send [21:56:26]OFD Sender: No OFD packet to send [21:56:31]OFD Sender: No OFD packet to send [21:56:36]OFD Sender: No OFD packet to send [21:56:41]OFD Sender: No OFD packet to send [21:56:46]OFD Sender: No OFD packet to send [21:56:52]OFD Sender: No OFD packet to send [21:56:57]OFD Sender: No OFD packet to send [21:57:02]OFD Sender: No OFD packet to send [21:57:07]OFD Sender: No OFD packet to send [21:57:12]OFD Sender: No OFD packet to send [21:57:17]OFD Sender: No OFD packet to send [21:57:22]OFD Sender: No OFD packet to send [21:57:27]OFD Sender: No OFD packet to send [21:57:32]OFD Sender: No OFD packet to send [21:57:37]OFD Sender: No OFD packet to send [21:57:42]OFD Sender: No OFD packet to send [21:57:47]OFD Sender: No OFD packet to send [21:57:52]OFD Sender: No OFD packet to send [21:57:57]OFD Sender: No OFD packet to send [21:58:02]OFD Sender: No OFD packet to send [21:58:07]OFD Sender: No OFD packet to send [21:58:12]OFD Sender: No OFD packet to send [21:58:17]OFD Sender: No OFD packet to send [21:58:22]OFD Sender: No OFD packet to send [21:58:27]OFD Sender: No OFD packet to send [21:58:32]OFD Sender: No OFD packet to send [21:58:35]int [21:58:35]Write to MH i2c: 01 00 00 A8 16 BE [21:58:35]*** FLAG_PRN_KEY set [21:58:35]Write i2c OK [21:58:35]MH_I2C_Read... [21:58:35]Read from MH i2c: 01 [21:58:35]MH_I2C_Read... [21:58:35]Read from MH i2c: 01 07 00 [21:58:35]MH_I2C_Read... [21:58:35]Read from MH i2c: 01 07 00 A8 16 00 08 00 00 00 FF 0F DB [21:58:35]state=0 [21:58:35]Key pressed [21:58:35]Feed [21:58:35]Write to MH i2c: D8 00 00 A9 16 96 [21:58:35]Write i2c OK [21:58:35]MH_I2C_Read... [21:58:35]Read from MH i2c: D8 [21:58:35]MH_I2C_Read... [21:58:35]Read from MH i2c: D8 01 00 [21:58:35]MH_I2C_Read... [21:58:35]Read from MH i2c: D8 01 00 A9 16 00 97 [21:58:35]int [21:58:35]Write to MH i2c: 01 00 00 AA 16 C0 [21:58:35]Write i2c OK [21:58:35]MH_I2C_Read... [21:58:35]Read from MH i2c: 01 [21:58:35]MH_I2C_Read... [21:58:35]Read from MH i2c: 01 07 00 [21:58:35]MH_I2C_Read... [21:58:35]Read from MH i2c: 01 07 00 AA 16 00 48 00 00 00 3C 00 4B [21:58:35]state=2 [21:58:35]Key pressed [21:58:35]int [21:58:35]Write to MH i2c: 01 00 00 AB 16 C1 [21:58:35]*** FLAG_PRN_KEY reset [21:58:35]Write i2c OK [21:58:35]MH_I2C_Read... [21:58:35]Read from MH i2c: 01 [21:58:35]MH_I2C_Read... [21:58:35]Read from MH i2c: 01 07 00 [21:58:35]MH_I2C_Read... [21:58:35]Read from MH i2c: 01 07 00 AB 16 00 00 00 00 00 F6 0F CD [21:58:35]state=2 [21:58:35]Stop feed [21:58:37]OFD Sender: No OFD packet to send [21:58:42]OFD Sender: No OFD packet to send [21:58:47]OFD Sender: No OFD packet to send [21:58:52]OFD Sender: No OFD packet to send [21:58:57]OFD Sender: No OFD packet to send [21:59:02]OFD Sender: No OFD packet to send [21:59:07]OFD Sender: No OFD packet to send [21:59:12]OFD Sender: No OFD packet to send [21:59:17]OFD Sender: No OFD packet to send [21:59:22]OFD Sender: No OFD packet to send [21:59:27]OFD Sender: No OFD packet to send [21:59:32]OFD Sender: No OFD packet to send [21:59:36]accept exits with 8 [21:59:36]New connection [21:59:36]New thread 3066944868 created [21:59:36]Thread 3066801508 joined [21:59:36]Waiting for new connection... [21:59:36] Sock 8.Parse request [21:59:36]Sock 8.Check first char [21:59:36]Sock 8.First char is OK [21:59:36]request: POST /json_proto HTTP/1.0 [21:59:36]Method: POST [21:59:36]URL: /json_proto [21:59:36]Method is POST - this is cgi request [21:59:36]url: /json_proto [21:59:36]query_string will be loaded in cgi processing [21:59:36]execute_cgi json_proto POST (null) [21:59:36]execute_cgi path=json_proto method=POST [21:59:36]POST find Content-Length [21:59:36]Host: 172.17.62.5:8080 [21:59:36]Content-Length: 809 [21:59:36]Content-Type: application/json [21:59:36] [21:59:36]POST finish read [21:59:36]Found Content-Length = 809 [21:59:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191513", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 26.000, "sum" : 850.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 850.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:59:36]execute_script... [21: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)191513", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 26.000, "sum" : 850.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 850.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:59:36]POST & json_proto [21:59:36]process_json_proto [21:59:36]json parsed OK: [21:59:36]protocol is kg_v1.0 [21:59:36]action value=close_receipt [21:59:36]process_action close_receipt [21:59:36]cmd_close_receipt [21:59:36]MH_GetDate [21:59:36]Write to MH i2c: F0 00 00 AC 16 B1 [21:59:36]Write i2c OK [21:59:36]MH_I2C_Read... [21:59:36]Read from MH i2c: F0 [21:59:36]MH_I2C_Read... [21:59:36]Read from MH i2c: F0 09 00 [21:59:36]MH_I2C_Read... [21:59:36]Read from MH i2c: F0 09 00 AC 16 00 49 8C 25 66 F4 E9 65 64 C0 [21:59:36]GetLastDocTimeStamp 1713736502 [21:59:36]current date 1713736777 [21:59:36]FM_GetShiftState [21:59:36]SAM_PROTO_GetShiftState [21:59:36]wFMCommunicate request_size=4 [21:59:36]MH_SAM_APDU [21:59:36]CAPDU: 80 13 01 00 [21:59:36]Write to MH i2c: E2 08 00 AD 16 80 13 01 00 00 00 00 00 40 [21:59:36]Write i2c OK [21:59:36]MH_I2C_Read... [21:59:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:59:36]Read from MH i2c: E2 [21:59:36]MH_I2C_Read... [21:59:36]Read from MH i2c: E2 0E 00 [21:59:36]MH_I2C_Read... [21:59:36]Read from MH i2c: E2 0E 00 AD 16 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 87 [21:59:36]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:59:36]wFMCommunicate OK [21:59:36]SAM_PROTO_GetShiftState done [21:59:36]FM_GetShiftState done [21:59:36]opened in 1713658965 [21:59:36]opened+sec_in_day 1713745365 [21:59:36]quantity*price = 85020 [21:59:36]sum+1 = 85021 [21:59:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 850.20 НСП 1% : 7.52 НДС 12% : 90.29 Наличными: 0.00 Безнал.: 850.20 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 222 21.04.2024 21:59 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 76966 ФПД: 123213963677557 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T215937&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76966&fm=123213963677557&tin=02508201610067®Number=0000000000091573&sum=85020 [21:59:37]StoreToDocumentArchive [21:59:37]shift 372 fd 76966 [21:59:37]save to /storage/0372/doc_00076966 [21:59:37]save last doc name /storage/0372/doc_00076966 to /storage/kkm_last_doc_name [21:59:37]save OK [21:59:37]Clear old archive folders... [21:59:37]ProcessDocumentItem done err = 0, tmpTLVsize=250 [21:59:37]tlvbuf is 00CE24E0 [21:59:37]SAM_PROTO_ClearQueue [21:59:37]wFMCommunicate request_size=4 [21:59:37]MH_SAM_APDU [21:59:37]CAPDU: 80 09 00 00 [21:59:37]Write to MH i2c: E2 08 00 BA 16 80 09 00 00 00 00 00 00 42 [21:59:37]Write i2c OK [21:59:37]MH_I2C_Read... [21:59:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:59:37]Read from MH i2c: E2 [21:59:37]MH_I2C_Read... [21:59:37]Read from MH i2c: E2 03 00 [21:59:37]MH_I2C_Read... [21:59:37]Read from MH i2c: E2 03 00 BA 16 00 90 00 44 [21:59:37]RAPDU: 90 00 [21:59:37]wFMCommunicate OK [21:59:37]SAM_PROTO_ClearQueue done [21:59:37]KKMCreateOFDPacket [21:59:37]OFDProtocolAddRootSTLVToBuf [21:59:37]FM_MakeSignedData [21:59:37]FM_MakeSignedData [21:59:37]SAM_PROTO_SignData [21:59:37]wFMCommunicate request_size=4 [21:59:37]MH_SAM_APDU [21:59:37]CAPDU: 80 0D 01 02 [21:59:37]Write to MH i2c: E2 08 00 BB 16 80 0D 01 02 00 00 00 00 4A [21:59:37]Write i2c OK [21:59:37]MH_I2C_Read... [21:59:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:59:37]Read from MH i2c: E2 [21:59:37]MH_I2C_Read... [21:59:37]Read from MH i2c: E2 03 00 [21:59:37]MH_I2C_Read... [21:59:37]Read from MH i2c: E2 03 00 BB 16 00 90 00 45 [21:59:37]RAPDU: 90 00 [21:59:37]wFMCommunicate OK [21:59:37]wFMCommunicate request_size=255 [21:59:37]MH_SAM_APDU [21:59:37]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 90 65 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 1C 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 4C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 49 8C 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A6 2C 01 00 35 04 06 00 70 0F [21:59:37]Write to MH i2c: E2 02 01 BC 16 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 90 65 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 1C 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 4C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 49 8C 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A6 2C 01 00 35 04 06 00 70 0F 00 00 5C [21:59:37]Write i2c OK [21:59:37]MH_I2C_Read... [21:59:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:59:37]Read from MH i2c: E2 [21:59:37]MH_I2C_Read... [21:59:37]Read from MH i2c: E2 03 00 [21:59:37]MH_I2C_Read... [21:59:37]Read from MH i2c: E2 03 00 BC 16 00 90 00 46 [21:59:37]RAPDU: 90 00 [21:59:37]wFMCommunicate OK [21:59:37]wFMCommunicate request_size=9 [21:59:37]MH_SAM_APDU [21:59:37]CAPDU: 80 0D 02 02 04 FC 89 4F 75 [21:59:37]Write to MH i2c: E2 0C 00 BD 16 80 0D 02 02 04 00 FC 89 4F 75 00 00 9E [21:59:37]Write i2c OK [21:59:37]MH_I2C_Read... [21:59:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:59:37]Read from MH i2c: E2 [21:59:37]MH_I2C_Read... [21:59:37]Read from MH i2c: E2 03 00 [21:59:37]MH_I2C_Read... [21:59:37]Read from MH i2c: E2 03 00 BD 16 00 90 00 47 [21:59:37]RAPDU: 90 00 [21:59:37]wFMCommunicate OK [21:59:37]wFMCommunicate request_size=4 [21:59:37]MH_SAM_APDU [21:59:37]CAPDU: 80 0D 03 02 [21:59:37]Write to MH i2c: E2 08 00 BE 16 80 0D 03 02 00 00 00 00 4F [21:59:37]Write i2c OK [21:59:37]MH_I2C_Read... [21:59:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:59:37]Read from MH i2c: E2 [21:59:37]MH_I2C_Read... [21:59:37]Read from MH i2c: E2 0B 00 [21:59:37]MH_I2C_Read... [21:59:37]Read from MH i2c: E2 0B 00 BE 16 00 FF DE A6 B4 07 AD EB D5 90 00 FB [21:59:37]RAPDU: FF DE A6 B4 07 AD EB D5 90 00 [21:59:37]wFMCommunicate OK [21:59:37]SAM_PROTO_SignData done [21:59:37]FM_MakeSignedData done [21:59:37]CreateOFDProtocolMessage [21:59:37]wFMCommunicate request_size=4 [21:59:37]MH_SAM_APDU [21:59:37]CAPDU: 80 11 00 00 [21:59:37]Write to MH i2c: E2 08 00 BF 16 80 11 00 00 00 00 00 00 4F [21:59:37]Write i2c OK [21:59:37]MH_I2C_Read... [21:59:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:59:38]Read from MH i2c: E2 [21:59:38]MH_I2C_Read... [21:59:38]Read from MH i2c: E2 17 00 [21:59:38]MH_I2C_Read... [21:59:38]Read from MH i2c: E2 17 00 BF 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 A2 [21:59:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:59:38]wFMCommunicate OK [21:59:38]CreateOFDProtocolMessage done [21:59:38]OFDSenderStorePacket 76966 [21:59:38]StoreOFDPacket docnum=76966 [21:59:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 17 01 06 01 4E 3F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 90 65 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 1C 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 4C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 49 8C 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A6 2C 01 00 35 04 06 00 70 0F FC 89 4F 75 FF DE A6 B4 07 AD EB D5 [21:59:38]CheckFolder [21:59:38]dirname=/storage/ofd_packets [21:59:38]CheckFolder done [21:59:38]ProducePacketName [21:59:38]name=ofd_packets/00076966 [21:59:38]NVStorageSaveData ofd_packets/00076966 [21:59:38]File name is /storage/ofd_packets/00076966 [21:59:38]Write 300 bytes [21:59:38]NVStorageSaveData done [21:59:38]OFDSenderStorePacket done [21:59:38]KKMCreateOFDPacket done [21:59:38]NVStorageSaveData kkm_last_timestamp [21:59:38]File name is /storage/kkm_last_timestamp [21:59:38]Write 4 bytes [21:59:38]NVStorageSaveData done [21:59:38]ExternCall_PrintAddStr [21:59:38]wPrintStart [21:59:38]Write to MH i2c: 01 00 00 C0 16 D6 [21:59:38]Write i2c OK [21:59:38]MH_I2C_Read... [21:59:38]Read from MH i2c: 01 [21:59:38]MH_I2C_Read... [21:59:38]Read from MH i2c: 01 07 00 [21:59:38]MH_I2C_Read... [21:59:38]Read from MH i2c: 01 07 00 C0 16 00 00 00 00 00 FF 0F EB [21:59:38]RasterBufferAndPrint [21:59:38]line Счет N : (1)191513 [21:59:38]line ИНН: 02508201610067 [21:59:38]line Контрольно-Кассовый Чек [21:59:38]line ПРОДАЖА [21:59:38]line ТРК (МРК, ГНК) : 71 [21:59:38]line Товар: 2711190000 [21:59:38]line ГАЗ-К-5 [21:59:38]line 26.000 * 32.70 [21:59:38]line = 850.20 [21:59:38]line НДС 12% НСП 1% [21:59:38]line > о реализуемом товаре [21:59:38]line ИТОГО: 850.20 [21:59:38]line НСП 1% : 7.52 [21:59:38]line НДС 12% : 90.29 [21:59:38]line Наличными: 0.00 [21:59:38]line Безнал.: 850.20 [21:59:38]line Место: АЗС № 106 "Партнер Нефть" [21:59:38]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [21:59:38]line СНО: Общий режим [21:59:38]line Чек 222 21.04.2024 21:59 [21:59:38]line Смена: 372 ФФД: 1.0 [21:59:38]line ЗНМ: 0300000141 [21:59:38]line РНМ: 0000000000091573 [21:59:38]line Версия ККМ: 001 [21:59:38]line Платежная система: О! деньги [21:59:38]line ФМ: 0000000000874652 [21:59:38]line ФД: 76966 [21:59:38]line ФПД: 123213963677557 [21:59:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T215937&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76966&fm=123213963677557&tin=02508201610067®Number=0000000000091573&sum=85020 [21:59:38]OFD Sender: Processing packet 76966 [packets to send 129, broken 128] [21:59:38]ProducePacketName [21:59:38]name=ofd_packets/00076966 [21:59:38]OFD Sender: To server: pG, [21:59:38]CommunicateWithHost lk.salyk.kg:30040 [21:59:38]ConnectInit lk.salyk.kg [21:59:38]written 0, free lines is 4095 [21:59:38]Connected sock=10 [21: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 34 36 35 32 0E 01 00 00 17 01 06 01 4E 3F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 90 65 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 1C 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 4C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 49 8C 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A6 2C 01 00 35 04 06 00 70 0F FC 89 4F 75 FF DE A6 B4 07 AD EB D5 [21:59:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 46 16 47 00 7E 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 34 36 35 32 10 04 04 00 A6 2C 01 00 F4 03 04 00 CE 33 25 66 B6 04 01 00 00 AF 6B D4 C6 8A 48 7C 56 [21:59:38]CommunicateWithHost err = 0 [21:59:38]CheckOFDResponse [21:59:38]1017 (14) - 77093643461234 [21:59:38]1041 (16) - 0000000000874652 [21:59:38]1040 (4) - 76966 [21:59:38]1012 (4) - 21.04.2024 15:42 [21:59:38]1206 (1) - 0 [21:59:38]OFD Sender: Remove packet 76966 [21:59:38]ProducePacketName [21:59:38]name=ofd_packets/00076966 [21:59:38]NVStorageDeleteData [21:59:38]Write to MH i2c: 01 00 00 E9 16 FF [21:59:38]Write i2c OK [21:59:38]MH_I2C_Read... [21:59:38]Read from MH i2c: 01 [21:59:38]MH_I2C_Read... [21:59:38]Read from MH i2c: 01 07 00 [21:59:38]MH_I2C_Read... [21:59:38]Read from MH i2c: 01 07 00 E9 16 00 00 00 00 00 FA 0C 0C [21:59:38]RasterBufferAndPrint [21:59:38]line [21:59:38]line [21:59:38]line [21:59:38]line [21:59:38]line [21:59:38]written 0, free lines is 3328 [21:59:38]MH_Cut [21:59:38]Write to MH i2c: D1 01 00 F0 16 01 D8 [21:59:38]Write i2c OK [21:59:38]MH_I2C_Read... [21:59:38]Read from MH i2c: D1 [21:59:38]MH_I2C_Read... [21:59:38]Read from MH i2c: D1 01 00 [21:59:38]MH_I2C_Read... [21:59:38]Read from MH i2c: D1 01 00 F0 16 00 D7 [21:59:38]Write to MH i2c: 01 00 00 F1 16 07 [21:59:38]Write i2c OK [21:59:38]MH_I2C_Read... [21:59:39]OFD Sender: No OFD packet to send [21:59:39]*** Cut start [21:59:39]*** Partial cut [21:59:39]*** CUTSNS_PIN = 1 [21:59:39]*** CUTSNS_PIN = 0 [21:59:39]*** Brake cut motor [21:59:40]Read from MH i2c: 01 [21:59:40]MH_I2C_Read... [21:59:40]*** Stop cut motor [21:59:40]*** Cut end [21:59:40]Read from MH i2c: 01 07 00 [21:59:40]MH_I2C_Read... [21:59:40]Read from MH i2c: 01 07 00 F1 16 00 00 00 00 00 FF 0F 1C [21:59:40]process_action close_receipt done [21:59:40]requested_data is exist [21:59:40]produce_requested_data [21:59:40]requested_item fm.sn is exist - process it [21:59:40]wFMCommunicate request_size=4 [21:59:40]MH_SAM_APDU [21:59:40]CAPDU: 80 11 00 00 [21:59:40]Write to MH i2c: E2 08 00 F2 16 80 11 00 00 00 00 00 00 82 [21:59:40]Write i2c OK [21:59:40]MH_I2C_Read... [21:59:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:59:40]Read from MH i2c: E2 [21:59:40]MH_I2C_Read... [21:59:40]Read from MH i2c: E2 17 00 [21:59:40]MH_I2C_Read... [21:59:40]Read from MH i2c: E2 17 00 F2 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 D5 [21:59:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:59:40]wFMCommunicate OK [21:59:40]requested_item fd.num is exist - process it [21:59:40]SAM_PROTO_GetFieldsCounters [21:59:40]wFMCommunicate request_size=4 [21:59:40]MH_SAM_APDU [21:59:40]CAPDU: 80 13 00 00 [21:59:40]Write to MH i2c: E2 08 00 F3 16 80 13 00 00 00 00 00 00 85 [21:59:40]Write i2c OK [21:59:40]MH_I2C_Read... [21:59:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:59:40]Read from MH i2c: E2 [21:59:40]MH_I2C_Read... [21:59:40]Read from MH i2c: E2 62 00 [21:59:40]MH_I2C_Read... [21:59:40]Read from MH i2c: E2 62 00 F3 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 A6 2C 01 00 0E 04 04 00 74 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 88 [21: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 A6 2C 01 00 0E 04 04 00 74 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 [21:59:40]wFMCommunicate OK [21:59:40]SAM_PROTO_GetFieldsCounters done [21:59:40]requested_item shift.num is exist - process it [21:59:40]requested_item shift.opened is exist - process it [21:59:40]req_shift_opened [21:59:40]FM_GetShiftState [21:59:40]SAM_PROTO_GetShiftState [21:59:40]wFMCommunicate request_size=4 [21:59:40]MH_SAM_APDU [21:59:40]CAPDU: 80 13 01 00 [21:59:40]Write to MH i2c: E2 08 00 F4 16 80 13 01 00 00 00 00 00 87 [21:59:40]Write i2c OK [21:59:40]MH_I2C_Read... [21:59:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:59:40]Read from MH i2c: E2 [21:59:40]MH_I2C_Read... [21:59:40]Read from MH i2c: E2 0E 00 [21:59:40]MH_I2C_Read... [21:59:40]Read from MH i2c: E2 0E 00 F4 16 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 CE [21:59:40]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:59:40]wFMCommunicate OK [21:59:40]SAM_PROTO_GetShiftState done [21:59:40]FM_GetShiftState done [21:59:40]req_shift_opened done [21:59:40]requested_item shift.open_date is exist - process it [21:59:40]req_shift_open_date [21:59:40]req_shift_open_date done [21:59:40]produce_requested_data done [21:59:40]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76966,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [21:59:40]process_action_free close_receipt [21:59:40]json_value_free [21:59:40]json_value_free done [21:59:40]process_json_proto returns [21:59:40]Send response to host [21:59:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76966,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [21:59:40]free response buf [21:59:40]execute_script done [21:59:40]execute_script returns [21:59:40]free content buf [21:59:40]Sock 8.Close socket [21:59:40]Sock 8.Thread stoped [21:59:44]OFD Sender: No OFD packet to send [21:59:49]OFD Sender: No OFD packet to send [21:59:54]OFD Sender: No OFD packet to send [21:59:54]accept exits with 9 [21:59:54]New connection [21:59:54]New thread 3066801508 created [21:59:54]Thread 3066944868 joined [21:59:54]Waiting for new connection... [21:59:54] Sock 9.Parse request [21:59:54]Sock 9.Check first char [21:59:54]Sock 9.First char is OK [21:59:54]request: POST /json_proto HTTP/1.0 [21:59:54]Method: POST [21:59:54]URL: /json_proto [21:59:54]Method is POST - this is cgi request [21:59:54]url: /json_proto [21:59:55]query_string will be loaded in cgi processing [21:59:55]execute_cgi json_proto POST (null) [21:59:55]execute_cgi path=json_proto method=POST [21:59:55]POST find Content-Length [21:59:55]Host: 172.17.62.5:8080 [21:59:55]Content-Length: 679 [21:59:55]Content-Type: application/json [21:59:55] [21:59:55]POST finish read [21:59:55]Found Content-Length = 679 [21:59:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191515", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:59:55]execute_script... [21:59: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)191515", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:59:55]POST & json_proto [21:59:55]process_json_proto [21:59:55]json parsed OK: [21:59:55]protocol is kg_v1.0 [21:59:55]action value=close_receipt [21:59:55]process_action close_receipt [21:59:55]cmd_close_receipt [21:59:55]MH_GetDate [21:59:55]Write to MH i2c: F0 00 00 F5 16 FA [21:59:55]Write i2c OK [21:59:55]MH_I2C_Read... [21:59:55]Read from MH i2c: F0 [21:59:55]MH_I2C_Read... [21:59:55]Read from MH i2c: F0 09 00 [21:59:55]MH_I2C_Read... [21:59:55]Read from MH i2c: F0 09 00 F5 16 00 5C 8C 25 66 F4 E9 65 64 1C [21:59:55]GetLastDocTimeStamp 1713736777 [21:59:55]current date 1713736796 [21:59:55]FM_GetShiftState [21:59:55]SAM_PROTO_GetShiftState [21:59:55]wFMCommunicate request_size=4 [21:59:55]MH_SAM_APDU [21:59:55]CAPDU: 80 13 01 00 [21:59:55]Write to MH i2c: E2 08 00 F6 16 80 13 01 00 00 00 00 00 89 [21:59:55]Write i2c OK [21:59:55]MH_I2C_Read... [21:59:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:59:55]Read from MH i2c: E2 [21:59:55]MH_I2C_Read... [21:59:55]Read from MH i2c: E2 0E 00 [21:59:55]MH_I2C_Read... [21:59:55]Read from MH i2c: E2 0E 00 F6 16 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 D0 [21:59:55]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:59:55]wFMCommunicate OK [21:59:55]SAM_PROTO_GetShiftState done [21:59:55]FM_GetShiftState done [21:59:55]opened in 1713658965 [21:59:55]opened+sec_in_day 1713745365 [21:59:55]quantity*price = 100018 [21:59:55]sum+1 = 100020 [21:59:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 223 21.04.2024 21:59 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76967 ФПД: 263456404319108 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T215956&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76967&fm=263456404319108&tin=02508201610067®Number=0000000000091573&sum=100000 [21:59:56]StoreToDocumentArchive [21:59:56]shift 372 fd 76967 [21:59:56]save to /storage/0372/doc_00076967 [21:59:56]save last doc name /storage/0372/doc_00076967 to /storage/kkm_last_doc_name [21:59:56]save OK [21:59:56]Clear old archive folders... [21:59:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:59:56]tlvbuf is B6EA6380 [21:59:56]SAM_PROTO_ClearQueue [21:59:56]wFMCommunicate request_size=4 [21:59:56]MH_SAM_APDU [21:59:56]CAPDU: 80 09 00 00 [21:59:56]Write to MH i2c: E2 08 00 03 17 80 09 00 00 00 00 00 00 8C [21:59:56]Write i2c OK [21:59:56]MH_I2C_Read... [21:59:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:59:56]Read from MH i2c: E2 [21:59:56]MH_I2C_Read... [21:59:56]Read from MH i2c: E2 03 00 [21:59:56]MH_I2C_Read... [21:59:56]Read from MH i2c: E2 03 00 03 17 00 90 00 8E [21:59:56]RAPDU: 90 00 [21:59:56]wFMCommunicate OK [21:59:56]SAM_PROTO_ClearQueue done [21:59:56]KKMCreateOFDPacket [21:59:56]OFDProtocolAddRootSTLVToBuf [21:59:56]FM_MakeSignedData [21:59:56]FM_MakeSignedData [21:59:56]SAM_PROTO_SignData [21:59:56]wFMCommunicate request_size=4 [21:59:56]MH_SAM_APDU [21:59:56]CAPDU: 80 0D 01 02 [21:59:56]Write to MH i2c: E2 08 00 04 17 80 0D 01 02 00 00 00 00 94 [21:59:56]Write i2c OK [21:59:56]MH_I2C_Read... [21:59:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:59:56]Read from MH i2c: E2 [21:59:56]MH_I2C_Read... [21:59:56]Read from MH i2c: E2 03 00 [21:59:56]MH_I2C_Read... [21:59:56]Read from MH i2c: E2 03 00 04 17 00 90 00 8F [21:59:56]RAPDU: 90 00 [21:59:56]wFMCommunicate OK [21:59:56]wFMCommunicate request_size=255 [21:59:56]MH_SAM_APDU [21:59:56]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 DF 00 00 00 F4 03 04 00 5C 8C 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A7 2C 01 00 35 04 06 00 EF 9C B9 64 [21:59:56]Write to MH i2c: E2 02 01 05 17 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 DF 00 00 00 F4 03 04 00 5C 8C 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A7 2C 01 00 35 04 06 00 EF 9C B9 64 00 00 3D [21:59:56]Write i2c OK [21:59:56]MH_I2C_Read... [21:59:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:59:56]Read from MH i2c: E2 [21:59:56]MH_I2C_Read... [21:59:56]Read from MH i2c: E2 03 00 [21:59:56]MH_I2C_Read... [21:59:56]Read from MH i2c: E2 03 00 05 17 00 90 00 90 [21:59:56]RAPDU: 90 00 [21:59:56]wFMCommunicate OK [21:59:56]wFMCommunicate request_size=7 [21:59:56]MH_SAM_APDU [21:59:56]CAPDU: 80 0D 02 02 02 AB 84 [21:59:56]Write to MH i2c: E2 0A 00 06 17 80 0D 02 02 02 00 AB 84 00 00 CA [21:59:56]Write i2c OK [21:59:56]MH_I2C_Read... [21:59:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:59:56]Read from MH i2c: E2 [21:59:56]MH_I2C_Read... [21:59:56]Read from MH i2c: E2 03 00 [21:59:56]MH_I2C_Read... [21:59:56]Read from MH i2c: E2 03 00 06 17 00 90 00 91 [21:59:56]RAPDU: 90 00 [21:59:56]wFMCommunicate OK [21:59:56]wFMCommunicate request_size=4 [21:59:56]MH_SAM_APDU [21:59:56]CAPDU: 80 0D 03 02 [21:59:56]Write to MH i2c: E2 08 00 07 17 80 0D 03 02 00 00 00 00 99 [21:59:56]Write i2c OK [21:59:56]MH_I2C_Read... [21:59:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:59:56]Read from MH i2c: E2 [21:59:56]MH_I2C_Read... [21:59:56]Read from MH i2c: E2 0B 00 [21:59:56]MH_I2C_Read... [21:59:56]Read from MH i2c: E2 0B 00 07 17 00 7A 9E FB AC ED 77 30 23 90 00 10 [21:59:56]RAPDU: 7A 9E FB AC ED 77 30 23 90 00 [21:59:56]wFMCommunicate OK [21:59:56]SAM_PROTO_SignData done [21:59:56]FM_MakeSignedData done [21:59:56]CreateOFDProtocolMessage [21:59:56]wFMCommunicate request_size=4 [21:59:56]MH_SAM_APDU [21:59:56]CAPDU: 80 11 00 00 [21:59:56]Write to MH i2c: E2 08 00 08 17 80 11 00 00 00 00 00 00 99 [21:59:56]Write i2c OK [21:59:56]MH_I2C_Read... [21:59:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:59:56]Read from MH i2c: E2 [21:59:56]MH_I2C_Read... [21:59:56]Read from MH i2c: E2 17 00 [21:59:56]MH_I2C_Read... [21:59:56]Read from MH i2c: E2 17 00 08 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 EC [21:59:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:59:56]wFMCommunicate OK [21:59:56]CreateOFDProtocolMessage done [21:59:56]OFDSenderStorePacket 76967 [21:59:56]StoreOFDPacket docnum=76967 [21:59:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 BD FC 04 01 BE B6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 5C 8C 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A7 2C 01 00 35 04 06 00 EF 9C B9 64 AB 84 7A 9E FB AC ED 77 30 23 [21:59:56]CheckFolder [21:59:56]dirname=/storage/ofd_packets [21:59:56]CheckFolder done [21:59:56]ProducePacketName [21:59:56]name=ofd_packets/00076967 [21:59:56]NVStorageSaveData ofd_packets/00076967 [21:59:56]File name is /storage/ofd_packets/00076967 [21:59:56]Write 298 bytes [21:59:56]NVStorageSaveData done [21:59:56]OFDSenderStorePacket done [21:59:56]KKMCreateOFDPacket done [21:59:56]NVStorageSaveData kkm_last_timestamp [21:59:56]File name is /storage/kkm_last_timestamp [21:59:56]Write 4 bytes [21:59:56]NVStorageSaveData done [21:59:56]ExternCall_PrintAddStr [21:59:56]wPrintStart [21:59:56]Write to MH i2c: 01 00 00 09 17 20 [21:59:56]Write i2c OK [21:59:56]MH_I2C_Read... [21:59:56]Read from MH i2c: 01 [21:59:56]MH_I2C_Read... [21:59:56]Read from MH i2c: 01 07 00 [21:59:56]MH_I2C_Read... [21:59:56]Read from MH i2c: 01 07 00 09 17 00 00 00 00 00 FF 0F 35 [21:59:56]RasterBufferAndPrint [21:59:56]line Счет N : (1)191515 [21:59:56]line ИНН: 02508201610067 [21:59:56]line Контрольно-Кассовый Чек [21:59:56]line ПРОДАЖА [21:59:56]line ТРК (МРК, ГНК) : 23 [21:59:56]line Товар: 2710194210 [21:59:56]line ДТ-К-5 [21:59:56]line 13.720 * 72.90 [21:59:56]line = 1000.19 [21:59:56]line НДС 12% НСП 1% [21:59:56]line > о реализуемом товаре [21:59:56]line ОКРУГЛЕНИЕ: -0.19 [21:59:56]line ИТОГО: 1000.00 [21:59:56]line Внесено: 1000.00 [21:59:56]line СДАЧА: 0.00 [21:59:56]line НСП 1% : 8.85 [21:59:56]line НДС 12% : 106.21 [21:59:56]line Наличными: 1000.00 [21:59:56]line Безнал.: 0.00 [21:59:56]line Место: АЗС № 106 "Партнер Нефть" [21:59:56]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [21:59:56]line СНО: Общий режим [21:59:56]line Чек 223 21.04.2024 21:59 [21:59:56]line Смена: 372 ФФД: 1.0 [21:59:56]line ЗНМ: 0300000141 [21:59:56]line РНМ: 0000000000091573 [21:59:56]line Версия ККМ: 001 [21:59:56]line ФМ: 0000000000874652 [21:59:56]line ФД: 76967 [21:59:56]line ФПД: 263456404319108 [21:59:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T215956&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76967&fm=263456404319108&tin=02508201610067®Number=0000000000091573&sum=100000 [21:59:57]OFD Sender: Processing packet 76967 [packets to send 129, broken 128] [21:59:57]ProducePacketName [21:59:57]name=ofd_packets/00076967 [21:59:57]OFD Sender: To server: pG, [21:59:57]CommunicateWithHost lk.salyk.kg:30040 [21:59:57]ConnectInit lk.salyk.kg [21:59:57]written 0, free lines is 4095 [21:59:57]Connected sock=10 [21:59:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 BD FC 04 01 BE B6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 5C 8C 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A7 2C 01 00 35 04 06 00 EF 9C B9 64 AB 84 7A 9E FB AC ED 77 30 23 [21:59:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 92 3B 47 00 3B 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A7 2C 01 00 F4 03 04 00 E0 33 25 66 B6 04 01 00 00 1D E9 54 B8 47 10 DF 74 [21:59:57]CommunicateWithHost err = 0 [21:59:57]CheckOFDResponse [21:59:57]1017 (14) - 77093643461234 [21:59:57]1041 (16) - 0000000000874652 [21:59:57]1040 (4) - 76967 [21:59:57]1012 (4) - 21.04.2024 15:42 [21:59:57]1206 (1) - 0 [21:59:57]OFD Sender: Remove packet 76967 [21:59:57]ProducePacketName [21:59:57]name=ofd_packets/00076967 [21:59:57]NVStorageDeleteData [21:59:57]Write to MH i2c: 01 00 00 33 17 4A [21:59:57]Write i2c OK [21:59:57]MH_I2C_Read... [21:59:57]Read from MH i2c: 01 [21:59:57]MH_I2C_Read... [21:59:57]Read from MH i2c: 01 07 00 [21:59:57]MH_I2C_Read... [21:59:57]Read from MH i2c: 01 07 00 33 17 00 00 00 00 00 E4 0C 41 [21:59:57]RasterBufferAndPrint [21:59:57]line [21:59:57]line [21:59:57]line [21:59:57]line [21:59:57]line [21:59:57]written 0, free lines is 3306 [21:59:57]MH_Cut [21:59:57]Write to MH i2c: D1 01 00 3A 17 01 23 [21:59:57]Write i2c OK [21:59:57]MH_I2C_Read... [21:59:57]Read from MH i2c: D1 [21:59:57]MH_I2C_Read... [21:59:57]Read from MH i2c: D1 01 00 [21:59:57]MH_I2C_Read... [21:59:57]Read from MH i2c: D1 01 00 3A 17 00 22 [21:59:57]Write to MH i2c: 01 00 00 3B 17 52 [21:59:57]Write i2c OK [21:59:57]MH_I2C_Read... [21:59:57]OFD Sender: No OFD packet to send [21:59:58]*** Cut start [21:59:58]*** Partial cut [21:59:58]*** CUTSNS_PIN = 1 [21:59:58]*** CUTSNS_PIN = 0 [21:59:58]*** Brake cut motor [21:59:58]Read from MH i2c: 01 [21:59:58]MH_I2C_Read... [21:59:58]*** Stop cut motor [21:59:58]*** Cut end [21:59:58]Read from MH i2c: 01 07 00 [21:59:58]MH_I2C_Read... [21:59:58]Read from MH i2c: 01 07 00 3B 17 00 00 00 00 00 FF 0F 67 [21:59:58]process_action close_receipt done [21:59:58]requested_data is exist [21:59:58]produce_requested_data [21:59:58]requested_item fm.sn is exist - process it [21:59:58]wFMCommunicate request_size=4 [21:59:58]MH_SAM_APDU [21:59:58]CAPDU: 80 11 00 00 [21:59:58]Write to MH i2c: E2 08 00 3C 17 80 11 00 00 00 00 00 00 CD [21:59:58]Write i2c OK [21:59:58]MH_I2C_Read... [21:59:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:59:58]Read from MH i2c: E2 [21:59:58]MH_I2C_Read... [21:59:58]Read from MH i2c: E2 17 00 [21:59:58]MH_I2C_Read... [21:59:58]Read from MH i2c: E2 17 00 3C 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 20 [21:59:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:59:58]wFMCommunicate OK [21:59:58]requested_item fd.num is exist - process it [21:59:58]SAM_PROTO_GetFieldsCounters [21:59:58]wFMCommunicate request_size=4 [21:59:58]MH_SAM_APDU [21:59:58]CAPDU: 80 13 00 00 [21:59:58]Write to MH i2c: E2 08 00 3D 17 80 13 00 00 00 00 00 00 D0 [21:59:58]Write i2c OK [21:59:58]MH_I2C_Read... [21:59:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:59:59]Read from MH i2c: E2 [21:59:59]MH_I2C_Read... [21:59:59]Read from MH i2c: E2 62 00 [21:59:59]MH_I2C_Read... [21:59:59]Read from MH i2c: E2 62 00 3D 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 A7 2C 01 00 0E 04 04 00 74 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 D7 [21:59: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 A7 2C 01 00 0E 04 04 00 74 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 [21:59:59]wFMCommunicate OK [21:59:59]SAM_PROTO_GetFieldsCounters done [21:59:59]requested_item shift.num is exist - process it [21:59:59]requested_item shift.opened is exist - process it [21:59:59]req_shift_opened [21:59:59]FM_GetShiftState [21:59:59]SAM_PROTO_GetShiftState [21:59:59]wFMCommunicate request_size=4 [21:59:59]MH_SAM_APDU [21:59:59]CAPDU: 80 13 01 00 [21:59:59]Write to MH i2c: E2 08 00 3E 17 80 13 01 00 00 00 00 00 D2 [21:59:59]Write i2c OK [21:59:59]MH_I2C_Read... [21:59:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:59:59]Read from MH i2c: E2 [21:59:59]MH_I2C_Read... [21:59:59]Read from MH i2c: E2 0E 00 [21:59:59]MH_I2C_Read... [21:59:59]Read from MH i2c: E2 0E 00 3E 17 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 19 [21:59:59]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [21:59:59]wFMCommunicate OK [21:59:59]SAM_PROTO_GetShiftState done [21:59:59]FM_GetShiftState done [21:59:59]req_shift_opened done [21:59:59]requested_item shift.open_date is exist - process it [21:59:59]req_shift_open_date [21:59:59]req_shift_open_date done [21:59:59]produce_requested_data done [21:59:59]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76967,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [21:59:59]process_action_free close_receipt [21:59:59]json_value_free [21:59:59]json_value_free done [21:59:59]process_json_proto returns [21:59:59]Send response to host [21:59:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76967,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [21:59:59]free response buf [21:59:59]execute_script done [21:59:59]execute_script returns [21:59:59]free content buf [21:59:59]Sock 9.Close socket [21:59:59]Sock 9.Thread stoped [22:00:02]OFD Sender: No OFD packet to send [22:00:07]OFD Sender: No OFD packet to send [22:00:12]OFD Sender: No OFD packet to send [22:00:17]OFD Sender: No OFD packet to send [22:00:22]OFD Sender: No OFD packet to send [22:00:27]OFD Sender: No OFD packet to send [22:00:32]OFD Sender: No OFD packet to send [22:00:37]OFD Sender: No OFD packet to send [22:00:42]OFD Sender: No OFD packet to send [22:00:47]OFD Sender: No OFD packet to send [22:00:52]OFD Sender: No OFD packet to send [22:00:57]OFD Sender: No OFD packet to send [22:01:02]OFD Sender: No OFD packet to send [22:01:07]OFD Sender: No OFD packet to send [22:01:12]OFD Sender: No OFD packet to send [22:01:17]OFD Sender: No OFD packet to send [22:01:22]OFD Sender: No OFD packet to send [22:01:27]OFD Sender: No OFD packet to send [22:01:32]OFD Sender: No OFD packet to send [22:01:37]OFD Sender: No OFD packet to send [22:01:42]OFD Sender: No OFD packet to send [22:01:48]OFD Sender: No OFD packet to send [22:01:53]OFD Sender: No OFD packet to send [22:01:58]OFD Sender: No OFD packet to send [22:02:03]OFD Sender: No OFD packet to send [22:02:08]OFD Sender: No OFD packet to send [22:02:13]OFD Sender: No OFD packet to send [22:02:18]OFD Sender: No OFD packet to send [22:02:23]OFD Sender: No OFD packet to send [22:02:28]OFD Sender: No OFD packet to send [22:02:33]OFD Sender: No OFD packet to send [22:02:38]OFD Sender: No OFD packet to send [22:02:43]OFD Sender: No OFD packet to send [22:02:48]OFD Sender: No OFD packet to send [22:02:53]OFD Sender: No OFD packet to send [22:02:58]OFD Sender: No OFD packet to send [22:03:03]OFD Sender: No OFD packet to send [22:03:08]OFD Sender: No OFD packet to send [22:03:13]OFD Sender: No OFD packet to send [22:03:18]OFD Sender: No OFD packet to send [22:03:23]OFD Sender: No OFD packet to send [22:03:28]OFD Sender: No OFD packet to send [22:03:33]OFD Sender: No OFD packet to send [22:03:38]OFD Sender: No OFD packet to send [22:03:43]OFD Sender: No OFD packet to send [22:03:48]OFD Sender: No OFD packet to send [22:03:53]OFD Sender: No OFD packet to send [22:03:58]OFD Sender: No OFD packet to send [22:04:03]OFD Sender: No OFD packet to send [22:04:08]OFD Sender: No OFD packet to send [22:04:13]OFD Sender: No OFD packet to send [22:04:18]OFD Sender: No OFD packet to send [22:04:23]OFD Sender: No OFD packet to send [22:04:28]OFD Sender: No OFD packet to send [22:04:33]OFD Sender: No OFD packet to send [22:04:38]OFD Sender: No OFD packet to send [22:04:43]OFD Sender: No OFD packet to send [22:04:48]OFD Sender: No OFD packet to send [22:04:53]OFD Sender: No OFD packet to send [22:04:58]OFD Sender: No OFD packet to send [22:05:03]OFD Sender: No OFD packet to send [22:05:08]OFD Sender: No OFD packet to send [22:05:13]OFD Sender: No OFD packet to send [22:05:18]OFD Sender: No OFD packet to send [22:05:23]OFD Sender: No OFD packet to send [22:05:28]OFD Sender: No OFD packet to send [22:05:33]OFD Sender: No OFD packet to send [22:05:38]OFD Sender: No OFD packet to send [22:05:43]OFD Sender: No OFD packet to send [22:05:48]OFD Sender: No OFD packet to send [22:05:53]OFD Sender: No OFD packet to send [22:05:58]OFD Sender: No OFD packet to send [22:06:03]OFD Sender: No OFD packet to send [22:06:08]OFD Sender: No OFD packet to send [22:06:13]OFD Sender: No OFD packet to send [22:06:18]OFD Sender: No OFD packet to send [22:06:23]OFD Sender: No OFD packet to send [22:06:28]OFD Sender: No OFD packet to send [22:06:33]OFD Sender: No OFD packet to send [22:06:38]OFD Sender: No OFD packet to send [22:06:43]OFD Sender: No OFD packet to send [22:06:48]OFD Sender: No OFD packet to send [22:06:53]OFD Sender: No OFD packet to send [22:06:58]OFD Sender: No OFD packet to send [22:07:03]OFD Sender: No OFD packet to send [22:07:08]OFD Sender: No OFD packet to send [22:07:13]OFD Sender: No OFD packet to send [22:07:18]OFD Sender: No OFD packet to send [22:07:23]OFD Sender: No OFD packet to send [22:07:28]OFD Sender: No OFD packet to send [22:07:33]OFD Sender: No OFD packet to send [22:07:38]OFD Sender: No OFD packet to send [22:07:43]OFD Sender: No OFD packet to send [22:07:48]OFD Sender: No OFD packet to send [22:07:53]OFD Sender: No OFD packet to send [22:07:58]OFD Sender: No OFD packet to send [22:08:03]OFD Sender: No OFD packet to send [22:08:08]OFD Sender: No OFD packet to send [22:08:13]OFD Sender: No OFD packet to send [22:08:18]OFD Sender: No OFD packet to send [22:08:23]OFD Sender: No OFD packet to send [22:08:28]OFD Sender: No OFD packet to send [22:08:33]OFD Sender: No OFD packet to send [22:08:38]OFD Sender: No OFD packet to send [22:08:43]OFD Sender: No OFD packet to send [22:08:48]OFD Sender: No OFD packet to send [22:08:53]OFD Sender: No OFD packet to send [22:08:58]OFD Sender: No OFD packet to send [22:09:03]OFD Sender: No OFD packet to send [22:09:08]OFD Sender: No OFD packet to send [22:09:13]OFD Sender: No OFD packet to send [22:09:18]OFD Sender: No OFD packet to send [22:09:23]OFD Sender: No OFD packet to send [22:09:28]OFD Sender: No OFD packet to send [22:09:33]OFD Sender: No OFD packet to send [22:09:38]OFD Sender: No OFD packet to send [22:09:43]OFD Sender: No OFD packet to send [22:09:48]OFD Sender: No OFD packet to send [22:09:53]OFD Sender: No OFD packet to send [22:09:58]OFD Sender: No OFD packet to send [22:10: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]accept exits with 8 [22:11:48]New connection [22:11:48]New thread 3066944868 created [22:11:48]Thread 3066801508 joined [22:11:48]Waiting for new connection... [22:11:48] Sock 8.Parse request [22:11:48]Sock 8.Check first char [22:11:48]Sock 8.First char is OK [22:11:48]request: POST /json_proto HTTP/1.0 [22:11:48]Method: POST [22:11:48]URL: /json_proto [22:11:48]Method is POST - this is cgi request [22:11:48]url: /json_proto [22:11:48]query_string will be loaded in cgi processing [22:11:48]execute_cgi json_proto POST (null) [22:11:48]execute_cgi path=json_proto method=POST [22:11:48]POST find Content-Length [22:11:48]Host: 172.17.62.5:8080 [22:11:48]Content-Length: 677 [22:11:48]Content-Type: application/json [22:11:48] [22:11:48]POST finish read [22:11:48]Found Content-Length = 677 [22:11:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191516", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 4.660, "sum" : 300.10, "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" ] } } [22:11:48]execute_script... [22:11: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)191516", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 4.660, "sum" : 300.10, "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" ] } } [22:11:48]POST & json_proto [22:11:48]process_json_proto [22:11:48]json parsed OK: [22:11:48]protocol is kg_v1.0 [22:11:48]action value=close_receipt [22:11:48]process_action close_receipt [22:11:48]cmd_close_receipt [22:11:48]MH_GetDate [22:11:48]Write to MH i2c: F0 00 00 3F 17 45 [22:11:48]Write i2c OK [22:11:48]MH_I2C_Read... [22:11:48]Read from MH i2c: F0 [22:11:48]MH_I2C_Read... [22:11:48]Read from MH i2c: F0 09 00 [22:11:48]MH_I2C_Read... [22:11:48]Read from MH i2c: F0 09 00 3F 17 00 25 8F 25 66 F4 E9 65 64 33 [22:11:48]GetLastDocTimeStamp 1713736796 [22:11:48]current date 1713737509 [22:11:48]FM_GetShiftState [22:11:48]SAM_PROTO_GetShiftState [22:11:48]wFMCommunicate request_size=4 [22:11:48]MH_SAM_APDU [22:11:48]CAPDU: 80 13 01 00 [22:11:48]Write to MH i2c: E2 08 00 40 17 80 13 01 00 00 00 00 00 D4 [22:11:48]Write i2c OK [22:11:48]MH_I2C_Read... [22:11:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:48]Read from MH i2c: E2 [22:11:48]MH_I2C_Read... [22:11:48]Read from MH i2c: E2 0E 00 [22:11:48]MH_I2C_Read... [22:11:48]Read from MH i2c: E2 0E 00 40 17 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 1B [22:11:48]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [22:11:48]wFMCommunicate OK [22:11:48]SAM_PROTO_GetShiftState done [22:11:48]FM_GetShiftState done [22:11:48]opened in 1713658965 [22:11:48]opened+sec_in_day 1713745365 [22:11:48]quantity*price = 30010 [22:11:48]sum+1 = 30011 [22:11:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 224 21.04.2024 22:11 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76968 ФПД: 84744739664289 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T221149&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76968&fm=84744739664289&tin=02508201610067®Number=0000000000091573&sum=30000 [22:11:49]StoreToDocumentArchive [22:11:49]shift 372 fd 76968 [22:11:49]save to /storage/0372/doc_00076968 [22:11:49]save last doc name /storage/0372/doc_00076968 to /storage/kkm_last_doc_name [22:11:49]save OK [22:11:49]Clear old archive folders... [22:11:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:11:49]tlvbuf is B6EBF3D0 [22:11:49]SAM_PROTO_ClearQueue [22:11:49]wFMCommunicate request_size=4 [22:11:49]MH_SAM_APDU [22:11:49]CAPDU: 80 09 00 00 [22:11:49]Write to MH i2c: E2 08 00 4D 17 80 09 00 00 00 00 00 00 D6 [22:11:49]Write i2c OK [22:11:49]MH_I2C_Read... [22:11:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:11:49]Read from MH i2c: E2 [22:11:49]MH_I2C_Read... [22:11:49]Read from MH i2c: E2 03 00 [22:11:49]MH_I2C_Read... [22:11:49]Read from MH i2c: E2 03 00 4D 17 00 90 00 D8 [22:11:49]RAPDU: 90 00 [22:11:49]wFMCommunicate OK [22:11:49]SAM_PROTO_ClearQueue done [22:11:49]KKMCreateOFDPacket [22:11:49]OFDProtocolAddRootSTLVToBuf [22:11:49]FM_MakeSignedData [22:11:49]FM_MakeSignedData [22:11:49]SAM_PROTO_SignData [22:11:49]wFMCommunicate request_size=4 [22:11:49]MH_SAM_APDU [22:11:49]CAPDU: 80 0D 01 02 [22:11:49]Write to MH i2c: E2 08 00 4E 17 80 0D 01 02 00 00 00 00 DE [22:11:49]Write i2c OK [22:11:49]MH_I2C_Read... [22:11:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:11:49]Read from MH i2c: E2 [22:11:49]MH_I2C_Read... [22:11:49]Read from MH i2c: E2 03 00 [22:11:49]MH_I2C_Read... [22:11:49]Read from MH i2c: E2 03 00 4E 17 00 90 00 D9 [22:11:49]RAPDU: 90 00 [22:11:49]wFMCommunicate OK [22:11:49]wFMCommunicate request_size=255 [22:11:49]MH_SAM_APDU [22:11:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 E0 00 00 00 F4 03 04 00 25 8F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A8 2C 01 00 35 04 06 00 4D [22:11:49]Write to MH i2c: E2 02 01 4F 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 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 E0 00 00 00 F4 03 04 00 25 8F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A8 2C 01 00 35 04 06 00 4D 00 00 A8 [22:11:49]Write i2c OK [22:11:49]MH_I2C_Read... [22:11:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:49]Read from MH i2c: E2 [22:11:49]MH_I2C_Read... [22:11:49]Read from MH i2c: E2 03 00 [22:11:49]MH_I2C_Read... [22:11:49]Read from MH i2c: E2 03 00 4F 17 00 90 00 DA [22:11:49]RAPDU: 90 00 [22:11:49]wFMCommunicate OK [22:11:49]wFMCommunicate request_size=10 [22:11:49]MH_SAM_APDU [22:11:49]CAPDU: 80 0D 02 02 05 13 2C 1A B1 A1 [22:11:49]Write to MH i2c: E2 0D 00 50 17 80 0D 02 02 05 00 13 2C 1A B1 A1 00 00 96 [22:11:49]Write i2c OK [22:11:49]MH_I2C_Read... [22:11:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:49]Read from MH i2c: E2 [22:11:49]MH_I2C_Read... [22:11:49]Read from MH i2c: E2 03 00 [22:11:49]MH_I2C_Read... [22:11:49]Read from MH i2c: E2 03 00 50 17 00 90 00 DB [22:11:49]RAPDU: 90 00 [22:11:49]wFMCommunicate OK [22:11:49]wFMCommunicate request_size=4 [22:11:49]MH_SAM_APDU [22:11:49]CAPDU: 80 0D 03 02 [22:11:49]Write to MH i2c: E2 08 00 51 17 80 0D 03 02 00 00 00 00 E3 [22:11:49]Write i2c OK [22:11:49]MH_I2C_Read... [22:11:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:11:49]Read from MH i2c: E2 [22:11:49]MH_I2C_Read... [22:11:49]Read from MH i2c: E2 0B 00 [22:11:49]MH_I2C_Read... [22:11:49]Read from MH i2c: E2 0B 00 51 17 00 6A BB 94 D1 8E D6 65 50 90 00 87 [22:11:49]RAPDU: 6A BB 94 D1 8E D6 65 50 90 00 [22:11:49]wFMCommunicate OK [22:11:49]SAM_PROTO_SignData done [22:11:49]FM_MakeSignedData done [22:11:49]CreateOFDProtocolMessage [22:11:49]wFMCommunicate request_size=4 [22:11:49]MH_SAM_APDU [22:11:49]CAPDU: 80 11 00 00 [22:11:49]Write to MH i2c: E2 08 00 52 17 80 11 00 00 00 00 00 00 E3 [22:11:49]Write i2c OK [22:11:49]MH_I2C_Read... [22:11:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:50]Read from MH i2c: E2 [22:11:50]MH_I2C_Read... [22:11:50]Read from MH i2c: E2 17 00 [22:11:50]MH_I2C_Read... [22:11:50]Read from MH i2c: E2 17 00 52 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 36 [22:11:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [22:11:50]wFMCommunicate OK [22:11:50]CreateOFDProtocolMessage done [22:11:50]OFDSenderStorePacket 76968 [22:11:50]StoreOFDPacket docnum=76968 [22:11:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 9A 21 07 01 C0 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 E0 00 00 00 F4 03 04 00 25 8F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A8 2C 01 00 35 04 06 00 4D 13 2C 1A B1 A1 6A BB 94 D1 8E D6 65 50 [22:11:50]CheckFolder [22:11:50]dirname=/storage/ofd_packets [22:11:50]CheckFolder done [22:11:50]ProducePacketName [22:11:50]name=ofd_packets/00076968 [22:11:50]NVStorageSaveData ofd_packets/00076968 [22:11:50]File name is /storage/ofd_packets/00076968 [22:11:50]Write 301 bytes [22:11:50]NVStorageSaveData done [22:11:50]OFDSenderStorePacket done [22:11:50]KKMCreateOFDPacket done [22:11:50]NVStorageSaveData kkm_last_timestamp [22:11:50]File name is /storage/kkm_last_timestamp [22:11:50]Write 4 bytes [22:11:50]NVStorageSaveData done [22:11:50]ExternCall_PrintAddStr [22:11:50]wPrintStart [22:11:50]Write to MH i2c: 01 00 00 53 17 6A [22:11:50]Write i2c OK [22:11:50]MH_I2C_Read... [22:11:50]Read from MH i2c: 01 [22:11:50]MH_I2C_Read... [22:11:50]Read from MH i2c: 01 07 00 [22:11:50]MH_I2C_Read... [22:11:50]Read from MH i2c: 01 07 00 53 17 00 00 00 00 00 FF 0F 7F [22:11:50]RasterBufferAndPrint [22:11:50]line Счет N : (1)191516 [22:11:50]line ИНН: 02508201610067 [22:11:50]line Контрольно-Кассовый Чек [22:11:50]line ПРОДАЖА [22:11:50]line ТРК (МРК, ГНК) : 33 [22:11:50]line Товар: 2710124130 [22:11:50]line Аи-92-К-5 [22:11:50]line 4.660 * 64.40 [22:11:50]line = 300.10 [22:11:50]line НДС 12% НСП 1% [22:11:50]line > о реализуемом товаре [22:11:50]line ОКРУГЛЕНИЕ: -0.10 [22:11:50]line ИТОГО: 300.00 [22:11:50]line Внесено: 300.00 [22:11:50]line СДАЧА: 0.00 [22:11:50]line НСП 1% : 2.66 [22:11:50]line НДС 12% : 31.87 [22:11:50]line Наличными: 300.00 [22:11:50]line Безнал.: 0.00 [22:11:50]line Место: АЗС № 106 "Партнер Нефть" [22:11:50]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [22:11:50]line СНО: Общий режим [22:11:50]line Чек 224 21.04.2024 22:11 [22:11:50]line Смена: 372 ФФД: 1.0 [22:11:50]line ЗНМ: 0300000141 [22:11:50]line РНМ: 0000000000091573 [22:11:50]line Версия ККМ: 001 [22:11:50]line ФМ: 0000000000874652 [22:11:50]line ФД: 76968 [22:11:50]line ФПД: 84744739664289 [22:11:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T221149&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76968&fm=84744739664289&tin=02508201610067®Number=0000000000091573&sum=30000 [22:11:50]written 0, free lines is 4095 [22:11:50]OFD Sender: Processing packet 76968 [packets to send 129, broken 128] [22:11:50]ProducePacketName [22:11:50]name=ofd_packets/00076968 [22:11:50]OFD Sender: To server: pG, [22:11:50]CommunicateWithHost lk.salyk.kg:30040 [22:11:50]ConnectInit lk.salyk.kg [22:11:50]Connected sock=11 [22:11:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 9A 21 07 01 C0 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 E0 00 00 00 F4 03 04 00 25 8F 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A8 2C 01 00 35 04 06 00 4D 13 2C 1A B1 A1 6A BB 94 D1 8E D6 65 50 [22:11:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 13 DA 47 00 DA 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 34 36 35 32 10 04 04 00 A8 2C 01 00 F4 03 04 00 A9 36 25 66 B6 04 01 00 00 50 BB 48 E9 41 BB 71 F3 [22:11:50]CommunicateWithHost err = 0 [22:11:50]CheckOFDResponse [22:11:50]1017 (14) - 77093643461234 [22:11:50]1041 (16) - 0000000000874652 [22:11:50]1040 (4) - 76968 [22:11:50]1012 (4) - 21.04.2024 15:54 [22:11:50]1206 (1) - 0 [22:11:50]OFD Sender: Remove packet 76968 [22:11:50]ProducePacketName [22:11:50]name=ofd_packets/00076968 [22:11:50]NVStorageDeleteData [22:11:50]Write to MH i2c: 01 00 00 7D 17 94 [22:11:50]Write i2c OK [22:11:50]MH_I2C_Read... [22:11:50]Read from MH i2c: 01 [22:11:50]MH_I2C_Read... [22:11:50]Read from MH i2c: 01 07 00 [22:11:50]MH_I2C_Read... [22:11:50]Read from MH i2c: 01 07 00 7D 17 00 00 00 00 00 EB 0C 92 [22:11:50]RasterBufferAndPrint [22:11:50]line [22:11:50]line [22:11:50]line [22:11:50]line [22:11:50]line [22:11:50]written 0, free lines is 3313 [22:11:50]MH_Cut [22:11:50]Write to MH i2c: D1 01 00 84 17 01 6D [22:11:50]Write i2c OK [22:11:50]MH_I2C_Read... [22:11:50]Read from MH i2c: D1 [22:11:50]MH_I2C_Read... [22:11:50]Read from MH i2c: D1 01 00 [22:11:50]MH_I2C_Read... [22:11:50]Read from MH i2c: D1 01 00 84 17 00 6C [22:11:50]Write to MH i2c: 01 00 00 85 17 9C [22:11:50]Write i2c OK [22:11:50]MH_I2C_Read... [22:11:51]OFD Sender: No OFD packet to send [22:11:51]*** Cut start [22:11:51]*** Partial cut [22:11:51]*** CUTSNS_PIN = 1 [22:11:51]*** CUTSNS_PIN = 0 [22:11:51]*** Brake cut motor [22:11:51]Read from MH i2c: 01 [22:11:51]MH_I2C_Read... [22:11:51]*** Stop cut motor [22:11:51]*** Cut end [22:11:51]Read from MH i2c: 01 07 00 [22:11:51]MH_I2C_Read... [22:11:51]Read from MH i2c: 01 07 00 85 17 00 00 00 00 00 FF 0F B1 [22:11:51]process_action close_receipt done [22:11:51]requested_data is exist [22:11:51]produce_requested_data [22:11:51]requested_item fm.sn is exist - process it [22:11:51]wFMCommunicate request_size=4 [22:11:51]MH_SAM_APDU [22:11:51]CAPDU: 80 11 00 00 [22:11:51]Write to MH i2c: E2 08 00 86 17 80 11 00 00 00 00 00 00 17 [22:11:51]Write i2c OK [22:11:51]MH_I2C_Read... [22:11:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:51]Read from MH i2c: E2 [22:11:51]MH_I2C_Read... [22:11:51]Read from MH i2c: E2 17 00 [22:11:51]MH_I2C_Read... [22:11:51]Read from MH i2c: E2 17 00 86 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 6A [22:11:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [22:11:51]wFMCommunicate OK [22:11:51]requested_item fd.num is exist - process it [22:11:51]SAM_PROTO_GetFieldsCounters [22:11:51]wFMCommunicate request_size=4 [22:11:51]MH_SAM_APDU [22:11:51]CAPDU: 80 13 00 00 [22:11:51]Write to MH i2c: E2 08 00 87 17 80 13 00 00 00 00 00 00 1A [22:11:51]Write i2c OK [22:11:51]MH_I2C_Read... [22:11:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:11:52]Read from MH i2c: E2 [22:11:52]MH_I2C_Read... [22:11:52]Read from MH i2c: E2 62 00 [22:11:52]MH_I2C_Read... [22:11:52]Read from MH i2c: E2 62 00 87 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 A8 2C 01 00 0E 04 04 00 74 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 25 [22:11: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 A8 2C 01 00 0E 04 04 00 74 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 [22:11:52]wFMCommunicate OK [22:11:52]SAM_PROTO_GetFieldsCounters done [22:11:52]requested_item shift.num is exist - process it [22:11:52]requested_item shift.opened is exist - process it [22:11:52]req_shift_opened [22:11:52]FM_GetShiftState [22:11:52]SAM_PROTO_GetShiftState [22:11:52]wFMCommunicate request_size=4 [22:11:52]MH_SAM_APDU [22:11:52]CAPDU: 80 13 01 00 [22:11:52]Write to MH i2c: E2 08 00 88 17 80 13 01 00 00 00 00 00 1C [22:11:52]Write i2c OK [22:11:52]MH_I2C_Read... [22:11:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:52]Read from MH i2c: E2 [22:11:52]MH_I2C_Read... [22:11:52]Read from MH i2c: E2 0E 00 [22:11:52]MH_I2C_Read... [22:11:52]Read from MH i2c: E2 0E 00 88 17 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 63 [22:11:52]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [22:11:52]wFMCommunicate OK [22:11:52]SAM_PROTO_GetShiftState done [22:11:52]FM_GetShiftState done [22:11:52]req_shift_opened done [22:11:52]requested_item shift.open_date is exist - process it [22:11:52]req_shift_open_date [22:11:52]req_shift_open_date done [22:11:52]produce_requested_data done [22:11:52]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76968,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [22:11:52]process_action_free close_receipt [22:11:52]json_value_free [22:11:52]json_value_free done [22:11:52]process_json_proto returns [22:11:52]Send response to host [22:11:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76968,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [22:11:52]free response buf [22:11:52]execute_script done [22:11:52]execute_script returns [22:11:52]free content buf [22:11:52]Sock 8.Close socket [22:11:52]Sock 8.Thread stoped [22:11:56]OFD Sender: No OFD packet to send [22:12:01]OFD Sender: No OFD packet to send [22:12:06]OFD Sender: No OFD packet to send [22:12:11]OFD Sender: No OFD packet to send [22:12:16]OFD Sender: No OFD packet to send [22:12:21]OFD Sender: No OFD packet to send [22:12:26]OFD Sender: No OFD packet to send [22:12:31]OFD Sender: No OFD packet to send [22:12:36]OFD Sender: No OFD packet to send [22:12:41]OFD Sender: No OFD packet to send [22:12:46]OFD Sender: No OFD packet to send [22:12:51]OFD Sender: No OFD packet to send [22:12:56]OFD Sender: No OFD packet to send [22:13:01]OFD Sender: No OFD packet to send [22:13:06]OFD Sender: No OFD packet to send [22:13:11]OFD Sender: No OFD packet to send [22:13:16]OFD Sender: No OFD packet to send [22:13:21]OFD Sender: No OFD packet to send [22:13:26]OFD Sender: No OFD packet to send [22:13:31]OFD Sender: No OFD packet to send [22:13:36]OFD Sender: No OFD packet to send [22:13:41]OFD Sender: No OFD packet to send [22:13:46]OFD Sender: No OFD packet to send [22:13:51]OFD Sender: No OFD packet to send [22:13:56]OFD Sender: No OFD packet to send [22:14:01]OFD Sender: No OFD packet to send [22:14:06]OFD Sender: No OFD packet to send [22:14:11]OFD Sender: No OFD packet to send [22:14:16]OFD Sender: No OFD packet to send [22:14:21]OFD Sender: No OFD packet to send [22:14:26]OFD Sender: No OFD packet to send [22:14:31]OFD Sender: No OFD packet to send [22:14:36]OFD Sender: No OFD packet to send [22:14:41]OFD Sender: No OFD packet to send [22:14:46]OFD Sender: No OFD packet to send [22:14:51]OFD Sender: No OFD packet to send [22:14:56]OFD Sender: No OFD packet to send [22:15:01]OFD Sender: No OFD packet to send [22:15:06]OFD Sender: No OFD packet to send [22:15:11]OFD Sender: No OFD packet to send [22:15:16]OFD Sender: No OFD packet to send [22:15:21]OFD Sender: No OFD packet to send [22:15:26]OFD Sender: No OFD packet to send [22:15:31]OFD Sender: No OFD packet to send [22:15:36]OFD Sender: No OFD packet to send [22:15:41]OFD Sender: No OFD packet to send [22:15:46]OFD Sender: No OFD packet to send [22:15:51]OFD Sender: No OFD packet to send [22:15:56]OFD Sender: No OFD packet to send [22:16:01]OFD Sender: No OFD packet to send [22:16:06]OFD Sender: No OFD packet to send [22:16:11]OFD Sender: No OFD packet to send [22:16:16]OFD Sender: No OFD packet to send [22:16:21]OFD Sender: No OFD packet to send [22:16:26]OFD Sender: No OFD packet to send [22:16:31]OFD Sender: No OFD packet to send [22:16:36]OFD Sender: No OFD packet to send [22:16:41]OFD Sender: No OFD packet to send [22:16:46]OFD Sender: No OFD packet to send [22:16:51]OFD Sender: No OFD packet to send [22:16:56]OFD Sender: No OFD packet to send [22:17:01]OFD Sender: No OFD packet to send [22:17:06]OFD Sender: No OFD packet to send [22:17:11]OFD Sender: No OFD packet to send [22:17:16]OFD Sender: No OFD packet to send [22:17:21]OFD Sender: No OFD packet to send [22:17:26]OFD Sender: No OFD packet to send [22:17:31]OFD Sender: No OFD packet to send [22:17:36]OFD Sender: No OFD packet to send [22:17:41]OFD Sender: No OFD packet to send [22:17:46]OFD Sender: No OFD packet to send [22:17:51]OFD Sender: No OFD packet to send [22:17:56]OFD Sender: No OFD packet to send [22:18:01]OFD Sender: No OFD packet to send [22:18:06]OFD Sender: No OFD packet to send [22:18:11]OFD Sender: No OFD packet to send [22:18:16]OFD Sender: No OFD packet to send [22:18:21]OFD Sender: No OFD packet to send [22:18:26]OFD Sender: No OFD packet to send [22:18:31]OFD Sender: No OFD packet to send [22:18:36]OFD Sender: No OFD packet to send [22:18:41]OFD Sender: No OFD packet to send [22:18:46]OFD Sender: No OFD packet to send [22:18:51]OFD Sender: No OFD packet to send [22:18:56]OFD Sender: No OFD packet to send [22:19:01]OFD Sender: No OFD packet to send [22:19:06]OFD Sender: No OFD packet to send [22:19:11]OFD Sender: No OFD packet to send [22:19:16]OFD Sender: No OFD packet to send [22:19:21]OFD Sender: No OFD packet to send [22:19:26]OFD Sender: No OFD packet to send [22:19:31]OFD Sender: No OFD packet to send [22:19:36]OFD Sender: No OFD packet to send [22:19:41]OFD Sender: No OFD packet to send [22:19:46]OFD Sender: No OFD packet to send [22:19:51]OFD Sender: No OFD packet to send [22:19:56]OFD Sender: No OFD packet to send [22:20:01]OFD Sender: No OFD packet to send [22:20:06]OFD Sender: No OFD packet to send [22:20:11]OFD Sender: No OFD packet to send [22:20:16]OFD Sender: No OFD packet to send [22:20:21]OFD Sender: No OFD packet to send [22:20:26]OFD Sender: No OFD packet to send [22:20:31]OFD Sender: No OFD packet to send [22:20:36]OFD Sender: No OFD packet to send [22:20:41]OFD Sender: No OFD packet to send [22:20:46]OFD Sender: No OFD packet to send [22:20:51]OFD Sender: No OFD packet to send [22:20:56]OFD Sender: No OFD packet to send [22:21:01]OFD Sender: No OFD packet to send [22:21:06]OFD Sender: No OFD packet to send [22:21:11]OFD Sender: No OFD packet to send [22:21:16]OFD Sender: No OFD packet to send [22:21:21]OFD Sender: No OFD packet to send [22:21:26]OFD Sender: No OFD packet to send [22:21:31]OFD Sender: No OFD packet to send [22:21:36]OFD Sender: No OFD packet to send [22:21:41]OFD Sender: No OFD packet to send [22:21:46]OFD Sender: No OFD packet to send [22:21:51]OFD Sender: No OFD packet to send [22:21:56]OFD Sender: No OFD packet to send [22:22:01]OFD Sender: No OFD packet to send [22:22:06]OFD Sender: No OFD packet to send [22:22:11]OFD Sender: No OFD packet to send [22:22:16]OFD Sender: No OFD packet to send [22:22:21]OFD Sender: No OFD packet to send [22:22:26]OFD Sender: No OFD packet to send [22:22:31]OFD Sender: No OFD packet to send [22:22:36]OFD Sender: No OFD packet to send [22:22:41]OFD Sender: No OFD packet to send [22:22:46]OFD Sender: No OFD packet to send [22:22:51]OFD Sender: No OFD packet to send [22:22:56]OFD Sender: No OFD packet to send [22:23:01]OFD Sender: No OFD packet to send [22:23:06]OFD Sender: No OFD packet to send [22:23:11]OFD Sender: No OFD packet to send [22:23:16]OFD Sender: No OFD packet to send [22:23:21]OFD Sender: No OFD packet to send [22:23:26]OFD Sender: No OFD packet to send [22:23:31]OFD Sender: No OFD packet to send [22:23:36]OFD Sender: No OFD packet to send [22:23:41]OFD Sender: No OFD packet to send [22:23:46]OFD Sender: No OFD packet to send [22:23:51]OFD Sender: No OFD packet to send [22:23:56]OFD Sender: No OFD packet to send [22:24:01]OFD Sender: No OFD packet to send [22:24:06]OFD Sender: No OFD packet to send [22:24:11]OFD Sender: No OFD packet to send [22:24:16]OFD Sender: No OFD packet to send [22:24:21]OFD Sender: No OFD packet to send [22:24:26]OFD Sender: No OFD packet to send [22:24:31]OFD Sender: No OFD packet to send [22:24:36]OFD Sender: No OFD packet to send [22:24:41]OFD Sender: No OFD packet to send [22:24:46]OFD Sender: No OFD packet to send [22:24:51]OFD Sender: No OFD packet to send [22:24:56]OFD Sender: No OFD packet to send [22:25:01]OFD Sender: No OFD packet to send [22:25:06]OFD Sender: No OFD packet to send [22:25:11]OFD Sender: No OFD packet to send [22:25:16]OFD Sender: No OFD packet to send [22:25:21]OFD Sender: No OFD packet to send [22:25:26]OFD Sender: No OFD packet to send [22:25:31]OFD Sender: No OFD packet to send [22:25:36]OFD Sender: No OFD packet to send [22:25:41]OFD Sender: No OFD packet to send [22:25:46]OFD Sender: No OFD packet to send [22:25:51]OFD Sender: No OFD packet to send [22:25:57]OFD Sender: No OFD packet to send [22:26:02]OFD Sender: No OFD packet to send [22:26:07]OFD Sender: No OFD packet to send [22:26:12]OFD Sender: No OFD packet to send [22:26:17]OFD Sender: No OFD packet to send [22:26:22]OFD Sender: No OFD packet to send [22:26:27]OFD Sender: No OFD packet to send [22:26:32]OFD Sender: No OFD packet to send [22:26:37]OFD Sender: No OFD packet to send [22:26:42]OFD Sender: No OFD packet to send [22:26:47]OFD Sender: No OFD packet to send [22:26:52]OFD Sender: No OFD packet to send [22:26:57]OFD Sender: No OFD packet to send [22:27:02]OFD Sender: No OFD packet to send [22:27:07]OFD Sender: No OFD packet to send [22:27:12]OFD Sender: No OFD packet to send [22:27:17]OFD Sender: No OFD packet to send [22:27:22]OFD Sender: No OFD packet to send [22:27:27]OFD Sender: No OFD packet to send [22:27:32]OFD Sender: No OFD packet to send [22:27:37]OFD Sender: No OFD packet to send [22:27:42]OFD Sender: No OFD packet to send [22:27:47]OFD Sender: No OFD packet to send [22:27:52]OFD Sender: No OFD packet to send [22:27:57]OFD Sender: No OFD packet to send [22:28:02]OFD Sender: No OFD packet to send [22:28:07]OFD Sender: No OFD packet to send [22:28:12]OFD Sender: No OFD packet to send [22:28:17]OFD Sender: No OFD packet to send [22:28:22]OFD Sender: No OFD packet to send [22:28:27]OFD Sender: No OFD packet to send [22:28:32]OFD Sender: No OFD packet to send [22:28:37]OFD Sender: No OFD packet to send [22:28:42]OFD Sender: No OFD packet to send [22:28:47]OFD Sender: No OFD packet to send [22:28:52]OFD Sender: No OFD packet to send [22:28:57]OFD Sender: No OFD packet to send [22:29:02]OFD Sender: No OFD packet to send [22:29:07]OFD Sender: No OFD packet to send [22:29:12]OFD Sender: No OFD packet to send [22:29:17]OFD Sender: No OFD packet to send [22:29:22]OFD Sender: No OFD packet to send [22:29:27]OFD Sender: No OFD packet to send [22:29:32]OFD Sender: No OFD packet to send [22:29:37]OFD Sender: No OFD packet to send [22:29:42]OFD Sender: No OFD packet to send [22:29:47]OFD Sender: No OFD packet to send [22:29:50]accept exits with 9 [22:29:50]New connection [22:29:50]New thread 3066801508 created [22:29:50]Thread 3066944868 joined [22:29:50]Waiting for new connection... [22:29:50] Sock 9.Parse request [22:29:50]Sock 9.Check first char [22:29:50]Sock 9.First char is OK [22:29:50]request: POST /json_proto HTTP/1.0 [22:29:50]Method: POST [22:29:50]URL: /json_proto [22:29:50]Method is POST - this is cgi request [22:29:50]url: /json_proto [22:29:50]query_string will be loaded in cgi processing [22:29:50]execute_cgi json_proto POST (null) [22:29:50]execute_cgi path=json_proto method=POST [22:29:50]POST find Content-Length [22:29:50]Host: 172.17.62.5:8080 [22:29:50]Content-Length: 682 [22:29:50]Content-Type: application/json [22:29:50] [22:29:50]POST finish read [22:29:50]Found Content-Length = 682 [22:29:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191517", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [22:29:50]execute_script... [22:29: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)191517", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [22:29:50]POST & json_proto [22:29:50]process_json_proto [22:29:50]json parsed OK: [22:29:50]protocol is kg_v1.0 [22:29:50]action value=close_receipt [22:29:50]process_action close_receipt [22:29:50]cmd_close_receipt [22:29:50]MH_GetDate [22:29:50]Write to MH i2c: F0 00 00 89 17 8F [22:29:50]Write i2c OK [22:29:50]MH_I2C_Read... [22:29:50]Read from MH i2c: F0 [22:29:50]MH_I2C_Read... [22:29:50]Read from MH i2c: F0 09 00 [22:29:50]MH_I2C_Read... [22:29:50]Read from MH i2c: F0 09 00 89 17 00 5F 93 25 66 F4 E9 65 64 BB [22:29:50]GetLastDocTimeStamp 1713737509 [22:29:50]current date 1713738591 [22:29:50]FM_GetShiftState [22:29:50]SAM_PROTO_GetShiftState [22:29:50]wFMCommunicate request_size=4 [22:29:50]MH_SAM_APDU [22:29:50]CAPDU: 80 13 01 00 [22:29:50]Write to MH i2c: E2 08 00 8A 17 80 13 01 00 00 00 00 00 1E [22:29:50]Write i2c OK [22:29:50]MH_I2C_Read... [22:29:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:29:50]Read from MH i2c: E2 [22:29:50]MH_I2C_Read... [22:29:50]Read from MH i2c: E2 0E 00 [22:29:50]MH_I2C_Read... [22:29:50]Read from MH i2c: E2 0E 00 8A 17 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 65 [22:29:50]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [22:29:50]wFMCommunicate OK [22:29:50]SAM_PROTO_GetShiftState done [22:29:50]FM_GetShiftState done [22:29:50]opened in 1713658965 [22:29:50]opened+sec_in_day 1713745365 [22:29:50]quantity*price = 100018 [22:29:50]sum+1 = 100020 [22:29:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 225 21.04.2024 22:29 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76969 ФПД: 176199713554055 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T222951&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76969&fm=176199713554055&tin=02508201610067®Number=0000000000091573&sum=100000 [22:29:51]StoreToDocumentArchive [22:29:51]shift 372 fd 76969 [22:29:51]save to /storage/0372/doc_00076969 [22:29:51]save last doc name /storage/0372/doc_00076969 to /storage/kkm_last_doc_name [22:29:51]save OK [22:29:51]Clear old archive folders... [22:29:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:29:51]tlvbuf is 00C67FA0 [22:29:51]SAM_PROTO_ClearQueue [22:29:51]wFMCommunicate request_size=4 [22:29:51]MH_SAM_APDU [22:29:51]CAPDU: 80 09 00 00 [22:29:51]Write to MH i2c: E2 08 00 97 17 80 09 00 00 00 00 00 00 20 [22:29:51]Write i2c OK [22:29:51]MH_I2C_Read... [22:29:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:29:51]Read from MH i2c: E2 [22:29:51]MH_I2C_Read... [22:29:51]Read from MH i2c: E2 03 00 [22:29:51]MH_I2C_Read... [22:29:51]Read from MH i2c: E2 03 00 97 17 00 90 00 22 [22:29:51]RAPDU: 90 00 [22:29:51]wFMCommunicate OK [22:29:51]SAM_PROTO_ClearQueue done [22:29:51]KKMCreateOFDPacket [22:29:51]OFDProtocolAddRootSTLVToBuf [22:29:51]FM_MakeSignedData [22:29:51]FM_MakeSignedData [22:29:51]SAM_PROTO_SignData [22:29:51]wFMCommunicate request_size=4 [22:29:51]MH_SAM_APDU [22:29:51]CAPDU: 80 0D 01 02 [22:29:51]Write to MH i2c: E2 08 00 98 17 80 0D 01 02 00 00 00 00 28 [22:29:51]Write i2c OK [22:29:51]MH_I2C_Read... [22:29:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:29:51]Read from MH i2c: E2 [22:29:51]MH_I2C_Read... [22:29:51]Read from MH i2c: E2 03 00 [22:29:51]MH_I2C_Read... [22:29:51]Read from MH i2c: E2 03 00 98 17 00 90 00 23 [22:29:51]RAPDU: 90 00 [22:29:51]wFMCommunicate OK [22:29:51]wFMCommunicate request_size=255 [22:29:51]MH_SAM_APDU [22:29:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 E1 00 00 00 F4 03 04 00 5F 93 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A9 2C 01 00 35 04 06 00 A0 [22:29:51]Write to MH i2c: E2 02 01 99 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 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 E1 00 00 00 F4 03 04 00 5F 93 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A9 2C 01 00 35 04 06 00 A0 00 00 88 [22:29:51]Write i2c OK [22:29:51]MH_I2C_Read... [22:29:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:29:51]Read from MH i2c: E2 [22:29:51]MH_I2C_Read... [22:29:51]Read from MH i2c: E2 03 00 [22:29:51]MH_I2C_Read... [22:29:51]Read from MH i2c: E2 03 00 99 17 00 90 00 24 [22:29:51]RAPDU: 90 00 [22:29:51]wFMCommunicate OK [22:29:51]wFMCommunicate request_size=10 [22:29:51]MH_SAM_APDU [22:29:51]CAPDU: 80 0D 02 02 05 40 B1 55 FE 87 [22:29:51]Write to MH i2c: E2 0D 00 9A 17 80 0D 02 02 05 00 40 B1 55 FE 87 00 00 00 [22:29:51]Write i2c OK [22:29:51]MH_I2C_Read... [22:29:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:29:51]Read from MH i2c: E2 [22:29:51]MH_I2C_Read... [22:29:51]Read from MH i2c: E2 03 00 [22:29:51]MH_I2C_Read... [22:29:51]Read from MH i2c: E2 03 00 9A 17 00 90 00 25 [22:29:51]RAPDU: 90 00 [22:29:51]wFMCommunicate OK [22:29:51]wFMCommunicate request_size=4 [22:29:51]MH_SAM_APDU [22:29:51]CAPDU: 80 0D 03 02 [22:29:51]Write to MH i2c: E2 08 00 9B 17 80 0D 03 02 00 00 00 00 2D [22:29:51]Write i2c OK [22:29:51]MH_I2C_Read... [22:29:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:29:51]Read from MH i2c: E2 [22:29:51]MH_I2C_Read... [22:29:51]Read from MH i2c: E2 0B 00 [22:29:51]MH_I2C_Read... [22:29:51]Read from MH i2c: E2 0B 00 9B 17 00 D2 B5 7E E7 1A 3E 99 4A 90 00 55 [22:29:51]RAPDU: D2 B5 7E E7 1A 3E 99 4A 90 00 [22:29:51]wFMCommunicate OK [22:29:51]SAM_PROTO_SignData done [22:29:51]FM_MakeSignedData done [22:29:51]CreateOFDProtocolMessage [22:29:51]wFMCommunicate request_size=4 [22:29:51]MH_SAM_APDU [22:29:51]CAPDU: 80 11 00 00 [22:29:51]Write to MH i2c: E2 08 00 9C 17 80 11 00 00 00 00 00 00 2D [22:29:51]Write i2c OK [22:29:51]MH_I2C_Read... [22:29:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:29:51]Read from MH i2c: E2 [22:29:51]MH_I2C_Read... [22:29:51]Read from MH i2c: E2 17 00 [22:29:51]MH_I2C_Read... [22:29:51]Read from MH i2c: E2 17 00 9C 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 80 [22:29:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [22:29:51]wFMCommunicate OK [22:29:51]CreateOFDProtocolMessage done [22:29:51]OFDSenderStorePacket 76969 [22:29:51]StoreOFDPacket docnum=76969 [22:29:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 05 B7 07 01 CB 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 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 E1 00 00 00 F4 03 04 00 5F 93 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A9 2C 01 00 35 04 06 00 A0 40 B1 55 FE 87 D2 B5 7E E7 1A 3E 99 4A [22:29:51]CheckFolder [22:29:51]dirname=/storage/ofd_packets [22:29:51]CheckFolder done [22:29:51]ProducePacketName [22:29:51]name=ofd_packets/00076969 [22:29:51]NVStorageSaveData ofd_packets/00076969 [22:29:51]File name is /storage/ofd_packets/00076969 [22:29:51]Write 301 bytes [22:29:51]NVStorageSaveData done [22:29:51]OFDSenderStorePacket done [22:29:51]KKMCreateOFDPacket done [22:29:51]NVStorageSaveData kkm_last_timestamp [22:29:51]File name is /storage/kkm_last_timestamp [22:29:51]Write 4 bytes [22:29:51]NVStorageSaveData done [22:29:51]ExternCall_PrintAddStr [22:29:51]wPrintStart [22:29:51]Write to MH i2c: 01 00 00 9D 17 B4 [22:29:51]Write i2c OK [22:29:51]MH_I2C_Read... [22:29:51]Read from MH i2c: 01 [22:29:51]MH_I2C_Read... [22:29:51]Read from MH i2c: 01 07 00 [22:29:51]MH_I2C_Read... [22:29:51]Read from MH i2c: 01 07 00 9D 17 00 00 00 00 00 FF 0F C9 [22:29:51]RasterBufferAndPrint [22:29:51]line Счет N : (1)191517 [22:29:51]line ИНН: 02508201610067 [22:29:51]line Контрольно-Кассовый Чек [22:29:51]line ПРОДАЖА [22:29:51]line ТРК (МРК, ГНК) : 42 [22:29:51]line Товар: 2710124500 [22:29:51]line Аи-95-К-5 [22:29:51]line 13.720 * 72.90 [22:29:51]line = 1000.19 [22:29:51]line НДС 12% НСП 1% [22:29:51]line > о реализуемом товаре [22:29:51]line ОКРУГЛЕНИЕ: -0.19 [22:29:51]line ИТОГО: 1000.00 [22:29:51]line Внесено: 1000.00 [22:29:51]line СДАЧА: 0.00 [22:29:51]line НСП 1% : 8.85 [22:29:51]line НДС 12% : 106.21 [22:29:51]line Наличными: 1000.00 [22:29:51]line Безнал.: 0.00 [22:29:51]line Место: АЗС № 106 "Партнер Нефть" [22:29:51]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [22:29:51]line СНО: Общий режим [22:29:51]line Чек 225 21.04.2024 22:29 [22:29:51]line Смена: 372 ФФД: 1.0 [22:29:51]line ЗНМ: 0300000141 [22:29:51]line РНМ: 0000000000091573 [22:29:51]line Версия ККМ: 001 [22:29:51]line ФМ: 0000000000874652 [22:29:51]line ФД: 76969 [22:29:51]line ФПД: 176199713554055 [22:29:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T222951&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76969&fm=176199713554055&tin=02508201610067®Number=0000000000091573&sum=100000 [22:29:52]written 0, free lines is 4095 [22:29:52]OFD Sender: Processing packet 76969 [packets to send 129, broken 128] [22:29:52]ProducePacketName [22:29:52]name=ofd_packets/00076969 [22:29:52]OFD Sender: To server: pG, [22:29:52]CommunicateWithHost lk.salyk.kg:30040 [22:29:52]ConnectInit lk.salyk.kg [22:29:52]Connected sock=10 [22:29:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 05 B7 07 01 CB 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 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 E1 00 00 00 F4 03 04 00 5F 93 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A9 2C 01 00 35 04 06 00 A0 40 B1 55 FE 87 D2 B5 7E E7 1A 3E 99 4A [22:29:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 51 37 47 00 FF 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 34 36 35 32 10 04 04 00 A9 2C 01 00 F4 03 04 00 E3 3A 25 66 B6 04 01 00 00 65 06 76 41 5B EE 13 28 [22:29:52]CommunicateWithHost err = 0 [22:29:52]CheckOFDResponse [22:29:52]1017 (14) - 77093643461234 [22:29:52]1041 (16) - 0000000000874652 [22:29:52]1040 (4) - 76969 [22:29:52]1012 (4) - 21.04.2024 16:12 [22:29:52]1206 (1) - 0 [22:29:52]OFD Sender: Remove packet 76969 [22:29:52]ProducePacketName [22:29:52]name=ofd_packets/00076969 [22:29:52]NVStorageDeleteData [22:29:52]Write to MH i2c: 01 00 00 C7 17 DE [22:29:52]Write i2c OK [22:29:52]MH_I2C_Read... [22:29:52]Read from MH i2c: 01 [22:29:52]MH_I2C_Read... [22:29:52]Read from MH i2c: 01 07 00 [22:29:52]MH_I2C_Read... [22:29:52]Read from MH i2c: 01 07 00 C7 17 00 00 00 00 00 E3 0C D4 [22:29:52]RasterBufferAndPrint [22:29:52]line [22:29:52]line [22:29:52]line [22:29:52]line [22:29:52]line [22:29:52]written 0, free lines is 3305 [22:29:52]MH_Cut [22:29:52]Write to MH i2c: D1 01 00 CE 17 01 B7 [22:29:52]Write i2c OK [22:29:52]MH_I2C_Read... [22:29:52]Read from MH i2c: D1 [22:29:52]MH_I2C_Read... [22:29:52]Read from MH i2c: D1 01 00 [22:29:52]MH_I2C_Read... [22:29:52]Read from MH i2c: D1 01 00 CE 17 00 B6 [22:29:52]Write to MH i2c: 01 00 00 CF 17 E6 [22:29:52]Write i2c OK [22:29:52]MH_I2C_Read... [22:29:53]OFD Sender: No OFD packet to send [22:29:53]*** Cut start [22:29:53]*** Partial cut [22:29:53]*** CUTSNS_PIN = 1 [22:29:53]*** CUTSNS_PIN = 0 [22:29:53]*** Brake cut motor [22:29:53]Read from MH i2c: 01 [22:29:53]MH_I2C_Read... [22:29:53]*** Stop cut motor [22:29:53]*** Cut end [22:29:53]Read from MH i2c: 01 07 00 [22:29:53]MH_I2C_Read... [22:29:53]Read from MH i2c: 01 07 00 CF 17 00 00 00 00 00 FF 0F FB [22:29:53]process_action close_receipt done [22:29:53]requested_data is exist [22:29:53]produce_requested_data [22:29:53]requested_item fm.sn is exist - process it [22:29:53]wFMCommunicate request_size=4 [22:29:53]MH_SAM_APDU [22:29:53]CAPDU: 80 11 00 00 [22:29:53]Write to MH i2c: E2 08 00 D0 17 80 11 00 00 00 00 00 00 61 [22:29:53]Write i2c OK [22:29:53]MH_I2C_Read... [22:29:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:29:54]Read from MH i2c: E2 [22:29:54]MH_I2C_Read... [22:29:54]Read from MH i2c: E2 17 00 [22:29:54]MH_I2C_Read... [22:29:54]Read from MH i2c: E2 17 00 D0 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 B4 [22:29:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [22:29:54]wFMCommunicate OK [22:29:54]requested_item fd.num is exist - process it [22:29:54]SAM_PROTO_GetFieldsCounters [22:29:54]wFMCommunicate request_size=4 [22:29:54]MH_SAM_APDU [22:29:54]CAPDU: 80 13 00 00 [22:29:54]Write to MH i2c: E2 08 00 D1 17 80 13 00 00 00 00 00 00 64 [22:29:54]Write i2c OK [22:29:54]MH_I2C_Read... [22:29:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:29:54]Read from MH i2c: E2 [22:29:54]MH_I2C_Read... [22:29:54]Read from MH i2c: E2 62 00 [22:29:54]MH_I2C_Read... [22:29:54]Read from MH i2c: E2 62 00 D1 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 A9 2C 01 00 0E 04 04 00 74 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 73 [22:29:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 A9 2C 01 00 0E 04 04 00 74 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 [22:29:54]wFMCommunicate OK [22:29:54]SAM_PROTO_GetFieldsCounters done [22:29:54]requested_item shift.num is exist - process it [22:29:54]requested_item shift.opened is exist - process it [22:29:54]req_shift_opened [22:29:54]FM_GetShiftState [22:29:54]SAM_PROTO_GetShiftState [22:29:54]wFMCommunicate request_size=4 [22:29:54]MH_SAM_APDU [22:29:54]CAPDU: 80 13 01 00 [22:29:54]Write to MH i2c: E2 08 00 D2 17 80 13 01 00 00 00 00 00 66 [22:29:54]Write i2c OK [22:29:54]MH_I2C_Read... [22:29:54]Read from MH i2c: E2 [22:29:54]MH_I2C_Read... [22:29:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:29:54]Read from MH i2c: E2 0E 00 [22:29:54]MH_I2C_Read... [22:29:54]Read from MH i2c: E2 0E 00 D2 17 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 AD [22:29:54]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [22:29:54]wFMCommunicate OK [22:29:54]SAM_PROTO_GetShiftState done [22:29:54]FM_GetShiftState done [22:29:54]req_shift_opened done [22:29:54]requested_item shift.open_date is exist - process it [22:29:54]req_shift_open_date [22:29:54]req_shift_open_date done [22:29:54]produce_requested_data done [22:29:54]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76969,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [22:29:54]process_action_free close_receipt [22:29:54]json_value_free [22:29:54]json_value_free done [22:29:54]process_json_proto returns [22:29:54]Send response to host [22:29:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76969,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [22:29:54]free response buf [22:29:54]execute_script done [22:29:54]execute_script returns [22:29:54]free content buf [22:29:54]Sock 9.Close socket [22:29:54]Sock 9.Thread stoped [22:29:58]OFD Sender: No OFD packet to send [22:30:03]OFD Sender: No OFD packet to send [22:30:08]OFD Sender: No OFD packet to send [22:30:13]OFD Sender: No OFD packet to send [22:30:18]OFD Sender: No OFD packet to send [22:30:23]OFD Sender: No OFD packet to send [22:30:28]OFD Sender: No OFD packet to send [22:30:33]OFD Sender: No OFD packet to send [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:22]accept exits with 8 [22:38:22]New connection [22:38:22]New thread 3066944868 created [22:38:22]Thread 3066801508 joined [22:38:22]Waiting for new connection... [22:38:22] Sock 8.Parse request [22:38:22]Sock 8.Check first char [22:38:22]Sock 8.First char is OK [22:38:22]request: POST /json_proto HTTP/1.0 [22:38:22]Method: POST [22:38:22]URL: /json_proto [22:38:22]Method is POST - this is cgi request [22:38:22]url: /json_proto [22:38:22]query_string will be loaded in cgi processing [22:38:22]execute_cgi json_proto POST (null) [22:38:22]execute_cgi path=json_proto method=POST [22:38:22]POST find Content-Length [22:38:22]Host: 172.17.62.5:8080 [22:38:22]Content-Length: 677 [22:38:22]Content-Type: application/json [22:38:22] [22:38:22]POST finish read [22:38:22]Found Content-Length = 677 [22:38:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191518", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 8.390, "sum" : 540.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:38:22]execute_script... [22:38: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)191518", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 8.390, "sum" : 540.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:38:22]POST & json_proto [22:38:22]process_json_proto [22:38:22]json parsed OK: [22:38:22]protocol is kg_v1.0 [22:38:22]action value=close_receipt [22:38:22]process_action close_receipt [22:38:22]cmd_close_receipt [22:38:22]MH_GetDate [22:38:22]Write to MH i2c: F0 00 00 D3 17 D9 [22:38:22]Write i2c OK [22:38:22]MH_I2C_Read... [22:38:22]Read from MH i2c: F0 [22:38:22]MH_I2C_Read... [22:38:22]Read from MH i2c: F0 09 00 [22:38:22]MH_I2C_Read... [22:38:22]Read from MH i2c: F0 09 00 D3 17 00 60 95 25 66 F4 E9 65 64 08 [22:38:22]GetLastDocTimeStamp 1713738591 [22:38:22]current date 1713739104 [22:38:22]FM_GetShiftState [22:38:22]SAM_PROTO_GetShiftState [22:38:22]wFMCommunicate request_size=4 [22:38:22]MH_SAM_APDU [22:38:22]CAPDU: 80 13 01 00 [22:38:22]Write to MH i2c: E2 08 00 D4 17 80 13 01 00 00 00 00 00 68 [22:38:22]Write i2c OK [22:38:22]MH_I2C_Read... [22:38:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:38:22]Read from MH i2c: E2 [22:38:22]MH_I2C_Read... [22:38:22]Read from MH i2c: E2 0E 00 [22:38:22]MH_I2C_Read... [22:38:22]Read from MH i2c: E2 0E 00 D4 17 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 AF [22:38:22]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [22:38:22]wFMCommunicate OK [22:38:22]SAM_PROTO_GetShiftState done [22:38:22]FM_GetShiftState done [22:38:22]opened in 1713658965 [22:38:22]opened+sec_in_day 1713745365 [22:38:22]quantity*price = 54031 [22:38:22]sum+1 = 54033 [22:38:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 540.00 Внесено: 540.00 СДАЧА: 0.00 НСП 1% : 4.78 НДС 12% : 57.38 Наличными: 540.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 226 21.04.2024 22:38 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76970 ФПД: 34724094272683 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T223824&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76970&fm=34724094272683&tin=02508201610067®Number=0000000000091573&sum=54000 [22:38:24]StoreToDocumentArchive [22:38:24]shift 372 fd 76970 [22:38:24]save to /storage/0372/doc_00076970 [22:38:24]save last doc name /storage/0372/doc_00076970 to /storage/kkm_last_doc_name [22:38:24]save OK [22:38:24]Clear old archive folders... [22:38:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:38:24]tlvbuf is B6F53C90 [22:38:24]SAM_PROTO_ClearQueue [22:38:24]wFMCommunicate request_size=4 [22:38:24]MH_SAM_APDU [22:38:24]CAPDU: 80 09 00 00 [22:38:24]Write to MH i2c: E2 08 00 E1 17 80 09 00 00 00 00 00 00 6A [22:38:24]Write i2c OK [22:38:24]MH_I2C_Read... [22:38:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:38:24]Read from MH i2c: E2 [22:38:24]MH_I2C_Read... [22:38:24]Read from MH i2c: E2 03 00 [22:38:24]MH_I2C_Read... [22:38:24]Read from MH i2c: E2 03 00 E1 17 00 90 00 6C [22:38:24]RAPDU: 90 00 [22:38:24]wFMCommunicate OK [22:38:24]SAM_PROTO_ClearQueue done [22:38:24]KKMCreateOFDPacket [22:38:24]OFDProtocolAddRootSTLVToBuf [22:38:24]FM_MakeSignedData [22:38:24]FM_MakeSignedData [22:38:24]SAM_PROTO_SignData [22:38:24]wFMCommunicate request_size=4 [22:38:24]MH_SAM_APDU [22:38:24]CAPDU: 80 0D 01 02 [22:38:24]Write to MH i2c: E2 08 00 E2 17 80 0D 01 02 00 00 00 00 72 [22:38:24]Write i2c OK [22:38:24]MH_I2C_Read... [22:38:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:38:24]Read from MH i2c: E2 [22:38:24]MH_I2C_Read... [22:38:24]Read from MH i2c: E2 03 00 [22:38:24]MH_I2C_Read... [22:38:24]Read from MH i2c: E2 03 00 E2 17 00 90 00 6D [22:38:24]RAPDU: 90 00 [22:38:24]wFMCommunicate OK [22:38:24]wFMCommunicate request_size=255 [22:38:24]MH_SAM_APDU [22:38: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 C6 20 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 10 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 16 00 00 00 00 07 04 06 00 F0 D2 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 60 95 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AA 2C 01 00 35 04 06 00 1F [22:38:24]Write to MH i2c: E2 02 01 E3 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 C6 20 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 10 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 16 00 00 00 00 07 04 06 00 F0 D2 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 60 95 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AA 2C 01 00 35 04 06 00 1F 00 00 36 [22:38:24]Write i2c OK [22:38:24]MH_I2C_Read... [22:38:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:38:24]Read from MH i2c: E2 [22:38:24]MH_I2C_Read... [22:38:24]Read from MH i2c: E2 03 00 [22:38:24]MH_I2C_Read... [22:38:24]Read from MH i2c: E2 03 00 E3 17 00 90 00 6E [22:38:24]RAPDU: 90 00 [22:38:24]wFMCommunicate OK [22:38:24]wFMCommunicate request_size=10 [22:38:24]MH_SAM_APDU [22:38:24]CAPDU: 80 0D 02 02 05 94 D5 4D E4 AB [22:38:24]Write to MH i2c: E2 0D 00 E4 17 80 0D 02 02 05 00 94 D5 4D E4 AB 00 00 C4 [22:38:24]Write i2c OK [22:38:24]MH_I2C_Read... [22:38:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:38:24]Read from MH i2c: E2 [22:38:24]MH_I2C_Read... [22:38:24]Read from MH i2c: E2 03 00 [22:38:24]MH_I2C_Read... [22:38:24]Read from MH i2c: E2 03 00 E4 17 00 90 00 6F [22:38:24]RAPDU: 90 00 [22:38:24]wFMCommunicate OK [22:38:24]wFMCommunicate request_size=4 [22:38:24]MH_SAM_APDU [22:38:24]CAPDU: 80 0D 03 02 [22:38:24]Write to MH i2c: E2 08 00 E5 17 80 0D 03 02 00 00 00 00 77 [22:38:24]Write i2c OK [22:38:24]MH_I2C_Read... [22:38:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:38:24]Read from MH i2c: E2 [22:38:24]MH_I2C_Read... [22:38:24]Read from MH i2c: E2 0B 00 [22:38:24]MH_I2C_Read... [22:38:24]Read from MH i2c: E2 0B 00 E5 17 00 D0 61 CF B3 0A 14 9A 88 90 00 6B [22:38:24]RAPDU: D0 61 CF B3 0A 14 9A 88 90 00 [22:38:24]wFMCommunicate OK [22:38:24]SAM_PROTO_SignData done [22:38:24]FM_MakeSignedData done [22:38:24]CreateOFDProtocolMessage [22:38:24]wFMCommunicate request_size=4 [22:38:24]MH_SAM_APDU [22:38:24]CAPDU: 80 11 00 00 [22:38:24]Write to MH i2c: E2 08 00 E6 17 80 11 00 00 00 00 00 00 77 [22:38:24]Write i2c OK [22:38:24]MH_I2C_Read... [22:38:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:38:24]Read from MH i2c: E2 [22:38:24]MH_I2C_Read... [22:38:24]Read from MH i2c: E2 17 00 [22:38:24]MH_I2C_Read... [22:38:24]Read from MH i2c: E2 17 00 E6 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 CA [22:38:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [22:38:24]wFMCommunicate OK [22:38:24]CreateOFDProtocolMessage done [22:38:24]OFDSenderStorePacket 76970 [22:38:24]StoreOFDPacket docnum=76970 [22:38:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 3E 79 07 01 4E 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C6 20 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 10 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 16 00 00 00 00 07 04 06 00 F0 D2 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 60 95 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AA 2C 01 00 35 04 06 00 1F 94 D5 4D E4 AB D0 61 CF B3 0A 14 9A 88 [22:38:24]CheckFolder [22:38:24]dirname=/storage/ofd_packets [22:38:24]CheckFolder done [22:38:24]ProducePacketName [22:38:24]name=ofd_packets/00076970 [22:38:24]NVStorageSaveData ofd_packets/00076970 [22:38:24]File name is /storage/ofd_packets/00076970 [22:38:24]Write 301 bytes [22:38:24]NVStorageSaveData done [22:38:24]OFDSenderStorePacket done [22:38:24]KKMCreateOFDPacket done [22:38:24]NVStorageSaveData kkm_last_timestamp [22:38:24]File name is /storage/kkm_last_timestamp [22:38:24]Write 4 bytes [22:38:24]NVStorageSaveData done [22:38:24]ExternCall_PrintAddStr [22:38:24]wPrintStart [22:38:24]Write to MH i2c: 01 00 00 E7 17 FE [22:38:24]Write i2c OK [22:38:24]MH_I2C_Read... [22:38:24]Read from MH i2c: 01 [22:38:24]MH_I2C_Read... [22:38:24]Read from MH i2c: 01 07 00 [22:38:24]MH_I2C_Read... [22:38:24]Read from MH i2c: 01 07 00 E7 17 00 00 00 00 00 FF 0F 13 [22:38:24]RasterBufferAndPrint [22:38:24]line Счет N : (1)191518 [22:38:24]line ИНН: 02508201610067 [22:38:24]line Контрольно-Кассовый Чек [22:38:24]line ПРОДАЖА [22:38:24]line ТРК (МРК, ГНК) : 43 [22:38:24]line Товар: 2710124130 [22:38:24]line Аи-92-К-5 [22:38:24]line 8.390 * 64.40 [22:38:24]line = 540.32 [22:38:24]line НДС 12% НСП 1% [22:38:24]line > о реализуемом товаре [22:38:24]line ОКРУГЛЕНИЕ: -0.32 [22:38:24]line ИТОГО: 540.00 [22:38:24]line Внесено: 540.00 [22:38:24]line СДАЧА: 0.00 [22:38:24]line НСП 1% : 4.78 [22:38:24]line НДС 12% : 57.38 [22:38:24]line Наличными: 540.00 [22:38:24]line Безнал.: 0.00 [22:38:24]line Место: АЗС № 106 "Партнер Нефть" [22:38:24]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [22:38:24]line СНО: Общий режим [22:38:24]line Чек 226 21.04.2024 22:38 [22:38:24]line Смена: 372 ФФД: 1.0 [22:38:24]line ЗНМ: 0300000141 [22:38:24]line РНМ: 0000000000091573 [22:38:24]line Версия ККМ: 001 [22:38:24]line ФМ: 0000000000874652 [22:38:24]line ФД: 76970 [22:38:24]line ФПД: 34724094272683 [22:38:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T223824&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76970&fm=34724094272683&tin=02508201610067®Number=0000000000091573&sum=54000 [22:38:24]written 0, free lines is 4095 [22:38:24]OFD Sender: Processing packet 76970 [packets to send 129, broken 128] [22:38:24]ProducePacketName [22:38:24]name=ofd_packets/00076970 [22:38:24]OFD Sender: To server: pG, [22:38:24]CommunicateWithHost lk.salyk.kg:30040 [22:38:24]ConnectInit lk.salyk.kg [22:38:25]Connected sock=10 [22:38:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 3E 79 07 01 4E 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C6 20 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 10 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 16 00 00 00 00 07 04 06 00 F0 D2 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 60 95 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AA 2C 01 00 35 04 06 00 1F 94 D5 4D E4 AB D0 61 CF B3 0A 14 9A 88 [22:38:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 2E B4 47 00 54 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AA 2C 01 00 F4 03 04 00 E4 3C 25 66 B6 04 01 00 00 01 EC 66 26 3A 9C 0E 7A [22:38:25]CommunicateWithHost err = 0 [22:38:25]CheckOFDResponse [22:38:25]1017 (14) - 77093643461234 [22:38:25]1041 (16) - 0000000000874652 [22:38:25]1040 (4) - 76970 [22:38:25]1012 (4) - 21.04.2024 16:20 [22:38:25]1206 (1) - 0 [22:38:25]OFD Sender: Remove packet 76970 [22:38:25]ProducePacketName [22:38:25]name=ofd_packets/00076970 [22:38:25]NVStorageDeleteData [22:38:25]Write to MH i2c: 01 00 00 11 18 29 [22:38:25]Write i2c OK [22:38:25]MH_I2C_Read... [22:38:25]Read from MH i2c: 01 [22:38:25]MH_I2C_Read... [22:38:25]Read from MH i2c: 01 07 00 [22:38:25]MH_I2C_Read... [22:38:25]Read from MH i2c: 01 07 00 11 18 00 00 00 00 00 EC 0C 28 [22:38:25]RasterBufferAndPrint [22:38:25]line [22:38:25]line [22:38:25]line [22:38:25]line [22:38:25]line [22:38:25]written 0, free lines is 3315 [22:38:25]MH_Cut [22:38:25]Write to MH i2c: D1 01 00 18 18 01 02 [22:38:25]Write i2c OK [22:38:25]MH_I2C_Read... [22:38:25]Read from MH i2c: D1 [22:38:25]MH_I2C_Read... [22:38:25]Read from MH i2c: D1 01 00 [22:38:25]MH_I2C_Read... [22:38:25]Read from MH i2c: D1 01 00 18 18 00 01 [22:38:25]Write to MH i2c: 01 00 00 19 18 31 [22:38:25]Write i2c OK [22:38:25]MH_I2C_Read... [22:38:25]OFD Sender: No OFD packet to send [22:38:26]*** Cut start [22:38:26]*** Partial cut [22:38:26]*** CUTSNS_PIN = 1 [22:38:26]*** CUTSNS_PIN = 0 [22:38:26]*** Brake cut motor [22:38:26]Read from MH i2c: 01 [22:38:26]MH_I2C_Read... [22:38:26]*** Stop cut motor [22:38:26]*** Cut end [22:38:26]Read from MH i2c: 01 07 00 [22:38:26]MH_I2C_Read... [22:38:26]Read from MH i2c: 01 07 00 19 18 00 00 00 00 00 FF 0F 46 [22:38:26]process_action close_receipt done [22:38:26]requested_data is exist [22:38:26]produce_requested_data [22:38:26]requested_item fm.sn is exist - process it [22:38:26]wFMCommunicate request_size=4 [22:38:26]MH_SAM_APDU [22:38:26]CAPDU: 80 11 00 00 [22:38:26]Write to MH i2c: E2 08 00 1A 18 80 11 00 00 00 00 00 00 AC [22:38:26]Write i2c OK [22:38:26]MH_I2C_Read... [22:38:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:38:26]Read from MH i2c: E2 [22:38:26]MH_I2C_Read... [22:38:26]Read from MH i2c: E2 17 00 [22:38:26]MH_I2C_Read... [22:38:26]Read from MH i2c: E2 17 00 1A 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 FF [22:38:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [22:38:26]wFMCommunicate OK [22:38:26]requested_item fd.num is exist - process it [22:38:26]SAM_PROTO_GetFieldsCounters [22:38:26]wFMCommunicate request_size=4 [22:38:26]MH_SAM_APDU [22:38:26]CAPDU: 80 13 00 00 [22:38:26]Write to MH i2c: E2 08 00 1B 18 80 13 00 00 00 00 00 00 AF [22:38:26]Write i2c OK [22:38:26]MH_I2C_Read... [22:38:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:38:26]Read from MH i2c: E2 [22:38:26]MH_I2C_Read... [22:38:26]Read from MH i2c: E2 62 00 [22:38:26]MH_I2C_Read... [22:38:26]Read from MH i2c: E2 62 00 1B 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 AA 2C 01 00 0E 04 04 00 74 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 C2 [22:38: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 AA 2C 01 00 0E 04 04 00 74 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 [22:38:26]wFMCommunicate OK [22:38:26]SAM_PROTO_GetFieldsCounters done [22:38:26]requested_item shift.num is exist - process it [22:38:26]requested_item shift.opened is exist - process it [22:38:26]req_shift_opened [22:38:26]FM_GetShiftState [22:38:26]SAM_PROTO_GetShiftState [22:38:26]wFMCommunicate request_size=4 [22:38:26]MH_SAM_APDU [22:38:26]CAPDU: 80 13 01 00 [22:38:26]Write to MH i2c: E2 08 00 1C 18 80 13 01 00 00 00 00 00 B1 [22:38:26]Write i2c OK [22:38:26]MH_I2C_Read... [22:38:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:38:27]Read from MH i2c: E2 [22:38:27]MH_I2C_Read... [22:38:27]Read from MH i2c: E2 0E 00 [22:38:27]MH_I2C_Read... [22:38:27]Read from MH i2c: E2 0E 00 1C 18 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 F8 [22:38:27]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [22:38:27]wFMCommunicate OK [22:38:27]SAM_PROTO_GetShiftState done [22:38:27]FM_GetShiftState done [22:38:27]req_shift_opened done [22:38:27]requested_item shift.open_date is exist - process it [22:38:27]req_shift_open_date [22:38:27]req_shift_open_date done [22:38:27]produce_requested_data done [22:38:27]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76970,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [22:38:27]process_action_free close_receipt [22:38:27]json_value_free [22:38:27]json_value_free done [22:38:27]process_json_proto returns [22:38:27]Send response to host [22:38:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76970,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [22:38:27]free response buf [22:38:27]execute_script done [22:38:27]execute_script returns [22:38:27]free content buf [22:38:27]Sock 8.Close socket [22:38:27]Sock 8.Thread stoped [22:38:30]OFD Sender: No OFD packet to send [22:38:35]OFD Sender: No OFD packet to send [22:38:40]OFD Sender: No OFD packet to send [22:38:45]OFD Sender: No OFD packet to send [22:38:50]OFD Sender: No OFD packet to send [22:38:55]OFD Sender: No OFD packet to send [22:39:00]OFD Sender: No OFD packet to send [22:39:05]OFD Sender: No OFD packet to send [22:39:10]OFD Sender: No OFD packet to send [22:39:15]OFD Sender: No OFD packet to send [22:39:20]OFD Sender: No OFD packet to send [22:39:25]OFD Sender: No OFD packet to send [22:39:30]OFD Sender: No OFD packet to send [22:39:35]OFD Sender: No OFD packet to send [22:39:40]OFD Sender: No OFD packet to send [22:39:45]OFD Sender: No OFD packet to send [22:39:50]OFD Sender: No OFD packet to send [22:39:55]OFD Sender: No OFD packet to send [22:40:00]OFD Sender: No OFD packet to send [22:40:05]OFD Sender: No OFD packet to send [22:40:10]OFD Sender: No OFD packet to send [22:40:15]OFD Sender: No OFD packet to send [22:40:20]OFD Sender: No OFD packet to send [22:40:25]OFD Sender: No OFD packet to send [22:40:30]OFD Sender: No OFD packet to send [22:40:36]OFD Sender: No OFD packet to send [22:40:41]OFD Sender: No OFD packet to send [22:40:46]OFD Sender: No OFD packet to send [22:40:51]OFD Sender: No OFD packet to send [22:40:56]OFD Sender: No OFD packet to send [22:41:01]OFD Sender: No OFD packet to send [22:41:06]OFD Sender: No OFD packet to send [22:41:11]OFD Sender: No OFD packet to send [22:41:16]OFD Sender: No OFD packet to send [22:41:21]OFD Sender: No OFD packet to send [22:41:26]OFD Sender: No OFD packet to send [22:41:31]OFD Sender: No OFD packet to send [22:41:36]OFD Sender: No OFD packet to send [22:41:41]OFD Sender: No OFD packet to send [22:41:46]OFD Sender: No OFD packet to send [22:41:51]OFD Sender: No OFD packet to send [22:41:56]OFD Sender: No OFD packet to send [22:42:01]OFD Sender: No OFD packet to send [22:42:06]OFD Sender: No OFD packet to send [22:42:11]OFD Sender: No OFD packet to send [22:42:16]OFD Sender: No OFD packet to send [22:42:21]OFD Sender: No OFD packet to send [22:42:26]OFD Sender: No OFD packet to send [22:42:31]OFD Sender: No OFD packet to send [22:42:36]OFD Sender: No OFD packet to send [22:42:41]OFD Sender: No OFD packet to send [22:42:46]OFD Sender: No OFD packet to send [22:42:51]OFD Sender: No OFD packet to send [22:42:56]OFD Sender: No OFD packet to send [22:43:01]OFD Sender: No OFD packet to send [22:43:06]OFD Sender: No OFD packet to send [22:43:11]OFD Sender: No OFD packet to send [22:43:16]OFD Sender: No OFD packet to send [22:43:21]OFD Sender: No OFD packet to send [22:43:26]OFD Sender: No OFD packet to send [22:43:31]OFD Sender: No OFD packet to send [22:43:36]OFD Sender: No OFD packet to send [22:43:41]OFD Sender: No OFD packet to send [22:43:46]OFD Sender: No OFD packet to send [22:43:51]OFD Sender: No OFD packet to send [22:43:56]OFD Sender: No OFD packet to send [22:44:01]OFD Sender: No OFD packet to send [22:44:06]OFD Sender: No OFD packet to send [22:44:11]OFD Sender: No OFD packet to send [22:44:16]OFD Sender: No OFD packet to send [22:44:21]OFD Sender: No OFD packet to send [22:44:26]OFD Sender: No OFD packet to send [22:44:31]OFD Sender: No OFD packet to send [22:44:36]OFD Sender: No OFD packet to send [22:44:41]OFD Sender: No OFD packet to send [22:44:46]OFD Sender: No OFD packet to send [22:44:51]OFD Sender: No OFD packet to send [22:44:56]OFD Sender: No OFD packet to send [22:45:01]OFD Sender: No OFD packet to send [22:45:06]OFD Sender: No OFD packet to send [22:45:11]OFD Sender: No OFD packet to send [22:45:16]OFD Sender: No OFD packet to send [22:45:20]accept exits with 9 [22:45:20]New connection [22:45:20]New thread 3066801508 created [22:45:20]Thread 3066944868 joined [22:45:20]Waiting for new connection... [22:45:20] Sock 9.Parse request [22:45:20]Sock 9.Check first char [22:45:20]Sock 9.First char is OK [22:45:20]request: POST /json_proto HTTP/1.0 [22:45:20]Method: POST [22:45:20]URL: /json_proto [22:45:20]Method is POST - this is cgi request [22:45:20]url: /json_proto [22:45:20]query_string will be loaded in cgi processing [22:45:20]execute_cgi json_proto POST (null) [22:45:20]execute_cgi path=json_proto method=POST [22:45:20]POST find Content-Length [22:45:20]Host: 172.17.62.5:8080 [22:45:20]Content-Length: 677 [22:45:20]Content-Type: application/json [22:45:20] [22:45:20]POST finish read [22:45:20]Found Content-Length = 677 [22:45:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191519", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:45:20]execute_script... [22:45: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)191519", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:45:20]POST & json_proto [22:45:20]process_json_proto [22:45:20]json parsed OK: [22:45:20]protocol is kg_v1.0 [22:45:20]action value=close_receipt [22:45:20]process_action close_receipt [22:45:20]cmd_close_receipt [22:45:20]MH_GetDate [22:45:20]Write to MH i2c: F0 00 00 1D 18 24 [22:45:20]Write i2c OK [22:45:20]MH_I2C_Read... [22:45:20]Read from MH i2c: F0 [22:45:20]MH_I2C_Read... [22:45:20]Read from MH i2c: F0 09 00 [22:45:20]MH_I2C_Read... [22:45:20]Read from MH i2c: F0 09 00 1D 18 00 01 97 25 66 F4 E9 65 64 F6 [22:45:20]GetLastDocTimeStamp 1713739104 [22:45:20]current date 1713739521 [22:45:20]FM_GetShiftState [22:45:20]SAM_PROTO_GetShiftState [22:45:20]wFMCommunicate request_size=4 [22:45:20]MH_SAM_APDU [22:45:20]CAPDU: 80 13 01 00 [22:45:20]Write to MH i2c: E2 08 00 1E 18 80 13 01 00 00 00 00 00 B3 [22:45:20]Write i2c OK [22:45:20]MH_I2C_Read... [22:45:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:45:20]Read from MH i2c: E2 [22:45:20]MH_I2C_Read... [22:45:20]Read from MH i2c: E2 0E 00 [22:45:20]MH_I2C_Read... [22:45:20]Read from MH i2c: E2 0E 00 1E 18 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 FA [22:45:20]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [22:45:20]wFMCommunicate OK [22:45:20]SAM_PROTO_GetShiftState done [22:45:20]FM_GetShiftState done [22:45:20]opened in 1713658965 [22:45:20]opened+sec_in_day 1713745365 [22:45:20]quantity*price = 50038 [22:45:20]sum+1 = 50040 [22:45:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 227 21.04.2024 22:45 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76971 ФПД: 7311788830563 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T224521&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76971&fm=7311788830563&tin=02508201610067®Number=0000000000091573&sum=50000 [22:45:21]StoreToDocumentArchive [22:45:21]shift 372 fd 76971 [22:45:21]save to /storage/0372/doc_00076971 [22:45:21]save last doc name /storage/0372/doc_00076971 to /storage/kkm_last_doc_name [22:45:21]save OK [22:45:21]Clear old archive folders... [22:45:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:45:21]tlvbuf is B6EA6780 [22:45:21]SAM_PROTO_ClearQueue [22:45:21]wFMCommunicate request_size=4 [22:45:21]MH_SAM_APDU [22:45:21]CAPDU: 80 09 00 00 [22:45:21]Write to MH i2c: E2 08 00 2B 18 80 09 00 00 00 00 00 00 B5 [22:45:21]Write i2c OK [22:45:21]MH_I2C_Read... [22:45:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:45:21]OFD Sender: No OFD packet to send [22:45:21]Read from MH i2c: E2 [22:45:21]MH_I2C_Read... [22:45:21]Read from MH i2c: E2 03 00 [22:45:21]MH_I2C_Read... [22:45:21]Read from MH i2c: E2 03 00 2B 18 00 90 00 B7 [22:45:21]RAPDU: 90 00 [22:45:21]wFMCommunicate OK [22:45:21]SAM_PROTO_ClearQueue done [22:45:21]KKMCreateOFDPacket [22:45:21]OFDProtocolAddRootSTLVToBuf [22:45:21]FM_MakeSignedData [22:45:21]FM_MakeSignedData [22:45:21]SAM_PROTO_SignData [22:45:21]wFMCommunicate request_size=4 [22:45:21]MH_SAM_APDU [22:45:21]CAPDU: 80 0D 01 02 [22:45:21]Write to MH i2c: E2 08 00 2C 18 80 0D 01 02 00 00 00 00 BD [22:45:21]Write i2c OK [22:45:21]MH_I2C_Read... [22:45:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:45:21]Read from MH i2c: E2 [22:45:21]MH_I2C_Read... [22:45:21]Read from MH i2c: E2 03 00 [22:45:21]MH_I2C_Read... [22:45:21]Read from MH i2c: E2 03 00 2C 18 00 90 00 B8 [22:45:21]RAPDU: 90 00 [22:45:21]wFMCommunicate OK [22:45:21]wFMCommunicate request_size=255 [22:45:21]MH_SAM_APDU [22:45: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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 97 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AB 2C 01 00 35 04 06 00 06 [22:45:21]Write to MH i2c: E2 02 01 2D 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 97 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AB 2C 01 00 35 04 06 00 06 00 00 CB [22:45:21]Write i2c OK [22:45:21]MH_I2C_Read... [22:45:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:45:21]Read from MH i2c: E2 [22:45:21]MH_I2C_Read... [22:45:21]Read from MH i2c: E2 03 00 [22:45:21]MH_I2C_Read... [22:45:21]Read from MH i2c: E2 03 00 2D 18 00 90 00 B9 [22:45:21]RAPDU: 90 00 [22:45:21]wFMCommunicate OK [22:45:21]wFMCommunicate request_size=10 [22:45:21]MH_SAM_APDU [22:45:21]CAPDU: 80 0D 02 02 05 A6 68 93 6F 63 [22:45:21]Write to MH i2c: E2 0D 00 2E 18 80 0D 02 02 05 00 A6 68 93 6F 63 00 00 3D [22:45:21]Write i2c OK [22:45:21]MH_I2C_Read... [22:45:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:45:21]Read from MH i2c: E2 [22:45:21]MH_I2C_Read... [22:45:21]Read from MH i2c: E2 03 00 [22:45:21]MH_I2C_Read... [22:45:21]Read from MH i2c: E2 03 00 2E 18 00 90 00 BA [22:45:21]RAPDU: 90 00 [22:45:21]wFMCommunicate OK [22:45:21]wFMCommunicate request_size=4 [22:45:21]MH_SAM_APDU [22:45:21]CAPDU: 80 0D 03 02 [22:45:21]Write to MH i2c: E2 08 00 2F 18 80 0D 03 02 00 00 00 00 C2 [22:45:21]Write i2c OK [22:45:21]MH_I2C_Read... [22:45:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:45:21]Read from MH i2c: E2 [22:45:21]MH_I2C_Read... [22:45:21]Read from MH i2c: E2 0B 00 [22:45:21]MH_I2C_Read... [22:45:21]Read from MH i2c: E2 0B 00 2F 18 00 C5 92 DB EF D1 C7 67 01 90 00 E4 [22:45:21]RAPDU: C5 92 DB EF D1 C7 67 01 90 00 [22:45:21]wFMCommunicate OK [22:45:21]SAM_PROTO_SignData done [22:45:21]FM_MakeSignedData done [22:45:21]CreateOFDProtocolMessage [22:45:21]wFMCommunicate request_size=4 [22:45:21]MH_SAM_APDU [22:45:21]CAPDU: 80 11 00 00 [22:45:21]Write to MH i2c: E2 08 00 30 18 80 11 00 00 00 00 00 00 C2 [22:45:21]Write i2c OK [22:45:21]MH_I2C_Read... [22:45:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:45:21]Read from MH i2c: E2 [22:45:21]MH_I2C_Read... [22:45:21]Read from MH i2c: E2 17 00 [22:45:21]MH_I2C_Read... [22:45:21]Read from MH i2c: E2 17 00 30 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 15 [22:45:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [22:45:21]wFMCommunicate OK [22:45:21]CreateOFDProtocolMessage done [22:45:21]OFDSenderStorePacket 76971 [22:45:21]StoreOFDPacket docnum=76971 [22:45:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 F5 E1 07 01 D9 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 97 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AB 2C 01 00 35 04 06 00 06 A6 68 93 6F 63 C5 92 DB EF D1 C7 67 01 [22:45:21]CheckFolder [22:45:21]dirname=/storage/ofd_packets [22:45:21]CheckFolder done [22:45:21]ProducePacketName [22:45:21]name=ofd_packets/00076971 [22:45:21]NVStorageSaveData ofd_packets/00076971 [22:45:21]File name is /storage/ofd_packets/00076971 [22:45:21]Write 301 bytes [22:45:21]NVStorageSaveData done [22:45:21]OFDSenderStorePacket done [22:45:21]KKMCreateOFDPacket done [22:45:21]NVStorageSaveData kkm_last_timestamp [22:45:21]File name is /storage/kkm_last_timestamp [22:45:21]Write 4 bytes [22:45:21]NVStorageSaveData done [22:45:21]ExternCall_PrintAddStr [22:45:21]wPrintStart [22:45:21]Write to MH i2c: 01 00 00 31 18 49 [22:45:21]Write i2c OK [22:45:21]MH_I2C_Read... [22:45:21]Read from MH i2c: 01 [22:45:21]MH_I2C_Read... [22:45:21]Read from MH i2c: 01 07 00 [22:45:21]MH_I2C_Read... [22:45:21]Read from MH i2c: 01 07 00 31 18 00 00 00 00 00 FF 0F 5E [22:45:21]RasterBufferAndPrint [22:45:21]line Счет N : (1)191519 [22:45:21]line ИНН: 02508201610067 [22:45:21]line Контрольно-Кассовый Чек [22:45:21]line ПРОДАЖА [22:45:21]line ТРК (МРК, ГНК) : 43 [22:45:21]line Товар: 2710124130 [22:45:21]line Аи-92-К-5 [22:45:21]line 7.770 * 64.40 [22:45:21]line = 500.39 [22:45:21]line НДС 12% НСП 1% [22:45:21]line > о реализуемом товаре [22:45:21]line ОКРУГЛЕНИЕ: -0.39 [22:45:21]line ИТОГО: 500.00 [22:45:21]line Внесено: 500.00 [22:45:21]line СДАЧА: 0.00 [22:45:21]line НСП 1% : 4.43 [22:45:21]line НДС 12% : 53.14 [22:45:21]line Наличными: 500.00 [22:45:21]line Безнал.: 0.00 [22:45:21]line Место: АЗС № 106 "Партнер Нефть" [22:45:21]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [22:45:21]line СНО: Общий режим [22:45:21]line Чек 227 21.04.2024 22:45 [22:45:21]line Смена: 372 ФФД: 1.0 [22:45:21]line ЗНМ: 0300000141 [22:45:21]line РНМ: 0000000000091573 [22:45:21]line Версия ККМ: 001 [22:45:21]line ФМ: 0000000000874652 [22:45:21]line ФД: 76971 [22:45:21]line ФПД: 7311788830563 [22:45:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T224521&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76971&fm=7311788830563&tin=02508201610067®Number=0000000000091573&sum=50000 [22:45:22]OFD Sender: Processing packet 76971 [packets to send 129, broken 128] [22:45:22]ProducePacketName [22:45:22]name=ofd_packets/00076971 [22:45:22]OFD Sender: To server: pG, [22:45:22]CommunicateWithHost lk.salyk.kg:30040 [22:45:22]ConnectInit lk.salyk.kg [22:45:22]written 0, free lines is 4095 [22:45:22]Connected sock=10 [22:45:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 F5 E1 07 01 D9 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 97 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AB 2C 01 00 35 04 06 00 06 A6 68 93 6F 63 C5 92 DB EF D1 C7 67 01 [22:45:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 C1 86 47 00 3E 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 34 36 35 32 10 04 04 00 AB 2C 01 00 F4 03 04 00 86 3E 25 66 B6 04 01 00 00 EE 03 EB CA 0E D7 4F 26 [22:45:22]CommunicateWithHost err = 0 [22:45:22]CheckOFDResponse [22:45:22]1017 (14) - 77093643461234 [22:45:22]1041 (16) - 0000000000874652 [22:45:22]1040 (4) - 76971 [22:45:22]1012 (4) - 21.04.2024 16:27 [22:45:22]1206 (1) - 0 [22:45:22]OFD Sender: Remove packet 76971 [22:45:22]ProducePacketName [22:45:22]name=ofd_packets/00076971 [22:45:22]NVStorageDeleteData [22:45:22]Write to MH i2c: 01 00 00 5B 18 73 [22:45:22]Write i2c OK [22:45:22]MH_I2C_Read... [22:45:22]Read from MH i2c: 01 [22:45:22]MH_I2C_Read... [22:45:22]Read from MH i2c: 01 07 00 [22:45:22]MH_I2C_Read... [22:45:22]Read from MH i2c: 01 07 00 5B 18 00 00 00 00 00 02 0D 89 [22:45:22]RasterBufferAndPrint [22:45:22]line [22:45:22]line [22:45:22]line [22:45:22]line [22:45:22]line [22:45:22]written 0, free lines is 3336 [22:45:22]MH_Cut [22:45:22]Write to MH i2c: D1 01 00 62 18 01 4C [22:45:22]Write i2c OK [22:45:22]MH_I2C_Read... [22:45:22]Read from MH i2c: D1 [22:45:22]MH_I2C_Read... [22:45:22]Read from MH i2c: D1 01 00 [22:45:22]MH_I2C_Read... [22:45:22]Read from MH i2c: D1 01 00 62 18 00 4B [22:45:22]Write to MH i2c: 01 00 00 63 18 7B [22:45:22]Write i2c OK [22:45:22]MH_I2C_Read... [22:45:23]OFD Sender: No OFD packet to send [22:45:23]*** Cut start [22:45:23]*** Partial cut [22:45:23]*** CUTSNS_PIN = 1 [22:45:23]*** CUTSNS_PIN = 0 [22:45:23]*** Brake cut motor [22:45:23]Read from MH i2c: 01 [22:45:24]MH_I2C_Read... [22:45:24]*** Stop cut motor [22:45:24]*** Cut end [22:45:24]Read from MH i2c: 01 07 00 [22:45:24]MH_I2C_Read... [22:45:24]Read from MH i2c: 01 07 00 63 18 00 00 00 00 00 FF 0F 90 [22:45:24]process_action close_receipt done [22:45:24]requested_data is exist [22:45:24]produce_requested_data [22:45:24]requested_item fm.sn is exist - process it [22:45:24]wFMCommunicate request_size=4 [22:45:24]MH_SAM_APDU [22:45:24]CAPDU: 80 11 00 00 [22:45:24]Write to MH i2c: E2 08 00 64 18 80 11 00 00 00 00 00 00 F6 [22:45:24]Write i2c OK [22:45:24]MH_I2C_Read... [22:45:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:45:24]Read from MH i2c: E2 [22:45:24]MH_I2C_Read... [22:45:24]Read from MH i2c: E2 17 00 [22:45:24]MH_I2C_Read... [22:45:24]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 34 36 35 32 90 00 49 [22:45:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [22:45:24]wFMCommunicate OK [22:45:24]requested_item fd.num is exist - process it [22:45:24]SAM_PROTO_GetFieldsCounters [22:45:24]wFMCommunicate request_size=4 [22:45:24]MH_SAM_APDU [22:45:24]CAPDU: 80 13 00 00 [22:45:24]Write to MH i2c: E2 08 00 65 18 80 13 00 00 00 00 00 00 F9 [22:45:24]Write i2c OK [22:45:24]MH_I2C_Read... [22:45:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:45:24]Read from MH i2c: E2 [22:45:24]MH_I2C_Read... [22:45:24]Read from MH i2c: E2 62 00 [22:45:24]MH_I2C_Read... [22:45:24]Read from MH i2c: E2 62 00 65 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 AB 2C 01 00 0E 04 04 00 74 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 10 [22:45: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 AB 2C 01 00 0E 04 04 00 74 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 [22:45:24]wFMCommunicate OK [22:45:24]SAM_PROTO_GetFieldsCounters done [22:45:24]requested_item shift.num is exist - process it [22:45:24]requested_item shift.opened is exist - process it [22:45:24]req_shift_opened [22:45:24]FM_GetShiftState [22:45:24]SAM_PROTO_GetShiftState [22:45:24]wFMCommunicate request_size=4 [22:45:24]MH_SAM_APDU [22:45:24]CAPDU: 80 13 01 00 [22:45:24]Write to MH i2c: E2 08 00 66 18 80 13 01 00 00 00 00 00 FB [22:45:24]Write i2c OK [22:45:24]MH_I2C_Read... [22:45:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:45:24]Read from MH i2c: E2 [22:45:24]MH_I2C_Read... [22:45:24]Read from MH i2c: E2 0E 00 [22:45:24]MH_I2C_Read... [22:45:24]Read from MH i2c: E2 0E 00 66 18 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 42 [22:45:24]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [22:45:24]wFMCommunicate OK [22:45:24]SAM_PROTO_GetShiftState done [22:45:24]FM_GetShiftState done [22:45:24]req_shift_opened done [22:45:24]requested_item shift.open_date is exist - process it [22:45:24]req_shift_open_date [22:45:24]req_shift_open_date done [22:45:24]produce_requested_data done [22:45:24]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76971,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [22:45:24]process_action_free close_receipt [22:45:24]json_value_free [22:45:24]json_value_free done [22:45:24]process_json_proto returns [22:45:24]Send response to host [22:45:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76971,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [22:45:24]free response buf [22:45:24]execute_script done [22:45:24]execute_script returns [22:45:24]free content buf [22:45:24]Sock 9.Close socket [22:45:24]Sock 9.Thread stoped [22:45:28]OFD Sender: No OFD packet to send [22:45:33]OFD Sender: No OFD packet to send [22:45:38]OFD Sender: No OFD packet to send [22:45:43]OFD Sender: No OFD packet to send [22:45:48]OFD Sender: No OFD packet to send [22:45:53]OFD Sender: No OFD packet to send [22:45:58]OFD Sender: No OFD packet to send [22:46:03]OFD Sender: No OFD packet to send [22:46:08]OFD Sender: No OFD packet to send [22:46:13]OFD Sender: No OFD packet to send [22:46:18]OFD Sender: No OFD packet to send [22:46:23]OFD Sender: No OFD packet to send [22:46:28]OFD Sender: No OFD packet to send [22:46:33]OFD Sender: No OFD packet to send [22:46:38]OFD Sender: No OFD packet to send [22:46:43]OFD Sender: No OFD packet to send [22:46:48]OFD Sender: No OFD packet to send [22:46:53]OFD Sender: No OFD packet to send [22:46:58]OFD Sender: No OFD packet to send [22:47:03]OFD Sender: No OFD packet to send [22:47:08]OFD Sender: No OFD packet to send [22:47:13]OFD Sender: No OFD packet to send [22:47:18]OFD Sender: No OFD packet to send [22:47:23]OFD Sender: No OFD packet to send [22:47:28]OFD Sender: No OFD packet to send [22:47:33]OFD Sender: No OFD packet to send [22:47:38]OFD Sender: No OFD packet to send [22:47:43]OFD Sender: No OFD packet to send [22:47:48]OFD Sender: No OFD packet to send [22:47:53]OFD Sender: No OFD packet to send [22:47:58]OFD Sender: No OFD packet to send [22:48:03]OFD Sender: No OFD packet to send [22:48:08]OFD Sender: No OFD packet to send [22:48:13]OFD Sender: No OFD packet to send [22:48:18]OFD Sender: No OFD packet to send [22:48:23]OFD Sender: No OFD packet to send [22:48:28]OFD Sender: No OFD packet to send [22:48:33]OFD Sender: No OFD packet to send [22:48:38]OFD Sender: No OFD packet to send [22:48:43]OFD Sender: No OFD packet to send [22:48:48]OFD Sender: No OFD packet to send [22:48:53]OFD Sender: No OFD packet to send [22:48:58]OFD Sender: No OFD packet to send [22:49:03]OFD Sender: No OFD packet to send [22:49:08]OFD Sender: No OFD packet to send [22:49:13]OFD Sender: No OFD packet to send [22:49:18]OFD Sender: No OFD packet to send [22:49:23]OFD Sender: No OFD packet to send [22:49:28]OFD Sender: No OFD packet to send [22:49:33]OFD Sender: No OFD packet to send [22:49:38]OFD Sender: No OFD packet to send [22:49:43]OFD Sender: No OFD packet to send [22:49:48]OFD Sender: No OFD packet to send [22:49:53]OFD Sender: No OFD packet to send [22:49:58]OFD Sender: No OFD packet to send [22:50:03]OFD Sender: No OFD packet to send [22:50:08]OFD Sender: No OFD packet to send [22:50:13]OFD Sender: No OFD packet to send [22:50:18]OFD Sender: No OFD packet to send [22:50:23]OFD Sender: No OFD packet to send [22:50:28]OFD Sender: No OFD packet to send [22:50:33]OFD Sender: No OFD packet to send [22:50:38]OFD Sender: No OFD packet to send [22:50:43]OFD Sender: No OFD packet to send [22:50:48]OFD Sender: No OFD packet to send [22:50:53]OFD Sender: No OFD packet to send [22:50:58]OFD Sender: No OFD packet to send [22:51:03]OFD Sender: No OFD packet to send [22:51:08]OFD Sender: No OFD packet to send [22:51:13]OFD Sender: No OFD packet to send [22:51:18]OFD Sender: No OFD packet to send [22:51:23]OFD Sender: No OFD packet to send [22:51:28]OFD Sender: No OFD packet to send [22:51:33]OFD Sender: No OFD packet to send [22:51:38]OFD Sender: No OFD packet to send [22:51:43]OFD Sender: No OFD packet to send [22:51:48]OFD Sender: No OFD packet to send [22:51:53]OFD Sender: No OFD packet to send [22:51:58]OFD Sender: No OFD packet to send [22:52:03]OFD Sender: No OFD packet to send [22:52:08]OFD Sender: No OFD packet to send [22:52:13]OFD Sender: No OFD packet to send [22:52:18]OFD Sender: No OFD packet to send [22:52:23]OFD Sender: No OFD packet to send [22:52:28]OFD Sender: No OFD packet to send [22:52:33]OFD Sender: No OFD packet to send [22:52:38]OFD Sender: No OFD packet to send [22:52:43]OFD Sender: No OFD packet to send [22:52:48]OFD Sender: No OFD packet to send [22:52:53]OFD Sender: No OFD packet to send [22:52:58]OFD Sender: No OFD packet to send [22:53:03]OFD Sender: No OFD packet to send [22:53:08]OFD Sender: No OFD packet to send [22:53:13]OFD Sender: No OFD packet to send [22:53:18]OFD Sender: No OFD packet to send [22:53:23]OFD Sender: No OFD packet to send [22:53:28]OFD Sender: No OFD packet to send [22:53:33]OFD Sender: No OFD packet to send [22:53:38]OFD Sender: No OFD packet to send [22:53:43]OFD Sender: No OFD packet to send [22:53:48]OFD Sender: No OFD packet to send [22:53:53]OFD Sender: No OFD packet to send [22:53:58]OFD Sender: No OFD packet to send [22:54:03]OFD Sender: No OFD packet to send [22:54:08]OFD Sender: No OFD packet to send [22:54:13]OFD Sender: No OFD packet to send [22:54:18]OFD Sender: No OFD packet to send [22:54:23]OFD Sender: No OFD packet to send [22:54:28]OFD Sender: No OFD packet to send [22:54:33]OFD Sender: No OFD packet to send [22:54:38]OFD Sender: No OFD packet to send [22:54:43]OFD Sender: No OFD packet to send [22:54:48]OFD Sender: No OFD packet to send [22:54:53]OFD Sender: No OFD packet to send [22:54:58]OFD Sender: No OFD packet to send [22:55:03]OFD Sender: No OFD packet to send [22:55:08]OFD Sender: No OFD packet to send [22:55:13]OFD Sender: No OFD packet to send [22:55:18]OFD Sender: No OFD packet to send [22:55:23]OFD Sender: No OFD packet to send [22:55:28]OFD Sender: No OFD packet to send [22:55:33]OFD Sender: No OFD packet to send [22:55:38]OFD Sender: No OFD packet to send [22:55:43]OFD Sender: No OFD packet to send [22:55:48]OFD Sender: No OFD packet to send [22:55:53]OFD Sender: No OFD packet to send [22:55:58]OFD Sender: No OFD packet to send [22:56:03]OFD Sender: No OFD packet to send [22:56:08]OFD Sender: No OFD packet to send [22:56:13]OFD Sender: No OFD packet to send [22:56:18]OFD Sender: No OFD packet to send [22:56:23]OFD Sender: No OFD packet to send [22:56:28]OFD Sender: No OFD packet to send [22:56:33]OFD Sender: No OFD packet to send [22:56:38]OFD Sender: No OFD packet to send [22:56:43]OFD Sender: No OFD packet to send [22:56:48]OFD Sender: No OFD packet to send [22:56:53]OFD Sender: No OFD packet to send [22:56:58]OFD Sender: No OFD packet to send [22:57:03]OFD Sender: No OFD packet to send [22:57:08]OFD Sender: No OFD packet to send [22:57:13]OFD Sender: No OFD packet to send [22:57:18]OFD Sender: No OFD packet to send [22:57:19]accept exits with 8 [22:57:19]New connection [22:57:19]New thread 3066944868 created [22:57:19]Thread 3066801508 joined [22:57:19]Waiting for new connection... [22:57:19] Sock 8.Parse request [22:57:19]Sock 8.Check first char [22:57:19]Sock 8.First char is OK [22:57:19]request: POST /json_proto HTTP/1.0 [22:57:19]Method: POST [22:57:19]URL: /json_proto [22:57:19]Method is POST - this is cgi request [22:57:19]url: /json_proto [22:57:19]query_string will be loaded in cgi processing [22:57:19]execute_cgi json_proto POST (null) [22:57:19]execute_cgi path=json_proto method=POST [22:57:19]POST find Content-Length [22:57:19]Host: 172.17.62.5:8080 [22:57:19]Content-Length: 987 [22:57:19]Content-Type: application/json [22:57:19] [22:57:19]POST finish read [22:57:19]Found Content-Length = 987 [22:57:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191521", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 16.410, "sum" : 520.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 16.41 \u0441\u043E\u043C", "deposit" : 1000.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:57:19]execute_script... [22:57: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)191521", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 16.410, "sum" : 520.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 16.41 \u0441\u043E\u043C", "deposit" : 1000.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:57:19]POST & json_proto [22:57:19]process_json_proto [22:57:19]json parsed OK: [22:57:19]protocol is kg_v1.0 [22:57:19]action value=close_receipt [22:57:19]process_action close_receipt [22:57:19]cmd_close_receipt [22:57:19]MH_GetDate [22:57:19]Write to MH i2c: F0 00 00 67 18 6E [22:57:19]Write i2c OK [22:57:19]MH_I2C_Read... [22:57:19]Read from MH i2c: F0 [22:57:19]MH_I2C_Read... [22:57:19]Read from MH i2c: F0 09 00 [22:57:19]MH_I2C_Read... [22:57:19]Read from MH i2c: F0 09 00 67 18 00 D1 99 25 66 F4 E9 65 64 12 [22:57:19]GetLastDocTimeStamp 1713739521 [22:57:19]current date 1713740241 [22:57:19]FM_GetShiftState [22:57:19]SAM_PROTO_GetShiftState [22:57:19]wFMCommunicate request_size=4 [22:57:19]MH_SAM_APDU [22:57:19]CAPDU: 80 13 01 00 [22:57:19]Write to MH i2c: E2 08 00 68 18 80 13 01 00 00 00 00 00 FD [22:57:19]Write i2c OK [22:57:19]MH_I2C_Read... [22:57:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:57:19]Read from MH i2c: E2 [22:57:19]MH_I2C_Read... [22:57:19]Read from MH i2c: E2 0E 00 [22:57:19]MH_I2C_Read... [22:57:19]Read from MH i2c: E2 0E 00 68 18 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 44 [22:57:19]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [22:57:19]wFMCommunicate OK [22:57:19]SAM_PROTO_GetShiftState done [22:57:19]FM_GetShiftState done [22:57:19]opened in 1713658965 [22:57:19]opened+sec_in_day 1713745365 [22:57:19]quantity*price = 52019 [22:57:19]sum+1 = 52021 [22:57:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 520.00 Внесено: 1000.00 СДАЧА: 480.00 НСП 1% : 4.60 НДС 12% : 55.24 Наличными: 520.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 228 21.04.2024 22:57 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 16.41 сом ФМ: 0000000000874652 ФД: 76972 ФПД: 263311211311257 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T225721&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76972&fm=263311211311257&tin=02508201610067®Number=0000000000091573&sum=52000 [22:57:21]StoreToDocumentArchive [22:57:21]shift 372 fd 76972 [22:57:21]save to /storage/0372/doc_00076972 [22:57:21]save last doc name /storage/0372/doc_00076972 to /storage/kkm_last_doc_name [22:57:21]save OK [22:57:21]Clear old archive folders... [22:57:21]ProcessDocumentItem done err = 0, tmpTLVsize=250 [22:57:21]tlvbuf is 00CED7E0 [22:57:21]SAM_PROTO_ClearQueue [22:57:21]wFMCommunicate request_size=4 [22:57:21]MH_SAM_APDU [22:57:21]CAPDU: 80 09 00 00 [22:57:21]Write to MH i2c: E2 08 00 75 18 80 09 00 00 00 00 00 00 FF [22:57:21]Write i2c OK [22:57:21]MH_I2C_Read... [22:57:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:57:21]Read from MH i2c: E2 [22:57:21]MH_I2C_Read... [22:57:21]Read from MH i2c: E2 03 00 [22:57:21]MH_I2C_Read... [22:57:21]Read from MH i2c: E2 03 00 75 18 00 90 00 01 [22:57:21]RAPDU: 90 00 [22:57:21]wFMCommunicate OK [22:57:21]SAM_PROTO_ClearQueue done [22:57:21]KKMCreateOFDPacket [22:57:21]OFDProtocolAddRootSTLVToBuf [22:57:21]FM_MakeSignedData [22:57:21]FM_MakeSignedData [22:57:21]SAM_PROTO_SignData [22:57:21]wFMCommunicate request_size=4 [22:57:21]MH_SAM_APDU [22:57:21]CAPDU: 80 0D 01 02 [22:57:21]Write to MH i2c: E2 08 00 76 18 80 0D 01 02 00 00 00 00 07 [22:57:21]Write i2c OK [22:57:21]MH_I2C_Read... [22:57:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:57:21]Read from MH i2c: E2 [22:57:21]MH_I2C_Read... [22:57:21]Read from MH i2c: E2 03 00 [22:57:21]MH_I2C_Read... [22:57:21]Read from MH i2c: E2 03 00 76 18 00 90 00 02 [22:57:21]RAPDU: 90 00 [22:57:21]wFMCommunicate OK [22:57:21]wFMCommunicate request_size=255 [22:57:21]MH_SAM_APDU [22:57:21]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 1A 40 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 34 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 D1 99 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AC 2C 01 00 35 04 06 00 EF 7A [22:57:21]Write to MH i2c: E2 02 01 77 18 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 1A 40 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 34 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 D1 99 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AC 2C 01 00 35 04 06 00 EF 7A 00 00 5B [22:57:21]Write i2c OK [22:57:21]MH_I2C_Read... [22:57:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:57:21]Read from MH i2c: E2 [22:57:21]MH_I2C_Read... [22:57:21]Read from MH i2c: E2 03 00 [22:57:21]MH_I2C_Read... [22:57:21]Read from MH i2c: E2 03 00 77 18 00 90 00 03 [22:57:21]RAPDU: 90 00 [22:57:21]wFMCommunicate OK [22:57:21]wFMCommunicate request_size=9 [22:57:21]MH_SAM_APDU [22:57:21]CAPDU: 80 0D 02 02 04 EB 37 30 99 [22:57:21]Write to MH i2c: E2 0C 00 78 18 80 0D 02 02 04 00 EB 37 30 99 00 00 FD [22:57:21]Write i2c OK [22:57:21]MH_I2C_Read... [22:57:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:57:21]Read from MH i2c: E2 [22:57:21]MH_I2C_Read... [22:57:21]Read from MH i2c: E2 03 00 [22:57:21]MH_I2C_Read... [22:57:21]Read from MH i2c: E2 03 00 78 18 00 90 00 04 [22:57:21]RAPDU: 90 00 [22:57:21]wFMCommunicate OK [22:57:21]wFMCommunicate request_size=4 [22:57:21]MH_SAM_APDU [22:57:21]CAPDU: 80 0D 03 02 [22:57:21]Write to MH i2c: E2 08 00 79 18 80 0D 03 02 00 00 00 00 0C [22:57:21]Write i2c OK [22:57:21]MH_I2C_Read... [22:57:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:57:21]Read from MH i2c: E2 [22:57:21]MH_I2C_Read... [22:57:21]Read from MH i2c: E2 0B 00 [22:57:21]MH_I2C_Read... [22:57:21]Read from MH i2c: E2 0B 00 79 18 00 0A 0F BD 8E 02 78 80 9C 90 00 07 [22:57:21]RAPDU: 0A 0F BD 8E 02 78 80 9C 90 00 [22:57:21]wFMCommunicate OK [22:57:21]SAM_PROTO_SignData done [22:57:21]FM_MakeSignedData done [22:57:21]CreateOFDProtocolMessage [22:57:21]wFMCommunicate request_size=4 [22:57:21]MH_SAM_APDU [22:57:21]CAPDU: 80 11 00 00 [22:57:21]Write to MH i2c: E2 08 00 7A 18 80 11 00 00 00 00 00 00 0C [22:57:21]Write i2c OK [22:57:21]MH_I2C_Read... [22:57:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:57:21]Read from MH i2c: E2 [22:57:21]MH_I2C_Read... [22:57:21]Read from MH i2c: E2 17 00 [22:57:21]MH_I2C_Read... [22:57:21]Read from MH i2c: E2 17 00 7A 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 5F [22:57:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [22:57:21]wFMCommunicate OK [22:57:21]CreateOFDProtocolMessage done [22:57:21]OFDSenderStorePacket 76972 [22:57:21]StoreOFDPacket docnum=76972 [22:57:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 51 69 06 01 3E 25 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 1A 40 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 34 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 D1 99 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AC 2C 01 00 35 04 06 00 EF 7A EB 37 30 99 0A 0F BD 8E 02 78 80 9C [22:57:21]CheckFolder [22:57:21]dirname=/storage/ofd_packets [22:57:21]CheckFolder done [22:57:21]ProducePacketName [22:57:21]name=ofd_packets/00076972 [22:57:21]NVStorageSaveData ofd_packets/00076972 [22:57:21]File name is /storage/ofd_packets/00076972 [22:57:21]Write 300 bytes [22:57:21]NVStorageSaveData done [22:57:21]OFDSenderStorePacket done [22:57:21]KKMCreateOFDPacket done [22:57:21]NVStorageSaveData kkm_last_timestamp [22:57:21]File name is /storage/kkm_last_timestamp [22:57:21]Write 4 bytes [22:57:21]NVStorageSaveData done [22:57:21]ExternCall_PrintAddStr [22:57:21]wPrintStart [22:57:21]Write to MH i2c: 01 00 00 7B 18 93 [22:57:21]Write i2c OK [22:57:21]MH_I2C_Read... [22:57:21]Read from MH i2c: 01 [22:57:21]MH_I2C_Read... [22:57:21]Read from MH i2c: 01 07 00 [22:57:21]MH_I2C_Read... [22:57:21]Read from MH i2c: 01 07 00 7B 18 00 00 00 00 00 FF 0F A8 [22:57:21]RasterBufferAndPrint [22:57:21]line Счет N : (1)191521 [22:57:21]line ИНН: 02508201610067 [22:57:21]line Контрольно-Кассовый Чек [22:57:21]line ПРОДАЖА [22:57:21]line ТРК (МРК, ГНК) : 71 [22:57:21]line Товар: 2711190000 [22:57:21]line ГАЗ-К-5 [22:57:21]line 16.410 * 31.70 [22:57:21]line = 520.20 [22:57:21]line НДС 12% НСП 1% [22:57:21]line > о реализуемом товаре [22:57:21]line ОКРУГЛЕНИЕ: -0.20 [22:57:21]line ИТОГО: 520.00 [22:57:21]line Внесено: 1000.00 [22:57:21]line СДАЧА: 480.00 [22:57:21]line НСП 1% : 4.60 [22:57:21]line НДС 12% : 55.24 [22:57:21]line Наличными: 520.00 [22:57:21]line Безнал.: 0.00 [22:57:21]line Место: АЗС № 106 "Партнер Нефть" [22:57:21]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [22:57:21]line СНО: Общий режим [22:57:21]line Чек 228 21.04.2024 22:57 [22:57:21]line Смена: 372 ФФД: 1.0 [22:57:21]line ЗНМ: 0300000141 [22:57:21]line РНМ: 0000000000091573 [22:57:21]line Версия ККМ: 001 [22:57:21]line [22:57:21]line Дисконтная программа [22:57:21]line СУГ [22:57:21]line номер 106 [22:57:21]line сэкономлено 16.41 сом [22:57:21]line ФМ: 0000000000874652 [22:57:21]line ФД: 76972 [22:57:21]line ФПД: 263311211311257 [22:57:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T225721&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76972&fm=263311211311257&tin=02508201610067®Number=0000000000091573&sum=52000 [22:57:22]OFD Sender: Processing packet 76972 [packets to send 129, broken 128] [22:57:22]ProducePacketName [22:57:22]name=ofd_packets/00076972 [22:57:22]OFD Sender: To server: pG, [22:57:22]CommunicateWithHost lk.salyk.kg:30040 [22:57:22]ConnectInit lk.salyk.kg [22:57:22]written 0, free lines is 4095 [22:57:22]Connected sock=10 [22:57:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 51 69 06 01 3E 25 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 1A 40 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 34 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 D1 99 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AC 2C 01 00 35 04 06 00 EF 7A EB 37 30 99 0A 0F BD 8E 02 78 80 9C [22:57:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 8C EF 47 00 62 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 34 36 35 32 10 04 04 00 AC 2C 01 00 F4 03 04 00 55 41 25 66 B6 04 01 00 00 77 F2 E9 19 C7 79 A5 55 [22:57:22]CommunicateWithHost err = 0 [22:57:22]CheckOFDResponse [22:57:22]1017 (14) - 77093643461234 [22:57:22]1041 (16) - 0000000000874652 [22:57:22]1040 (4) - 76972 [22:57:22]1012 (4) - 21.04.2024 16:39 [22:57:22]1206 (1) - 0 [22:57:22]OFD Sender: Remove packet 76972 [22:57:22]ProducePacketName [22:57:22]name=ofd_packets/00076972 [22:57:22]NVStorageDeleteData [22:57:22]Write to MH i2c: 01 00 00 AA 18 C2 [22:57:22]Write i2c OK [22:57:22]MH_I2C_Read... [22:57:22]Read from MH i2c: 01 [22:57:22]MH_I2C_Read... [22:57:22]Read from MH i2c: 01 07 00 [22:57:22]MH_I2C_Read... [22:57:22]Read from MH i2c: 01 07 00 AA 18 00 00 00 00 00 8D 0C 62 [22:57:22]RasterBufferAndPrint [22:57:22]line [22:57:22]line [22:57:22]line [22:57:22]line [22:57:22]line [22:57:22]written 0, free lines is 3220 [22:57:22]MH_Cut [22:57:22]Write to MH i2c: D1 01 00 B1 18 01 9B [22:57:22]Write i2c OK [22:57:22]MH_I2C_Read... [22:57:22]Read from MH i2c: D1 [22:57:22]MH_I2C_Read... [22:57:22]Read from MH i2c: D1 01 00 [22:57:22]MH_I2C_Read... [22:57:22]Read from MH i2c: D1 01 00 B1 18 00 9A [22:57:22]Write to MH i2c: 01 00 00 B2 18 CA [22:57:22]Write i2c OK [22:57:22]MH_I2C_Read... [22:57:22]OFD Sender: No OFD packet to send [22:57:23]*** Cut start [22:57:23]*** Partial cut [22:57:23]*** CUTSNS_PIN = 1 [22:57:23]*** CUTSNS_PIN = 0 [22:57:23]*** Brake cut motor [22:57:23]Read from MH i2c: 01 [22:57:23]MH_I2C_Read... [22:57:23]*** Stop cut motor [22:57:23]*** Cut end [22:57:23]Read from MH i2c: 01 07 00 [22:57:23]MH_I2C_Read... [22:57:23]Read from MH i2c: 01 07 00 B2 18 00 00 00 00 00 FF 0F DF [22:57:23]process_action close_receipt done [22:57:23]requested_data is exist [22:57:23]produce_requested_data [22:57:23]requested_item fm.sn is exist - process it [22:57:23]wFMCommunicate request_size=4 [22:57:23]MH_SAM_APDU [22:57:23]CAPDU: 80 11 00 00 [22:57:23]Write to MH i2c: E2 08 00 B3 18 80 11 00 00 00 00 00 00 45 [22:57:23]Write i2c OK [22:57:23]MH_I2C_Read... [22:57:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:57:24]Read from MH i2c: E2 [22:57:24]MH_I2C_Read... [22:57:24]Read from MH i2c: E2 17 00 [22:57:24]MH_I2C_Read... [22:57:24]Read from MH i2c: E2 17 00 B3 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 98 [22:57:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [22:57:24]wFMCommunicate OK [22:57:24]requested_item fd.num is exist - process it [22:57:24]SAM_PROTO_GetFieldsCounters [22:57:24]wFMCommunicate request_size=4 [22:57:24]MH_SAM_APDU [22:57:24]CAPDU: 80 13 00 00 [22:57:24]Write to MH i2c: E2 08 00 B4 18 80 13 00 00 00 00 00 00 48 [22:57:24]Write i2c OK [22:57:24]MH_I2C_Read... [22:57:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:57:24]Read from MH i2c: E2 [22:57:24]MH_I2C_Read... [22:57:24]Read from MH i2c: E2 62 00 [22:57:24]MH_I2C_Read... [22:57:24]Read from MH i2c: E2 62 00 B4 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 AC 2C 01 00 0E 04 04 00 74 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 63 [22:57: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 AC 2C 01 00 0E 04 04 00 74 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 [22:57:24]wFMCommunicate OK [22:57:24]SAM_PROTO_GetFieldsCounters done [22:57:24]requested_item shift.num is exist - process it [22:57:24]requested_item shift.opened is exist - process it [22:57:24]req_shift_opened [22:57:24]FM_GetShiftState [22:57:24]SAM_PROTO_GetShiftState [22:57:24]wFMCommunicate request_size=4 [22:57:24]MH_SAM_APDU [22:57:24]CAPDU: 80 13 01 00 [22:57:24]Write to MH i2c: E2 08 00 B5 18 80 13 01 00 00 00 00 00 4A [22:57:24]Write i2c OK [22:57:24]MH_I2C_Read... [22:57:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:57:24]Read from MH i2c: E2 [22:57:24]MH_I2C_Read... [22:57:24]Read from MH i2c: E2 0E 00 [22:57:24]MH_I2C_Read... [22:57:24]Read from MH i2c: E2 0E 00 B5 18 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 91 [22:57:24]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [22:57:24]wFMCommunicate OK [22:57:24]SAM_PROTO_GetShiftState done [22:57:24]FM_GetShiftState done [22:57:24]req_shift_opened done [22:57:24]requested_item shift.open_date is exist - process it [22:57:24]req_shift_open_date [22:57:24]req_shift_open_date done [22:57:24]produce_requested_data done [22:57:24]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76972,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [22:57:24]process_action_free close_receipt [22:57:24]json_value_free [22:57:24]json_value_free done [22:57:24]process_json_proto returns [22:57:24]Send response to host [22:57:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76972,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [22:57:24]free response buf [22:57:24]execute_script done [22:57:24]execute_script returns [22:57:24]free content buf [22:57:24]Sock 8.Close socket [22:57:24]Sock 8.Thread stoped [22:57:27]OFD Sender: No OFD packet to send [22:57:32]OFD Sender: No OFD packet to send [22:57:37]OFD Sender: No OFD packet to send [22:57:42]OFD Sender: No OFD packet to send [22:57:47]OFD Sender: No OFD packet to send [22:57:52]OFD Sender: No OFD packet to send [22:57:57]OFD Sender: No OFD packet to send [22:58:02]OFD Sender: No OFD packet to send [22:58:07]OFD Sender: No OFD packet to send [22:58:12]OFD Sender: No OFD packet to send [22:58:17]OFD Sender: No OFD packet to send [22:58:22]OFD Sender: No OFD packet to send [22:58:27]OFD Sender: No OFD packet to send [22:58:32]OFD Sender: No OFD packet to send [22:58:37]OFD Sender: No OFD packet to send [22:58:42]OFD Sender: No OFD packet to send [22:58:47]OFD Sender: No OFD packet to send [22:58:52]OFD Sender: No OFD packet to send [22:58:57]OFD Sender: No OFD packet to send [22:59:02]OFD Sender: No OFD packet to send [22:59:07]OFD Sender: No OFD packet to send [22:59:12]OFD Sender: No OFD packet to send [22:59:18]OFD Sender: No OFD packet to send [22:59:23]OFD Sender: No OFD packet to send [22:59:28]OFD Sender: No OFD packet to send [22:59:33]OFD Sender: No OFD packet to send [22:59:38]OFD Sender: No OFD packet to send [22:59:43]OFD Sender: No OFD packet to send [22:59:48]OFD Sender: No OFD packet to send [22:59:53]OFD Sender: No OFD packet to send [22:59:58]OFD Sender: No OFD packet to send [23:00:03]OFD Sender: No OFD packet to send [23:00:08]OFD Sender: No OFD packet to send [23:00:13]OFD Sender: No OFD packet to send [23:00:18]OFD Sender: No OFD packet to send [23:00:23]OFD Sender: No OFD packet to send [23:00:28]OFD Sender: No OFD packet to send [23:00:33]OFD Sender: No OFD packet to send [23:00:38]OFD Sender: No OFD packet to send [23:00:43]OFD Sender: No OFD packet to send [23:00:48]OFD Sender: No OFD packet to send [23:00:53]OFD Sender: No OFD packet to send [23:00:58]OFD Sender: No OFD packet to send [23:01:03]OFD Sender: No OFD packet to send [23:01:08]OFD Sender: No OFD packet to send [23:01:13]OFD Sender: No OFD packet to send [23:01:18]OFD Sender: No OFD packet to send [23:01:23]OFD Sender: No OFD packet to send [23:01:28]OFD Sender: No OFD packet to send [23:01:33]OFD Sender: No OFD packet to send [23:01:38]OFD Sender: No OFD packet to send [23:01:43]OFD Sender: No OFD packet to send [23:01:48]OFD Sender: No OFD packet to send [23:01:53]OFD Sender: No OFD packet to send [23:01:58]OFD Sender: No OFD packet to send [23:02:03]OFD Sender: No OFD packet to send [23:02:08]OFD Sender: No OFD packet to send [23:02:13]OFD Sender: No OFD packet to send [23:02:18]OFD Sender: No OFD packet to send [23:02:23]OFD Sender: No OFD packet to send [23:02:28]OFD Sender: No OFD packet to send [23:02:33]OFD Sender: No OFD packet to send [23:02:38]OFD Sender: No OFD packet to send [23:02:43]OFD Sender: No OFD packet to send [23:02:48]OFD Sender: No OFD packet to send [23:02:53]OFD Sender: No OFD packet to send [23:02:58]OFD Sender: No OFD packet to send [23:03:03]OFD Sender: No OFD packet to send [23:03:08]OFD Sender: No OFD packet to send [23:03:13]OFD Sender: No OFD packet to send [23:03:18]OFD Sender: No OFD packet to send [23:03:23]OFD Sender: No OFD packet to send [23:03:28]OFD Sender: No OFD packet to send [23:03:33]OFD Sender: No OFD packet to send [23:03:38]OFD Sender: No OFD packet to send [23:03:43]OFD Sender: No OFD packet to send [23:03:48]OFD Sender: No OFD packet to send [23:03:53]OFD Sender: No OFD packet to send [23:03:58]OFD Sender: No OFD packet to send [23:04:03]OFD Sender: No OFD packet to send [23:04:08]OFD Sender: No OFD packet to send [23:04:13]OFD Sender: No OFD packet to send [23:04:18]OFD Sender: No OFD packet to send [23:04:23]OFD Sender: No OFD packet to send [23:04:28]OFD Sender: No OFD packet to send [23:04:33]OFD Sender: No OFD packet to send [23:04:38]OFD Sender: No OFD packet to send [23:04:43]OFD Sender: No OFD packet to send [23:04:48]OFD Sender: No OFD packet to send [23:04:53]OFD Sender: No OFD packet to send [23:04:58]OFD Sender: No OFD packet to send [23:05:03]OFD Sender: No OFD packet to send [23:05:08]OFD Sender: No OFD packet to send [23:05:13]OFD Sender: No OFD packet to send [23:05:18]OFD Sender: No OFD packet to send [23:05:23]OFD Sender: No OFD packet to send [23:05:28]OFD Sender: No OFD packet to send [23:05:33]OFD Sender: No OFD packet to send [23:05:38]OFD Sender: No OFD packet to send [23:05:43]OFD Sender: No OFD packet to send [23:05:48]OFD Sender: No OFD packet to send [23:05:53]OFD Sender: No OFD packet to send [23:05:58]OFD Sender: No OFD packet to send [23:06:03]OFD Sender: No OFD packet to send [23:06:08]OFD Sender: No OFD packet to send [23:06:13]OFD Sender: No OFD packet to send [23:06:18]OFD Sender: No OFD packet to send [23:06:23]OFD Sender: No OFD packet to send [23:06:28]OFD Sender: No OFD packet to send [23:06:33]OFD Sender: No OFD packet to send [23:06:38]OFD Sender: No OFD packet to send [23:06:43]OFD Sender: No OFD packet to send [23:06:48]OFD Sender: No OFD packet to send [23:06:49]accept exits with 9 [23:06:49]New connection [23:06:49]New thread 3066801508 created [23:06:49]Thread 3066944868 joined [23:06:49]Waiting for new connection... [23:06:49] Sock 9.Parse request [23:06:49]Sock 9.Check first char [23:06:49]Sock 9.First char is OK [23:06:49]request: POST /json_proto HTTP/1.0 [23:06:49]Method: POST [23:06:49]URL: /json_proto [23:06:49]Method is POST - this is cgi request [23:06:49]url: /json_proto [23:06:49]query_string will be loaded in cgi processing [23:06:49]execute_cgi json_proto POST (null) [23:06:49]execute_cgi path=json_proto method=POST [23:06:49]POST find Content-Length [23:06:49]Host: 172.17.62.5:8080 [23:06:49]Content-Length: 677 [23:06:49]Content-Type: application/json [23:06:49] [23:06:49]POST finish read [23:06:49]Found Content-Length = 677 [23:06:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191522", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:06:49]execute_script... [23:06: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)191522", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:06:49]POST & json_proto [23:06:49]process_json_proto [23:06:49]json parsed OK: [23:06:49]protocol is kg_v1.0 [23:06:49]action value=close_receipt [23:06:49]process_action close_receipt [23:06:49]cmd_close_receipt [23:06:49]MH_GetDate [23:06:49]Write to MH i2c: F0 00 00 B6 18 BD [23:06:49]Write i2c OK [23:06:49]MH_I2C_Read... [23:06:49]Read from MH i2c: F0 [23:06:49]MH_I2C_Read... [23:06:49]Read from MH i2c: F0 09 00 [23:06:49]MH_I2C_Read... [23:06:49]Read from MH i2c: F0 09 00 B6 18 00 0B 9C 25 66 F4 E9 65 64 9E [23:06:49]GetLastDocTimeStamp 1713740241 [23:06:49]current date 1713740811 [23:06:49]FM_GetShiftState [23:06:49]SAM_PROTO_GetShiftState [23:06:49]wFMCommunicate request_size=4 [23:06:49]MH_SAM_APDU [23:06:49]CAPDU: 80 13 01 00 [23:06:49]Write to MH i2c: E2 08 00 B7 18 80 13 01 00 00 00 00 00 4C [23:06:49]Write i2c OK [23:06:49]MH_I2C_Read... [23:06:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:06:49]Read from MH i2c: E2 [23:06:49]MH_I2C_Read... [23:06:49]Read from MH i2c: E2 0E 00 [23:06:49]MH_I2C_Read... [23:06:49]Read from MH i2c: E2 0E 00 B7 18 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 93 [23:06:49]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [23:06:49]wFMCommunicate OK [23:06:49]SAM_PROTO_GetShiftState done [23:06:49]FM_GetShiftState done [23:06:49]opened in 1713658965 [23:06:49]opened+sec_in_day 1713745365 [23:06:49]quantity*price = 50038 [23:06:49]sum+1 = 50040 [23:06:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 229 21.04.2024 23:06 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76973 ФПД: 169994086417552 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T230651&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76973&fm=169994086417552&tin=02508201610067®Number=0000000000091573&sum=50000 [23:06:50]StoreToDocumentArchive [23:06:50]shift 372 fd 76973 [23:06:50]save to /storage/0372/doc_00076973 [23:06:50]save last doc name /storage/0372/doc_00076973 to /storage/kkm_last_doc_name [23:06:50]save OK [23:06:50]Clear old archive folders... [23:06:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:06:50]tlvbuf is 00CE2DF0 [23:06:50]SAM_PROTO_ClearQueue [23:06:51]wFMCommunicate request_size=4 [23:06:51]MH_SAM_APDU [23:06:51]CAPDU: 80 09 00 00 [23:06:51]Write to MH i2c: E2 08 00 C4 18 80 09 00 00 00 00 00 00 4E [23:06:51]Write i2c OK [23:06:51]MH_I2C_Read... [23:06:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:06:51]Read from MH i2c: E2 [23:06:51]MH_I2C_Read... [23:06:51]Read from MH i2c: E2 03 00 [23:06:51]MH_I2C_Read... [23:06:51]Read from MH i2c: E2 03 00 C4 18 00 90 00 50 [23:06:51]RAPDU: 90 00 [23:06:51]wFMCommunicate OK [23:06:51]SAM_PROTO_ClearQueue done [23:06:51]KKMCreateOFDPacket [23:06:51]OFDProtocolAddRootSTLVToBuf [23:06:51]FM_MakeSignedData [23:06:51]FM_MakeSignedData [23:06:51]SAM_PROTO_SignData [23:06:51]wFMCommunicate request_size=4 [23:06:51]MH_SAM_APDU [23:06:51]CAPDU: 80 0D 01 02 [23:06:51]Write to MH i2c: E2 08 00 C5 18 80 0D 01 02 00 00 00 00 56 [23:06:51]Write i2c OK [23:06:51]MH_I2C_Read... [23:06:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:06:51]Read from MH i2c: E2 [23:06:51]MH_I2C_Read... [23:06:51]Read from MH i2c: E2 03 00 [23:06:51]MH_I2C_Read... [23:06:51]Read from MH i2c: E2 03 00 C5 18 00 90 00 51 [23:06:51]RAPDU: 90 00 [23:06:51]wFMCommunicate OK [23:06:51]wFMCommunicate request_size=255 [23:06:51]MH_SAM_APDU [23:06: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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 0B 9C 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AD 2C 01 00 35 04 06 00 9A [23:06:51]Write to MH i2c: E2 02 01 C6 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 0B 9C 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AD 2C 01 00 35 04 06 00 9A 00 00 0B [23:06:51]Write i2c OK [23:06:51]MH_I2C_Read... [23:06:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:06:51]Read from MH i2c: E2 [23:06:51]MH_I2C_Read... [23:06:51]Read from MH i2c: E2 03 00 [23:06:51]MH_I2C_Read... [23:06:51]Read from MH i2c: E2 03 00 C6 18 00 90 00 52 [23:06:51]RAPDU: 90 00 [23:06:51]wFMCommunicate OK [23:06:51]wFMCommunicate request_size=10 [23:06:51]MH_SAM_APDU [23:06:51]CAPDU: 80 0D 02 02 05 9B D5 22 84 90 [23:06:51]Write to MH i2c: E2 0D 00 C7 18 80 0D 02 02 05 00 9B D5 22 84 90 00 00 09 [23:06:51]Write i2c OK [23:06:51]MH_I2C_Read... [23:06:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:06:51]Read from MH i2c: E2 [23:06:51]MH_I2C_Read... [23:06:51]Read from MH i2c: E2 03 00 [23:06:51]MH_I2C_Read... [23:06:51]Read from MH i2c: E2 03 00 C7 18 00 90 00 53 [23:06:51]RAPDU: 90 00 [23:06:51]wFMCommunicate OK [23:06:51]wFMCommunicate request_size=4 [23:06:51]MH_SAM_APDU [23:06:51]CAPDU: 80 0D 03 02 [23:06:51]Write to MH i2c: E2 08 00 C8 18 80 0D 03 02 00 00 00 00 5B [23:06:51]Write i2c OK [23:06:51]MH_I2C_Read... [23:06:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:06:51]Read from MH i2c: E2 [23:06:51]MH_I2C_Read... [23:06:51]Read from MH i2c: E2 0B 00 [23:06:51]MH_I2C_Read... [23:06:51]Read from MH i2c: E2 0B 00 C8 18 00 05 A3 95 96 C8 24 B8 FE 90 00 D1 [23:06:51]RAPDU: 05 A3 95 96 C8 24 B8 FE 90 00 [23:06:51]wFMCommunicate OK [23:06:51]SAM_PROTO_SignData done [23:06:51]FM_MakeSignedData done [23:06:51]CreateOFDProtocolMessage [23:06:51]wFMCommunicate request_size=4 [23:06:51]MH_SAM_APDU [23:06:51]CAPDU: 80 11 00 00 [23:06:51]Write to MH i2c: E2 08 00 C9 18 80 11 00 00 00 00 00 00 5B [23:06:51]Write i2c OK [23:06:51]MH_I2C_Read... [23:06:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:06:51]Read from MH i2c: E2 [23:06:51]MH_I2C_Read... [23:06:51]Read from MH i2c: E2 17 00 [23:06:51]MH_I2C_Read... [23:06:51]Read from MH i2c: E2 17 00 C9 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 AE [23:06:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [23:06:51]wFMCommunicate OK [23:06:51]CreateOFDProtocolMessage done [23:06:51]OFDSenderStorePacket 76973 [23:06:51]StoreOFDPacket docnum=76973 [23:06:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 F9 69 07 01 00 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 0B 9C 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AD 2C 01 00 35 04 06 00 9A 9B D5 22 84 90 05 A3 95 96 C8 24 B8 FE [23:06:51]CheckFolder [23:06:51]dirname=/storage/ofd_packets [23:06:51]CheckFolder done [23:06:51]ProducePacketName [23:06:51]name=ofd_packets/00076973 [23:06:51]NVStorageSaveData ofd_packets/00076973 [23:06:51]File name is /storage/ofd_packets/00076973 [23:06:51]Write 301 bytes [23:06:51]NVStorageSaveData done [23:06:51]OFDSenderStorePacket done [23:06:51]KKMCreateOFDPacket done [23:06:51]NVStorageSaveData kkm_last_timestamp [23:06:51]File name is /storage/kkm_last_timestamp [23:06:51]Write 4 bytes [23:06:51]NVStorageSaveData done [23:06:51]ExternCall_PrintAddStr [23:06:51]wPrintStart [23:06:51]Write to MH i2c: 01 00 00 CA 18 E2 [23:06:51]Write i2c OK [23:06:51]MH_I2C_Read... [23:06:51]Read from MH i2c: 01 [23:06:51]MH_I2C_Read... [23:06:51]Read from MH i2c: 01 07 00 [23:06:51]MH_I2C_Read... [23:06:51]Read from MH i2c: 01 07 00 CA 18 00 00 00 00 00 FF 0F F7 [23:06:51]RasterBufferAndPrint [23:06:51]line Счет N : (1)191522 [23:06:51]line ИНН: 02508201610067 [23:06:51]line Контрольно-Кассовый Чек [23:06:51]line ПРОДАЖА [23:06:51]line ТРК (МРК, ГНК) : 22 [23:06:51]line Товар: 2710124130 [23:06:51]line Аи-92-К-5 [23:06:51]line 7.770 * 64.40 [23:06:51]line = 500.39 [23:06:51]line НДС 12% НСП 1% [23:06:51]line > о реализуемом товаре [23:06:51]line ОКРУГЛЕНИЕ: -0.39 [23:06:51]line ИТОГО: 500.00 [23:06:51]line Внесено: 500.00 [23:06:51]line СДАЧА: 0.00 [23:06:51]line НСП 1% : 4.43 [23:06:51]line НДС 12% : 53.14 [23:06:51]line Наличными: 500.00 [23:06:51]line Безнал.: 0.00 [23:06:51]line Место: АЗС № 106 "Партнер Нефть" [23:06:51]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [23:06:51]line СНО: Общий режим [23:06:51]line Чек 229 21.04.2024 23:06 [23:06:51]line Смена: 372 ФФД: 1.0 [23:06:51]line ЗНМ: 0300000141 [23:06:51]line РНМ: 0000000000091573 [23:06:51]line Версия ККМ: 001 [23:06:51]line ФМ: 0000000000874652 [23:06:51]line ФД: 76973 [23:06:51]line ФПД: 169994086417552 [23:06:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T230651&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76973&fm=169994086417552&tin=02508201610067®Number=0000000000091573&sum=50000 [23:06:51]OFD Sender: Processing packet 76973 [packets to send 129, broken 128] [23:06:51]ProducePacketName [23:06:51]name=ofd_packets/00076973 [23:06:51]OFD Sender: To server: pG, [23:06:51]CommunicateWithHost lk.salyk.kg:30040 [23:06:51]ConnectInit lk.salyk.kg [23:06:51]written 0, free lines is 4095 [23:06:52]Connected sock=10 [23:06:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 F9 69 07 01 00 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 0B 9C 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AD 2C 01 00 35 04 06 00 9A 9B D5 22 84 90 05 A3 95 96 C8 24 B8 FE [23:06:52]Write to MH i2c: 01 00 00 F4 18 0C [23:06:52]Write i2c OK [23:06:52]MH_I2C_Read... [23:06:52]Read from MH i2c: 01 [23:06:52]MH_I2C_Read... [23:06:52]Read from MH i2c: 01 07 00 [23:06:52]MH_I2C_Read... [23:06:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 AC 87 47 00 47 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AD 2C 01 00 F4 03 04 00 8F 43 25 66 B6 04 01 00 00 5E B1 0A 1F 02 01 79 01 [23:06:52]CommunicateWithHost err = 0 [23:06:52]CheckOFDResponse [23:06:52]1017 (14) - 77093643461234 [23:06:52]1041 (16) - 0000000000874652 [23:06:52]1040 (4) - 76973 [23:06:52]1012 (4) - 21.04.2024 16:49 [23:06:52]1206 (1) - 0 [23:06:52]OFD Sender: Remove packet 76973 [23:06:52]ProducePacketName [23:06:52]name=ofd_packets/00076973 [23:06:52]NVStorageDeleteData [23:06:52]Read from MH i2c: 01 07 00 F4 18 00 00 00 00 00 E6 0C 05 [23:06:52]RasterBufferAndPrint [23:06:52]line [23:06:52]line [23:06:52]line [23:06:52]line [23:06:52]line [23:06:52]written 0, free lines is 3314 [23:06:52]MH_Cut [23:06:52]Write to MH i2c: D1 01 00 FB 18 01 E5 [23:06:52]Write i2c OK [23:06:52]MH_I2C_Read... [23:06:52]Read from MH i2c: D1 [23:06:52]MH_I2C_Read... [23:06:52]Read from MH i2c: D1 01 00 [23:06:52]MH_I2C_Read... [23:06:52]Read from MH i2c: D1 01 00 FB 18 00 E4 [23:06:52]Write to MH i2c: 01 00 00 FC 18 14 [23:06:52]Write i2c OK [23:06:52]MH_I2C_Read... [23:06:52]OFD Sender: No OFD packet to send [23:06:53]*** Cut start [23:06:53]*** Partial cut [23:06:53]*** CUTSNS_PIN = 1 [23:06:53]*** CUTSNS_PIN = 0 [23:06:53]*** Brake cut motor [23:06:53]Read from MH i2c: 01 [23:06:53]MH_I2C_Read... [23:06:53]*** Stop cut motor [23:06:53]*** Cut end [23:06:53]Read from MH i2c: 01 07 00 [23:06:53]MH_I2C_Read... [23:06:53]Read from MH i2c: 01 07 00 FC 18 00 00 00 00 00 FF 0F 29 [23:06:53]process_action close_receipt done [23:06:53]requested_data is exist [23:06:53]produce_requested_data [23:06:53]requested_item fm.sn is exist - process it [23:06:53]wFMCommunicate request_size=4 [23:06:53]MH_SAM_APDU [23:06:53]CAPDU: 80 11 00 00 [23:06:53]Write to MH i2c: E2 08 00 FD 18 80 11 00 00 00 00 00 00 8F [23:06:53]Write i2c OK [23:06:53]MH_I2C_Read... [23:06:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:06:53]Read from MH i2c: E2 [23:06:53]MH_I2C_Read... [23:06:53]Read from MH i2c: E2 17 00 [23:06:53]MH_I2C_Read... [23:06:53]Read from MH i2c: E2 17 00 FD 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 E2 [23:06:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [23:06:53]wFMCommunicate OK [23:06:53]requested_item fd.num is exist - process it [23:06:53]SAM_PROTO_GetFieldsCounters [23:06:53]wFMCommunicate request_size=4 [23:06:53]MH_SAM_APDU [23:06:53]CAPDU: 80 13 00 00 [23:06:53]Write to MH i2c: E2 08 00 FE 18 80 13 00 00 00 00 00 00 92 [23:06:53]Write i2c OK [23:06:53]MH_I2C_Read... [23:06:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:06:53]Read from MH i2c: E2 [23:06:53]MH_I2C_Read... [23:06:53]Read from MH i2c: E2 62 00 [23:06:53]MH_I2C_Read... [23:06:53]Read from MH i2c: E2 62 00 FE 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 AD 2C 01 00 0E 04 04 00 74 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 B1 [23:06: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 AD 2C 01 00 0E 04 04 00 74 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 [23:06:53]wFMCommunicate OK [23:06:53]SAM_PROTO_GetFieldsCounters done [23:06:53]requested_item shift.num is exist - process it [23:06:53]requested_item shift.opened is exist - process it [23:06:53]req_shift_opened [23:06:53]FM_GetShiftState [23:06:53]SAM_PROTO_GetShiftState [23:06:53]wFMCommunicate request_size=4 [23:06:53]MH_SAM_APDU [23:06:53]CAPDU: 80 13 01 00 [23:06:53]Write to MH i2c: E2 08 00 FF 18 80 13 01 00 00 00 00 00 94 [23:06:53]Write i2c OK [23:06:53]MH_I2C_Read... [23:06:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:06:53]Read from MH i2c: E2 [23:06:53]MH_I2C_Read... [23:06:53]Read from MH i2c: E2 0E 00 [23:06:53]MH_I2C_Read... [23:06:53]Read from MH i2c: E2 0E 00 FF 18 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 DB [23:06:53]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [23:06:53]wFMCommunicate OK [23:06:53]SAM_PROTO_GetShiftState done [23:06:53]FM_GetShiftState done [23:06:53]req_shift_opened done [23:06:53]requested_item shift.open_date is exist - process it [23:06:53]req_shift_open_date [23:06:53]req_shift_open_date done [23:06:53]produce_requested_data done [23:06:53]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76973,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [23:06:53]process_action_free close_receipt [23:06:53]json_value_free [23:06:53]json_value_free done [23:06:53]process_json_proto returns [23:06:53]Send response to host [23:06:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76973,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [23:06:53]free response buf [23:06:53]execute_script done [23:06:53]execute_script returns [23:06:53]free content buf [23:06:53]Sock 9.Close socket [23:06:53]Sock 9.Thread stoped [23:06:57]OFD Sender: No OFD packet to send [23:07:02]OFD Sender: No OFD packet to send [23:07:07]OFD Sender: No OFD packet to send [23:07:12]OFD Sender: No OFD packet to send [23:07:17]OFD Sender: No OFD packet to send [23:07:22]OFD Sender: No OFD packet to send [23:07:27]OFD Sender: No OFD packet to send [23:07:32]OFD Sender: No OFD packet to send [23:07:37]OFD Sender: No OFD packet to send [23:07:42]OFD Sender: No OFD packet to send [23:07:47]OFD Sender: No OFD packet to send [23:07:52]OFD Sender: No OFD packet to send [23:07:57]OFD Sender: No OFD packet to send [23:08:02]OFD Sender: No OFD packet to send [23:08:07]OFD Sender: No OFD packet to send [23:08:12]OFD Sender: No OFD packet to send [23:08:17]OFD Sender: No OFD packet to send [23:08:22]OFD Sender: No OFD packet to send [23:08:27]OFD Sender: No OFD packet to send [23:08:32]OFD Sender: No OFD packet to send [23:08:37]OFD Sender: No OFD packet to send [23:08:42]OFD Sender: No OFD packet to send [23:08:47]OFD Sender: No OFD packet to send [23:08:52]OFD Sender: No OFD packet to send [23:08:57]OFD Sender: No OFD packet to send [23:09:02]OFD Sender: No OFD packet to send [23:09:07]OFD Sender: No OFD packet to send [23:09:12]OFD Sender: No OFD packet to send [23:09:17]OFD Sender: No OFD packet to send [23:09:22]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:02]accept exits with 8 [23:13:02]New connection [23:13:02]New thread 3066944868 created [23:13:02]Thread 3066801508 joined [23:13:02]Waiting for new connection... [23:13:02] Sock 8.Parse request [23:13:02]Sock 8.Check first char [23:13:02]Sock 8.First char is OK [23:13:02]request: POST /json_proto HTTP/1.0 [23:13:02]Method: POST [23:13:02]URL: /json_proto [23:13:02]Method is POST - this is cgi request [23:13:02]url: /json_proto [23:13:02]query_string will be loaded in cgi processing [23:13:02]execute_cgi json_proto POST (null) [23:13:02]execute_cgi path=json_proto method=POST [23:13:02]POST find Content-Length [23:13:02]Host: 172.17.62.5:8080 [23:13:02]Content-Length: 682 [23:13:02]Content-Type: application/json [23:13:02] [23:13:02]POST finish read [23:13:02]Found Content-Length = 682 [23:13:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191524", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 23.300, "sum" : 1500.52, "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" ] } } [23:13:02]execute_script... [23:13: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)191524", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 23.300, "sum" : 1500.52, "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" ] } } [23:13:02]POST & json_proto [23:13:02]process_json_proto [23:13:02]json parsed OK: [23:13:02]protocol is kg_v1.0 [23:13:02]action value=close_receipt [23:13:02]process_action close_receipt [23:13:02]cmd_close_receipt [23:13:02]MH_GetDate [23:13:02]Write to MH i2c: F0 00 00 00 19 08 [23:13:02]Write i2c OK [23:13:02]MH_I2C_Read... [23:13:02]Read from MH i2c: F0 [23:13:02]MH_I2C_Read... [23:13:02]Read from MH i2c: F0 09 00 [23:13:02]MH_I2C_Read... [23:13:02]Read from MH i2c: F0 09 00 00 19 00 80 9D 25 66 F4 E9 65 64 5F [23:13:02]GetLastDocTimeStamp 1713740811 [23:13:02]current date 1713741184 [23:13:02]FM_GetShiftState [23:13:02]SAM_PROTO_GetShiftState [23:13:02]wFMCommunicate request_size=4 [23:13:02]MH_SAM_APDU [23:13:02]CAPDU: 80 13 01 00 [23:13:02]Write to MH i2c: E2 08 00 01 19 80 13 01 00 00 00 00 00 97 [23:13:02]Write i2c OK [23:13:02]MH_I2C_Read... [23:13:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:13:03]Read from MH i2c: E2 [23:13:03]MH_I2C_Read... [23:13:03]Read from MH i2c: E2 0E 00 [23:13:03]MH_I2C_Read... [23:13:03]Read from MH i2c: E2 0E 00 01 19 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 DE [23:13:03]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [23:13:03]wFMCommunicate OK [23:13:03]SAM_PROTO_GetShiftState done [23:13:03]FM_GetShiftState done [23:13:03]opened in 1713658965 [23:13:03]opened+sec_in_day 1713745365 [23:13:03]quantity*price = 150052 [23:13:03]sum+1 = 150053 [23:13:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 230 21.04.2024 23:13 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76974 ФПД: 43662103355102 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T231304&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76974&fm=43662103355102&tin=02508201610067®Number=0000000000091573&sum=150000 [23:13:04]StoreToDocumentArchive [23:13:04]shift 372 fd 76974 [23:13:04]save to /storage/0372/doc_00076974 [23:13:04]save last doc name /storage/0372/doc_00076974 to /storage/kkm_last_doc_name [23:13:04]save OK [23:13:04]Clear old archive folders... [23:13:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:13:04]tlvbuf is 00CAFA20 [23:13:04]SAM_PROTO_ClearQueue [23:13:04]wFMCommunicate request_size=4 [23:13:04]MH_SAM_APDU [23:13:04]CAPDU: 80 09 00 00 [23:13:04]Write to MH i2c: E2 08 00 0E 19 80 09 00 00 00 00 00 00 99 [23:13:04]Write i2c OK [23:13:04]MH_I2C_Read... [23:13:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:13:04]Read from MH i2c: E2 [23:13:04]MH_I2C_Read... [23:13:04]Read from MH i2c: E2 03 00 [23:13:04]MH_I2C_Read... [23:13:04]Read from MH i2c: E2 03 00 0E 19 00 90 00 9B [23:13:04]RAPDU: 90 00 [23:13:04]wFMCommunicate OK [23:13:04]SAM_PROTO_ClearQueue done [23:13:04]KKMCreateOFDPacket [23:13:04]OFDProtocolAddRootSTLVToBuf [23:13:04]FM_MakeSignedData [23:13:04]FM_MakeSignedData [23:13:04]SAM_PROTO_SignData [23:13:04]wFMCommunicate request_size=4 [23:13:04]MH_SAM_APDU [23:13:04]CAPDU: 80 0D 01 02 [23:13:04]Write to MH i2c: E2 08 00 0F 19 80 0D 01 02 00 00 00 00 A1 [23:13:04]Write i2c OK [23:13:04]MH_I2C_Read... [23:13:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:13:04]Read from MH i2c: E2 [23:13:04]MH_I2C_Read... [23:13:04]Read from MH i2c: E2 03 00 [23:13:04]MH_I2C_Read... [23:13:04]Read from MH i2c: E2 03 00 0F 19 00 90 00 9C [23:13:04]RAPDU: 90 00 [23:13:04]wFMCommunicate OK [23:13:04]wFMCommunicate request_size=255 [23:13:04]MH_SAM_APDU [23:13:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 04 5B 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 24 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 80 9D 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AE 2C 01 00 35 04 06 00 27 [23:13:04]Write to MH i2c: E2 02 01 10 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 04 5B 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 24 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 80 9D 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AE 2C 01 00 35 04 06 00 27 00 00 E8 [23:13:04]Write i2c OK [23:13:04]MH_I2C_Read... [23:13:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:13:04]Read from MH i2c: E2 [23:13:04]MH_I2C_Read... [23:13:04]Read from MH i2c: E2 03 00 [23:13:04]MH_I2C_Read... [23:13:04]Read from MH i2c: E2 03 00 10 19 00 90 00 9D [23:13:04]RAPDU: 90 00 [23:13:04]wFMCommunicate OK [23:13:04]wFMCommunicate request_size=10 [23:13:04]MH_SAM_APDU [23:13:04]CAPDU: 80 0D 02 02 05 B5 E0 29 1E DE [23:13:04]Write to MH i2c: E2 0D 00 11 19 80 0D 02 02 05 00 B5 E0 29 1E DE 00 00 68 [23:13:04]Write i2c OK [23:13:04]MH_I2C_Read... [23:13:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:13:04]Read from MH i2c: E2 [23:13:04]MH_I2C_Read... [23:13:04]Read from MH i2c: E2 03 00 [23:13:04]MH_I2C_Read... [23:13:04]Read from MH i2c: E2 03 00 11 19 00 90 00 9E [23:13:04]RAPDU: 90 00 [23:13:04]wFMCommunicate OK [23:13:04]wFMCommunicate request_size=4 [23:13:04]MH_SAM_APDU [23:13:04]CAPDU: 80 0D 03 02 [23:13:04]Write to MH i2c: E2 08 00 12 19 80 0D 03 02 00 00 00 00 A6 [23:13:04]Write i2c OK [23:13:04]MH_I2C_Read... [23:13:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:13:04]Read from MH i2c: E2 [23:13:04]MH_I2C_Read... [23:13:04]Read from MH i2c: E2 0B 00 [23:13:04]MH_I2C_Read... [23:13:04]Read from MH i2c: E2 0B 00 12 19 00 BB 28 5E 7D 6C EE 83 7D 90 00 BF [23:13:04]RAPDU: BB 28 5E 7D 6C EE 83 7D 90 00 [23:13:04]wFMCommunicate OK [23:13:04]SAM_PROTO_SignData done [23:13:04]FM_MakeSignedData done [23:13:04]CreateOFDProtocolMessage [23:13:04]wFMCommunicate request_size=4 [23:13:04]MH_SAM_APDU [23:13:04]CAPDU: 80 11 00 00 [23:13:04]Write to MH i2c: E2 08 00 13 19 80 11 00 00 00 00 00 00 A6 [23:13:04]Write i2c OK [23:13:04]MH_I2C_Read... [23:13:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:13:04]Read from MH i2c: E2 [23:13:04]MH_I2C_Read... [23:13:04]Read from MH i2c: E2 17 00 [23:13:04]MH_I2C_Read... [23:13:04]Read from MH i2c: E2 17 00 13 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F9 [23:13:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [23:13:04]wFMCommunicate OK [23:13:04]CreateOFDProtocolMessage done [23:13:04]OFDSenderStorePacket 76974 [23:13:04]StoreOFDPacket docnum=76974 [23:13:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 B3 51 07 01 5F 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 04 5B 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 24 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 80 9D 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AE 2C 01 00 35 04 06 00 27 B5 E0 29 1E DE BB 28 5E 7D 6C EE 83 7D [23:13:04]CheckFolder [23:13:04]dirname=/storage/ofd_packets [23:13:04]CheckFolder done [23:13:04]ProducePacketName [23:13:04]name=ofd_packets/00076974 [23:13:04]NVStorageSaveData ofd_packets/00076974 [23:13:04]File name is /storage/ofd_packets/00076974 [23:13:04]Write 301 bytes [23:13:04]NVStorageSaveData done [23:13:04]OFDSenderStorePacket done [23:13:04]KKMCreateOFDPacket done [23:13:04]NVStorageSaveData kkm_last_timestamp [23:13:04]File name is /storage/kkm_last_timestamp [23:13:04]Write 4 bytes [23:13:04]NVStorageSaveData done [23:13:04]ExternCall_PrintAddStr [23:13:04]wPrintStart [23:13:04]Write to MH i2c: 01 00 00 14 19 2D [23:13:04]Write i2c OK [23:13:04]MH_I2C_Read... [23:13:04]Read from MH i2c: 01 [23:13:04]MH_I2C_Read... [23:13:04]Read from MH i2c: 01 07 00 [23:13:04]MH_I2C_Read... [23:13:04]Read from MH i2c: 01 07 00 14 19 00 00 00 00 00 FF 0F 42 [23:13:04]RasterBufferAndPrint [23:13:04]line Счет N : (1)191524 [23:13:04]line ИНН: 02508201610067 [23:13:04]line Контрольно-Кассовый Чек [23:13:04]line ПРОДАЖА [23:13:04]line ТРК (МРК, ГНК) : 22 [23:13:04]line Товар: 2710124130 [23:13:04]line Аи-92-К-5 [23:13:04]line 23.300 * 64.40 [23:13:04]line = 1500.52 [23:13:04]line НДС 12% НСП 1% [23:13:04]line > о реализуемом товаре [23:13:04]line ОКРУГЛЕНИЕ: -0.52 [23:13:04]line ИТОГО: 1500.00 [23:13:04]line Внесено: 1500.00 [23:13:04]line СДАЧА: 0.00 [23:13:04]line НСП 1% : 13.28 [23:13:04]line НДС 12% : 159.35 [23:13:04]line Наличными: 1500.00 [23:13:04]line Безнал.: 0.00 [23:13:04]line Место: АЗС № 106 "Партнер Нефть" [23:13:04]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [23:13:04]line СНО: Общий режим [23:13:04]line Чек 230 21.04.2024 23:13 [23:13:04]line Смена: 372 ФФД: 1.0 [23:13:04]line ЗНМ: 0300000141 [23:13:04]line РНМ: 0000000000091573 [23:13:04]line Версия ККМ: 001 [23:13:04]line ФМ: 0000000000874652 [23:13:04]line ФД: 76974 [23:13:04]line ФПД: 43662103355102 [23:13:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T231304&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76974&fm=43662103355102&tin=02508201610067®Number=0000000000091573&sum=150000 [23:13:05]OFD Sender: Processing packet 76974 [packets to send 129, broken 128] [23:13:05]ProducePacketName [23:13:05]name=ofd_packets/00076974 [23:13:05]OFD Sender: To server: pG, [23:13:05]CommunicateWithHost lk.salyk.kg:30040 [23:13:05]ConnectInit lk.salyk.kg [23:13:05]written 0, free lines is 4095 [23:13:05]Connected sock=10 [23:13:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 B3 51 07 01 5F 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 04 5B 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 24 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 80 9D 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AE 2C 01 00 35 04 06 00 27 B5 E0 29 1E DE BB 28 5E 7D 6C EE 83 7D [23:13:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 78 81 47 00 C9 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 34 36 35 32 10 04 04 00 AE 2C 01 00 F4 03 04 00 04 45 25 66 B6 04 01 00 00 5D CC 70 AA 6E 2D 9A 90 [23:13:05]CommunicateWithHost err = 0 [23:13:05]CheckOFDResponse [23:13:05]1017 (14) - 77093643461234 [23:13:05]1041 (16) - 0000000000874652 [23:13:05]1040 (4) - 76974 [23:13:05]1012 (4) - 21.04.2024 16:55 [23:13:05]1206 (1) - 0 [23:13:05]OFD Sender: Remove packet 76974 [23:13:05]ProducePacketName [23:13:05]name=ofd_packets/00076974 [23:13:05]NVStorageDeleteData [23:13:05]Write to MH i2c: 01 00 00 3E 19 57 [23:13:05]Write i2c OK [23:13:05]MH_I2C_Read... [23:13:05]Read from MH i2c: 01 [23:13:05]MH_I2C_Read... [23:13:05]Read from MH i2c: 01 07 00 [23:13:05]MH_I2C_Read... [23:13:05]Read from MH i2c: 01 07 00 3E 19 00 00 00 00 00 FA 0C 64 [23:13:05]RasterBufferAndPrint [23:13:05]line [23:13:05]line [23:13:05]line [23:13:05]line [23:13:05]line [23:13:05]written 0, free lines is 3328 [23:13:05]MH_Cut [23:13:05]Write to MH i2c: D1 01 00 45 19 01 30 [23:13:05]Write i2c OK [23:13:05]MH_I2C_Read... [23:13:05]Read from MH i2c: D1 [23:13:05]MH_I2C_Read... [23:13:05]Read from MH i2c: D1 01 00 [23:13:05]MH_I2C_Read... [23:13:05]Read from MH i2c: D1 01 00 45 19 00 2F [23:13:05]Write to MH i2c: 01 00 00 46 19 5F [23:13:05]Write i2c OK [23:13:05]MH_I2C_Read... [23:13:05]OFD Sender: No OFD packet to send [23:13:06]*** Cut start [23:13:06]*** Partial cut [23:13:06]*** CUTSNS_PIN = 1 [23:13:06]*** CUTSNS_PIN = 0 [23:13:06]*** Brake cut motor [23:13:06]Read from MH i2c: 01 [23:13:06]MH_I2C_Read... [23:13:06]*** Stop cut motor [23:13:06]*** Cut end [23:13:06]Read from MH i2c: 01 07 00 [23:13:06]MH_I2C_Read... [23:13:06]Read from MH i2c: 01 07 00 46 19 00 00 00 00 00 FF 0F 74 [23:13:06]process_action close_receipt done [23:13:06]requested_data is exist [23:13:06]produce_requested_data [23:13:06]requested_item fm.sn is exist - process it [23:13:06]wFMCommunicate request_size=4 [23:13:06]MH_SAM_APDU [23:13:06]CAPDU: 80 11 00 00 [23:13:06]Write to MH i2c: E2 08 00 47 19 80 11 00 00 00 00 00 00 DA [23:13:06]Write i2c OK [23:13:06]MH_I2C_Read... [23:13:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:13:06]Read from MH i2c: E2 [23:13:06]MH_I2C_Read... [23:13:06]Read from MH i2c: E2 17 00 [23:13:06]MH_I2C_Read... [23:13:06]Read from MH i2c: E2 17 00 47 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 2D [23:13:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [23:13:06]wFMCommunicate OK [23:13:06]requested_item fd.num is exist - process it [23:13:06]SAM_PROTO_GetFieldsCounters [23:13:06]wFMCommunicate request_size=4 [23:13:06]MH_SAM_APDU [23:13:06]CAPDU: 80 13 00 00 [23:13:06]Write to MH i2c: E2 08 00 48 19 80 13 00 00 00 00 00 00 DD [23:13:06]Write i2c OK [23:13:06]MH_I2C_Read... [23:13:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:13:07]Read from MH i2c: E2 [23:13:07]MH_I2C_Read... [23:13:07]Read from MH i2c: E2 62 00 [23:13:07]MH_I2C_Read... [23:13:07]Read from MH i2c: E2 62 00 48 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 AE 2C 01 00 0E 04 04 00 74 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 00 [23:13:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 AE 2C 01 00 0E 04 04 00 74 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 [23:13:07]wFMCommunicate OK [23:13:07]SAM_PROTO_GetFieldsCounters done [23:13:07]requested_item shift.num is exist - process it [23:13:07]requested_item shift.opened is exist - process it [23:13:07]req_shift_opened [23:13:07]FM_GetShiftState [23:13:07]SAM_PROTO_GetShiftState [23:13:07]wFMCommunicate request_size=4 [23:13:07]MH_SAM_APDU [23:13:07]CAPDU: 80 13 01 00 [23:13:07]Write to MH i2c: E2 08 00 49 19 80 13 01 00 00 00 00 00 DF [23:13:07]Write i2c OK [23:13:07]MH_I2C_Read... [23:13:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:13:07]Read from MH i2c: E2 [23:13:07]MH_I2C_Read... [23:13:07]Read from MH i2c: E2 0E 00 [23:13:07]MH_I2C_Read... [23:13:07]Read from MH i2c: E2 0E 00 49 19 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 26 [23:13:07]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [23:13:07]wFMCommunicate OK [23:13:07]SAM_PROTO_GetShiftState done [23:13:07]FM_GetShiftState done [23:13:07]req_shift_opened done [23:13:07]requested_item shift.open_date is exist - process it [23:13:07]req_shift_open_date [23:13:07]req_shift_open_date done [23:13:07]produce_requested_data done [23:13:07]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76974,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [23:13:07]process_action_free close_receipt [23:13:07]json_value_free [23:13:07]json_value_free done [23:13:07]process_json_proto returns [23:13:07]Send response to host [23:13:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76974,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [23:13:07]free response buf [23:13:07]execute_script done [23:13:07]execute_script returns [23:13:07]free content buf [23:13:07]Sock 8.Close socket [23:13:07]Sock 8.Thread stoped [23:13:10]OFD Sender: No OFD packet to send [23:13:15]OFD Sender: No OFD packet to send [23:13:20]OFD Sender: No OFD packet to send [23:13:25]OFD Sender: No OFD packet to send [23:13:30]OFD Sender: No OFD packet to send [23:13:35]OFD Sender: No OFD packet to send [23:13:40]OFD Sender: No OFD packet to send [23:13:45]OFD Sender: No OFD packet to send [23:13:50]OFD Sender: No OFD packet to send [23:13:55]OFD Sender: No OFD packet to send [23:14:00]OFD Sender: No OFD packet to send [23:14:05]OFD Sender: No OFD packet to send [23:14:10]OFD Sender: No OFD packet to send [23:14:15]OFD Sender: No OFD packet to send [23:14:20]OFD Sender: No OFD packet to send [23:14:25]OFD Sender: No OFD packet to send [23:14:30]OFD Sender: No OFD packet to send [23:14:35]OFD Sender: No OFD packet to send [23:14:40]OFD Sender: No OFD packet to send [23:14:45]OFD Sender: No OFD packet to send [23:14:50]OFD Sender: No OFD packet to send [23:14:55]OFD Sender: No OFD packet to send [23:14:56]accept exits with 9 [23:14:56]New connection [23:14:56]New thread 3066801508 created [23:14:56]Thread 3066944868 joined [23:14:56]Waiting for new connection... [23:14:56] Sock 9.Parse request [23:14:56]Sock 9.Check first char [23:14:56]Sock 9.First char is OK [23:14:56]request: POST /json_proto HTTP/1.0 [23:14:56]Method: POST [23:14:56]URL: /json_proto [23:14:56]Method is POST - this is cgi request [23:14:56]url: /json_proto [23:14:56]query_string will be loaded in cgi processing [23:14:56]execute_cgi json_proto POST (null) [23:14:56]execute_cgi path=json_proto method=POST [23:14:56]POST find Content-Length [23:14:56]Host: 172.17.62.5:8080 [23:14:56]Content-Length: 990 [23:14:56]Content-Type: application/json [23:14:56] [23:14:56]POST finish read [23:14:56]Found Content-Length = 990 [23:14:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191523", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 37.860, "sum" : 1200.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 37.86 \u0441\u043E\u043C", "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" ] } } [23:14:56]execute_script... [23:14: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)191523", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 37.860, "sum" : 1200.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 37.86 \u0441\u043E\u043C", "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" ] } } [23:14:56]POST & json_proto [23:14:56]process_json_proto [23:14:56]json parsed OK: [23:14:56]protocol is kg_v1.0 [23:14:56]action value=close_receipt [23:14:56]process_action close_receipt [23:14:56]cmd_close_receipt [23:14:56]MH_GetDate [23:14:56]Write to MH i2c: F0 00 00 4A 19 52 [23:14:56]Write i2c OK [23:14:56]MH_I2C_Read... [23:14:56]Read from MH i2c: F0 [23:14:56]MH_I2C_Read... [23:14:56]Read from MH i2c: F0 09 00 [23:14:56]MH_I2C_Read... [23:14:56]Read from MH i2c: F0 09 00 4A 19 00 F2 9D 25 66 F4 E9 65 64 1B [23:14:56]GetLastDocTimeStamp 1713741184 [23:14:56]current date 1713741298 [23:14:56]FM_GetShiftState [23:14:56]SAM_PROTO_GetShiftState [23:14:56]wFMCommunicate request_size=4 [23:14:56]MH_SAM_APDU [23:14:56]CAPDU: 80 13 01 00 [23:14:56]Write to MH i2c: E2 08 00 4B 19 80 13 01 00 00 00 00 00 E1 [23:14:56]Write i2c OK [23:14:56]MH_I2C_Read... [23:14:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:14:56]Read from MH i2c: E2 [23:14:56]MH_I2C_Read... [23:14:56]Read from MH i2c: E2 0E 00 [23:14:56]MH_I2C_Read... [23:14:56]Read from MH i2c: E2 0E 00 4B 19 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 28 [23:14:56]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [23:14:56]wFMCommunicate OK [23:14:56]SAM_PROTO_GetShiftState done [23:14:56]FM_GetShiftState done [23:14:56]opened in 1713658965 [23:14:56]opened+sec_in_day 1713745365 [23:14:56]quantity*price = 120016 [23:14:56]sum+1 = 120017 [23:14:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 231 21.04.2024 23:14 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 37.86 сом ФМ: 0000000000874652 ФД: 76975 ФПД: 175605526946045 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T231458&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76975&fm=175605526946045&tin=02508201610067®Number=0000000000091573&sum=120000 [23:14:57]StoreToDocumentArchive [23:14:57]shift 372 fd 76975 [23:14:57]save to /storage/0372/doc_00076975 [23:14:57]save last doc name /storage/0372/doc_00076975 to /storage/kkm_last_doc_name [23:14:57]save OK [23:14:57]Clear old archive folders... [23:14:57]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:14:57]tlvbuf is B6EBFEB0 [23:14:57]SAM_PROTO_ClearQueue [23:14:57]wFMCommunicate request_size=4 [23:14:57]MH_SAM_APDU [23:14:57]CAPDU: 80 09 00 00 [23:14:57]Write to MH i2c: E2 08 00 58 19 80 09 00 00 00 00 00 00 E3 [23:14:57]Write i2c OK [23:14:57]MH_I2C_Read... [23:14:57]Read from MH i2c: E2 [23:14:57]MH_I2C_Read... [23:14:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:14:57]Read from MH i2c: E2 03 00 [23:14:57]MH_I2C_Read... [23:14:57]Read from MH i2c: E2 03 00 58 19 00 90 00 E5 [23:14:57]RAPDU: 90 00 [23:14:57]wFMCommunicate OK [23:14:57]SAM_PROTO_ClearQueue done [23:14:57]KKMCreateOFDPacket [23:14:57]OFDProtocolAddRootSTLVToBuf [23:14:57]FM_MakeSignedData [23:14:57]FM_MakeSignedData [23:14:57]SAM_PROTO_SignData [23:14:57]wFMCommunicate request_size=4 [23:14:57]MH_SAM_APDU [23:14:57]CAPDU: 80 0D 01 02 [23:14:57]Write to MH i2c: E2 08 00 59 19 80 0D 01 02 00 00 00 00 EB [23:14:57]Write i2c OK [23:14:57]MH_I2C_Read... [23:14:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:14:57]Read from MH i2c: E2 [23:14:57]MH_I2C_Read... [23:14:57]Read from MH i2c: E2 03 00 [23:14:57]MH_I2C_Read... [23:14:57]Read from MH i2c: E2 03 00 59 19 00 90 00 E6 [23:14:57]RAPDU: 90 00 [23:14:57]wFMCommunicate OK [23:14:57]wFMCommunicate request_size=255 [23:14:57]MH_SAM_APDU [23:14:57]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E4 93 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 D0 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 E7 00 00 00 F4 03 04 00 F2 9D 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AF 2C 01 00 35 04 06 00 9F B6 [23:14:57]Write to MH i2c: E2 02 01 5A 19 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E4 93 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 D0 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 E7 00 00 00 F4 03 04 00 F2 9D 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AF 2C 01 00 35 04 06 00 9F B6 00 00 1B [23:14:57]Write i2c OK [23:14:57]MH_I2C_Read... [23:14:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:14:58]Read from MH i2c: E2 [23:14:58]MH_I2C_Read... [23:14:58]Read from MH i2c: E2 03 00 [23:14:58]MH_I2C_Read... [23:14:58]Read from MH i2c: E2 03 00 5A 19 00 90 00 E7 [23:14:58]RAPDU: 90 00 [23:14:58]wFMCommunicate OK [23:14:58]wFMCommunicate request_size=9 [23:14:58]MH_SAM_APDU [23:14:58]CAPDU: 80 0D 02 02 04 59 0D E0 FD [23:14:58]Write to MH i2c: E2 0C 00 5B 19 80 0D 02 02 04 00 59 0D E0 FD 00 00 39 [23:14:58]Write i2c OK [23:14:58]MH_I2C_Read... [23:14:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:14:58]Read from MH i2c: E2 [23:14:58]MH_I2C_Read... [23:14:58]Read from MH i2c: E2 03 00 [23:14:58]MH_I2C_Read... [23:14:58]Read from MH i2c: E2 03 00 5B 19 00 90 00 E8 [23:14:58]RAPDU: 90 00 [23:14:58]wFMCommunicate OK [23:14:58]wFMCommunicate request_size=4 [23:14:58]MH_SAM_APDU [23:14:58]CAPDU: 80 0D 03 02 [23:14:58]Write to MH i2c: E2 08 00 5C 19 80 0D 03 02 00 00 00 00 F0 [23:14:58]Write i2c OK [23:14:58]MH_I2C_Read... [23:14:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:14:58]Read from MH i2c: E2 [23:14:58]MH_I2C_Read... [23:14:58]Read from MH i2c: E2 0B 00 [23:14:58]MH_I2C_Read... [23:14:58]Read from MH i2c: E2 0B 00 5C 19 00 7D EB 7C E4 5A 66 99 AC 90 00 BE [23:14:58]RAPDU: 7D EB 7C E4 5A 66 99 AC 90 00 [23:14:58]wFMCommunicate OK [23:14:58]SAM_PROTO_SignData done [23:14:58]FM_MakeSignedData done [23:14:58]CreateOFDProtocolMessage [23:14:58]wFMCommunicate request_size=4 [23:14:58]MH_SAM_APDU [23:14:58]CAPDU: 80 11 00 00 [23:14:58]Write to MH i2c: E2 08 00 5D 19 80 11 00 00 00 00 00 00 F0 [23:14:58]Write i2c OK [23:14:58]MH_I2C_Read... [23:14:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:14:58]Read from MH i2c: E2 [23:14:58]MH_I2C_Read... [23:14:58]Read from MH i2c: E2 17 00 [23:14:58]MH_I2C_Read... [23:14:58]Read from MH i2c: E2 17 00 5D 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 43 [23:14:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [23:14:58]wFMCommunicate OK [23:14:58]CreateOFDProtocolMessage done [23:14:58]OFDSenderStorePacket 76975 [23:14:58]StoreOFDPacket docnum=76975 [23:14:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 37 30 06 01 3F E8 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E4 93 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 D0 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 E7 00 00 00 F4 03 04 00 F2 9D 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AF 2C 01 00 35 04 06 00 9F B6 59 0D E0 FD 7D EB 7C E4 5A 66 99 AC [23:14:58]CheckFolder [23:14:58]dirname=/storage/ofd_packets [23:14:58]CheckFolder done [23:14:58]ProducePacketName [23:14:58]name=ofd_packets/00076975 [23:14:58]NVStorageSaveData ofd_packets/00076975 [23:14:58]File name is /storage/ofd_packets/00076975 [23:14:58]Write 300 bytes [23:14:58]NVStorageSaveData done [23:14:58]OFDSenderStorePacket done [23:14:58]KKMCreateOFDPacket done [23:14:58]NVStorageSaveData kkm_last_timestamp [23:14:58]File name is /storage/kkm_last_timestamp [23:14:58]Write 4 bytes [23:14:58]NVStorageSaveData done [23:14:58]ExternCall_PrintAddStr [23:14:58]wPrintStart [23:14:58]Write to MH i2c: 01 00 00 5E 19 77 [23:14:58]Write i2c OK [23:14:58]MH_I2C_Read... [23:14:58]Read from MH i2c: 01 [23:14:58]MH_I2C_Read... [23:14:58]Read from MH i2c: 01 07 00 [23:14:58]MH_I2C_Read... [23:14:58]Read from MH i2c: 01 07 00 5E 19 00 00 00 00 00 FF 0F 8C [23:14:58]RasterBufferAndPrint [23:14:58]line Счет N : (1)191523 [23:14:58]line ИНН: 02508201610067 [23:14:58]line Контрольно-Кассовый Чек [23:14:58]line ПРОДАЖА [23:14:58]line ТРК (МРК, ГНК) : 71 [23:14:58]line Товар: 2711190000 [23:14:58]line ГАЗ-К-5 [23:14:58]line 37.860 * 31.70 [23:14:58]line = 1200.16 [23:14:58]line НДС 12% НСП 1% [23:14:58]line > о реализуемом товаре [23:14:58]line ОКРУГЛЕНИЕ: -0.16 [23:14:58]line ИТОГО: 1200.00 [23:14:58]line Внесено: 1200.00 [23:14:58]line СДАЧА: 0.00 [23:14:58]line НСП 1% : 10.62 [23:14:58]line НДС 12% : 127.45 [23:14:58]line Наличными: 1200.00 [23:14:58]line Безнал.: 0.00 [23:14:58]line Место: АЗС № 106 "Партнер Нефть" [23:14:58]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [23:14:58]line СНО: Общий режим [23:14:58]line Чек 231 21.04.2024 23:14 [23:14:58]line Смена: 372 ФФД: 1.0 [23:14:58]line ЗНМ: 0300000141 [23:14:58]line РНМ: 0000000000091573 [23:14:58]line Версия ККМ: 001 [23:14:58]line [23:14:58]line Дисконтная программа [23:14:58]line СУГ [23:14:58]line номер 106 [23:14:58]line сэкономлено 37.86 сом [23:14:58]line ФМ: 0000000000874652 [23:14:58]line ФД: 76975 [23:14:58]line ФПД: 175605526946045 [23:14:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T231458&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76975&fm=175605526946045&tin=02508201610067®Number=0000000000091573&sum=120000 [23:14:58]OFD Sender: Processing packet 76975 [packets to send 129, broken 128] [23:14:58]ProducePacketName [23:14:58]name=ofd_packets/00076975 [23:14:58]OFD Sender: To server: pG, [23:14:58]CommunicateWithHost lk.salyk.kg:30040 [23:14:58]ConnectInit lk.salyk.kg [23:14:58]written 0, free lines is 4095 [23:14:59]Write to MH i2c: 01 00 00 8D 19 A6 [23:14:59]Write i2c OK [23:14:59]MH_I2C_Read... [23:14:59]Read from MH i2c: 01 [23:14:59]MH_I2C_Read... [23:14:59]Read from MH i2c: 01 07 00 [23:14:59]MH_I2C_Read... [23:14:59]Read from MH i2c: 01 07 00 8D 19 00 00 00 00 00 99 0C 52 [23:14:59]RasterBufferAndPrint [23:14:59]line [23:14:59]line [23:14:59]line [23:14:59]line [23:14:59]line [23:14:59]written 0, free lines is 3232 [23:14:59]MH_Cut [23:14:59]Write to MH i2c: D1 01 00 94 19 01 7F [23:14:59]Write i2c OK [23:14:59]MH_I2C_Read... [23:14:59]Read from MH i2c: D1 [23:14:59]MH_I2C_Read... [23:14:59]Read from MH i2c: D1 01 00 [23:14:59]MH_I2C_Read... [23:14:59]Read from MH i2c: D1 01 00 94 19 00 7E [23:14:59]Write to MH i2c: 01 00 00 95 19 AE [23:14:59]Write i2c OK [23:14:59]MH_I2C_Read... [23:14:59]Connected sock=11 [23:14:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 37 30 06 01 3F E8 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E4 93 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 D0 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 E7 00 00 00 F4 03 04 00 F2 9D 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AF 2C 01 00 35 04 06 00 9F B6 59 0D E0 FD 7D EB 7C E4 5A 66 99 AC [23:14:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 44 CA 47 00 15 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 34 36 35 32 10 04 04 00 AF 2C 01 00 F4 03 04 00 77 45 25 66 B6 04 01 00 00 AB 46 FA 8D 7F 0B 7F 54 [23:14:59]CommunicateWithHost err = 0 [23:14:59]CheckOFDResponse [23:14:59]1017 (14) - 77093643461234 [23:14:59]1041 (16) - 0000000000874652 [23:14:59]1040 (4) - 76975 [23:14:59]1012 (4) - 21.04.2024 16:57 [23:14:59]1206 (1) - 0 [23:14:59]OFD Sender: Remove packet 76975 [23:14:59]ProducePacketName [23:14:59]name=ofd_packets/00076975 [23:14:59]NVStorageDeleteData [23:14:59]*** Cut start [23:14:59]*** Partial cut [23:14:59]*** CUTSNS_PIN = 1 [23:14:59]*** CUTSNS_PIN = 0 [23:15:00]*** Brake cut motor [23:15:00]OFD Sender: No OFD packet to send [23:15:00]Read from MH i2c: 01 [23:15:00]MH_I2C_Read... [23:15:00]*** Stop cut motor [23:15:00]*** Cut end [23:15:00]Read from MH i2c: 01 07 00 [23:15:00]MH_I2C_Read... [23:15:00]Read from MH i2c: 01 07 00 95 19 00 00 00 00 00 FF 0F C3 [23:15:00]process_action close_receipt done [23:15:00]requested_data is exist [23:15:00]produce_requested_data [23:15:00]requested_item fm.sn is exist - process it [23:15:00]wFMCommunicate request_size=4 [23:15:00]MH_SAM_APDU [23:15:00]CAPDU: 80 11 00 00 [23:15:00]Write to MH i2c: E2 08 00 96 19 80 11 00 00 00 00 00 00 29 [23:15:00]Write i2c OK [23:15:00]MH_I2C_Read... [23:15:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:15:00]Read from MH i2c: E2 [23:15:00]MH_I2C_Read... [23:15:00]Read from MH i2c: E2 17 00 [23:15:00]MH_I2C_Read... [23:15:00]Read from MH i2c: E2 17 00 96 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 7C [23:15:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [23:15:00]wFMCommunicate OK [23:15:00]requested_item fd.num is exist - process it [23:15:00]SAM_PROTO_GetFieldsCounters [23:15:00]wFMCommunicate request_size=4 [23:15:00]MH_SAM_APDU [23:15:00]CAPDU: 80 13 00 00 [23:15:00]Write to MH i2c: E2 08 00 97 19 80 13 00 00 00 00 00 00 2C [23:15:00]Write i2c OK [23:15:00]MH_I2C_Read... [23:15:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:15:00]Read from MH i2c: E2 [23:15:00]MH_I2C_Read... [23:15:00]Read from MH i2c: E2 62 00 [23:15:00]MH_I2C_Read... [23:15:00]Read from MH i2c: E2 62 00 97 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 AF 2C 01 00 0E 04 04 00 74 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 53 [23:15: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 AF 2C 01 00 0E 04 04 00 74 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 [23:15:00]wFMCommunicate OK [23:15:00]SAM_PROTO_GetFieldsCounters done [23:15:00]requested_item shift.num is exist - process it [23:15:00]requested_item shift.opened is exist - process it [23:15:00]req_shift_opened [23:15:00]FM_GetShiftState [23:15:00]SAM_PROTO_GetShiftState [23:15:00]wFMCommunicate request_size=4 [23:15:00]MH_SAM_APDU [23:15:00]CAPDU: 80 13 01 00 [23:15:00]Write to MH i2c: E2 08 00 98 19 80 13 01 00 00 00 00 00 2E [23:15:00]Write i2c OK [23:15:00]MH_I2C_Read... [23:15:00]Read from MH i2c: E2 [23:15:00]MH_I2C_Read... [23:15:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:15:00]Read from MH i2c: E2 0E 00 [23:15:00]MH_I2C_Read... [23:15:00]Read from MH i2c: E2 0E 00 98 19 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 75 [23:15:00]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [23:15:00]wFMCommunicate OK [23:15:00]SAM_PROTO_GetShiftState done [23:15:00]FM_GetShiftState done [23:15:00]req_shift_opened done [23:15:00]requested_item shift.open_date is exist - process it [23:15:00]req_shift_open_date [23:15:00]req_shift_open_date done [23:15:00]produce_requested_data done [23:15:00]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76975,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [23:15:00]process_action_free close_receipt [23:15:00]json_value_free [23:15:00]json_value_free done [23:15:00]process_json_proto returns [23:15:00]Send response to host [23:15:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76975,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [23:15:00]free response buf [23:15:00]execute_script done [23:15:00]execute_script returns [23:15:00]free content buf [23:15:00]Sock 9.Close socket [23:15:00]Sock 9.Thread stoped [23:15:05]OFD Sender: No OFD packet to send [23:15:10]OFD Sender: No OFD packet to send [23:15:15]OFD Sender: No OFD packet to send [23:15:20]OFD Sender: No OFD packet to send [23:15:25]OFD Sender: No OFD packet to send [23:15:30]OFD Sender: No OFD packet to send [23:15:35]OFD Sender: No OFD packet to send [23:15:40]OFD Sender: No OFD packet to send [23:15:45]OFD Sender: No OFD packet to send [23:15:50]OFD Sender: No OFD packet to send [23:15:55]OFD Sender: No OFD packet to send [23:16:00]OFD Sender: No OFD packet to send [23:16:05]OFD Sender: No OFD packet to send [23:16:10]OFD Sender: No OFD packet to send [23:16:15]OFD Sender: No OFD packet to send [23:16:20]OFD Sender: No OFD packet to send [23:16:25]OFD Sender: No OFD packet to send [23:16:30]OFD Sender: No OFD packet to send [23:16:35]OFD Sender: No OFD packet to send [23:16:40]OFD Sender: No OFD packet to send [23:16:45]OFD Sender: No OFD packet to send [23:16:50]OFD Sender: No OFD packet to send [23:16:55]OFD Sender: No OFD packet to send [23:17:00]OFD Sender: No OFD packet to send [23:17:05]OFD Sender: No OFD packet to send [23:17:10]OFD Sender: No OFD packet to send [23:17:15]OFD Sender: No OFD packet to send [23:17:20]OFD Sender: No OFD packet to send [23:17:25]OFD Sender: No OFD packet to send [23:17:30]OFD Sender: No OFD packet to send [23:17:35]OFD Sender: No OFD packet to send [23:17:40]OFD Sender: No OFD packet to send [23:17:45]OFD Sender: No OFD packet to send [23:17:50]OFD Sender: No OFD packet to send [23:17:55]OFD Sender: No OFD packet to send [23:18:00]OFD Sender: No OFD packet to send [23:18:05]OFD Sender: No OFD packet to send [23:18:10]OFD Sender: No OFD packet to send [23:18:15]OFD Sender: No OFD packet to send [23:18:20]OFD Sender: No OFD packet to send [23:18:25]OFD Sender: No OFD packet to send [23:18:30]OFD Sender: No OFD packet to send [23:18:35]OFD Sender: No OFD packet to send [23:18:40]OFD Sender: No OFD packet to send [23:18:45]OFD Sender: No OFD packet to send [23:18:50]OFD Sender: No OFD packet to send [23:18:55]OFD Sender: No OFD packet to send [23:19:00]OFD Sender: No OFD packet to send [23:19:05]OFD Sender: No OFD packet to send [23:19:10]OFD Sender: No OFD packet to send [23:19:15]OFD Sender: No OFD packet to send [23:19:20]OFD Sender: No OFD packet to send [23:19:25]OFD Sender: No OFD packet to send [23:19:30]OFD Sender: No OFD packet to send [23:19:35]OFD Sender: No OFD packet to send [23:19:40]OFD Sender: No OFD packet to send [23:19:45]OFD Sender: No OFD packet to send [23:19:50]OFD Sender: No OFD packet to send [23:19:55]OFD Sender: No OFD packet to send [23:20:00]OFD Sender: No OFD packet to send [23:20:05]OFD Sender: No OFD packet to send [23:20:10]OFD Sender: No OFD packet to send [23:20:15]OFD Sender: No OFD packet to send [23:20:20]OFD Sender: No OFD packet to send [23:20:25]OFD Sender: No OFD packet to send [23:20:30]OFD Sender: No OFD packet to send [23:20:35]OFD Sender: No OFD packet to send [23:20:40]OFD Sender: No OFD packet to send [23:20:45]OFD Sender: No OFD packet to send [23:20:50]OFD Sender: No OFD packet to send [23:20:55]OFD Sender: No OFD packet to send [23:21:00]OFD Sender: No OFD packet to send [23:21:05]OFD Sender: No OFD packet to send [23:21:10]OFD Sender: No OFD packet to send [23:21:15]OFD Sender: No OFD packet to send [23:21:20]OFD Sender: No OFD packet to send [23:21:25]OFD Sender: No OFD packet to send [23:21:30]OFD Sender: No OFD packet to send [23:21:35]OFD Sender: No OFD packet to send [23:21:40]OFD Sender: No OFD packet to send [23:21:45]OFD Sender: No OFD packet to send [23:21:50]OFD Sender: No OFD packet to send [23:21:55]OFD Sender: No OFD packet to send [23:22:00]OFD Sender: No OFD packet to send [23:22:05]OFD Sender: No OFD packet to send [23:22:10]OFD Sender: No OFD packet to send [23:22:15]OFD Sender: No OFD packet to send [23:22:20]OFD Sender: No OFD packet to send [23:22:25]OFD Sender: No OFD packet to send [23:22:30]OFD Sender: No OFD packet to send [23:22:35]OFD Sender: No OFD packet to send [23:22:40]OFD Sender: No OFD packet to send [23:22:45]OFD Sender: No OFD packet to send [23:22:50]OFD Sender: No OFD packet to send [23:22:55]OFD Sender: No OFD packet to send [23:23:00]OFD Sender: No OFD packet to send [23:23:05]OFD Sender: No OFD packet to send [23:23:10]OFD Sender: No OFD packet to send [23:23:15]OFD Sender: No OFD packet to send [23:23:20]OFD Sender: No OFD packet to send [23:23:25]OFD Sender: No OFD packet to send [23:23:30]OFD Sender: No OFD packet to send [23:23:35]OFD Sender: No OFD packet to send [23:23:40]OFD Sender: No OFD packet to send [23:23:45]OFD Sender: No OFD packet to send [23:23:50]OFD Sender: No OFD packet to send [23:23:55]OFD Sender: No OFD packet to send [23:24:00]OFD Sender: No OFD packet to send [23:24:05]OFD Sender: No OFD packet to send [23:24:10]OFD Sender: No OFD packet to send [23:24:15]OFD Sender: No OFD packet to send [23:24:20]OFD Sender: No OFD packet to send [23:24:25]OFD Sender: No OFD packet to send [23:24:30]OFD Sender: No OFD packet to send [23:24:35]OFD Sender: No OFD packet to send [23:24:40]OFD Sender: No OFD packet to send [23:24:45]OFD Sender: No OFD packet to send [23:24:50]OFD Sender: No OFD packet to send [23:24:55]OFD Sender: No OFD packet to send [23:25:00]OFD Sender: No OFD packet to send [23:25:05]OFD Sender: No OFD packet to send [23:25:10]OFD Sender: No OFD packet to send [23:25:15]OFD Sender: No OFD packet to send [23:25:20]OFD Sender: No OFD packet to send [23:25:25]OFD Sender: No OFD packet to send [23:25:30]OFD Sender: No OFD packet to send [23:25:35]OFD Sender: No OFD packet to send [23:25:40]OFD Sender: No OFD packet to send [23:25:45]OFD Sender: No OFD packet to send [23:25:50]OFD Sender: No OFD packet to send [23:25:55]OFD Sender: No OFD packet to send [23:26:00]OFD Sender: No OFD packet to send [23:26:05]OFD Sender: No OFD packet to send [23:26:11]OFD Sender: No OFD packet to send [23:26:16]OFD Sender: No OFD packet to send [23:26:21]OFD Sender: No OFD packet to send [23:26:26]OFD Sender: No OFD packet to send [23:26:31]OFD Sender: No OFD packet to send [23:26:36]OFD Sender: No OFD packet to send [23:26:41]OFD Sender: No OFD packet to send [23:26:46]OFD Sender: No OFD packet to send [23:26:51]OFD Sender: No OFD packet to send [23:26:56]OFD Sender: No OFD packet to send [23:27:01]OFD Sender: No OFD packet to send [23:27:06]OFD Sender: No OFD packet to send [23:27:11]OFD Sender: No OFD packet to send [23:27:16]OFD Sender: No OFD packet to send [23:27:21]OFD Sender: No OFD packet to send [23:27:26]OFD Sender: No OFD packet to send [23:27:31]OFD Sender: No OFD packet to send [23:27:36]OFD Sender: No OFD packet to send [23:27:41]OFD Sender: No OFD packet to send [23:27:46]OFD Sender: No OFD packet to send [23:27:51]OFD Sender: No OFD packet to send [23:27:56]OFD Sender: No OFD packet to send [23:28:01]OFD Sender: No OFD packet to send [23:28:06]OFD Sender: No OFD packet to send [23:28:11]OFD Sender: No OFD packet to send [23:28:16]OFD Sender: No OFD packet to send [23:28:21]OFD Sender: No OFD packet to send [23:28:26]OFD Sender: No OFD packet to send [23:28:31]OFD Sender: No OFD packet to send [23:28:36]OFD Sender: No OFD packet to send [23:28:41]OFD Sender: No OFD packet to send [23:28:46]OFD Sender: No OFD packet to send [23:28:51]OFD Sender: No OFD packet to send [23:28:56]OFD Sender: No OFD packet to send [23:29:01]OFD Sender: No OFD packet to send [23:29:06]OFD Sender: No OFD packet to send [23:29:11]OFD Sender: No OFD packet to send [23:29:16]OFD Sender: No OFD packet to send [23:29:21]OFD Sender: No OFD packet to send [23:29:26]OFD Sender: No OFD packet to send [23:29:31]OFD Sender: No OFD packet to send [23:29:36]OFD Sender: No OFD packet to send [23:29:41]OFD Sender: No OFD packet to send [23:29:46]OFD Sender: No OFD packet to send [23:29:51]OFD Sender: No OFD packet to send [23:29:56]OFD Sender: No OFD packet to send [23:30:01]OFD Sender: No OFD packet to send [23:30:06]OFD Sender: No OFD packet to send [23:30:11]OFD Sender: No OFD packet to send [23:30:16]OFD Sender: No OFD packet to send [23:30:21]OFD Sender: No OFD packet to send [23:30:26]OFD Sender: No OFD packet to send [23:30:31]OFD Sender: No OFD packet to send [23:30:36]OFD Sender: No OFD packet to send [23:30:41]OFD Sender: No OFD packet to send [23:30:46]OFD Sender: No OFD packet to send [23:30:51]OFD Sender: No OFD packet to send [23:30:56]OFD Sender: No OFD packet to send [23:31:01]OFD Sender: No OFD packet to send [23:31:06]OFD Sender: No OFD packet to send [23:31:11]OFD Sender: No OFD packet to send [23:31:16]OFD Sender: No OFD packet to send [23:31:21]OFD Sender: No OFD packet to send [23:31:26]OFD Sender: No OFD packet to send [23:31:31]OFD Sender: No OFD packet to send [23:31:36]OFD Sender: No OFD packet to send [23:31:41]OFD Sender: No OFD packet to send [23:31:46]OFD Sender: No OFD packet to send [23:31:51]OFD Sender: No OFD packet to send [23:31:56]OFD Sender: No OFD packet to send [23:32:01]OFD Sender: No OFD packet to send [23:32:06]OFD Sender: No OFD packet to send [23:32:11]OFD Sender: No OFD packet to send [23:32:16]OFD Sender: No OFD packet to send [23:32:21]OFD Sender: No OFD packet to send [23:32:26]OFD Sender: No OFD packet to send [23:32:31]OFD Sender: No OFD packet to send [23:32:36]OFD Sender: No OFD packet to send [23:32:41]OFD Sender: No OFD packet to send [23:32:46]OFD Sender: No OFD packet to send [23:32:51]OFD Sender: No OFD packet to send [23:32:56]OFD Sender: No OFD packet to send [23:33:01]OFD Sender: No OFD packet to send [23:33:06]OFD Sender: No OFD packet to send [23:33:11]OFD Sender: No OFD packet to send [23:33:16]OFD Sender: No OFD packet to send [23:33:21]OFD Sender: No OFD packet to send [23:33:26]OFD Sender: No OFD packet to send [23:33:31]OFD Sender: No OFD packet to send [23:33:36]OFD Sender: No OFD packet to send [23:33:41]OFD Sender: No OFD packet to send [23:33:46]OFD Sender: No OFD packet to send [23:33:51]OFD Sender: No OFD packet to send [23:33:56]OFD Sender: No OFD packet to send [23:34:01]OFD Sender: No OFD packet to send [23:34:06]OFD Sender: No OFD packet to send [23:34:11]OFD Sender: No OFD packet to send [23:34:16]OFD Sender: No OFD packet to send [23:34:21]OFD Sender: No OFD packet to send [23:34:26]OFD Sender: No OFD packet to send [23:34:31]OFD Sender: No OFD packet to send [23:34:36]OFD Sender: No OFD packet to send [23:34:41]OFD Sender: No OFD packet to send [23:34:46]OFD Sender: No OFD packet to send [23:34:51]OFD Sender: No OFD packet to send [23:34:56]OFD Sender: No OFD packet to send [23:35:01]OFD Sender: No OFD packet to send [23:35:06]OFD Sender: No OFD packet to send [23:35:11]OFD Sender: No OFD packet to send [23:35:16]OFD Sender: No OFD packet to send [23:35:21]OFD Sender: No OFD packet to send [23:35:26]OFD Sender: No OFD packet to send [23:35:31]OFD Sender: No OFD packet to send [23:35:32]accept exits with 10 [23:35:32]New connection [23:35:32]New thread 3066944868 created [23:35:32]Thread 3066801508 joined [23:35:32]Waiting for new connection... [23:35:32] Sock 10.Parse request [23:35:32]Sock 10.Check first char [23:35:32]Sock 10.First char is OK [23:35:32]request: POST /json_proto HTTP/1.0 [23:35:32]Method: POST [23:35:32]URL: /json_proto [23:35:32]Method is POST - this is cgi request [23:35:32]url: /json_proto [23:35:32]query_string will be loaded in cgi processing [23:35:32]execute_cgi json_proto POST (null) [23:35:32]execute_cgi path=json_proto method=POST [23:35:32]POST find Content-Length [23:35:32]Host: 172.17.62.5:8080 [23:35:32]Content-Length: 938 [23:35:32]Content-Type: application/json [23:35:32] [23:35:32]POST finish read [23:35:32]Found Content-Length = 938 [23:35:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191526", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 80.000, "sum" : 5752.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 80.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 5752.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:35:32]execute_script... [23:35: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)191526", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 80.000, "sum" : 5752.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 80.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 5752.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:35:32]POST & json_proto [23:35:32]process_json_proto [23:35:32]json parsed OK: [23:35:32]protocol is kg_v1.0 [23:35:32]action value=close_receipt [23:35:32]process_action close_receipt [23:35:32]cmd_close_receipt [23:35:32]MH_GetDate [23:35:32]Write to MH i2c: F0 00 00 99 19 A1 [23:35:32]Write i2c OK [23:35:32]MH_I2C_Read... [23:35:32]Read from MH i2c: F0 [23:35:32]MH_I2C_Read... [23:35:32]Read from MH i2c: F0 09 00 [23:35:32]MH_I2C_Read... [23:35:32]Read from MH i2c: F0 09 00 99 19 00 C6 A2 25 66 F4 E9 65 64 43 [23:35:32]GetLastDocTimeStamp 1713741298 [23:35:32]current date 1713742534 [23:35:32]FM_GetShiftState [23:35:32]SAM_PROTO_GetShiftState [23:35:32]wFMCommunicate request_size=4 [23:35:32]MH_SAM_APDU [23:35:32]CAPDU: 80 13 01 00 [23:35:32]Write to MH i2c: E2 08 00 9A 19 80 13 01 00 00 00 00 00 30 [23:35:32]Write i2c OK [23:35:32]MH_I2C_Read... [23:35:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:35:32]Read from MH i2c: E2 [23:35:32]MH_I2C_Read... [23:35:32]Read from MH i2c: E2 0E 00 [23:35:32]MH_I2C_Read... [23:35:32]Read from MH i2c: E2 0E 00 9A 19 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 77 [23:35:32]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [23:35:32]wFMCommunicate OK [23:35:32]SAM_PROTO_GetShiftState done [23:35:32]FM_GetShiftState done [23:35:32]opened in 1713658965 [23:35:32]opened+sec_in_day 1713745365 [23:35:32]quantity*price = 575200 [23:35:32]sum+1 = 575201 [23:35:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5752.00 НСП 1% : 50.90 НДС 12% : 610.83 Наличными: 5752.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 232 21.04.2024 23:35 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 80.00 сом ФМ: 0000000000874652 ФД: 76976 ФПД: 178773534449575 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T233534&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76976&fm=178773534449575&tin=02508201610067®Number=0000000000091573&sum=575200 [23:35:33]StoreToDocumentArchive [23:35:33]shift 372 fd 76976 [23:35:33]save to /storage/0372/doc_00076976 [23:35:33]save last doc name /storage/0372/doc_00076976 to /storage/kkm_last_doc_name [23:35:33]save OK [23:35:33]Clear old archive folders... [23:35:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:35:33]tlvbuf is B6DA6110 [23:35:33]SAM_PROTO_ClearQueue [23:35:33]wFMCommunicate request_size=4 [23:35:33]MH_SAM_APDU [23:35:33]CAPDU: 80 09 00 00 [23:35:33]Write to MH i2c: E2 08 00 A7 19 80 09 00 00 00 00 00 00 32 [23:35:33]Write i2c OK [23:35:33]MH_I2C_Read... [23:35:33]Read from MH i2c: E2 [23:35:33]MH_I2C_Read... [23:35:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:35:33]Read from MH i2c: E2 03 00 [23:35:33]MH_I2C_Read... [23:35:33]Read from MH i2c: E2 03 00 A7 19 00 90 00 34 [23:35:33]RAPDU: 90 00 [23:35:33]wFMCommunicate OK [23:35:33]SAM_PROTO_ClearQueue done [23:35:33]KKMCreateOFDPacket [23:35:33]OFDProtocolAddRootSTLVToBuf [23:35:33]FM_MakeSignedData [23:35:33]FM_MakeSignedData [23:35:33]SAM_PROTO_SignData [23:35:33]wFMCommunicate request_size=4 [23:35:33]MH_SAM_APDU [23:35:33]CAPDU: 80 0D 01 02 [23:35:33]Write to MH i2c: E2 08 00 A8 19 80 0D 01 02 00 00 00 00 3A [23:35:33]Write i2c OK [23:35:33]MH_I2C_Read... [23:35:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:35:33]Read from MH i2c: E2 [23:35:33]MH_I2C_Read... [23:35:33]Read from MH i2c: E2 03 00 [23:35:33]MH_I2C_Read... [23:35:33]Read from MH i2c: E2 03 00 A8 19 00 90 00 35 [23:35:33]RAPDU: 90 00 [23:35:33]wFMCommunicate OK [23:35:33]wFMCommunicate request_size=255 [23:35:33]MH_SAM_APDU [23:35:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 80 38 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 E0 C6 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 C6 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B EE 00 00 00 00 07 04 06 00 E0 C6 08 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 C6 A2 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B0 2C 01 00 35 04 06 00 A2 97 F5 04 [23:35:33]Write to MH i2c: E2 02 01 A9 19 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 80 38 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 E0 C6 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 C6 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B EE 00 00 00 00 07 04 06 00 E0 C6 08 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 C6 A2 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B0 2C 01 00 35 04 06 00 A2 97 F5 04 00 00 69 [23:35:33]Write i2c OK [23:35:33]MH_I2C_Read... [23:35:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:35:34]Read from MH i2c: E2 [23:35:34]MH_I2C_Read... [23:35:34]Read from MH i2c: E2 03 00 [23:35:34]MH_I2C_Read... [23:35:34]Read from MH i2c: E2 03 00 A9 19 00 90 00 36 [23:35:34]RAPDU: 90 00 [23:35:34]wFMCommunicate OK [23:35:34]wFMCommunicate request_size=7 [23:35:34]MH_SAM_APDU [23:35:34]CAPDU: 80 0D 02 02 02 1F A7 [23:35:34]Write to MH i2c: E2 0A 00 AA 19 80 0D 02 02 02 00 1F A7 00 00 07 [23:35:34]Write i2c OK [23:35:34]MH_I2C_Read... [23:35:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:35:34]Read from MH i2c: E2 [23:35:34]MH_I2C_Read... [23:35:34]Read from MH i2c: E2 03 00 [23:35:34]MH_I2C_Read... [23:35:34]Read from MH i2c: E2 03 00 AA 19 00 90 00 37 [23:35:34]RAPDU: 90 00 [23:35:34]wFMCommunicate OK [23:35:34]wFMCommunicate request_size=4 [23:35:34]MH_SAM_APDU [23:35:34]CAPDU: 80 0D 03 02 [23:35:34]Write to MH i2c: E2 08 00 AB 19 80 0D 03 02 00 00 00 00 3F [23:35:34]Write i2c OK [23:35:34]MH_I2C_Read... [23:35:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:35:34]Read from MH i2c: E2 [23:35:34]MH_I2C_Read... [23:35:34]Read from MH i2c: E2 0B 00 [23:35:34]MH_I2C_Read... [23:35:34]Read from MH i2c: E2 0B 00 AB 19 00 BC 2B CD AB 70 8C 94 3C 90 00 6B [23:35:34]RAPDU: BC 2B CD AB 70 8C 94 3C 90 00 [23:35:34]wFMCommunicate OK [23:35:34]SAM_PROTO_SignData done [23:35:34]FM_MakeSignedData done [23:35:34]CreateOFDProtocolMessage [23:35:34]wFMCommunicate request_size=4 [23:35:34]MH_SAM_APDU [23:35:34]CAPDU: 80 11 00 00 [23:35:34]Write to MH i2c: E2 08 00 AC 19 80 11 00 00 00 00 00 00 3F [23:35:34]Write i2c OK [23:35:34]MH_I2C_Read... [23:35:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:35:34]Read from MH i2c: E2 [23:35:34]MH_I2C_Read... [23:35:34]Read from MH i2c: E2 17 00 [23:35:34]MH_I2C_Read... [23:35:34]Read from MH i2c: E2 17 00 AC 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 92 [23:35:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [23:35:34]wFMCommunicate OK [23:35:34]CreateOFDProtocolMessage done [23:35:34]OFDSenderStorePacket 76976 [23:35:34]StoreOFDPacket docnum=76976 [23:35:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 F7 EC 04 01 99 9A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 80 38 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 E0 C6 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 C6 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B EE 00 00 00 00 07 04 06 00 E0 C6 08 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 C6 A2 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B0 2C 01 00 35 04 06 00 A2 97 F5 04 1F A7 BC 2B CD AB 70 8C 94 3C [23:35:34]CheckFolder [23:35:34]dirname=/storage/ofd_packets [23:35:34]CheckFolder done [23:35:34]ProducePacketName [23:35:34]name=ofd_packets/00076976 [23:35:34]NVStorageSaveData ofd_packets/00076976 [23:35:34]File name is /storage/ofd_packets/00076976 [23:35:34]Write 298 bytes [23:35:34]NVStorageSaveData done [23:35:34]OFDSenderStorePacket done [23:35:34]KKMCreateOFDPacket done [23:35:34]NVStorageSaveData kkm_last_timestamp [23:35:34]File name is /storage/kkm_last_timestamp [23:35:34]Write 4 bytes [23:35:34]NVStorageSaveData done [23:35:34]ExternCall_PrintAddStr [23:35:34]wPrintStart [23:35:34]Write to MH i2c: 01 00 00 AD 19 C6 [23:35:34]Write i2c OK [23:35:34]MH_I2C_Read... [23:35:34]Read from MH i2c: 01 [23:35:34]MH_I2C_Read... [23:35:34]Read from MH i2c: 01 07 00 [23:35:34]MH_I2C_Read... [23:35:34]Read from MH i2c: 01 07 00 AD 19 00 00 00 00 00 FF 0F DB [23:35:34]RasterBufferAndPrint [23:35:34]line Счет N : (1)191526 [23:35:34]line ИНН: 02508201610067 [23:35:34]line Контрольно-Кассовый Чек [23:35:34]line ПРОДАЖА [23:35:34]line ТРК (МРК, ГНК) : 51 [23:35:34]line Товар: 2710194210 [23:35:34]line ДТ-К-5 [23:35:34]line 80.000 * 71.90 [23:35:34]line = 5752.00 [23:35:34]line НДС 12% НСП 1% [23:35:34]line > о реализуемом товаре [23:35:34]line ИТОГО: 5752.00 [23:35:34]line НСП 1% : 50.90 [23:35:34]line НДС 12% : 610.83 [23:35:34]line Наличными: 5752.00 [23:35:34]line Безнал.: 0.00 [23:35:34]line Место: АЗС № 106 "Партнер Нефть" [23:35:34]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [23:35:34]line СНО: Общий режим [23:35:34]line Чек 232 21.04.2024 23:35 [23:35:34]line Смена: 372 ФФД: 1.0 [23:35:34]line ЗНМ: 0300000141 [23:35:34]line РНМ: 0000000000091573 [23:35:34]line Версия ККМ: 001 [23:35:34]line [23:35:34]line Дисконтная программа [23:35:34]line ДТ [23:35:34]line номер 106 [23:35:34]line сэкономлено 80.00 сом [23:35:34]line ФМ: 0000000000874652 [23:35:34]line ФД: 76976 [23:35:34]line ФПД: 178773534449575 [23:35:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T233534&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76976&fm=178773534449575&tin=02508201610067®Number=0000000000091573&sum=575200 [23:35:34]OFD Sender: Processing packet 76976 [packets to send 129, broken 128] [23:35:34]ProducePacketName [23:35:34]name=ofd_packets/00076976 [23:35:34]OFD Sender: To server: pG, [23:35:34]CommunicateWithHost lk.salyk.kg:30040 [23:35:34]ConnectInit lk.salyk.kg [23:35:34]written 0, free lines is 4095 [23:35:35]Write to MH i2c: 01 00 00 D9 19 F2 [23:35:35]Write i2c OK [23:35:35]MH_I2C_Read... [23:35:35]Read from MH i2c: 01 [23:35:35]MH_I2C_Read... [23:35:35]Read from MH i2c: 01 07 00 [23:35:35]MH_I2C_Read... [23:35:35]Read from MH i2c: 01 07 00 D9 19 00 00 00 00 00 BE 0C C3 [23:35:35]RasterBufferAndPrint [23:35:35]line [23:35:35]line [23:35:35]line [23:35:35]line [23:35:35]line [23:35:35]written 0, free lines is 3269 [23:35:35]MH_Cut [23:35:35]Write to MH i2c: D1 01 00 E0 19 01 CB [23:35:35]Write i2c OK [23:35:35]MH_I2C_Read... [23:35:35]Read from MH i2c: D1 [23:35:35]MH_I2C_Read... [23:35:35]Read from MH i2c: D1 01 00 [23:35:35]MH_I2C_Read... [23:35:35]Read from MH i2c: D1 01 00 E0 19 00 CA [23:35:35]Write to MH i2c: 01 00 00 E1 19 FA [23:35:35]Write i2c OK [23:35:35]MH_I2C_Read... [23:35:35]*** Cut start [23:35:35]*** Partial cut [23:35:35]*** CUTSNS_PIN = 1 [23:35:36]*** CUTSNS_PIN = 0 [23:35:36]*** Brake cut motor [23:35:36]Read from MH i2c: 01 [23:35:36]MH_I2C_Read... [23:35:36]*** Stop cut motor [23:35:36]*** Cut end [23:35:36]Read from MH i2c: 01 07 00 [23:35:36]MH_I2C_Read... [23:35:36]Read from MH i2c: 01 07 00 E1 19 00 00 00 00 00 FF 0F 0F [23:35:36]process_action close_receipt done [23:35:36]requested_data is exist [23:35:36]produce_requested_data [23:35:36]requested_item fm.sn is exist - process it [23:35:36]wFMCommunicate request_size=4 [23:35:36]MH_SAM_APDU [23:35:36]CAPDU: 80 11 00 00 [23:35:36]Write to MH i2c: E2 08 00 E2 19 80 11 00 00 00 00 00 00 75 [23:35:36]Write i2c OK [23:35:36]MH_I2C_Read... [23:35:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:35:36]Read from MH i2c: E2 [23:35:36]MH_I2C_Read... [23:35:36]Read from MH i2c: E2 17 00 [23:35:36]MH_I2C_Read... [23:35:36]Read from MH i2c: E2 17 00 E2 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 C8 [23:35:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [23:35:36]wFMCommunicate OK [23:35:36]requested_item fd.num is exist - process it [23:35:36]SAM_PROTO_GetFieldsCounters [23:35:36]wFMCommunicate request_size=4 [23:35:36]MH_SAM_APDU [23:35:36]CAPDU: 80 13 00 00 [23:35:36]Write to MH i2c: E2 08 00 E3 19 80 13 00 00 00 00 00 00 78 [23:35:36]Write i2c OK [23:35:36]MH_I2C_Read... [23:35:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:35:36]Read from MH i2c: E2 [23:35:36]MH_I2C_Read... [23:35:36]Read from MH i2c: E2 62 00 [23:35:36]MH_I2C_Read... [23:35:36]Read from MH i2c: E2 62 00 E3 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B0 2C 01 00 0E 04 04 00 74 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 A3 [23:35: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B0 2C 01 00 0E 04 04 00 74 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 [23:35:36]wFMCommunicate OK [23:35:36]SAM_PROTO_GetFieldsCounters done [23:35:36]requested_item shift.num is exist - process it [23:35:36]requested_item shift.opened is exist - process it [23:35:36]req_shift_opened [23:35:36]FM_GetShiftState [23:35:36]SAM_PROTO_GetShiftState [23:35:36]wFMCommunicate request_size=4 [23:35:36]MH_SAM_APDU [23:35:36]CAPDU: 80 13 01 00 [23:35:36]Write to MH i2c: E2 08 00 E4 19 80 13 01 00 00 00 00 00 7A [23:35:36]Write i2c OK [23:35:36]MH_I2C_Read... [23:35:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:35:36]Read from MH i2c: E2 [23:35:36]MH_I2C_Read... [23:35:36]Read from MH i2c: E2 0E 00 [23:35:36]MH_I2C_Read... [23:35:36]Read from MH i2c: E2 0E 00 E4 19 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 C1 [23:35:36]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [23:35:36]wFMCommunicate OK [23:35:36]SAM_PROTO_GetShiftState done [23:35:36]FM_GetShiftState done [23:35:36]req_shift_opened done [23:35:36]requested_item shift.open_date is exist - process it [23:35:36]req_shift_open_date [23:35:36]req_shift_open_date done [23:35:36]produce_requested_data done [23:35:36]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76976,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [23:35:36]process_action_free close_receipt [23:35:36]json_value_free [23:35:36]json_value_free done [23:35:36]process_json_proto returns [23:35:36]Send response to host [23:35:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76976,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [23:35:36]free response buf [23:35:36]execute_script done [23:35:36]execute_script returns [23:35:36]free content buf [23:35:36]Sock 10.Close socket [23:35:36]Sock 10.Thread stoped [23:35:37]Connected sock=11 [23:35:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 F7 EC 04 01 99 9A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 80 38 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 E0 C6 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 C6 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B EE 00 00 00 00 07 04 06 00 E0 C6 08 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 C6 A2 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B0 2C 01 00 35 04 06 00 A2 97 F5 04 1F A7 BC 2B CD AB 70 8C 94 3C [23:35:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 07 80 47 00 80 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 34 36 35 32 10 04 04 00 B0 2C 01 00 F4 03 04 00 4C 4A 25 66 B6 04 01 00 00 9C 9A 53 A9 A7 B4 50 4B [23:35:37]CommunicateWithHost err = 0 [23:35:37]CheckOFDResponse [23:35:37]1017 (14) - 77093643461234 [23:35:37]1041 (16) - 0000000000874652 [23:35:37]1040 (4) - 76976 [23:35:37]1012 (4) - 21.04.2024 17:18 [23:35:37]1206 (1) - 0 [23:35:37]OFD Sender: Remove packet 76976 [23:35:37]ProducePacketName [23:35:37]name=ofd_packets/00076976 [23:35:37]NVStorageDeleteData [23:35:37]OFD Sender: No OFD packet to send [23:35:42]OFD Sender: No OFD packet to send [23:35:47]OFD Sender: No OFD packet to send [23:35:52]OFD Sender: No OFD packet to send [23:35:57]OFD Sender: No OFD packet to send [23:36:02]OFD Sender: No OFD packet to send [23:36:07]OFD Sender: No OFD packet to send [23:36:12]OFD Sender: No OFD packet to send [23:36:17]OFD Sender: No OFD packet to send [23:36:22]OFD Sender: No OFD packet to send [23:36:27]OFD Sender: No OFD packet to send [23:36:32]OFD Sender: No OFD packet to send [23:36:37]OFD Sender: No OFD packet to send [23:36:42]OFD Sender: No OFD packet to send [23:36:47]OFD Sender: No OFD packet to send [23:36:52]OFD Sender: No OFD packet to send [23:36:57]OFD Sender: No OFD packet to send [23:37:02]OFD Sender: No OFD packet to send [23:37:07]OFD Sender: No OFD packet to send [23:37:12]OFD Sender: No OFD packet to send [23:37:17]OFD Sender: No OFD packet to send [23:37:22]OFD Sender: No OFD packet to send [23:37:27]OFD Sender: No OFD packet to send [23:37:32]OFD Sender: No OFD packet to send [23:37:37]OFD Sender: No OFD packet to send [23:37:42]OFD Sender: No OFD packet to send [23:37:47]OFD Sender: No OFD packet to send [23:37:52]OFD Sender: No OFD packet to send [23:37: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:40]accept exits with 8 [23:38:40]New connection [23:38:40]New thread 3066801508 created [23:38:40]Thread 3066944868 joined [23:38:40]Waiting for new connection... [23:38:40] Sock 8.Parse request [23:38:40]Sock 8.Check first char [23:38:40]Sock 8.First char is OK [23:38:40]request: POST /json_proto HTTP/1.0 [23:38:40]Method: POST [23:38:40]URL: /json_proto [23:38:40]Method is POST - this is cgi request [23:38:40]url: /json_proto [23:38:40]query_string will be loaded in cgi processing [23:38:40]execute_cgi json_proto POST (null) [23:38:40]execute_cgi path=json_proto method=POST [23:38:40]POST find Content-Length [23:38:40]Host: 172.17.62.5:8080 [23:38:40]Content-Length: 987 [23:38:40]Content-Type: application/json [23:38:40] [23:38:40]POST finish read [23:38:40]Found Content-Length = 987 [23:38:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191525", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 28.390, "sum" : 899.96, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 28.39 \u0441\u043E\u043C", "deposit" : 1000.00, "total" : 899.00, "payments": [ { "type": 0, "sum" : 899.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:38:40]execute_script... [23:38: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)191525", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 28.390, "sum" : 899.96, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 28.39 \u0441\u043E\u043C", "deposit" : 1000.00, "total" : 899.00, "payments": [ { "type": 0, "sum" : 899.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:38:40]POST & json_proto [23:38:40]process_json_proto [23:38:40]json parsed OK: [23:38:40]protocol is kg_v1.0 [23:38:40]action value=close_receipt [23:38:40]process_action close_receipt [23:38:40]cmd_close_receipt [23:38:40]MH_GetDate [23:38:40]Write to MH i2c: F0 00 00 E5 19 ED [23:38:40]Write i2c OK [23:38:40]MH_I2C_Read... [23:38:40]Read from MH i2c: F0 [23:38:40]MH_I2C_Read... [23:38:40]Read from MH i2c: F0 09 00 [23:38:40]MH_I2C_Read... [23:38:40]Read from MH i2c: F0 09 00 E5 19 00 82 A3 25 66 F4 E9 65 64 4C [23:38:40]GetLastDocTimeStamp 1713742534 [23:38:40]current date 1713742722 [23:38:40]FM_GetShiftState [23:38:40]SAM_PROTO_GetShiftState [23:38:40]wFMCommunicate request_size=4 [23:38:40]MH_SAM_APDU [23:38:40]CAPDU: 80 13 01 00 [23:38:40]Write to MH i2c: E2 08 00 E6 19 80 13 01 00 00 00 00 00 7C [23:38:40]Write i2c OK [23:38:40]MH_I2C_Read... [23:38:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:38:40]Read from MH i2c: E2 [23:38:40]MH_I2C_Read... [23:38:40]Read from MH i2c: E2 0E 00 [23:38:40]MH_I2C_Read... [23:38:40]Read from MH i2c: E2 0E 00 E6 19 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 C3 [23:38:40]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [23:38:40]wFMCommunicate OK [23:38:40]SAM_PROTO_GetShiftState done [23:38:40]FM_GetShiftState done [23:38:40]opened in 1713658965 [23:38:40]opened+sec_in_day 1713745365 [23:38:40]quantity*price = 89996 [23:38:40]sum+1 = 89997 [23:38:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.96 ИТОГО: 899.00 Внесено: 1000.00 СДАЧА: 101.00 НСП 1% : 7.96 НДС 12% : 95.57 Наличными: 899.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 233 21.04.2024 23:38 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 28.39 сом ФМ: 0000000000874652 ФД: 76977 ФПД: 163348798427772 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T233842&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76977&fm=163348798427772&tin=02508201610067®Number=0000000000091573&sum=89900 [23:38:41]StoreToDocumentArchive [23:38:41]shift 372 fd 76977 [23:38:41]save to /storage/0372/doc_00076977 [23:38:41]save last doc name /storage/0372/doc_00076977 to /storage/kkm_last_doc_name [23:38:41]save OK [23:38:41]Clear old archive folders... [23:38:41]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:38:41]tlvbuf is 00C6BF30 [23:38:41]SAM_PROTO_ClearQueue [23:38:41]wFMCommunicate request_size=4 [23:38:41]MH_SAM_APDU [23:38:41]CAPDU: 80 09 00 00 [23:38:41]Write to MH i2c: E2 08 00 F3 19 80 09 00 00 00 00 00 00 7E [23:38:41]Write i2c OK [23:38:41]MH_I2C_Read... [23:38:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:38:41]Read from MH i2c: E2 [23:38:41]MH_I2C_Read... [23:38:41]Read from MH i2c: E2 03 00 [23:38:41]MH_I2C_Read... [23:38:41]Read from MH i2c: E2 03 00 F3 19 00 90 00 80 [23:38:41]RAPDU: 90 00 [23:38:41]wFMCommunicate OK [23:38:41]SAM_PROTO_ClearQueue done [23:38:41]KKMCreateOFDPacket [23:38:41]OFDProtocolAddRootSTLVToBuf [23:38:41]FM_MakeSignedData [23:38:41]FM_MakeSignedData [23:38:41]SAM_PROTO_SignData [23:38:41]wFMCommunicate request_size=4 [23:38:41]MH_SAM_APDU [23:38:41]CAPDU: 80 0D 01 02 [23:38:41]Write to MH i2c: E2 08 00 F4 19 80 0D 01 02 00 00 00 00 86 [23:38:41]Write i2c OK [23:38:41]MH_I2C_Read... [23:38:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:38:41]Read from MH i2c: E2 [23:38:41]MH_I2C_Read... [23:38:41]Read from MH i2c: E2 03 00 [23:38:41]MH_I2C_Read... [23:38:41]Read from MH i2c: E2 03 00 F4 19 00 90 00 81 [23:38:41]RAPDU: 90 00 [23:38:41]wFMCommunicate OK [23:38:41]wFMCommunicate request_size=255 [23:38:41]MH_SAM_APDU [23:38:41]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E6 6E 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 8C 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 25 00 00 00 00 07 04 06 00 2C 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 E9 00 00 00 F4 03 04 00 82 A3 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B1 2C 01 00 35 04 06 00 94 90 [23:38:41]Write to MH i2c: E2 02 01 F5 19 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E6 6E 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 8C 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 25 00 00 00 00 07 04 06 00 2C 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 E9 00 00 00 F4 03 04 00 82 A3 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B1 2C 01 00 35 04 06 00 94 90 00 00 A6 [23:38:41]Write i2c OK [23:38:41]MH_I2C_Read... [23:38:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:38:42]Read from MH i2c: E2 [23:38:42]MH_I2C_Read... [23:38:42]Read from MH i2c: E2 03 00 [23:38:42]MH_I2C_Read... [23:38:42]Read from MH i2c: E2 03 00 F5 19 00 90 00 82 [23:38:42]RAPDU: 90 00 [23:38:42]wFMCommunicate OK [23:38:42]wFMCommunicate request_size=9 [23:38:42]MH_SAM_APDU [23:38:42]CAPDU: 80 0D 02 02 04 9B 1A D2 7C [23:38:42]Write to MH i2c: E2 0C 00 F6 19 80 0D 02 02 04 00 9B 1A D2 7C 00 00 94 [23:38:42]Write i2c OK [23:38:42]MH_I2C_Read... [23:38:42]Read from MH i2c: E2 [23:38:42]MH_I2C_Read... [23:38:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:38:42]Read from MH i2c: E2 03 00 [23:38:42]MH_I2C_Read... [23:38:42]Read from MH i2c: E2 03 00 F6 19 00 90 00 83 [23:38:42]RAPDU: 90 00 [23:38:42]wFMCommunicate OK [23:38:42]wFMCommunicate request_size=4 [23:38:42]MH_SAM_APDU [23:38:42]CAPDU: 80 0D 03 02 [23:38:42]Write to MH i2c: E2 08 00 F7 19 80 0D 03 02 00 00 00 00 8B [23:38:42]Write i2c OK [23:38:42]MH_I2C_Read... [23:38:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:38:42]Read from MH i2c: E2 [23:38:42]MH_I2C_Read... [23:38:42]Read from MH i2c: E2 0B 00 [23:38:42]MH_I2C_Read... [23:38:42]Read from MH i2c: E2 0B 00 F7 19 00 AC 81 72 40 D2 F4 AD F4 90 00 D2 [23:38:42]RAPDU: AC 81 72 40 D2 F4 AD F4 90 00 [23:38:42]wFMCommunicate OK [23:38:42]SAM_PROTO_SignData done [23:38:42]FM_MakeSignedData done [23:38:42]CreateOFDProtocolMessage [23:38:42]wFMCommunicate request_size=4 [23:38:42]MH_SAM_APDU [23:38:42]CAPDU: 80 11 00 00 [23:38:42]Write to MH i2c: E2 08 00 F8 19 80 11 00 00 00 00 00 00 8B [23:38:42]Write i2c OK [23:38:42]MH_I2C_Read... [23:38:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:38:42]Read from MH i2c: E2 [23:38:42]MH_I2C_Read... [23:38:42]Read from MH i2c: E2 17 00 [23:38:42]MH_I2C_Read... [23:38:42]Read from MH i2c: E2 17 00 F8 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 DE [23:38:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [23:38:42]wFMCommunicate OK [23:38:42]CreateOFDProtocolMessage done [23:38:42]OFDSenderStorePacket 76977 [23:38:42]StoreOFDPacket docnum=76977 [23:38:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 F6 3D 06 01 ED E0 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E6 6E 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 8C 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 25 00 00 00 00 07 04 06 00 2C 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 E9 00 00 00 F4 03 04 00 82 A3 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B1 2C 01 00 35 04 06 00 94 90 9B 1A D2 7C AC 81 72 40 D2 F4 AD F4 [23:38:42]CheckFolder [23:38:42]dirname=/storage/ofd_packets [23:38:42]CheckFolder done [23:38:42]ProducePacketName [23:38:42]name=ofd_packets/00076977 [23:38:42]NVStorageSaveData ofd_packets/00076977 [23:38:42]File name is /storage/ofd_packets/00076977 [23:38:42]Write 300 bytes [23:38:42]NVStorageSaveData done [23:38:42]OFDSenderStorePacket done [23:38:42]KKMCreateOFDPacket done [23:38:42]NVStorageSaveData kkm_last_timestamp [23:38:42]File name is /storage/kkm_last_timestamp [23:38:42]Write 4 bytes [23:38:42]NVStorageSaveData done [23:38:42]ExternCall_PrintAddStr [23:38:42]wPrintStart [23:38:42]Write to MH i2c: 01 00 00 F9 19 12 [23:38:42]Write i2c OK [23:38:42]MH_I2C_Read... [23:38:42]Read from MH i2c: 01 [23:38:42]MH_I2C_Read... [23:38:42]Read from MH i2c: 01 07 00 [23:38:42]MH_I2C_Read... [23:38:42]Read from MH i2c: 01 07 00 F9 19 00 00 00 00 00 FF 0F 27 [23:38:42]RasterBufferAndPrint [23:38:42]line Счет N : (1)191525 [23:38:42]line ИНН: 02508201610067 [23:38:42]line Контрольно-Кассовый Чек [23:38:42]line ПРОДАЖА [23:38:42]line ТРК (МРК, ГНК) : 71 [23:38:42]line Товар: 2711190000 [23:38:42]line ГАЗ-К-5 [23:38:42]line 28.390 * 31.70 [23:38:42]line = 899.96 [23:38:42]line НДС 12% НСП 1% [23:38:42]line > о реализуемом товаре [23:38:42]line ОКРУГЛЕНИЕ: -0.96 [23:38:42]line ИТОГО: 899.00 [23:38:42]line Внесено: 1000.00 [23:38:42]line СДАЧА: 101.00 [23:38:42]line НСП 1% : 7.96 [23:38:42]line НДС 12% : 95.57 [23:38:42]line Наличными: 899.00 [23:38:42]line Безнал.: 0.00 [23:38:42]line Место: АЗС № 106 "Партнер Нефть" [23:38:42]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [23:38:42]line СНО: Общий режим [23:38:42]line Чек 233 21.04.2024 23:38 [23:38:42]line Смена: 372 ФФД: 1.0 [23:38:42]line ЗНМ: 0300000141 [23:38:42]line РНМ: 0000000000091573 [23:38:42]line Версия ККМ: 001 [23:38:42]line [23:38:42]line Дисконтная программа [23:38:42]line СУГ [23:38:42]line номер 106 [23:38:42]line сэкономлено 28.39 сом [23:38:42]line ФМ: 0000000000874652 [23:38:42]line ФД: 76977 [23:38:42]line ФПД: 163348798427772 [23:38:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T233842&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76977&fm=163348798427772&tin=02508201610067®Number=0000000000091573&sum=89900 [23:38:42]OFD Sender: Processing packet 76977 [packets to send 129, broken 128] [23:38:42]ProducePacketName [23:38:42]name=ofd_packets/00076977 [23:38:42]OFD Sender: To server: pG, [23:38:42]CommunicateWithHost lk.salyk.kg:30040 [23:38:42]ConnectInit lk.salyk.kg [23:38:42]written 0, free lines is 4095 [23:38:43]Write to MH i2c: 01 00 00 28 1A 42 [23:38:43]Write i2c OK [23:38:43]MH_I2C_Read... [23:38:43]Read from MH i2c: 01 [23:38:43]MH_I2C_Read... [23:38:43]Read from MH i2c: 01 07 00 [23:38:43]MH_I2C_Read... [23:38:43]Read from MH i2c: 01 07 00 28 1A 00 00 00 00 00 9A 0C EF [23:38:43]RasterBufferAndPrint [23:38:43]line [23:38:43]line [23:38:43]line [23:38:43]line [23:38:43]line [23:38:43]written 0, free lines is 3233 [23:38:43]MH_Cut [23:38:43]Write to MH i2c: D1 01 00 2F 1A 01 1B [23:38:43]Write i2c OK [23:38:43]MH_I2C_Read... [23:38:43]Read from MH i2c: D1 [23:38:43]MH_I2C_Read... [23:38:43]Read from MH i2c: D1 01 00 [23:38:43]MH_I2C_Read... [23:38:43]Read from MH i2c: D1 01 00 2F 1A 00 1A [23:38:43]Write to MH i2c: 01 00 00 30 1A 4A [23:38:43]Write i2c OK [23:38:43]MH_I2C_Read... [23:38:43]*** Cut start [23:38:43]*** Partial cut [23:38:43]*** CUTSNS_PIN = 1 [23:38:44]*** CUTSNS_PIN = 0 [23:38:44]*** Brake cut motor [23:38:44]Read from MH i2c: 01 [23:38:44]MH_I2C_Read... [23:38:44]*** Stop cut motor [23:38:44]*** Cut end [23:38:44]Read from MH i2c: 01 07 00 [23:38:44]MH_I2C_Read... [23:38:44]Read from MH i2c: 01 07 00 30 1A 00 00 00 00 00 FF 0F 5F [23:38:44]process_action close_receipt done [23:38:44]requested_data is exist [23:38:44]produce_requested_data [23:38:44]requested_item fm.sn is exist - process it [23:38:44]wFMCommunicate request_size=4 [23:38:44]MH_SAM_APDU [23:38:44]CAPDU: 80 11 00 00 [23:38:44]Write to MH i2c: E2 08 00 31 1A 80 11 00 00 00 00 00 00 C5 [23:38:44]Write i2c OK [23:38:44]MH_I2C_Read... [23:38:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:38:44]Read from MH i2c: E2 [23:38:44]MH_I2C_Read... [23:38:44]Read from MH i2c: E2 17 00 [23:38:44]MH_I2C_Read... [23:38:44]Read from MH i2c: E2 17 00 31 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 18 [23:38:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [23:38:44]wFMCommunicate OK [23:38:44]requested_item fd.num is exist - process it [23:38:44]SAM_PROTO_GetFieldsCounters [23:38:44]wFMCommunicate request_size=4 [23:38:44]MH_SAM_APDU [23:38:44]CAPDU: 80 13 00 00 [23:38:44]Write to MH i2c: E2 08 00 32 1A 80 13 00 00 00 00 00 00 C8 [23:38:44]Write i2c OK [23:38:44]MH_I2C_Read... [23:38:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:38:44]Read from MH i2c: E2 [23:38:44]MH_I2C_Read... [23:38:44]Read from MH i2c: E2 62 00 [23:38:44]MH_I2C_Read... [23:38:44]Read from MH i2c: E2 62 00 32 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B1 2C 01 00 0E 04 04 00 74 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 F7 [23:38: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B1 2C 01 00 0E 04 04 00 74 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 [23:38:44]wFMCommunicate OK [23:38:44]SAM_PROTO_GetFieldsCounters done [23:38:44]requested_item shift.num is exist - process it [23:38:44]requested_item shift.opened is exist - process it [23:38:44]req_shift_opened [23:38:44]FM_GetShiftState [23:38:44]SAM_PROTO_GetShiftState [23:38:44]wFMCommunicate request_size=4 [23:38:44]MH_SAM_APDU [23:38:44]CAPDU: 80 13 01 00 [23:38:44]Write to MH i2c: E2 08 00 33 1A 80 13 01 00 00 00 00 00 CA [23:38:44]Write i2c OK [23:38:44]MH_I2C_Read... [23:38:44]Connected sock=11 [23:38:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 F6 3D 06 01 ED E0 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E6 6E 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 8C 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 25 00 00 00 00 07 04 06 00 2C 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 E9 00 00 00 F4 03 04 00 82 A3 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B1 2C 01 00 35 04 06 00 94 90 9B 1A D2 7C AC 81 72 40 D2 F4 AD F4 [23:38:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:38:44]Read from MH i2c: E2 [23:38:44]MH_I2C_Read... [23:38:44]Read from MH i2c: E2 0E 00 [23:38:44]MH_I2C_Read... [23:38:44]Read from MH i2c: E2 0E 00 33 1A 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 11 [23:38:44]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [23:38:44]wFMCommunicate OK [23:38:44]SAM_PROTO_GetShiftState done [23:38:44]FM_GetShiftState done [23:38:44]req_shift_opened done [23:38:44]requested_item shift.open_date is exist - process it [23:38:44]req_shift_open_date [23:38:44]req_shift_open_date done [23:38:44]produce_requested_data done [23:38:44]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76977,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [23:38:44]process_action_free close_receipt [23:38:44]json_value_free [23:38:44]json_value_free done [23:38:44]process_json_proto returns [23:38:44]Send response to host [23:38:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76977,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [23:38:44]free response buf [23:38:44]execute_script done [23:38:44]execute_script returns [23:38:44]free content buf [23:38:44]Sock 8.Close socket [23:38:44]Sock 8.Thread stoped [23:38:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 07 32 47 00 0E 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 34 36 35 32 10 04 04 00 B1 2C 01 00 F4 03 04 00 08 4B 25 66 B6 04 01 00 00 C5 15 D5 6B BD B5 24 7C [23:38:45]CommunicateWithHost err = 0 [23:38:45]CheckOFDResponse [23:38:45]1017 (14) - 77093643461234 [23:38:45]1041 (16) - 0000000000874652 [23:38:45]1040 (4) - 76977 [23:38:45]1012 (4) - 21.04.2024 17:21 [23:38:45]1206 (1) - 0 [23:38:45]OFD Sender: Remove packet 76977 [23:38:45]ProducePacketName [23:38:45]name=ofd_packets/00076977 [23:38:45]NVStorageDeleteData [23:38:45]OFD Sender: No OFD packet to send [23:38:50]OFD Sender: No OFD packet to send [23:38:55]OFD Sender: No OFD packet to send [23:39:00]OFD Sender: No OFD packet to send [23:39:05]OFD Sender: No OFD packet to send [23:39:10]OFD Sender: No OFD packet to send [23:39:15]OFD Sender: No OFD packet to send [23:39:20]OFD Sender: No OFD packet to send [23:39:25]OFD Sender: No OFD packet to send [23:39:30]OFD Sender: No OFD packet to send [23:39:35]OFD Sender: No OFD packet to send [23:39:40]OFD Sender: No OFD packet to send [23:39:45]OFD Sender: No OFD packet to send [23:39:50]OFD Sender: No OFD packet to send [23:39:55]OFD Sender: No OFD packet to send [23:40:00]OFD Sender: No OFD packet to send [23:40:05]OFD Sender: No OFD packet to send [23:40:10]OFD Sender: No OFD packet to send [23:40:15]OFD Sender: No OFD packet to send [23:40:20]OFD Sender: No OFD packet to send [23:40:25]OFD Sender: No OFD packet to send [23:40:30]OFD Sender: No OFD packet to send [23:40:35]OFD Sender: No OFD packet to send [23:40:40]OFD Sender: No OFD packet to send [23:40:45]OFD Sender: No OFD packet to send [23:40:50]OFD Sender: No OFD packet to send [23:40:55]OFD Sender: No OFD packet to send [23:41:00]OFD Sender: No OFD packet to send [23:41:05]OFD Sender: No OFD packet to send [23:41:10]OFD Sender: No OFD packet to send [23:41:15]OFD Sender: No OFD packet to send [23:41:16]accept exits with 9 [23:41:16]New connection [23:41:16]New thread 3066944868 created [23:41:16]Thread 3066801508 joined [23:41:16]Waiting for new connection... [23:41:16] Sock 9.Parse request [23:41:16]Sock 9.Check first char [23:41:16]Sock 9.First char is OK [23:41:16]request: POST /json_proto HTTP/1.0 [23:41:16]Method: POST [23:41:16]URL: /json_proto [23:41:16]Method is POST - this is cgi request [23:41:16]url: /json_proto [23:41:16]query_string will be loaded in cgi processing [23:41:16]execute_cgi json_proto POST (null) [23:41:16]execute_cgi path=json_proto method=POST [23:41:16]POST find Content-Length [23:41:16]Host: 172.17.62.5:8080 [23:41:16]Content-Length: 215 [23:41:16]Content-Type: application/json [23:41:16] [23:41:16]POST finish read [23:41:16]Found Content-Length = 215 [23:41:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:41:16]execute_script... [23:41:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:41:16]POST & json_proto [23:41:16]process_json_proto [23:41:16]json parsed OK: [23:41:16]protocol is kg_v1.0 [23:41:16]action value=get_value [23:41:16]process_action get_value [23:41:16]cmd_get_value [23:41:16]process_action get_value done [23:41:16]requested_data is exist [23:41:16]produce_requested_data [23:41:16]requested_item kkm.sn is exist - process it [23:41:16]requested_item kkm.ver is exist - process it [23:41:16]requested_item fm.sn is exist - process it [23:41:16]wFMCommunicate request_size=4 [23:41:16]MH_SAM_APDU [23:41:16]CAPDU: 80 11 00 00 [23:41:16]Write to MH i2c: E2 08 00 34 1A 80 11 00 00 00 00 00 00 C8 [23:41:16]Write i2c OK [23:41:16]MH_I2C_Read... [23:41:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:41:16]Read from MH i2c: E2 [23:41:16]MH_I2C_Read... [23:41:16]Read from MH i2c: E2 17 00 [23:41:16]MH_I2C_Read... [23:41:16]Read from MH i2c: E2 17 00 34 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 1B [23:41:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [23:41:16]wFMCommunicate OK [23:41:16]requested_item fd.num is exist - process it [23:41:16]SAM_PROTO_GetFieldsCounters [23:41:16]wFMCommunicate request_size=4 [23:41:16]MH_SAM_APDU [23:41:16]CAPDU: 80 13 00 00 [23:41:16]Write to MH i2c: E2 08 00 35 1A 80 13 00 00 00 00 00 00 CB [23:41:16]Write i2c OK [23:41:16]MH_I2C_Read... [23:41:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:41:16]Read from MH i2c: E2 [23:41:16]MH_I2C_Read... [23:41:16]Read from MH i2c: E2 62 00 [23:41:16]MH_I2C_Read... [23:41:16]Read from MH i2c: E2 62 00 35 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B1 2C 01 00 0E 04 04 00 74 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 FA [23: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B1 2C 01 00 0E 04 04 00 74 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 [23:41:16]wFMCommunicate OK [23:41:16]SAM_PROTO_GetFieldsCounters done [23:41:16]requested_item shift.num is exist - process it [23:41:16]requested_item shift.opened is exist - process it [23:41:16]req_shift_opened [23:41:16]FM_GetShiftState [23:41:16]SAM_PROTO_GetShiftState [23:41:16]wFMCommunicate request_size=4 [23:41:16]MH_SAM_APDU [23:41:16]CAPDU: 80 13 01 00 [23:41:16]Write to MH i2c: E2 08 00 36 1A 80 13 01 00 00 00 00 00 CD [23:41:16]Write i2c OK [23:41:16]MH_I2C_Read... [23:41:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:41:16]Read from MH i2c: E2 [23:41:16]MH_I2C_Read... [23:41:16]Read from MH i2c: E2 0E 00 [23:41:16]MH_I2C_Read... [23:41:16]Read from MH i2c: E2 0E 00 36 1A 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 14 [23:41:16]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [23:41:16]wFMCommunicate OK [23:41:16]SAM_PROTO_GetShiftState done [23:41:16]FM_GetShiftState done [23:41:16]req_shift_opened done [23:41:16]requested_item shift.open_date is exist - process it [23:41:16]req_shift_open_date [23:41:16]req_shift_open_date done [23:41:16]produce_requested_data done [23:41:16]produce_requested_data return {"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76977,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [23:41:16]process_action_free get_value [23:41:16]json_value_free [23:41:16]json_value_free done [23:41:16]process_json_proto returns [23:41:16]Send response to host [23:41:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76977,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [23:41:16]free response buf [23:41:16]execute_script done [23:41:16]execute_script returns [23:41:16]free content buf [23:41:16]Sock 9.Close socket [23:41:16]Sock 9.Thread stoped [23:41:16]accept exits with 8 [23:41:16]New connection [23:41:16]New thread 3066801508 created [23:41:16]Thread 3066944868 joined [23:41:16]Waiting for new connection... [23:41:16] Sock 8.Parse request [23:41:16]Sock 8.Check first char [23:41:16]Sock 8.First char is OK [23:41:16]request: POST /json_proto HTTP/1.0 [23:41:16]Method: POST [23:41:16]URL: /json_proto [23:41:16]Method is POST - this is cgi request [23:41:16]url: /json_proto [23:41:16]query_string will be loaded in cgi processing [23:41:16]execute_cgi json_proto POST (null) [23:41:16]execute_cgi path=json_proto method=POST [23:41:16]POST find Content-Length [23:41:16]Host: 172.17.62.5:8080 [23:41:16]Content-Length: 331 [23:41:16]Content-Type: application/json [23:41:16] [23:41:16]POST finish read [23:41:16]Found Content-Length = 331 [23:41:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:41:16]execute_script... [23:41:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:41:17]POST & json_proto [23:41:17]process_json_proto [23:41:17]json parsed OK: [23:41:17]protocol is kg_v1.0 [23:41:17]action value=get_value [23:41:17]process_action get_value [23:41:17]cmd_get_value [23:41:17]process_action get_value done [23:41:17]requested_data is exist [23:41:17]produce_requested_data [23:41:17]requested_item fm.sale.total is exist - process it [23:41:17]SAM_PROTO_GetFMData [23:41:17]wFMCommunicate request_size=4 [23:41:17]MH_SAM_APDU [23:41:17]CAPDU: 80 13 03 00 [23:41:17]Write to MH i2c: E2 08 00 37 1A 80 13 03 00 00 00 00 00 D0 [23:41:17]Write i2c OK [23:41:17]MH_I2C_Read... [23:41:17]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:41:17]Read from MH i2c: E2 [23:41:17]MH_I2C_Read... [23:41:17]Read from MH i2c: E2 FD 00 [23:41:17]MH_I2C_Read... [23:41:17]Read from MH i2c: E2 FD 00 37 1A 00 C8 04 85 04 C4 04 6E 04 04 00 C9 29 01 00 69 04 A3 00 6F 04 04 00 D6 27 01 00 B1 04 05 00 0A A4 C1 BB 02 70 04 05 00 10 9F A9 77 02 72 04 04 00 FA 04 18 44 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 43 25 52 4A 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 3F 72 31 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F3 01 00 00 B1 04 05 00 F4 34 DE 15 01 70 04 05 00 F4 34 DE 15 01 72 04 00 00 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 6D 18 82 1D EF 90 00 78 [23:41:17]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 C9 29 01 00 69 04 A3 00 6F 04 04 00 D6 27 01 00 B1 04 05 00 0A A4 C1 BB 02 70 04 05 00 10 9F A9 77 02 72 04 04 00 FA 04 18 44 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 43 25 52 4A 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 3F 72 31 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F3 01 00 00 B1 04 05 00 F4 34 DE 15 01 70 04 05 00 F4 34 DE 15 01 72 04 00 00 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 6D 18 82 1D EF 90 00 [23:41:17]wFMCommunicate OK [23:41:17]wFMCommunicate request_size=4 [23:41:17]MH_SAM_APDU [23:41:17]CAPDU: 80 17 00 00 [23:41:17]Write to MH i2c: E2 08 00 38 1A 80 17 00 00 00 00 00 00 D2 [23:41:17]Write i2c OK [23:41:17]MH_I2C_Read... [23:41:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:41:17]Read from MH i2c: E2 [23:41:17]MH_I2C_Read... [23:41:17]Read from MH i2c: E2 FD 00 [23:41:17]MH_I2C_Read... [23:41:17]Read from MH i2c: E2 FD 00 38 1A 00 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 ED 81 75 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 90 00 C6 [23:41:17]RAPDU: 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 ED 81 75 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 90 00 [23:41:17]wFMCommunicate OK [23:41:17]wFMCommunicate request_size=4 [23:41:17]MH_SAM_APDU [23:41:17]CAPDU: 80 17 00 00 [23:41:17]Write to MH i2c: E2 08 00 39 1A 80 17 00 00 00 00 00 00 D3 [23:41:17]Write i2c OK [23:41:17]MH_I2C_Read... [23:41:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:41:18]Read from MH i2c: E2 [23:41:18]MH_I2C_Read... [23:41:18]Read from MH i2c: E2 FD 00 [23:41:18]MH_I2C_Read... [23:41:18]Read from MH i2c: E2 FD 00 39 1A 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 AB [23:41:18]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [23:41:18]wFMCommunicate OK [23:41:18]wFMCommunicate request_size=4 [23:41:18]MH_SAM_APDU [23:41:18]CAPDU: 80 17 00 00 [23:41:18]Write to MH i2c: E2 08 00 3A 1A 80 17 00 00 00 00 00 00 D4 [23:41:18]Write i2c OK [23:41:18]MH_I2C_Read... [23:41:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:41:18]Read from MH i2c: E2 [23:41:18]MH_I2C_Read... [23:41:18]Read from MH i2c: E2 FD 00 [23:41:18]MH_I2C_Read... [23:41:18]Read from MH i2c: E2 FD 00 3A 1A 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 4C [23:41:18]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [23:41:18]wFMCommunicate OK [23:41:18]wFMCommunicate request_size=4 [23:41:18]MH_SAM_APDU [23:41:18]CAPDU: 80 17 00 00 [23:41:18]Write to MH i2c: E2 08 00 3B 1A 80 17 00 00 00 00 00 00 D5 [23:41:18]Write i2c OK [23:41:18]MH_I2C_Read... [23:41:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [23:41:18]Read from MH i2c: E2 [23:41:18]MH_I2C_Read... [23:41:18]Read from MH i2c: E2 E5 00 [23:41:18]MH_I2C_Read... [23:41:18]Read from MH i2c: E2 E5 00 3B 1A 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 B9 [23:41:18]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:41:18]wFMCommunicate OK [23:41:18]SAM_PROTO_GetFMData done [23:41:18]requested_item fm.sale_refund.total is exist - process it [23:41:18]requested_item fm.buy.total is exist - process it [23:41:18]requested_item shift.sale.total is exist - process it [23:41:18]SAM_PROTO_GetShiftData [23:41:18]wFMCommunicate request_size=4 [23:41:18]MH_SAM_APDU [23:41:18]CAPDU: 80 13 02 00 [23:41:18]Write to MH i2c: E2 08 00 3C 1A 80 13 02 00 00 00 00 00 D4 [23:41:18]Write i2c OK [23:41:18]MH_I2C_Read... [23:41:19]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:41:19]Read from MH i2c: E2 [23:41:19]MH_I2C_Read... [23:41:19]Read from MH i2c: E2 FD 00 [23:41:19]MH_I2C_Read... [23:41:19]Read from MH i2c: E2 FD 00 3C 1A 00 BB 04 AA 04 B7 04 6E 04 04 00 E9 00 00 00 69 04 9E 00 6F 04 04 00 E6 00 00 00 B1 04 04 00 BB 85 05 02 70 04 04 00 84 30 AE 01 72 04 03 00 37 55 57 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 75 F7 36 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 9C 94 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 03 00 00 00 B1 04 03 00 00 52 03 70 04 03 00 00 52 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 4E 5A EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 69 [23:41:19]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 E9 00 00 00 69 04 9E 00 6F 04 04 00 E6 00 00 00 B1 04 04 00 BB 85 05 02 70 04 04 00 84 30 AE 01 72 04 03 00 37 55 57 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 75 F7 36 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 9C 94 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 03 00 00 00 B1 04 03 00 00 52 03 70 04 03 00 00 52 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 4E 5A EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [23:41:19]wFMCommunicate OK [23:41:19]wFMCommunicate request_size=4 [23:41:19]MH_SAM_APDU [23:41:19]CAPDU: 80 17 00 00 [23:41:19]Write to MH i2c: E2 08 00 3D 1A 80 17 00 00 00 00 00 00 D7 [23:41:19]Write i2c OK [23:41:19]MH_I2C_Read... [23:41:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:41:19]Read from MH i2c: E2 [23:41:19]MH_I2C_Read... [23:41:19]Read from MH i2c: E2 FD 00 [23:41:19]MH_I2C_Read... [23:41:19]Read from MH i2c: E2 FD 00 3D 1A 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 87 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0F [23:41:19]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 87 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:41:19]wFMCommunicate OK [23:41:19]wFMCommunicate request_size=4 [23:41:19]MH_SAM_APDU [23:41:19]CAPDU: 80 17 00 00 [23:41:19]Write to MH i2c: E2 08 00 3E 1A 80 17 00 00 00 00 00 00 D8 [23:41:19]Write i2c OK [23:41:19]MH_I2C_Read... [23:41:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:41:19]Read from MH i2c: E2 [23:41:19]MH_I2C_Read... [23:41:19]Read from MH i2c: E2 FD 00 [23:41:19]MH_I2C_Read... [23:41:19]Read from MH i2c: E2 FD 00 3E 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 04 [23:41:19]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 [23:41:19]wFMCommunicate OK [23:41:19]wFMCommunicate request_size=4 [23:41:19]MH_SAM_APDU [23:41:19]CAPDU: 80 17 00 00 [23:41:19]Write to MH i2c: E2 08 00 3F 1A 80 17 00 00 00 00 00 00 D9 [23:41:19]Write i2c OK [23:41:19]MH_I2C_Read... [23:41:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:41:20]Read from MH i2c: E2 [23:41:20]MH_I2C_Read... [23:41:20]Read from MH i2c: E2 FD 00 [23:41:20]MH_I2C_Read... [23:41:20]Read from MH i2c: E2 FD 00 3F 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 4E [23:41:20]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 [23:41:20]wFMCommunicate OK [23:41:20]wFMCommunicate request_size=4 [23:41:20]MH_SAM_APDU [23:41:20]CAPDU: 80 17 00 00 [23:41:20]Write to MH i2c: E2 08 00 40 1A 80 17 00 00 00 00 00 00 DA [23:41:20]Write i2c OK [23:41:20]MH_I2C_Read... [23:41:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [23:41:20]Read from MH i2c: E2 [23:41:20]MH_I2C_Read... [23:41:20]Read from MH i2c: E2 D8 00 [23:41:20]MH_I2C_Read... [23:41:20]Read from MH i2c: E2 D8 00 40 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 C1 [23:41:20]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 [23:41:20]wFMCommunicate OK [23:41:20]SAM_PROTO_GetShiftData done [23:41:20]requested_item shift.sale.total_cash is exist - process it [23:41:20]requested_item shift.sale_refund.total is exist - process it [23:41:20]requested_item shift.sale_refund.total_cash is exist - process it [23:41:20]requested_item shift.buy.total is exist - process it [23:41:20]requested_item shift.buy.total_cash is exist - process it [23:41:20]produce_requested_data done [23:41:20]produce_requested_data return {"fm.sale.total":117399644.26,"fm.sale_refund.total":46618513.80,"fm.buy.total":0.00,"shift.sale.total":339163.47,"shift.sale.total_cash":281929.00,"shift.sale_refund.total":2176.00,"shift.sale_refund.total_cash":2176.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:41:20]process_action_free get_value [23:41:20]json_value_free [23:41:20]json_value_free done [23:41:20]process_json_proto returns [23:41:20]Send response to host [23:41:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":117399644.26,"fm.sale_refund.total":46618513.80,"fm.buy.total":0.00,"shift.sale.total":339163.47,"shift.sale.total_cash":281929.00,"shift.sale_refund.total":2176.00,"shift.sale_refund.total_cash":2176.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:41:20]free response buf [23:41:20]execute_script done [23:41:20]execute_script returns [23:41:20]free content buf [23:41:20]Sock 8.Close socket [23:41:20]Sock 8.Thread stoped [23:41:20]OFD Sender: No OFD packet to send [23:41:25]OFD Sender: No OFD packet to send [23:41:30]OFD Sender: No OFD packet to send [23:41:35]OFD Sender: No OFD packet to send [23:41:40]OFD Sender: No OFD packet to send [23:41:45]OFD Sender: No OFD packet to send [23:41:50]OFD Sender: No OFD packet to send [23:41:55]OFD Sender: No OFD packet to send [23:42:00]OFD Sender: No OFD packet to send [23:42:05]OFD Sender: No OFD packet to send [23:42:10]OFD Sender: No OFD packet to send [23:42:15]OFD Sender: No OFD packet to send [23:42:20]OFD Sender: No OFD packet to send [23:42:25]OFD Sender: No OFD packet to send [23:42:30]OFD Sender: No OFD packet to send [23:42:35]OFD Sender: No OFD packet to send [23:42:40]OFD Sender: No OFD packet to send [23:42:45]OFD Sender: No OFD packet to send [23:42:50]OFD Sender: No OFD packet to send [23:42:55]OFD Sender: No OFD packet to send [23:43:00]OFD Sender: No OFD packet to send [23:43:05]OFD Sender: No OFD packet to send [23:43:10]OFD Sender: No OFD packet to send [23:43:15]OFD Sender: No OFD packet to send [23:43:20]OFD Sender: No OFD packet to send [23:43:25]OFD Sender: No OFD packet to send [23:43:30]OFD Sender: No OFD packet to send [23:43:35]OFD Sender: No OFD packet to send [23:43:40]OFD Sender: No OFD packet to send [23:43:45]OFD Sender: No OFD packet to send [23:43:50]OFD Sender: No OFD packet to send [23:43:55]OFD Sender: No OFD packet to send [23:44:00]OFD Sender: No OFD packet to send [23:44:05]OFD Sender: No OFD packet to send [23:44:10]OFD Sender: No OFD packet to send [23:44:15]OFD Sender: No OFD packet to send [23:44:20]OFD Sender: No OFD packet to send [23:44:25]OFD Sender: No OFD packet to send [23:44:30]OFD Sender: No OFD packet to send [23:44:35]OFD Sender: No OFD packet to send [23:44:40]OFD Sender: No OFD packet to send [23:44:45]OFD Sender: No OFD packet to send [23:44:51]OFD Sender: No OFD packet to send [23:44:56]OFD Sender: No OFD packet to send [23:45:01]OFD Sender: No OFD packet to send [23:45:06]OFD Sender: No OFD packet to send [23:45:11]OFD Sender: No OFD packet to send [23:45:16]OFD Sender: No OFD packet to send [23:45:21]OFD Sender: No OFD packet to send [23:45:26]OFD Sender: No OFD packet to send [23:45:31]OFD Sender: No OFD packet to send [23:45:36]OFD Sender: No OFD packet to send [23:45:41]OFD Sender: No OFD packet to send [23:45:46]OFD Sender: No OFD packet to send [23:45:51]OFD Sender: No OFD packet to send [23:45:56]OFD Sender: No OFD packet to send [23:46:01]OFD Sender: No OFD packet to send [23:46:06]OFD Sender: No OFD packet to send [23:46:11]OFD Sender: No OFD packet to send [23:46:16]OFD Sender: No OFD packet to send [23:46:21]OFD Sender: No OFD packet to send [23:46:26]OFD Sender: No OFD packet to send [23:46:31]OFD Sender: No OFD packet to send [23:46:36]OFD Sender: No OFD packet to send [23:46:39]accept exits with 9 [23:46:39]New connection [23:46:39]New thread 3066944868 created [23:46:39]Thread 3066801508 joined [23:46:39]Waiting for new connection... [23:46:39] Sock 9.Parse request [23:46:39]Sock 9.Check first char [23:46:39]Sock 9.First char is OK [23:46:39]request: POST /json_proto HTTP/1.0 [23:46:39]Method: POST [23:46:39]URL: /json_proto [23:46:39]Method is POST - this is cgi request [23:46:39]url: /json_proto [23:46:39]query_string will be loaded in cgi processing [23:46:39]execute_cgi json_proto POST (null) [23:46:39]execute_cgi path=json_proto method=POST [23:46:39]POST find Content-Length [23:46:39]Host: 172.17.62.5:8080 [23:46:39]Content-Length: 819 [23:46:39]Content-Type: application/json [23:46:39] [23:46:39]POST finish read [23:46:39]Found Content-Length = 819 [23:46:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191527", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.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" : 1000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:46:39]execute_script... [23:46: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)191527", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.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" : 1000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:46:39]POST & json_proto [23:46:39]process_json_proto [23:46:39]json parsed OK: [23:46:39]protocol is kg_v1.0 [23:46:39]action value=close_receipt [23:46:39]process_action close_receipt [23:46:39]cmd_close_receipt [23:46:39]MH_GetDate [23:46:39]Write to MH i2c: F0 00 00 41 1A 4A [23:46:39]Write i2c OK [23:46:39]MH_I2C_Read... [23:46:39]Read from MH i2c: F0 [23:46:39]MH_I2C_Read... [23:46:39]Read from MH i2c: F0 09 00 [23:46:39]MH_I2C_Read... [23:46:39]Read from MH i2c: F0 09 00 41 1A 00 61 A5 25 66 F4 E9 65 64 8A [23:46:39]GetLastDocTimeStamp 1713742722 [23:46:39]current date 1713743201 [23:46:39]FM_GetShiftState [23:46:39]SAM_PROTO_GetShiftState [23:46:39]wFMCommunicate request_size=4 [23:46:39]MH_SAM_APDU [23:46:39]CAPDU: 80 13 01 00 [23:46:39]Write to MH i2c: E2 08 00 42 1A 80 13 01 00 00 00 00 00 D9 [23:46:39]Write i2c OK [23:46:39]MH_I2C_Read... [23:46:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:46:39]Read from MH i2c: E2 [23:46:39]MH_I2C_Read... [23:46:39]Read from MH i2c: E2 0E 00 [23:46:39]MH_I2C_Read... [23:46:39]Read from MH i2c: E2 0E 00 42 1A 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 20 [23:46:39]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [23:46:39]wFMCommunicate OK [23:46:39]SAM_PROTO_GetShiftState done [23:46:39]FM_GetShiftState done [23:46:39]opened in 1713658965 [23:46:39]opened+sec_in_day 1713745365 [23:46:39]quantity*price = 100013 [23:46:39]sum+1 = 100014 [23:46:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.13 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.13 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 234 21.04.2024 23:46 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 76978 ФПД: 176620153670997 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T234641&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76978&fm=176620153670997&tin=02508201610067®Number=0000000000091573&sum=100013 [23:46:40]StoreToDocumentArchive [23:46:40]shift 372 fd 76978 [23:46:40]save to /storage/0372/doc_00076978 [23:46:40]save last doc name /storage/0372/doc_00076978 to /storage/kkm_last_doc_name [23:46:40]save OK [23:46:40]Clear old archive folders... [23:46:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:46:40]tlvbuf is B6EBFE30 [23:46:40]SAM_PROTO_ClearQueue [23:46:40]wFMCommunicate request_size=4 [23:46:40]MH_SAM_APDU [23:46:40]CAPDU: 80 09 00 00 [23:46:40]Write to MH i2c: E2 08 00 4F 1A 80 09 00 00 00 00 00 00 DB [23:46:40]Write i2c OK [23:46:40]MH_I2C_Read... [23:46:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:46:40]Read from MH i2c: E2 [23:46:40]MH_I2C_Read... [23:46:40]Read from MH i2c: E2 03 00 [23:46:40]MH_I2C_Read... [23:46:40]Read from MH i2c: E2 03 00 4F 1A 00 90 00 DD [23:46:40]RAPDU: 90 00 [23:46:40]wFMCommunicate OK [23:46:40]SAM_PROTO_ClearQueue done [23:46:40]KKMCreateOFDPacket [23:46:40]OFDProtocolAddRootSTLVToBuf [23:46:40]FM_MakeSignedData [23:46:40]FM_MakeSignedData [23:46:40]SAM_PROTO_SignData [23:46:40]wFMCommunicate request_size=4 [23:46:40]MH_SAM_APDU [23:46:40]CAPDU: 80 0D 01 02 [23:46:40]Write to MH i2c: E2 08 00 50 1A 80 0D 01 02 00 00 00 00 E3 [23:46:40]Write i2c OK [23:46:40]MH_I2C_Read... [23:46:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:46:40]Read from MH i2c: E2 [23:46:40]MH_I2C_Read... [23:46:40]Read from MH i2c: E2 03 00 [23:46:40]MH_I2C_Read... [23:46:40]Read from MH i2c: E2 03 00 50 1A 00 90 00 DE [23:46:40]RAPDU: 90 00 [23:46:40]wFMCommunicate OK [23:46:40]wFMCommunicate request_size=255 [23:46:40]MH_SAM_APDU [23:46: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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 61 A5 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B2 2C 01 00 35 04 06 00 A0 [23:46:40]Write to MH i2c: E2 02 01 51 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 61 A5 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B2 2C 01 00 35 04 06 00 A0 00 00 3D [23:46:40]Write i2c OK [23:46:40]MH_I2C_Read... [23:46:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:46:40]Read from MH i2c: E2 [23:46:40]MH_I2C_Read... [23:46:40]Read from MH i2c: E2 03 00 [23:46:40]MH_I2C_Read... [23:46:40]Read from MH i2c: E2 03 00 51 1A 00 90 00 DF [23:46:40]RAPDU: 90 00 [23:46:40]wFMCommunicate OK [23:46:40]wFMCommunicate request_size=10 [23:46:40]MH_SAM_APDU [23:46:40]CAPDU: 80 0D 02 02 05 A2 95 85 0D 55 [23:46:40]Write to MH i2c: E2 0D 00 52 1A 80 0D 02 02 05 00 A2 95 85 0D 55 00 00 0E [23:46:40]Write i2c OK [23:46:40]MH_I2C_Read... [23:46:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:46:40]Read from MH i2c: E2 [23:46:40]MH_I2C_Read... [23:46:40]Read from MH i2c: E2 03 00 [23:46:40]MH_I2C_Read... [23:46:40]Read from MH i2c: E2 03 00 52 1A 00 90 00 E0 [23:46:40]RAPDU: 90 00 [23:46:40]wFMCommunicate OK [23:46:40]wFMCommunicate request_size=4 [23:46:40]MH_SAM_APDU [23:46:40]CAPDU: 80 0D 03 02 [23:46:40]Write to MH i2c: E2 08 00 53 1A 80 0D 03 02 00 00 00 00 E8 [23:46:40]Write i2c OK [23:46:40]MH_I2C_Read... [23:46:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:46:40]Read from MH i2c: E2 [23:46:40]MH_I2C_Read... [23:46:40]Read from MH i2c: E2 0B 00 [23:46:40]MH_I2C_Read... [23:46:40]Read from MH i2c: E2 0B 00 53 1A 00 B7 E4 C7 AB CE BE A6 8D 90 00 B5 [23:46:40]RAPDU: B7 E4 C7 AB CE BE A6 8D 90 00 [23:46:40]wFMCommunicate OK [23:46:40]SAM_PROTO_SignData done [23:46:40]FM_MakeSignedData done [23:46:40]CreateOFDProtocolMessage [23:46:40]wFMCommunicate request_size=4 [23:46:40]MH_SAM_APDU [23:46:40]CAPDU: 80 11 00 00 [23:46:40]Write to MH i2c: E2 08 00 54 1A 80 11 00 00 00 00 00 00 E8 [23:46:40]Write i2c OK [23:46:40]MH_I2C_Read... [23:46:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:46:40]Read from MH i2c: E2 [23:46:40]MH_I2C_Read... [23:46:40]Read from MH i2c: E2 17 00 [23:46:40]MH_I2C_Read... [23:46:40]Read from MH i2c: E2 17 00 54 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 3B [23:46:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [23:46:40]wFMCommunicate OK [23:46:40]CreateOFDProtocolMessage done [23:46:40]OFDSenderStorePacket 76978 [23:46:40]StoreOFDPacket docnum=76978 [23:46:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 82 2D 07 01 E1 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 61 A5 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B2 2C 01 00 35 04 06 00 A0 A2 95 85 0D 55 B7 E4 C7 AB CE BE A6 8D [23:46:40]CheckFolder [23:46:40]dirname=/storage/ofd_packets [23:46:40]CheckFolder done [23:46:40]ProducePacketName [23:46:40]name=ofd_packets/00076978 [23:46:40]NVStorageSaveData ofd_packets/00076978 [23:46:40]File name is /storage/ofd_packets/00076978 [23:46:40]Write 301 bytes [23:46:40]NVStorageSaveData done [23:46:40]OFDSenderStorePacket done [23:46:40]KKMCreateOFDPacket done [23:46:40]NVStorageSaveData kkm_last_timestamp [23:46:40]File name is /storage/kkm_last_timestamp [23:46:40]Write 4 bytes [23:46:40]NVStorageSaveData done [23:46:40]ExternCall_PrintAddStr [23:46:40]wPrintStart [23:46:40]Write to MH i2c: 01 00 00 55 1A 6F [23:46:40]Write i2c OK [23:46:40]MH_I2C_Read... [23:46:40]Read from MH i2c: 01 [23:46:40]MH_I2C_Read... [23:46:40]Read from MH i2c: 01 07 00 [23:46:40]MH_I2C_Read... [23:46:40]Read from MH i2c: 01 07 00 55 1A 00 00 00 00 00 FF 0F 84 [23:46:40]RasterBufferAndPrint [23:46:40]line Счет N : (1)191527 [23:46:40]line ИНН: 02508201610067 [23:46:40]line Контрольно-Кассовый Чек [23:46:40]line ПРОДАЖА [23:46:40]line ТРК (МРК, ГНК) : 12 [23:46:40]line Товар: 2710124130 [23:46:40]line Аи-92-К-5 [23:46:40]line 15.530 * 64.40 [23:46:40]line = 1000.13 [23:46:40]line НДС 12% НСП 1% [23:46:40]line > о реализуемом товаре [23:46:40]line ИТОГО: 1000.13 [23:46:40]line НСП 1% : 8.85 [23:46:40]line НДС 12% : 106.21 [23:46:40]line Наличными: 0.00 [23:46:40]line Безнал.: 1000.13 [23:46:40]line Место: АЗС № 106 "Партнер Нефть" [23:46:40]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [23:46:40]line СНО: Общий режим [23:46:40]line Чек 234 21.04.2024 23:46 [23:46:40]line Смена: 372 ФФД: 1.0 [23:46:40]line ЗНМ: 0300000141 [23:46:40]line РНМ: 0000000000091573 [23:46:40]line Версия ККМ: 001 [23:46:40]line Платежная система: Бакай Банк [23:46:40]line ФМ: 0000000000874652 [23:46:40]line ФД: 76978 [23:46:40]line ФПД: 176620153670997 [23:46:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240421T234641&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76978&fm=176620153670997&tin=02508201610067®Number=0000000000091573&sum=100013 [23:46:40]written 0, free lines is 4095 [23:46:40]OFD Sender: Processing packet 76978 [packets to send 129, broken 128] [23:46:40]ProducePacketName [23:46:40]name=ofd_packets/00076978 [23:46:40]OFD Sender: To server: pG, [23:46:40]CommunicateWithHost lk.salyk.kg:30040 [23:46:40]ConnectInit lk.salyk.kg [23:46:41]Connected sock=10 [23:46:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 82 2D 07 01 E1 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 61 A5 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B2 2C 01 00 35 04 06 00 A0 A2 95 85 0D 55 B7 E4 C7 AB CE BE A6 8D [23:46:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 7A 51 47 00 B9 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B2 2C 01 00 F4 03 04 00 E4 4C 25 66 B6 04 01 00 00 0C B4 AB 32 DD 9F 47 DF [23:46:41]CommunicateWithHost err = 0 [23:46:41]CheckOFDResponse [23:46:41]1017 (14) - 77093643461234 [23:46:41]1041 (16) - 0000000000874652 [23:46:41]1040 (4) - 76978 [23:46:41]1012 (4) - 21.04.2024 17:29 [23:46:41]1206 (1) - 0 [23:46:41]OFD Sender: Remove packet 76978 [23:46:41]ProducePacketName [23:46:41]name=ofd_packets/00076978 [23:46:41]NVStorageDeleteData [23:46:41]Write to MH i2c: 01 00 00 7E 1A 98 [23:46:41]Write i2c OK [23:46:41]MH_I2C_Read... [23:46:41]Read from MH i2c: 01 [23:46:41]MH_I2C_Read... [23:46:41]Read from MH i2c: 01 07 00 [23:46:41]MH_I2C_Read... [23:46:41]Read from MH i2c: 01 07 00 7E 1A 00 00 00 00 00 FE 0C A9 [23:46:41]RasterBufferAndPrint [23:46:41]line [23:46:41]line [23:46:41]line [23:46:41]line [23:46:41]line [23:46:41]written 0, free lines is 3332 [23:46:41]MH_Cut [23:46:41]Write to MH i2c: D1 01 00 85 1A 01 71 [23:46:41]Write i2c OK [23:46:41]MH_I2C_Read... [23:46:41]Read from MH i2c: D1 [23:46:41]MH_I2C_Read... [23:46:41]Read from MH i2c: D1 01 00 [23:46:41]MH_I2C_Read... [23:46:41]Read from MH i2c: D1 01 00 85 1A 00 70 [23:46:41]Write to MH i2c: 01 00 00 86 1A A0 [23:46:41]Write i2c OK [23:46:41]MH_I2C_Read... [23:46:41]OFD Sender: No OFD packet to send [23:46:42]*** Cut start [23:46:42]*** Partial cut [23:46:42]*** CUTSNS_PIN = 1 [23:46:42]*** CUTSNS_PIN = 0 [23:46:42]*** Brake cut motor [23:46:42]Read from MH i2c: 01 [23:46:42]MH_I2C_Read... [23:46:42]*** Stop cut motor [23:46:42]*** Cut end [23:46:42]Read from MH i2c: 01 07 00 [23:46:42]MH_I2C_Read... [23:46:42]Read from MH i2c: 01 07 00 86 1A 00 00 00 00 00 FF 0F B5 [23:46:42]process_action close_receipt done [23:46:42]requested_data is exist [23:46:42]produce_requested_data [23:46:42]requested_item fm.sn is exist - process it [23:46:42]wFMCommunicate request_size=4 [23:46:42]MH_SAM_APDU [23:46:42]CAPDU: 80 11 00 00 [23:46:42]Write to MH i2c: E2 08 00 87 1A 80 11 00 00 00 00 00 00 1B [23:46:42]Write i2c OK [23:46:42]MH_I2C_Read... [23:46:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:46:42]Read from MH i2c: E2 [23:46:42]MH_I2C_Read... [23:46:42]Read from MH i2c: E2 17 00 [23:46:42]MH_I2C_Read... [23:46:42]Read from MH i2c: E2 17 00 87 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 6E [23:46:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [23:46:42]wFMCommunicate OK [23:46:42]requested_item fd.num is exist - process it [23:46:42]SAM_PROTO_GetFieldsCounters [23:46:42]wFMCommunicate request_size=4 [23:46:42]MH_SAM_APDU [23:46:42]CAPDU: 80 13 00 00 [23:46:42]Write to MH i2c: E2 08 00 88 1A 80 13 00 00 00 00 00 00 1E [23:46:42]Write i2c OK [23:46:42]MH_I2C_Read... [23:46:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:46:42]Read from MH i2c: E2 [23:46:42]MH_I2C_Read... [23:46:42]Read from MH i2c: E2 62 00 [23:46:42]MH_I2C_Read... [23:46:42]Read from MH i2c: E2 62 00 88 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B2 2C 01 00 0E 04 04 00 74 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 51 [23:46: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B2 2C 01 00 0E 04 04 00 74 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 [23:46:42]wFMCommunicate OK [23:46:42]SAM_PROTO_GetFieldsCounters done [23:46:42]requested_item shift.num is exist - process it [23:46:42]requested_item shift.opened is exist - process it [23:46:42]req_shift_opened [23:46:42]FM_GetShiftState [23:46:42]SAM_PROTO_GetShiftState [23:46:42]wFMCommunicate request_size=4 [23:46:42]MH_SAM_APDU [23:46:42]CAPDU: 80 13 01 00 [23:46:42]Write to MH i2c: E2 08 00 89 1A 80 13 01 00 00 00 00 00 20 [23:46:42]Write i2c OK [23:46:42]MH_I2C_Read... [23:46:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:46:42]Read from MH i2c: E2 [23:46:42]MH_I2C_Read... [23:46:42]Read from MH i2c: E2 0E 00 [23:46:42]MH_I2C_Read... [23:46:42]Read from MH i2c: E2 0E 00 89 1A 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 67 [23:46:42]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [23:46:42]wFMCommunicate OK [23:46:42]SAM_PROTO_GetShiftState done [23:46:42]FM_GetShiftState done [23:46:42]req_shift_opened done [23:46:42]requested_item shift.open_date is exist - process it [23:46:42]req_shift_open_date [23:46:42]req_shift_open_date done [23:46:42]produce_requested_data done [23:46:42]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76978,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [23:46:42]process_action_free close_receipt [23:46:42]json_value_free [23:46:42]json_value_free done [23:46:42]process_json_proto returns [23:46:42]Send response to host [23:46:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76978,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [23:46:42]free response buf [23:46:42]execute_script done [23:46:42]execute_script returns [23:46:42]free content buf [23:46:42]Sock 9.Close socket [23:46:42]Sock 9.Thread stoped [23:46:46]OFD Sender: No OFD packet to send [23:46:51]OFD Sender: No OFD packet to send [23:46:56]OFD Sender: No OFD packet to send [23:47:01]OFD Sender: No OFD packet to send [23:47:06]OFD Sender: No OFD packet to send [23:47:11]OFD Sender: No OFD packet to send [23:47:16]OFD Sender: No OFD packet to send [23:47:21]OFD Sender: No OFD packet to send [23:47:26]OFD Sender: No OFD packet to send [23:47:31]OFD Sender: No OFD packet to send [23:47:36]OFD Sender: No OFD packet to send [23:47:41]OFD Sender: No OFD packet to send [23:47:46]OFD Sender: No OFD packet to send [23:47:51]OFD Sender: No OFD packet to send [23:47:56]OFD Sender: No OFD packet to send [23:48:01]OFD Sender: No OFD packet to send [23:48:06]OFD Sender: No OFD packet to send [23:48:11]OFD Sender: No OFD packet to send [23:48:16]OFD Sender: No OFD packet to send [23:48:21]OFD Sender: No OFD packet to send [23:48:26]OFD Sender: No OFD packet to send [23:48:31]OFD Sender: No OFD packet to send [23:48:36]OFD Sender: No OFD packet to send [23:48:41]OFD Sender: No OFD packet to send [23:48:46]OFD Sender: No OFD packet to send [23:48:51]OFD Sender: No OFD packet to send [23:48:56]OFD Sender: No OFD packet to send [23:49:01]OFD Sender: No OFD packet to send [23:49:06]OFD Sender: No OFD packet to send [23:49:11]OFD Sender: No OFD packet to send [23:49:16]OFD Sender: No OFD packet to send [23:49:21]OFD Sender: No OFD packet to send [23:49:26]OFD Sender: No OFD packet to send [23:49:31]OFD Sender: No OFD packet to send [23:49:36]OFD Sender: No OFD packet to send [23:49:41]OFD Sender: No OFD packet to send [23:49:46]OFD Sender: No OFD packet to send [23:49:52]OFD Sender: No OFD packet to send [23:49:57]OFD Sender: No OFD packet to send [23:50:02]OFD Sender: No OFD packet to send [23:50:07]OFD Sender: No OFD packet to send [23:50:12]OFD Sender: No OFD packet to send [23:50:17]OFD Sender: No OFD packet to send [23:50:22]OFD Sender: No OFD packet to send [23:50:27]OFD Sender: No OFD packet to send [23:50:32]OFD Sender: No OFD packet to send [23:50:37]OFD Sender: No OFD packet to send [23:50:42]OFD Sender: No OFD packet to send [23:50:47]OFD Sender: No OFD packet to send [23:50:52]OFD Sender: No OFD packet to send [23:50:57]OFD Sender: No OFD packet to send [23:51:02]OFD Sender: No OFD packet to send [23:51:07]OFD Sender: No OFD packet to send [23:51:12]OFD Sender: No OFD packet to send [23:51:17]OFD Sender: No OFD packet to send [23:51:22]OFD Sender: No OFD packet to send [23:51:27]OFD Sender: No OFD packet to send [23:51:32]OFD Sender: No OFD packet to send [23:51:37]OFD Sender: No OFD packet to send [23:51:42]OFD Sender: No OFD packet to send [23:51:47]OFD Sender: No OFD packet to send [23:51:52]OFD Sender: No OFD packet to send [23:51:57]OFD Sender: No OFD packet to send [23:52:02]OFD Sender: No OFD packet to send [23:52:07]OFD Sender: No OFD packet to send [23:52:12]OFD Sender: No OFD packet to send [23:52:17]OFD Sender: No OFD packet to send [23:52:22]OFD Sender: No OFD packet to send [23:52:27]OFD Sender: No OFD packet to send [23:52:32]OFD Sender: No OFD packet to send [23:52:37]OFD Sender: No OFD packet to send [23:52:42]OFD Sender: No OFD packet to send [23:52:47]OFD Sender: No OFD packet to send [23:52:52]OFD Sender: No OFD packet to send [23:52:57]OFD Sender: No OFD packet to send [23:53:02]OFD Sender: No OFD packet to send [23:53:07]OFD Sender: No OFD packet to send [23:53:12]OFD Sender: No OFD packet to send [23:53:17]OFD Sender: No OFD packet to send [23:53:22]OFD Sender: No OFD packet to send [23:53:27]OFD Sender: No OFD packet to send [23:53:32]OFD Sender: No OFD packet to send [23:53:37]OFD Sender: No OFD packet to send [23:53:42]OFD Sender: No OFD packet to send [23:53:47]OFD Sender: No OFD packet to send [23:53:52]OFD Sender: No OFD packet to send [23:53:57]OFD Sender: No OFD packet to send [23:54:02]OFD Sender: No OFD packet to send [23:54:07]OFD Sender: No OFD packet to send [23:54:12]OFD Sender: No OFD packet to send [23:54:17]OFD Sender: No OFD packet to send [23:54:22]OFD Sender: No OFD packet to send [23:54:27]OFD Sender: No OFD packet to send [23:54:32]OFD Sender: No OFD packet to send [23:54:37]OFD Sender: No OFD packet to send [23:54:42]OFD Sender: No OFD packet to send [23:54:47]OFD Sender: No OFD packet to send [23:54:52]OFD Sender: No OFD packet to send [23:54:57]OFD Sender: No OFD packet to send [23:55:02]OFD Sender: No OFD packet to send [23:55:07]OFD Sender: No OFD packet to send [23:55:12]OFD Sender: No OFD packet to send [23:55:17]OFD Sender: No OFD packet to send [23:55:22]OFD Sender: No OFD packet to send [23:55:27]OFD Sender: No OFD packet to send [23:55:32]OFD Sender: No OFD packet to send [23:55:37]OFD Sender: No OFD packet to send [23:55:42]OFD Sender: No OFD packet to send [23:55:47]OFD Sender: No OFD packet to send [23:55:52]OFD Sender: No OFD packet to send [23:55:57]OFD Sender: No OFD packet to send [23:56:02]OFD Sender: No OFD packet to send [23:56:07]OFD Sender: No OFD packet to send [23:56:12]OFD Sender: No OFD packet to send [23:56:17]OFD Sender: No OFD packet to send [23:56:22]OFD Sender: No OFD packet to send [23:56:27]OFD Sender: No OFD packet to send [23:56:32]OFD Sender: No OFD packet to send [23:56:37]OFD Sender: No OFD packet to send [23:56:42]OFD Sender: No OFD packet to send [23:56:47]OFD Sender: No OFD packet to send [23:56:52]OFD Sender: No OFD packet to send [23:56:57]OFD Sender: No OFD packet to send [23:57:02]OFD Sender: No OFD packet to send [23:57:07]OFD Sender: No OFD packet to send [23:57:12]OFD Sender: No OFD packet to send [23:57:17]OFD Sender: No OFD packet to send [23:57:22]OFD Sender: No OFD packet to send [23:57:27]OFD Sender: No OFD packet to send [23:57:32]OFD Sender: No OFD packet to send [23:57:37]OFD Sender: No OFD packet to send [23:57:42]OFD Sender: No OFD packet to send [23:57:47]OFD Sender: No OFD packet to send [23:57:52]OFD Sender: No OFD packet to send [23:57:57]OFD Sender: No OFD packet to send [23:58:02]OFD Sender: No OFD packet to send [23:58:07]OFD Sender: No OFD packet to send [23:58:12]OFD Sender: No OFD packet to send [23:58:17]OFD Sender: No OFD packet to send [23:58:22]OFD Sender: No OFD packet to send [23:58:27]OFD Sender: No OFD packet to send [23:58:32]OFD Sender: No OFD packet to send [23:58:37]OFD Sender: No OFD packet to send [23:58:42]OFD Sender: No OFD packet to send [23:58:47]OFD Sender: No OFD packet to send [23:58:52]OFD Sender: No OFD packet to send [23:58:57]OFD Sender: No OFD packet to send [23:59:02]OFD Sender: No OFD packet to send [23:59:07]OFD Sender: No OFD packet to send [23:59:12]OFD Sender: No OFD packet to send [23:59:17]OFD Sender: No OFD packet to send [23:59:22]OFD Sender: No OFD packet to send [23:59:27]OFD Sender: No OFD packet to send [23:59:32]OFD Sender: No OFD packet to send [23:59:37]OFD Sender: No OFD packet to send [23:59:42]OFD Sender: No OFD packet to send [23:59:47]OFD Sender: No OFD packet to send [23:59:52]OFD Sender: No OFD packet to send [23:59:57]OFD Sender: No OFD packet to send [00:00:02]OFD Sender: No OFD packet to send [00:00:07]OFD Sender: No OFD packet to send [00:00:12]OFD Sender: No OFD packet to send [00:00:17]OFD Sender: No OFD packet to send [00:00:22]OFD Sender: No OFD packet to send [00:00:27]OFD Sender: No OFD packet to send [00:00:32]OFD Sender: No OFD packet to send [00:00:37]OFD Sender: No OFD packet to send [00:00:42]OFD Sender: No OFD packet to send [00:00:47]OFD Sender: No OFD packet to send [00:00:52]OFD Sender: No OFD packet to send [00:00:57]OFD Sender: No OFD packet to send [00:01:02]OFD Sender: No OFD packet to send [00:01:07]OFD Sender: No OFD packet to send [00:01:12]OFD Sender: No OFD packet to send [00:01:17]OFD Sender: No OFD packet to send [00:01:22]OFD Sender: No OFD packet to send [00:01:27]OFD Sender: No OFD packet to send [00:01:32]OFD Sender: No OFD packet to send [00:01:37]OFD Sender: No OFD packet to send [00:01:42]OFD Sender: No OFD packet to send [00:01:47]OFD Sender: No OFD packet to send [00:01:52]OFD Sender: No OFD packet to send [00:01:57]OFD Sender: No OFD packet to send [00:02:02]OFD Sender: No OFD packet to send [00:02:07]OFD Sender: No OFD packet to send [00:02:12]OFD Sender: No OFD packet to send [00:02:17]OFD Sender: No OFD packet to send [00:02:22]OFD Sender: No OFD packet to send [00:02:27]OFD Sender: No OFD packet to send [00:02:32]OFD Sender: No OFD packet to send [00:02:37]OFD Sender: No OFD packet to send [00:02:42]OFD Sender: No OFD packet to send [00:02:47]OFD Sender: No OFD packet to send [00:02:52]OFD Sender: No OFD packet to send [00:02:57]OFD Sender: No OFD packet to send [00:03:02]OFD Sender: No OFD packet to send [00:03:07]OFD Sender: No OFD packet to send [00:03:10]accept exits with 8 [00:03:10]New connection [00:03:10]New thread 3066801508 created [00:03:10]Thread 3066944868 joined [00:03:10]Waiting for new connection... [00:03:10] Sock 8.Parse request [00:03:10]Sock 8.Check first char [00:03:10]Sock 8.First char is OK [00:03:10]request: POST /json_proto HTTP/1.0 [00:03:10]Method: POST [00:03:10]URL: /json_proto [00:03:10]Method is POST - this is cgi request [00:03:10]url: /json_proto [00:03:10]query_string will be loaded in cgi processing [00:03:10]execute_cgi json_proto POST (null) [00:03:10]execute_cgi path=json_proto method=POST [00:03:10]POST find Content-Length [00:03:10]Host: 172.17.62.5:8080 [00:03:10]Content-Length: 940 [00:03:10]Content-Type: application/json [00:03:10] [00:03:10]POST finish read [00:03:10]Found Content-Length = 940 [00:03:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191528", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 120.000, "sum" : 8628.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 120.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 8628.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:10]execute_script... [00:03: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)191528", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 120.000, "sum" : 8628.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 120.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 8628.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:10]POST & json_proto [00:03:10]process_json_proto [00:03:10]json parsed OK: [00:03:10]protocol is kg_v1.0 [00:03:10]action value=close_receipt [00:03:10]process_action close_receipt [00:03:10]cmd_close_receipt [00:03:10]MH_GetDate [00:03:10]Write to MH i2c: F0 00 00 8A 1A 93 [00:03:10]Write i2c OK [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: F0 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: F0 09 00 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: F0 09 00 8A 1A 00 40 A9 25 66 F4 E9 65 64 B6 [00:03:10]GetLastDocTimeStamp 1713743201 [00:03:10]current date 1713744192 [00:03:10]FM_GetShiftState [00:03:10]SAM_PROTO_GetShiftState [00:03:10]wFMCommunicate request_size=4 [00:03:10]MH_SAM_APDU [00:03:10]CAPDU: 80 13 01 00 [00:03:10]Write to MH i2c: E2 08 00 8B 1A 80 13 01 00 00 00 00 00 22 [00:03:10]Write i2c OK [00:03:10]MH_I2C_Read... [00:03:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:10]Read from MH i2c: E2 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: E2 0E 00 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: E2 0E 00 8B 1A 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 69 [00:03:10]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [00:03:10]wFMCommunicate OK [00:03:10]SAM_PROTO_GetShiftState done [00:03:10]FM_GetShiftState done [00:03:10]opened in 1713658965 [00:03:10]opened+sec_in_day 1713745365 [00:03:10]quantity*price = 862800 [00:03:10]sum+1 = 862801 [00:03:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 8628.00 НСП 1% : 76.35 НДС 12% : 916.25 Наличными: 8628.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 235 22.04.2024 00:03 Смена: 372 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 120.00 сом ФМ: 0000000000874652 ФД: 76979 ФПД: 123937531085114 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T000312&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76979&fm=123937531085114&tin=02508201610067®Number=0000000000091573&sum=862800 [00:03:11]StoreToDocumentArchive [00:03:11]shift 372 fd 76979 [00:03:11]save to /storage/0372/doc_00076979 [00:03:11]save last doc name /storage/0372/doc_00076979 to /storage/kkm_last_doc_name [00:03:11]save OK [00:03:11]Clear old archive folders... [00:03:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:03:11]tlvbuf is 00C6C540 [00:03:11]SAM_PROTO_ClearQueue [00:03:11]wFMCommunicate request_size=4 [00:03:11]MH_SAM_APDU [00:03:11]CAPDU: 80 09 00 00 [00:03:11]Write to MH i2c: E2 08 00 98 1A 80 09 00 00 00 00 00 00 24 [00:03:11]Write i2c OK [00:03:11]MH_I2C_Read... [00:03:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:03:11]Read from MH i2c: E2 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 03 00 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 03 00 98 1A 00 90 00 26 [00:03:11]RAPDU: 90 00 [00:03:11]wFMCommunicate OK [00:03:11]SAM_PROTO_ClearQueue done [00:03:11]KKMCreateOFDPacket [00:03:11]OFDProtocolAddRootSTLVToBuf [00:03:11]FM_MakeSignedData [00:03:11]FM_MakeSignedData [00:03:11]SAM_PROTO_SignData [00:03:11]wFMCommunicate request_size=4 [00:03:11]MH_SAM_APDU [00:03:11]CAPDU: 80 0D 01 02 [00:03:11]Write to MH i2c: E2 08 00 99 1A 80 0D 01 02 00 00 00 00 2C [00:03:11]Write i2c OK [00:03:11]MH_I2C_Read... [00:03:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:03:11]Read from MH i2c: E2 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 03 00 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 03 00 99 1A 00 90 00 27 [00:03:11]RAPDU: 90 00 [00:03:11]wFMCommunicate OK [00:03:11]wFMCommunicate request_size=255 [00:03:11]MH_SAM_APDU [00:03:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C0 D4 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 50 2A 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 2A 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 1D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 65 01 00 00 00 07 04 06 00 50 2A 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 40 A9 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B3 2C 01 00 35 04 06 00 70 B8 74 83 [00:03:11]Write to MH i2c: E2 02 01 9A 1A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C0 D4 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 50 2A 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 2A 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 1D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 65 01 00 00 00 07 04 06 00 50 2A 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 40 A9 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B3 2C 01 00 35 04 06 00 70 B8 74 83 00 00 F7 [00:03:11]Write i2c OK [00:03:11]MH_I2C_Read... [00:03:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:11]Read from MH i2c: E2 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 03 00 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 03 00 9A 1A 00 90 00 28 [00:03:11]RAPDU: 90 00 [00:03:11]wFMCommunicate OK [00:03:11]wFMCommunicate request_size=7 [00:03:11]MH_SAM_APDU [00:03:11]CAPDU: 80 0D 02 02 02 C1 3A [00:03:11]Write to MH i2c: E2 0A 00 9B 1A 80 0D 02 02 02 00 C1 3A 00 00 2E [00:03:11]Write i2c OK [00:03:11]MH_I2C_Read... [00:03:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:11]Read from MH i2c: E2 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 03 00 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 03 00 9B 1A 00 90 00 29 [00:03:11]RAPDU: 90 00 [00:03:11]wFMCommunicate OK [00:03:11]wFMCommunicate request_size=4 [00:03:11]MH_SAM_APDU [00:03:11]CAPDU: 80 0D 03 02 [00:03:11]Write to MH i2c: E2 08 00 9C 1A 80 0D 03 02 00 00 00 00 31 [00:03:11]Write i2c OK [00:03:11]MH_I2C_Read... [00:03:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:03:11]Read from MH i2c: E2 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 0B 00 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 0B 00 9C 1A 00 68 46 59 50 C0 90 A9 2C 90 00 AE [00:03:11]RAPDU: 68 46 59 50 C0 90 A9 2C 90 00 [00:03:11]wFMCommunicate OK [00:03:11]SAM_PROTO_SignData done [00:03:11]FM_MakeSignedData done [00:03:11]CreateOFDProtocolMessage [00:03:11]wFMCommunicate request_size=4 [00:03:11]MH_SAM_APDU [00:03:11]CAPDU: 80 11 00 00 [00:03:11]Write to MH i2c: E2 08 00 9D 1A 80 11 00 00 00 00 00 00 31 [00:03:11]Write i2c OK [00:03:11]MH_I2C_Read... [00:03:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:11]Read from MH i2c: E2 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 17 00 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 17 00 9D 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 84 [00:03:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [00:03:11]wFMCommunicate OK [00:03:11]CreateOFDProtocolMessage done [00:03:11]OFDSenderStorePacket 76979 [00:03:11]StoreOFDPacket docnum=76979 [00:03:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 43 7F 04 01 3A 72 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C0 D4 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 50 2A 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 2A 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 1D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 65 01 00 00 00 07 04 06 00 50 2A 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 40 A9 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B3 2C 01 00 35 04 06 00 70 B8 74 83 C1 3A 68 46 59 50 C0 90 A9 2C [00:03:11]CheckFolder [00:03:11]dirname=/storage/ofd_packets [00:03:11]CheckFolder done [00:03:11]ProducePacketName [00:03:11]name=ofd_packets/00076979 [00:03:11]NVStorageSaveData ofd_packets/00076979 [00:03:11]File name is /storage/ofd_packets/00076979 [00:03:11]Write 298 bytes [00:03:11]NVStorageSaveData done [00:03:11]OFDSenderStorePacket done [00:03:11]KKMCreateOFDPacket done [00:03:11]NVStorageSaveData kkm_last_timestamp [00:03:11]File name is /storage/kkm_last_timestamp [00:03:11]Write 4 bytes [00:03:11]NVStorageSaveData done [00:03:11]ExternCall_PrintAddStr [00:03:11]wPrintStart [00:03:11]Write to MH i2c: 01 00 00 9E 1A B8 [00:03:11]Write i2c OK [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: 01 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: 01 07 00 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: 01 07 00 9E 1A 00 00 00 00 00 FF 0F CD [00:03:11]RasterBufferAndPrint [00:03:11]line Счет N : (1)191528 [00:03:11]line ИНН: 02508201610067 [00:03:11]line Контрольно-Кассовый Чек [00:03:11]line ПРОДАЖА [00:03:11]line ТРК (МРК, ГНК) : 61 [00:03:11]line Товар: 2710194210 [00:03:11]line ДТ-К-5 [00:03:11]line 120.000 * 71.90 [00:03:11]line = 8628.00 [00:03:11]line НДС 12% НСП 1% [00:03:11]line > о реализуемом товаре [00:03:11]line ИТОГО: 8628.00 [00:03:11]line НСП 1% : 76.35 [00:03:11]line НДС 12% : 916.25 [00:03:11]line Наличными: 8628.00 [00:03:11]line Безнал.: 0.00 [00:03:11]line Место: АЗС № 106 "Партнер Нефть" [00:03:11]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [00:03:11]line СНО: Общий режим [00:03:11]line Чек 235 22.04.2024 00:03 [00:03:11]line Смена: 372 ФФД: 1.0 [00:03:11]line ЗНМ: 0300000141 [00:03:11]line РНМ: 0000000000091573 [00:03:11]line Версия ККМ: 001 [00:03:11]line [00:03:11]line Дисконтная программа [00:03:11]line ДТ [00:03:11]line номер 106 [00:03:11]line сэкономлено 120.00 сом [00:03:11]line ФМ: 0000000000874652 [00:03:11]line ФД: 76979 [00:03:11]line ФПД: 123937531085114 [00:03:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T000312&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76979&fm=123937531085114&tin=02508201610067®Number=0000000000091573&sum=862800 [00:03:12]OFD Sender: Processing packet 76979 [packets to send 129, broken 128] [00:03:12]ProducePacketName [00:03:12]name=ofd_packets/00076979 [00:03:12]OFD Sender: To server: pG, [00:03:12]CommunicateWithHost lk.salyk.kg:30040 [00:03:12]ConnectInit lk.salyk.kg [00:03:12]written 0, free lines is 4095 [00:03:12]Connected sock=10 [00:03:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 43 7F 04 01 3A 72 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C0 D4 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 50 2A 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 2A 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 1D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 65 01 00 00 00 07 04 06 00 50 2A 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 40 A9 25 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B3 2C 01 00 35 04 06 00 70 B8 74 83 C1 3A 68 46 59 50 C0 90 A9 2C [00:03:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 FF 0A 47 00 4B 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 34 36 35 32 10 04 04 00 B3 2C 01 00 F4 03 04 00 C4 50 25 66 B6 04 01 00 00 28 C4 B1 97 E8 EE 7E A9 [00:03:12]CommunicateWithHost err = 0 [00:03:12]CheckOFDResponse [00:03:12]1017 (14) - 77093643461234 [00:03:12]1041 (16) - 0000000000874652 [00:03:12]1040 (4) - 76979 [00:03:12]1012 (4) - 21.04.2024 17:45 [00:03:12]1206 (1) - 0 [00:03:12]OFD Sender: Remove packet 76979 [00:03:12]ProducePacketName [00:03:12]name=ofd_packets/00076979 [00:03:12]NVStorageDeleteData [00:03:12]Write to MH i2c: 01 00 00 CA 1A E4 [00:03:12]Write i2c OK [00:03:12]MH_I2C_Read... [00:03:12]Read from MH i2c: 01 [00:03:12]MH_I2C_Read... [00:03:12]Read from MH i2c: 01 07 00 [00:03:12]MH_I2C_Read... [00:03:12]Read from MH i2c: 01 07 00 CA 1A 00 00 00 00 00 C7 0C BE [00:03:12]RasterBufferAndPrint [00:03:12]line [00:03:12]line [00:03:12]line [00:03:12]line [00:03:12]line [00:03:12]written 0, free lines is 3277 [00:03:12]MH_Cut [00:03:12]Write to MH i2c: D1 01 00 D1 1A 01 BD [00:03:12]Write i2c OK [00:03:12]MH_I2C_Read... [00:03:12]Read from MH i2c: D1 [00:03:12]MH_I2C_Read... [00:03:12]Read from MH i2c: D1 01 00 [00:03:12]MH_I2C_Read... [00:03:12]Read from MH i2c: D1 01 00 D1 1A 00 BC [00:03:12]Write to MH i2c: 01 00 00 D2 1A EC [00:03:12]Write i2c OK [00:03:12]MH_I2C_Read... [00:03:13]OFD Sender: No OFD packet to send [00:03:13]*** Cut start [00:03:13]*** Partial cut [00:03:13]*** CUTSNS_PIN = 1 [00:03:13]*** CUTSNS_PIN = 0 [00:03:13]*** Brake cut motor [00:03:13]Read from MH i2c: 01 [00:03:13]MH_I2C_Read... [00:03:13]*** Stop cut motor [00:03:13]*** Cut end [00:03:13]Read from MH i2c: 01 07 00 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: 01 07 00 D2 1A 00 00 00 00 00 FF 0F 01 [00:03:13]process_action close_receipt done [00:03:13]requested_data is exist [00:03:13]produce_requested_data [00:03:13]requested_item fm.sn is exist - process it [00:03:13]wFMCommunicate request_size=4 [00:03:13]MH_SAM_APDU [00:03:13]CAPDU: 80 11 00 00 [00:03:13]Write to MH i2c: E2 08 00 D3 1A 80 11 00 00 00 00 00 00 67 [00:03:13]Write i2c OK [00:03:13]MH_I2C_Read... [00:03:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:14]Read from MH i2c: E2 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 17 00 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 17 00 D3 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 BA [00:03:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [00:03:14]wFMCommunicate OK [00:03:14]requested_item fd.num is exist - process it [00:03:14]SAM_PROTO_GetFieldsCounters [00:03:14]wFMCommunicate request_size=4 [00:03:14]MH_SAM_APDU [00:03:14]CAPDU: 80 13 00 00 [00:03:14]Write to MH i2c: E2 08 00 D4 1A 80 13 00 00 00 00 00 00 6A [00:03:14]Write i2c OK [00:03:14]MH_I2C_Read... [00:03:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:03:14]Read from MH i2c: E2 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 62 00 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 62 00 D4 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B3 2C 01 00 0E 04 04 00 74 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 A1 [00:03: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B3 2C 01 00 0E 04 04 00 74 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 [00:03:14]wFMCommunicate OK [00:03:14]SAM_PROTO_GetFieldsCounters done [00:03:14]requested_item shift.num is exist - process it [00:03:14]requested_item shift.opened is exist - process it [00:03:14]req_shift_opened [00:03:14]FM_GetShiftState [00:03:14]SAM_PROTO_GetShiftState [00:03:14]wFMCommunicate request_size=4 [00:03:14]MH_SAM_APDU [00:03:14]CAPDU: 80 13 01 00 [00:03:14]Write to MH i2c: E2 08 00 D5 1A 80 13 01 00 00 00 00 00 6C [00:03:14]Write i2c OK [00:03:14]MH_I2C_Read... [00:03:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:14]Read from MH i2c: E2 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 0E 00 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 0E 00 D5 1A 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 B3 [00:03:14]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [00:03:14]wFMCommunicate OK [00:03:14]SAM_PROTO_GetShiftState done [00:03:14]FM_GetShiftState done [00:03:14]req_shift_opened done [00:03:14]requested_item shift.open_date is exist - process it [00:03:14]req_shift_open_date [00:03:14]req_shift_open_date done [00:03:14]produce_requested_data done [00:03:14]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76979,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [00:03:14]process_action_free close_receipt [00:03:14]json_value_free [00:03:14]json_value_free done [00:03:14]process_json_proto returns [00:03:14]Send response to host [00:03:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76979,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [00:03:14]free response buf [00:03:14]execute_script done [00:03:14]execute_script returns [00:03:14]free content buf [00:03:14]Sock 8.Close socket [00:03:14]Sock 8.Thread stoped [00:03:18]OFD Sender: No OFD packet to send [00:03:23]OFD Sender: No OFD packet to send [00:03:28]OFD Sender: No OFD packet to send [00:03:33]OFD Sender: No OFD packet to send [00:03:38]OFD Sender: No OFD packet to send [00:03:43]OFD Sender: No OFD packet to send [00:03:48]OFD Sender: No OFD packet to send [00:03:53]OFD Sender: No OFD packet to send [00:03:58]OFD Sender: No OFD packet to send [00:04:03]OFD Sender: No OFD packet to send [00:04:08]OFD Sender: No OFD packet to send [00:04:13]OFD Sender: No OFD packet to send [00:04:18]OFD Sender: No OFD packet to send [00:04:23]OFD Sender: No OFD packet to send [00:04:28]OFD Sender: No OFD packet to send [00:04:33]OFD Sender: No OFD packet to send [00:04:38]OFD Sender: No OFD packet to send [00:04:43]OFD Sender: No OFD packet to send [00:04:48]OFD Sender: No OFD packet to send [00:04:53]OFD Sender: No OFD packet to send [00:04:58]OFD Sender: No OFD packet to send [00:05:03]OFD Sender: No OFD packet to send [00:05:08]OFD Sender: No OFD packet to send [00:05:13]OFD Sender: No OFD packet to send [00:05:18]OFD Sender: No OFD packet to send [00:05:23]OFD Sender: No OFD packet to send [00:05:28]OFD Sender: No OFD packet to send [00:05:33]OFD Sender: No OFD packet to send [00:05:38]OFD Sender: No OFD packet to send [00:05:43]OFD Sender: No OFD packet to send [00:05:48]OFD Sender: No OFD packet to send [00:05:53]OFD Sender: No OFD packet to send [00:05:58]OFD Sender: No OFD packet to send [00:06:03]OFD Sender: No OFD packet to send [00:06:08]OFD Sender: No OFD packet to send [00:06:13]OFD Sender: No OFD packet to send [00:06:18]OFD Sender: No OFD packet to send [00:06:23]OFD Sender: No OFD packet to send [00:06:28]OFD Sender: No OFD packet to send [00:06:33]OFD Sender: No OFD packet to send [00:06:38]OFD Sender: No OFD packet to send [00:06:43]OFD Sender: No OFD packet to send [00:06:48]OFD Sender: No OFD packet to send [00:06:53]OFD Sender: No OFD packet to send [00:06:58]OFD Sender: No OFD packet to send [00:07:03]OFD Sender: No OFD packet to send [00:07:08]OFD Sender: No OFD packet to send [00:07:13]OFD Sender: No OFD packet to send [00:07:18]OFD Sender: No OFD packet to send [00:07:23]OFD Sender: No OFD packet to send [00:07:28]OFD Sender: No OFD packet to send [00:07:33]OFD Sender: No OFD packet to send [00:07:38]OFD Sender: No OFD packet to send [00:07:43]OFD Sender: No OFD packet to send [00:07:48]OFD Sender: No OFD packet to send [00:07:53]OFD Sender: No OFD packet to send [00:07:58]OFD Sender: No OFD packet to send [00:08:03]OFD Sender: No OFD packet to send [00:08:08]OFD Sender: No OFD packet to send [00:08:13]OFD Sender: No OFD packet to send [00:08:18]OFD Sender: No OFD packet to send [00:08:23]OFD Sender: No OFD packet to send [00:08:28]OFD Sender: No OFD packet to send [00:08:33]OFD Sender: No OFD packet to send [00:08:38]OFD Sender: No OFD packet to send [00:08:41]accept exits with 9 [00:08:41]New connection [00:08:41]New thread 3066944868 created [00:08:41]Thread 3066801508 joined [00:08:41]Waiting for new connection... [00:08:41] Sock 9.Parse request [00:08:41]Sock 9.Check first char [00:08:41]Sock 9.First char is OK [00:08:41]request: POST /json_proto HTTP/1.0 [00:08:41]Method: POST [00:08:41]URL: /json_proto [00:08:41]Method is POST - this is cgi request [00:08:41]url: /json_proto [00:08:41]query_string will be loaded in cgi processing [00:08:41]execute_cgi json_proto POST (null) [00:08:41]execute_cgi path=json_proto method=POST [00:08:41]POST find Content-Length [00:08:41]Host: 172.17.62.5:8080 [00:08:41]Content-Length: 215 [00:08:41]Content-Type: application/json [00:08:41] [00:08:41]POST finish read [00:08:41]Found Content-Length = 215 [00:08:41]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:08:41]execute_script... [00:08:41]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:08:41]POST & json_proto [00:08:41]process_json_proto [00:08:41]json parsed OK: [00:08:41]protocol is kg_v1.0 [00:08:41]action value=get_value [00:08:41]process_action get_value [00:08:41]cmd_get_value [00:08:41]process_action get_value done [00:08:41]requested_data is exist [00:08:41]produce_requested_data [00:08:41]requested_item kkm.sn is exist - process it [00:08:41]requested_item kkm.ver is exist - process it [00:08:41]requested_item fm.sn is exist - process it [00:08:41]wFMCommunicate request_size=4 [00:08:41]MH_SAM_APDU [00:08:41]CAPDU: 80 11 00 00 [00:08:41]Write to MH i2c: E2 08 00 D6 1A 80 11 00 00 00 00 00 00 6A [00:08:41]Write i2c OK [00:08:41]MH_I2C_Read... [00:08:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:08:41]Read from MH i2c: E2 [00:08:41]MH_I2C_Read... [00:08:41]Read from MH i2c: E2 17 00 [00:08:41]MH_I2C_Read... [00:08:41]Read from MH i2c: E2 17 00 D6 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 BD [00:08:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [00:08:41]wFMCommunicate OK [00:08:41]requested_item fd.num is exist - process it [00:08:41]SAM_PROTO_GetFieldsCounters [00:08:41]wFMCommunicate request_size=4 [00:08:41]MH_SAM_APDU [00:08:41]CAPDU: 80 13 00 00 [00:08:41]Write to MH i2c: E2 08 00 D7 1A 80 13 00 00 00 00 00 00 6D [00:08:41]Write i2c OK [00:08:41]MH_I2C_Read... [00:08:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:08:41]Read from MH i2c: E2 [00:08:41]MH_I2C_Read... [00:08:41]Read from MH i2c: E2 62 00 [00:08:41]MH_I2C_Read... [00:08:41]Read from MH i2c: E2 62 00 D7 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B3 2C 01 00 0E 04 04 00 74 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 A4 [00:08:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B3 2C 01 00 0E 04 04 00 74 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 [00:08:41]wFMCommunicate OK [00:08:41]SAM_PROTO_GetFieldsCounters done [00:08:41]requested_item shift.num is exist - process it [00:08:41]requested_item shift.opened is exist - process it [00:08:41]req_shift_opened [00:08:41]FM_GetShiftState [00:08:41]SAM_PROTO_GetShiftState [00:08:41]wFMCommunicate request_size=4 [00:08:41]MH_SAM_APDU [00:08:41]CAPDU: 80 13 01 00 [00:08:41]Write to MH i2c: E2 08 00 D8 1A 80 13 01 00 00 00 00 00 6F [00:08:41]Write i2c OK [00:08:41]MH_I2C_Read... [00:08:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:41]Read from MH i2c: E2 [00:08:41]MH_I2C_Read... [00:08:41]Read from MH i2c: E2 0E 00 [00:08:41]MH_I2C_Read... [00:08:41]Read from MH i2c: E2 0E 00 D8 1A 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 B6 [00:08:41]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [00:08:41]wFMCommunicate OK [00:08:41]SAM_PROTO_GetShiftState done [00:08:41]FM_GetShiftState done [00:08:41]req_shift_opened done [00:08:41]requested_item shift.open_date is exist - process it [00:08:41]req_shift_open_date [00:08:41]req_shift_open_date done [00:08:41]produce_requested_data done [00:08:41]produce_requested_data return {"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76979,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [00:08:41]process_action_free get_value [00:08:41]json_value_free [00:08:41]json_value_free done [00:08:41]process_json_proto returns [00:08:41]Send response to host [00:08:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76979,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [00:08:41]free response buf [00:08:41]execute_script done [00:08:41]execute_script returns [00:08:41]free content buf [00:08:41]Sock 9.Close socket [00:08:41]Sock 9.Thread stoped [00:08:41]accept exits with 8 [00:08:41]New connection [00:08:41]New thread 3066801508 created [00:08:41]Thread 3066944868 joined [00:08:41]Waiting for new connection... [00:08:41] Sock 8.Parse request [00:08:41]Sock 8.Check first char [00:08:41]Sock 8.First char is OK [00:08:41]request: POST /json_proto HTTP/1.0 [00:08:41]Method: POST [00:08:41]URL: /json_proto [00:08:41]Method is POST - this is cgi request [00:08:41]url: /json_proto [00:08:41]query_string will be loaded in cgi processing [00:08:41]execute_cgi json_proto POST (null) [00:08:41]execute_cgi path=json_proto method=POST [00:08:41]POST find Content-Length [00:08:41]Host: 172.17.62.5:8080 [00:08:41]Content-Length: 331 [00:08:41]Content-Type: application/json [00:08:41] [00:08:41]POST finish read [00:08:41]Found Content-Length = 331 [00:08:41]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:08:41]execute_script... [00:08:41]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:08:41]POST & json_proto [00:08:41]process_json_proto [00:08:41]json parsed OK: [00:08:41]protocol is kg_v1.0 [00:08:41]action value=get_value [00:08:41]process_action get_value [00:08:41]cmd_get_value [00:08:41]process_action get_value done [00:08:41]requested_data is exist [00:08:41]produce_requested_data [00:08:41]requested_item fm.sale.total is exist - process it [00:08:41]SAM_PROTO_GetFMData [00:08:41]wFMCommunicate request_size=4 [00:08:41]MH_SAM_APDU [00:08:41]CAPDU: 80 13 03 00 [00:08:41]Write to MH i2c: E2 08 00 D9 1A 80 13 03 00 00 00 00 00 72 [00:08:41]Write i2c OK [00:08:41]MH_I2C_Read... [00:08:41]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:08:41]Read from MH i2c: E2 [00:08:41]MH_I2C_Read... [00:08:41]Read from MH i2c: E2 FD 00 [00:08:41]MH_I2C_Read... [00:08:41]Read from MH i2c: E2 FD 00 D9 1A 00 C8 04 85 04 C4 04 6E 04 04 00 CB 29 01 00 69 04 A3 00 6F 04 04 00 D8 27 01 00 B1 04 05 00 07 55 D0 BB 02 70 04 05 00 60 C9 B6 77 02 72 04 04 00 A7 8B 19 44 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 A9 B4 53 4A 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 87 93 31 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F3 01 00 00 B1 04 05 00 F4 34 DE 15 01 70 04 05 00 F4 34 DE 15 01 72 04 00 00 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 6D 18 82 1D EF 90 00 F6 [00:08:41]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 CB 29 01 00 69 04 A3 00 6F 04 04 00 D8 27 01 00 B1 04 05 00 07 55 D0 BB 02 70 04 05 00 60 C9 B6 77 02 72 04 04 00 A7 8B 19 44 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 A9 B4 53 4A 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 87 93 31 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F3 01 00 00 B1 04 05 00 F4 34 DE 15 01 70 04 05 00 F4 34 DE 15 01 72 04 00 00 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 6D 18 82 1D EF 90 00 [00:08:42]wFMCommunicate OK [00:08:42]wFMCommunicate request_size=4 [00:08:42]MH_SAM_APDU [00:08:42]CAPDU: 80 17 00 00 [00:08:42]Write to MH i2c: E2 08 00 DA 1A 80 17 00 00 00 00 00 00 74 [00:08:42]Write i2c OK [00:08:42]MH_I2C_Read... [00:08:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:42]Read from MH i2c: E2 [00:08:42]MH_I2C_Read... [00:08:42]Read from MH i2c: E2 FD 00 [00:08:42]MH_I2C_Read... [00:08:42]Read from MH i2c: E2 FD 00 DA 1A 00 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 ED 81 75 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 90 00 68 [00:08:42]RAPDU: 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 ED 81 75 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 90 00 [00:08:42]wFMCommunicate OK [00:08:42]wFMCommunicate request_size=4 [00:08:42]MH_SAM_APDU [00:08:42]CAPDU: 80 17 00 00 [00:08:42]Write to MH i2c: E2 08 00 DB 1A 80 17 00 00 00 00 00 00 75 [00:08:42]Write i2c OK [00:08:42]MH_I2C_Read... [00:08:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:42]Read from MH i2c: E2 [00:08:42]MH_I2C_Read... [00:08:42]Read from MH i2c: E2 FD 00 [00:08:42]MH_I2C_Read... [00:08:42]Read from MH i2c: E2 FD 00 DB 1A 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 4D [00:08:42]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:08:42]wFMCommunicate OK [00:08:42]wFMCommunicate request_size=4 [00:08:42]MH_SAM_APDU [00:08:42]CAPDU: 80 17 00 00 [00:08:42]Write to MH i2c: E2 08 00 DC 1A 80 17 00 00 00 00 00 00 76 [00:08:42]Write i2c OK [00:08:42]MH_I2C_Read... [00:08:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:42]Read from MH i2c: E2 [00:08:42]MH_I2C_Read... [00:08:42]Read from MH i2c: E2 FD 00 [00:08:42]MH_I2C_Read... [00:08:42]Read from MH i2c: E2 FD 00 DC 1A 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 EE [00:08:42]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [00:08:42]wFMCommunicate OK [00:08:42]wFMCommunicate request_size=4 [00:08:42]MH_SAM_APDU [00:08:42]CAPDU: 80 17 00 00 [00:08:42]Write to MH i2c: E2 08 00 DD 1A 80 17 00 00 00 00 00 00 77 [00:08:42]Write i2c OK [00:08:42]MH_I2C_Read... [00:08:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:08:43]Read from MH i2c: E2 [00:08:43]MH_I2C_Read... [00:08:43]Read from MH i2c: E2 E5 00 [00:08:43]MH_I2C_Read... [00:08:43]Read from MH i2c: E2 E5 00 DD 1A 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 5B [00:08:43]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:08:43]wFMCommunicate OK [00:08:43]SAM_PROTO_GetFMData done [00:08:43]requested_item fm.sale_refund.total is exist - process it [00:08:43]requested_item fm.buy.total is exist - process it [00:08:43]requested_item shift.sale.total is exist - process it [00:08:43]SAM_PROTO_GetShiftData [00:08:43]wFMCommunicate request_size=4 [00:08:43]MH_SAM_APDU [00:08:43]CAPDU: 80 13 02 00 [00:08:43]Write to MH i2c: E2 08 00 DE 1A 80 13 02 00 00 00 00 00 76 [00:08:43]Write i2c OK [00:08:43]MH_I2C_Read... [00:08:43]OFD Sender: No OFD packet to send [00:08:43]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:08:43]Read from MH i2c: E2 [00:08:43]MH_I2C_Read... [00:08:43]Read from MH i2c: E2 FD 00 [00:08:43]MH_I2C_Read... [00:08:43]Read from MH i2c: E2 FD 00 DE 1A 00 BB 04 AA 04 B7 04 6E 04 04 00 EB 00 00 00 69 04 9E 00 6F 04 04 00 E8 00 00 00 B1 04 04 00 B8 36 14 02 70 04 04 00 D4 5A BB 01 72 04 03 00 E4 DB 58 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 DB 86 38 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 E4 B5 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 03 00 00 00 B1 04 03 00 00 52 03 70 04 03 00 00 52 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 4E 5A EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 E7 [00:08:43]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 EB 00 00 00 69 04 9E 00 6F 04 04 00 E8 00 00 00 B1 04 04 00 B8 36 14 02 70 04 04 00 D4 5A BB 01 72 04 03 00 E4 DB 58 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 DB 86 38 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 E4 B5 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 03 00 00 00 B1 04 03 00 00 52 03 70 04 03 00 00 52 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 4E 5A EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:08:43]wFMCommunicate OK [00:08:43]wFMCommunicate request_size=4 [00:08:43]MH_SAM_APDU [00:08:43]CAPDU: 80 17 00 00 [00:08:43]Write to MH i2c: E2 08 00 DF 1A 80 17 00 00 00 00 00 00 79 [00:08:43]Write i2c OK [00:08:43]MH_I2C_Read... [00:08:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:43]Read from MH i2c: E2 [00:08:43]MH_I2C_Read... [00:08:43]Read from MH i2c: E2 FD 00 [00:08:43]MH_I2C_Read... [00:08:43]Read from MH i2c: E2 FD 00 DF 1A 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 87 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B1 [00:08:43]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 87 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:08:43]wFMCommunicate OK [00:08:43]wFMCommunicate request_size=4 [00:08:43]MH_SAM_APDU [00:08:43]CAPDU: 80 17 00 00 [00:08:43]Write to MH i2c: E2 08 00 E0 1A 80 17 00 00 00 00 00 00 7A [00:08:43]Write i2c OK [00:08:43]MH_I2C_Read... [00:08:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:44]Read from MH i2c: E2 [00:08:44]MH_I2C_Read... [00:08:44]Read from MH i2c: E2 FD 00 [00:08:44]MH_I2C_Read... [00:08:44]Read from MH i2c: E2 FD 00 E0 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 A6 [00:08:44]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:08:44]wFMCommunicate OK [00:08:44]wFMCommunicate request_size=4 [00:08:44]MH_SAM_APDU [00:08:44]CAPDU: 80 17 00 00 [00:08:44]Write to MH i2c: E2 08 00 E1 1A 80 17 00 00 00 00 00 00 7B [00:08:44]Write i2c OK [00:08:44]MH_I2C_Read... [00:08:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:44]Read from MH i2c: E2 [00:08:44]MH_I2C_Read... [00:08:44]Read from MH i2c: E2 FD 00 [00:08:44]MH_I2C_Read... [00:08:44]Read from MH i2c: E2 FD 00 E1 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 F0 [00:08: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 [00:08:44]wFMCommunicate OK [00:08:44]wFMCommunicate request_size=4 [00:08:44]MH_SAM_APDU [00:08:44]CAPDU: 80 17 00 00 [00:08:44]Write to MH i2c: E2 08 00 E2 1A 80 17 00 00 00 00 00 00 7C [00:08:44]Write i2c OK [00:08:44]MH_I2C_Read... [00:08:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [00:08:44]Read from MH i2c: E2 [00:08:44]MH_I2C_Read... [00:08:44]Read from MH i2c: E2 D8 00 [00:08:44]MH_I2C_Read... [00:08:44]Read from MH i2c: E2 D8 00 E2 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 63 [00:08: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:08:44]wFMCommunicate OK [00:08:44]SAM_PROTO_GetShiftData done [00:08:44]requested_item shift.sale.total_cash is exist - process it [00:08:44]requested_item shift.sale_refund.total is exist - process it [00:08:44]requested_item shift.sale_refund.total_cash is exist - process it [00:08:44]requested_item shift.buy.total is exist - process it [00:08:44]requested_item shift.buy.total_cash is exist - process it [00:08:44]produce_requested_data done [00:08:44]produce_requested_data return {"fm.sale.total":117409272.39,"fm.sale_refund.total":46618513.80,"fm.buy.total":0.00,"shift.sale.total":348791.60,"shift.sale.total_cash":290557.00,"shift.sale_refund.total":2176.00,"shift.sale_refund.total_cash":2176.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:08:44]process_action_free get_value [00:08:44]json_value_free [00:08:44]json_value_free done [00:08:44]process_json_proto returns [00:08:44]Send response to host [00:08:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":117409272.39,"fm.sale_refund.total":46618513.80,"fm.buy.total":0.00,"shift.sale.total":348791.60,"shift.sale.total_cash":290557.00,"shift.sale_refund.total":2176.00,"shift.sale_refund.total_cash":2176.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:08:44]free response buf [00:08:44]execute_script done [00:08:44]execute_script returns [00:08:44]free content buf [00:08:44]Sock 8.Close socket [00:08:44]Sock 8.Thread stoped [00:08:44]accept exits with 9 [00:08:44]New connection [00:08:44]New thread 3066944868 created [00:08:44]Thread 3066801508 joined [00:08:44]Waiting for new connection... [00:08:44] Sock 9.Parse request [00:08:44]Sock 9.Check first char [00:08:44]Sock 9.First char is OK [00:08:44]request: POST /json_proto HTTP/1.0 [00:08:44]Method: POST [00:08:44]URL: /json_proto [00:08:44]Method is POST - this is cgi request [00:08:44]url: /json_proto [00:08:44]query_string will be loaded in cgi processing [00:08:44]execute_cgi json_proto POST (null) [00:08:44]execute_cgi path=json_proto method=POST [00:08:44]POST find Content-Length [00:08:44]Host: 172.17.62.5:8080 [00:08:44]Content-Length: 331 [00:08:44]Content-Type: application/json [00:08:44] [00:08:44]POST finish read [00:08:44]Found Content-Length = 331 [00:08: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:08:44]execute_script... [00:08: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:08:44]POST & json_proto [00:08:44]process_json_proto [00:08:44]json parsed OK: [00:08:44]protocol is kg_v1.0 [00:08:44]action value=get_value [00:08:44]process_action get_value [00:08:44]cmd_get_value [00:08:44]process_action get_value done [00:08:44]requested_data is exist [00:08:44]produce_requested_data [00:08:44]requested_item fm.sale.total is exist - process it [00:08:44]SAM_PROTO_GetFMData [00:08:44]wFMCommunicate request_size=4 [00:08:44]MH_SAM_APDU [00:08:44]CAPDU: 80 13 03 00 [00:08:44]Write to MH i2c: E2 08 00 E3 1A 80 13 03 00 00 00 00 00 7C [00:08:44]Write i2c OK [00:08:44]MH_I2C_Read... [00:08:45]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:08:45]Read from MH i2c: E2 [00:08:45]MH_I2C_Read... [00:08:45]Read from MH i2c: E2 FD 00 [00:08:45]MH_I2C_Read... [00:08:45]Read from MH i2c: E2 FD 00 E3 1A 00 C8 04 85 04 C4 04 6E 04 04 00 CB 29 01 00 69 04 A3 00 6F 04 04 00 D8 27 01 00 B1 04 05 00 07 55 D0 BB 02 70 04 05 00 60 C9 B6 77 02 72 04 04 00 A7 8B 19 44 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 A9 B4 53 4A 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 87 93 31 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F3 01 00 00 B1 04 05 00 F4 34 DE 15 01 70 04 05 00 F4 34 DE 15 01 72 04 00 00 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 6D 18 82 1D EF 90 00 00 [00:08:45]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 CB 29 01 00 69 04 A3 00 6F 04 04 00 D8 27 01 00 B1 04 05 00 07 55 D0 BB 02 70 04 05 00 60 C9 B6 77 02 72 04 04 00 A7 8B 19 44 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 A9 B4 53 4A 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 87 93 31 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F3 01 00 00 B1 04 05 00 F4 34 DE 15 01 70 04 05 00 F4 34 DE 15 01 72 04 00 00 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 6D 18 82 1D EF 90 00 [00:08:45]wFMCommunicate OK [00:08:45]wFMCommunicate request_size=4 [00:08:45]MH_SAM_APDU [00:08:45]CAPDU: 80 17 00 00 [00:08:45]Write to MH i2c: E2 08 00 E4 1A 80 17 00 00 00 00 00 00 7E [00:08:45]Write i2c OK [00:08:45]MH_I2C_Read... [00:08:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:45]Read from MH i2c: E2 [00:08:45]MH_I2C_Read... [00:08:45]Read from MH i2c: E2 FD 00 [00:08:45]MH_I2C_Read... [00:08:45]Read from MH i2c: E2 FD 00 E4 1A 00 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 ED 81 75 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 90 00 72 [00:08:45]RAPDU: 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 ED 81 75 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 90 00 [00:08:45]wFMCommunicate OK [00:08:45]wFMCommunicate request_size=4 [00:08:45]MH_SAM_APDU [00:08:45]CAPDU: 80 17 00 00 [00:08:45]Write to MH i2c: E2 08 00 E5 1A 80 17 00 00 00 00 00 00 7F [00:08:45]Write i2c OK [00:08:45]MH_I2C_Read... [00:08:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:45]Read from MH i2c: E2 [00:08:45]MH_I2C_Read... [00:08:45]Read from MH i2c: E2 FD 00 [00:08:45]MH_I2C_Read... [00:08:45]Read from MH i2c: E2 FD 00 E5 1A 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 57 [00:08:46]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:08:46]wFMCommunicate OK [00:08:46]wFMCommunicate request_size=4 [00:08:46]MH_SAM_APDU [00:08:46]CAPDU: 80 17 00 00 [00:08:46]Write to MH i2c: E2 08 00 E6 1A 80 17 00 00 00 00 00 00 80 [00:08:46]Write i2c OK [00:08:46]MH_I2C_Read... [00:08:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:46]Read from MH i2c: E2 [00:08:46]MH_I2C_Read... [00:08:46]Read from MH i2c: E2 FD 00 [00:08:46]MH_I2C_Read... [00:08:46]Read from MH i2c: E2 FD 00 E6 1A 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 F8 [00:08:46]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [00:08:46]wFMCommunicate OK [00:08:46]wFMCommunicate request_size=4 [00:08:46]MH_SAM_APDU [00:08:46]CAPDU: 80 17 00 00 [00:08:46]Write to MH i2c: E2 08 00 E7 1A 80 17 00 00 00 00 00 00 81 [00:08:46]Write i2c OK [00:08:46]MH_I2C_Read... [00:08:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:08:46]Read from MH i2c: E2 [00:08:46]MH_I2C_Read... [00:08:46]Read from MH i2c: E2 E5 00 [00:08:46]MH_I2C_Read... [00:08:46]Read from MH i2c: E2 E5 00 E7 1A 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 65 [00:08:46]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:08:46]wFMCommunicate OK [00:08:46]SAM_PROTO_GetFMData done [00:08:46]requested_item fm.sale_refund.total is exist - process it [00:08:46]requested_item fm.buy.total is exist - process it [00:08:46]requested_item shift.sale.total is exist - process it [00:08:46]SAM_PROTO_GetShiftData [00:08:46]wFMCommunicate request_size=4 [00:08:46]MH_SAM_APDU [00:08:46]CAPDU: 80 13 02 00 [00:08:46]Write to MH i2c: E2 08 00 E8 1A 80 13 02 00 00 00 00 00 80 [00:08:46]Write i2c OK [00:08:46]MH_I2C_Read... [00:08:47]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:08:47]Read from MH i2c: E2 [00:08:47]MH_I2C_Read... [00:08:47]Read from MH i2c: E2 FD 00 [00:08:47]MH_I2C_Read... [00:08:47]Read from MH i2c: E2 FD 00 E8 1A 00 BB 04 AA 04 B7 04 6E 04 04 00 EB 00 00 00 69 04 9E 00 6F 04 04 00 E8 00 00 00 B1 04 04 00 B8 36 14 02 70 04 04 00 D4 5A BB 01 72 04 03 00 E4 DB 58 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 DB 86 38 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 E4 B5 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 03 00 00 00 B1 04 03 00 00 52 03 70 04 03 00 00 52 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 4E 5A EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 F1 [00:08:47]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 EB 00 00 00 69 04 9E 00 6F 04 04 00 E8 00 00 00 B1 04 04 00 B8 36 14 02 70 04 04 00 D4 5A BB 01 72 04 03 00 E4 DB 58 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 DB 86 38 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 E4 B5 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 03 00 00 00 B1 04 03 00 00 52 03 70 04 03 00 00 52 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 4E 5A EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:08:47]wFMCommunicate OK [00:08:47]wFMCommunicate request_size=4 [00:08:47]MH_SAM_APDU [00:08:47]CAPDU: 80 17 00 00 [00:08:47]Write to MH i2c: E2 08 00 E9 1A 80 17 00 00 00 00 00 00 83 [00:08:47]Write i2c OK [00:08:47]MH_I2C_Read... [00:08:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:47]Read from MH i2c: E2 [00:08:47]MH_I2C_Read... [00:08:47]Read from MH i2c: E2 FD 00 [00:08:47]MH_I2C_Read... [00:08:47]Read from MH i2c: E2 FD 00 E9 1A 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 87 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BB [00:08:47]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 87 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:08:47]wFMCommunicate OK [00:08:47]wFMCommunicate request_size=4 [00:08:47]MH_SAM_APDU [00:08:47]CAPDU: 80 17 00 00 [00:08:47]Write to MH i2c: E2 08 00 EA 1A 80 17 00 00 00 00 00 00 84 [00:08:47]Write i2c OK [00:08:47]MH_I2C_Read... [00:08:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:48]Read from MH i2c: E2 [00:08:48]MH_I2C_Read... [00:08:48]Read from MH i2c: E2 FD 00 [00:08:48]MH_I2C_Read... [00:08:48]Read from MH i2c: E2 FD 00 EA 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 B0 [00:08:48]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:08:48]wFMCommunicate OK [00:08:48]wFMCommunicate request_size=4 [00:08:48]MH_SAM_APDU [00:08:48]CAPDU: 80 17 00 00 [00:08:48]Write to MH i2c: E2 08 00 EB 1A 80 17 00 00 00 00 00 00 85 [00:08:48]Write i2c OK [00:08:48]MH_I2C_Read... [00:08:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:48]Read from MH i2c: E2 [00:08:48]MH_I2C_Read... [00:08:48]Read from MH i2c: E2 FD 00 [00:08:48]MH_I2C_Read... [00:08:48]Read from MH i2c: E2 FD 00 EB 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 FA [00:08:48]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:08:48]wFMCommunicate OK [00:08:48]wFMCommunicate request_size=4 [00:08:48]MH_SAM_APDU [00:08:48]CAPDU: 80 17 00 00 [00:08:48]Write to MH i2c: E2 08 00 EC 1A 80 17 00 00 00 00 00 00 86 [00:08:48]OFD Sender: No OFD packet to send [00:08:48]Write i2c OK [00:08:48]MH_I2C_Read... [00:08:48]Read from MH i2c: E2 [00:08:48]MH_I2C_Read... [00:08:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [00:08:48]Read from MH i2c: E2 D8 00 [00:08:48]MH_I2C_Read... [00:08:48]Read from MH i2c: E2 D8 00 EC 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 6D [00:08:48]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:08:48]wFMCommunicate OK [00:08:48]SAM_PROTO_GetShiftData done [00:08:48]requested_item shift.sale.total_cash is exist - process it [00:08:48]requested_item shift.sale_refund.total is exist - process it [00:08:48]requested_item shift.sale_refund.total_cash is exist - process it [00:08:48]requested_item shift.buy.total is exist - process it [00:08:48]requested_item shift.buy.total_cash is exist - process it [00:08:48]produce_requested_data done [00:08:48]produce_requested_data return {"fm.sale.total":117409272.39,"fm.sale_refund.total":46618513.80,"fm.buy.total":0.00,"shift.sale.total":348791.60,"shift.sale.total_cash":290557.00,"shift.sale_refund.total":2176.00,"shift.sale_refund.total_cash":2176.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:08:48]process_action_free get_value [00:08:48]json_value_free [00:08:48]json_value_free done [00:08:48]process_json_proto returns [00:08:48]Send response to host [00:08:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":117409272.39,"fm.sale_refund.total":46618513.80,"fm.buy.total":0.00,"shift.sale.total":348791.60,"shift.sale.total_cash":290557.00,"shift.sale_refund.total":2176.00,"shift.sale_refund.total_cash":2176.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:08:48]free response buf [00:08:48]execute_script done [00:08:48]execute_script returns [00:08:48]free content buf [00:08:48]Sock 9.Close socket [00:08:48]Sock 9.Thread stoped [00:08:48]accept exits with 8 [00:08:48]New connection [00:08:48]New thread 3066801508 created [00:08:48]Thread 3066944868 joined [00:08:48]Waiting for new connection... [00:08:48] Sock 8.Parse request [00:08:48]Sock 8.Check first char [00:08:48]Sock 8.First char is OK [00:08:48]request: POST /json_proto HTTP/1.0 [00:08:48]Method: POST [00:08:48]URL: /json_proto [00:08:48]Method is POST - this is cgi request [00:08:48]url: /json_proto [00:08:48]query_string will be loaded in cgi processing [00:08:48]execute_cgi json_proto POST (null) [00:08:48]execute_cgi path=json_proto method=POST [00:08:48]POST find Content-Length [00:08:48]Host: 172.17.62.5:8080 [00:08:48]Content-Length: 257 [00:08:48]Content-Type: application/json [00:08:48] [00:08:48]POST finish read [00:08:48]Found Content-Length = 257 [00:08:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041B\u044B\u043C\u0430\u0440\u0435\u0432\u0430 \u0412. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:48]execute_script... [00:08:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041B\u044B\u043C\u0430\u0440\u0435\u0432\u0430 \u0412. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:48]POST & json_proto [00:08:48]process_json_proto [00:08:48]json parsed OK: [00:08:48]protocol is kg_v1.0 [00:08:48]action value=x_report [00:08:48]process_action x_report [00:08:48]cmd_x_report [00:08:48]MH_GetDate [00:08:48]Write to MH i2c: F0 00 00 ED 1A F6 [00:08:48]Write i2c OK [00:08:48]MH_I2C_Read... [00:08:48]Read from MH i2c: F0 [00:08:48]MH_I2C_Read... [00:08:48]Read from MH i2c: F0 09 00 [00:08:48]MH_I2C_Read... [00:08:48]Read from MH i2c: F0 09 00 ED 1A 00 92 AA 25 66 F4 E9 65 64 6C [00:08:48]GetLastDocTimeStamp 1713744192 [00:08:48]current date 1713744530 [00:08:48]FM_GetShiftState [00:08:48]SAM_PROTO_GetShiftState [00:08:48]wFMCommunicate request_size=4 [00:08:48]MH_SAM_APDU [00:08:48]CAPDU: 80 13 01 00 [00:08:48]Write to MH i2c: E2 08 00 EE 1A 80 13 01 00 00 00 00 00 85 [00:08:48]Write i2c OK [00:08:48]MH_I2C_Read... [00:08:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:49]Read from MH i2c: E2 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: E2 0E 00 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: E2 0E 00 EE 1A 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 CC [00:08:49]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [00:08:49]wFMCommunicate OK [00:08:49]SAM_PROTO_GetShiftState done [00:08:49]FM_GetShiftState done [00:08:49]KKMCreateXReportDocument [00:08:49]Load OK [00:08:49]Malloc new data [00:08:49]MH_GetDate [00:08:49]Write to MH i2c: F0 00 00 EF 1A F8 [00:08:49]Write i2c OK [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: F0 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: F0 09 00 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: F0 09 00 EF 1A 00 93 AA 25 66 F4 E9 65 64 6F [00:08:49]Malloc new data [00:08:49]Malloc new data [00:08:49]wFMCommunicate request_size=4 [00:08:49]MH_SAM_APDU [00:08:49]CAPDU: 80 11 00 00 [00:08:49]Write to MH i2c: E2 08 00 F0 1A 80 11 00 00 00 00 00 00 84 [00:08:49]Write i2c OK [00:08:49]MH_I2C_Read... [00:08:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:08:49]Read from MH i2c: E2 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: E2 17 00 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: E2 17 00 F0 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 D7 [00:08:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [00:08:49]wFMCommunicate OK [00:08:49]SAM_PROTO_GetFieldsCounters [00:08:49]wFMCommunicate request_size=4 [00:08:49]MH_SAM_APDU [00:08:49]CAPDU: 80 13 00 00 [00:08:49]Write to MH i2c: E2 08 00 F1 1A 80 13 00 00 00 00 00 00 87 [00:08:49]Write i2c OK [00:08:49]MH_I2C_Read... [00:08:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:08:49]Read from MH i2c: E2 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: E2 62 00 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: E2 62 00 F1 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B3 2C 01 00 0E 04 04 00 74 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 BE [00:08: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B3 2C 01 00 0E 04 04 00 74 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 [00:08:49]wFMCommunicate OK [00:08:49]SAM_PROTO_GetFieldsCounters done [00:08:49]Malloc new data [00:08:49]Malloc new data [00:08:49]Malloc new data [00:08:49]KKMCreateXReportDocument OK [00:08:49]KKMSetXReportData OK [00:08:49]KKMPrepareXReportFMData [00:08:49]SAM_PROTO_GetShiftData [00:08:49]wFMCommunicate request_size=4 [00:08:49]MH_SAM_APDU [00:08:49]CAPDU: 80 13 02 00 [00:08:49]Write to MH i2c: E2 08 00 F2 1A 80 13 02 00 00 00 00 00 8A [00:08:49]Write i2c OK [00:08:49]MH_I2C_Read... [00:08:49]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:08:49]Read from MH i2c: E2 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: E2 FD 00 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: E2 FD 00 F2 1A 00 BB 04 AA 04 B7 04 6E 04 04 00 EB 00 00 00 69 04 9E 00 6F 04 04 00 E8 00 00 00 B1 04 04 00 B8 36 14 02 70 04 04 00 D4 5A BB 01 72 04 03 00 E4 DB 58 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 DB 86 38 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 E4 B5 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 03 00 00 00 B1 04 03 00 00 52 03 70 04 03 00 00 52 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 4E 5A EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 FB [00:08:49]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 EB 00 00 00 69 04 9E 00 6F 04 04 00 E8 00 00 00 B1 04 04 00 B8 36 14 02 70 04 04 00 D4 5A BB 01 72 04 03 00 E4 DB 58 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 DB 86 38 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 E4 B5 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 03 00 00 00 B1 04 03 00 00 52 03 70 04 03 00 00 52 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 4E 5A EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:08:50]wFMCommunicate OK [00:08:50]wFMCommunicate request_size=4 [00:08:50]MH_SAM_APDU [00:08:50]CAPDU: 80 17 00 00 [00:08:50]Write to MH i2c: E2 08 00 F3 1A 80 17 00 00 00 00 00 00 8D [00:08:50]Write i2c OK [00:08:50]MH_I2C_Read... [00:08:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:50]Read from MH i2c: E2 [00:08:50]MH_I2C_Read... [00:08:50]Read from MH i2c: E2 FD 00 [00:08:50]MH_I2C_Read... [00:08:50]Read from MH i2c: E2 FD 00 F3 1A 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 87 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C5 [00:08:50]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 87 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:08:50]wFMCommunicate OK [00:08:50]wFMCommunicate request_size=4 [00:08:50]MH_SAM_APDU [00:08:50]CAPDU: 80 17 00 00 [00:08:50]Write to MH i2c: E2 08 00 F4 1A 80 17 00 00 00 00 00 00 8E [00:08:50]Write i2c OK [00:08:50]MH_I2C_Read... [00:08:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:50]Read from MH i2c: E2 [00:08:50]MH_I2C_Read... [00:08:50]Read from MH i2c: E2 FD 00 [00:08:50]MH_I2C_Read... [00:08:50]Read from MH i2c: E2 FD 00 F4 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 BA [00:08:50]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:08:50]wFMCommunicate OK [00:08:50]wFMCommunicate request_size=4 [00:08:50]MH_SAM_APDU [00:08:50]CAPDU: 80 17 00 00 [00:08:50]Write to MH i2c: E2 08 00 F5 1A 80 17 00 00 00 00 00 00 8F [00:08:50]Write i2c OK [00:08:50]MH_I2C_Read... [00:08:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:51]Read from MH i2c: E2 [00:08:51]MH_I2C_Read... [00:08:51]Read from MH i2c: E2 FD 00 [00:08:51]MH_I2C_Read... [00:08:51]Read from MH i2c: E2 FD 00 F5 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 04 [00:08:51]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:08:51]wFMCommunicate OK [00:08:51]wFMCommunicate request_size=4 [00:08:51]MH_SAM_APDU [00:08:51]CAPDU: 80 17 00 00 [00:08:51]Write to MH i2c: E2 08 00 F6 1A 80 17 00 00 00 00 00 00 90 [00:08:51]Write i2c OK [00:08:51]MH_I2C_Read... [00:08:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [00:08:51]Read from MH i2c: E2 [00:08:51]MH_I2C_Read... [00:08:51]Read from MH i2c: E2 D8 00 [00:08:51]MH_I2C_Read... [00:08:51]Read from MH i2c: E2 D8 00 F6 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 77 [00:08:51]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:08:51]wFMCommunicate OK [00:08:51]SAM_PROTO_GetShiftData done [00:08:51]1194 (1207) - счетчики итогов смены [00:08:51] 1134 (4) - 235 - количество чеков со всеми признаками расчетов [00:08:51] 1129 (158) - счетчики операций «приход» [00:08:51] 1135 (4) - 232 - количество чеков по признаку расчетов [00:08:51] 1201 (4) - 348791.60 - общая итоговая сумма в чеках [00:08:51] 1136 (4) - 290557.00 - итоговая сумма в чеках наличными [00:08:51] 1138 (3) - 58234.60 - итоговая сумма в чеках безналичными [00:08:51] 1024 (123) - суммы налогов [00:08:51] 1006 (9) - суммы НДС [00:08:51] 1010 (1) - 0% - код ставки НДС [00:08:51] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:51] 1006 (12) - суммы НДС [00:08:51] 1010 (1) - 12% - код ставки НДС [00:08:51] 1011 (3) - 37045.39 - сумма НДС по ставке [00:08:51] 1007 (9) - суммы НСП [00:08:51] 1014 (1) - 0% - код ставки НСП [00:08:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:51] 1007 (12) - суммы НСП [00:08:51] 1014 (1) - 1% - код ставки НСП [00:08:51] 1015 (3) - 3087.08 - сумма НСП по ставке [00:08:51] 1007 (9) - суммы НСП [00:08:51] 1014 (1) - 2% - код ставки НСП [00:08:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:51] 1007 (9) - суммы НСП [00:08:51] 1014 (1) - 3% - код ставки НСП [00:08:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:51] 1007 (9) - суммы НСП [00:08:51] 1014 (1) - 5% - код ставки НСП [00:08:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:51] 1007 (9) - суммы НСП [00:08:51] 1014 (1) - 0,50% - код ставки НСП [00:08:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:51] 1007 (9) - суммы НСП [00:08:51] 1014 (1) - 1,50% - код ставки НСП [00:08:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:51] 1130 (151) - счетчики операций «возврат прихода» [00:08:51] 1135 (4) - 3 - количество чеков по признаку расчетов [00:08:51] 1201 (3) - 2176.00 - общая итоговая сумма в чеках [00:08:51] 1136 (3) - 2176.00 - итоговая сумма в чеках наличными [00:08:51] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:08:51] 1024 (121) - суммы налогов [00:08:51] 1006 (9) - суммы НДС [00:08:51] 1010 (1) - 0% - код ставки НДС [00:08:51] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:51] 1006 (11) - суммы НДС [00:08:51] 1010 (1) - 12% - код ставки НДС [00:08:51] 1011 (2) - 231.18 - сумма НДС по ставке [00:08:51] 1007 (9) - суммы НСП [00:08:51] 1014 (1) - 0% - код ставки НСП [00:08:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:51] 1007 (11) - суммы НСП [00:08:51] 1014 (1) - 1% - код ставки НСП [00:08:51] 1015 (2) - 19.27 - сумма НСП по ставке [00:08:51] 1007 (9) - суммы НСП [00:08:51] 1014 (1) - 2% - код ставки НСП [00:08:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:51] 1007 (9) - суммы НСП [00:08:51] 1014 (1) - 3% - код ставки НСП [00:08:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:51] 1007 (9) - суммы НСП [00:08:51] 1014 (1) - 5% - код ставки НСП [00:08:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:51] 1007 (9) - суммы НСП [00:08:51] 1014 (1) - 0,50% - код ставки НСП [00:08:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:51] 1007 (9) - суммы НСП [00:08:51] 1014 (1) - 1,50% - код ставки НСП [00:08:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:51] 1131 (141) - счетчики операций «расход» [00:08:51] 1135 (4) - 0 - количество чеков по признаку расчетов [00:08:51] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:08:51] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:08:51] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:08:51] 1024 (117) - суммы налогов [00:08:51] 1006 (9) - суммы НДС [00:08:51] 1010 (1) - 0% - код ставки НДС [00:08:51] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:52] 1006 (9) - суммы НДС [00:08:52] 1010 (1) - 12% - код ставки НДС [00:08:52] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:52] 1007 (9) - суммы НСП [00:08:52] 1014 (1) - 0% - код ставки НСП [00:08:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:52] 1007 (9) - суммы НСП [00:08:52] 1014 (1) - 1% - код ставки НСП [00:08:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:52] 1007 (9) - суммы НСП [00:08:52] 1014 (1) - 2% - код ставки НСП [00:08:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:52] 1007 (9) - суммы НСП [00:08:52] 1014 (1) - 3% - код ставки НСП [00:08:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:52] 1007 (9) - суммы НСП [00:08:52] 1014 (1) - 5% - код ставки НСП [00:08:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:52] 1007 (9) - суммы НСП [00:08:52] 1014 (1) - 0,50% - код ставки НСП [00:08:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:52] 1007 (9) - суммы НСП [00:08:52] 1014 (1) - 1,50% - код ставки НСП [00:08:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:52] 1132 (141) - счетчики операций «возврат расхода» [00:08:52] 1135 (4) - 0 - количество чеков по признаку расчетов [00:08:52] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:08:52] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:08:52] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:08:52] 1024 (117) - суммы налогов [00:08:52] 1006 (9) - суммы НДС [00:08:52] 1010 (1) - 0% - код ставки НДС [00:08:52] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:52] 1006 (9) - суммы НДС [00:08:52] 1010 (1) - 12% - код ставки НДС [00:08:52] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:52] 1007 (9) - суммы НСП [00:08:52] 1014 (1) - 0% - код ставки НСП [00:08:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:52] 1007 (9) - суммы НСП [00:08:52] 1014 (1) - 1% - код ставки НСП [00:08:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:52] 1007 (9) - суммы НСП [00:08:52] 1014 (1) - 2% - код ставки НСП [00:08:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:52] 1007 (9) - суммы НСП [00:08:52] 1014 (1) - 3% - код ставки НСП [00:08:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:52] 1007 (9) - суммы НСП [00:08:52] 1014 (1) - 5% - код ставки НСП [00:08:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:52] 1007 (9) - суммы НСП [00:08:52] 1014 (1) - 0,50% - код ставки НСП [00:08:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:52] 1007 (9) - суммы НСП [00:08:52] 1014 (1) - 1,50% - код ставки НСП [00:08:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:52] 1133 (588) - - счетчики коррекции - не используются [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1194 (04AA) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1134 (046E) [00:08:52]Malloc new data [00:08:52]Processing tag 1129 (0469) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1135 (046F) [00:08:52]Malloc new data [00:08:52]Processing tag 1201 (04B1) [00:08:52]Malloc new data [00:08:52]Processing tag 1136 (0470) [00:08:52]Malloc new data [00:08:52]Processing tag 1138 (0472) [00:08:52]Malloc new data [00:08:52]Processing tag 1024 (0400) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1006 (03EE) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1010 (03F2) [00:08:52]Malloc new data [00:08:52]Processing tag 1011 (03F3) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1006 (03EE) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1010 (03F2) [00:08:52]Malloc new data [00:08:52]Processing tag 1011 (03F3) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1007 (03EF) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1014 (03F6) [00:08:52]Malloc new data [00:08:52]Processing tag 1015 (03F7) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1007 (03EF) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1014 (03F6) [00:08:52]Malloc new data [00:08:52]Processing tag 1015 (03F7) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1007 (03EF) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1014 (03F6) [00:08:52]Malloc new data [00:08:52]Processing tag 1015 (03F7) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1007 (03EF) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1014 (03F6) [00:08:52]Malloc new data [00:08:52]Processing tag 1015 (03F7) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1007 (03EF) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1014 (03F6) [00:08:52]Malloc new data [00:08:52]Processing tag 1015 (03F7) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1007 (03EF) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1014 (03F6) [00:08:52]Malloc new data [00:08:52]Processing tag 1015 (03F7) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1007 (03EF) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1014 (03F6) [00:08:52]Malloc new data [00:08:52]Processing tag 1015 (03F7) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]SetTLVBufToDocument err=0 [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1130 (046A) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1135 (046F) [00:08:52]Malloc new data [00:08:52]Processing tag 1201 (04B1) [00:08:52]Malloc new data [00:08:52]Processing tag 1136 (0470) [00:08:52]Malloc new data [00:08:52]Processing tag 1138 (0472) [00:08:52]Malloc new data [00:08:52]Processing tag 1024 (0400) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1006 (03EE) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1010 (03F2) [00:08:52]Malloc new data [00:08:52]Processing tag 1011 (03F3) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1006 (03EE) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1010 (03F2) [00:08:52]Malloc new data [00:08:52]Processing tag 1011 (03F3) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1007 (03EF) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1014 (03F6) [00:08:52]Malloc new data [00:08:52]Processing tag 1015 (03F7) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1007 (03EF) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1014 (03F6) [00:08:52]Malloc new data [00:08:52]Processing tag 1015 (03F7) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1007 (03EF) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1014 (03F6) [00:08:52]Malloc new data [00:08:52]Processing tag 1015 (03F7) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1007 (03EF) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1014 (03F6) [00:08:52]Malloc new data [00:08:52]Processing tag 1015 (03F7) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1007 (03EF) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1014 (03F6) [00:08:52]Malloc new data [00:08:52]Processing tag 1015 (03F7) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1007 (03EF) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1014 (03F6) [00:08:52]Malloc new data [00:08:52]Processing tag 1015 (03F7) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1007 (03EF) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1014 (03F6) [00:08:52]Malloc new data [00:08:52]Processing tag 1015 (03F7) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]SetTLVBufToDocument err=0 [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1131 (046B) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1135 (046F) [00:08:52]Malloc new data [00:08:52]Processing tag 1201 (04B1) [00:08:52]Malloc new data [00:08:52]Processing tag 1136 (0470) [00:08:52]Malloc new data [00:08:52]Processing tag 1138 (0472) [00:08:52]Malloc new data [00:08:52]Processing tag 1024 (0400) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1006 (03EE) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1010 (03F2) [00:08:52]Malloc new data [00:08:52]Processing tag 1011 (03F3) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1006 (03EE) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1010 (03F2) [00:08:52]Malloc new data [00:08:52]Processing tag 1011 (03F3) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1007 (03EF) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1014 (03F6) [00:08:52]Malloc new data [00:08:52]Processing tag 1015 (03F7) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1007 (03EF) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1014 (03F6) [00:08:52]Malloc new data [00:08:52]Processing tag 1015 (03F7) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1007 (03EF) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1014 (03F6) [00:08:52]Malloc new data [00:08:52]Processing tag 1015 (03F7) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1007 (03EF) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1014 (03F6) [00:08:52]Malloc new data [00:08:52]Processing tag 1015 (03F7) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1007 (03EF) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1014 (03F6) [00:08:52]Malloc new data [00:08:52]Processing tag 1015 (03F7) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1007 (03EF) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1014 (03F6) [00:08:52]Malloc new data [00:08:52]Processing tag 1015 (03F7) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1007 (03EF) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1014 (03F6) [00:08:52]Malloc new data [00:08:52]Processing tag 1015 (03F7) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]SetTLVBufToDocument err=0 [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1132 (046C) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1135 (046F) [00:08:52]Malloc new data [00:08:52]Processing tag 1201 (04B1) [00:08:52]Malloc new data [00:08:52]Processing tag 1136 (0470) [00:08:52]Malloc new data [00:08:52]Processing tag 1138 (0472) [00:08:52]Malloc new data [00:08:52]Processing tag 1024 (0400) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1006 (03EE) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1010 (03F2) [00:08:52]Malloc new data [00:08:52]Processing tag 1011 (03F3) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1006 (03EE) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1010 (03F2) [00:08:52]Malloc new data [00:08:52]Processing tag 1011 (03F3) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1007 (03EF) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1014 (03F6) [00:08:52]Malloc new data [00:08:52]Processing tag 1015 (03F7) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1007 (03EF) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1014 (03F6) [00:08:52]Malloc new data [00:08:52]Processing tag 1015 (03F7) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1007 (03EF) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1014 (03F6) [00:08:52]Malloc new data [00:08:52]Processing tag 1015 (03F7) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1007 (03EF) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1014 (03F6) [00:08:52]Malloc new data [00:08:52]Processing tag 1015 (03F7) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1007 (03EF) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1014 (03F6) [00:08:52]Malloc new data [00:08:52]Processing tag 1015 (03F7) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1007 (03EF) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1014 (03F6) [00:08:52]Malloc new data [00:08:52]Processing tag 1015 (03F7) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1007 (03EF) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1014 (03F6) [00:08:52]Malloc new data [00:08:52]Processing tag 1015 (03F7) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]SetTLVBufToDocument err=0 [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1133 (046D) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Malloc new data [00:08:52]SAM_PROTO_GetFMData [00:08:52]wFMCommunicate request_size=4 [00:08:52]MH_SAM_APDU [00:08:52]CAPDU: 80 13 03 00 [00:08:52]Write to MH i2c: E2 08 00 F7 1A 80 13 03 00 00 00 00 00 90 [00:08:52]Write i2c OK [00:08:52]MH_I2C_Read... [00:08:53]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:08:53]Read from MH i2c: E2 [00:08:53]MH_I2C_Read... [00:08:53]Read from MH i2c: E2 FD 00 [00:08:53]MH_I2C_Read... [00:08:53]Read from MH i2c: E2 FD 00 F7 1A 00 C8 04 85 04 C4 04 6E 04 04 00 CB 29 01 00 69 04 A3 00 6F 04 04 00 D8 27 01 00 B1 04 05 00 07 55 D0 BB 02 70 04 05 00 60 C9 B6 77 02 72 04 04 00 A7 8B 19 44 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 A9 B4 53 4A 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 87 93 31 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F3 01 00 00 B1 04 05 00 F4 34 DE 15 01 70 04 05 00 F4 34 DE 15 01 72 04 00 00 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 6D 18 82 1D EF 90 00 14 [00:08:53]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 CB 29 01 00 69 04 A3 00 6F 04 04 00 D8 27 01 00 B1 04 05 00 07 55 D0 BB 02 70 04 05 00 60 C9 B6 77 02 72 04 04 00 A7 8B 19 44 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 A9 B4 53 4A 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 87 93 31 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F3 01 00 00 B1 04 05 00 F4 34 DE 15 01 70 04 05 00 F4 34 DE 15 01 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 OFD Sender: No OFD packet to send [00:08:53]00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 6D 18 82 1D EF 90 00 [00:08:53]wFMCommunicate OK [00:08:53]wFMCommunicate request_size=4 [00:08:53]MH_SAM_APDU [00:08:53]CAPDU: 80 17 00 00 [00:08:53]Write to MH i2c: E2 08 00 F8 1A 80 17 00 00 00 00 00 00 92 [00:08:53]Write i2c OK [00:08:53]MH_I2C_Read... [00:08:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:53]Read from MH i2c: E2 [00:08:53]MH_I2C_Read... [00:08:53]Read from MH i2c: E2 FD 00 [00:08:53]MH_I2C_Read... [00:08:53]Read from MH i2c: E2 FD 00 F8 1A 00 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 ED 81 75 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 90 00 86 [00:08:54]RAPDU: 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 ED 81 75 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 90 00 [00:08:54]wFMCommunicate OK [00:08:54]wFMCommunicate request_size=4 [00:08:54]MH_SAM_APDU [00:08:54]CAPDU: 80 17 00 00 [00:08:54]Write to MH i2c: E2 08 00 F9 1A 80 17 00 00 00 00 00 00 93 [00:08:54]Write i2c OK [00:08:54]MH_I2C_Read... [00:08:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:54]Read from MH i2c: E2 [00:08:54]MH_I2C_Read... [00:08:54]Read from MH i2c: E2 FD 00 [00:08:54]MH_I2C_Read... [00:08:54]Read from MH i2c: E2 FD 00 F9 1A 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 6B [00:08:54]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:08:54]wFMCommunicate OK [00:08:54]wFMCommunicate request_size=4 [00:08:54]MH_SAM_APDU [00:08:54]CAPDU: 80 17 00 00 [00:08:54]Write to MH i2c: E2 08 00 FA 1A 80 17 00 00 00 00 00 00 94 [00:08:54]Write i2c OK [00:08:54]MH_I2C_Read... [00:08:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:54]Read from MH i2c: E2 [00:08:54]MH_I2C_Read... [00:08:54]Read from MH i2c: E2 FD 00 [00:08:54]MH_I2C_Read... [00:08:54]Read from MH i2c: E2 FD 00 FA 1A 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 0C [00:08:55]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [00:08:55]wFMCommunicate OK [00:08:55]wFMCommunicate request_size=4 [00:08:55]MH_SAM_APDU [00:08:55]CAPDU: 80 17 00 00 [00:08:55]Write to MH i2c: E2 08 00 FB 1A 80 17 00 00 00 00 00 00 95 [00:08:55]Write i2c OK [00:08:55]MH_I2C_Read... [00:08:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:08:55]Read from MH i2c: E2 [00:08:55]MH_I2C_Read... [00:08:55]Read from MH i2c: E2 E5 00 [00:08:55]MH_I2C_Read... [00:08:55]Read from MH i2c: E2 E5 00 FB 1A 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 79 [00:08:55]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:08:55]wFMCommunicate OK [00:08:55]SAM_PROTO_GetFMData done [00:08:55]FM_GetFMData:85 04 C4 04 6E 04 04 00 CB 29 01 00 69 04 A3 00 6F 04 04 00 D8 27 01 00 B1 04 05 00 07 55 D0 BB 02 70 04 05 00 60 C9 B6 77 02 72 04 04 00 A7 8B 19 44 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 A9 B4 53 4A 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 87 93 31 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F3 01 00 00 B1 04 05 00 F4 34 DE 15 01 70 04 05 00 F4 34 DE 15 01 72 04 00 00 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 6D 18 82 1D 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 ED 81 75 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:08:56]oper:6F 04 04 00 D8 27 01 00 B1 04 05 00 07 55 D0 BB 02 70 04 05 00 60 C9 B6 77 02 72 04 04 00 A7 8B 19 44 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 A9 B4 53 4A 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 87 93 31 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:08:56]total:07 55 D0 BB 02 [00:08:56]Malloc new data [00:08:56]oper:6F 04 04 00 F3 01 00 00 B1 04 05 00 F4 34 DE 15 01 70 04 05 00 F4 34 DE 15 01 72 04 00 00 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 6D 18 82 1D 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 ED 81 75 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 [00:08:56]total:F4 34 DE 15 01 [00:08:56]Malloc new data [00:08:56]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:08:56]total: [00:08:56]Malloc new data [00:08:56]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:08:56]total: [00:08:56]Malloc new data [00:08:56]KKMPrepareXReportFMData err=0 [00:08:56]Х отчет ИНН: 02508201610067 Кассир: Лымарева В. 22.04.2024 00:08 Смена: 266 РНМ: 0000000000091573 ЗНМ: 0300000141 СНО: Общий режим Всего чеков: 235 ИТОГИ ПРИХОД Чеков: 232 Общий итог: 348791.60 Итого наличными: 290557.00 Итого безнал.: 58234.60 НДС 0% : 0.00 НДС 12% : 37045.39 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 3087.08 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 3 Общий итог: 2176.00 Итого наличными: 2176.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 231.18 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 19.27 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 288381.00 НС Приход: 117409272.39 НС Возвр.Прихода: 46618513.80 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000874652 [00:08:56]StoreToDocumentArchive [00:08:56]MH_GetDate [00:08:56]Write to MH i2c: F0 00 00 FC 1A 05 [00:08:56]Write i2c OK [00:08:56]MH_I2C_Read... [00:08:56]Read from MH i2c: F0 [00:08:56]MH_I2C_Read... [00:08:56]Read from MH i2c: F0 09 00 [00:08:56]MH_I2C_Read... [00:08:56]Read from MH i2c: F0 09 00 FC 1A 00 9A AA 25 66 F4 E9 65 64 83 [00:08:56]shift 266 fd 1713744538 [00:08:56]Create dir for shift 0266 [00:08:56]save to /storage/0266/doc_1713744538 [00:08:56]save last doc name /storage/0266/doc_1713744538 to /storage/kkm_last_doc_name [00:08:56]save OK [00:08:56]Clear old archive folders... [00:08:56]NVStorageSaveData kkm_last_timestamp [00:08:56]File name is /storage/kkm_last_timestamp [00:08:56]Write 4 bytes [00:08:56]NVStorageSaveData done [00:08:56]ExternCall_PrintAddStr [00:08:56]wPrintStart [00:08:56]Write to MH i2c: 01 00 00 FD 1A 17 [00:08:56]Write i2c OK [00:08:56]MH_I2C_Read... [00:08:56]Read from MH i2c: 01 [00:08:56]MH_I2C_Read... [00:08:56]Read from MH i2c: 01 07 00 [00:08:56]MH_I2C_Read... [00:08:56]Read from MH i2c: 01 07 00 FD 1A 00 00 00 00 00 FF 0F 2C [00:08:56]RasterBufferAndPrint [00:08:56]line Х отчет [00:08:56]line ИНН: 02508201610067 [00:08:56]line Кассир: Лымарева В. [00:08:56]line 22.04.2024 00:08 [00:08:56]line Смена: 266 [00:08:56]line РНМ: 0000000000091573 [00:08:56]line ЗНМ: 0300000141 [00:08:56]line СНО: Общий режим [00:08:56]line Всего чеков: 235 [00:08:56]line ИТОГИ ПРИХОД [00:08:56]line Чеков: 232 [00:08:56]line Общий итог: 348791.60 [00:08:56]line Итого наличными: 290557.00 [00:08:56]line Итого безнал.: 58234.60 [00:08:56]line НДС 0% : 0.00 [00:08:56]line НДС 12% : 37045.39 [00:08:56]line НСП 0% : 0.00 [00:08:56]line НСП 1,50% : 0.00 [00:08:56]line НСП 0,50% : 0.00 [00:08:56]line НСП 5% : 0.00 [00:08:56]line НСП 3% : 0.00 [00:08:56]line НСП 2% : 0.00 [00:08:56]line НСП 1% : 3087.08 [00:08:56]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:08:56]line Чеков: 3 [00:08:56]line Общий итог: 2176.00 [00:08:56]line Итого наличными: 2176.00 [00:08:56]line Итого безнал.: 0.00 [00:08:56]line НДС 0% : 0.00 [00:08:56]line НДС 12% : 231.18 [00:08:56]line НСП 0% : 0.00 [00:08:56]line НСП 1,50% : 0.00 [00:08:56]line НСП 0,50% : 0.00 [00:08:56]line НСП 5% : 0.00 [00:08:56]line НСП 3% : 0.00 [00:08:56]line НСП 2% : 0.00 [00:08:56]line НСП 1% : 19.27 [00:08:56]line ИТОГИ РАСХОД [00:08:56]line Чеков: 0 [00:08:56]line Общий итог: 0.00 [00:08:56]line Итого наличными: 0.00 [00:08:56]line Итого безнал.: 0.00 [00:08:56]line НДС 0% : 0.00 [00:08:56]line НДС 12% : 0.00 [00:08:56]line НСП 0% : 0.00 [00:08:56]line НСП 1,50% : 0.00 [00:08:56]line НСП 0,50% : 0.00 [00:08:56]line НСП 5% : 0.00 [00:08:56]line НСП 3% : 0.00 [00:08:56]line НСП 2% : 0.00 [00:08:56]line НСП 1% : 0.00 [00:08:56]line ИТОГИ ВОЗВРАТ РАСХОДА [00:08:56]line Чеков: 0 [00:08:56]line Общий итог: 0.00 [00:08:56]line Итого наличными: 0.00 [00:08:56]line Итого безнал.: 0.00 [00:08:56]line НДС 0% : 0.00 [00:08:56]line НДС 12% : 0.00 [00:08:56]line НСП 0% : 0.00 [00:08:56]line НСП 1,50% : 0.00 [00:08:56]line НСП 0,50% : 0.00 [00:08:56]line НСП 5% : 0.00 [00:08:56]line НСП 3% : 0.00 [00:08:56]line НСП 2% : 0.00 [00:08:56]line НСП 1% : 0.00 [00:08:56]line Сумма внесений: 0.00 [00:08:56]line Сумма выплат: 0.00 [00:08:56]line Нал. в кассе: 288381.00 [00:08:56]line НС Приход: 117409272.39 [00:08:56]line НС Возвр.Прихода: 46618513.80 [00:08:56]line НС Расход: 0.00 [00:08:56]line НС Возвр.Расхода: 0.00 [00:08:56]line ФМ: 0000000000874652 [00:08:56]written 0, free lines is 4095 [00:08:57]Write to MH i2c: 01 00 00 49 1B 64 [00:08:57]Write i2c OK [00:08:57]MH_I2C_Read... [00:08:57]Read from MH i2c: 01 [00:08:57]MH_I2C_Read... [00:08:57]Read from MH i2c: 01 07 00 [00:08:57]MH_I2C_Read... [00:08:57]Read from MH i2c: 01 07 00 49 1B 00 00 00 00 00 AB 0A 20 [00:08:57]RasterBufferAndPrint [00:08:57]line [00:08:57]line [00:08:57]line [00:08:57]line [00:08:57]line [00:08:57]written 0, free lines is 2764 [00:08:57]MH_Cut [00:08:57]Write to MH i2c: D1 01 00 50 1B 01 3D [00:08:57]Write i2c OK [00:08:57]MH_I2C_Read... [00:08:57]Read from MH i2c: D1 [00:08:57]MH_I2C_Read... [00:08:57]Read from MH i2c: D1 01 00 [00:08:57]MH_I2C_Read... [00:08:57]Read from MH i2c: D1 01 00 50 1B 00 3C [00:08:57]Write to MH i2c: 01 00 00 51 1B 6C [00:08:57]Write i2c OK [00:08:57]MH_I2C_Read... [00:08:58]*** Cut start [00:08:58]*** Partial cut [00:08:58]*** CUTSNS_PIN = 1 [00:08:58]*** CUTSNS_PIN = 0 [00:08:58]OFD Sender: No OFD packet to send [00:08:58]*** Brake cut motor [00:08:59]Read from MH i2c: 01 [00:08:59]MH_I2C_Read... [00:08:59]*** Stop cut motor [00:08:59]*** Cut end [00:08:59]Read from MH i2c: 01 07 00 [00:08:59]MH_I2C_Read... [00:08:59]Read from MH i2c: 01 07 00 51 1B 00 00 00 00 00 FF 0F 81 [00:08:59]process_action x_report done [00:08:59]requested_data is exist [00:08:59]produce_requested_data [00:08:59]requested_item fd.num is exist - process it [00:08:59]SAM_PROTO_GetFieldsCounters [00:08:59]wFMCommunicate request_size=4 [00:08:59]MH_SAM_APDU [00:08:59]CAPDU: 80 13 00 00 [00:08:59]Write to MH i2c: E2 08 00 52 1B 80 13 00 00 00 00 00 00 E9 [00:08:59]Write i2c OK [00:08:59]MH_I2C_Read... [00:08:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:08:59]Read from MH i2c: E2 [00:08:59]MH_I2C_Read... [00:08:59]Read from MH i2c: E2 62 00 [00:08:59]MH_I2C_Read... [00:08:59]Read from MH i2c: E2 62 00 52 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B3 2C 01 00 0E 04 04 00 74 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 20 [00:08: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B3 2C 01 00 0E 04 04 00 74 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 [00:08:59]wFMCommunicate OK [00:08:59]SAM_PROTO_GetFieldsCounters done [00:08:59]requested_item shift.num is exist - process it [00:08:59]requested_item shift.opened is exist - process it [00:08:59]req_shift_opened [00:08:59]FM_GetShiftState [00:08:59]SAM_PROTO_GetShiftState [00:08:59]wFMCommunicate request_size=4 [00:08:59]MH_SAM_APDU [00:08:59]CAPDU: 80 13 01 00 [00:08:59]Write to MH i2c: E2 08 00 53 1B 80 13 01 00 00 00 00 00 EB [00:08:59]Write i2c OK [00:08:59]MH_I2C_Read... [00:08:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:59]Read from MH i2c: E2 [00:08:59]MH_I2C_Read... [00:08:59]Read from MH i2c: E2 0E 00 [00:08:59]MH_I2C_Read... [00:08:59]Read from MH i2c: E2 0E 00 53 1B 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 32 [00:08:59]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [00:08:59]wFMCommunicate OK [00:08:59]SAM_PROTO_GetShiftState done [00:08:59]FM_GetShiftState done [00:08:59]req_shift_opened done [00:08:59]requested_item shift.open_date is exist - process it [00:08:59]req_shift_open_date [00:08:59]req_shift_open_date done [00:08:59]produce_requested_data done [00:08:59]produce_requested_data return {"fd.num":76979,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [00:08:59]process_action_free x_report [00:08:59]json_value_free [00:08:59]json_value_free done [00:08:59]process_json_proto returns [00:08:59]Send response to host [00:08:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":76979,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [00:08:59]free response buf [00:08:59]execute_script done [00:08:59]execute_script returns [00:08:59]free content buf [00:08:59]Sock 8.Close socket [00:08:59]Sock 8.Thread stoped [00:09:03]OFD Sender: No OFD packet to send [00:09:08]OFD Sender: No OFD packet to send [00:09:13]OFD Sender: No OFD packet to send [00:09:18]OFD Sender: No OFD packet to send [00:09:20]accept exits with 9 [00:09:20]New connection [00:09:20]New thread 3066944868 created [00:09:20]Thread 3066801508 joined [00:09:20]Waiting for new connection... [00:09:20] Sock 9.Parse request [00:09:20]Sock 9.Check first char [00:09:20]Sock 9.First char is OK [00:09:20]request: POST /json_proto HTTP/1.0 [00:09:20]Method: POST [00:09:20]URL: /json_proto [00:09:20]Method is POST - this is cgi request [00:09:20]url: /json_proto [00:09:20]query_string will be loaded in cgi processing [00:09:20]execute_cgi json_proto POST (null) [00:09:20]execute_cgi path=json_proto method=POST [00:09:20]POST find Content-Length [00:09:20]Host: 172.17.62.5:8080 [00:09:20]Content-Length: 215 [00:09:20]Content-Type: application/json [00:09:20] [00:09:20]POST finish read [00:09:20]Found Content-Length = 215 [00:09:20]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:09:20]execute_script... [00:09:20]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:09:20]POST & json_proto [00:09:20]process_json_proto [00:09:20]json parsed OK: [00:09:20]protocol is kg_v1.0 [00:09:20]action value=get_value [00:09:20]process_action get_value [00:09:20]cmd_get_value [00:09:20]process_action get_value done [00:09:20]requested_data is exist [00:09:20]produce_requested_data [00:09:20]requested_item kkm.sn is exist - process it [00:09:20]requested_item kkm.ver is exist - process it [00:09:20]requested_item fm.sn is exist - process it [00:09:20]wFMCommunicate request_size=4 [00:09:20]MH_SAM_APDU [00:09:20]CAPDU: 80 11 00 00 [00:09:20]Write to MH i2c: E2 08 00 54 1B 80 11 00 00 00 00 00 00 E9 [00:09:20]Write i2c OK [00:09:20]MH_I2C_Read... [00:09:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:09:20]Read from MH i2c: E2 [00:09:20]MH_I2C_Read... [00:09:20]Read from MH i2c: E2 17 00 [00:09:20]MH_I2C_Read... [00:09:20]Read from MH i2c: E2 17 00 54 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 3C [00:09:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [00:09:21]wFMCommunicate OK [00:09:21]requested_item fd.num is exist - process it [00:09:21]SAM_PROTO_GetFieldsCounters [00:09:21]wFMCommunicate request_size=4 [00:09:21]MH_SAM_APDU [00:09:21]CAPDU: 80 13 00 00 [00:09:21]Write to MH i2c: E2 08 00 55 1B 80 13 00 00 00 00 00 00 EC [00:09:21]Write i2c OK [00:09:21]MH_I2C_Read... [00:09:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:09:21]Read from MH i2c: E2 [00:09:21]MH_I2C_Read... [00:09:21]Read from MH i2c: E2 62 00 [00:09:21]MH_I2C_Read... [00:09:21]Read from MH i2c: E2 62 00 55 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B3 2C 01 00 0E 04 04 00 74 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 23 [00:09: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B3 2C 01 00 0E 04 04 00 74 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 [00:09:21]wFMCommunicate OK [00:09:21]SAM_PROTO_GetFieldsCounters done [00:09:21]requested_item shift.num is exist - process it [00:09:21]requested_item shift.opened is exist - process it [00:09:21]req_shift_opened [00:09:21]FM_GetShiftState [00:09:21]SAM_PROTO_GetShiftState [00:09:21]wFMCommunicate request_size=4 [00:09:21]MH_SAM_APDU [00:09:21]CAPDU: 80 13 01 00 [00:09:21]Write to MH i2c: E2 08 00 56 1B 80 13 01 00 00 00 00 00 EE [00:09:21]Write i2c OK [00:09:21]MH_I2C_Read... [00:09:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:21]Read from MH i2c: E2 [00:09:21]MH_I2C_Read... [00:09:21]Read from MH i2c: E2 0E 00 [00:09:21]MH_I2C_Read... [00:09:21]Read from MH i2c: E2 0E 00 56 1B 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 35 [00:09:21]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [00:09:21]wFMCommunicate OK [00:09:21]SAM_PROTO_GetShiftState done [00:09:21]FM_GetShiftState done [00:09:21]req_shift_opened done [00:09:21]requested_item shift.open_date is exist - process it [00:09:21]req_shift_open_date [00:09:21]req_shift_open_date done [00:09:21]produce_requested_data done [00:09:21]produce_requested_data return {"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76979,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965} [00:09:21]process_action_free get_value [00:09:21]json_value_free [00:09:21]json_value_free done [00:09:21]process_json_proto returns [00:09:21]Send response to host [00:09:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76979,"shift.num":372,"shift.opened":1,"shift.open_date":1713658965}}} [00:09:21]free response buf [00:09:21]execute_script done [00:09:21]execute_script returns [00:09:21]free content buf [00:09:21]Sock 9.Close socket [00:09:21]Sock 9.Thread stoped [00:09:21]accept exits with 8 [00:09:21]New connection [00:09:21]New thread 3066801508 created [00:09:21]Thread 3066944868 joined [00:09:21]Waiting for new connection... [00:09:21] Sock 8.Parse request [00:09:21]Sock 8.Check first char [00:09:21]Sock 8.First char is OK [00:09:21]request: POST /json_proto HTTP/1.0 [00:09:21]Method: POST [00:09:21]URL: /json_proto [00:09:21]Method is POST - this is cgi request [00:09:21]url: /json_proto [00:09:21]query_string will be loaded in cgi processing [00:09:21]execute_cgi json_proto POST (null) [00:09:21]execute_cgi path=json_proto method=POST [00:09:21]POST find Content-Length [00:09:21]Host: 172.17.62.5:8080 [00:09:21]Content-Length: 331 [00:09:21]Content-Type: application/json [00:09:21] [00:09:21]POST finish read [00:09:21]Found Content-Length = 331 [00:09:21]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:09:21]execute_script... [00:09:21]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:09:21]POST & json_proto [00:09:21]process_json_proto [00:09:21]json parsed OK: [00:09:21]protocol is kg_v1.0 [00:09:21]action value=get_value [00:09:21]process_action get_value [00:09:21]cmd_get_value [00:09:21]process_action get_value done [00:09:21]requested_data is exist [00:09:21]produce_requested_data [00:09:21]requested_item fm.sale.total is exist - process it [00:09:21]SAM_PROTO_GetFMData [00:09:21]wFMCommunicate request_size=4 [00:09:21]MH_SAM_APDU [00:09:21]CAPDU: 80 13 03 00 [00:09:21]Write to MH i2c: E2 08 00 57 1B 80 13 03 00 00 00 00 00 F1 [00:09:21]Write i2c OK [00:09:21]MH_I2C_Read... [00:09:21]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:09:21]Read from MH i2c: E2 [00:09:21]MH_I2C_Read... [00:09:21]Read from MH i2c: E2 FD 00 [00:09:21]MH_I2C_Read... [00:09:21]Read from MH i2c: E2 FD 00 57 1B 00 C8 04 85 04 C4 04 6E 04 04 00 CB 29 01 00 69 04 A3 00 6F 04 04 00 D8 27 01 00 B1 04 05 00 07 55 D0 BB 02 70 04 05 00 60 C9 B6 77 02 72 04 04 00 A7 8B 19 44 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 A9 B4 53 4A 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 87 93 31 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F3 01 00 00 B1 04 05 00 F4 34 DE 15 01 70 04 05 00 F4 34 DE 15 01 72 04 00 00 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 6D 18 82 1D EF 90 00 75 [00:09:21]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 CB 29 01 00 69 04 A3 00 6F 04 04 00 D8 27 01 00 B1 04 05 00 07 55 D0 BB 02 70 04 05 00 60 C9 B6 77 02 72 04 04 00 A7 8B 19 44 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 A9 B4 53 4A 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 87 93 31 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F3 01 00 00 B1 04 05 00 F4 34 DE 15 01 70 04 05 00 F4 34 DE 15 01 72 04 00 00 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 6D 18 82 1D EF 90 00 [00:09:21]wFMCommunicate OK [00:09:21]wFMCommunicate request_size=4 [00:09:21]MH_SAM_APDU [00:09:21]CAPDU: 80 17 00 00 [00:09:21]Write to MH i2c: E2 08 00 58 1B 80 17 00 00 00 00 00 00 F3 [00:09:21]Write i2c OK [00:09:21]MH_I2C_Read... [00:09:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:22]Read from MH i2c: E2 [00:09:22]MH_I2C_Read... [00:09:22]Read from MH i2c: E2 FD 00 [00:09:22]MH_I2C_Read... [00:09:22]Read from MH i2c: E2 FD 00 58 1B 00 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 ED 81 75 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 90 00 E7 [00:09:22]RAPDU: 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 ED 81 75 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 90 00 [00:09:22]wFMCommunicate OK [00:09:22]wFMCommunicate request_size=4 [00:09:22]MH_SAM_APDU [00:09:22]CAPDU: 80 17 00 00 [00:09:22]Write to MH i2c: E2 08 00 59 1B 80 17 00 00 00 00 00 00 F4 [00:09:22]Write i2c OK [00:09:22]MH_I2C_Read... [00:09:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:22]Read from MH i2c: E2 [00:09:22]MH_I2C_Read... [00:09:22]Read from MH i2c: E2 FD 00 [00:09:22]MH_I2C_Read... [00:09:22]Read from MH i2c: E2 FD 00 59 1B 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 CC [00:09:22]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:09:22]wFMCommunicate OK [00:09:22]wFMCommunicate request_size=4 [00:09:22]MH_SAM_APDU [00:09:22]CAPDU: 80 17 00 00 [00:09:22]Write to MH i2c: E2 08 00 5A 1B 80 17 00 00 00 00 00 00 F5 [00:09:22]Write i2c OK [00:09:22]MH_I2C_Read... [00:09:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:22]Read from MH i2c: E2 [00:09:22]MH_I2C_Read... [00:09:22]Read from MH i2c: E2 FD 00 [00:09:22]MH_I2C_Read... [00:09:22]Read from MH i2c: E2 FD 00 5A 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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 6D [00:09:23]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [00:09:23]wFMCommunicate OK [00:09:23]wFMCommunicate request_size=4 [00:09:23]MH_SAM_APDU [00:09:23]CAPDU: 80 17 00 00 [00:09:23]Write to MH i2c: E2 08 00 5B 1B 80 17 00 00 00 00 00 00 F6 [00:09:23]Write i2c OK [00:09:23]MH_I2C_Read... [00:09:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:09:23]Read from MH i2c: E2 [00:09:23]MH_I2C_Read... [00:09:23]Read from MH i2c: E2 E5 00 [00:09:23]MH_I2C_Read... [00:09:23]Read from MH i2c: E2 E5 00 5B 1B 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 DA [00:09:23]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:09:23]wFMCommunicate OK [00:09:23]SAM_PROTO_GetFMData done [00:09:23]requested_item fm.sale_refund.total is exist - process it [00:09:23]requested_item fm.buy.total is exist - process it [00:09:23]requested_item shift.sale.total is exist - process it [00:09:23]SAM_PROTO_GetShiftData [00:09:23]wFMCommunicate request_size=4 [00:09:23]MH_SAM_APDU [00:09:23]CAPDU: 80 13 02 00 [00:09:23]Write to MH i2c: E2 08 00 5C 1B 80 13 02 00 00 00 00 00 F5 [00:09:23]Write i2c OK [00:09:23]MH_I2C_Read... [00:09:23]OFD Sender: No OFD packet to send [00:09:23]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:09:23]Read from MH i2c: E2 [00:09:23]MH_I2C_Read... [00:09:23]Read from MH i2c: E2 FD 00 [00:09:23]MH_I2C_Read... [00:09:23]Read from MH i2c: E2 FD 00 5C 1B 00 BB 04 AA 04 B7 04 6E 04 04 00 EB 00 00 00 69 04 9E 00 6F 04 04 00 E8 00 00 00 B1 04 04 00 B8 36 14 02 70 04 04 00 D4 5A BB 01 72 04 03 00 E4 DB 58 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 DB 86 38 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 E4 B5 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 03 00 00 00 B1 04 03 00 00 52 03 70 04 03 00 00 52 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 4E 5A EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 66 [00:09:24]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 EB 00 00 00 69 04 9E 00 6F 04 04 00 E8 00 00 00 B1 04 04 00 B8 36 14 02 70 04 04 00 D4 5A BB 01 72 04 03 00 E4 DB 58 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 DB 86 38 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 E4 B5 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 03 00 00 00 B1 04 03 00 00 52 03 70 04 03 00 00 52 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 4E 5A EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:09:24]wFMCommunicate OK [00:09:24]wFMCommunicate request_size=4 [00:09:24]MH_SAM_APDU [00:09:24]CAPDU: 80 17 00 00 [00:09:24]Write to MH i2c: E2 08 00 5D 1B 80 17 00 00 00 00 00 00 F8 [00:09:24]Write i2c OK [00:09:24]MH_I2C_Read... [00:09:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:24]Read from MH i2c: E2 [00:09:24]MH_I2C_Read... [00:09:24]Read from MH i2c: E2 FD 00 [00:09:24]MH_I2C_Read... [00:09:24]Read from MH i2c: E2 FD 00 5D 1B 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 87 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 30 [00:09:24]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 87 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:09:24]wFMCommunicate OK [00:09:24]wFMCommunicate request_size=4 [00:09:24]MH_SAM_APDU [00:09:24]CAPDU: 80 17 00 00 [00:09:24]Write to MH i2c: E2 08 00 5E 1B 80 17 00 00 00 00 00 00 F9 [00:09:24]Write i2c OK [00:09:24]MH_I2C_Read... [00:09:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:24]Read from MH i2c: E2 [00:09:24]MH_I2C_Read... [00:09:24]Read from MH i2c: E2 FD 00 [00:09:24]MH_I2C_Read... [00:09:24]Read from MH i2c: E2 FD 00 5E 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 25 [00:09:25]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:09:25]wFMCommunicate OK [00:09:25]wFMCommunicate request_size=4 [00:09:25]MH_SAM_APDU [00:09:25]CAPDU: 80 17 00 00 [00:09:25]Write to MH i2c: E2 08 00 5F 1B 80 17 00 00 00 00 00 00 FA [00:09:25]Write i2c OK [00:09:25]MH_I2C_Read... [00:09:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:25]Read from MH i2c: E2 [00:09:25]MH_I2C_Read... [00:09:25]Read from MH i2c: E2 FD 00 [00:09:25]MH_I2C_Read... [00:09:25]Read from MH i2c: E2 FD 00 5F 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 6F [00:09:25]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:09:25]wFMCommunicate OK [00:09:25]wFMCommunicate request_size=4 [00:09:25]MH_SAM_APDU [00:09:25]CAPDU: 80 17 00 00 [00:09:25]Write to MH i2c: E2 08 00 60 1B 80 17 00 00 00 00 00 00 FB [00:09:25]Write i2c OK [00:09:25]MH_I2C_Read... [00:09:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [00:09:25]Read from MH i2c: E2 [00:09:25]MH_I2C_Read... [00:09:25]Read from MH i2c: E2 D8 00 [00:09:25]MH_I2C_Read... [00:09:25]Read from MH i2c: E2 D8 00 60 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 E2 [00:09:26]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:09:26]wFMCommunicate OK [00:09:26]SAM_PROTO_GetShiftData done [00:09:26]requested_item shift.sale.total_cash is exist - process it [00:09:26]requested_item shift.sale_refund.total is exist - process it [00:09:26]requested_item shift.sale_refund.total_cash is exist - process it [00:09:26]requested_item shift.buy.total is exist - process it [00:09:26]requested_item shift.buy.total_cash is exist - process it [00:09:26]produce_requested_data done [00:09:26]produce_requested_data return {"fm.sale.total":117409272.39,"fm.sale_refund.total":46618513.80,"fm.buy.total":0.00,"shift.sale.total":348791.60,"shift.sale.total_cash":290557.00,"shift.sale_refund.total":2176.00,"shift.sale_refund.total_cash":2176.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:09:26]process_action_free get_value [00:09:26]json_value_free [00:09:26]json_value_free done [00:09:26]process_json_proto returns [00:09:26]Send response to host [00:09:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":117409272.39,"fm.sale_refund.total":46618513.80,"fm.buy.total":0.00,"shift.sale.total":348791.60,"shift.sale.total_cash":290557.00,"shift.sale_refund.total":2176.00,"shift.sale_refund.total_cash":2176.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:09:26]free response buf [00:09:26]execute_script done [00:09:26]execute_script returns [00:09:26]free content buf [00:09:26]Sock 8.Close socket [00:09:26]Sock 8.Thread stoped [00:09:26]accept exits with 9 [00:09:26]New connection [00:09:26]New thread 3066944868 created [00:09:26]Thread 3066801508 joined [00:09:26]Waiting for new connection... [00:09:26] Sock 9.Parse request [00:09:26]Sock 9.Check first char [00:09:26]Sock 9.First char is OK [00:09:26]request: POST /json_proto HTTP/1.0 [00:09:26]Method: POST [00:09:26]URL: /json_proto [00:09:26]Method is POST - this is cgi request [00:09:26]url: /json_proto [00:09:26]query_string will be loaded in cgi processing [00:09:26]execute_cgi json_proto POST (null) [00:09:26]execute_cgi path=json_proto method=POST [00:09:26]POST find Content-Length [00:09:26]Host: 172.17.62.5:8080 [00:09:26]Content-Length: 331 [00:09:26]Content-Type: application/json [00:09:26] [00:09:26]POST finish read [00:09:26]Found Content-Length = 331 [00:09: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:09:26]execute_script... [00:09: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:09:26]POST & json_proto [00:09:26]process_json_proto [00:09:26]json parsed OK: [00:09:26]protocol is kg_v1.0 [00:09:26]action value=get_value [00:09:26]process_action get_value [00:09:26]cmd_get_value [00:09:26]process_action get_value done [00:09:26]requested_data is exist [00:09:26]produce_requested_data [00:09:26]requested_item fm.sale.total is exist - process it [00:09:26]SAM_PROTO_GetFMData [00:09:26]wFMCommunicate request_size=4 [00:09:26]MH_SAM_APDU [00:09:26]CAPDU: 80 13 03 00 [00:09:26]Write to MH i2c: E2 08 00 61 1B 80 13 03 00 00 00 00 00 FB [00:09:26]Write i2c OK [00:09:26]MH_I2C_Read... [00:09:26]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:09:26]Read from MH i2c: E2 [00:09:26]MH_I2C_Read... [00:09:26]Read from MH i2c: E2 FD 00 [00:09:26]MH_I2C_Read... [00:09:26]Read from MH i2c: E2 FD 00 61 1B 00 C8 04 85 04 C4 04 6E 04 04 00 CB 29 01 00 69 04 A3 00 6F 04 04 00 D8 27 01 00 B1 04 05 00 07 55 D0 BB 02 70 04 05 00 60 C9 B6 77 02 72 04 04 00 A7 8B 19 44 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 A9 B4 53 4A 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 87 93 31 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F3 01 00 00 B1 04 05 00 F4 34 DE 15 01 70 04 05 00 F4 34 DE 15 01 72 04 00 00 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 6D 18 82 1D EF 90 00 7F [00:09:26]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 CB 29 01 00 69 04 A3 00 6F 04 04 00 D8 27 01 00 B1 04 05 00 07 55 D0 BB 02 70 04 05 00 60 C9 B6 77 02 72 04 04 00 A7 8B 19 44 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 A9 B4 53 4A 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 87 93 31 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F3 01 00 00 B1 04 05 00 F4 34 DE 15 01 70 04 05 00 F4 34 DE 15 01 72 04 00 00 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 6D 18 82 1D EF 90 00 [00:09:27]wFMCommunicate OK [00:09:27]wFMCommunicate request_size=4 [00:09:27]MH_SAM_APDU [00:09:27]CAPDU: 80 17 00 00 [00:09:27]Write to MH i2c: E2 08 00 62 1B 80 17 00 00 00 00 00 00 FD [00:09:27]Write i2c OK [00:09:27]MH_I2C_Read... [00:09:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:27]Read from MH i2c: E2 [00:09:27]MH_I2C_Read... [00:09:27]Read from MH i2c: E2 FD 00 [00:09:27]MH_I2C_Read... [00:09:27]Read from MH i2c: E2 FD 00 62 1B 00 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 ED 81 75 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 90 00 F1 [00:09:27]RAPDU: 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 ED 81 75 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 90 00 [00:09:27]wFMCommunicate OK [00:09:27]wFMCommunicate request_size=4 [00:09:27]MH_SAM_APDU [00:09:27]CAPDU: 80 17 00 00 [00:09:27]Write to MH i2c: E2 08 00 63 1B 80 17 00 00 00 00 00 00 FE [00:09:27]Write i2c OK [00:09:27]MH_I2C_Read... [00:09:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:27]Read from MH i2c: E2 [00:09:27]MH_I2C_Read... [00:09:27]Read from MH i2c: E2 FD 00 [00:09:27]MH_I2C_Read... [00:09:27]Read from MH i2c: E2 FD 00 63 1B 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 D6 [00:09:28]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:09:28]wFMCommunicate OK [00:09:28]wFMCommunicate request_size=4 [00:09:28]MH_SAM_APDU [00:09:28]CAPDU: 80 17 00 00 [00:09:28]Write to MH i2c: E2 08 00 64 1B 80 17 00 00 00 00 00 00 FF [00:09:28]Write i2c OK [00:09:28]MH_I2C_Read... [00:09:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:28]Read from MH i2c: E2 [00:09:28]MH_I2C_Read... [00:09:28]Read from MH i2c: E2 FD 00 [00:09:28]MH_I2C_Read... [00:09:28]Read from MH i2c: E2 FD 00 64 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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 77 [00:09:28]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [00:09:28]wFMCommunicate OK [00:09:28]wFMCommunicate request_size=4 [00:09:28]MH_SAM_APDU [00:09:28]CAPDU: 80 17 00 00 [00:09:28]Write to MH i2c: E2 08 00 65 1B 80 17 00 00 00 00 00 00 00 [00:09:28]Write i2c OK [00:09:28]MH_I2C_Read... [00:09:28]OFD Sender: No OFD packet to send [00:09:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:09:28]Read from MH i2c: E2 [00:09:28]MH_I2C_Read... [00:09:28]Read from MH i2c: E2 E5 00 [00:09:29]MH_I2C_Read... [00:09:29]Read from MH i2c: E2 E5 00 65 1B 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E4 [00:09:29]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:09:29]wFMCommunicate OK [00:09:29]SAM_PROTO_GetFMData done [00:09:29]requested_item fm.sale_refund.total is exist - process it [00:09:29]requested_item fm.buy.total is exist - process it [00:09:29]requested_item shift.sale.total is exist - process it [00:09:29]SAM_PROTO_GetShiftData [00:09:29]wFMCommunicate request_size=4 [00:09:29]MH_SAM_APDU [00:09:29]CAPDU: 80 13 02 00 [00:09:29]Write to MH i2c: E2 08 00 66 1B 80 13 02 00 00 00 00 00 FF [00:09:29]Write i2c OK [00:09:29]MH_I2C_Read... [00:09:29]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:09:29]Read from MH i2c: E2 [00:09:29]MH_I2C_Read... [00:09:29]Read from MH i2c: E2 FD 00 [00:09:29]MH_I2C_Read... [00:09:29]Read from MH i2c: E2 FD 00 66 1B 00 BB 04 AA 04 B7 04 6E 04 04 00 EB 00 00 00 69 04 9E 00 6F 04 04 00 E8 00 00 00 B1 04 04 00 B8 36 14 02 70 04 04 00 D4 5A BB 01 72 04 03 00 E4 DB 58 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 DB 86 38 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 E4 B5 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 03 00 00 00 B1 04 03 00 00 52 03 70 04 03 00 00 52 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 4E 5A EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 70 [00:09:29]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 EB 00 00 00 69 04 9E 00 6F 04 04 00 E8 00 00 00 B1 04 04 00 B8 36 14 02 70 04 04 00 D4 5A BB 01 72 04 03 00 E4 DB 58 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 DB 86 38 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 E4 B5 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 03 00 00 00 B1 04 03 00 00 52 03 70 04 03 00 00 52 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 4E 5A EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:09:30]wFMCommunicate OK [00:09:30]wFMCommunicate request_size=4 [00:09:30]MH_SAM_APDU [00:09:30]CAPDU: 80 17 00 00 [00:09:30]Write to MH i2c: E2 08 00 67 1B 80 17 00 00 00 00 00 00 02 [00:09:30]Write i2c OK [00:09:30]MH_I2C_Read... [00:09:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:30]Read from MH i2c: E2 [00:09:30]MH_I2C_Read... [00:09:30]Read from MH i2c: E2 FD 00 [00:09:30]MH_I2C_Read... [00:09:30]Read from MH i2c: E2 FD 00 67 1B 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 87 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3A [00:09:30]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 87 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:09:30]wFMCommunicate OK [00:09:30]wFMCommunicate request_size=4 [00:09:30]MH_SAM_APDU [00:09:30]CAPDU: 80 17 00 00 [00:09:30]Write to MH i2c: E2 08 00 68 1B 80 17 00 00 00 00 00 00 03 [00:09:30]Write i2c OK [00:09:30]MH_I2C_Read... [00:09:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:30]Read from MH i2c: E2 [00:09:30]MH_I2C_Read... [00:09:30]Read from MH i2c: E2 FD 00 [00:09:30]MH_I2C_Read... [00:09:30]Read from MH i2c: E2 FD 00 68 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 2F [00:09:31]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:09:31]wFMCommunicate OK [00:09:31]wFMCommunicate request_size=4 [00:09:31]MH_SAM_APDU [00:09:31]CAPDU: 80 17 00 00 [00:09:31]Write to MH i2c: E2 08 00 69 1B 80 17 00 00 00 00 00 00 04 [00:09:31]Write i2c OK [00:09:31]MH_I2C_Read... [00:09:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:31]Read from MH i2c: E2 [00:09:31]MH_I2C_Read... [00:09:31]Read from MH i2c: E2 FD 00 [00:09:31]MH_I2C_Read... [00:09:31]Read from MH i2c: E2 FD 00 69 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 79 [00:09:31]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:09:31]wFMCommunicate OK [00:09:31]wFMCommunicate request_size=4 [00:09:31]MH_SAM_APDU [00:09:31]CAPDU: 80 17 00 00 [00:09:31]Write to MH i2c: E2 08 00 6A 1B 80 17 00 00 00 00 00 00 05 [00:09:31]Write i2c OK [00:09:31]MH_I2C_Read... [00:09:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [00:09:32]Read from MH i2c: E2 [00:09:32]MH_I2C_Read... [00:09:32]Read from MH i2c: E2 D8 00 [00:09:32]MH_I2C_Read... [00:09:32]Read from MH i2c: E2 D8 00 6A 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 EC [00:09:32]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:09:32]wFMCommunicate OK [00:09:32]SAM_PROTO_GetShiftData done [00:09:32]requested_item shift.sale.total_cash is exist - process it [00:09:32]requested_item shift.sale_refund.total is exist - process it [00:09:32]requested_item shift.sale_refund.total_cash is exist - process it [00:09:32]requested_item shift.buy.total is exist - process it [00:09:32]requested_item shift.buy.total_cash is exist - process it [00:09:32]produce_requested_data done [00:09:32]produce_requested_data return {"fm.sale.total":117409272.39,"fm.sale_refund.total":46618513.80,"fm.buy.total":0.00,"shift.sale.total":348791.60,"shift.sale.total_cash":290557.00,"shift.sale_refund.total":2176.00,"shift.sale_refund.total_cash":2176.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:09:32]process_action_free get_value [00:09:32]json_value_free [00:09:32]json_value_free done [00:09:32]process_json_proto returns [00:09:32]Send response to host [00:09:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":117409272.39,"fm.sale_refund.total":46618513.80,"fm.buy.total":0.00,"shift.sale.total":348791.60,"shift.sale.total_cash":290557.00,"shift.sale_refund.total":2176.00,"shift.sale_refund.total_cash":2176.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:09:32]free response buf [00:09:32]execute_script done [00:09:32]execute_script returns [00:09:32]free content buf [00:09:32]Sock 9.Close socket [00:09:32]Sock 9.Thread stoped [00:09:32]accept exits with 8 [00:09:32]New connection [00:09:32]New thread 3066801508 created [00:09:32]Thread 3066944868 joined [00:09:32]Waiting for new connection... [00:09:32] Sock 8.Parse request [00:09:32]Sock 8.Check first char [00:09:32]Sock 8.First char is OK [00:09:32]request: POST /json_proto HTTP/1.0 [00:09:32]Method: POST [00:09:32]URL: /json_proto [00:09:32]Method is POST - this is cgi request [00:09:32]url: /json_proto [00:09:32]query_string will be loaded in cgi processing [00:09:32]execute_cgi json_proto POST (null) [00:09:32]execute_cgi path=json_proto method=POST [00:09:32]POST find Content-Length [00:09:32]Host: 172.17.62.5:8080 [00:09:32]Content-Length: 260 [00:09:32]Content-Type: application/json [00:09:32] [00:09:32]POST finish read [00:09:32]Found Content-Length = 260 [00:09:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041B\u044B\u043C\u0430\u0440\u0435\u0432\u0430 \u0412. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:32]execute_script... [00:09:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041B\u044B\u043C\u0430\u0440\u0435\u0432\u0430 \u0412. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:32]POST & json_proto [00:09:32]process_json_proto [00:09:32]json parsed OK: [00:09:32]protocol is kg_v1.0 [00:09:32]action value=close_shift [00:09:32]process_action close_shift [00:09:32]cmd_close_shift [00:09:32]MH_GetDate [00:09:32]Write to MH i2c: F0 00 00 6B 1B 75 [00:09:32]Write i2c OK [00:09:32]MH_I2C_Read... [00:09:32]Read from MH i2c: F0 [00:09:32]MH_I2C_Read... [00:09:32]Read from MH i2c: F0 09 00 [00:09:32]MH_I2C_Read... [00:09:32]Read from MH i2c: F0 09 00 6B 1B 00 BE AA 25 66 F4 E9 65 64 17 [00:09:32]GetLastDocTimeStamp 1713744531 [00:09:32]current date 1713744574 [00:09:32]FM_GetShiftState [00:09:32]SAM_PROTO_GetShiftState [00:09:32]wFMCommunicate request_size=4 [00:09:32]MH_SAM_APDU [00:09:32]CAPDU: 80 13 01 00 [00:09:32]Write to MH i2c: E2 08 00 6C 1B 80 13 01 00 00 00 00 00 04 [00:09:32]Write i2c OK [00:09:32]MH_I2C_Read... [00:09:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:32]Read from MH i2c: E2 [00:09:32]MH_I2C_Read... [00:09:32]Read from MH i2c: E2 0E 00 [00:09:32]MH_I2C_Read... [00:09:32]Read from MH i2c: E2 0E 00 6C 1B 00 09 00 01 55 5C 24 66 00 00 00 00 90 00 4B [00:09:32]RAPDU: 09 00 01 55 5C 24 66 00 00 00 00 90 00 [00:09:32]wFMCommunicate OK [00:09:32]SAM_PROTO_GetShiftState done [00:09:32]FM_GetShiftState done [00:09:32]KKMCreateCloseShiftDocument [00:09:32]Load OK [00:09:32]Malloc new data [00:09:32]MH_GetDate [00:09:32]Write to MH i2c: F0 00 00 6D 1B 77 [00:09:32]Write i2c OK [00:09:32]MH_I2C_Read... [00:09:32]Read from MH i2c: F0 [00:09:32]MH_I2C_Read... [00:09:32]Read from MH i2c: F0 09 00 [00:09:32]MH_I2C_Read... [00:09:32]Read from MH i2c: F0 09 00 6D 1B 00 BE AA 25 66 F4 E9 65 64 19 [00:09:32]Malloc new data [00:09:32]Malloc new data [00:09:32]Malloc new data [00:09:32]Malloc new data [00:09:32]KKMCreateCloseShiftDocument OK [00:09:32]KKMSetCloseShiftData OK [00:09:32]ProcessDocumentItem done err = 0, tmpTLVsize=71 [00:09:32]tlvbuf is 00D92CB0 [00:09:32]KKMLoadAndSignCloseShiftData [00:09:32]SAM_PROTO_ProcessDocument [00:09:32]wFMCommunicate request_size=9 [00:09:32]MH_SAM_APDU [00:09:32]CAPDU: 80 15 01 00 04 05 00 47 00 [00:09:32]Write to MH i2c: E2 0C 00 6E 1B 80 15 01 00 04 00 05 00 47 00 00 00 5C [00:09:32]Write i2c OK [00:09:32]MH_I2C_Read... [00:09:32]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:09:32]Read from MH i2c: E2 [00:09:32]MH_I2C_Read... [00:09:32]Read from MH i2c: E2 03 00 [00:09:32]MH_I2C_Read... [00:09:32]Read from MH i2c: E2 03 00 6E 1B 00 90 00 FD [00:09:32]RAPDU: 90 00 [00:09:32]wFMCommunicate OK [00:09:32]wFMCommunicate request_size=23 [00:09:32]MH_SAM_APDU [00:09:32]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:09:32]Write to MH i2c: E2 1A 00 6F 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 FF [00:09:32]Write i2c OK [00:09:32]MH_I2C_Read... [00:09:32]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:09:32]Read from MH i2c: E2 [00:09:32]MH_I2C_Read... [00:09:32]Read from MH i2c: E2 03 00 [00:09:32]MH_I2C_Read... [00:09:32]Read from MH i2c: E2 03 00 6F 1B 00 90 00 FE [00:09:32]RAPDU: 90 00 [00:09:32]wFMCommunicate OK [00:09:32]wFMCommunicate request_size=30 [00:09:32]MH_SAM_APDU [00:09:32]CAPDU: 80 15 02 00 19 FD 03 15 00 D0 9B D1 8B D0 BC D0 B0 D1 80 D0 B5 D0 B2 D0 B0 20 D0 92 2E 20 [00:09:32]Write to MH i2c: E2 21 00 70 1B 80 15 02 00 19 00 FD 03 15 00 D0 9B D1 8B D0 BC D0 B0 D1 80 D0 B5 D0 B2 D0 B0 20 D0 92 2E 20 00 00 CD [00:09:32]Write i2c OK [00:09:32]MH_I2C_Read... [00:09:32]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:09:32]Read from MH i2c: E2 [00:09:32]MH_I2C_Read... [00:09:32]Read from MH i2c: E2 03 00 [00:09:32]MH_I2C_Read... [00:09:32]Read from MH i2c: E2 03 00 70 1B 00 90 00 FF [00:09:32]RAPDU: 90 00 [00:09:32]wFMCommunicate OK [00:09:32]wFMCommunicate request_size=13 [00:09:32]MH_SAM_APDU [00:09:32]CAPDU: 80 15 02 00 08 F4 03 04 00 BE AA 25 66 [00:09:32]Write to MH i2c: E2 10 00 71 1B 80 15 02 00 08 00 F4 03 04 00 BE AA 25 66 00 00 0A [00:09:32]Write i2c OK [00:09:32]MH_I2C_Read... [00:09:32]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:09:32]Read from MH i2c: E2 [00:09:32]MH_I2C_Read... [00:09:32]Read from MH i2c: E2 03 00 [00:09:32]MH_I2C_Read... [00:09:32]Read from MH i2c: E2 03 00 71 1B 00 90 00 00 [00:09:32]RAPDU: 90 00 [00:09:32]wFMCommunicate OK [00:09:32]wFMCommunicate request_size=25 [00:09:32]MH_SAM_APDU [00:09:32]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 [00:09:32]Write to MH i2c: E2 1C 00 72 1B 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 00 00 6F [00:09:32]Write i2c OK [00:09:32]MH_I2C_Read... [00:09:33]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:09:33]Read from MH i2c: E2 [00:09:33]MH_I2C_Read... [00:09:33]Read from MH i2c: E2 03 00 [00:09:33]MH_I2C_Read... [00:09:33]Read from MH i2c: E2 03 00 72 1B 00 90 00 01 [00:09:33]RAPDU: 90 00 [00:09:33]wFMCommunicate OK [00:09:33]wFMCommunicate request_size=4 [00:09:33]MH_SAM_APDU [00:09:33]CAPDU: 80 15 03 00 [00:09:33]Write to MH i2c: E2 08 00 73 1B 80 15 03 00 00 00 00 00 0F [00:09:33]Write i2c OK [00:09:33]MH_I2C_Read... [00:09:33]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:09:33]Read from MH i2c: E2 [00:09:33]MH_I2C_Read... [00:09:33]Read from MH i2c: E2 FD 00 [00:09:33]MH_I2C_Read... [00:09:33]Read from MH i2c: E2 FD 00 73 1B 00 FE 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B4 2C 01 00 0E 04 04 00 74 01 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 ED 00 00 00 AA 04 B7 04 6E 04 04 00 EB 00 00 00 69 04 9E 00 6F 04 04 00 E8 00 00 00 B1 04 04 00 B8 36 14 02 70 04 04 00 D4 5A BB 01 72 04 03 00 E4 DB 58 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 DB 86 38 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 E4 B5 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 03 00 00 00 B1 04 03 00 00 90 00 69 [00:09:33]RAPDU: FE 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B4 2C 01 00 0E 04 04 00 74 01 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 ED 00 00 00 AA 04 B7 04 6E 04 04 00 EB 00 00 00 69 04 9E 00 6F 04 04 00 E8 00 00 00 B1 04 04 00 B8 36 14 02 70 04 04 00 D4 5A BB 01 72 04 03 00 E4 DB 58 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 DB 86 38 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 E4 B5 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 03 00 00 00 B1 04 03 00 00 90 00 [00:09:33]wFMCommunicate OK [00:09:33]SAM_PROTO_ProcessDocument answer len = 1278 [00:09:33]SAM_PROTO_ProcessDocument remain to read = 1030 [00:09:33]wFMCommunicate request_size=4 [00:09:33]MH_SAM_APDU [00:09:33]CAPDU: 80 17 00 00 [00:09:33]Write to MH i2c: E2 08 00 74 1B 80 17 00 00 00 00 00 00 0F [00:09:33]OFD Sender: No OFD packet to send [00:09:33]Write i2c OK [00:09:33]MH_I2C_Read... [00:09:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:34]Read from MH i2c: E2 [00:09:34]MH_I2C_Read... [00:09:34]Read from MH i2c: E2 FD 00 [00:09:34]MH_I2C_Read... [00:09:34]Read from MH i2c: E2 FD 00 74 1B 00 52 03 70 04 03 00 00 52 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 4E 5A 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 87 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C8 [00:09:34]RAPDU: 52 03 70 04 03 00 00 52 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 4E 5A 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 87 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:09:34]wFMCommunicate OK [00:09:34]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:09:34]SAM_PROTO_ProcessDocument remain to read = 780 [00:09:34]wFMCommunicate request_size=4 [00:09:34]MH_SAM_APDU [00:09:34]CAPDU: 80 17 00 00 [00:09:34]Write to MH i2c: E2 08 00 75 1B 80 17 00 00 00 00 00 00 10 [00:09:34]Write i2c OK [00:09:34]MH_I2C_Read... [00:09:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:34]Read from MH i2c: E2 [00:09:34]MH_I2C_Read... [00:09:34]Read from MH i2c: E2 FD 00 [00:09:34]MH_I2C_Read... [00:09:34]Read from MH i2c: E2 FD 00 75 1B 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 76 [00:09:34]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:09:35]wFMCommunicate OK [00:09:35]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:09:35]SAM_PROTO_ProcessDocument remain to read = 530 [00:09:35]wFMCommunicate request_size=4 [00:09:35]MH_SAM_APDU [00:09:35]CAPDU: 80 17 00 00 [00:09:35]Write to MH i2c: E2 08 00 76 1B 80 17 00 00 00 00 00 00 11 [00:09:35]Write i2c OK [00:09:35]MH_I2C_Read... [00:09:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:35]Read from MH i2c: E2 [00:09:35]MH_I2C_Read... [00:09:35]Read from MH i2c: E2 FD 00 [00:09:35]MH_I2C_Read... [00:09:35]Read from MH i2c: E2 FD 00 76 1B 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 AF [00:09:35]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:09:35]wFMCommunicate OK [00:09:35]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:09:35]SAM_PROTO_ProcessDocument remain to read = 280 [00:09:35]wFMCommunicate request_size=4 [00:09:35]MH_SAM_APDU [00:09:35]CAPDU: 80 17 00 00 [00:09:35]Write to MH i2c: E2 08 00 77 1B 80 17 00 00 00 00 00 00 12 [00:09:35]Write i2c OK [00:09:35]MH_I2C_Read... [00:09:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:36]Read from MH i2c: E2 [00:09:36]MH_I2C_Read... [00:09:36]Read from MH i2c: E2 FD 00 [00:09:36]MH_I2C_Read... [00:09:36]Read from MH i2c: E2 FD 00 77 1B 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C1 [00:09:36]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:09:36]wFMCommunicate OK [00:09:36]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:09:36]SAM_PROTO_ProcessDocument remain to read = 30 [00:09:36]wFMCommunicate request_size=4 [00:09:36]MH_SAM_APDU [00:09:36]CAPDU: 80 17 00 00 [00:09:36]Write to MH i2c: E2 08 00 78 1B 80 17 00 00 00 00 00 00 13 [00:09:36]Write i2c OK [00:09:36]MH_I2C_Read... [00:09:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 30! [00:09:36]Read from MH i2c: E2 [00:09:36]MH_I2C_Read... [00:09:36]Read from MH i2c: E2 21 00 [00:09:36]MH_I2C_Read... [00:09:36]Read from MH i2c: E2 21 00 78 1B 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 36 B5 20 93 47 E4 90 00 22 [00:09:36]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 36 B5 20 93 47 E4 90 00 [00:09:36]wFMCommunicate OK [00:09:36]SAM_PROTO_ProcessDocument received (without SW) 30 bytes [00:09:36]SAM_PROTO_ProcessDocument done [00:09:36]1209 (1) - 1.0 - номер версии ФФД [00:09:36]1041 (16) - 0000000000874652 - номер ФМ [00:09:36]1040 (4) - 76980 - номер ФД [00:09:36]1038 (4) - 372 - номер смены [00:09:36]1118 (4) - 235 - количество кассовых чеков за смену [00:09:36]1111 (4) - 237 - общее количество ФД за смену [00:09:36]1194 (1207) - счетчики итогов смены [00:09:36] 1134 (4) - 235 - количество чеков со всеми признаками расчетов [00:09:36] 1129 (158) - счетчики операций «приход» [00:09:36] 1135 (4) - 232 - количество чеков по признаку расчетов [00:09:36] 1201 (4) - 348791.60 - общая итоговая сумма в чеках [00:09:36] 1136 (4) - 290557.00 - итоговая сумма в чеках наличными [00:09:36] 1138 (3) - 58234.60 - итоговая сумма в чеках безналичными [00:09:36] 1024 (123) - суммы налогов [00:09:36] 1006 (9) - суммы НДС [00:09:36] 1010 (1) - 0% - код ставки НДС [00:09:36] 1011 (0) - 0.00 - сумма НДС по ставке [00:09:36] 1006 (12) - суммы НДС [00:09:36] 1010 (1) - 12% - код ставки НДС [00:09:36] 1011 (3) - 37045.39 - сумма НДС по ставке [00:09:36] 1007 (9) - суммы НСП [00:09:36] 1014 (1) - 0% - код ставки НСП [00:09:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:36] 1007 (12) - суммы НСП [00:09:36] 1014 (1) - 1% - код ставки НСП [00:09:36] 1015 (3) - 3087.08 - сумма НСП по ставке [00:09:36] 1007 (9) - суммы НСП [00:09:36] 1014 (1) - 2% - код ставки НСП [00:09:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:36] 1007 (9) - суммы НСП [00:09:36] 1014 (1) - 3% - код ставки НСП [00:09:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:36] 1007 (9) - суммы НСП [00:09:36] 1014 (1) - 5% - код ставки НСП [00:09:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:36] 1007 (9) - суммы НСП [00:09:36] 1014 (1) - 0,50% - код ставки НСП [00:09:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:36] 1007 (9) - суммы НСП [00:09:36] 1014 (1) - 1,50% - код ставки НСП [00:09:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:36] 1130 (151) - счетчики операций «возврат прихода» [00:09:36] 1135 (4) - 3 - количество чеков по признаку расчетов [00:09:36] 1201 (3) - 2176.00 - общая итоговая сумма в чеках [00:09:36] 1136 (3) - 2176.00 - итоговая сумма в чеках наличными [00:09:36] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:09:36] 1024 (121) - суммы налогов [00:09:36] 1006 (9) - суммы НДС [00:09:36] 1010 (1) - 0% - код ставки НДС [00:09:36] 1011 (0) - 0.00 - сумма НДС по ставке [00:09:36] 1006 (11) - суммы НДС [00:09:36] 1010 (1) - 12% - код ставки НДС [00:09:36] 1011 (2) - 231.18 - сумма НДС по ставке [00:09:36] 1007 (9) - суммы НСП [00:09:36] 1014 (1) - 0% - код ставки НСП [00:09:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:36] 1007 (11) - суммы НСП [00:09:36] 1014 (1) - 1% - код ставки НСП [00:09:36] 1015 (2) - 19.27 - сумма НСП по ставке [00:09:36] 1007 (9) - суммы НСП [00:09:36] 1014 (1) - 2% - код ставки НСП [00:09:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:36] 1007 (9) - суммы НСП [00:09:36] 1014 (1) - 3% - код ставки НСП [00:09:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:36] 1007 (9) - суммы НСП [00:09:36] 1014 (1) - 5% - код ставки НСП [00:09:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:36] 1007 (9) - суммы НСП [00:09:36] 1014 (1) - 0,50% - код ставки НСП [00:09:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:36] 1007 (9) - суммы НСП [00:09:36] 1014 (1) - 1,50% - код ставки НСП [00:09:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:36] 1131 (141) - счетчики операций «расход» [00:09:36] 1135 (4) - 0 - количество чеков по признаку расчетов [00:09:36] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:09:36] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:09:36] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:09:36] 1024 (117) - суммы налогов [00:09:36] 1006 (9) - суммы НДС [00:09:36] 1010 (1) - 0% - код ставки НДС [00:09:36] 1011 (0) - 0.00 - сумма НДС по ставке [00:09:36] 1006 (9) - суммы НДС [00:09:36] 1010 (1) - 12% - код ставки НДС [00:09:36] 1011 (0) - 0.00 - сумма НДС по ставке [00:09:36] 1007 (9) - суммы НСП [00:09:36] 1014 (1) - 0% - код ставки НСП [00:09:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:36] 1007 (9) - суммы НСП [00:09:36] 1014 (1) - 1% - код ставки НСП [00:09:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:36] 1007 (9) - суммы НСП [00:09:36] 1014 (1) - 2% - код ставки НСП [00:09:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:36] 1007 (9) - суммы НСП [00:09:36] 1014 (1) - 3% - код ставки НСП [00:09:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:36] 1007 (9) - суммы НСП [00:09:36] 1014 (1) - 5% - код ставки НСП [00:09:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:36] 1007 (9) - суммы НСП [00:09:36] 1014 (1) - 0,50% - код ставки НСП [00:09:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:36] 1007 (9) - суммы НСП [00:09:36] 1014 (1) - 1,50% - код ставки НСП [00:09:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:36] 1132 (141) - счетчики операций «возврат расхода» [00:09:36] 1135 (4) - 0 - количество чеков по признаку расчетов [00:09:37] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:09:37] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:09:37] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:09:37] 1024 (117) - суммы налогов [00:09:37] 1006 (9) - суммы НДС [00:09:37] 1010 (1) - 0% - код ставки НДС [00:09:37] 1011 (0) - 0.00 - сумма НДС по ставке [00:09:37] 1006 (9) - суммы НДС [00:09:37] 1010 (1) - 12% - код ставки НДС [00:09:37] 1011 (0) - 0.00 - сумма НДС по ставке [00:09:37] 1007 (9) - суммы НСП [00:09:37] 1014 (1) - 0% - код ставки НСП [00:09:37] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:37] 1007 (9) - суммы НСП [00:09:37] 1014 (1) - 1% - код ставки НСП [00:09:37] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:37] 1007 (9) - суммы НСП [00:09:37] 1014 (1) - 2% - код ставки НСП [00:09:37] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:37] 1007 (9) - суммы НСП [00:09:37] 1014 (1) - 3% - код ставки НСП [00:09:37] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:37] 1007 (9) - суммы НСП [00:09:37] 1014 (1) - 5% - код ставки НСП [00:09:37] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:37] 1007 (9) - суммы НСП [00:09:37] 1014 (1) - 0,50% - код ставки НСП [00:09:37] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:37] 1007 (9) - суммы НСП [00:09:37] 1014 (1) - 1,50% - код ставки НСП [00:09:37] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:37] 1133 (588) - - счетчики коррекции - не используются [00:09:37]1077 (6) - 60151563503588 - ФПД [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1209 (04B9) [00:09:37]Malloc new data [00:09:37]Processing tag 1041 (0411) [00:09:37]Processing tag 1040 (0410) [00:09:37]Malloc new data [00:09:37]Processing tag 1038 (040E) [00:09:37]Malloc new data [00:09:37]Processing tag 1118 (045E) [00:09:37]Malloc new data [00:09:37]Processing tag 1111 (0457) [00:09:37]Malloc new data [00:09:37]Processing tag 1194 (04AA) [00:09:37]Load OK [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1134 (046E) [00:09:37]Malloc new data [00:09:37]Processing tag 1129 (0469) [00:09:37]Load OK [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1135 (046F) [00:09:37]Malloc new data [00:09:37]Processing tag 1201 (04B1) [00:09:37]Malloc new data [00:09:37]Processing tag 1136 (0470) [00:09:37]Malloc new data [00:09:37]Processing tag 1138 (0472) [00:09:37]Malloc new data [00:09:37]Processing tag 1024 (0400) [00:09:37]Load OK [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1006 (03EE) [00:09:37]Load OK [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1010 (03F2) [00:09:37]Malloc new data [00:09:37]Processing tag 1011 (03F3) [00:09:37]Malloc new data [00:09:37]SetTLVBufToDocument err=0 [00:09:37]Processing tag 1006 (03EE) [00:09:37]Load OK [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1010 (03F2) [00:09:37]Malloc new data [00:09:37]Processing tag 1011 (03F3) [00:09:37]Malloc new data [00:09:37]SetTLVBufToDocument err=0 [00:09:37]Processing tag 1007 (03EF) [00:09:37]Load OK [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1014 (03F6) [00:09:37]Malloc new data [00:09:37]Processing tag 1015 (03F7) [00:09:37]Malloc new data [00:09:37]SetTLVBufToDocument err=0 [00:09:37]Processing tag 1007 (03EF) [00:09:37]Load OK [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1014 (03F6) [00:09:37]Malloc new data [00:09:37]Processing tag 1015 (03F7) [00:09:37]Malloc new data [00:09:37]SetTLVBufToDocument err=0 [00:09:37]Processing tag 1007 (03EF) [00:09:37]Load OK [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1014 (03F6) [00:09:37]Malloc new data [00:09:37]Processing tag 1015 (03F7) [00:09:37]Malloc new data [00:09:37]SetTLVBufToDocument err=0 [00:09:37]Processing tag 1007 (03EF) [00:09:37]Load OK [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1014 (03F6) [00:09:37]Malloc new data [00:09:37]Processing tag 1015 (03F7) [00:09:37]Malloc new data [00:09:37]SetTLVBufToDocument err=0 [00:09:37]Processing tag 1007 (03EF) [00:09:37]Load OK [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1014 (03F6) [00:09:37]Malloc new data [00:09:37]Processing tag 1015 (03F7) [00:09:37]Malloc new data [00:09:37]SetTLVBufToDocument err=0 [00:09:37]Processing tag 1007 (03EF) [00:09:37]Load OK [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1014 (03F6) [00:09:37]Malloc new data [00:09:37]Processing tag 1015 (03F7) [00:09:37]Malloc new data [00:09:37]SetTLVBufToDocument err=0 [00:09:37]Processing tag 1007 (03EF) [00:09:37]Load OK [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1014 (03F6) [00:09:37]Malloc new data [00:09:37]Processing tag 1015 (03F7) [00:09:37]Malloc new data [00:09:37]SetTLVBufToDocument err=0 [00:09:37]SetTLVBufToDocument err=0 [00:09:37]SetTLVBufToDocument err=0 [00:09:37]Processing tag 1130 (046A) [00:09:37]Load OK [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1135 (046F) [00:09:37]Malloc new data [00:09:37]Processing tag 1201 (04B1) [00:09:37]Malloc new data [00:09:37]Processing tag 1136 (0470) [00:09:37]Malloc new data [00:09:37]Processing tag 1138 (0472) [00:09:37]Malloc new data [00:09:37]Processing tag 1024 (0400) [00:09:37]Load OK [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1006 (03EE) [00:09:37]Load OK [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1010 (03F2) [00:09:37]Malloc new data [00:09:37]Processing tag 1011 (03F3) [00:09:37]Malloc new data [00:09:37]SetTLVBufToDocument err=0 [00:09:37]Processing tag 1006 (03EE) [00:09:37]Load OK [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1010 (03F2) [00:09:37]Malloc new data [00:09:37]Processing tag 1011 (03F3) [00:09:37]Malloc new data [00:09:37]SetTLVBufToDocument err=0 [00:09:37]Processing tag 1007 (03EF) [00:09:37]Load OK [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1014 (03F6) [00:09:37]Malloc new data [00:09:37]Processing tag 1015 (03F7) [00:09:37]Malloc new data [00:09:37]SetTLVBufToDocument err=0 [00:09:37]Processing tag 1007 (03EF) [00:09:37]Load OK [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1014 (03F6) [00:09:37]Malloc new data [00:09:37]Processing tag 1015 (03F7) [00:09:37]Malloc new data [00:09:37]SetTLVBufToDocument err=0 [00:09:37]Processing tag 1007 (03EF) [00:09:37]Load OK [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1014 (03F6) [00:09:37]Malloc new data [00:09:37]Processing tag 1015 (03F7) [00:09:37]Malloc new data [00:09:37]SetTLVBufToDocument err=0 [00:09:37]Processing tag 1007 (03EF) [00:09:37]Load OK [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1014 (03F6) [00:09:37]Malloc new data [00:09:37]Processing tag 1015 (03F7) [00:09:37]Malloc new data [00:09:37]SetTLVBufToDocument err=0 [00:09:37]Processing tag 1007 (03EF) [00:09:37]Load OK [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1014 (03F6) [00:09:37]Malloc new data [00:09:37]Processing tag 1015 (03F7) [00:09:37]Malloc new data [00:09:37]SetTLVBufToDocument err=0 [00:09:37]Processing tag 1007 (03EF) [00:09:37]Load OK [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1014 (03F6) [00:09:37]Malloc new data [00:09:37]Processing tag 1015 (03F7) [00:09:37]Malloc new data [00:09:37]SetTLVBufToDocument err=0 [00:09:37]Processing tag 1007 (03EF) [00:09:37]Load OK [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1014 (03F6) [00:09:37]Malloc new data [00:09:37]Processing tag 1015 (03F7) [00:09:37]Malloc new data [00:09:37]SetTLVBufToDocument err=0 [00:09:37]SetTLVBufToDocument err=0 [00:09:37]SetTLVBufToDocument err=0 [00:09:37]Processing tag 1131 (046B) [00:09:37]Load OK [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1135 (046F) [00:09:37]Malloc new data [00:09:37]Processing tag 1201 (04B1) [00:09:37]Malloc new data [00:09:37]Processing tag 1136 (0470) [00:09:37]Malloc new data [00:09:37]Processing tag 1138 (0472) [00:09:37]Malloc new data [00:09:37]Processing tag 1024 (0400) [00:09:37]Load OK [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1006 (03EE) [00:09:37]Load OK [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1010 (03F2) [00:09:37]Malloc new data [00:09:37]Processing tag 1011 (03F3) [00:09:37]Malloc new data [00:09:37]SetTLVBufToDocument err=0 [00:09:37]Processing tag 1006 (03EE) [00:09:37]Load OK [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1010 (03F2) [00:09:37]Malloc new data [00:09:37]Processing tag 1011 (03F3) [00:09:37]Malloc new data [00:09:37]SetTLVBufToDocument err=0 [00:09:37]Processing tag 1007 (03EF) [00:09:37]Load OK [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1014 (03F6) [00:09:37]Malloc new data [00:09:37]Processing tag 1015 (03F7) [00:09:37]Malloc new data [00:09:37]SetTLVBufToDocument err=0 [00:09:37]Processing tag 1007 (03EF) [00:09:37]Load OK [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1014 (03F6) [00:09:37]Malloc new data [00:09:37]Processing tag 1015 (03F7) [00:09:37]Malloc new data [00:09:37]SetTLVBufToDocument err=0 [00:09:37]Processing tag 1007 (03EF) [00:09:37]Load OK [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1014 (03F6) [00:09:37]Malloc new data [00:09:37]Processing tag 1015 (03F7) [00:09:37]Malloc new data [00:09:37]SetTLVBufToDocument err=0 [00:09:37]Processing tag 1007 (03EF) [00:09:37]Load OK [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1014 (03F6) [00:09:37]Malloc new data [00:09:37]Processing tag 1015 (03F7) [00:09:37]Malloc new data [00:09:37]SetTLVBufToDocument err=0 [00:09:37]Processing tag 1007 (03EF) [00:09:37]Load OK [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1014 (03F6) [00:09:37]Malloc new data [00:09:37]Processing tag 1015 (03F7) [00:09:37]Malloc new data [00:09:37]SetTLVBufToDocument err=0 [00:09:37]Processing tag 1007 (03EF) [00:09:37]Load OK [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1014 (03F6) [00:09:37]Malloc new data [00:09:37]Processing tag 1015 (03F7) [00:09:37]Malloc new data [00:09:37]SetTLVBufToDocument err=0 [00:09:37]Processing tag 1007 (03EF) [00:09:37]Load OK [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1014 (03F6) [00:09:37]Malloc new data [00:09:37]Processing tag 1015 (03F7) [00:09:37]Malloc new data [00:09:37]SetTLVBufToDocument err=0 [00:09:37]SetTLVBufToDocument err=0 [00:09:37]SetTLVBufToDocument err=0 [00:09:37]Processing tag 1132 (046C) [00:09:37]Load OK [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1135 (046F) [00:09:37]Malloc new data [00:09:37]Processing tag 1201 (04B1) [00:09:37]Malloc new data [00:09:37]Processing tag 1136 (0470) [00:09:37]Malloc new data [00:09:37]Processing tag 1138 (0472) [00:09:37]Malloc new data [00:09:37]Processing tag 1024 (0400) [00:09:37]Load OK [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1006 (03EE) [00:09:37]Load OK [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1010 (03F2) [00:09:37]Malloc new data [00:09:37]Processing tag 1011 (03F3) [00:09:37]Malloc new data [00:09:37]SetTLVBufToDocument err=0 [00:09:37]Processing tag 1006 (03EE) [00:09:37]Load OK [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1010 (03F2) [00:09:37]Malloc new data [00:09:37]Processing tag 1011 (03F3) [00:09:37]Malloc new data [00:09:37]SetTLVBufToDocument err=0 [00:09:37]Processing tag 1007 (03EF) [00:09:37]Load OK [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1014 (03F6) [00:09:37]Malloc new data [00:09:37]Processing tag 1015 (03F7) [00:09:37]Malloc new data [00:09:37]SetTLVBufToDocument err=0 [00:09:37]Processing tag 1007 (03EF) [00:09:37]Load OK [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1014 (03F6) [00:09:37]Malloc new data [00:09:37]Processing tag 1015 (03F7) [00:09:37]Malloc new data [00:09:37]SetTLVBufToDocument err=0 [00:09:37]Processing tag 1007 (03EF) [00:09:37]Load OK [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1014 (03F6) [00:09:37]Malloc new data [00:09:37]Processing tag 1015 (03F7) [00:09:37]Malloc new data [00:09:37]SetTLVBufToDocument err=0 [00:09:37]Processing tag 1007 (03EF) [00:09:37]Load OK [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1014 (03F6) [00:09:37]Malloc new data [00:09:37]Processing tag 1015 (03F7) [00:09:37]Malloc new data [00:09:37]SetTLVBufToDocument err=0 [00:09:37]Processing tag 1007 (03EF) [00:09:37]Load OK [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1014 (03F6) [00:09:37]Malloc new data [00:09:37]Processing tag 1015 (03F7) [00:09:37]Malloc new data [00:09:37]SetTLVBufToDocument err=0 [00:09:37]Processing tag 1007 (03EF) [00:09:37]Load OK [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1014 (03F6) [00:09:37]Malloc new data [00:09:37]Processing tag 1015 (03F7) [00:09:37]Malloc new data [00:09:37]SetTLVBufToDocument err=0 [00:09:37]Processing tag 1007 (03EF) [00:09:37]Load OK [00:09:37]SetTLVBufToDocument [00:09:37]Processing tag 1014 (03F6) [00:09:37]Malloc new data [00:09:37]Processing tag 1015 (03F7) [00:09:37]Malloc new data [00:09:37]SetTLVBufToDocument err=0 [00:09:37]SetTLVBufToDocument err=0 [00:09:37]SetTLVBufToDocument err=0 [00:09:37]Processing tag 1133 (046D) [00:09:37]Malloc new data [00:09:37]SetTLVBufToDocument err=0 [00:09:37]Processing tag 1077 (0435) [00:09:37]Malloc new data [00:09:37]SetTLVBufToDocument err=0 [00:09:37]Malloc new data [00:09:37]SAM_PROTO_GetFMData [00:09:37]wFMCommunicate request_size=4 [00:09:37]MH_SAM_APDU [00:09:37]CAPDU: 80 13 03 00 [00:09:37]Write to MH i2c: E2 08 00 79 1B 80 13 03 00 00 00 00 00 13 [00:09:37]Write i2c OK [00:09:37]MH_I2C_Read... [00:09:38]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:09:38]Read from MH i2c: E2 [00:09:38]MH_I2C_Read... [00:09:38]Read from MH i2c: E2 FD 00 [00:09:38]MH_I2C_Read... [00:09:38]Read from MH i2c: E2 FD 00 79 1B 00 C8 04 85 04 C4 04 6E 04 04 00 CB 29 01 00 69 04 A3 00 6F 04 04 00 D8 27 01 00 B1 04 05 00 07 55 D0 BB 02 70 04 05 00 60 C9 B6 77 02 72 04 04 00 A7 8B 19 44 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 A9 B4 53 4A 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 87 93 31 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F3 01 00 00 B1 04 05 00 F4 34 DE 15 01 70 04 05 00 F4 34 DE 15 01 72 04 00 00 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 6D 18 82 1D EF 90 00 97 [00:09:38]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 CB 29 01 00 69 04 A3 00 6F 04 04 00 D8 27 01 00 B1 04 05 00 07 55 D0 BB 02 70 04 05 00 60 C9 B6 77 02 72 04 04 00 A7 8B 19 44 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 A9 B4 53 4A 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 87 93 31 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F3 01 00 00 B1 04 05 00 F4 34 DE 15 01 70 04 05 00 F4 34 DE 15 01 72 04 00 00 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 6D 18 82 1D EF 90 00 [00:09:38]wFMCommunicate OK [00:09:38]wFMCommunicate request_size=4 [00:09:38]MH_SAM_APDU [00:09:38]CAPDU: 80 17 00 00 [00:09:38]Write to MH i2c: E2 08 00 7A 1B 80 17 00 00 00 00 00 00 15 [00:09:38]Write i2c OK [00:09:38]MH_I2C_Read... [00:09:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:38]Read from MH i2c: E2 [00:09:38]MH_I2C_Read... [00:09:38]Read from MH i2c: E2 FD 00 [00:09:38]MH_I2C_Read... [00:09:38]Read from MH i2c: E2 FD 00 7A 1B 00 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 ED 81 75 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 OFD Sender: No OFD packet to send [00:09:39]EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 09 [00:09:39]RAPDU: 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 ED 81 75 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 90 00 [00:09:39]wFMCommunicate OK [00:09:39]wFMCommunicate request_size=4 [00:09:39]MH_SAM_APDU [00:09:39]CAPDU: 80 17 00 00 [00:09:39]Write to MH i2c: E2 08 00 7B 1B 80 17 00 00 00 00 00 00 16 [00:09:39]Write i2c OK [00:09:39]MH_I2C_Read... [00:09:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:39]Read from MH i2c: E2 [00:09:39]MH_I2C_Read... [00:09:39]Read from MH i2c: E2 FD 00 [00:09:39]MH_I2C_Read... [00:09:39]Read from MH i2c: E2 FD 00 7B 1B 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 EE [00:09:39]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:09:40]wFMCommunicate OK [00:09:40]wFMCommunicate request_size=4 [00:09:40]MH_SAM_APDU [00:09:40]CAPDU: 80 17 00 00 [00:09:40]Write to MH i2c: E2 08 00 7C 1B 80 17 00 00 00 00 00 00 17 [00:09:40]Write i2c OK [00:09:40]MH_I2C_Read... [00:09:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:40]Read from MH i2c: E2 [00:09:40]MH_I2C_Read... [00:09:40]Read from MH i2c: E2 FD 00 [00:09:40]MH_I2C_Read... [00:09:40]Read from MH i2c: E2 FD 00 7C 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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 8F [00:09:40]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [00:09:40]wFMCommunicate OK [00:09:40]wFMCommunicate request_size=4 [00:09:40]MH_SAM_APDU [00:09:40]CAPDU: 80 17 00 00 [00:09:40]Write to MH i2c: E2 08 00 7D 1B 80 17 00 00 00 00 00 00 18 [00:09:40]Write i2c OK [00:09:40]MH_I2C_Read... [00:09:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:09:40]Read from MH i2c: E2 [00:09:41]MH_I2C_Read... [00:09:41]Read from MH i2c: E2 E5 00 [00:09:41]MH_I2C_Read... [00:09:41]Read from MH i2c: E2 E5 00 7D 1B 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 FC [00:09:41]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:09:41]wFMCommunicate OK [00:09:41]SAM_PROTO_GetFMData done [00:09:41]Malloc new data [00:09:41]Malloc new data [00:09:41]Malloc new data [00:09:41]Malloc new data [00:09:41]KKMLoadAndSignCloseShiftData err=0 [00:09:41]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Лымарева В. 22.04.2024 00:09 Смена: 372 РНМ: 0000000000091573 ЗНМ: 0300000141 СНО: Общий режим Чеков за смену: 235 ФД за смену: 237 Всего чеков: 235 ИТОГИ ПРИХОД Чеков: 232 Общий итог: 348791.60 Итого наличными: 290557.00 Итого безнал.: 58234.60 НДС 0% : 0.00 НДС 12% : 37045.39 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 3087.08 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 3 Общий итог: 2176.00 Итого наличными: 2176.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 231.18 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 19.27 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 288381.00 НС Приход: 117409272.39 НС Возвр.Прихода: 46618513.80 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 76980 ФМ: 0000000000874652 ФПД: 60151563503588 [00:09:41]StoreToDocumentArchive [00:09:41]shift 372 fd 76980 [00:09:41]save to /storage/0372/doc_00076980 [00:09:41]save last doc name /storage/0372/doc_00076980 to /storage/kkm_last_doc_name [00:09:41]save OK [00:09:41]Clear old archive folders... [00:09:41]Remove dir /storage/0266 [00:09:41]opendir ok [00:09:41]file . [00:09:41]file .. [00:09:41]file doc_1713744538 [00:09:41]remove file /storage/0266/doc_1713744538 [00:09:41]remove dir /storage/0266 [00:09:41]NVStorageSaveData kkm_registers [00:09:41]File name is /storage/kkm_registers [00:09:41]Write 24 bytes [00:09:41]NVStorageSaveData done [00:09:41]NVStorageSaveData kkm_registers [00:09:41]File name is /storage/kkm_registers [00:09:41]Write 24 bytes [00:09:41]NVStorageSaveData done [00:09:41]ProcessDocumentItem done err = 0, tmpTLVsize=1388 [00:09:41]tlvbuf is 00E3AF30 [00:09:41]SAM_PROTO_ClearQueue [00:09:41]wFMCommunicate request_size=4 [00:09:41]MH_SAM_APDU [00:09:41]CAPDU: 80 09 00 00 [00:09:41]Write to MH i2c: E2 08 00 7E 1B 80 09 00 00 00 00 00 00 0B [00:09:41]Write i2c OK [00:09:41]MH_I2C_Read... [00:09:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:09:41]Read from MH i2c: E2 [00:09:41]MH_I2C_Read... [00:09:41]Read from MH i2c: E2 03 00 [00:09:41]MH_I2C_Read... [00:09:41]Read from MH i2c: E2 03 00 7E 1B 00 90 00 0D [00:09:41]RAPDU: 90 00 [00:09:41]wFMCommunicate OK [00:09:41]SAM_PROTO_ClearQueue done [00:09:41]KKMCreateOFDPacket [00:09:41]OFDProtocolAddRootSTLVToBuf [00:09:41]FM_MakeSignedData [00:09:41]FM_MakeSignedData [00:09:41]SAM_PROTO_SignData [00:09:41]wFMCommunicate request_size=4 [00:09:41]MH_SAM_APDU [00:09:41]CAPDU: 80 0D 01 02 [00:09:41]Write to MH i2c: E2 08 00 7F 1B 80 0D 01 02 00 00 00 00 13 [00:09:41]Write i2c OK [00:09:41]MH_I2C_Read... [00:09:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:09:41]Read from MH i2c: E2 [00:09:41]MH_I2C_Read... [00:09:41]Read from MH i2c: E2 03 00 [00:09:41]MH_I2C_Read... [00:09:41]Read from MH i2c: E2 03 00 7F 1B 00 90 00 0E [00:09:41]RAPDU: 90 00 [00:09:41]wFMCommunicate OK [00:09:41]wFMCommunicate request_size=255 [00:09:41]MH_SAM_APDU [00:09:41]CAPDU: 80 0D 02 02 FA 05 00 6C 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 15 00 D0 9B D1 8B D0 BC D0 B0 D1 80 D0 B5 D0 B2 D0 B0 20 D0 92 2E 20 F4 03 04 00 BE AA 25 66 0E 04 04 00 74 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 5E 04 04 00 EB 00 00 00 57 04 04 00 ED 00 00 00 AA 04 DE 04 6E 04 04 00 EB 00 00 00 69 04 A5 00 6F 04 04 00 E8 00 00 00 B1 04 04 00 B8 36 14 02 70 04 04 00 D4 5A BB 01 72 04 03 00 E4 DB 58 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 DB 86 38 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 [00:09:41]Write to MH i2c: E2 02 01 80 1B 80 0D 02 02 FA 00 05 00 6C 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 15 00 D0 9B D1 8B D0 BC D0 B0 D1 80 D0 B5 D0 B2 D0 B0 20 D0 92 2E 20 F4 03 04 00 BE AA 25 66 0E 04 04 00 74 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 5E 04 04 00 EB 00 00 00 57 04 04 00 ED 00 00 00 AA 04 DE 04 6E 04 04 00 EB 00 00 00 69 04 A5 00 6F 04 04 00 E8 00 00 00 B1 04 04 00 B8 36 14 02 70 04 04 00 D4 5A BB 01 72 04 03 00 E4 DB 58 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 DB 86 38 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 00 00 C1 [00:09:42]Write i2c OK [00:09:42]MH_I2C_Read... [00:09:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:42]Read from MH i2c: E2 [00:09:42]MH_I2C_Read... [00:09:42]Read from MH i2c: E2 03 00 [00:09:42]MH_I2C_Read... [00:09:42]Read from MH i2c: E2 03 00 80 1B 00 90 00 0F [00:09:42]RAPDU: 90 00 [00:09:42]wFMCommunicate OK [00:09:42]wFMCommunicate request_size=255 [00:09:42]MH_SAM_APDU [00:09:42]CAPDU: 80 0D 02 02 FA 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 E4 B5 04 6A 04 9F 00 6F 04 04 00 03 00 00 00 B1 04 03 00 00 52 03 70 04 03 00 00 52 03 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 4E 5A 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 87 07 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:09:42]Write to MH i2c: E2 02 01 81 1B 80 0D 02 02 FA 00 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 E4 B5 04 6A 04 9F 00 6F 04 04 00 03 00 00 00 B1 04 03 00 00 52 03 70 04 03 00 00 52 03 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 4E 5A 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 87 07 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 00 1A [00:09:42]Write i2c OK [00:09:42]MH_I2C_Read... [00:09:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:43]Read from MH i2c: E2 [00:09:43]MH_I2C_Read... [00:09:43]Read from MH i2c: E2 03 00 [00:09:43]MH_I2C_Read... [00:09:43]Read from MH i2c: E2 03 00 81 1B 00 90 00 10 [00:09:43]RAPDU: 90 00 [00:09:43]wFMCommunicate OK [00:09:43]wFMCommunicate request_size=255 [00:09:43]MH_SAM_APDU [00:09:43]CAPDU: 80 0D 02 02 FA 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 [00:09:43]Write to MH i2c: E2 02 01 82 1B 80 0D 02 02 FA 00 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 00 00 D1 [00:09:43]Write i2c OK [00:09:43]MH_I2C_Read... [00:09:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:43]Read from MH i2c: E2 [00:09:43]MH_I2C_Read... [00:09:43]Read from MH i2c: E2 03 00 [00:09:43]MH_I2C_Read... [00:09:43]Read from MH i2c: E2 03 00 82 1B 00 90 00 11 [00:09:43]RAPDU: 90 00 [00:09:43]wFMCommunicate OK [00:09:43]wFMCommunicate request_size=255 [00:09:43]MH_SAM_APDU [00:09:43]CAPDU: 80 0D 02 02 FA 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 [00:09:44]Write to MH i2c: E2 02 01 83 1B 80 0D 02 02 FA 00 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 OFD Sender: No OFD packet to send [00:09:44]00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 00 00 DB [00:09:44]Write i2c OK [00:09:44]MH_I2C_Read... [00:09:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:44]Read from MH i2c: E2 [00:09:44]MH_I2C_Read... [00:09:44]Read from MH i2c: E2 03 00 [00:09:44]MH_I2C_Read... [00:09:44]Read from MH i2c: E2 03 00 83 1B 00 90 00 12 [00:09:44]RAPDU: 90 00 [00:09:44]wFMCommunicate OK [00:09:44]wFMCommunicate request_size=255 [00:09:44]MH_SAM_APDU [00:09:44]CAPDU: 80 0D 02 02 FA 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:09:44]Write to MH i2c: E2 02 01 84 1B 80 0D 02 02 FA 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 00 00 BA [00:09:45]Write i2c OK [00:09:45]MH_I2C_Read... [00:09:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:45]Read from MH i2c: E2 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: E2 03 00 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: E2 03 00 84 1B 00 90 00 13 [00:09:45]RAPDU: 90 00 [00:09:45]wFMCommunicate OK [00:09:45]wFMCommunicate request_size=147 [00:09:45]MH_SAM_APDU [00:09:45]CAPDU: 80 0D 02 02 8E EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B4 2C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 35 04 06 00 36 B5 20 93 47 E4 [00:09:45]Write to MH i2c: E2 96 00 85 1B 80 0D 02 02 8E 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B4 2C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 35 04 06 00 36 B5 20 93 47 E4 00 00 01 [00:09:45]Write i2c OK [00:09:45]MH_I2C_Read... [00:09:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:45]Read from MH i2c: E2 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: E2 03 00 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: E2 03 00 85 1B 00 90 00 14 [00:09:45]RAPDU: 90 00 [00:09:45]wFMCommunicate OK [00:09:45]wFMCommunicate request_size=4 [00:09:45]MH_SAM_APDU [00:09:45]CAPDU: 80 0D 03 02 [00:09:45]Write to MH i2c: E2 08 00 86 1B 80 0D 03 02 00 00 00 00 1C [00:09:45]Write i2c OK [00:09:45]MH_I2C_Read... [00:09:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:09:45]Read from MH i2c: E2 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: E2 0B 00 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: E2 0B 00 86 1B 00 86 58 A0 A1 DA FB 86 B1 90 00 48 [00:09:46]RAPDU: 86 58 A0 A1 DA FB 86 B1 90 00 [00:09:46]wFMCommunicate OK [00:09:46]SAM_PROTO_SignData done [00:09:46]FM_MakeSignedData done [00:09:46]CreateOFDProtocolMessage [00:09:46]wFMCommunicate request_size=4 [00:09:46]MH_SAM_APDU [00:09:46]CAPDU: 80 11 00 00 [00:09:46]Write to MH i2c: E2 08 00 87 1B 80 11 00 00 00 00 00 00 1C [00:09:46]Write i2c OK [00:09:46]MH_I2C_Read... [00:09:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:09:46]Read from MH i2c: E2 [00:09:46]MH_I2C_Read... [00:09:46]Read from MH i2c: E2 17 00 [00:09:46]MH_I2C_Read... [00:09:46]Read from MH i2c: E2 17 00 87 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 6F [00:09:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [00:09:46]wFMCommunicate OK [00:09:46]CreateOFDProtocolMessage done [00:09:46]OFDSenderStorePacket 76980 [00:09:46]StoreOFDPacket docnum=76980 [00:09:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 80 05 00 00 B7 7D 78 05 82 43 5A 05 01 00 05 00 6C 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 15 00 D0 9B D1 8B D0 BC D0 B0 D1 80 D0 B5 D0 B2 D0 B0 20 D0 92 2E 20 F4 03 04 00 BE AA 25 66 0E 04 04 00 74 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 5E 04 04 00 EB 00 00 00 57 04 04 00 ED 00 00 00 AA 04 DE 04 6E 04 04 00 EB 00 00 00 69 04 A5 00 6F 04 04 00 E8 00 00 00 B1 04 04 00 B8 36 14 02 70 04 04 00 D4 5A BB 01 72 04 03 00 E4 DB 58 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 DB 86 38 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 E4 B5 04 6A 04 9F 00 6F 04 04 00 03 00 00 00 B1 04 03 00 00 52 03 70 04 03 00 00 52 03 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 4E 5A 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 87 07 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 B4 2C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 35 04 06 00 36 B5 20 93 47 E4 86 58 A0 A1 DA FB 86 B1 [00:09:46]CheckFolder [00:09:46]dirname=/storage/ofd_packets [00:09:46]CheckFolder done [00:09:46]ProducePacketName [00:09:46]name=ofd_packets/00076980 [00:09:46]NVStorageSaveData ofd_packets/00076980 [00:09:46]File name is /storage/ofd_packets/00076980 [00:09:46]Write 1438 bytes [00:09:46]NVStorageSaveData done [00:09:46]OFDSenderStorePacket done [00:09:46]KKMCreateOFDPacket done [00:09:46]NVStorageSaveData kkm_last_timestamp [00:09:46]File name is /storage/kkm_last_timestamp [00:09:46]Write 4 bytes [00:09:46]NVStorageSaveData done [00:09:46]ExternCall_PrintAddStr [00:09:46]wPrintStart [00:09:46]Write to MH i2c: 01 00 00 88 1B A3 [00:09:46]Write i2c OK [00:09:46]MH_I2C_Read... [00:09:46]Read from MH i2c: 01 [00:09:46]MH_I2C_Read... [00:09:46]Read from MH i2c: 01 07 00 [00:09:46]MH_I2C_Read... [00:09:46]Read from MH i2c: 01 07 00 88 1B 00 00 00 00 00 FF 0F B8 [00:09:46]RasterBufferAndPrint [00:09:46]line Отчет о закрытии смены [00:09:46]line ФФД: 1.0 [00:09:46]line ИНН: 02508201610067 [00:09:46]line Кассир: Лымарева В. [00:09:46]line 22.04.2024 00:09 [00:09:46]line Смена: 372 [00:09:46]line РНМ: 0000000000091573 [00:09:46]line ЗНМ: 0300000141 [00:09:46]line СНО: Общий режим [00:09:46]line Чеков за смену: 235 [00:09:46]line ФД за смену: 237 [00:09:46]line Всего чеков: 235 [00:09:46]line ИТОГИ ПРИХОД [00:09:46]line Чеков: 232 [00:09:46]line Общий итог: 348791.60 [00:09:46]line Итого наличными: 290557.00 [00:09:46]line Итого безнал.: 58234.60 [00:09:46]line НДС 0% : 0.00 [00:09:46]line НДС 12% : 37045.39 [00:09:46]line НСП 0% : 0.00 [00:09:46]line НСП 1,50% : 0.00 [00:09:46]line НСП 0,50% : 0.00 [00:09:46]line НСП 5% : 0.00 [00:09:46]line НСП 3% : 0.00 [00:09:46]line НСП 2% : 0.00 [00:09:46]line НСП 1% : 3087.08 [00:09:46]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:09:46]line Чеков: 3 [00:09:46]line Общий итог: 2176.00 [00:09:46]line Итого наличными: 2176.00 [00:09:46]line Итого безнал.: 0.00 [00:09:46]line НДС 0% : 0.00 [00:09:46]line НДС 12% : 231.18 [00:09:46]OFD Sender: Processing packet 76980 [packets to send 129, broken 128] [00:09:46]ProducePacketName [00:09:46]name=ofd_packets/00076980 [00:09:46]OFD Sender: To server: pG, [00:09:46]CommunicateWithHost lk.salyk.kg:30040 [00:09:46]ConnectInit lk.salyk.kg [00:09:46]line НСП 0% : 0.00 [00:09:46]line НСП 1,50% : 0.00 [00:09:46]line НСП 0,50% : 0.00 [00:09:46]line НСП 5% : 0.00 [00:09:46]line НСП 3% : 0.00 [00:09:46]line НСП 2% : 0.00 [00:09:46]line НСП 1% : 19.27 [00:09:46]line ИТОГИ РАСХОД [00:09:46]line Чеков: 0 [00:09:46]line Общий итог: 0.00 [00:09:46]line Итого наличными: 0.00 [00:09:46]line Итого безнал.: 0.00 [00:09:46]line НДС 0% : 0.00 [00:09:46]line НДС 12% : 0.00 [00:09:46]line НСП 0% : 0.00 [00:09:46]line НСП 1,50% : 0.00 [00:09:46]line НСП 0,50% : 0.00 [00:09:46]line НСП 5% : 0.00 [00:09:46]line НСП 3% : 0.00 [00:09:46]line НСП 2% : 0.00 [00:09:46]line НСП 1% : 0.00 [00:09:46]line ИТОГИ ВОЗВРАТ РАСХОДА [00:09:46]line Чеков: 0 [00:09:46]line Общий итог: 0.00 [00:09:46]line Итого наличными: 0.00 [00:09:46]line Итого безнал.: 0.00 [00:09:46]line НДС 0% : 0.00 [00:09:46]line НДС 12% : 0.00 [00:09:46]line НСП 0% : 0.00 [00:09:46]line НСП 1,50% : 0.00 [00:09:46]line НСП 0,50% : 0.00 [00:09:46]line НСП 5% : 0.00 [00:09:46]line НСП 3% : 0.00 [00:09:46]line НСП 2% : 0.00 [00:09:46]line НСП 1% : 0.00 [00:09:46]line Сумма внесений: 0.00 [00:09:46]line Сумма выплат: 0.00 [00:09:46]line Нал. в кассе: 288381.00 [00:09:46]line НС Приход: 117409272.39 [00:09:46]line НС Возвр.Прихода: 46618513.80 [00:09:46]line НС Расход: 0.00 [00:09:46]line НС Возвр.Расхода: 0.00 [00:09:46]line ФД: 76980 [00:09:46]line ФМ: 0000000000874652 [00:09:46]line ФПД: 60151563503588 [00:09:46]written 0, free lines is 4095 [00:09:46]Connected sock=10 [00:09:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 80 05 00 00 B7 7D 78 05 82 43 5A 05 01 00 05 00 6C 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 15 00 D0 9B D1 8B D0 BC D0 B0 D1 80 D0 B5 D0 B2 D0 B0 20 D0 92 2E 20 F4 03 04 00 BE AA 25 66 0E 04 04 00 74 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 5E 04 04 00 EB 00 00 00 57 04 04 00 ED 00 00 00 AA 04 DE 04 6E 04 04 00 EB 00 00 00 69 04 A5 00 6F 04 04 00 E8 00 00 00 B1 04 04 00 B8 36 14 02 70 04 04 00 D4 5A BB 01 72 04 03 00 E4 DB 58 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 DB 86 38 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 E4 B5 04 6A 04 9F 00 6F 04 04 00 03 00 00 00 B1 04 03 00 00 52 03 70 04 03 00 00 52 03 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 4E 5A 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 87 07 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 Write to MH i2c: 03 01 01 00 00 00 01 D9 F3 1B 03 F4 01 [00:09:47]00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 Write i2c OK [00:09:47]EF 03 MH_I2C_Read... [00:09:47]0A 00 F6 03 01 00 06 Read from MH i2c: F7 01 03 [00:09:47]01 MH_I2C_Read... [00:09:47]00 00 EF Read from MH i2c: 03 01 0A 07 00 00 F6 [00:09:47]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 MH_I2C_Read... [00:09:47]04 Read from MH i2c: 4C 01 02 07 78 00 04 D9 1B 00 00 00 04 00 00 00 00 91 00 0A 00 96 00 79 04 8D 00 6F [00:09:47]04 RasterBufferAndPrint [00:09:47]04 line [00:09:47]line [00:09:47]line [00:09:47]line [00:09:47]line [00:09:47]00 00 00 00 00 B1 04 00 00 70 written 0, free lines is 3170 [00:09:47]04 00 00 72 04 00 00 00 04 75 00 EE 03 09 MH_Cut [00:09:47]00 Write to MH i2c: F2 D1 03 01 01 00 00 E0 00 1B F3 01 03 CD [00:09:47]00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 Write i2c OK [00:09:47]00 MH_I2C_Read... [00:09:47]02 Read from MH i2c: F7 D1 03 [00:09:47]00 MH_I2C_Read... [00:09:47]00 Read from MH i2c: EF D1 03 01 09 00 00 [00:09:47]F6 03 01 00 03 F7 03 00 00 EF 03 09 MH_I2C_Read... [00:09:48]00 Read from MH i2c: F6 D1 03 01 01 00 00 E0 04 1B F7 00 03 CC 00 [00:09:48]00 Write to MH i2c: EF 03 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 01 03 00 09 00 00 E1 F2 1B 03 FC [00:09:48]01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 Write i2c OK [00:09:48]01 MH_I2C_Read... [00:09:48]00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B4 2C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 35 04 06 00 36 B5 20 93 47 E4 86 58 A0 A1 DA FB 86 B1 [00:09:48]*** Cut start [00:09:48]*** Partial cut [00:09:48]*** CUTSNS_PIN = 1 [00:09:48]*** CUTSNS_PIN = 0 [00:09:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 A2 80 47 00 CF 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 *** Brake cut motor [00:09:48]32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B4 2C 01 00 F4 03 04 00 50 52 25 66 B6 04 01 00 00 31 60 00 FB EE D3 18 6A [00:09:49]CommunicateWithHost err = 0 [00:09:49]CheckOFDResponse [00:09:49]1017 (14) - 77093643461234 [00:09:49]1041 (16) - 0000000000874652 [00:09:49]1040 (4) - 76980 [00:09:49]1012 (4) - 21.04.2024 17:52 [00:09:49]1206 (1) - 0 [00:09:49]OFD Sender: Remove packet 76980 [00:09:49]ProducePacketName [00:09:49]name=ofd_packets/00076980 [00:09:49]NVStorageDeleteData [00:09:49]Read from MH i2c: *** Stop cut motor [00:09:49]01 *** Cut end [00:09:49] [00:09:49]MH_I2C_Read... [00:09:49]Read from MH i2c: 01 07 00 [00:09:49]MH_I2C_Read... [00:09:49]Read from MH i2c: 01 07 00 E1 1B 00 00 00 00 00 FF 0F 11 [00:09:49]process_action close_shift done [00:09:49]requested_data is exist [00:09:49]produce_requested_data [00:09:49]requested_item fd.num is exist - process it [00:09:49]SAM_PROTO_GetFieldsCounters [00:09:49]wFMCommunicate request_size=4 [00:09:49]MH_SAM_APDU [00:09:49]CAPDU: 80 13 00 00 [00:09:49]Write to MH i2c: E2 08 00 E2 1B 80 13 00 00 00 00 00 00 79 [00:09:49]Write i2c OK [00:09:49]MH_I2C_Read... [00:09:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:09:49]Read from MH i2c: E2 [00:09:49]MH_I2C_Read... [00:09:49]Read from MH i2c: E2 62 00 [00:09:49]MH_I2C_Read... [00:09:49]Read from MH i2c: E2 62 00 E2 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B4 2C 01 00 0E 04 04 00 74 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [00:09: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B4 2C 01 00 0E 04 04 00 74 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:09:49]wFMCommunicate OK [00:09:49]SAM_PROTO_GetFieldsCounters done [00:09:49]requested_item shift.num is exist - process it [00:09:49]OFD Sender: No OFD packet to send [00:09:49]requested_item shift.opened is exist - process it [00:09:49]req_shift_opened [00:09:49]FM_GetShiftState [00:09:49]SAM_PROTO_GetShiftState [00:09:49]wFMCommunicate request_size=4 [00:09:49]MH_SAM_APDU [00:09:49]CAPDU: 80 13 01 00 [00:09:49]Write to MH i2c: E2 08 00 E3 1B 80 13 01 00 00 00 00 00 7B [00:09:49]Write i2c OK [00:09:49]MH_I2C_Read... [00:09:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:49]Read from MH i2c: E2 [00:09:49]MH_I2C_Read... [00:09:49]Read from MH i2c: E2 0E 00 [00:09:49]MH_I2C_Read... [00:09:49]Read from MH i2c: E2 0E 00 E3 1B 00 09 00 00 00 00 00 00 00 00 00 00 90 00 86 [00:09:49]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:09:49]wFMCommunicate OK [00:09:49]SAM_PROTO_GetShiftState done [00:09:49]FM_GetShiftState done [00:09:49]req_shift_opened done [00:09:49]requested_item shift.open_date is exist - process it [00:09:49]req_shift_open_date [00:09:49]FM_GetShiftState [00:09:49]SAM_PROTO_GetShiftState [00:09:49]wFMCommunicate request_size=4 [00:09:49]MH_SAM_APDU [00:09:49]CAPDU: 80 13 01 00 [00:09:49]Write to MH i2c: E2 08 00 E4 1B 80 13 01 00 00 00 00 00 7C [00:09:49]Write i2c OK [00:09:49]MH_I2C_Read... [00:09:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:49]Read from MH i2c: E2 [00:09:49]MH_I2C_Read... [00:09:49]Read from MH i2c: E2 0E 00 [00:09:49]MH_I2C_Read... [00:09:49]Read from MH i2c: E2 0E 00 E4 1B 00 09 00 00 00 00 00 00 00 00 00 00 90 00 87 [00:09:49]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:09:49]wFMCommunicate OK [00:09:49]SAM_PROTO_GetShiftState done [00:09:49]FM_GetShiftState done [00:09:49]req_shift_open_date done [00:09:49]produce_requested_data done [00:09:49]produce_requested_data return {"fd.num":76980,"shift.num":372,"shift.opened":0,"shift.open_date":0} [00:09:49]process_action_free close_shift [00:09:49]json_value_free [00:09:49]json_value_free done [00:09:49]process_json_proto returns [00:09:49]Send response to host [00:09:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":76980,"shift.num":372,"shift.opened":0,"shift.open_date":0}}} [00:09:49]free response buf [00:09:49]execute_script done [00:09:49]execute_script returns [00:09:49]free content buf [00:09:49]Sock 8.Close socket [00:09:49]Sock 8.Thread stoped [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:59]OFD Sender: No OFD packet to send [00:11:04]OFD Sender: No OFD packet to send [00:11:09]OFD Sender: No OFD packet to send [00:11:14]OFD Sender: No OFD packet to send [00:11:19]OFD Sender: No OFD packet to send [00:11:24]OFD Sender: No OFD packet to send [00:11:29]OFD Sender: No OFD packet to send [00:11:34]OFD Sender: No OFD packet to send [00:11:39]OFD Sender: No OFD packet to send [00:11:44]OFD Sender: No OFD packet to send [00:11:49]OFD Sender: No OFD packet to send [00:11:54]OFD Sender: No OFD packet to send [00:11:59]OFD Sender: No OFD packet to send [00:12:04]OFD Sender: No OFD packet to send [00:12:09]OFD Sender: No OFD packet to send [00:12:14]OFD Sender: No OFD packet to send [00:12:19]OFD Sender: No OFD packet to send [00:12:24]OFD Sender: No OFD packet to send [00:12:29]OFD Sender: No OFD packet to send [00:12:34]OFD Sender: No OFD packet to send [00:12:39]OFD Sender: No OFD packet to send [00:12:44]OFD Sender: No OFD packet to send [00:12:49]OFD Sender: No OFD packet to send [00:12:54]OFD Sender: No OFD packet to send [00:12:59]OFD Sender: No OFD packet to send [00:13:04]OFD Sender: No OFD packet to send [00:13:09]OFD Sender: No OFD packet to send [00:13:14]OFD Sender: No OFD packet to send [00:13:19]OFD Sender: No OFD packet to send [00:13:24]OFD Sender: No OFD packet to send [00:13:29]OFD Sender: No OFD packet to send [00:13:34]OFD Sender: No OFD packet to send [00:13:39]OFD Sender: No OFD packet to send [00:13:44]OFD Sender: No OFD packet to send [00:13:50]OFD Sender: No OFD packet to send [00:13:55]OFD Sender: No OFD packet to send [00:14:00]OFD Sender: No OFD packet to send [00:14:05]OFD Sender: No OFD packet to send [00:14:10]OFD Sender: No OFD packet to send [00:14:15]OFD Sender: No OFD packet to send [00:14:20]OFD Sender: No OFD packet to send [00:14:25]OFD Sender: No OFD packet to send [00:14:30]OFD Sender: No OFD packet to send [00:14:35]OFD Sender: No OFD packet to send [00:14:40]OFD Sender: No OFD packet to send [00:14:45]OFD Sender: No OFD packet to send [00:14:50]OFD Sender: No OFD packet to send [00:14:55]OFD Sender: No OFD packet to send [00:15:00]OFD Sender: No OFD packet to send [00:15:05]OFD Sender: No OFD packet to send [00:15:10]OFD Sender: No OFD packet to send [00:15:15]OFD Sender: No OFD packet to send [00:15:20]OFD Sender: No OFD packet to send [00:15:25]OFD Sender: No OFD packet to send [00:15:30]OFD Sender: No OFD packet to send [00:15:35]OFD Sender: No OFD packet to send [00:15:40]OFD Sender: No OFD packet to send [00:15:45]OFD Sender: No OFD packet to send [00:15:50]OFD Sender: No OFD packet to send [00:15:55]OFD Sender: No OFD packet to send [00:16:00]OFD Sender: No OFD packet to send [00:16:05]OFD Sender: No OFD packet to send [00:16:10]OFD Sender: No OFD packet to send [00:16:15]OFD Sender: No OFD packet to send [00:16:20]OFD Sender: No OFD packet to send [00:16:25]OFD Sender: No OFD packet to send [00:16:30]OFD Sender: No OFD packet to send [00:16:35]OFD Sender: No OFD packet to send [00:16:40]OFD Sender: No OFD packet to send [00:16:45]OFD Sender: No OFD packet to send [00:16:50]OFD Sender: No OFD packet to send [00:16:55]OFD Sender: No OFD packet to send [00:17:00]OFD Sender: No OFD packet to send [00:17:05]OFD Sender: No OFD packet to send [00:17:10]OFD Sender: No OFD packet to send [00:17:15]OFD Sender: No OFD packet to send [00:17:20]OFD Sender: No OFD packet to send [00:17:25]OFD Sender: No OFD packet to send [00:17:30]OFD Sender: No OFD packet to send [00:17:35]OFD Sender: No OFD packet to send [00:17:40]OFD Sender: No OFD packet to send [00:17:45]OFD Sender: No OFD packet to send [00:17:50]OFD Sender: No OFD packet to send [00:17:55]OFD Sender: No OFD packet to send [00:18:00]OFD Sender: No OFD packet to send [00:18:05]OFD Sender: No OFD packet to send [00:18:10]OFD Sender: No OFD packet to send [00:18:15]OFD Sender: No OFD packet to send [00:18:20]OFD Sender: No OFD packet to send [00:18:25]OFD Sender: No OFD packet to send [00:18:30]OFD Sender: No OFD packet to send [00:18:35]OFD Sender: No OFD packet to send [00:18:38]accept exits with 9 [00:18:38]New connection [00:18:38]New thread 3066944868 created [00:18:38]Thread 3066801508 joined [00:18:38]Waiting for new connection... [00:18:38] Sock 9.Parse request [00:18:38]Sock 9.Check first char [00:18:38]Sock 9.First char is OK [00:18:38]request: POST /json_proto HTTP/1.0 [00:18:38]Method: POST [00:18:38]URL: /json_proto [00:18:38]Method is POST - this is cgi request [00:18:38]url: /json_proto [00:18:38]query_string will be loaded in cgi processing [00:18:38]execute_cgi json_proto POST (null) [00:18:38]execute_cgi path=json_proto method=POST [00:18:38]POST find Content-Length [00:18:38]Host: 172.17.62.5:8080 [00:18:38]Content-Length: 215 [00:18:38]Content-Type: application/json [00:18:38] [00:18:38]POST finish read [00:18:38]Found Content-Length = 215 [00:18:38]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:18:38]execute_script... [00:18:38]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:18:38]POST & json_proto [00:18:38]process_json_proto [00:18:38]json parsed OK: [00:18:38]protocol is kg_v1.0 [00:18:38]action value=get_value [00:18:38]process_action get_value [00:18:38]cmd_get_value [00:18:38]process_action get_value done [00:18:38]requested_data is exist [00:18:38]produce_requested_data [00:18:38]requested_item kkm.sn is exist - process it [00:18:38]requested_item kkm.ver is exist - process it [00:18:38]requested_item fm.sn is exist - process it [00:18:38]wFMCommunicate request_size=4 [00:18:38]MH_SAM_APDU [00:18:38]CAPDU: 80 11 00 00 [00:18:38]Write to MH i2c: E2 08 00 E5 1B 80 11 00 00 00 00 00 00 7A [00:18:38]Write i2c OK [00:18:38]MH_I2C_Read... [00:18:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:18:38]Read from MH i2c: E2 [00:18:38]MH_I2C_Read... [00:18:38]Read from MH i2c: E2 17 00 [00:18:38]MH_I2C_Read... [00:18:38]Read from MH i2c: E2 17 00 E5 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 CD [00:18:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [00:18:38]wFMCommunicate OK [00:18:38]requested_item fd.num is exist - process it [00:18:38]SAM_PROTO_GetFieldsCounters [00:18:38]wFMCommunicate request_size=4 [00:18:38]MH_SAM_APDU [00:18:38]CAPDU: 80 13 00 00 [00:18:38]Write to MH i2c: E2 08 00 E6 1B 80 13 00 00 00 00 00 00 7D [00:18:38]Write i2c OK [00:18:38]MH_I2C_Read... [00:18:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:18:39]Read from MH i2c: E2 [00:18:39]MH_I2C_Read... [00:18:39]Read from MH i2c: E2 62 00 [00:18:39]MH_I2C_Read... [00:18:39]Read from MH i2c: E2 62 00 E6 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B4 2C 01 00 0E 04 04 00 74 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [00:18:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B4 2C 01 00 0E 04 04 00 74 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:18:39]wFMCommunicate OK [00:18:39]SAM_PROTO_GetFieldsCounters done [00:18:39]requested_item shift.num is exist - process it [00:18:39]requested_item shift.opened is exist - process it [00:18:39]req_shift_opened [00:18:39]FM_GetShiftState [00:18:39]SAM_PROTO_GetShiftState [00:18:39]wFMCommunicate request_size=4 [00:18:39]MH_SAM_APDU [00:18:39]CAPDU: 80 13 01 00 [00:18:39]Write to MH i2c: E2 08 00 E7 1B 80 13 01 00 00 00 00 00 7F [00:18:39]Write i2c OK [00:18:39]MH_I2C_Read... [00:18:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:18:39]Read from MH i2c: E2 [00:18:39]MH_I2C_Read... [00:18:39]Read from MH i2c: E2 0E 00 [00:18:39]MH_I2C_Read... [00:18:39]Read from MH i2c: E2 0E 00 E7 1B 00 09 00 00 00 00 00 00 00 00 00 00 90 00 8A [00:18:39]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:18:39]wFMCommunicate OK [00:18:39]SAM_PROTO_GetShiftState done [00:18:39]FM_GetShiftState done [00:18:39]req_shift_opened done [00:18:39]requested_item shift.open_date is exist - process it [00:18:39]req_shift_open_date [00:18:39]FM_GetShiftState [00:18:39]SAM_PROTO_GetShiftState [00:18:39]wFMCommunicate request_size=4 [00:18:39]MH_SAM_APDU [00:18:39]CAPDU: 80 13 01 00 [00:18:39]Write to MH i2c: E2 08 00 E8 1B 80 13 01 00 00 00 00 00 80 [00:18:39]Write i2c OK [00:18:39]MH_I2C_Read... [00:18:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:18:39]Read from MH i2c: E2 [00:18:39]MH_I2C_Read... [00:18:39]Read from MH i2c: E2 0E 00 [00:18:39]MH_I2C_Read... [00:18:39]Read from MH i2c: E2 0E 00 E8 1B 00 09 00 00 00 00 00 00 00 00 00 00 90 00 8B [00:18:39]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:18:39]wFMCommunicate OK [00:18:39]SAM_PROTO_GetShiftState done [00:18:39]FM_GetShiftState done [00:18:39]req_shift_open_date done [00:18:39]produce_requested_data done [00:18:39]produce_requested_data return {"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76980,"shift.num":372,"shift.opened":0,"shift.open_date":0} [00:18:39]process_action_free get_value [00:18:39]json_value_free [00:18:39]json_value_free done [00:18:39]process_json_proto returns [00:18:39]Send response to host [00:18:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76980,"shift.num":372,"shift.opened":0,"shift.open_date":0}}} [00:18:39]free response buf [00:18:39]execute_script done [00:18:39]execute_script returns [00:18:39]free content buf [00:18:39]Sock 9.Close socket [00:18:39]Sock 9.Thread stoped [00:18:39]accept exits with 8 [00:18:39]New connection [00:18:39]New thread 3066801508 created [00:18:39]Thread 3066944868 joined [00:18:39]Waiting for new connection... [00:18:39] Sock 8.Parse request [00:18:39]Sock 8.Check first char [00:18:39]Sock 8.First char is OK [00:18:39]request: POST /json_proto HTTP/1.0 [00:18:39]Method: POST [00:18:39]URL: /json_proto [00:18:39]Method is POST - this is cgi request [00:18:39]url: /json_proto [00:18:39]query_string will be loaded in cgi processing [00:18:39]execute_cgi json_proto POST (null) [00:18:39]execute_cgi path=json_proto method=POST [00:18:39]POST find Content-Length [00:18:39]Host: 172.17.62.5:8080 [00:18:39]Content-Length: 331 [00:18:39]Content-Type: application/json [00:18:39] [00:18:39]POST finish read [00:18:39]Found Content-Length = 331 [00:18: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:18:39]execute_script... [00:18: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:18:39]POST & json_proto [00:18:39]process_json_proto [00:18:39]json parsed OK: [00:18:39]protocol is kg_v1.0 [00:18:39]action value=get_value [00:18:39]process_action get_value [00:18:39]cmd_get_value [00:18:39]process_action get_value done [00:18:39]requested_data is exist [00:18:39]produce_requested_data [00:18:39]requested_item fm.sale.total is exist - process it [00:18:39]SAM_PROTO_GetFMData [00:18:39]wFMCommunicate request_size=4 [00:18:39]MH_SAM_APDU [00:18:39]CAPDU: 80 13 03 00 [00:18:39]Write to MH i2c: E2 08 00 E9 1B 80 13 03 00 00 00 00 00 83 [00:18:39]Write i2c OK [00:18:39]MH_I2C_Read... [00:18:39]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:18:39]Read from MH i2c: E2 [00:18:39]MH_I2C_Read... [00:18:39]Read from MH i2c: E2 FD 00 [00:18:39]MH_I2C_Read... [00:18:39]Read from MH i2c: E2 FD 00 E9 1B 00 C8 04 85 04 C4 04 6E 04 04 00 CB 29 01 00 69 04 A3 00 6F 04 04 00 D8 27 01 00 B1 04 05 00 07 55 D0 BB 02 70 04 05 00 60 C9 B6 77 02 72 04 04 00 A7 8B 19 44 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 A9 B4 53 4A 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 87 93 31 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F3 01 00 00 B1 04 05 00 F4 34 DE 15 01 70 04 05 00 F4 34 DE 15 01 72 04 00 00 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 6D 18 82 1D EF 90 00 07 [00:18:39]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 CB 29 01 00 69 04 A3 00 6F 04 04 00 D8 27 01 00 B1 04 05 00 07 55 D0 BB 02 70 04 05 00 60 C9 B6 77 02 72 04 04 00 A7 8B 19 44 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 A9 B4 53 4A 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 87 93 31 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F3 01 00 00 B1 04 05 00 F4 34 DE 15 01 70 04 05 00 F4 34 DE 15 01 72 04 00 00 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 6D 18 82 1D EF 90 00 [00:18:39]wFMCommunicate OK [00:18:39]wFMCommunicate request_size=4 [00:18:39]MH_SAM_APDU [00:18:39]CAPDU: 80 17 00 00 [00:18:39]Write to MH i2c: E2 08 00 EA 1B 80 17 00 00 00 00 00 00 85 [00:18:39]Write i2c OK [00:18:39]MH_I2C_Read... [00:18:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:40]Read from MH i2c: E2 [00:18:40]MH_I2C_Read... [00:18:40]Read from MH i2c: E2 FD 00 [00:18:40]MH_I2C_Read... [00:18:40]Read from MH i2c: E2 FD 00 EA 1B 00 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 ED 81 75 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 90 00 79 [00:18:40]RAPDU: 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 ED 81 75 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 90 00 [00:18:40]wFMCommunicate OK [00:18:40]wFMCommunicate request_size=4 [00:18:40]MH_SAM_APDU [00:18:40]CAPDU: 80 17 00 00 [00:18:40]Write to MH i2c: E2 08 00 EB 1B 80 17 00 00 00 00 00 00 86 [00:18:40]Write i2c OK [00:18:40]MH_I2C_Read... [00:18:40]OFD Sender: No OFD packet to send [00:18:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:40]Read from MH i2c: E2 [00:18:40]MH_I2C_Read... [00:18:40]Read from MH i2c: E2 FD 00 [00:18:40]MH_I2C_Read... [00:18:40]Read from MH i2c: E2 FD 00 EB 1B 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 5E [00:18:40]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:18:40]wFMCommunicate OK [00:18:40]wFMCommunicate request_size=4 [00:18:40]MH_SAM_APDU [00:18:40]CAPDU: 80 17 00 00 [00:18:40]Write to MH i2c: E2 08 00 EC 1B 80 17 00 00 00 00 00 00 87 [00:18:40]Write i2c OK [00:18:40]MH_I2C_Read... [00:18:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:40]Read from MH i2c: E2 [00:18:40]MH_I2C_Read... [00:18:40]Read from MH i2c: E2 FD 00 [00:18:40]MH_I2C_Read... [00:18:40]Read from MH i2c: E2 FD 00 EC 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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 FF [00:18:40]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [00:18:40]wFMCommunicate OK [00:18:40]wFMCommunicate request_size=4 [00:18:40]MH_SAM_APDU [00:18:40]CAPDU: 80 17 00 00 [00:18:40]Write to MH i2c: E2 08 00 ED 1B 80 17 00 00 00 00 00 00 88 [00:18:40]Write i2c OK [00:18:40]MH_I2C_Read... [00:18:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:18:40]Read from MH i2c: E2 [00:18:40]MH_I2C_Read... [00:18:40]Read from MH i2c: E2 E5 00 [00:18:40]MH_I2C_Read... [00:18:40]Read from MH i2c: E2 E5 00 ED 1B 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 6C [00:18:40]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:18:41]wFMCommunicate OK [00:18:41]SAM_PROTO_GetFMData done [00:18:41]requested_item fm.sale_refund.total is exist - process it [00:18:41]requested_item fm.buy.total is exist - process it [00:18:41]requested_item shift.sale.total is exist - process it [00:18:41]SAM_PROTO_GetShiftData [00:18:41]wFMCommunicate request_size=4 [00:18:41]MH_SAM_APDU [00:18:41]CAPDU: 80 13 02 00 [00:18:41]Write to MH i2c: E2 08 00 EE 1B 80 13 02 00 00 00 00 00 87 [00:18:41]Write i2c OK [00:18:41]MH_I2C_Read... [00:18:41]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:18:41]Read from MH i2c: E2 [00:18:41]MH_I2C_Read... [00:18:41]Read from MH i2c: E2 FD 00 [00:18:41]MH_I2C_Read... [00:18:41]Read from MH i2c: E2 FD 00 EE 1B 00 BB 04 AA 04 B7 04 6E 04 04 00 EB 00 00 00 69 04 9E 00 6F 04 04 00 E8 00 00 00 B1 04 04 00 B8 36 14 02 70 04 04 00 D4 5A BB 01 72 04 03 00 E4 DB 58 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 DB 86 38 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 E4 B5 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 03 00 00 00 B1 04 03 00 00 52 03 70 04 03 00 00 52 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 4E 5A EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 F8 [00:18:41]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 EB 00 00 00 69 04 9E 00 6F 04 04 00 E8 00 00 00 B1 04 04 00 B8 36 14 02 70 04 04 00 D4 5A BB 01 72 04 03 00 E4 DB 58 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 DB 86 38 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 E4 B5 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 03 00 00 00 B1 04 03 00 00 52 03 70 04 03 00 00 52 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 4E 5A EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:18:41]wFMCommunicate OK [00:18:41]wFMCommunicate request_size=4 [00:18:41]MH_SAM_APDU [00:18:41]CAPDU: 80 17 00 00 [00:18:41]Write to MH i2c: E2 08 00 EF 1B 80 17 00 00 00 00 00 00 8A [00:18:41]Write i2c OK [00:18:41]MH_I2C_Read... [00:18:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:41]Read from MH i2c: E2 [00:18:41]MH_I2C_Read... [00:18:41]Read from MH i2c: E2 FD 00 [00:18:41]MH_I2C_Read... [00:18:41]Read from MH i2c: E2 FD 00 EF 1B 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 87 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C2 [00:18:41]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 87 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:18:41]wFMCommunicate OK [00:18:41]wFMCommunicate request_size=4 [00:18:41]MH_SAM_APDU [00:18:41]CAPDU: 80 17 00 00 [00:18:41]Write to MH i2c: E2 08 00 F0 1B 80 17 00 00 00 00 00 00 8B [00:18:41]Write i2c OK [00:18:41]MH_I2C_Read... [00:18:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:42]Read from MH i2c: E2 [00:18:42]MH_I2C_Read... [00:18:42]Read from MH i2c: E2 FD 00 [00:18:42]MH_I2C_Read... [00:18:42]Read from MH i2c: E2 FD 00 F0 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 B7 [00:18:42]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:18:42]wFMCommunicate OK [00:18:42]wFMCommunicate request_size=4 [00:18:42]MH_SAM_APDU [00:18:42]CAPDU: 80 17 00 00 [00:18:42]Write to MH i2c: E2 08 00 F1 1B 80 17 00 00 00 00 00 00 8C [00:18:42]Write i2c OK [00:18:42]MH_I2C_Read... [00:18:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:42]Read from MH i2c: E2 [00:18:42]MH_I2C_Read... [00:18:42]Read from MH i2c: E2 FD 00 [00:18:42]MH_I2C_Read... [00:18:42]Read from MH i2c: E2 FD 00 F1 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 01 [00:18:42]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:18:42]wFMCommunicate OK [00:18:42]wFMCommunicate request_size=4 [00:18:42]MH_SAM_APDU [00:18:42]CAPDU: 80 17 00 00 [00:18:42]Write to MH i2c: E2 08 00 F2 1B 80 17 00 00 00 00 00 00 8D [00:18:42]Write i2c OK [00:18:42]MH_I2C_Read... [00:18:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [00:18:42]Read from MH i2c: E2 [00:18:42]MH_I2C_Read... [00:18:42]Read from MH i2c: E2 D8 00 [00:18:42]MH_I2C_Read... [00:18:42]Read from MH i2c: E2 D8 00 F2 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 74 [00:18:42]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:18:42]wFMCommunicate OK [00:18:42]SAM_PROTO_GetShiftData done [00:18:42]requested_item shift.sale.total_cash is exist - process it [00:18:42]requested_item shift.sale_refund.total is exist - process it [00:18:42]requested_item shift.sale_refund.total_cash is exist - process it [00:18:42]requested_item shift.buy.total is exist - process it [00:18:42]requested_item shift.buy.total_cash is exist - process it [00:18:42]produce_requested_data done [00:18:42]produce_requested_data return {"fm.sale.total":117409272.39,"fm.sale_refund.total":46618513.80,"fm.buy.total":0.00,"shift.sale.total":348791.60,"shift.sale.total_cash":290557.00,"shift.sale_refund.total":2176.00,"shift.sale_refund.total_cash":2176.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:18:42]process_action_free get_value [00:18:42]json_value_free [00:18:42]json_value_free done [00:18:42]process_json_proto returns [00:18:42]Send response to host [00:18:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":117409272.39,"fm.sale_refund.total":46618513.80,"fm.buy.total":0.00,"shift.sale.total":348791.60,"shift.sale.total_cash":290557.00,"shift.sale_refund.total":2176.00,"shift.sale_refund.total_cash":2176.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:18:42]free response buf [00:18:42]execute_script done [00:18:42]execute_script returns [00:18:42]free content buf [00:18:42]Sock 8.Close socket [00:18:42]Sock 8.Thread stoped [00:18:42]accept exits with 9 [00:18:42]New connection [00:18:42]New thread 3066944868 created [00:18:42]Thread 3066801508 joined [00:18:42]Waiting for new connection... [00:18:42] Sock 9.Parse request [00:18:42]Sock 9.Check first char [00:18:42]Sock 9.First char is OK [00:18:42]request: POST /json_proto HTTP/1.0 [00:18:42]Method: POST [00:18:42]URL: /json_proto [00:18:42]Method is POST - this is cgi request [00:18:42]url: /json_proto [00:18:42]query_string will be loaded in cgi processing [00:18:42]execute_cgi json_proto POST (null) [00:18:42]execute_cgi path=json_proto method=POST [00:18:42]POST find Content-Length [00:18:42]Host: 172.17.62.5:8080 [00:18:42]Content-Length: 277 [00:18:42]Content-Type: application/json [00:18:42] [00:18:42]POST finish read [00:18:42]Found Content-Length = 277 [00:18:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:18:42]execute_script... [00:18:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:18:42]POST & json_proto [00:18:42]process_json_proto [00:18:42]json parsed OK: [00:18:42]protocol is kg_v1.0 [00:18:42]action value=open_shift [00:18:42]process_action open_shift [00:18:42]cmd_open_shift [00:18:42]MH_GetDate [00:18:42]Write to MH i2c: F0 00 00 F3 1B FD [00:18:42]Write i2c OK [00:18:42]MH_I2C_Read... [00:18:42]Read from MH i2c: F0 [00:18:42]MH_I2C_Read... [00:18:42]Read from MH i2c: F0 09 00 [00:18:42]MH_I2C_Read... [00:18:42]Read from MH i2c: F0 09 00 F3 1B 00 E4 AC 25 66 F4 E9 65 64 C7 [00:18:42]GetLastDocTimeStamp 1713744574 [00:18:42]current date 1713745124 [00:18:42]FM_GetShiftState [00:18:42]SAM_PROTO_GetShiftState [00:18:42]wFMCommunicate request_size=4 [00:18:42]MH_SAM_APDU [00:18:42]CAPDU: 80 13 01 00 [00:18:42]Write to MH i2c: E2 08 00 F4 1B 80 13 01 00 00 00 00 00 8C [00:18:42]Write i2c OK [00:18:42]MH_I2C_Read... [00:18:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:18:42]Read from MH i2c: E2 [00:18:42]MH_I2C_Read... [00:18:42]Read from MH i2c: E2 0E 00 [00:18:42]MH_I2C_Read... [00:18:42]Read from MH i2c: E2 0E 00 F4 1B 00 09 00 00 00 00 00 00 00 00 00 00 90 00 97 [00:18:42]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:18:42]wFMCommunicate OK [00:18:42]SAM_PROTO_GetShiftState done [00:18:42]FM_GetShiftState done [00:18:42]KKMCreateOpenShiftDocument [00:18:42]Load OK [00:18:42]Malloc new data [00:18:42]MH_GetDate [00:18:42]Write to MH i2c: F0 00 00 F5 1B FF [00:18:42]Write i2c OK [00:18:42]MH_I2C_Read... [00:18:42]Read from MH i2c: F0 [00:18:42]MH_I2C_Read... [00:18:42]Read from MH i2c: F0 09 00 [00:18:42]MH_I2C_Read... [00:18:42]Read from MH i2c: F0 09 00 F5 1B 00 E4 AC 25 66 F4 E9 65 64 C9 [00:18:42]Malloc new data [00:18:42]KKMCreateOpenShiftDocument OK [00:18:42]KKMSetOpenShiftData OK [00:18:42]ProcessDocumentItem done err = 0, tmpTLVsize=185 [00:18:42]tlvbuf is 00D9AF50 [00:18:42]KKMLoadAndSignOpenShiftData [00:18:42]SAM_PROTO_ProcessDocument [00:18:42]wFMCommunicate request_size=9 [00:18:42]MH_SAM_APDU [00:18:42]CAPDU: 80 15 01 00 04 02 00 B9 00 [00:18:42]Write to MH i2c: E2 0C 00 F6 1B 80 15 01 00 04 00 02 00 B9 00 00 00 53 [00:18:42]Write i2c OK [00:18:42]MH_I2C_Read... [00:18:42]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:18:42]Read from MH i2c: E2 [00:18:42]MH_I2C_Read... [00:18:42]Read from MH i2c: E2 03 00 [00:18:42]MH_I2C_Read... [00:18:42]Read from MH i2c: E2 03 00 F6 1B 00 90 00 85 [00:18:42]RAPDU: 90 00 [00:18:42]wFMCommunicate OK [00:18:42]wFMCommunicate request_size=23 [00:18:42]MH_SAM_APDU [00:18:42]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:18:42]Write to MH i2c: E2 1A 00 F7 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 87 [00:18:42]Write i2c OK [00:18:42]MH_I2C_Read... [00:18:42]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:18:42]Read from MH i2c: E2 [00:18:42]MH_I2C_Read... [00:18:42]Read from MH i2c: E2 03 00 [00:18:42]MH_I2C_Read... [00:18:42]Read from MH i2c: E2 03 00 F7 1B 00 90 00 86 [00:18:42]RAPDU: 90 00 [00:18:42]wFMCommunicate OK [00:18:42]wFMCommunicate request_size=36 [00:18:42]MH_SAM_APDU [00:18:42]CAPDU: 80 15 02 00 1F FD 03 1B 00 D0 A2 D0 BE D0 BA D1 82 D0 BE D1 80 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 [00:18:42]Write to MH i2c: E2 27 00 F8 1B 80 15 02 00 1F 00 FD 03 1B 00 D0 A2 D0 BE D0 BA D1 82 D0 BE D1 80 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 00 00 0B [00:18:42]Write i2c OK [00:18:42]MH_I2C_Read... [00:18:42]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:18:42]Read from MH i2c: E2 [00:18:42]MH_I2C_Read... [00:18:42]Read from MH i2c: E2 03 00 [00:18:42]MH_I2C_Read... [00:18:42]Read from MH i2c: E2 03 00 F8 1B 00 90 00 87 [00:18:42]RAPDU: 90 00 [00:18:42]wFMCommunicate OK [00:18:42]wFMCommunicate request_size=67 [00:18:42]MH_SAM_APDU [00:18:42]CAPDU: 80 15 02 00 3E F1 03 3A 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B5 D0 BC D0 B8 D0 BD 2C 20 D0 B0 2F D0 B4 20 D0 90 20 33 36 35 2C 20 34 32 2E 37 38 37 39 39 39 2C 20 37 35 2E 37 30 34 33 38 32 [00:18:42]Write to MH i2c: E2 46 00 F9 1B 80 15 02 00 3E 00 F1 03 3A 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B5 D0 BC D0 B8 D0 BD 2C 20 D0 B0 2F D0 B4 20 D0 90 20 33 36 35 2C 20 34 32 2E 37 38 37 39 39 39 2C 20 37 35 2E 37 30 34 33 38 32 00 00 21 [00:18:43]Write i2c OK [00:18:43]MH_I2C_Read... [00:18:43]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:18:43]Read from MH i2c: E2 [00:18:43]MH_I2C_Read... [00:18:43]Read from MH i2c: E2 03 00 [00:18:43]MH_I2C_Read... [00:18:43]Read from MH i2c: E2 03 00 F9 1B 00 90 00 88 [00:18:43]RAPDU: 90 00 [00:18:43]wFMCommunicate OK [00:18:43]wFMCommunicate request_size=51 [00:18:43]MH_SAM_APDU [00:18:43]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 36 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:18:43]Write to MH i2c: E2 36 00 FA 1B 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 36 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 3E [00:18:43]Write i2c OK [00:18:43]MH_I2C_Read... [00:18:43]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:18:43]Read from MH i2c: E2 [00:18:43]MH_I2C_Read... [00:18:43]Read from MH i2c: E2 03 00 [00:18:43]MH_I2C_Read... [00:18:43]Read from MH i2c: E2 03 00 FA 1B 00 90 00 89 [00:18:43]RAPDU: 90 00 [00:18:43]wFMCommunicate OK [00:18:43]wFMCommunicate request_size=13 [00:18:43]MH_SAM_APDU [00:18:43]CAPDU: 80 15 02 00 08 F4 03 04 00 E4 AC 25 66 [00:18:43]Write to MH i2c: E2 10 00 FB 1B 80 15 02 00 08 00 F4 03 04 00 E4 AC 25 66 00 00 BC [00:18:43]Write i2c OK [00:18:43]MH_I2C_Read... [00:18:43]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:18:43]Read from MH i2c: E2 [00:18:43]MH_I2C_Read... [00:18:43]Read from MH i2c: E2 03 00 [00:18:43]MH_I2C_Read... [00:18:43]Read from MH i2c: E2 03 00 FB 1B 00 90 00 8A [00:18:43]RAPDU: 90 00 [00:18:43]wFMCommunicate OK [00:18:43]wFMCommunicate request_size=25 [00:18:43]MH_SAM_APDU [00:18:43]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 [00:18:43]Write to MH i2c: E2 1C 00 FC 1B 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 00 00 F9 [00:18:43]Write i2c OK [00:18:43]MH_I2C_Read... [00:18:43]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:18:43]Read from MH i2c: E2 [00:18:43]MH_I2C_Read... [00:18:43]Read from MH i2c: E2 03 00 [00:18:43]MH_I2C_Read... [00:18:43]Read from MH i2c: E2 03 00 FC 1B 00 90 00 8B [00:18:43]RAPDU: 90 00 [00:18:43]wFMCommunicate OK [00:18:43]wFMCommunicate request_size=4 [00:18:43]MH_SAM_APDU [00:18:43]CAPDU: 80 15 03 00 [00:18:43]Write to MH i2c: E2 08 00 FD 1B 80 15 03 00 00 00 00 00 99 [00:18:43]Write i2c OK [00:18:43]MH_I2C_Read... [00:18:43]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:18:43]Read from MH i2c: E2 [00:18:43]MH_I2C_Read... [00:18:43]Read from MH i2c: E2 38 00 [00:18:43]MH_I2C_Read... [00:18:43]Read from MH i2c: E2 38 00 FD 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 34 36 35 32 10 04 04 00 B5 2C 01 00 0E 04 04 00 75 01 00 00 35 04 06 00 55 12 EE 7B 2B E3 90 00 9B [00:18:43]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B5 2C 01 00 0E 04 04 00 75 01 00 00 35 04 06 00 55 12 EE 7B 2B E3 90 00 [00:18:43]wFMCommunicate OK [00:18:43]SAM_PROTO_ProcessDocument answer len = 51 [00:18:43]SAM_PROTO_ProcessDocument done [00:18:43]SetTLVBufToDocument [00:18:43]Processing tag 1209 (04B9) [00:18:43]Malloc new data [00:18:43]Processing tag 1041 (0411) [00:18:43]Processing tag 1040 (0410) [00:18:43]Malloc new data [00:18:43]Processing tag 1038 (040E) [00:18:43]Malloc new data [00:18:43]Processing tag 1077 (0435) [00:18:43]Malloc new data [00:18:43]SetTLVBufToDocument err=0 [00:18:43]KKMLoadAndSignOpenShiftData store KKM data [00:18:43]KKMLoadAndSignOpenShiftData err=0 [00:18:43]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Токторбаева Н. Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 Место: АЗС № 106 "Партнер Нефть" 22.04.2024 00:18 Смена: 373 РНМ: 0000000000091573 ЗНМ: 0300000141 ФД: 76981 ФМ: 0000000000874652 ФПД: 93539798821859 [00:18:43]StoreToDocumentArchive [00:18:43]shift 373 fd 76981 [00:18:43]Create dir for shift 0373 [00:18:43]save to /storage/0373/doc_00076981 [00:18:43]save last doc name /storage/0373/doc_00076981 to /storage/kkm_last_doc_name [00:18:43]save OK [00:18:43]Clear old archive folders... [00:18:43]Remove dir /storage/0372 [00:18:43]opendir ok [00:18:43]file . [00:18:43]file .. [00:18:43]file doc_00076744 [00:18:43]remove file /storage/0372/doc_00076744 [00:18:43]file doc_00076745 [00:18:43]remove file /storage/0372/doc_00076745 [00:18:43]file doc_00076746 [00:18:43]remove file /storage/0372/doc_00076746 [00:18:43]file doc_00076747 [00:18:43]remove file /storage/0372/doc_00076747 [00:18:43]file doc_00076748 [00:18:43]remove file /storage/0372/doc_00076748 [00:18:43]file doc_00076749 [00:18:43]remove file /storage/0372/doc_00076749 [00:18:43]file doc_00076750 [00:18:43]remove file /storage/0372/doc_00076750 [00:18:43]file doc_00076751 [00:18:43]remove file /storage/0372/doc_00076751 [00:18:43]file doc_00076752 [00:18:43]remove file /storage/0372/doc_00076752 [00:18:43]file doc_00076753 [00:18:43]remove file /storage/0372/doc_00076753 [00:18:43]file doc_00076754 [00:18:43]remove file /storage/0372/doc_00076754 [00:18:43]file doc_00076755 [00:18:43]remove file /storage/0372/doc_00076755 [00:18:43]file doc_00076756 [00:18:43]remove file /storage/0372/doc_00076756 [00:18:43]file doc_00076757 [00:18:43]remove file /storage/0372/doc_00076757 [00:18:43]file doc_00076758 [00:18:43]remove file /storage/0372/doc_00076758 [00:18:43]file doc_00076759 [00:18:43]remove file /storage/0372/doc_00076759 [00:18:43]file doc_00076760 [00:18:43]remove file /storage/0372/doc_00076760 [00:18:43]file doc_00076761 [00:18:43]remove file /storage/0372/doc_00076761 [00:18:43]file doc_00076762 [00:18:43]remove file /storage/0372/doc_00076762 [00:18:43]file doc_00076763 [00:18:43]remove file /storage/0372/doc_00076763 [00:18:43]file doc_00076764 [00:18:43]remove file /storage/0372/doc_00076764 [00:18:43]file doc_00076765 [00:18:43]remove file /storage/0372/doc_00076765 [00:18:43]file doc_00076766 [00:18:43]remove file /storage/0372/doc_00076766 [00:18:43]file doc_00076767 [00:18:43]remove file /storage/0372/doc_00076767 [00:18:43]file doc_00076768 [00:18:43]remove file /storage/0372/doc_00076768 [00:18:43]file doc_00076769 [00:18:43]remove file /storage/0372/doc_00076769 [00:18:43]file doc_00076770 [00:18:43]remove file /storage/0372/doc_00076770 [00:18:43]file doc_00076771 [00:18:43]remove file /storage/0372/doc_00076771 [00:18:43]file doc_00076772 [00:18:43]remove file /storage/0372/doc_00076772 [00:18:43]file doc_00076773 [00:18:43]remove file /storage/0372/doc_00076773 [00:18:43]file doc_00076774 [00:18:43]remove file /storage/0372/doc_00076774 [00:18:43]file doc_00076775 [00:18:43]remove file /storage/0372/doc_00076775 [00:18:43]file doc_00076776 [00:18:43]remove file /storage/0372/doc_00076776 [00:18:43]file doc_00076777 [00:18:43]remove file /storage/0372/doc_00076777 [00:18:43]file doc_00076778 [00:18:43]remove file /storage/0372/doc_00076778 [00:18:43]file doc_00076779 [00:18:43]remove file /storage/0372/doc_00076779 [00:18:43]file doc_00076780 [00:18:43]remove file /storage/0372/doc_00076780 [00:18:43]file doc_00076781 [00:18:43]remove file /storage/0372/doc_00076781 [00:18:43]file doc_00076782 [00:18:43]remove file /storage/0372/doc_00076782 [00:18:43]file doc_00076783 [00:18:43]remove file /storage/0372/doc_00076783 [00:18:43]file doc_00076784 [00:18:43]remove file /storage/0372/doc_00076784 [00:18:43]file doc_00076785 [00:18:43]remove file /storage/0372/doc_00076785 [00:18:43]file doc_00076786 [00:18:43]remove file /storage/0372/doc_00076786 [00:18:43]file doc_00076787 [00:18:43]remove file /storage/0372/doc_00076787 [00:18:43]file doc_00076788 [00:18:43]remove file /storage/0372/doc_00076788 [00:18:43]file doc_00076789 [00:18:43]remove file /storage/0372/doc_00076789 [00:18:43]file doc_00076790 [00:18:43]remove file /storage/0372/doc_00076790 [00:18:43]file doc_00076791 [00:18:43]remove file /storage/0372/doc_00076791 [00:18:43]file doc_00076792 [00:18:43]remove file /storage/0372/doc_00076792 [00:18:43]file doc_00076793 [00:18:43]remove file /storage/0372/doc_00076793 [00:18:43]file doc_00076794 [00:18:43]remove file /storage/0372/doc_00076794 [00:18:43]file doc_00076795 [00:18:43]remove file /storage/0372/doc_00076795 [00:18:43]file doc_00076796 [00:18:44]remove file /storage/0372/doc_00076796 [00:18:44]file doc_00076797 [00:18:44]remove file /storage/0372/doc_00076797 [00:18:44]file doc_00076798 [00:18:44]remove file /storage/0372/doc_00076798 [00:18:44]file doc_00076799 [00:18:44]remove file /storage/0372/doc_00076799 [00:18:44]file doc_00076800 [00:18:44]remove file /storage/0372/doc_00076800 [00:18:44]file doc_00076801 [00:18:44]remove file /storage/0372/doc_00076801 [00:18:44]file doc_00076802 [00:18:44]remove file /storage/0372/doc_00076802 [00:18:44]file doc_00076803 [00:18:44]remove file /storage/0372/doc_00076803 [00:18:44]file doc_00076804 [00:18:44]remove file /storage/0372/doc_00076804 [00:18:44]file doc_00076805 [00:18:44]remove file /storage/0372/doc_00076805 [00:18:44]file doc_00076806 [00:18:44]remove file /storage/0372/doc_00076806 [00:18:44]file doc_00076807 [00:18:44]remove file /storage/0372/doc_00076807 [00:18:44]file doc_00076808 [00:18:44]remove file /storage/0372/doc_00076808 [00:18:44]file doc_00076809 [00:18:44]remove file /storage/0372/doc_00076809 [00:18:44]file doc_00076810 [00:18:44]remove file /storage/0372/doc_00076810 [00:18:44]file doc_00076811 [00:18:44]remove file /storage/0372/doc_00076811 [00:18:44]file doc_00076812 [00:18:44]remove file /storage/0372/doc_00076812 [00:18:44]file doc_00076813 [00:18:44]remove file /storage/0372/doc_00076813 [00:18:44]file doc_00076814 [00:18:44]remove file /storage/0372/doc_00076814 [00:18:44]file doc_00076815 [00:18:44]remove file /storage/0372/doc_00076815 [00:18:44]file doc_00076816 [00:18:44]remove file /storage/0372/doc_00076816 [00:18:44]file doc_00076817 [00:18:44]remove file /storage/0372/doc_00076817 [00:18:44]file doc_00076818 [00:18:44]remove file /storage/0372/doc_00076818 [00:18:44]file doc_00076819 [00:18:44]remove file /storage/0372/doc_00076819 [00:18:44]file doc_00076820 [00:18:44]remove file /storage/0372/doc_00076820 [00:18:44]file doc_00076821 [00:18:44]remove file /storage/0372/doc_00076821 [00:18:44]file doc_00076822 [00:18:44]remove file /storage/0372/doc_00076822 [00:18:44]file doc_00076823 [00:18:44]remove file /storage/0372/doc_00076823 [00:18:44]file doc_00076824 [00:18:44]remove file /storage/0372/doc_00076824 [00:18:44]file doc_00076825 [00:18:44]remove file /storage/0372/doc_00076825 [00:18:44]file doc_00076826 [00:18:44]remove file /storage/0372/doc_00076826 [00:18:44]file doc_00076827 [00:18:44]remove file /storage/0372/doc_00076827 [00:18:44]file doc_00076828 [00:18:44]remove file /storage/0372/doc_00076828 [00:18:44]file doc_00076829 [00:18:44]remove file /storage/0372/doc_00076829 [00:18:44]file doc_00076830 [00:18:44]remove file /storage/0372/doc_00076830 [00:18:44]file doc_00076831 [00:18:44]remove file /storage/0372/doc_00076831 [00:18:44]file doc_00076832 [00:18:44]remove file /storage/0372/doc_00076832 [00:18:44]file doc_00076833 [00:18:44]remove file /storage/0372/doc_00076833 [00:18:44]file doc_00076834 [00:18:44]remove file /storage/0372/doc_00076834 [00:18:44]file doc_00076835 [00:18:44]remove file /storage/0372/doc_00076835 [00:18:44]file doc_00076836 [00:18:44]remove file /storage/0372/doc_00076836 [00:18:44]file doc_00076837 [00:18:44]remove file /storage/0372/doc_00076837 [00:18:44]file doc_00076838 [00:18:44]remove file /storage/0372/doc_00076838 [00:18:44]file doc_00076839 [00:18:44]remove file /storage/0372/doc_00076839 [00:18:44]file doc_00076840 [00:18:44]remove file /storage/0372/doc_00076840 [00:18:44]file doc_00076841 [00:18:44]remove file /storage/0372/doc_00076841 [00:18:44]file doc_00076842 [00:18:44]remove file /storage/0372/doc_00076842 [00:18:44]file doc_00076843 [00:18:44]remove file /storage/0372/doc_00076843 [00:18:44]file doc_00076844 [00:18:44]remove file /storage/0372/doc_00076844 [00:18:44]file doc_00076845 [00:18:44]remove file /storage/0372/doc_00076845 [00:18:44]file doc_00076846 [00:18:44]remove file /storage/0372/doc_00076846 [00:18:44]file doc_00076847 [00:18:44]remove file /storage/0372/doc_00076847 [00:18:44]file doc_00076848 [00:18:44]remove file /storage/0372/doc_00076848 [00:18:44]file doc_00076849 [00:18:44]remove file /storage/0372/doc_00076849 [00:18:44]file doc_00076850 [00:18:44]remove file /storage/0372/doc_00076850 [00:18:44]file doc_00076851 [00:18:44]remove file /storage/0372/doc_00076851 [00:18:44]file doc_00076852 [00:18:44]remove file /storage/0372/doc_00076852 [00:18:44]file doc_00076853 [00:18:44]remove file /storage/0372/doc_00076853 [00:18:44]file doc_00076854 [00:18:44]remove file /storage/0372/doc_00076854 [00:18:44]file doc_00076855 [00:18:44]remove file /storage/0372/doc_00076855 [00:18:44]file doc_00076856 [00:18:44]remove file /storage/0372/doc_00076856 [00:18:44]file doc_00076857 [00:18:44]remove file /storage/0372/doc_00076857 [00:18:44]file doc_00076858 [00:18:44]remove file /storage/0372/doc_00076858 [00:18:44]file doc_00076859 [00:18:44]remove file /storage/0372/doc_00076859 [00:18:44]file doc_00076860 [00:18:44]remove file /storage/0372/doc_00076860 [00:18:44]file doc_00076861 [00:18:44]remove file /storage/0372/doc_00076861 [00:18:44]file doc_00076862 [00:18:44]remove file /storage/0372/doc_00076862 [00:18:44]file doc_00076863 [00:18:44]remove file /storage/0372/doc_00076863 [00:18:44]file doc_00076864 [00:18:44]remove file /storage/0372/doc_00076864 [00:18:44]file doc_00076865 [00:18:44]remove file /storage/0372/doc_00076865 [00:18:44]file doc_00076866 [00:18:44]remove file /storage/0372/doc_00076866 [00:18:44]file doc_00076867 [00:18:44]remove file /storage/0372/doc_00076867 [00:18:44]file doc_00076868 [00:18:44]remove file /storage/0372/doc_00076868 [00:18:44]file doc_00076869 [00:18:44]remove file /storage/0372/doc_00076869 [00:18:44]file doc_00076870 [00:18:44]remove file /storage/0372/doc_00076870 [00:18:44]file doc_00076871 [00:18:44]remove file /storage/0372/doc_00076871 [00:18:44]file doc_00076872 [00:18:44]remove file /storage/0372/doc_00076872 [00:18:44]file doc_00076873 [00:18:44]remove file /storage/0372/doc_00076873 [00:18:44]file doc_00076874 [00:18:44]remove file /storage/0372/doc_00076874 [00:18:44]file doc_00076875 [00:18:44]remove file /storage/0372/doc_00076875 [00:18:44]file doc_00076876 [00:18:44]remove file /storage/0372/doc_00076876 [00:18:44]file doc_00076877 [00:18:44]remove file /storage/0372/doc_00076877 [00:18:44]file doc_00076878 [00:18:44]remove file /storage/0372/doc_00076878 [00:18:44]file doc_00076880 [00:18:44]remove file /storage/0372/doc_00076880 [00:18:44]file doc_00076881 [00:18:44]remove file /storage/0372/doc_00076881 [00:18:44]file doc_00076882 [00:18:44]remove file /storage/0372/doc_00076882 [00:18:44]file doc_00076883 [00:18:44]remove file /storage/0372/doc_00076883 [00:18:44]file doc_00076884 [00:18:44]remove file /storage/0372/doc_00076884 [00:18:44]file doc_00076885 [00:18:44]remove file /storage/0372/doc_00076885 [00:18:44]file doc_00076886 [00:18:44]remove file /storage/0372/doc_00076886 [00:18:44]file doc_00076887 [00:18:44]remove file /storage/0372/doc_00076887 [00:18:44]file doc_00076888 [00:18:44]remove file /storage/0372/doc_00076888 [00:18:44]file doc_00076889 [00:18:44]remove file /storage/0372/doc_00076889 [00:18:44]file doc_00076890 [00:18:44]remove file /storage/0372/doc_00076890 [00:18:44]file doc_00076891 [00:18:44]remove file /storage/0372/doc_00076891 [00:18:44]file doc_00076892 [00:18:44]remove file /storage/0372/doc_00076892 [00:18:44]file doc_00076893 [00:18:44]remove file /storage/0372/doc_00076893 [00:18:44]file doc_00076894 [00:18:44]remove file /storage/0372/doc_00076894 [00:18:44]file doc_00076895 [00:18:44]remove file /storage/0372/doc_00076895 [00:18:44]file doc_00076896 [00:18:44]remove file /storage/0372/doc_00076896 [00:18:44]file doc_00076897 [00:18:44]remove file /storage/0372/doc_00076897 [00:18:44]file doc_00076898 [00:18:44]remove file /storage/0372/doc_00076898 [00:18:44]file doc_00076899 [00:18:44]remove file /storage/0372/doc_00076899 [00:18:44]file doc_00076900 [00:18:44]remove file /storage/0372/doc_00076900 [00:18:44]file doc_00076901 [00:18:44]remove file /storage/0372/doc_00076901 [00:18:44]file doc_00076902 [00:18:44]remove file /storage/0372/doc_00076902 [00:18:44]file doc_00076903 [00:18:44]remove file /storage/0372/doc_00076903 [00:18:44]file doc_00076904 [00:18:44]remove file /storage/0372/doc_00076904 [00:18:44]file doc_00076905 [00:18:44]remove file /storage/0372/doc_00076905 [00:18:44]file doc_00076906 [00:18:44]remove file /storage/0372/doc_00076906 [00:18:44]file doc_00076907 [00:18:44]remove file /storage/0372/doc_00076907 [00:18:44]file doc_00076908 [00:18:44]remove file /storage/0372/doc_00076908 [00:18:44]file doc_00076909 [00:18:44]remove file /storage/0372/doc_00076909 [00:18:44]file doc_00076910 [00:18:44]remove file /storage/0372/doc_00076910 [00:18:44]file doc_00076911 [00:18:44]remove file /storage/0372/doc_00076911 [00:18:44]file doc_00076912 [00:18:44]remove file /storage/0372/doc_00076912 [00:18:44]file doc_00076913 [00:18:44]remove file /storage/0372/doc_00076913 [00:18:44]file doc_00076914 [00:18:44]remove file /storage/0372/doc_00076914 [00:18:44]file doc_00076915 [00:18:44]remove file /storage/0372/doc_00076915 [00:18:44]file doc_00076916 [00:18:44]remove file /storage/0372/doc_00076916 [00:18:44]file doc_00076917 [00:18:44]remove file /storage/0372/doc_00076917 [00:18:44]file doc_00076918 [00:18:44]remove file /storage/0372/doc_00076918 [00:18:44]file doc_00076919 [00:18:44]remove file /storage/0372/doc_00076919 [00:18:44]file doc_00076920 [00:18:44]remove file /storage/0372/doc_00076920 [00:18:44]file doc_00076921 [00:18:44]remove file /storage/0372/doc_00076921 [00:18:44]file doc_00076922 [00:18:44]remove file /storage/0372/doc_00076922 [00:18:44]file doc_00076923 [00:18:44]remove file /storage/0372/doc_00076923 [00:18:44]file doc_00076924 [00:18:44]remove file /storage/0372/doc_00076924 [00:18:44]file doc_00076925 [00:18:44]remove file /storage/0372/doc_00076925 [00:18:44]file doc_00076926 [00:18:44]remove file /storage/0372/doc_00076926 [00:18:44]file doc_00076927 [00:18:44]remove file /storage/0372/doc_00076927 [00:18:44]file doc_00076928 [00:18:44]remove file /storage/0372/doc_00076928 [00:18:44]file doc_00076929 [00:18:44]remove file /storage/0372/doc_00076929 [00:18:44]file doc_00076930 [00:18:44]remove file /storage/0372/doc_00076930 [00:18:44]file doc_00076931 [00:18:44]remove file /storage/0372/doc_00076931 [00:18:44]file doc_00076932 [00:18:44]remove file /storage/0372/doc_00076932 [00:18:44]file doc_00076933 [00:18:44]remove file /storage/0372/doc_00076933 [00:18:44]file doc_00076934 [00:18:44]remove file /storage/0372/doc_00076934 [00:18:44]file doc_00076935 [00:18:44]remove file /storage/0372/doc_00076935 [00:18:44]file doc_00076936 [00:18:44]remove file /storage/0372/doc_00076936 [00:18:44]file doc_00076937 [00:18:44]remove file /storage/0372/doc_00076937 [00:18:44]file doc_00076938 [00:18:44]remove file /storage/0372/doc_00076938 [00:18:44]file doc_00076939 [00:18:44]remove file /storage/0372/doc_00076939 [00:18:44]file doc_00076940 [00:18:44]remove file /storage/0372/doc_00076940 [00:18:44]file doc_00076941 [00:18:44]remove file /storage/0372/doc_00076941 [00:18:44]file doc_00076942 [00:18:44]remove file /storage/0372/doc_00076942 [00:18:44]file doc_00076943 [00:18:44]remove file /storage/0372/doc_00076943 [00:18:44]file doc_00076944 [00:18:44]remove file /storage/0372/doc_00076944 [00:18:44]file doc_00076945 [00:18:44]remove file /storage/0372/doc_00076945 [00:18:44]file doc_00076946 [00:18:44]remove file /storage/0372/doc_00076946 [00:18:44]file doc_00076947 [00:18:44]remove file /storage/0372/doc_00076947 [00:18:44]file doc_00076948 [00:18:44]remove file /storage/0372/doc_00076948 [00:18:44]file doc_00076949 [00:18:44]remove file /storage/0372/doc_00076949 [00:18:44]file doc_00076950 [00:18:44]remove file /storage/0372/doc_00076950 [00:18:44]file doc_00076951 [00:18:44]remove file /storage/0372/doc_00076951 [00:18:44]file doc_00076952 [00:18:44]remove file /storage/0372/doc_00076952 [00:18:44]file doc_00076953 [00:18:44]remove file /storage/0372/doc_00076953 [00:18:44]file doc_00076954 [00:18:44]remove file /storage/0372/doc_00076954 [00:18:44]file doc_00076955 [00:18:44]remove file /storage/0372/doc_00076955 [00:18:44]file doc_00076956 [00:18:44]remove file /storage/0372/doc_00076956 [00:18:44]file doc_00076957 [00:18:44]remove file /storage/0372/doc_00076957 [00:18:44]file doc_00076958 [00:18:45]remove file /storage/0372/doc_00076958 [00:18:45]file doc_00076959 [00:18:45]remove file /storage/0372/doc_00076959 [00:18:45]file doc_00076960 [00:18:45]remove file /storage/0372/doc_00076960 [00:18:45]file doc_00076961 [00:18:45]remove file /storage/0372/doc_00076961 [00:18:45]file doc_00076962 [00:18:45]remove file /storage/0372/doc_00076962 [00:18:45]file doc_00076963 [00:18:45]remove file /storage/0372/doc_00076963 [00:18:45]file doc_00076964 [00:18:45]remove file /storage/0372/doc_00076964 [00:18:45]file doc_00076965 [00:18:45]remove file /storage/0372/doc_00076965 [00:18:45]file doc_00076966 [00:18:45]remove file /storage/0372/doc_00076966 [00:18:45]file doc_00076967 [00:18:45]remove file /storage/0372/doc_00076967 [00:18:45]file doc_00076968 [00:18:45]remove file /storage/0372/doc_00076968 [00:18:45]file doc_00076969 [00:18:45]remove file /storage/0372/doc_00076969 [00:18:45]file doc_00076970 [00:18:45]remove file /storage/0372/doc_00076970 [00:18:45]file doc_00076971 [00:18:45]remove file /storage/0372/doc_00076971 [00:18:45]file doc_00076972 [00:18:45]remove file /storage/0372/doc_00076972 [00:18:45]file doc_00076973 [00:18:45]remove file /storage/0372/doc_00076973 [00:18:45]file doc_00076974 [00:18:45]remove file /storage/0372/doc_00076974 [00:18:45]file doc_00076975 [00:18:45]remove file /storage/0372/doc_00076975 [00:18:45]file doc_00076976 [00:18:45]remove file /storage/0372/doc_00076976 [00:18:45]file doc_00076977 [00:18:45]remove file /storage/0372/doc_00076977 [00:18:45]file doc_00076978 [00:18:45]remove file /storage/0372/doc_00076978 [00:18:45]file doc_00076979 [00:18:45]remove file /storage/0372/doc_00076979 [00:18:45]file doc_00076980 [00:18:45]remove file /storage/0372/doc_00076980 [00:18:45]remove dir /storage/0372 [00:18:45]ProcessDocumentItem done err = 0, tmpTLVsize=236 [00:18:45]tlvbuf is 00D30310 [00:18:45]SAM_PROTO_ClearQueue [00:18:45]wFMCommunicate request_size=4 [00:18:45]MH_SAM_APDU [00:18:45]CAPDU: 80 09 00 00 [00:18:45]Write to MH i2c: E2 08 00 FE 1B 80 09 00 00 00 00 00 00 8B [00:18:45]Write i2c OK [00:18:45]MH_I2C_Read... [00:18:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:18:45]Read from MH i2c: E2 [00:18:45]MH_I2C_Read... [00:18:45]Read from MH i2c: E2 03 00 [00:18:45]MH_I2C_Read... [00:18:45]Read from MH i2c: E2 03 00 FE 1B 00 90 00 8D [00:18:45]RAPDU: 90 00 [00:18:45]wFMCommunicate OK [00:18:45]SAM_PROTO_ClearQueue done [00:18:45]KKMCreateOFDPacket [00:18:45]OFDProtocolAddRootSTLVToBuf [00:18:45]FM_MakeSignedData [00:18:45]FM_MakeSignedData [00:18:45]SAM_PROTO_SignData [00:18:45]wFMCommunicate request_size=4 [00:18:45]MH_SAM_APDU [00:18:45]CAPDU: 80 0D 01 02 [00:18:45]Write to MH i2c: E2 08 00 FF 1B 80 0D 01 02 00 00 00 00 93 [00:18:45]Write i2c OK [00:18:45]MH_I2C_Read... [00:18:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:18:45]Read from MH i2c: E2 [00:18:45]MH_I2C_Read... [00:18:45]Read from MH i2c: E2 03 00 [00:18:45]MH_I2C_Read... [00:18:45]Read from MH i2c: E2 03 00 FF 1B 00 90 00 8E [00:18:45]RAPDU: 90 00 [00:18:45]wFMCommunicate OK [00:18:45]wFMCommunicate request_size=245 [00:18:45]MH_SAM_APDU [00:18:45]CAPDU: 80 0D 02 02 F0 02 00 EC 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 1B 00 D0 A2 D0 BE D0 BA D1 82 D0 BE D1 80 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 F1 03 3A 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B5 D0 BC D0 B8 D0 BD 2C 20 D0 B0 2F D0 B4 20 D0 90 20 33 36 35 2C 20 34 32 2E 37 38 37 39 39 39 2C 20 37 35 2E 37 30 34 33 38 32 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 36 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 E4 AC 25 66 0E 04 04 00 75 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B5 2C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 35 04 06 00 55 12 EE 7B 2B E3 [00:18:45]Write to MH i2c: E2 F8 00 00 1C 80 0D 02 02 F0 00 02 00 EC 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 1B 00 D0 A2 D0 BE D0 BA D1 82 D0 BE D1 80 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 F1 03 3A 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B5 D0 BC D0 B8 D0 BD 2C 20 D0 B0 2F D0 B4 20 D0 90 20 33 36 35 2C 20 34 32 2E 37 38 37 39 39 39 2C 20 37 35 2E 37 30 34 33 38 32 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 36 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 E4 AC 25 66 0E 04 04 00 75 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B5 2C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 35 04 06 00 55 12 EE 7B 2B E3 00 00 C4 [00:18:45]Write i2c OK [00:18:45]MH_I2C_Read... [00:18:45]OFD Sender: No OFD packet to send [00:18:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:18:45]Read from MH i2c: E2 [00:18:45]MH_I2C_Read... [00:18:45]Read from MH i2c: E2 03 00 [00:18:45]MH_I2C_Read... [00:18:45]Read from MH i2c: E2 03 00 00 1C 00 90 00 90 [00:18:45]RAPDU: 90 00 [00:18:45]wFMCommunicate OK [00:18:45]wFMCommunicate request_size=4 [00:18:45]MH_SAM_APDU [00:18:45]CAPDU: 80 0D 03 02 [00:18:45]Write to MH i2c: E2 08 00 01 1C 80 0D 03 02 00 00 00 00 98 [00:18:45]Write i2c OK [00:18:45]MH_I2C_Read... [00:18:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:18:45]Read from MH i2c: E2 [00:18:45]MH_I2C_Read... [00:18:45]Read from MH i2c: E2 0B 00 [00:18:45]MH_I2C_Read... [00:18:45]Read from MH i2c: E2 0B 00 01 1C 00 63 9F 46 A6 56 C0 50 7E 90 00 6B [00:18:45]RAPDU: 63 9F 46 A6 56 C0 50 7E 90 00 [00:18:45]wFMCommunicate OK [00:18:45]SAM_PROTO_SignData done [00:18:45]FM_MakeSignedData done [00:18:45]CreateOFDProtocolMessage [00:18:45]wFMCommunicate request_size=4 [00:18:45]MH_SAM_APDU [00:18:45]CAPDU: 80 11 00 00 [00:18:45]Write to MH i2c: E2 08 00 02 1C 80 11 00 00 00 00 00 00 98 [00:18:45]Write i2c OK [00:18:45]MH_I2C_Read... [00:18:45]Read from MH i2c: E2 [00:18:45]MH_I2C_Read... [00:18:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:18:45]Read from MH i2c: E2 17 00 [00:18:45]MH_I2C_Read... [00:18:45]Read from MH i2c: E2 17 00 02 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 EB [00:18:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [00:18:45]wFMCommunicate OK [00:18:45]CreateOFDProtocolMessage done [00:18:45]OFDSenderStorePacket 76981 [00:18:45]StoreOFDPacket docnum=76981 [00:18:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 00 01 00 00 F4 CD F8 00 7F 86 5A 02 01 00 02 00 EC 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 1B 00 D0 A2 D0 BE D0 BA D1 82 D0 BE D1 80 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 F1 03 3A 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B5 D0 BC D0 B8 D0 BD 2C 20 D0 B0 2F D0 B4 20 D0 90 20 33 36 35 2C 20 34 32 2E 37 38 37 39 39 39 2C 20 37 35 2E 37 30 34 33 38 32 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 36 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 E4 AC 25 66 0E 04 04 00 75 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B5 2C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 35 04 06 00 55 12 EE 7B 2B E3 63 9F 46 A6 56 C0 50 7E [00:18:45]CheckFolder [00:18:45]dirname=/storage/ofd_packets [00:18:45]CheckFolder done [00:18:45]ProducePacketName [00:18:45]name=ofd_packets/00076981 [00:18:45]NVStorageSaveData ofd_packets/00076981 [00:18:45]File name is /storage/ofd_packets/00076981 [00:18:45]Write 286 bytes [00:18:45]NVStorageSaveData done [00:18:45]OFDSenderStorePacket done [00:18:45]KKMCreateOFDPacket done [00:18:45]NVStorageSaveData kkm_last_timestamp [00:18:45]File name is /storage/kkm_last_timestamp [00:18:45]Write 4 bytes [00:18:45]NVStorageSaveData done [00:18:45]ExternCall_PrintAddStr [00:18:45]wPrintStart [00:18:45]Write to MH i2c: 01 00 00 03 1C 1F [00:18:45]Write i2c OK [00:18:45]MH_I2C_Read... [00:18:45]Read from MH i2c: 01 [00:18:45]MH_I2C_Read... [00:18:45]Read from MH i2c: 01 07 00 [00:18:45]MH_I2C_Read... [00:18:45]Read from MH i2c: 01 07 00 03 1C 00 00 00 00 00 FF 0F 34 [00:18:45]RasterBufferAndPrint [00:18:45]line Отчет об открытии смены [00:18:45]line ФФД: 1.0 [00:18:45]line ИНН: 02508201610067 [00:18:45]line Кассир: Токторбаева Н. [00:18:45]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [00:18:45]line Место: АЗС № 106 "Партнер Нефть" [00:18:45]line 22.04.2024 00:18 [00:18:45]line Смена: 373 [00:18:45]line РНМ: 0000000000091573 [00:18:45]line ЗНМ: 0300000141 [00:18:45]line ФД: 76981 [00:18:45]line ФМ: 0000000000874652 [00:18:45]line ФПД: 93539798821859 [00:18:45]written 0, free lines is 4095 [00:18:45]OFD Sender: Processing packet 76981 [packets to send 129, broken 128] [00:18:45]ProducePacketName [00:18:45]name=ofd_packets/00076981 [00:18:45]OFD Sender: To server: pG, [00:18:45]CommunicateWithHost lk.salyk.kg:30040 [00:18:45]ConnectInit lk.salyk.kg [00:18:45]Write to MH i2c: 01 00 00 14 1C 30 [00:18:45]Write i2c OK [00:18:45]MH_I2C_Read... [00:18:45]Read from MH i2c: 01 [00:18:45]MH_I2C_Read... [00:18:45]Read from MH i2c: 01 07 00 [00:18:45]MH_I2C_Read... [00:18:45]Read from MH i2c: 01 07 00 14 1C 00 00 00 00 00 6D 0E B2 [00:18:45]RasterBufferAndPrint [00:18:45]line [00:18:45]line [00:18:45]line [00:18:45]line [00:18:45]line [00:18:45]written 0, free lines is 3704 [00:18:46]MH_Cut [00:18:46]Write to MH i2c: D1 01 00 1B 1C 01 09 [00:18:46]Write i2c OK [00:18:46]MH_I2C_Read... [00:18:46]Read from MH i2c: D1 [00:18:46]MH_I2C_Read... [00:18:46]Read from MH i2c: D1 01 00 [00:18:46]MH_I2C_Read... [00:18:46]Read from MH i2c: D1 01 00 1B 1C 00 08 [00:18:46]Write to MH i2c: 01 00 00 1C 1C 38 [00:18:46]Write i2c OK [00:18:46]MH_I2C_Read... [00:18:46]Connected sock=10 [00:18:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 00 01 00 00 F4 CD F8 00 7F 86 5A 02 01 00 02 00 EC 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 1B 00 D0 A2 D0 BE D0 BA D1 82 D0 BE D1 80 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 F1 03 3A 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B5 D0 BC D0 B8 D0 BD 2C 20 D0 B0 2F D0 B4 20 D0 90 20 33 36 35 2C 20 34 32 2E 37 38 37 39 39 39 2C 20 37 35 2E 37 30 34 33 38 32 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 36 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 E4 AC 25 66 0E 04 04 00 75 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B5 2C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 35 04 06 00 55 12 EE 7B 2B E3 63 9F 46 A6 56 C0 50 7E [00:18:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 3A 5C 47 00 80 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 34 36 35 32 10 04 04 00 B5 2C 01 00 F4 03 04 00 6A 54 25 66 B6 04 01 00 00 9D DF 74 F0 1D F5 86 4D [00:18:46]CommunicateWithHost err = 0 [00:18:46]CheckOFDResponse [00:18:46]1017 (14) - 77093643461234 [00:18:46]1041 (16) - 0000000000874652 [00:18:46]1040 (4) - 76981 [00:18:46]*** Cut start [00:18:46]1012 (4) - 21.04.2024 18:01 [00:18:46]*** Partial cut [00:18:46]1206 (1) - 0 [00:18:46]*** CUTSNS_PIN = 1 [00:18:46]OFD Sender: Remove packet 76981 [00:18:46]ProducePacketName [00:18:46]name=ofd_packets/00076981 [00:18:46]NVStorageDeleteData [00:18:46]*** CUTSNS_PIN = 0 [00:18:46]*** Brake cut motor [00:18:47]OFD Sender: No OFD packet to send [00:18:47]Read from MH i2c: 01 [00:18:47]MH_I2C_Read... [00:18:47]*** Stop cut motor [00:18:47]*** Cut end [00:18:47]Read from MH i2c: 01 07 00 [00:18:47]MH_I2C_Read... [00:18:47]Read from MH i2c: 01 07 00 1C 1C 00 00 00 00 00 FF 0F 4D [00:18:47]process_action open_shift done [00:18:47]requested_data is exist [00:18:47]produce_requested_data [00:18:47]requested_item fd.num is exist - process it [00:18:47]SAM_PROTO_GetFieldsCounters [00:18:47]wFMCommunicate request_size=4 [00:18:47]MH_SAM_APDU [00:18:47]CAPDU: 80 13 00 00 [00:18:47]Write to MH i2c: E2 08 00 1D 1C 80 13 00 00 00 00 00 00 B5 [00:18:47]Write i2c OK [00:18:47]MH_I2C_Read... [00:18:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:18:47]Read from MH i2c: E2 [00:18:47]MH_I2C_Read... [00:18:47]Read from MH i2c: E2 62 00 [00:18:47]MH_I2C_Read... [00:18:47]Read from MH i2c: E2 62 00 1D 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B5 2C 01 00 0E 04 04 00 75 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 2E [00: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B5 2C 01 00 0E 04 04 00 75 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:18:47]wFMCommunicate OK [00:18:47]SAM_PROTO_GetFieldsCounters done [00:18:47]requested_item shift.num is exist - process it [00:18:47]requested_item shift.opened is exist - process it [00:18:47]req_shift_opened [00:18:47]FM_GetShiftState [00:18:47]SAM_PROTO_GetShiftState [00:18:47]wFMCommunicate request_size=4 [00:18:47]MH_SAM_APDU [00:18:47]CAPDU: 80 13 01 00 [00:18:47]Write to MH i2c: E2 08 00 1E 1C 80 13 01 00 00 00 00 00 B7 [00:18:47]Write i2c OK [00:18:47]MH_I2C_Read... [00:18:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:18:47]Read from MH i2c: E2 [00:18:47]MH_I2C_Read... [00:18:47]Read from MH i2c: E2 0E 00 [00:18:47]MH_I2C_Read... [00:18:47]Read from MH i2c: E2 0E 00 1E 1C 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 DE [00:18:47]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [00:18:47]wFMCommunicate OK [00:18:47]SAM_PROTO_GetShiftState done [00:18:47]FM_GetShiftState done [00:18:47]req_shift_opened done [00:18:47]requested_item shift.open_date is exist - process it [00:18:47]req_shift_open_date [00:18:47]req_shift_open_date done [00:18:47]produce_requested_data done [00:18:47]produce_requested_data return {"fd.num":76981,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [00:18:47]process_action_free open_shift [00:18:47]json_value_free [00:18:47]json_value_free done [00:18:47]process_json_proto returns [00:18:47]Send response to host [00:18:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":76981,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [00:18:47]free response buf [00:18:47]execute_script done [00:18:47]execute_script returns [00:18:47]free content buf [00:18:47]Sock 9.Close socket [00:18:47]Sock 9.Thread stoped [00:18:47]accept exits with 8 [00:18:47]New connection [00:18:47]New thread 3066801508 created [00:18:47]Thread 3066944868 joined [00:18:47]Waiting for new connection... [00:18:47] Sock 8.Parse request [00:18:47]Sock 8.Check first char [00:18:47]Sock 8.First char is OK [00:18:47]request: POST /json_proto HTTP/1.0 [00:18:47]Method: POST [00:18:47]URL: /json_proto [00:18:47]Method is POST - this is cgi request [00:18:47]url: /json_proto [00:18:47]query_string will be loaded in cgi processing [00:18:47]execute_cgi json_proto POST (null) [00:18:47]execute_cgi path=json_proto method=POST [00:18:47]POST find Content-Length [00:18:47]Host: 172.17.62.5:8080 [00:18:47]Content-Length: 331 [00:18:47]Content-Type: application/json [00:18:47] [00:18:47]POST finish read [00:18:47]Found Content-Length = 331 [00:18:47]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:18:47]execute_script... [00:18:47]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:18:47]POST & json_proto [00:18:47]process_json_proto [00:18:47]json parsed OK: [00:18:47]protocol is kg_v1.0 [00:18:47]action value=get_value [00:18:47]process_action get_value [00:18:47]cmd_get_value [00:18:47]process_action get_value done [00:18:47]requested_data is exist [00:18:47]produce_requested_data [00:18:47]requested_item fm.sale.total is exist - process it [00:18:47]SAM_PROTO_GetFMData [00:18:47]wFMCommunicate request_size=4 [00:18:47]MH_SAM_APDU [00:18:47]CAPDU: 80 13 03 00 [00:18:47]Write to MH i2c: E2 08 00 1F 1C 80 13 03 00 00 00 00 00 BA [00:18:47]Write i2c OK [00:18:47]MH_I2C_Read... [00:18:47]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:18:47]Read from MH i2c: E2 [00:18:47]MH_I2C_Read... [00:18:47]Read from MH i2c: E2 FD 00 [00:18:47]MH_I2C_Read... [00:18:47]Read from MH i2c: E2 FD 00 1F 1C 00 C8 04 85 04 C4 04 6E 04 04 00 CB 29 01 00 69 04 A3 00 6F 04 04 00 D8 27 01 00 B1 04 05 00 07 55 D0 BB 02 70 04 05 00 60 C9 B6 77 02 72 04 04 00 A7 8B 19 44 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 A9 B4 53 4A 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 87 93 31 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F3 01 00 00 B1 04 05 00 F4 34 DE 15 01 70 04 05 00 F4 34 DE 15 01 72 04 00 00 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 6D 18 82 1D EF 90 00 3E [00:18:47]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 CB 29 01 00 69 04 A3 00 6F 04 04 00 D8 27 01 00 B1 04 05 00 07 55 D0 BB 02 70 04 05 00 60 C9 B6 77 02 72 04 04 00 A7 8B 19 44 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 A9 B4 53 4A 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 87 93 31 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F3 01 00 00 B1 04 05 00 F4 34 DE 15 01 70 04 05 00 F4 34 DE 15 01 72 04 00 00 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 6D 18 82 1D EF 90 00 [00:18:47]wFMCommunicate OK [00:18:47]wFMCommunicate request_size=4 [00:18:47]MH_SAM_APDU [00:18:47]CAPDU: 80 17 00 00 [00:18:47]Write to MH i2c: E2 08 00 20 1C 80 17 00 00 00 00 00 00 BC [00:18:47]Write i2c OK [00:18:47]MH_I2C_Read... [00:18:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:48]Read from MH i2c: E2 [00:18:48]MH_I2C_Read... [00:18:48]Read from MH i2c: E2 FD 00 [00:18:48]MH_I2C_Read... [00:18:48]Read from MH i2c: E2 FD 00 20 1C 00 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 ED 81 75 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 90 00 B0 [00:18:48]RAPDU: 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 ED 81 75 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 90 00 [00:18:48]wFMCommunicate OK [00:18:48]wFMCommunicate request_size=4 [00:18:48]MH_SAM_APDU [00:18:48]CAPDU: 80 17 00 00 [00:18:48]Write to MH i2c: E2 08 00 21 1C 80 17 00 00 00 00 00 00 BD [00:18:48]Write i2c OK [00:18:48]MH_I2C_Read... [00:18:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:48]Read from MH i2c: E2 [00:18:48]MH_I2C_Read... [00:18:48]Read from MH i2c: E2 FD 00 [00:18:48]MH_I2C_Read... [00:18:48]Read from MH i2c: E2 FD 00 21 1C 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 95 [00:18:48]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:18:48]wFMCommunicate OK [00:18:48]wFMCommunicate request_size=4 [00:18:48]MH_SAM_APDU [00:18:48]CAPDU: 80 17 00 00 [00:18:48]Write to MH i2c: E2 08 00 22 1C 80 17 00 00 00 00 00 00 BE [00:18:48]Write i2c OK [00:18:48]MH_I2C_Read... [00:18:49]Read from MH i2c: E2 [00:18:49]MH_I2C_Read... [00:18:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:49]Read from MH i2c: E2 FD 00 [00:18:49]MH_I2C_Read... [00:18:49]Read from MH i2c: E2 FD 00 22 1C 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 36 [00:18:49]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [00:18:49]wFMCommunicate OK [00:18:49]wFMCommunicate request_size=4 [00:18:49]MH_SAM_APDU [00:18:49]CAPDU: 80 17 00 00 [00:18:49]Write to MH i2c: E2 08 00 23 1C 80 17 00 00 00 00 00 00 BF [00:18:49]Write i2c OK [00:18:49]MH_I2C_Read... [00:18:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:18:49]Read from MH i2c: E2 [00:18:49]MH_I2C_Read... [00:18:49]Read from MH i2c: E2 E5 00 [00:18:49]MH_I2C_Read... [00:18:49]Read from MH i2c: E2 E5 00 23 1C 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A3 [00:18:49]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:18:49]wFMCommunicate OK [00:18:49]SAM_PROTO_GetFMData done [00:18:49]requested_item fm.sale_refund.total is exist - process it [00:18:49]requested_item fm.buy.total is exist - process it [00:18:49]requested_item shift.sale.total is exist - process it [00:18:49]SAM_PROTO_GetShiftData [00:18:49]wFMCommunicate request_size=4 [00:18:49]MH_SAM_APDU [00:18:49]CAPDU: 80 13 02 00 [00:18:49]Write to MH i2c: E2 08 00 24 1C 80 13 02 00 00 00 00 00 BE [00:18:49]Write i2c OK [00:18:49]MH_I2C_Read... [00:18:50]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:18:50]Read from MH i2c: E2 [00:18:50]MH_I2C_Read... [00:18:50]Read from MH i2c: E2 FD 00 [00:18:50]MH_I2C_Read... [00:18:50]Read from MH i2c: E2 FD 00 24 1C 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 31 [00:18:50]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:18:50]wFMCommunicate OK [00:18:50]wFMCommunicate request_size=4 [00:18:50]MH_SAM_APDU [00:18:50]CAPDU: 80 17 00 00 [00:18:50]Write to MH i2c: E2 08 00 25 1C 80 17 00 00 00 00 00 00 C1 [00:18:50]Write i2c OK [00:18:50]MH_I2C_Read... [00:18:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:50]Read from MH i2c: E2 [00:18:50]MH_I2C_Read... [00:18:50]Read from MH i2c: E2 FD 00 [00:18:50]MH_I2C_Read... [00:18:50]Read from MH i2c: E2 FD 00 25 1C 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 C9 [00:18:50]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:18:50]wFMCommunicate OK [00:18:50]wFMCommunicate request_size=4 [00:18:50]MH_SAM_APDU [00:18:50]CAPDU: 80 17 00 00 [00:18:50]Write to MH i2c: E2 08 00 26 1C 80 17 00 00 00 00 00 00 C2 [00:18:50]Write i2c OK [00:18:50]MH_I2C_Read... [00:18:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:50]Read from MH i2c: E2 [00:18:50]MH_I2C_Read... [00:18:50]Read from MH i2c: E2 FD 00 [00:18:50]MH_I2C_Read... [00:18:50]Read from MH i2c: E2 FD 00 26 1C 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 94 [00:18:51]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:18:51]wFMCommunicate OK [00:18:51]wFMCommunicate request_size=4 [00:18:51]MH_SAM_APDU [00:18:51]CAPDU: 80 17 00 00 [00:18:51]Write to MH i2c: E2 08 00 27 1C 80 17 00 00 00 00 00 00 C3 [00:18:51]Write i2c OK [00:18:51]MH_I2C_Read... [00:18:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:51]Read from MH i2c: E2 [00:18:51]MH_I2C_Read... [00:18:51]Read from MH i2c: E2 FD 00 [00:18:51]MH_I2C_Read... [00:18:51]Read from MH i2c: E2 FD 00 27 1C 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 35 [00:18:51]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:18:51]wFMCommunicate OK [00:18:51]wFMCommunicate request_size=4 [00:18:51]MH_SAM_APDU [00:18:51]CAPDU: 80 17 00 00 [00:18:51]Write to MH i2c: E2 08 00 28 1C 80 17 00 00 00 00 00 00 C4 [00:18:51]Write i2c OK [00:18:51]MH_I2C_Read... [00:18:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:18:51]Read from MH i2c: E2 [00:18:51]MH_I2C_Read... [00:18:51]Read from MH i2c: E2 BD 00 [00:18:51]MH_I2C_Read... [00:18:51]Read from MH i2c: E2 BD 00 28 1C 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 AA [00:18:51]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:18:52]wFMCommunicate OK [00:18:52]SAM_PROTO_GetShiftData done [00:18:52]requested_item shift.sale.total_cash is exist - process it [00:18:52]requested_item shift.sale_refund.total is exist - process it [00:18:52]requested_item shift.sale_refund.total_cash is exist - process it [00:18:52]requested_item shift.buy.total is exist - process it [00:18:52]requested_item shift.buy.total_cash is exist - process it [00:18:52]produce_requested_data done [00:18:52]produce_requested_data return {"fm.sale.total":117409272.39,"fm.sale_refund.total":46618513.80,"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:18:52]process_action_free get_value [00:18:52]json_value_free [00:18:52]json_value_free done [00:18:52]process_json_proto returns [00:18:52]Send response to host [00:18:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":117409272.39,"fm.sale_refund.total":46618513.80,"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:18:52]OFD Sender: No OFD packet to send [00:18:52]free response buf [00:18:52]execute_script done [00:18:52]execute_script returns [00:18:52]free content buf [00:18:52]Sock 8.Close socket [00:18:52]Sock 8.Thread stoped [00:18:57]OFD Sender: No OFD packet to send [00:19:02]OFD Sender: No OFD packet to send [00:19:07]OFD Sender: No OFD packet to send [00:19:12]OFD Sender: No OFD packet to send [00:19:17]OFD Sender: No OFD packet to send [00:19:22]OFD Sender: No OFD packet to send [00:19:27]OFD Sender: No OFD packet to send [00:19:32]OFD Sender: No OFD packet to send [00:19:37]OFD Sender: No OFD packet to send [00:19:42]OFD Sender: No OFD packet to send [00:19:47]OFD Sender: No OFD packet to send [00:19:52]OFD Sender: No OFD packet to send [00:19:57]OFD Sender: No OFD packet to send [00:20:02]OFD Sender: No OFD packet to send [00:20:07]OFD Sender: No OFD packet to send [00:20:08]accept exits with 9 [00:20:08]New connection [00:20:08]New thread 3066944868 created [00:20:08]Thread 3066801508 joined [00:20:08]Waiting for new connection... [00:20:08] Sock 9.Parse request [00:20:08]Sock 9.Check first char [00:20:08]Sock 9.First char is OK [00:20:08]request: POST /json_proto HTTP/1.0 [00:20:08]Method: POST [00:20:08]URL: /json_proto [00:20:08]Method is POST - this is cgi request [00:20:08]url: /json_proto [00:20:08]query_string will be loaded in cgi processing [00:20:08]execute_cgi json_proto POST (null) [00:20:08]execute_cgi path=json_proto method=POST [00:20:08]POST find Content-Length [00:20:08]Host: 172.17.62.5:8080 [00:20:08]Content-Length: 677 [00:20:08]Content-Type: application/json [00:20:08] [00:20:08]POST finish read [00:20:08]Found Content-Length = 677 [00:20:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191529", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 5.130, "sum" : 330.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:08]execute_script... [00:20: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)191529", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 5.130, "sum" : 330.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:08]POST & json_proto [00:20:08]process_json_proto [00:20:08]json parsed OK: [00:20:08]protocol is kg_v1.0 [00:20:08]action value=close_receipt [00:20:08]process_action close_receipt [00:20:08]cmd_close_receipt [00:20:08]MH_GetDate [00:20:08]Write to MH i2c: F0 00 00 29 1C 34 [00:20:08]Write i2c OK [00:20:08]MH_I2C_Read... [00:20:08]Read from MH i2c: F0 [00:20:08]MH_I2C_Read... [00:20:08]Read from MH i2c: F0 09 00 [00:20:08]MH_I2C_Read... [00:20:08]Read from MH i2c: F0 09 00 29 1C 00 3A AD 25 66 F4 E9 65 64 55 [00:20:08]GetLastDocTimeStamp 1713745124 [00:20:08]current date 1713745210 [00:20:08]FM_GetShiftState [00:20:08]SAM_PROTO_GetShiftState [00:20:08]wFMCommunicate request_size=4 [00:20:08]MH_SAM_APDU [00:20:08]CAPDU: 80 13 01 00 [00:20:08]Write to MH i2c: E2 08 00 2A 1C 80 13 01 00 00 00 00 00 C3 [00:20:08]Write i2c OK [00:20:08]MH_I2C_Read... [00:20:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:08]Read from MH i2c: E2 [00:20:08]MH_I2C_Read... [00:20:08]Read from MH i2c: E2 0E 00 [00:20:08]MH_I2C_Read... [00:20:08]Read from MH i2c: E2 0E 00 2A 1C 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 EA [00:20:08]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [00:20:08]wFMCommunicate OK [00:20:08]SAM_PROTO_GetShiftState done [00:20:08]FM_GetShiftState done [00:20:08]opened in 1713745124 [00:20:08]opened+sec_in_day 1713831524 [00:20:08]quantity*price = 33037 [00:20:08]sum+1 = 33038 [00:20:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 330.00 Внесено: 330.00 СДАЧА: 0.00 НСП 1% : 2.92 НДС 12% : 35.08 Наличными: 330.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 1 22.04.2024 00:20 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76982 ФПД: 19413639448490 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T002010&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76982&fm=19413639448490&tin=02508201610067®Number=0000000000091573&sum=33000 [00:20:09]StoreToDocumentArchive [00:20:09]shift 373 fd 76982 [00:20:09]save to /storage/0373/doc_00076982 [00:20:09]save last doc name /storage/0373/doc_00076982 to /storage/kkm_last_doc_name [00:20:09]save OK [00:20:09]Clear old archive folders... [00:20:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:20:09]tlvbuf is 00C71DE0 [00:20:09]SAM_PROTO_ClearQueue [00:20:09]wFMCommunicate request_size=4 [00:20:09]MH_SAM_APDU [00:20:09]CAPDU: 80 09 00 00 [00:20:09]Write to MH i2c: E2 08 00 37 1C 80 09 00 00 00 00 00 00 C5 [00:20:09]Write i2c OK [00:20:09]MH_I2C_Read... [00:20:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:20:09]Read from MH i2c: E2 [00:20:09]MH_I2C_Read... [00:20:09]Read from MH i2c: E2 03 00 [00:20:09]MH_I2C_Read... [00:20:09]Read from MH i2c: E2 03 00 37 1C 00 90 00 C7 [00:20:09]RAPDU: 90 00 [00:20:09]wFMCommunicate OK [00:20:09]SAM_PROTO_ClearQueue done [00:20:09]KKMCreateOFDPacket [00:20:09]OFDProtocolAddRootSTLVToBuf [00:20:09]FM_MakeSignedData [00:20:09]FM_MakeSignedData [00:20:09]SAM_PROTO_SignData [00:20:09]wFMCommunicate request_size=4 [00:20:09]MH_SAM_APDU [00:20:09]CAPDU: 80 0D 01 02 [00:20:09]Write to MH i2c: E2 08 00 38 1C 80 0D 01 02 00 00 00 00 CD [00:20:09]Write i2c OK [00:20:09]MH_I2C_Read... [00:20:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:20:09]Read from MH i2c: E2 [00:20:09]MH_I2C_Read... [00:20:09]Read from MH i2c: E2 03 00 [00:20:09]MH_I2C_Read... [00:20:09]Read from MH i2c: E2 03 00 38 1C 00 90 00 C8 [00:20:09]RAPDU: 90 00 [00:20:09]wFMCommunicate OK [00:20:09]wFMCommunicate request_size=255 [00:20:09]MH_SAM_APDU [00:20: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 0A 14 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 0D 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 3A AD 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B6 2C 01 00 35 04 06 00 11 [00:20:09]Write to MH i2c: E2 02 01 39 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 0A 14 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 0D 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 3A AD 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B6 2C 01 00 35 04 06 00 11 00 00 57 [00:20:09]Write i2c OK [00:20:09]MH_I2C_Read... [00:20:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:09]Read from MH i2c: E2 [00:20:09]MH_I2C_Read... [00:20:09]Read from MH i2c: E2 03 00 [00:20:09]MH_I2C_Read... [00:20:09]Read from MH i2c: E2 03 00 39 1C 00 90 00 C9 [00:20:09]RAPDU: 90 00 [00:20:09]wFMCommunicate OK [00:20:09]wFMCommunicate request_size=10 [00:20:09]MH_SAM_APDU [00:20:09]CAPDU: 80 0D 02 02 05 A8 17 15 47 AA [00:20:09]Write to MH i2c: E2 0D 00 3A 1C 80 0D 02 02 05 00 A8 17 15 47 AA 00 00 9F [00:20:09]Write i2c OK [00:20:09]MH_I2C_Read... [00:20:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:09]Read from MH i2c: E2 [00:20:09]MH_I2C_Read... [00:20:09]Read from MH i2c: E2 03 00 [00:20:09]MH_I2C_Read... [00:20:09]Read from MH i2c: E2 03 00 3A 1C 00 90 00 CA [00:20:09]RAPDU: 90 00 [00:20:09]wFMCommunicate OK [00:20:09]wFMCommunicate request_size=4 [00:20:09]MH_SAM_APDU [00:20:09]CAPDU: 80 0D 03 02 [00:20:09]Write to MH i2c: E2 08 00 3B 1C 80 0D 03 02 00 00 00 00 D2 [00:20:09]Write i2c OK [00:20:09]MH_I2C_Read... [00:20:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:20:09]Read from MH i2c: E2 [00:20:09]MH_I2C_Read... [00:20:09]Read from MH i2c: E2 0B 00 [00:20:09]MH_I2C_Read... [00:20:09]Read from MH i2c: E2 0B 00 3B 1C 00 EF 2F E5 0A 56 08 E3 90 90 00 B1 [00:20:09]RAPDU: EF 2F E5 0A 56 08 E3 90 90 00 [00:20:09]wFMCommunicate OK [00:20:09]SAM_PROTO_SignData done [00:20:09]FM_MakeSignedData done [00:20:09]CreateOFDProtocolMessage [00:20:09]wFMCommunicate request_size=4 [00:20:09]MH_SAM_APDU [00:20:09]CAPDU: 80 11 00 00 [00:20:09]Write to MH i2c: E2 08 00 3C 1C 80 11 00 00 00 00 00 00 D2 [00:20:09]Write i2c OK [00:20:09]MH_I2C_Read... [00:20:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:20:09]Read from MH i2c: E2 [00:20:09]MH_I2C_Read... [00:20:09]Read from MH i2c: E2 17 00 [00:20:09]MH_I2C_Read... [00:20:09]Read from MH i2c: E2 17 00 3C 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 25 [00:20:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [00:20:09]wFMCommunicate OK [00:20:09]CreateOFDProtocolMessage done [00:20:09]OFDSenderStorePacket 76982 [00:20:09]StoreOFDPacket docnum=76982 [00:20:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 3F 55 07 01 0B 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 14 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 0D 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 3A AD 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B6 2C 01 00 35 04 06 00 11 A8 17 15 47 AA EF 2F E5 0A 56 08 E3 90 [00:20:09]CheckFolder [00:20:09]dirname=/storage/ofd_packets [00:20:09]CheckFolder done [00:20:09]ProducePacketName [00:20:09]name=ofd_packets/00076982 [00:20:09]NVStorageSaveData ofd_packets/00076982 [00:20:09]File name is /storage/ofd_packets/00076982 [00:20:09]Write 301 bytes [00:20:09]NVStorageSaveData done [00:20:09]OFDSenderStorePacket done [00:20:09]KKMCreateOFDPacket done [00:20:09]NVStorageSaveData kkm_last_timestamp [00:20:09]File name is /storage/kkm_last_timestamp [00:20:09]Write 4 bytes [00:20:09]NVStorageSaveData done [00:20:09]ExternCall_PrintAddStr [00:20:09]wPrintStart [00:20:09]Write to MH i2c: 01 00 00 3D 1C 59 [00:20:09]Write i2c OK [00:20:09]MH_I2C_Read... [00:20:09]Read from MH i2c: 01 [00:20:09]MH_I2C_Read... [00:20:09]Read from MH i2c: 01 07 00 [00:20:09]MH_I2C_Read... [00:20:09]Read from MH i2c: 01 07 00 3D 1C 00 00 00 00 00 FF 0F 6E [00:20:09]RasterBufferAndPrint [00:20:09]line Счет N : (1)191529 [00:20:09]line ИНН: 02508201610067 [00:20:09]line Контрольно-Кассовый Чек [00:20:09]line ПРОДАЖА [00:20:09]line ТРК (МРК, ГНК) : 43 [00:20:09]line Товар: 2710124130 [00:20:09]line Аи-92-К-5 [00:20:09]line 5.130 * 64.40 [00:20:09]line = 330.37 [00:20:09]line НДС 12% НСП 1% [00:20:09]line > о реализуемом товаре [00:20:09]line ОКРУГЛЕНИЕ: -0.37 [00:20:09]line ИТОГО: 330.00 [00:20:09]line Внесено: 330.00 [00:20:09]line СДАЧА: 0.00 [00:20:09]line НСП 1% : 2.92 [00:20:09]line НДС 12% : 35.08 [00:20:09]line Наличными: 330.00 [00:20:09]line Безнал.: 0.00 [00:20:09]line Место: АЗС № 106 "Партнер Нефть" [00:20:09]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [00:20:09]line СНО: Общий режим [00:20:09]line Чек 1 22.04.2024 00:20 [00:20:09]line Смена: 373 ФФД: 1.0 [00:20:09]line ЗНМ: 0300000141 [00:20:09]line РНМ: 0000000000091573 [00:20:09]line Версия ККМ: 001 [00:20:09]line ФМ: 0000000000874652 [00:20:09]line ФД: 76982 [00:20:09]line ФПД: 19413639448490 [00:20:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T002010&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76982&fm=19413639448490&tin=02508201610067®Number=0000000000091573&sum=33000 [00:20:10]written 0, free lines is 4095 [00:20:10]OFD Sender: Processing packet 76982 [packets to send 129, broken 128] [00:20:10]ProducePacketName [00:20:10]name=ofd_packets/00076982 [00:20:10]OFD Sender: To server: pG, [00:20:10]CommunicateWithHost lk.salyk.kg:30040 [00:20:10]ConnectInit lk.salyk.kg [00:20:10]Connected sock=10 [00:20:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 3F 55 07 01 0B 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 14 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 0D 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 3A AD 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B6 2C 01 00 35 04 06 00 11 A8 17 15 47 AA EF 2F E5 0A 56 08 E3 90 [00:20:10]Write to MH i2c: 01 00 00 67 1C 83 [00:20:10]Write i2c OK [00:20:10]MH_I2C_Read... [00:20:10]Read from MH i2c: 01 [00:20:10]MH_I2C_Read... [00:20:10]Read from MH i2c: 01 07 00 [00:20:10]MH_I2C_Read... [00:20:10]Read from MH i2c: 01 07 00 67 1C 00 00 00 00 00 E3 0C 79 [00:20:10]RasterBufferAndPrint [00:20:10]line [00:20:10]line [00:20:10]line [00:20:10]line [00:20:10]line [00:20:10]written 0, free lines is 3305 [00:20:10]MH_Cut [00:20:10]Write to MH i2c: D1 01 00 6E 1C 01 5C [00:20:10]Write i2c OK [00:20:10]MH_I2C_Read... [00:20:10]Read from MH i2c: D1 [00:20:10]MH_I2C_Read... [00:20:10]Read from MH i2c: D1 01 00 [00:20:10]MH_I2C_Read... [00:20:10]Read from MH i2c: D1 01 00 6E 1C 00 5B [00:20:10]Write to MH i2c: 01 00 00 6F 1C 8B [00:20:10]Write i2c OK [00:20:10]MH_I2C_Read... [00:20:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 3D 20 47 00 0A 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B6 2C 01 00 F4 03 04 00 BE 54 25 66 B6 04 01 00 00 4F B2 8E 92 91 D0 FF 50 [00:20:10]CommunicateWithHost err = 0 [00:20:10]CheckOFDResponse [00:20:10]1017 (14) - 77093643461234 [00:20:10]1041 (16) - 0000000000874652 [00:20:10]1040 (4) - 76982 [00:20:10]1012 (4) - 21.04.2024 18:02 [00:20:10]1206 (1) - 0 [00:20:10]OFD Sender: Remove packet 76982 [00:20:10]ProducePacketName [00:20:10]name=ofd_packets/00076982 [00:20:10]NVStorageDeleteData [00:20:11]OFD Sender: No OFD packet to send [00:20:11]*** Cut start [00:20:11]*** Partial cut [00:20:11]*** CUTSNS_PIN = 1 [00:20:11]*** CUTSNS_PIN = 0 [00:20:11]*** Brake cut motor [00:20:11]Read from MH i2c: 01 [00:20:12]MH_I2C_Read... [00:20:12]*** Stop cut motor [00:20:12]*** Cut end [00:20:12]Read from MH i2c: 01 07 00 [00:20:12]MH_I2C_Read... [00:20:12]Read from MH i2c: 01 07 00 6F 1C 00 00 00 00 00 FF 0F A0 [00:20:12]process_action close_receipt done [00:20:12]requested_data is exist [00:20:12]produce_requested_data [00:20:12]requested_item fm.sn is exist - process it [00:20:12]wFMCommunicate request_size=4 [00:20:12]MH_SAM_APDU [00:20:12]CAPDU: 80 11 00 00 [00:20:12]Write to MH i2c: E2 08 00 70 1C 80 11 00 00 00 00 00 00 06 [00:20:12]Write i2c OK [00:20:12]MH_I2C_Read... [00:20:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:20:12]Read from MH i2c: E2 [00:20:12]MH_I2C_Read... [00:20:12]Read from MH i2c: E2 17 00 [00:20:12]MH_I2C_Read... [00:20:12]Read from MH i2c: E2 17 00 70 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 59 [00:20:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [00:20:12]wFMCommunicate OK [00:20:12]requested_item fd.num is exist - process it [00:20:12]SAM_PROTO_GetFieldsCounters [00:20:12]wFMCommunicate request_size=4 [00:20:12]MH_SAM_APDU [00:20:12]CAPDU: 80 13 00 00 [00:20:12]Write to MH i2c: E2 08 00 71 1C 80 13 00 00 00 00 00 00 09 [00:20:12]Write i2c OK [00:20:12]MH_I2C_Read... [00:20:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:20:12]Read from MH i2c: E2 [00:20:12]MH_I2C_Read... [00:20:12]Read from MH i2c: E2 62 00 [00:20:12]MH_I2C_Read... [00:20:12]Read from MH i2c: E2 62 00 71 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B6 2C 01 00 0E 04 04 00 75 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 86 [00:20: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B6 2C 01 00 0E 04 04 00 75 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:20:12]wFMCommunicate OK [00:20:12]SAM_PROTO_GetFieldsCounters done [00:20:12]requested_item shift.num is exist - process it [00:20:12]requested_item shift.opened is exist - process it [00:20:12]req_shift_opened [00:20:12]FM_GetShiftState [00:20:12]SAM_PROTO_GetShiftState [00:20:12]wFMCommunicate request_size=4 [00:20:12]MH_SAM_APDU [00:20:12]CAPDU: 80 13 01 00 [00:20:12]Write to MH i2c: E2 08 00 72 1C 80 13 01 00 00 00 00 00 0B [00:20:12]Write i2c OK [00:20:12]MH_I2C_Read... [00:20:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:12]Read from MH i2c: E2 [00:20:12]MH_I2C_Read... [00:20:12]Read from MH i2c: E2 0E 00 [00:20:12]MH_I2C_Read... [00:20:12]Read from MH i2c: E2 0E 00 72 1C 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 32 [00:20:12]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [00:20:12]wFMCommunicate OK [00:20:12]SAM_PROTO_GetShiftState done [00:20:12]FM_GetShiftState done [00:20:12]req_shift_opened done [00:20:12]requested_item shift.open_date is exist - process it [00:20:12]req_shift_open_date [00:20:12]req_shift_open_date done [00:20:12]produce_requested_data done [00:20:12]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76982,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [00:20:12]process_action_free close_receipt [00:20:12]json_value_free [00:20:12]json_value_free done [00:20:12]process_json_proto returns [00:20:12]Send response to host [00:20:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76982,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [00:20:12]free response buf [00:20:12]execute_script done [00:20:12]execute_script returns [00:20:12]free content buf [00:20:12]Sock 9.Close socket [00:20:12]Sock 9.Thread stoped [00:20:16]OFD Sender: No OFD packet to send [00:20:21]OFD Sender: No OFD packet to send [00:20:26]OFD Sender: No OFD packet to send [00:20:31]OFD Sender: No OFD packet to send [00:20:36]OFD Sender: No OFD packet to send [00:20:41]OFD Sender: No OFD packet to send [00:20:46]OFD Sender: No OFD packet to send [00:20:51]OFD Sender: No OFD packet to send [00:20:56]OFD Sender: No OFD packet to send [00:21:01]OFD Sender: No OFD packet to send [00:21:06]OFD Sender: No OFD packet to send [00:21:11]OFD Sender: No OFD packet to send [00:21:16]OFD Sender: No OFD packet to send [00:21:21]OFD Sender: No OFD packet to send [00:21:26]OFD Sender: No OFD packet to send [00:21:31]OFD Sender: No OFD packet to send [00:21:36]OFD Sender: No OFD packet to send [00:21:41]OFD Sender: No OFD packet to send [00:21:46]OFD Sender: No OFD packet to send [00:21:51]OFD Sender: No OFD packet to send [00:21:56]OFD Sender: No OFD packet to send [00:22:01]OFD Sender: No OFD packet to send [00:22:06]OFD Sender: No OFD packet to send [00:22:11]OFD Sender: No OFD packet to send [00:22:16]OFD Sender: No OFD packet to send [00:22:21]OFD Sender: No OFD packet to send [00:22:26]OFD Sender: No OFD packet to send [00:22:31]OFD Sender: No OFD packet to send [00:22:36]OFD Sender: No OFD packet to send [00:22:41]OFD Sender: No OFD packet to send [00:22:46]OFD Sender: No OFD packet to send [00:22:51]OFD Sender: No OFD packet to send [00:22:56]OFD Sender: No OFD packet to send [00:23:01]OFD Sender: No OFD packet to send [00:23:06]OFD Sender: No OFD packet to send [00:23:11]OFD Sender: No OFD packet to send [00:23:16]OFD Sender: No OFD packet to send [00:23:21]OFD Sender: No OFD packet to send [00:23:26]OFD Sender: No OFD packet to send [00:23:31]OFD Sender: No OFD packet to send [00:23:36]OFD Sender: No OFD packet to send [00:23:41]OFD Sender: No OFD packet to send [00:23:46]OFD Sender: No OFD packet to send [00:23:51]OFD Sender: No OFD packet to send [00:23:56]OFD Sender: No OFD packet to send [00:24:01]OFD Sender: No OFD packet to send [00:24:06]OFD Sender: No OFD packet to send [00:24:11]OFD Sender: No OFD packet to send [00:24:16]OFD Sender: No OFD packet to send [00:24:21]OFD Sender: No OFD packet to send [00:24:26]OFD Sender: No OFD packet to send [00:24:31]OFD Sender: No OFD packet to send [00:24:36]OFD Sender: No OFD packet to send [00:24:41]OFD Sender: No OFD packet to send [00:24:46]OFD Sender: No OFD packet to send [00:24:51]OFD Sender: No OFD packet to send [00:24:56]OFD Sender: No OFD packet to send [00:25:01]OFD Sender: No OFD packet to send [00:25:06]OFD Sender: No OFD packet to send [00:25:11]OFD Sender: No OFD packet to send [00:25:16]OFD Sender: No OFD packet to send [00:25:21]OFD Sender: No OFD packet to send [00:25:26]OFD Sender: No OFD packet to send [00:25:31]OFD Sender: No OFD packet to send [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:46]accept exits with 8 [00:26:46]New connection [00:26:46]New thread 3066801508 created [00:26:46]Thread 3066944868 joined [00:26:46]Waiting for new connection... [00:26:46] Sock 8.Parse request [00:26:46]Sock 8.Check first char [00:26:46]Sock 8.First char is OK [00:26:46]request: POST /json_proto HTTP/1.0 [00:26:46]Method: POST [00:26:46]URL: /json_proto [00:26:46]Method is POST - this is cgi request [00:26:46]url: /json_proto [00:26:46]query_string will be loaded in cgi processing [00:26:46]execute_cgi json_proto POST (null) [00:26:46]execute_cgi path=json_proto method=POST [00:26:46]POST find Content-Length [00:26:46]Host: 172.17.62.5:8080 [00:26:46]Content-Length: 820 [00:26:46]Content-Type: application/json [00:26:46] [00:26:46]POST finish read [00:26:46]Found Content-Length = 820 [00:26:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191530", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 20.190, "sum" : 660.21, "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" : 660.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:26:46]execute_script... [00:26: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)191530", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 20.190, "sum" : 660.21, "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" : 660.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:26:46]POST & json_proto [00:26:46]process_json_proto [00:26:46]json parsed OK: [00:26:46]protocol is kg_v1.0 [00:26:46]action value=close_receipt [00:26:46]process_action close_receipt [00:26:46]cmd_close_receipt [00:26:46]MH_GetDate [00:26:46]Write to MH i2c: F0 00 00 73 1C 7E [00:26:46]Write i2c OK [00:26:46]MH_I2C_Read... [00:26:46]Read from MH i2c: F0 [00:26:46]MH_I2C_Read... [00:26:46]Read from MH i2c: F0 09 00 [00:26:46]MH_I2C_Read... [00:26:46]Read from MH i2c: F0 09 00 73 1C 00 C8 AE 25 66 F4 E9 65 64 2E [00:26:46]GetLastDocTimeStamp 1713745210 [00:26:46]current date 1713745608 [00:26:46]FM_GetShiftState [00:26:46]SAM_PROTO_GetShiftState [00:26:46]wFMCommunicate request_size=4 [00:26:46]MH_SAM_APDU [00:26:46]CAPDU: 80 13 01 00 [00:26:46]Write to MH i2c: E2 08 00 74 1C 80 13 01 00 00 00 00 00 0D [00:26:46]Write i2c OK [00:26:46]MH_I2C_Read... [00:26:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:46]Read from MH i2c: E2 [00:26:46]MH_I2C_Read... [00:26:46]Read from MH i2c: E2 0E 00 [00:26:46]MH_I2C_Read... [00:26:46]Read from MH i2c: E2 0E 00 74 1C 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 34 [00:26:46]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [00:26:46]wFMCommunicate OK [00:26:46]SAM_PROTO_GetShiftState done [00:26:46]FM_GetShiftState done [00:26:46]opened in 1713745124 [00:26:46]opened+sec_in_day 1713831524 [00:26:46]quantity*price = 66021 [00:26:46]sum+1 = 66022 [00:26:46]Check (price>sum+1) || (price+1 о реализуемом товаре [00:46:55]line ИТОГО: 660.21 [00:46:55]line НСП 1% : 5.84 [00:46:55]line НДС 12% : 70.11 [00:46:55]line Наличными: 0.00 [00:46:55]line Безнал.: 660.21 [00:46:55]line Место: АЗС № 106 "Партнер Нефть" [00:46:55]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [00:46:55]line СНО: Общий режим [00:46:55]line Чек 2 22.04.2024 00:26 [00:46:55]line Смена: 373 ФФД: 1.0 [00:46:55]line ЗНМ: 0300000141 [00:46:55]line РНМ: 0000000000091573 [00:46:55]line Версия ККМ: 001 [00:46:55]line Платежная система: Бакай Банк [00:46:55]line ФМ: 0000000000874652 [00:46:55]line ФД: 76983 [00:46:55]line ФПД: 272935165125168 [00:46:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T002648&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76983&fm=272935165125168&tin=02508201610067®Number=0000000000091573&sum=66021 [00:46:55]written 0, free lines is 4095 [00:46:56]Write to MH i2c: 01 00 00 46 00 46 [00:46:56]Write i2c OK [00:46:56]MH_I2C_Read... [00:46:56]Read from MH i2c: 01 [00:46:56]MH_I2C_Read... [00:46:56]Read from MH i2c: 01 07 00 [00:46:56]MH_I2C_Read... [00:46:56]Read from MH i2c: 01 07 00 46 00 00 00 00 00 00 FB 0C 54 [00:46:56]RasterBufferAndPrint [00:46:56]line [00:46:56]line [00:46:56]line [00:46:56]line [00:46:56]line [00:46:56]written 0, free lines is 3339 [00:46:56]MH_Cut [00:46:56]Write to MH i2c: D1 01 00 4D 00 01 1F [00:46:56]Write i2c OK [00:46:56]MH_I2C_Read... [00:46:56]Read from MH i2c: D1 [00:46:56]MH_I2C_Read... [00:46:56]Read from MH i2c: D1 01 00 [00:46:56]MH_I2C_Read... [00:46:56]Read from MH i2c: D1 01 00 4D 00 00 1E [00:46:56]Write to MH i2c: 01 00 00 4E 00 4E [00:46:56]Write i2c OK [00:46:56]MH_I2C_Read... [00:46:56]*** Cut start [00:46:56]*** Partial cut [00:46:56]*** CUTSNS_PIN = 1 [00:46:57]*** CUTSNS_PIN = 0 [00:46:57]*** Brake cut motor [00:46:57]Read from MH i2c: 01 *** Stop cut motor [00:46:57] [00:46:57]*** Cut end [00:46:57]MH_I2C_Read... [00:46:57]Read from MH i2c: 01 07 00 [00:46:57]MH_I2C_Read... [00:46:57]Read from MH i2c: 01 07 00 4E 00 00 00 00 00 00 FF 0F 63 [00:46:57]process_action print_doc done [00:46:57]requested_data is exist [00:46:57]produce_requested_data [00:46:57]produce_requested_data return (null) [00:46:57]process_action_free print_doc [00:46:57]json_value_free [00:46:57]json_value_free done [00:46:57]process_json_proto returns [00:46:57]Send response to host [00:46:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [00:46:57]free response buf [00:46:57]execute_script done [00:46:57]execute_script returns [00:46:57]free content buf [00:46:57]Sock 9.Close socket [00:46:57]Sock 9.Thread stoped [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:43]accept exits with 7 [00:47:43]New connection [00:47:43]New thread 3067030884 created [00:47:43]Thread 3067174244 joined [00:47:43]Waiting for new connection... [00:47:43] Sock 7.Parse request [00:47:43]Sock 7.Check first char [00:47:43]Sock 7.First char is OK [00:47:43]request: POST /json_proto HTTP/1.0 [00:47:43]Method: POST [00:47:43]URL: /json_proto [00:47:43]Method is POST - this is cgi request [00:47:43]url: /json_proto [00:47:43]query_string will be loaded in cgi processing [00:47:43]execute_cgi json_proto POST (null) [00:47:43]execute_cgi path=json_proto method=POST [00:47:43]POST find Content-Length [00:47:43]Host: 172.17.62.5:8080 [00:47:43]Content-Length: 814 [00:47:43]Content-Type: application/json [00:47:43] [00:47:43]POST finish read [00:47:43]Found Content-Length = 814 [00:47:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191531", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 0.460, "sum" : 29.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 29.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:47:43]execute_script... [00:47:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191531", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 0.460, "sum" : 29.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 29.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:47:43]POST & json_proto [00:47:43]process_json_proto [00:47:43]json parsed OK: [00:47:43]protocol is kg_v1.0 [00:47:43]action value=close_receipt [00:47:43]process_action close_receipt [00:47:43]cmd_close_receipt [00:47:43]MH_GetDate [00:47:43]Write to MH i2c: F0 00 00 4F 00 3E [00:47:43]Write i2c OK [00:47:43]MH_I2C_Read... [00:47:43]Read from MH i2c: F0 [00:47:43]MH_I2C_Read... [00:47:43]Read from MH i2c: F0 09 00 [00:47:43]MH_I2C_Read... [00:47:43]Read from MH i2c: F0 09 00 4F 00 00 B0 B3 25 66 F4 E9 65 64 DB [00:47:43]GetLastDocTimeStamp 1713745608 [00:47:43]current date 1713746864 [00:47:43]FM_GetShiftState [00:47:43]SAM_PROTO_GetShiftState [00:47:43]wFMCommunicate request_size=4 [00:47:43]MH_SAM_APDU [00:47:43]CAPDU: 80 13 01 00 [00:47:43]Write to MH i2c: E2 08 00 50 00 80 13 01 00 00 00 00 00 CD [00:47:43]Write i2c OK [00:47:43]MH_I2C_Read... [00:47:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:47:43]Read from MH i2c: E2 [00:47:43]MH_I2C_Read... [00:47:43]Read from MH i2c: E2 0E 00 [00:47:43]MH_I2C_Read... [00:47:43]Read from MH i2c: E2 0E 00 50 00 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 F4 [00:47:43]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [00:47:43]wFMCommunicate OK [00:47:43]SAM_PROTO_GetShiftState done [00:47:43]FM_GetShiftState done [00:47:43]opened in 1713745124 [00:47:43]opened+sec_in_day 1713831524 [00:47:43]quantity*price = 2962 [00:47:43]sum+1 = 2963 [00:47:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 29.62 НСП 1% : 0.26 НДС 12% : 3.14 Наличными: 0.00 Безнал.: 29.62 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 3 22.04.2024 00:47 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 76984 ФПД: 27348910376359 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T004744&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76984&fm=27348910376359&tin=02508201610067®Number=0000000000091573&sum=2962 [00:47:44]StoreToDocumentArchive [00:47:44]shift 373 fd 76984 [00:47:44]save to /storage/0373/doc_00076984 [00:47:44]save last doc name /storage/0373/doc_00076984 to /storage/kkm_last_doc_name [00:47:44]save OK [00:47:44]Clear old archive folders... [00:47:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:47:44]tlvbuf is 016FD200 [00:47:44]SAM_PROTO_ClearQueue [00:47:44]wFMCommunicate request_size=4 [00:47:44]MH_SAM_APDU [00:47:44]CAPDU: 80 09 00 00 [00:47:44]Write to MH i2c: E2 08 00 5D 00 80 09 00 00 00 00 00 00 CF [00:47:44]Write i2c OK [00:47:44]MH_I2C_Read... [00:47:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:47:45]Read from MH i2c: E2 [00:47:45]MH_I2C_Read... [00:47:45]Read from MH i2c: E2 03 00 [00:47:45]MH_I2C_Read... [00:47:45]Read from MH i2c: E2 03 00 5D 00 00 90 00 D1 [00:47:45]RAPDU: 90 00 [00:47:45]wFMCommunicate OK [00:47:45]SAM_PROTO_ClearQueue done [00:47:45]KKMCreateOFDPacket [00:47:45]OFDProtocolAddRootSTLVToBuf [00:47:45]FM_MakeSignedData [00:47:45]FM_MakeSignedData [00:47:45]SAM_PROTO_SignData [00:47:45]wFMCommunicate request_size=4 [00:47:45]MH_SAM_APDU [00:47:45]CAPDU: 80 0D 01 02 [00:47:45]Write to MH i2c: E2 08 00 5E 00 80 0D 01 02 00 00 00 00 D7 [00:47:45]Write i2c OK [00:47:45]MH_I2C_Read... [00:47:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:47:45]Read from MH i2c: E2 [00:47:45]MH_I2C_Read... [00:47:45]Read from MH i2c: E2 03 00 [00:47:45]MH_I2C_Read... [00:47:45]Read from MH i2c: E2 03 00 5E 00 00 90 00 D2 [00:47:45]RAPDU: 90 00 [00:47:45]wFMCommunicate OK [00:47:45]wFMCommunicate request_size=255 [00:47:45]MH_SAM_APDU [00:47: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 CC 01 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 92 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 0B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 B0 B3 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B8 2C 01 00 35 04 06 00 18 [00:47:45]Write to MH i2c: E2 02 01 5F 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 01 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 92 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 0B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 B0 B3 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B8 2C 01 00 35 04 06 00 18 00 00 7F [00:47:45]Write i2c OK [00:47:45]MH_I2C_Read... [00:47:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:47:45]Read from MH i2c: E2 [00:47:45]MH_I2C_Read... [00:47:45]Read from MH i2c: E2 03 00 [00:47:45]MH_I2C_Read... [00:47:45]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [00:47:45]RAPDU: 90 00 [00:47:45]wFMCommunicate OK [00:47:45]wFMCommunicate request_size=10 [00:47:45]MH_SAM_APDU [00:47:45]CAPDU: 80 0D 02 02 05 DF AA 16 85 A7 [00:47:45]Write to MH i2c: E2 0D 00 60 00 80 0D 02 02 05 00 DF AA 16 85 A7 00 00 AF [00:47:45]Write i2c OK [00:47:45]MH_I2C_Read... [00:47:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:47:45]Read from MH i2c: E2 [00:47:45]MH_I2C_Read... [00:47:45]Read from MH i2c: E2 03 00 [00:47:45]MH_I2C_Read... [00:47:45]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [00:47:45]RAPDU: 90 00 [00:47:45]wFMCommunicate OK [00:47:45]wFMCommunicate request_size=4 [00:47:45]MH_SAM_APDU [00:47:45]CAPDU: 80 0D 03 02 [00:47:45]Write to MH i2c: E2 08 00 61 00 80 0D 03 02 00 00 00 00 DC [00:47:45]Write i2c OK [00:47:45]MH_I2C_Read... [00:47:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:47:45]Read from MH i2c: E2 [00:47:45]MH_I2C_Read... [00:47:45]Read from MH i2c: E2 0B 00 [00:47:45]MH_I2C_Read... [00:47:45]Read from MH i2c: E2 0B 00 61 00 00 76 98 52 5C 9E 03 0D CD 90 00 14 [00:47:45]RAPDU: 76 98 52 5C 9E 03 0D CD 90 00 [00:47:45]wFMCommunicate OK [00:47:45]SAM_PROTO_SignData done [00:47:45]FM_MakeSignedData done [00:47:45]CreateOFDProtocolMessage [00:47:45]wFMCommunicate request_size=4 [00:47:45]MH_SAM_APDU [00:47:45]CAPDU: 80 11 00 00 [00:47:45]Write to MH i2c: E2 08 00 62 00 80 11 00 00 00 00 00 00 DC [00:47:45]Write i2c OK [00:47:45]MH_I2C_Read... [00:47:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:47:45]Read from MH i2c: E2 [00:47:45]MH_I2C_Read... [00:47:45]Read from MH i2c: E2 17 00 [00:47:45]MH_I2C_Read... [00:47:45]Read from MH i2c: E2 17 00 62 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 2F [00:47:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [00:47:45]wFMCommunicate OK [00:47:45]CreateOFDProtocolMessage done [00:47:45]OFDSenderStorePacket 76984 [00:47:45]StoreOFDPacket docnum=76984 [00:47:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 C1 FD 07 01 AC 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 CC 01 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 92 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 0B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 B0 B3 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B8 2C 01 00 35 04 06 00 18 DF AA 16 85 A7 76 98 52 5C 9E 03 0D CD [00:47:45]CheckFolder [00:47:45]dirname=/storage/ofd_packets [00:47:45]CheckFolder done [00:47:45]ProducePacketName [00:47:45]name=ofd_packets/00076984 [00:47:45]NVStorageSaveData ofd_packets/00076984 [00:47:45]File name is /storage/ofd_packets/00076984 [00:47:45]Write 301 bytes [00:47:45]NVStorageSaveData done [00:47:45]OFDSenderStorePacket done [00:47:45]KKMCreateOFDPacket done [00:47:45]NVStorageSaveData kkm_last_timestamp [00:47:45]File name is /storage/kkm_last_timestamp [00:47:45]Write 4 bytes [00:47:45]NVStorageSaveData done [00:47:45]ExternCall_PrintAddStr [00:47:45]wPrintStart [00:47:45]Write to MH i2c: 01 00 00 63 00 63 [00:47:45]Write i2c OK [00:47:45]MH_I2C_Read... [00:47:45]Read from MH i2c: 01 [00:47:45]MH_I2C_Read... [00:47:45]Read from MH i2c: 01 07 00 [00:47:45]MH_I2C_Read... [00:47:45]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [00:47:45]RasterBufferAndPrint [00:47:45]line Счет N : (1)191531 [00:47:45]line ИНН: 02508201610067 [00:47:45]line Контрольно-Кассовый Чек [00:47:45]line ПРОДАЖА [00:47:45]line ТРК (МРК, ГНК) : 43 [00:47:45]line Товар: 2710124130 [00:47:45]line Аи-92-К-5 [00:47:45]line 0.460 * 64.40 [00:47:45]line = 29.62 [00:47:45]line НДС 12% НСП 1% [00:47:45]line > о реализуемом товаре [00:47:45]line ИТОГО: 29.62 [00:47:45]line НСП 1% : 0.26 [00:47:45]line НДС 12% : 3.14 [00:47:45]line Наличными: 0.00 [00:47:45]line Безнал.: 29.62 [00:47:45]line Место: АЗС № 106 "Партнер Нефть" [00:47:45]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [00:47:45]line СНО: Общий режим [00:47:45]line Чек 3 22.04.2024 00:47 [00:47:45]line Смена: 373 ФФД: 1.0 [00:47:45]line ЗНМ: 0300000141 [00:47:45]line РНМ: 0000000000091573 [00:47:45]line Версия ККМ: 001 [00:47:45]line Платежная система: Бакай Банк [00:47:45]line ФМ: 0000000000874652 [00:47:45]line ФД: 76984 [00:47:45]line ФПД: 27348910376359 [00:47:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T004744&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76984&fm=27348910376359&tin=02508201610067®Number=0000000000091573&sum=2962 [00:47:45]written 0, free lines is 4095 [00:47:45]OFD Sender: Processing packet 76984 [packets to send 129, broken 128] [00:47:45]ProducePacketName [00:47:45]name=ofd_packets/00076984 [00:47:45]OFD Sender: To server: pG, [00:47:45]CommunicateWithHost lk.salyk.kg:30040 [00:47:45]ConnectInit lk.salyk.kg [00:47:45]Connected sock=10 [00:47:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 C1 FD 07 01 AC 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 CC 01 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 92 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 0B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 B0 B3 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B8 2C 01 00 35 04 06 00 18 DF AA 16 85 A7 76 98 52 5C 9E 03 0D CD [00:47:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 34 DA 47 00 58 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B8 2C 01 00 F4 03 04 00 34 5B 25 66 B6 04 01 00 00 F8 39 5E 0A 74 AE D7 12 [00:47:45]CommunicateWithHost err = 0 [00:47:45]CheckOFDResponse [00:47:45]1017 (14) - 77093643461234 [00:47:45]1041 (16) - 0000000000874652 [00:47:45]1040 (4) - 76984 [00:47:45]1012 (4) - 21.04.2024 18:30 [00:47:45]1206 (1) - 0 [00:47:45]OFD Sender: Remove packet 76984 [00:47:45]ProducePacketName [00:47:45]name=ofd_packets/00076984 [00:47:45]NVStorageDeleteData [00:47:45]Write to MH i2c: 01 00 00 8C 00 8C [00:47:45]Write i2c OK [00:47:45]MH_I2C_Read... [00:47:45]Read from MH i2c: 01 [00:47:45]MH_I2C_Read... [00:47:45]Read from MH i2c: 01 07 00 [00:47:45]MH_I2C_Read... [00:47:45]Read from MH i2c: 01 07 00 8C 00 00 00 00 00 00 F8 0C 97 [00:47:45]RasterBufferAndPrint [00:47:45]line [00:47:45]line [00:47:45]line [00:47:45]line [00:47:45]line [00:47:45]written 0, free lines is 3327 [00:47:45]MH_Cut [00:47:45]Write to MH i2c: D1 01 00 93 00 01 65 [00:47:45]Write i2c OK [00:47:45]MH_I2C_Read... [00:47:45]Read from MH i2c: D1 [00:47:45]MH_I2C_Read... [00:47:45]Read from MH i2c: D1 01 00 [00:47:45]MH_I2C_Read... [00:47:45]Read from MH i2c: D1 01 00 93 00 00 64 [00:47:45]Write to MH i2c: 01 00 00 94 00 94 [00:47:45]Write i2c OK [00:47:45]MH_I2C_Read... [00:47:46]OFD Sender: No OFD packet to send [00:47:46]*** Cut start [00:47:46]*** Partial cut [00:47:46]*** CUTSNS_PIN = 1 [00:47:46]*** CUTSNS_PIN = 0 [00:47:46]*** Brake cut motor [00:47:47]Read from MH i2c: 01 [00:47:47]MH_I2C_Read... [00:47:47]*** Stop cut motor [00:47:47]*** Cut end [00:47:47]Read from MH i2c: 01 07 00 [00:47:47]MH_I2C_Read... [00:47:47]Read from MH i2c: 01 07 00 94 00 00 00 00 00 00 FF 0F A9 [00:47:47]process_action close_receipt done [00:47:47]requested_data is exist [00:47:47]produce_requested_data [00:47:47]requested_item fm.sn is exist - process it [00:47:47]wFMCommunicate request_size=4 [00:47:47]MH_SAM_APDU [00:47:47]CAPDU: 80 11 00 00 [00:47:47]Write to MH i2c: E2 08 00 95 00 80 11 00 00 00 00 00 00 0F [00:47:47]Write i2c OK [00:47:47]MH_I2C_Read... [00:47:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:47:47]Read from MH i2c: E2 [00:47:47]MH_I2C_Read... [00:47:47]Read from MH i2c: E2 17 00 [00:47:47]MH_I2C_Read... [00:47:47]Read from MH i2c: E2 17 00 95 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 62 [00:47:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [00:47:47]wFMCommunicate OK [00:47:47]requested_item fd.num is exist - process it [00:47:47]SAM_PROTO_GetFieldsCounters [00:47:47]wFMCommunicate request_size=4 [00:47:47]MH_SAM_APDU [00:47:47]CAPDU: 80 13 00 00 [00:47:47]Write to MH i2c: E2 08 00 96 00 80 13 00 00 00 00 00 00 12 [00:47:47]Write i2c OK [00:47:47]MH_I2C_Read... [00:47:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:47:47]Read from MH i2c: E2 [00:47:47]MH_I2C_Read... [00:47:47]Read from MH i2c: E2 62 00 [00:47:47]MH_I2C_Read... [00:47:47]Read from MH i2c: E2 62 00 96 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B8 2C 01 00 0E 04 04 00 75 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 97 [00:47:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B8 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:47:47]wFMCommunicate OK [00:47:47]SAM_PROTO_GetFieldsCounters done [00:47:47]requested_item shift.num is exist - process it [00:47:47]requested_item shift.opened is exist - process it [00:47:47]req_shift_opened [00:47:47]FM_GetShiftState [00:47:47]SAM_PROTO_GetShiftState [00:47:47]wFMCommunicate request_size=4 [00:47:47]MH_SAM_APDU [00:47:47]CAPDU: 80 13 01 00 [00:47:47]Write to MH i2c: E2 08 00 97 00 80 13 01 00 00 00 00 00 14 [00:47:47]Write i2c OK [00:47:47]MH_I2C_Read... [00:47:47]Read from MH i2c: E2 [00:47:47]MH_I2C_Read... [00:47:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:47:47]Read from MH i2c: E2 0E 00 [00:47:47]MH_I2C_Read... [00:47:47]Read from MH i2c: E2 0E 00 97 00 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 3B [00:47:47]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [00:47:47]wFMCommunicate OK [00:47:47]SAM_PROTO_GetShiftState done [00:47:47]FM_GetShiftState done [00:47:47]req_shift_opened done [00:47:47]requested_item shift.open_date is exist - process it [00:47:47]req_shift_open_date [00:47:47]req_shift_open_date done [00:47:47]produce_requested_data done [00:47:47]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76984,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [00:47:47]process_action_free close_receipt [00:47:47]json_value_free [00:47:47]json_value_free done [00:47:47]process_json_proto returns [00:47:47]Send response to host [00:47:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76984,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [00:47:47]free response buf [00:47:47]execute_script done [00:47:47]execute_script returns [00:47:47]free content buf [00:47:47]Sock 7.Close socket [00:47:47]Sock 7.Thread stoped [00:47:51]OFD Sender: No OFD packet to send [00:47:56]OFD Sender: No OFD packet to send [00:48:01]OFD Sender: No OFD packet to send [00:48:06]OFD Sender: No OFD packet to send [00:48:11]OFD Sender: No OFD packet to send [00:48:16]OFD Sender: No OFD packet to send [00:48:21]OFD Sender: No OFD packet to send [00:48:26]OFD Sender: No OFD packet to send [00:48:31]OFD Sender: No OFD packet to send [00:48:36]OFD Sender: No OFD packet to send [00:48:37]accept exits with 9 [00:48:37]New connection [00:48:37]New thread 3067174244 created [00:48:37]Thread 3067030884 joined [00:48:37]Waiting for new connection... [00:48:37] Sock 9.Parse request [00:48:37]Sock 9.Check first char [00:48:37]Sock 9.First char is OK [00:48:37]request: POST /json_proto HTTP/1.0 [00:48:37]Method: POST [00:48:37]URL: /json_proto [00:48:37]Method is POST - this is cgi request [00:48:37]url: /json_proto [00:48:37]query_string will be loaded in cgi processing [00:48:37]execute_cgi json_proto POST (null) [00:48:37]execute_cgi path=json_proto method=POST [00:48:37]POST find Content-Length [00:48:37]Host: 172.17.62.5:8080 [00:48:37]Content-Length: 816 [00:48:37]Content-Type: application/json [00:48:37] [00:48:37]POST finish read [00:48:37]Found Content-Length = 816 [00:48:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191532", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.320, "sum" : 471.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 471.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:48:37]execute_script... [00:48:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191532", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.320, "sum" : 471.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 471.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:48:37]POST & json_proto [00:48:37]process_json_proto [00:48:37]json parsed OK: [00:48:37]protocol is kg_v1.0 [00:48:37]action value=close_receipt [00:48:37]process_action close_receipt [00:48:37]cmd_close_receipt [00:48:37]MH_GetDate [00:48:37]Write to MH i2c: F0 00 00 98 00 87 [00:48:37]Write i2c OK [00:48:37]MH_I2C_Read... [00:48:37]Read from MH i2c: F0 [00:48:37]MH_I2C_Read... [00:48:37]Read from MH i2c: F0 09 00 [00:48:37]MH_I2C_Read... [00:48:37]Read from MH i2c: F0 09 00 98 00 00 E6 B3 25 66 F4 E9 65 64 5A [00:48:37]GetLastDocTimeStamp 1713746864 [00:48:37]current date 1713746918 [00:48:37]FM_GetShiftState [00:48:37]SAM_PROTO_GetShiftState [00:48:37]wFMCommunicate request_size=4 [00:48:37]MH_SAM_APDU [00:48:37]CAPDU: 80 13 01 00 [00:48:37]Write to MH i2c: E2 08 00 99 00 80 13 01 00 00 00 00 00 16 [00:48:37]Write i2c OK [00:48:37]MH_I2C_Read... [00:48:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:48:37]Read from MH i2c: E2 [00:48:37]MH_I2C_Read... [00:48:37]Read from MH i2c: E2 0E 00 [00:48:37]MH_I2C_Read... [00:48:37]Read from MH i2c: E2 0E 00 99 00 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 3D [00:48:37]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [00:48:37]wFMCommunicate OK [00:48:37]SAM_PROTO_GetShiftState done [00:48:37]FM_GetShiftState done [00:48:37]opened in 1713745124 [00:48:37]opened+sec_in_day 1713831524 [00:48:37]quantity*price = 47140 [00:48:37]sum+1 = 47142 [00:48:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 471.41 НСП 1% : 4.17 НДС 12% : 50.06 Наличными: 0.00 Безнал.: 471.41 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 4 22.04.2024 00:48 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 76985 ФПД: 163076465619971 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T004838&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76985&fm=163076465619971&tin=02508201610067®Number=0000000000091573&sum=47141 [00:48:38]StoreToDocumentArchive [00:48:38]shift 373 fd 76985 [00:48:38]save to /storage/0373/doc_00076985 [00:48:38]save last doc name /storage/0373/doc_00076985 to /storage/kkm_last_doc_name [00:48:38]save OK [00:48:38]Clear old archive folders... [00:48:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:48:38]tlvbuf is 01752B20 [00:48:38]SAM_PROTO_ClearQueue [00:48:38]wFMCommunicate request_size=4 [00:48:38]MH_SAM_APDU [00:48:38]CAPDU: 80 09 00 00 [00:48:38]Write to MH i2c: E2 08 00 A6 00 80 09 00 00 00 00 00 00 18 [00:48:38]Write i2c OK [00:48:38]MH_I2C_Read... [00:48:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:48:38]Read from MH i2c: E2 [00:48:38]MH_I2C_Read... [00:48:38]Read from MH i2c: E2 03 00 [00:48:38]MH_I2C_Read... [00:48:38]Read from MH i2c: E2 03 00 A6 00 00 90 00 1A [00:48:38]RAPDU: 90 00 [00:48:38]wFMCommunicate OK [00:48:38]SAM_PROTO_ClearQueue done [00:48:38]KKMCreateOFDPacket [00:48:38]OFDProtocolAddRootSTLVToBuf [00:48:38]FM_MakeSignedData [00:48:38]FM_MakeSignedData [00:48:38]SAM_PROTO_SignData [00:48:38]wFMCommunicate request_size=4 [00:48:38]MH_SAM_APDU [00:48:38]CAPDU: 80 0D 01 02 [00:48:38]Write to MH i2c: E2 08 00 A7 00 80 0D 01 02 00 00 00 00 20 [00:48:38]Write i2c OK [00:48:38]MH_I2C_Read... [00:48:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:48:38]Read from MH i2c: E2 [00:48:38]MH_I2C_Read... [00:48:38]Read from MH i2c: E2 03 00 [00:48:38]MH_I2C_Read... [00:48:38]Read from MH i2c: E2 03 00 A7 00 00 90 00 1B [00:48:38]RAPDU: 90 00 [00:48:38]wFMCommunicate OK [00:48:38]wFMCommunicate request_size=255 [00:48:38]MH_SAM_APDU [00: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 98 1C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 25 B8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 25 B8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 25 B8 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 E6 B3 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B9 2C 01 00 35 04 06 00 94 [00:48:38]Write to MH i2c: E2 02 01 A8 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 1C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 25 B8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 25 B8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 25 B8 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 E6 B3 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B9 2C 01 00 35 04 06 00 94 00 00 11 [00:48:38]Write i2c OK [00:48:38]MH_I2C_Read... [00:48:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:48:38]Read from MH i2c: E2 [00:48:38]MH_I2C_Read... [00:48:38]Read from MH i2c: E2 03 00 [00:48:38]MH_I2C_Read... [00:48:38]Read from MH i2c: E2 03 00 A8 00 00 90 00 1C [00:48:38]RAPDU: 90 00 [00:48:38]wFMCommunicate OK [00:48:38]wFMCommunicate request_size=10 [00:48:38]MH_SAM_APDU [00:48:38]CAPDU: 80 0D 02 02 05 51 32 CD F4 03 [00:48:38]Write to MH i2c: E2 0D 00 A9 00 80 0D 02 02 05 00 51 32 CD F4 03 00 00 74 [00:48:38]Write i2c OK [00:48:38]MH_I2C_Read... [00:48:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:48:38]Read from MH i2c: E2 [00:48:38]MH_I2C_Read... [00:48:38]Read from MH i2c: E2 03 00 [00:48:38]MH_I2C_Read... [00:48:38]Read from MH i2c: E2 03 00 A9 00 00 90 00 1D [00:48:38]RAPDU: 90 00 [00:48:38]wFMCommunicate OK [00:48:38]wFMCommunicate request_size=4 [00:48:38]MH_SAM_APDU [00:48:38]CAPDU: 80 0D 03 02 [00:48:38]Write to MH i2c: E2 08 00 AA 00 80 0D 03 02 00 00 00 00 25 [00:48:38]Write i2c OK [00:48:38]MH_I2C_Read... [00:48:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:48:38]Read from MH i2c: E2 [00:48:38]MH_I2C_Read... [00:48:38]Read from MH i2c: E2 0B 00 [00:48:38]MH_I2C_Read... [00:48:38]Read from MH i2c: E2 0B 00 AA 00 00 F4 57 46 0F E9 BD FF F7 90 00 62 [00:48:38]RAPDU: F4 57 46 0F E9 BD FF F7 90 00 [00:48:38]wFMCommunicate OK [00:48:38]SAM_PROTO_SignData done [00:48:38]FM_MakeSignedData done [00:48:38]CreateOFDProtocolMessage [00:48:38]wFMCommunicate request_size=4 [00:48:38]MH_SAM_APDU [00:48:38]CAPDU: 80 11 00 00 [00:48:38]Write to MH i2c: E2 08 00 AB 00 80 11 00 00 00 00 00 00 25 [00:48:38]Write i2c OK [00:48:38]MH_I2C_Read... [00:48:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:48:39]Read from MH i2c: E2 [00:48:39]MH_I2C_Read... [00:48:39]Read from MH i2c: E2 17 00 [00:48:39]MH_I2C_Read... [00:48:39]Read from MH i2c: E2 17 00 AB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 78 [00:48:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [00:48:39]wFMCommunicate OK [00:48:39]CreateOFDProtocolMessage done [00:48:39]OFDSenderStorePacket 76985 [00:48:39]StoreOFDPacket docnum=76985 [00:48:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 9A 0F 07 01 A1 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 1C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 25 B8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 25 B8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 25 B8 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 E6 B3 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B9 2C 01 00 35 04 06 00 94 51 32 CD F4 03 F4 57 46 0F E9 BD FF F7 [00:48:39]CheckFolder [00:48:39]dirname=/storage/ofd_packets [00:48:39]CheckFolder done [00:48:39]ProducePacketName [00:48:39]name=ofd_packets/00076985 [00:48:39]NVStorageSaveData ofd_packets/00076985 [00:48:39]File name is /storage/ofd_packets/00076985 [00:48:39]Write 301 bytes [00:48:39]NVStorageSaveData done [00:48:39]OFDSenderStorePacket done [00:48:39]KKMCreateOFDPacket done [00:48:39]NVStorageSaveData kkm_last_timestamp [00:48:39]File name is /storage/kkm_last_timestamp [00:48:39]Write 4 bytes [00:48:39]NVStorageSaveData done [00:48:39]ExternCall_PrintAddStr [00:48:39]wPrintStart [00:48:39]Write to MH i2c: 01 00 00 AC 00 AC [00:48:39]Write i2c OK [00:48:39]MH_I2C_Read... [00:48:39]Read from MH i2c: 01 [00:48:39]MH_I2C_Read... [00:48:39]Read from MH i2c: 01 07 00 [00:48:39]MH_I2C_Read... [00:48:39]Read from MH i2c: 01 07 00 AC 00 00 00 00 00 00 FF 0F C1 [00:48:39]RasterBufferAndPrint [00:48:39]line Счет N : (1)191532 [00:48:39]line ИНН: 02508201610067 [00:48:39]line Контрольно-Кассовый Чек [00:48:39]line ПРОДАЖА [00:48:39]line ТРК (МРК, ГНК) : 43 [00:48:39]line Товар: 2710124130 [00:48:39]line Аи-92-К-5 [00:48:39]line 7.320 * 64.40 [00:48:39]line = 471.41 [00:48:39]line НДС 12% НСП 1% [00:48:39]line > о реализуемом товаре [00:48:39]line ИТОГО: 471.41 [00:48:39]line НСП 1% : 4.17 [00:48:39]line НДС 12% : 50.06 [00:48:39]line Наличными: 0.00 [00:48:39]line Безнал.: 471.41 [00:48:39]line Место: АЗС № 106 "Партнер Нефть" [00:48:39]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [00:48:39]line СНО: Общий режим [00:48:39]line Чек 4 22.04.2024 00:48 [00:48:39]line Смена: 373 ФФД: 1.0 [00:48:39]line ЗНМ: 0300000141 [00:48:39]line РНМ: 0000000000091573 [00:48:39]line Версия ККМ: 001 [00:48:39]line Платежная система: Бакай Банк [00:48:39]line ФМ: 0000000000874652 [00:48:39]line ФД: 76985 [00:48:39]line ФПД: 163076465619971 [00:48:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T004838&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76985&fm=163076465619971&tin=02508201610067®Number=0000000000091573&sum=47141 [00:48:39]written 0, free lines is 4095 [00:48:39]OFD Sender: Processing packet 76985 [packets to send 129, broken 128] [00:48:39]ProducePacketName [00:48:39]name=ofd_packets/00076985 [00:48:39]OFD Sender: To server: pG, [00:48:39]CommunicateWithHost lk.salyk.kg:30040 [00:48:39]ConnectInit lk.salyk.kg [00:48:39]Connected sock=10 [00:48:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 9A 0F 07 01 A1 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 1C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 25 B8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 25 B8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 25 B8 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 E6 B3 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B9 2C 01 00 35 04 06 00 94 51 32 CD F4 03 F4 57 46 0F E9 BD FF F7 [00:48:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 34 23 47 00 C5 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B9 2C 01 00 F4 03 04 00 69 5B 25 66 B6 04 01 00 00 AE 55 3C A7 2A 63 FB DC [00:48:39]CommunicateWithHost err = 0 [00:48:39]CheckOFDResponse [00:48:39]1017 (14) - 77093643461234 [00:48:39]1041 (16) - 0000000000874652 [00:48:39]1040 (4) - 76985 [00:48:39]1012 (4) - 21.04.2024 18:31 [00:48:39]1206 (1) - 0 [00:48:39]OFD Sender: Remove packet 76985 [00:48:39]ProducePacketName [00:48:39]name=ofd_packets/00076985 [00:48:39]NVStorageDeleteData [00:48:39]Write to MH i2c: 01 00 00 D5 00 D5 [00:48:39]Write i2c OK [00:48:39]MH_I2C_Read... [00:48:39]Read from MH i2c: 01 [00:48:39]MH_I2C_Read... [00:48:39]Read from MH i2c: 01 07 00 [00:48:39]MH_I2C_Read... [00:48:39]Read from MH i2c: 01 07 00 D5 00 00 00 00 00 00 FB 0C E3 [00:48:39]RasterBufferAndPrint [00:48:39]line [00:48:39]line [00:48:39]line [00:48:39]line [00:48:39]line [00:48:39]written 0, free lines is 3329 [00:48:39]MH_Cut [00:48:39]Write to MH i2c: D1 01 00 DC 00 01 AE [00:48:39]Write i2c OK [00:48:39]MH_I2C_Read... [00:48:39]Read from MH i2c: D1 [00:48:39]MH_I2C_Read... [00:48:39]Read from MH i2c: D1 01 00 [00:48:39]MH_I2C_Read... [00:48:39]Read from MH i2c: D1 01 00 DC 00 00 AD [00:48:39]Write to MH i2c: 01 00 00 DD 00 DD [00:48:39]Write i2c OK [00:48:39]MH_I2C_Read... [00:48:39]OFD Sender: No OFD packet to send [00:48:40]*** Cut start [00:48:40]*** Partial cut [00:48:40]*** CUTSNS_PIN = 1 [00:48:40]*** CUTSNS_PIN = 0 [00:48:40]*** Brake cut motor [00:48:40]Read from MH i2c: 01 [00:48:40]MH_I2C_Read... [00:48:40]*** Stop cut motor [00:48:40]*** Cut end [00:48:40]Read from MH i2c: 01 07 00 [00:48:40]MH_I2C_Read... [00:48:40]Read from MH i2c: 01 07 00 DD 00 00 00 00 00 00 FF 0F F2 [00:48:40]process_action close_receipt done [00:48:40]requested_data is exist [00:48:40]produce_requested_data [00:48:40]requested_item fm.sn is exist - process it [00:48:40]wFMCommunicate request_size=4 [00:48:40]MH_SAM_APDU [00:48:40]CAPDU: 80 11 00 00 [00:48:40]Write to MH i2c: E2 08 00 DE 00 80 11 00 00 00 00 00 00 58 [00:48:40]Write i2c OK [00:48:40]MH_I2C_Read... [00:48:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:48:40]Read from MH i2c: E2 [00:48:40]MH_I2C_Read... [00:48:40]Read from MH i2c: E2 17 00 [00:48:40]MH_I2C_Read... [00:48:40]Read from MH i2c: E2 17 00 DE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 AB [00:48:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [00:48:40]wFMCommunicate OK [00:48:40]requested_item fd.num is exist - process it [00:48:40]SAM_PROTO_GetFieldsCounters [00:48:40]wFMCommunicate request_size=4 [00:48:40]MH_SAM_APDU [00:48:40]CAPDU: 80 13 00 00 [00:48:40]Write to MH i2c: E2 08 00 DF 00 80 13 00 00 00 00 00 00 5B [00:48:40]Write i2c OK [00:48:40]MH_I2C_Read... [00:48:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:48:41]Read from MH i2c: E2 [00:48:41]MH_I2C_Read... [00:48:41]Read from MH i2c: E2 62 00 [00:48:41]MH_I2C_Read... [00:48:41]Read from MH i2c: E2 62 00 DF 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B9 2C 01 00 0E 04 04 00 75 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 E4 [00:48:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B9 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:48:41]wFMCommunicate OK [00:48:41]SAM_PROTO_GetFieldsCounters done [00:48:41]requested_item shift.num is exist - process it [00:48:41]requested_item shift.opened is exist - process it [00:48:41]req_shift_opened [00:48:41]FM_GetShiftState [00:48:41]SAM_PROTO_GetShiftState [00:48:41]wFMCommunicate request_size=4 [00:48:41]MH_SAM_APDU [00:48:41]CAPDU: 80 13 01 00 [00:48:41]Write to MH i2c: E2 08 00 E0 00 80 13 01 00 00 00 00 00 5D [00:48:41]Write i2c OK [00:48:41]MH_I2C_Read... [00:48:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:48:41]Read from MH i2c: E2 [00:48:41]MH_I2C_Read... [00:48:41]Read from MH i2c: E2 0E 00 [00:48:41]MH_I2C_Read... [00:48:41]Read from MH i2c: E2 0E 00 E0 00 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 84 [00:48:41]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [00:48:41]wFMCommunicate OK [00:48:41]SAM_PROTO_GetShiftState done [00:48:41]FM_GetShiftState done [00:48:41]req_shift_opened done [00:48:41]requested_item shift.open_date is exist - process it [00:48:41]req_shift_open_date [00:48:41]req_shift_open_date done [00:48:41]produce_requested_data done [00:48:41]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76985,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [00:48:41]process_action_free close_receipt [00:48:41]json_value_free [00:48:41]json_value_free done [00:48:41]process_json_proto returns [00:48:41]Send response to host [00:48:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76985,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [00:48:41]free response buf [00:48:41]execute_script done [00:48:41]execute_script returns [00:48:41]free content buf [00:48:41]Sock 9.Close socket [00:48:41]Sock 9.Thread stoped [00:48:44]OFD Sender: No OFD packet to send [00:48:49]OFD Sender: No OFD packet to send [00:48:54]OFD Sender: No OFD packet to send [00:48:59]OFD Sender: No OFD packet to send [00:49:04]OFD Sender: No OFD packet to send [00:49:09]OFD Sender: No OFD packet to send [00:49:14]OFD Sender: No OFD packet to send [00:49:19]OFD Sender: No OFD packet to send [00:49:25]OFD Sender: No OFD packet to send [00:49:30]OFD Sender: No OFD packet to send [00:49:35]OFD Sender: No OFD packet to send [00:49:40]OFD Sender: No OFD packet to send [00:49:45]OFD Sender: No OFD packet to send [00:49:50]OFD Sender: No OFD packet to send [00:49:55]OFD Sender: No OFD packet to send [00:50:00]OFD Sender: No OFD packet to send [00:50:05]OFD Sender: No OFD packet to send [00:50:10]OFD Sender: No OFD packet to send [00:50:15]OFD Sender: No OFD packet to send [00:50:20]OFD Sender: No OFD packet to send [00:50:25]OFD Sender: No OFD packet to send [00:50:30]OFD Sender: No OFD packet to send [00:50:35]OFD Sender: No OFD packet to send [00:50:40]OFD Sender: No OFD packet to send [00:50:45]OFD Sender: No OFD packet to send [00:50:50]OFD Sender: No OFD packet to send [00:50:55]OFD Sender: No OFD packet to send [00:51:00]OFD Sender: No OFD packet to send [00:51:05]OFD Sender: No OFD packet to send [00:51:10]OFD Sender: No OFD packet to send [00:51:15]OFD Sender: No OFD packet to send [00:51:20]OFD Sender: No OFD packet to send [00:51:25]OFD Sender: No OFD packet to send [00:51:30]OFD Sender: No OFD packet to send [00:51:35]OFD Sender: No OFD packet to send [00:51:40]OFD Sender: No OFD packet to send [00:51:45]OFD Sender: No OFD packet to send [00:51:50]OFD Sender: No OFD packet to send [00:51:55]OFD Sender: No OFD packet to send [00:52:00]OFD Sender: No OFD packet to send [00:52:05]OFD Sender: No OFD packet to send [00:52:10]OFD Sender: No OFD packet to send [00:52:15]OFD Sender: No OFD packet to send [00:52:20]OFD Sender: No OFD packet to send [00:52:25]OFD Sender: No OFD packet to send [00:52:30]OFD Sender: No OFD packet to send [00:52:35]OFD Sender: No OFD packet to send [00:52:40]OFD Sender: No OFD packet to send [00:52:45]OFD Sender: No OFD packet to send [00:52:50]OFD Sender: No OFD packet to send [00:52:55]OFD Sender: No OFD packet to send [00:53:00]OFD Sender: No OFD packet to send [00:53:05]OFD Sender: No OFD packet to send [00:53:10]OFD Sender: No OFD packet to send [00:53:15]OFD Sender: No OFD packet to send [00:53:20]OFD Sender: No OFD packet to send [00:53:25]OFD Sender: No OFD packet to send [00:53:30]OFD Sender: No OFD packet to send [00:53:35]OFD Sender: No OFD packet to send [00:53:40]OFD Sender: No OFD packet to send [00:53:45]OFD Sender: No OFD packet to send [00:53:50]OFD Sender: No OFD packet to send [00:53:55]OFD Sender: No OFD packet to send [00:54:00]OFD Sender: No OFD packet to send [00:54:05]OFD Sender: No OFD packet to send [00:54:10]OFD Sender: No OFD packet to send [00:54:15]OFD Sender: No OFD packet to send [00:54:20]OFD Sender: No OFD packet to send [00:54:25]OFD Sender: No OFD packet to send [00:54:30]OFD Sender: No OFD packet to send [00:54:35]OFD Sender: No OFD packet to send [00:54:40]OFD Sender: No OFD packet to send [00:54:45]OFD Sender: No OFD packet to send [00:54:50]OFD Sender: No OFD packet to send [00:54:55]OFD Sender: No OFD packet to send [00:55:00]OFD Sender: No OFD packet to send [00:55:05]OFD Sender: No OFD packet to send [00:55:10]OFD Sender: No OFD packet to send [00:55:15]OFD Sender: No OFD packet to send [00:55:20]OFD Sender: No OFD packet to send [00:55:25]OFD Sender: No OFD packet to send [00:55:30]OFD Sender: No OFD packet to send [00:55:35]OFD Sender: No OFD packet to send [00:55:40]OFD Sender: No OFD packet to send [00:55:45]OFD Sender: No OFD packet to send [00:55:50]OFD Sender: No OFD packet to send [00:55:55]OFD Sender: No OFD packet to send [00:56:00]OFD Sender: No OFD packet to send [00:56:05]OFD Sender: No OFD packet to send [00:56:10]OFD Sender: No OFD packet to send [00:56:15]OFD Sender: No OFD packet to send [00:56:20]OFD Sender: No OFD packet to send [00:56:25]OFD Sender: No OFD packet to send [00:56:30]OFD Sender: No OFD packet to send [00:56:35]OFD Sender: No OFD packet to send [00:56:40]OFD Sender: No OFD packet to send [00:56:45]OFD Sender: No OFD packet to send [00:56:50]OFD Sender: No OFD packet to send [00:56:55]OFD Sender: No OFD packet to send [00:57:00]OFD Sender: No OFD packet to send [00:57:05]OFD Sender: No OFD packet to send [00:57:10]OFD Sender: No OFD packet to send [00:57:15]OFD Sender: No OFD packet to send [00:57:20]OFD Sender: No OFD packet to send [00:57:25]OFD Sender: No OFD packet to send [00:57:30]OFD Sender: No OFD packet to send [00:57:35]OFD Sender: No OFD packet to send [00:57:40]OFD Sender: No OFD packet to send [00:57:45]OFD Sender: No OFD packet to send [00:57:50]OFD Sender: No OFD packet to send [00:57:55]OFD Sender: No OFD packet to send [00:58:00]OFD Sender: No OFD packet to send [00:58:05]OFD Sender: No OFD packet to send [00:58:10]OFD Sender: No OFD packet to send [00:58:15]OFD Sender: No OFD packet to send [00:58:20]OFD Sender: No OFD packet to send [00:58:25]OFD Sender: No OFD packet to send [00:58:30]OFD Sender: No OFD packet to send [00:58:35]OFD Sender: No OFD packet to send [00:58:40]OFD Sender: No OFD packet to send [00:58:45]OFD Sender: No OFD packet to send [00:58:50]OFD Sender: No OFD packet to send [00:58:55]OFD Sender: No OFD packet to send [00:59:00]OFD Sender: No OFD packet to send [00:59:05]OFD Sender: No OFD packet to send [00:59:10]OFD Sender: No OFD packet to send [00:59:15]OFD Sender: No OFD packet to send [00:59:20]OFD Sender: No OFD packet to send [00:59:25]OFD Sender: No OFD packet to send [00:59:30]OFD Sender: No OFD packet to send [00:59:35]OFD Sender: No OFD packet to send [00:59:40]OFD Sender: No OFD packet to send [00:59:45]OFD Sender: No OFD packet to send [00:59:50]OFD Sender: No OFD packet to send [00:59:55]OFD Sender: No OFD packet to send [01:00:00]OFD Sender: No OFD packet to send [01:00:05]OFD Sender: No OFD packet to send [01:00:10]OFD Sender: No OFD packet to send [01:00:15]OFD Sender: No OFD packet to send [01:00:20]OFD Sender: No OFD packet to send [01:00:25]OFD Sender: No OFD packet to send [01:00:30]OFD Sender: No OFD packet to send [01:00:35]OFD Sender: No OFD packet to send [01:00:40]OFD Sender: No OFD packet to send [01:00:45]OFD Sender: No OFD packet to send [01:00:50]OFD Sender: No OFD packet to send [01:00:55]OFD Sender: No OFD packet to send [01:01:00]OFD Sender: No OFD packet to send [01:01:05]OFD Sender: No OFD packet to send [01:01:10]OFD Sender: No OFD packet to send [01:01:15]OFD Sender: No OFD packet to send [01:01:20]OFD Sender: No OFD packet to send [01:01:25]OFD Sender: No OFD packet to send [01:01:30]OFD Sender: No OFD packet to send [01:01:35]OFD Sender: No OFD packet to send [01:01:40]OFD Sender: No OFD packet to send [01:01:45]OFD Sender: No OFD packet to send [01:01:50]OFD Sender: No OFD packet to send [01:01:55]OFD Sender: No OFD packet to send [01:02:00]OFD Sender: No OFD packet to send [01:02:05]OFD Sender: No OFD packet to send [01:02:10]OFD Sender: No OFD packet to send [01:02:15]OFD Sender: No OFD packet to send [01:02:20]OFD Sender: No OFD packet to send [01:02:22]accept exits with 7 [01:02:22]New connection [01:02:22]New thread 3067030884 created [01:02:22]Thread 3067174244 joined [01:02:22]Waiting for new connection... [01:02:22] Sock 7.Parse request [01:02:22]Sock 7.Check first char [01:02:22]Sock 7.First char is OK [01:02:22]request: POST /json_proto HTTP/1.0 [01:02:22]Method: POST [01:02:22]URL: /json_proto [01:02:22]Method is POST - this is cgi request [01:02:22]url: /json_proto [01:02:22]query_string will be loaded in cgi processing [01:02:22]execute_cgi json_proto POST (null) [01:02:22]execute_cgi path=json_proto method=POST [01:02:22]POST find Content-Length [01:02:22]Host: 172.17.62.5:8080 [01:02:22]Content-Length: 809 [01:02:22]Content-Type: application/json [01:02:22] [01:02:22]POST finish read [01:02:22]Found Content-Length = 809 [01:02:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191534", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 27.530, "sum" : 900.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 900.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:02:22]execute_script... [01:02: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)191534", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 27.530, "sum" : 900.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 900.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:02:22]POST & json_proto [01:02:22]process_json_proto [01:02:22]json parsed OK: [01:02:22]protocol is kg_v1.0 [01:02:22]action value=close_receipt [01:02:22]process_action close_receipt [01:02:22]cmd_close_receipt [01:02:22]MH_GetDate [01:02:22]Write to MH i2c: F0 00 00 E1 00 D0 [01:02:22]Write i2c OK [01:02:22]MH_I2C_Read... [01:02:22]Read from MH i2c: F0 [01:02:22]MH_I2C_Read... [01:02:22]Read from MH i2c: F0 09 00 [01:02:22]MH_I2C_Read... [01:02:22]Read from MH i2c: F0 09 00 E1 00 00 1F B7 25 66 F4 E9 65 64 E0 [01:02:22]GetLastDocTimeStamp 1713746918 [01:02:22]current date 1713747743 [01:02:22]FM_GetShiftState [01:02:22]SAM_PROTO_GetShiftState [01:02:22]wFMCommunicate request_size=4 [01:02:22]MH_SAM_APDU [01:02:22]CAPDU: 80 13 01 00 [01:02:22]Write to MH i2c: E2 08 00 E2 00 80 13 01 00 00 00 00 00 5F [01:02:22]Write i2c OK [01:02:22]MH_I2C_Read... [01:02:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:02:22]Read from MH i2c: E2 [01:02:22]MH_I2C_Read... [01:02:22]Read from MH i2c: E2 0E 00 [01:02:22]MH_I2C_Read... [01:02:22]Read from MH i2c: E2 0E 00 E2 00 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 86 [01:02:22]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [01:02:22]wFMCommunicate OK [01:02:22]SAM_PROTO_GetShiftState done [01:02:22]FM_GetShiftState done [01:02:22]opened in 1713745124 [01:02:22]opened+sec_in_day 1713831524 [01:02:22]quantity*price = 90023 [01:02:22]sum+1 = 90024 [01:02:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 900.23 НСП 1% : 7.97 НДС 12% : 95.60 Наличными: 0.00 Безнал.: 900.23 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 5 22.04.2024 01:02 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 76986 ФПД: 187873764561143 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T010223&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76986&fm=187873764561143&tin=02508201610067®Number=0000000000091573&sum=90023 [01:02:23]StoreToDocumentArchive [01:02:23]shift 373 fd 76986 [01:02:23]save to /storage/0373/doc_00076986 [01:02:23]save last doc name /storage/0373/doc_00076986 to /storage/kkm_last_doc_name [01:02:23]save OK [01:02:23]Clear old archive folders... [01:02:23]ProcessDocumentItem done err = 0, tmpTLVsize=250 [01:02:23]tlvbuf is 016FA800 [01:02:23]SAM_PROTO_ClearQueue [01:02:23]wFMCommunicate request_size=4 [01:02:23]MH_SAM_APDU [01:02:23]CAPDU: 80 09 00 00 [01:02:23]Write to MH i2c: E2 08 00 EF 00 80 09 00 00 00 00 00 00 61 [01:02:23]Write i2c OK [01:02:23]MH_I2C_Read... [01:02:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:02:23]Read from MH i2c: E2 [01:02:23]MH_I2C_Read... [01:02:23]Read from MH i2c: E2 03 00 [01:02:23]MH_I2C_Read... [01:02:23]Read from MH i2c: E2 03 00 EF 00 00 90 00 63 [01:02:23]RAPDU: 90 00 [01:02:23]wFMCommunicate OK [01:02:23]SAM_PROTO_ClearQueue done [01:02:23]KKMCreateOFDPacket [01:02:23]OFDProtocolAddRootSTLVToBuf [01:02:23]FM_MakeSignedData [01:02:23]FM_MakeSignedData [01:02:23]SAM_PROTO_SignData [01:02:23]wFMCommunicate request_size=4 [01:02:23]MH_SAM_APDU [01:02:23]CAPDU: 80 0D 01 02 [01:02:23]Write to MH i2c: E2 08 00 F0 00 80 0D 01 02 00 00 00 00 69 [01:02:23]Write i2c OK [01:02:23]MH_I2C_Read... [01:02:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:02:23]Read from MH i2c: E2 [01:02:23]MH_I2C_Read... [01:02:23]Read from MH i2c: E2 03 00 [01:02:23]MH_I2C_Read... [01:02:23]Read from MH i2c: E2 03 00 F0 00 00 90 00 64 [01:02:23]RAPDU: 90 00 [01:02:23]wFMCommunicate OK [01:02:23]wFMCommunicate request_size=255 [01:02:23]MH_SAM_APDU [01:02:23]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 8A 6B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 A7 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A7 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 58 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A7 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 1F B7 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BA 2C 01 00 35 04 06 00 AA DE [01:02:23]Write to MH i2c: E2 02 01 F1 00 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 8A 6B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 A7 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A7 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 58 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A7 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 1F B7 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BA 2C 01 00 35 04 06 00 AA DE 00 00 DE [01:02:23]Write i2c OK [01:02:23]MH_I2C_Read... [01:02:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:02:24]Read from MH i2c: E2 [01:02:24]MH_I2C_Read... [01:02:24]Read from MH i2c: E2 03 00 [01:02:24]MH_I2C_Read... [01:02:24]Read from MH i2c: E2 03 00 F1 00 00 90 00 65 [01:02:24]RAPDU: 90 00 [01:02:24]wFMCommunicate OK [01:02:24]wFMCommunicate request_size=9 [01:02:24]MH_SAM_APDU [01:02:24]CAPDU: 80 0D 02 02 04 C4 FF D0 F7 [01:02:24]Write to MH i2c: E2 0C 00 F2 00 80 0D 02 02 04 00 C4 FF D0 F7 00 00 FE [01:02:24]Write i2c OK [01:02:24]MH_I2C_Read... [01:02:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:02:24]Read from MH i2c: E2 [01:02:24]MH_I2C_Read... [01:02:24]Read from MH i2c: E2 03 00 [01:02:24]MH_I2C_Read... [01:02:24]Read from MH i2c: E2 03 00 F2 00 00 90 00 66 [01:02:24]RAPDU: 90 00 [01:02:24]wFMCommunicate OK [01:02:24]wFMCommunicate request_size=4 [01:02:24]MH_SAM_APDU [01:02:24]CAPDU: 80 0D 03 02 [01:02:24]Write to MH i2c: E2 08 00 F3 00 80 0D 03 02 00 00 00 00 6E [01:02:24]Write i2c OK [01:02:24]MH_I2C_Read... [01:02:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:02:24]Read from MH i2c: E2 [01:02:24]MH_I2C_Read... [01:02:24]Read from MH i2c: E2 0B 00 [01:02:24]MH_I2C_Read... [01:02:24]Read from MH i2c: E2 0B 00 F3 00 00 D3 60 02 65 F2 96 51 3B 90 00 1D [01:02:24]RAPDU: D3 60 02 65 F2 96 51 3B 90 00 [01:02:24]wFMCommunicate OK [01:02:24]SAM_PROTO_SignData done [01:02:24]FM_MakeSignedData done [01:02:24]CreateOFDProtocolMessage [01:02:24]wFMCommunicate request_size=4 [01:02:24]MH_SAM_APDU [01:02:24]CAPDU: 80 11 00 00 [01:02:24]Write to MH i2c: E2 08 00 F4 00 80 11 00 00 00 00 00 00 6E [01:02:24]Write i2c OK [01:02:24]MH_I2C_Read... [01:02:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:02:24]Read from MH i2c: E2 [01:02:24]MH_I2C_Read... [01:02:24]Read from MH i2c: E2 17 00 [01:02:24]MH_I2C_Read... [01:02:24]Read from MH i2c: E2 17 00 F4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 C1 [01:02:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [01:02:24]wFMCommunicate OK [01:02:24]CreateOFDProtocolMessage done [01:02:24]OFDSenderStorePacket 76986 [01:02:24]StoreOFDPacket docnum=76986 [01:02:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 9C C7 06 01 46 92 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 8A 6B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 A7 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A7 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 58 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A7 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 1F B7 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BA 2C 01 00 35 04 06 00 AA DE C4 FF D0 F7 D3 60 02 65 F2 96 51 3B [01:02:24]CheckFolder [01:02:24]dirname=/storage/ofd_packets [01:02:24]CheckFolder done [01:02:24]ProducePacketName [01:02:24]name=ofd_packets/00076986 [01:02:24]NVStorageSaveData ofd_packets/00076986 [01:02:24]File name is /storage/ofd_packets/00076986 [01:02:24]Write 300 bytes [01:02:24]NVStorageSaveData done [01:02:24]OFDSenderStorePacket done [01:02:24]KKMCreateOFDPacket done [01:02:24]NVStorageSaveData kkm_last_timestamp [01:02:24]File name is /storage/kkm_last_timestamp [01:02:24]Write 4 bytes [01:02:24]NVStorageSaveData done [01:02:24]ExternCall_PrintAddStr [01:02:24]wPrintStart [01:02:24]Write to MH i2c: 01 00 00 F5 00 F5 [01:02:24]Write i2c OK [01:02:24]MH_I2C_Read... [01:02:24]Read from MH i2c: 01 [01:02:24]MH_I2C_Read... [01:02:24]Read from MH i2c: 01 07 00 [01:02:24]MH_I2C_Read... [01:02:24]Read from MH i2c: 01 07 00 F5 00 00 00 00 00 00 FF 0F 0A [01:02:24]RasterBufferAndPrint [01:02:24]line Счет N : (1)191534 [01:02:24]line ИНН: 02508201610067 [01:02:24]line Контрольно-Кассовый Чек [01:02:24]line ПРОДАЖА [01:02:24]line ТРК (МРК, ГНК) : 71 [01:02:24]line Товар: 2711190000 [01:02:24]line ГАЗ-К-5 [01:02:24]line 27.530 * 32.70 [01:02:24]line = 900.23 [01:02:24]line НДС 12% НСП 1% [01:02:24]line > о реализуемом товаре [01:02:24]line ИТОГО: 900.23 [01:02:24]line НСП 1% : 7.97 [01:02:24]line НДС 12% : 95.60 [01:02:24]line Наличными: 0.00 [01:02:24]line Безнал.: 900.23 [01:02:24]line Место: АЗС № 106 "Партнер Нефть" [01:02:24]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [01:02:24]line СНО: Общий режим [01:02:24]line Чек 5 22.04.2024 01:02 [01:02:24]line Смена: 373 ФФД: 1.0 [01:02:24]line ЗНМ: 0300000141 [01:02:24]line РНМ: 0000000000091573 [01:02:24]line Версия ККМ: 001 [01:02:24]line Платежная система: О! деньги [01:02:24]line ФМ: 0000000000874652 [01:02:24]line ФД: 76986 [01:02:24]line ФПД: 187873764561143 [01:02:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T010223&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76986&fm=187873764561143&tin=02508201610067®Number=0000000000091573&sum=90023 [01:02:24]written 0, free lines is 4095 [01:02:24]OFD Sender: Processing packet 76986 [packets to send 129, broken 128] [01:02:24]ProducePacketName [01:02:24]name=ofd_packets/00076986 [01:02:24]OFD Sender: To server: pG, [01:02:24]CommunicateWithHost lk.salyk.kg:30040 [01:02:24]ConnectInit lk.salyk.kg [01:02:24]Connected sock=10 [01:02:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 9C C7 06 01 46 92 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 8A 6B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 A7 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A7 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 58 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A7 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 1F B7 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BA 2C 01 00 35 04 06 00 AA DE C4 FF D0 F7 D3 60 02 65 F2 96 51 3B [01:02:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 D6 26 47 00 CC 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BA 2C 01 00 F4 03 04 00 A3 5E 25 66 B6 04 01 00 00 06 37 00 53 14 F7 6F D7 [01:02:24]CommunicateWithHost err = 0 [01:02:24]CheckOFDResponse [01:02:24]1017 (14) - 77093643461234 [01:02:24]1041 (16) - 0000000000874652 [01:02:24]1040 (4) - 76986 [01:02:24]1012 (4) - 21.04.2024 18:44 [01:02:24]1206 (1) - 0 [01:02:24]OFD Sender: Remove packet 76986 [01:02:24]ProducePacketName [01:02:24]name=ofd_packets/00076986 [01:02:24]NVStorageDeleteData [01:02:24]Write to MH i2c: 01 00 00 1E 01 1F [01:02:24]Write i2c OK [01:02:24]MH_I2C_Read... [01:02:24]Read from MH i2c: 01 [01:02:24]MH_I2C_Read... [01:02:24]Read from MH i2c: 01 07 00 [01:02:24]MH_I2C_Read... [01:02:24]Read from MH i2c: 01 07 00 1E 01 00 00 00 00 00 0C 0D 3F [01:02:24]RasterBufferAndPrint [01:02:24]line [01:02:24]line [01:02:24]line [01:02:24]line [01:02:24]line [01:02:24]written 0, free lines is 3347 [01:02:24]MH_Cut [01:02:24]Write to MH i2c: D1 01 00 25 01 01 F8 [01:02:24]Write i2c OK [01:02:24]MH_I2C_Read... [01:02:24]Read from MH i2c: D1 [01:02:24]MH_I2C_Read... [01:02:24]Read from MH i2c: D1 01 00 [01:02:24]MH_I2C_Read... [01:02:24]Read from MH i2c: D1 01 00 25 01 00 F7 [01:02:24]Write to MH i2c: 01 00 00 26 01 27 [01:02:24]Write i2c OK [01:02:24]MH_I2C_Read... [01:02:25]OFD Sender: No OFD packet to send [01:02:25]*** Cut start [01:02:25]*** Partial cut [01:02:25]*** CUTSNS_PIN = 1 [01:02:25]*** CUTSNS_PIN = 0 [01:02:25]*** Brake cut motor [01:02:26]Read from MH i2c: 01 [01:02:26]MH_I2C_Read... [01:02:26]*** Stop cut motor [01:02:26]*** Cut end [01:02:26]Read from MH i2c: 01 07 00 [01:02:26]MH_I2C_Read... [01:02:26]Read from MH i2c: 01 07 00 26 01 00 00 00 00 00 FF 0F 3C [01:02:26]process_action close_receipt done [01:02:26]requested_data is exist [01:02:26]produce_requested_data [01:02:26]requested_item fm.sn is exist - process it [01:02:26]wFMCommunicate request_size=4 [01:02:26]MH_SAM_APDU [01:02:26]CAPDU: 80 11 00 00 [01:02:26]Write to MH i2c: E2 08 00 27 01 80 11 00 00 00 00 00 00 A2 [01:02:26]Write i2c OK [01:02:26]MH_I2C_Read... [01:02:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:02:26]Read from MH i2c: E2 [01:02:26]MH_I2C_Read... [01:02:26]Read from MH i2c: E2 17 00 [01:02:26]MH_I2C_Read... [01:02:26]Read from MH i2c: E2 17 00 27 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F5 [01:02:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [01:02:26]wFMCommunicate OK [01:02:26]requested_item fd.num is exist - process it [01:02:26]SAM_PROTO_GetFieldsCounters [01:02:26]wFMCommunicate request_size=4 [01:02:26]MH_SAM_APDU [01:02:26]CAPDU: 80 13 00 00 [01:02:26]Write to MH i2c: E2 08 00 28 01 80 13 00 00 00 00 00 00 A5 [01:02:26]Write i2c OK [01:02:26]MH_I2C_Read... [01:02:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:02:26]Read from MH i2c: E2 [01:02:26]MH_I2C_Read... [01:02:26]Read from MH i2c: E2 62 00 [01:02:26]MH_I2C_Read... [01:02:26]Read from MH i2c: E2 62 00 28 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 BA 2C 01 00 0E 04 04 00 75 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 32 [01:02: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 BA 2C 01 00 0E 04 04 00 75 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:02:26]wFMCommunicate OK [01:02:26]SAM_PROTO_GetFieldsCounters done [01:02:26]requested_item shift.num is exist - process it [01:02:26]requested_item shift.opened is exist - process it [01:02:26]req_shift_opened [01:02:26]FM_GetShiftState [01:02:26]SAM_PROTO_GetShiftState [01:02:26]wFMCommunicate request_size=4 [01:02:26]MH_SAM_APDU [01:02:26]CAPDU: 80 13 01 00 [01:02:26]Write to MH i2c: E2 08 00 29 01 80 13 01 00 00 00 00 00 A7 [01:02:26]Write i2c OK [01:02:26]MH_I2C_Read... [01:02:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:02:26]Read from MH i2c: E2 [01:02:26]MH_I2C_Read... [01:02:26]Read from MH i2c: E2 0E 00 [01:02:26]MH_I2C_Read... [01:02:26]Read from MH i2c: E2 0E 00 29 01 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 CE [01:02:26]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [01:02:26]wFMCommunicate OK [01:02:26]SAM_PROTO_GetShiftState done [01:02:26]FM_GetShiftState done [01:02:26]req_shift_opened done [01:02:26]requested_item shift.open_date is exist - process it [01:02:26]req_shift_open_date [01:02:26]req_shift_open_date done [01:02:26]produce_requested_data done [01:02:26]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76986,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [01:02:26]process_action_free close_receipt [01:02:26]json_value_free [01:02:26]json_value_free done [01:02:26]process_json_proto returns [01:02:26]Send response to host [01:02:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76986,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [01:02:26]free response buf [01:02:26]execute_script done [01:02:26]execute_script returns [01:02:26]free content buf [01:02:26]Sock 7.Close socket [01:02:26]Sock 7.Thread stoped [01:02:30]OFD Sender: No OFD packet to send [01:02:35]OFD Sender: No OFD packet to send [01:02:40]OFD Sender: No OFD packet to send [01:02:45]OFD Sender: No OFD packet to send [01:02:50]OFD Sender: No OFD packet to send [01:02:55]OFD Sender: No OFD packet to send [01:03:00]OFD Sender: No OFD packet to send [01:03:05]OFD Sender: No OFD packet to send [01:03:10]OFD Sender: No OFD packet to send [01:03:15]OFD Sender: No OFD packet to send [01:03:20]OFD Sender: No OFD packet to send [01:03:25]OFD Sender: No OFD packet to send [01:03:30]OFD Sender: No OFD packet to send [01:03:35]OFD Sender: No OFD packet to send [01:03:40]OFD Sender: No OFD packet to send [01:03:45]OFD Sender: No OFD packet to send [01:03:50]OFD Sender: No OFD packet to send [01:03:55]OFD Sender: No OFD packet to send [01:04:00]OFD Sender: No OFD packet to send [01:04:05]OFD Sender: No OFD packet to send [01:04:10]OFD Sender: No OFD packet to send [01:04:15]OFD Sender: No OFD packet to send [01:04:20]OFD Sender: No OFD packet to send [01:04:25]OFD Sender: No OFD packet to send [01:04:30]OFD Sender: No OFD packet to send [01:04:35]OFD Sender: No OFD packet to send [01:04:40]OFD Sender: No OFD packet to send [01:04:45]OFD Sender: No OFD packet to send [01:04:50]OFD Sender: No OFD packet to send [01:04:55]OFD Sender: No OFD packet to send [01:05:00]OFD Sender: No OFD packet to send [01:05:05]OFD Sender: No OFD packet to send [01:05:10]OFD Sender: No OFD packet to send [01:05:15]OFD Sender: No OFD packet to send [01:05:20]OFD Sender: No OFD packet to send [01:05:25]OFD Sender: No OFD packet to send [01:05:30]OFD Sender: No OFD packet to send [01:05:35]OFD Sender: No OFD packet to send [01:05:40]OFD Sender: No OFD packet to send [01:05:45]OFD Sender: No OFD packet to send [01:05:50]OFD Sender: No OFD packet to send [01:05:50]accept exits with 9 [01:05:50]New connection [01:05:50]New thread 3067174244 created [01:05:50]Thread 3067030884 joined [01:05:50]Waiting for new connection... [01:05:50] Sock 9.Parse request [01:05:50]Sock 9.Check first char [01:05:50]Sock 9.First char is OK [01:05:50]request: POST /json_proto HTTP/1.0 [01:05:50]Method: POST [01:05:50]URL: /json_proto [01:05:50]Method is POST - this is cgi request [01:05:50]url: /json_proto [01:05:50]query_string will be loaded in cgi processing [01:05:50]execute_cgi json_proto POST (null) [01:05:50]execute_cgi path=json_proto method=POST [01:05:50]POST find Content-Length [01:05:50]Host: 172.17.62.5:8080 [01:05:50]Content-Length: 678 [01:05:50]Content-Type: application/json [01:05:50] [01:05:50]POST finish read [01:05:50]Found Content-Length = 678 [01:05:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191536", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 10.250, "sum" : 747.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 747.00, "total" : 747.00, "payments": [ { "type": 0, "sum" : 747.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:05:50]execute_script... [01:05:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191536", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 10.250, "sum" : 747.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 747.00, "total" : 747.00, "payments": [ { "type": 0, "sum" : 747.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:05:50]POST & json_proto [01:05:50]process_json_proto [01:05:50]json parsed OK: [01:05:50]protocol is kg_v1.0 [01:05:50]action value=close_receipt [01:05:50]process_action close_receipt [01:05:50]cmd_close_receipt [01:05:50]MH_GetDate [01:05:50]Write to MH i2c: F0 00 00 2A 01 1A [01:05:50]Write i2c OK [01:05:50]MH_I2C_Read... [01:05:50]Read from MH i2c: F0 [01:05:50]MH_I2C_Read... [01:05:50]Read from MH i2c: F0 09 00 [01:05:50]MH_I2C_Read... [01:05:50]Read from MH i2c: F0 09 00 2A 01 00 EF B7 25 66 F4 E9 65 64 FA [01:05:50]GetLastDocTimeStamp 1713747743 [01:05:50]current date 1713747951 [01:05:50]FM_GetShiftState [01:05:50]SAM_PROTO_GetShiftState [01:05:50]wFMCommunicate request_size=4 [01:05:50]MH_SAM_APDU [01:05:50]CAPDU: 80 13 01 00 [01:05:50]Write to MH i2c: E2 08 00 2B 01 80 13 01 00 00 00 00 00 A9 [01:05:50]Write i2c OK [01:05:50]MH_I2C_Read... [01:05:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:05:50]Read from MH i2c: E2 [01:05:50]MH_I2C_Read... [01:05:50]Read from MH i2c: E2 0E 00 [01:05:50]MH_I2C_Read... [01:05:50]Read from MH i2c: E2 0E 00 2B 01 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 D0 [01:05:50]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [01:05:50]wFMCommunicate OK [01:05:50]SAM_PROTO_GetShiftState done [01:05:50]FM_GetShiftState done [01:05:50]opened in 1713745124 [01:05:50]opened+sec_in_day 1713831524 [01:05:50]quantity*price = 74722 [01:05:50]sum+1 = 74724 [01:05:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 747.00 Внесено: 747.00 СДАЧА: 0.00 НСП 1% : 6.61 НДС 12% : 79.35 Наличными: 747.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 6 22.04.2024 01:05 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76987 ФПД: 34284156361694 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T010551&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76987&fm=34284156361694&tin=02508201610067®Number=0000000000091573&sum=74700 [01:05:52]StoreToDocumentArchive [01:05:52]shift 373 fd 76987 [01:05:52]save to /storage/0373/doc_00076987 [01:05:52]save last doc name /storage/0373/doc_00076987 to /storage/kkm_last_doc_name [01:05:52]save OK [01:05:52]Clear old archive folders... [01:05:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:05:52]tlvbuf is 016FA100 [01:05:52]SAM_PROTO_ClearQueue [01:05:52]wFMCommunicate request_size=4 [01:05:52]MH_SAM_APDU [01:05:52]CAPDU: 80 09 00 00 [01:05:52]Write to MH i2c: E2 08 00 38 01 80 09 00 00 00 00 00 00 AB [01:05:52]Write i2c OK [01:05:52]MH_I2C_Read... [01:05:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:05:52]Read from MH i2c: E2 [01:05:52]MH_I2C_Read... [01:05:52]Read from MH i2c: E2 03 00 [01:05:52]MH_I2C_Read... [01:05:52]Read from MH i2c: E2 03 00 38 01 00 90 00 AD [01:05:52]RAPDU: 90 00 [01:05:52]wFMCommunicate OK [01:05:52]SAM_PROTO_ClearQueue done [01:05:52]KKMCreateOFDPacket [01:05:52]OFDProtocolAddRootSTLVToBuf [01:05:52]FM_MakeSignedData [01:05:52]FM_MakeSignedData [01:05:52]SAM_PROTO_SignData [01:05:52]wFMCommunicate request_size=4 [01:05:52]MH_SAM_APDU [01:05:52]CAPDU: 80 0D 01 02 [01:05:52]Write to MH i2c: E2 08 00 39 01 80 0D 01 02 00 00 00 00 B3 [01:05:52]Write i2c OK [01:05:52]MH_I2C_Read... [01:05:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:05:52]Read from MH i2c: E2 [01:05:52]MH_I2C_Read... [01:05:52]Read from MH i2c: E2 03 00 [01:05:52]MH_I2C_Read... [01:05:52]Read from MH i2c: E2 03 00 39 01 00 90 00 AE [01:05:52]RAPDU: 90 00 [01:05:52]wFMCommunicate OK [01:05:52]wFMCommunicate request_size=255 [01:05:52]MH_SAM_APDU [01:05:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0A 28 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E3 23 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 23 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 1E 00 00 00 00 07 04 06 00 CC 23 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 EF B7 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BB 2C 01 00 35 04 06 00 1F [01:05:52]Write to MH i2c: E2 02 01 3A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0A 28 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E3 23 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 23 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 1E 00 00 00 00 07 04 06 00 CC 23 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 EF B7 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BB 2C 01 00 35 04 06 00 1F 00 00 D8 [01:05:52]Write i2c OK [01:05:52]MH_I2C_Read... [01:05:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:05:52]Read from MH i2c: E2 [01:05:52]MH_I2C_Read... [01:05:52]Read from MH i2c: E2 03 00 [01:05:52]MH_I2C_Read... [01:05:52]Read from MH i2c: E2 03 00 3A 01 00 90 00 AF [01:05:52]RAPDU: 90 00 [01:05:52]wFMCommunicate OK [01:05:52]wFMCommunicate request_size=10 [01:05:52]MH_SAM_APDU [01:05:52]CAPDU: 80 0D 02 02 05 2E 66 F6 1B DE [01:05:52]Write to MH i2c: E2 0D 00 3B 01 80 0D 02 02 05 00 2E 66 F6 1B DE 00 00 43 [01:05:52]Write i2c OK [01:05:52]MH_I2C_Read... [01:05:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:05:52]Read from MH i2c: E2 [01:05:52]MH_I2C_Read... [01:05:52]Read from MH i2c: E2 03 00 [01:05:52]MH_I2C_Read... [01:05:52]Read from MH i2c: E2 03 00 3B 01 00 90 00 B0 [01:05:52]RAPDU: 90 00 [01:05:52]wFMCommunicate OK [01:05:52]wFMCommunicate request_size=4 [01:05:52]MH_SAM_APDU [01:05:52]CAPDU: 80 0D 03 02 [01:05:52]Write to MH i2c: E2 08 00 3C 01 80 0D 03 02 00 00 00 00 B8 [01:05:52]Write i2c OK [01:05:52]MH_I2C_Read... [01:05:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:05:52]Read from MH i2c: E2 [01:05:52]MH_I2C_Read... [01:05:52]Read from MH i2c: E2 0B 00 [01:05:52]MH_I2C_Read... [01:05:52]Read from MH i2c: E2 0B 00 3C 01 00 F4 D2 24 59 B5 3E BA 68 90 00 11 [01:05:52]RAPDU: F4 D2 24 59 B5 3E BA 68 90 00 [01:05:52]wFMCommunicate OK [01:05:52]SAM_PROTO_SignData done [01:05:52]FM_MakeSignedData done [01:05:52]CreateOFDProtocolMessage [01:05:52]wFMCommunicate request_size=4 [01:05:52]MH_SAM_APDU [01:05:52]CAPDU: 80 11 00 00 [01:05:52]Write to MH i2c: E2 08 00 3D 01 80 11 00 00 00 00 00 00 B8 [01:05:52]Write i2c OK [01:05:52]MH_I2C_Read... [01:05:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:05:52]Read from MH i2c: E2 [01:05:52]MH_I2C_Read... [01:05:52]Read from MH i2c: E2 17 00 [01:05:52]MH_I2C_Read... [01:05:52]Read from MH i2c: E2 17 00 3D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 0B [01:05:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [01:05:52]wFMCommunicate OK [01:05:52]CreateOFDProtocolMessage done [01:05:52]OFDSenderStorePacket 76987 [01:05:52]StoreOFDPacket docnum=76987 [01:05:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 C4 16 07 01 5E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0A 28 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E3 23 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 23 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 1E 00 00 00 00 07 04 06 00 CC 23 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 EF B7 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BB 2C 01 00 35 04 06 00 1F 2E 66 F6 1B DE F4 D2 24 59 B5 3E BA 68 [01:05:52]CheckFolder [01:05:52]dirname=/storage/ofd_packets [01:05:52]CheckFolder done [01:05:52]ProducePacketName [01:05:52]name=ofd_packets/00076987 [01:05:52]NVStorageSaveData ofd_packets/00076987 [01:05:52]File name is /storage/ofd_packets/00076987 [01:05:52]Write 301 bytes [01:05:52]NVStorageSaveData done [01:05:52]OFDSenderStorePacket done [01:05:52]KKMCreateOFDPacket done [01:05:52]NVStorageSaveData kkm_last_timestamp [01:05:52]File name is /storage/kkm_last_timestamp [01:05:52]Write 4 bytes [01:05:52]NVStorageSaveData done [01:05:52]ExternCall_PrintAddStr [01:05:52]wPrintStart [01:05:52]Write to MH i2c: 01 00 00 3E 01 3F [01:05:52]Write i2c OK [01:05:52]MH_I2C_Read... [01:05:52]Read from MH i2c: 01 [01:05:52]MH_I2C_Read... [01:05:52]Read from MH i2c: 01 07 00 [01:05:52]MH_I2C_Read... [01:05:52]Read from MH i2c: 01 07 00 3E 01 00 00 00 00 00 FF 0F 54 [01:05:52]RasterBufferAndPrint [01:05:52]line Счет N : (1)191536 [01:05:52]line ИНН: 02508201610067 [01:05:52]line Контрольно-Кассовый Чек [01:05:52]line ПРОДАЖА [01:05:52]line ТРК (МРК, ГНК) : 11 [01:05:52]line Товар: 2710124500 [01:05:52]line Аи-95-К-5 [01:05:52]line 10.250 * 72.90 [01:05:52]line = 747.23 [01:05:52]line НДС 12% НСП 1% [01:05:52]line > о реализуемом товаре [01:05:52]line ОКРУГЛЕНИЕ: -0.23 [01:05:52]line ИТОГО: 747.00 [01:05:52]line Внесено: 747.00 [01:05:52]line СДАЧА: 0.00 [01:05:52]line НСП 1% : 6.61 [01:05:52]line НДС 12% : 79.35 [01:05:52]line Наличными: 747.00 [01:05:52]line Безнал.: 0.00 [01:05:52]line Место: АЗС № 106 "Партнер Нефть" [01:05:52]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [01:05:52]line СНО: Общий режим [01:05:52]line Чек 6 22.04.2024 01:05 [01:05:52]line Смена: 373 ФФД: 1.0 [01:05:52]line ЗНМ: 0300000141 [01:05:52]line РНМ: 0000000000091573 [01:05:52]line Версия ККМ: 001 [01:05:52]line ФМ: 0000000000874652 [01:05:52]line ФД: 76987 [01:05:52]line ФПД: 34284156361694 [01:05:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T010551&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76987&fm=34284156361694&tin=02508201610067®Number=0000000000091573&sum=74700 [01:05:52]written 0, free lines is 4095 [01:05:52]OFD Sender: Processing packet 76987 [packets to send 129, broken 128] [01:05:52]ProducePacketName [01:05:52]name=ofd_packets/00076987 [01:05:52]OFD Sender: To server: pG, [01:05:52]CommunicateWithHost lk.salyk.kg:30040 [01:05:52]ConnectInit lk.salyk.kg [01:05:53]Connected sock=10 [01:05:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 C4 16 07 01 5E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0A 28 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E3 23 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 23 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 1E 00 00 00 00 07 04 06 00 CC 23 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 EF B7 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BB 2C 01 00 35 04 06 00 1F 2E 66 F6 1B DE F4 D2 24 59 B5 3E BA 68 [01:05:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 23 DF 47 00 DE 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 34 36 35 32 10 04 04 00 BB 2C 01 00 F4 03 04 00 73 5F 25 66 B6 04 01 00 00 94 99 03 B5 3E 13 8E 1E [01:05:53]CommunicateWithHost err = 0 [01:05:53]CheckOFDResponse [01:05:53]1017 (14) - 77093643461234 [01:05:53]1041 (16) - 0000000000874652 [01:05:53]1040 (4) - 76987 [01:05:53]1012 (4) - 21.04.2024 18:48 [01:05:53]1206 (1) - 0 [01:05:53]OFD Sender: Remove packet 76987 [01:05:53]ProducePacketName [01:05:53]name=ofd_packets/00076987 [01:05:53]NVStorageDeleteData [01:05:53]Write to MH i2c: 01 00 00 68 01 69 [01:05:53]Write i2c OK [01:05:53]MH_I2C_Read... [01:05:53]Read from MH i2c: 01 [01:05:53]MH_I2C_Read... [01:05:53]Read from MH i2c: 01 07 00 [01:05:53]MH_I2C_Read... [01:05:53]Read from MH i2c: 01 07 00 68 01 00 00 00 00 00 F8 0C 74 [01:05:53]RasterBufferAndPrint [01:05:53]line [01:05:53]line [01:05:53]line [01:05:53]line [01:05:53]line [01:05:53]written 0, free lines is 3373 [01:05:53]MH_Cut [01:05:53]Write to MH i2c: D1 01 00 6F 01 01 42 [01:05:53]Write i2c OK [01:05:53]MH_I2C_Read... [01:05:53]Read from MH i2c: D1 [01:05:53]MH_I2C_Read... [01:05:53]Read from MH i2c: D1 01 00 [01:05:53]MH_I2C_Read... [01:05:53]Read from MH i2c: D1 01 00 6F 01 00 41 [01:05:53]Write to MH i2c: 01 00 00 70 01 71 [01:05:53]Write i2c OK [01:05:53]MH_I2C_Read... [01:05:53]OFD Sender: No OFD packet to send [01:05:54]*** Cut start [01:05:54]*** Partial cut [01:05:54]*** CUTSNS_PIN = 1 [01:05:54]*** CUTSNS_PIN = 0 [01:05:54]*** Brake cut motor [01:05:54]Read from MH i2c: 01 [01:05:54]MH_I2C_Read... [01:05:54]*** Stop cut motor [01:05:54]*** Cut end [01:05:54]Read from MH i2c: 01 07 00 [01:05:54]MH_I2C_Read... [01:05:54]Read from MH i2c: 01 07 00 70 01 00 00 00 00 00 FF 0F 86 [01:05:54]process_action close_receipt done [01:05:54]requested_data is exist [01:05:54]produce_requested_data [01:05:54]requested_item fm.sn is exist - process it [01:05:54]wFMCommunicate request_size=4 [01:05:54]MH_SAM_APDU [01:05:54]CAPDU: 80 11 00 00 [01:05:54]Write to MH i2c: E2 08 00 71 01 80 11 00 00 00 00 00 00 EC [01:05:54]Write i2c OK [01:05:54]MH_I2C_Read... [01:05:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:05:54]Read from MH i2c: E2 [01:05:54]MH_I2C_Read... [01:05:54]Read from MH i2c: E2 17 00 [01:05:54]MH_I2C_Read... [01:05:54]Read from MH i2c: E2 17 00 71 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 3F [01:05:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [01:05:54]wFMCommunicate OK [01:05:54]requested_item fd.num is exist - process it [01:05:54]SAM_PROTO_GetFieldsCounters [01:05:54]wFMCommunicate request_size=4 [01:05:54]MH_SAM_APDU [01:05:54]CAPDU: 80 13 00 00 [01:05:54]Write to MH i2c: E2 08 00 72 01 80 13 00 00 00 00 00 00 EF [01:05:54]Write i2c OK [01:05:54]MH_I2C_Read... [01:05:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:05:54]Read from MH i2c: E2 [01:05:54]MH_I2C_Read... [01:05:54]Read from MH i2c: E2 62 00 [01:05:54]MH_I2C_Read... [01:05:54]Read from MH i2c: E2 62 00 72 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 BB 2C 01 00 0E 04 04 00 75 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 80 [01:05:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 BB 2C 01 00 0E 04 04 00 75 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:05:54]wFMCommunicate OK [01:05:54]SAM_PROTO_GetFieldsCounters done [01:05:54]requested_item shift.num is exist - process it [01:05:54]requested_item shift.opened is exist - process it [01:05:54]req_shift_opened [01:05:54]FM_GetShiftState [01:05:54]SAM_PROTO_GetShiftState [01:05:54]wFMCommunicate request_size=4 [01:05:54]MH_SAM_APDU [01:05:54]CAPDU: 80 13 01 00 [01:05:54]Write to MH i2c: E2 08 00 73 01 80 13 01 00 00 00 00 00 F1 [01:05:54]Write i2c OK [01:05:54]MH_I2C_Read... [01:05:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:05:54]Read from MH i2c: E2 [01:05:54]MH_I2C_Read... [01:05:54]Read from MH i2c: E2 0E 00 [01:05:54]MH_I2C_Read... [01:05:54]Read from MH i2c: E2 0E 00 73 01 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 18 [01:05:54]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [01:05:54]wFMCommunicate OK [01:05:54]SAM_PROTO_GetShiftState done [01:05:54]FM_GetShiftState done [01:05:54]req_shift_opened done [01:05:54]requested_item shift.open_date is exist - process it [01:05:54]req_shift_open_date [01:05:54]req_shift_open_date done [01:05:54]produce_requested_data done [01:05:54]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76987,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [01:05:54]process_action_free close_receipt [01:05:54]json_value_free [01:05:54]json_value_free done [01:05:54]process_json_proto returns [01:05:54]Send response to host [01:05:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76987,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [01:05:54]free response buf [01:05:54]execute_script done [01:05:54]execute_script returns [01:05:54]free content buf [01:05:54]Sock 9.Close socket [01:05:54]Sock 9.Thread stoped [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:34]OFD Sender: No OFD packet to send [01:09:39]OFD Sender: No OFD packet to send [01:09:44]OFD Sender: No OFD packet to send [01:09:45]accept exits with 7 [01:09:45]New connection [01:09:45]New thread 3067030884 created [01:09:45]Thread 3067174244 joined [01:09:45]Waiting for new connection... [01:09:45] Sock 7.Parse request [01:09:45]Sock 7.Check first char [01:09:45]Sock 7.First char is OK [01:09:45]request: POST /json_proto HTTP/1.0 [01:09:45]Method: POST [01:09:45]URL: /json_proto [01:09:45]Method is POST - this is cgi request [01:09:45]url: /json_proto [01:09:45]query_string will be loaded in cgi processing [01:09:45]execute_cgi json_proto POST (null) [01:09:45]execute_cgi path=json_proto method=POST [01:09:45]POST find Content-Length [01:09:45]Host: 172.17.62.5:8080 [01:09:45]Content-Length: 990 [01:09:45]Content-Type: application/json [01:09:45] [01:09:45]POST finish read [01:09:45]Found Content-Length = 990 [01:09:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191535", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 55.850, "sum" : 1770.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 55.85 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 1770.00, "payments": [ { "type": 0, "sum" : 1770.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:09:45]execute_script... [01:09: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)191535", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 55.850, "sum" : 1770.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 55.85 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 1770.00, "payments": [ { "type": 0, "sum" : 1770.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:09:45]POST & json_proto [01:09:45]process_json_proto [01:09:45]json parsed OK: [01:09:45]protocol is kg_v1.0 [01:09:45]action value=close_receipt [01:09:45]process_action close_receipt [01:09:45]cmd_close_receipt [01:09:45]MH_GetDate [01:09:45]Write to MH i2c: F0 00 00 74 01 64 [01:09:45]Write i2c OK [01:09:45]MH_I2C_Read... [01:09:45]Read from MH i2c: F0 [01:09:45]MH_I2C_Read... [01:09:45]Read from MH i2c: F0 09 00 [01:09:45]MH_I2C_Read... [01:09:45]Read from MH i2c: F0 09 00 74 01 00 DA B8 25 66 F4 E9 65 64 30 [01:09:45]GetLastDocTimeStamp 1713747951 [01:09:45]current date 1713748186 [01:09:45]FM_GetShiftState [01:09:45]SAM_PROTO_GetShiftState [01:09:45]wFMCommunicate request_size=4 [01:09:45]MH_SAM_APDU [01:09:45]CAPDU: 80 13 01 00 [01:09:45]Write to MH i2c: E2 08 00 75 01 80 13 01 00 00 00 00 00 F3 [01:09:45]Write i2c OK [01:09:45]MH_I2C_Read... [01:09:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:09:45]Read from MH i2c: E2 [01:09:45]MH_I2C_Read... [01:09:45]Read from MH i2c: E2 0E 00 [01:09:45]MH_I2C_Read... [01:09:45]Read from MH i2c: E2 0E 00 75 01 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 1A [01:09:45]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [01:09:45]wFMCommunicate OK [01:09:45]SAM_PROTO_GetShiftState done [01:09:45]FM_GetShiftState done [01:09:45]opened in 1713745124 [01:09:45]opened+sec_in_day 1713831524 [01:09:45]quantity*price = 177044 [01:09:45]sum+1 = 177046 [01:09:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 1770.00 Внесено: 2000.00 СДАЧА: 230.00 НСП 1% : 15.67 НДС 12% : 188.01 Наличными: 1770.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 7 22.04.2024 01:09 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 55.85 сом ФМ: 0000000000874652 ФД: 76988 ФПД: 153447259431543 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T010946&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76988&fm=153447259431543&tin=02508201610067®Number=0000000000091573&sum=177000 [01:09:46]StoreToDocumentArchive [01:09:46]shift 373 fd 76988 [01:09:46]save to /storage/0373/doc_00076988 [01:09:46]save last doc name /storage/0373/doc_00076988 to /storage/kkm_last_doc_name [01:09:46]save OK [01:09:46]Clear old archive folders... [01:09:46]ProcessDocumentItem done err = 0, tmpTLVsize=250 [01:09:46]tlvbuf is 017522D0 [01:09:46]SAM_PROTO_ClearQueue [01:09:46]wFMCommunicate request_size=4 [01:09:46]MH_SAM_APDU [01:09:46]CAPDU: 80 09 00 00 [01:09:46]Write to MH i2c: E2 08 00 82 01 80 09 00 00 00 00 00 00 F5 [01:09:46]Write i2c OK [01:09:46]MH_I2C_Read... [01:09:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:09:46]Read from MH i2c: E2 [01:09:46]MH_I2C_Read... [01:09:46]Read from MH i2c: E2 03 00 [01:09:46]MH_I2C_Read... [01:09:46]Read from MH i2c: E2 03 00 82 01 00 90 00 F7 [01:09:46]RAPDU: 90 00 [01:09:46]wFMCommunicate OK [01:09:46]SAM_PROTO_ClearQueue done [01:09:46]KKMCreateOFDPacket [01:09:46]OFDProtocolAddRootSTLVToBuf [01:09:46]FM_MakeSignedData [01:09:46]FM_MakeSignedData [01:09:46]SAM_PROTO_SignData [01:09:46]wFMCommunicate request_size=4 [01:09:46]MH_SAM_APDU [01:09:46]CAPDU: 80 0D 01 02 [01:09:46]Write to MH i2c: E2 08 00 83 01 80 0D 01 02 00 00 00 00 FD [01:09:46]Write i2c OK [01:09:46]MH_I2C_Read... [01:09:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:09:46]Read from MH i2c: E2 [01:09:46]MH_I2C_Read... [01:09:46]Read from MH i2c: E2 03 00 [01:09:46]MH_I2C_Read... [01:09:46]Read from MH i2c: E2 03 00 83 01 00 90 00 F8 [01:09:46]RAPDU: 90 00 [01:09:46]wFMCommunicate OK [01:09:46]wFMCommunicate request_size=255 [01:09:46]MH_SAM_APDU [01:09:46]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 2A DA 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 95 B3 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 B3 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 49 00 00 00 00 07 04 06 00 68 B3 02 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 DA B8 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BC 2C 01 00 35 04 06 00 8B 8F [01:09:46]Write to MH i2c: E2 02 01 84 01 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 2A DA 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 95 B3 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 B3 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 49 00 00 00 00 07 04 06 00 68 B3 02 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 DA B8 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BC 2C 01 00 35 04 06 00 8B 8F 00 00 20 [01:09:46]Write i2c OK [01:09:46]MH_I2C_Read... [01:09:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:09:46]Read from MH i2c: E2 [01:09:46]MH_I2C_Read... [01:09:46]Read from MH i2c: E2 03 00 [01:09:46]MH_I2C_Read... [01:09:46]Read from MH i2c: E2 03 00 84 01 00 90 00 F9 [01:09:46]RAPDU: 90 00 [01:09:46]wFMCommunicate OK [01:09:46]wFMCommunicate request_size=9 [01:09:46]MH_SAM_APDU [01:09:46]CAPDU: 80 0D 02 02 04 39 63 E2 77 [01:09:46]Write to MH i2c: E2 0C 00 85 01 80 0D 02 02 04 00 39 63 E2 77 00 00 FD [01:09:46]Write i2c OK [01:09:46]MH_I2C_Read... [01:09:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:09:46]Read from MH i2c: E2 [01:09:46]MH_I2C_Read... [01:09:46]Read from MH i2c: E2 03 00 [01:09:46]MH_I2C_Read... [01:09:46]Read from MH i2c: E2 03 00 85 01 00 90 00 FA [01:09:46]RAPDU: 90 00 [01:09:46]wFMCommunicate OK [01:09:46]wFMCommunicate request_size=4 [01:09:46]MH_SAM_APDU [01:09:46]CAPDU: 80 0D 03 02 [01:09:46]Write to MH i2c: E2 08 00 86 01 80 0D 03 02 00 00 00 00 02 [01:09:46]Write i2c OK [01:09:46]MH_I2C_Read... [01:09:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:09:46]Read from MH i2c: E2 [01:09:46]MH_I2C_Read... [01:09:46]Read from MH i2c: E2 0B 00 [01:09:46]MH_I2C_Read... [01:09:46]Read from MH i2c: E2 0B 00 86 01 00 C3 98 5C CB 83 23 7B CD 90 00 73 [01:09:46]RAPDU: C3 98 5C CB 83 23 7B CD 90 00 [01:09:46]wFMCommunicate OK [01:09:46]SAM_PROTO_SignData done [01:09:46]FM_MakeSignedData done [01:09:46]CreateOFDProtocolMessage [01:09:46]wFMCommunicate request_size=4 [01:09:46]MH_SAM_APDU [01:09:46]CAPDU: 80 11 00 00 [01:09:46]Write to MH i2c: E2 08 00 87 01 80 11 00 00 00 00 00 00 02 [01:09:46]Write i2c OK [01:09:46]MH_I2C_Read... [01:09:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:09:46]Read from MH i2c: E2 [01:09:46]MH_I2C_Read... [01:09:46]Read from MH i2c: E2 17 00 [01:09:46]MH_I2C_Read... [01:09:46]Read from MH i2c: E2 17 00 87 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 55 [01:09:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [01:09:46]wFMCommunicate OK [01:09:46]CreateOFDProtocolMessage done [01:09:46]OFDSenderStorePacket 76988 [01:09:46]StoreOFDPacket docnum=76988 [01:09:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 59 8A 06 01 89 B3 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 2A DA 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 95 B3 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 B3 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 49 00 00 00 00 07 04 06 00 68 B3 02 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 DA B8 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BC 2C 01 00 35 04 06 00 8B 8F 39 63 E2 77 C3 98 5C CB 83 23 7B CD [01:09:46]CheckFolder [01:09:46]dirname=/storage/ofd_packets [01:09:46]CheckFolder done [01:09:46]ProducePacketName [01:09:46]name=ofd_packets/00076988 [01:09:46]NVStorageSaveData ofd_packets/00076988 [01:09:46]File name is /storage/ofd_packets/00076988 [01:09:46]Write 300 bytes [01:09:46]NVStorageSaveData done [01:09:46]OFDSenderStorePacket done [01:09:46]KKMCreateOFDPacket done [01:09:46]NVStorageSaveData kkm_last_timestamp [01:09:46]File name is /storage/kkm_last_timestamp [01:09:46]Write 4 bytes [01:09:46]NVStorageSaveData done [01:09:46]ExternCall_PrintAddStr [01:09:46]wPrintStart [01:09:46]Write to MH i2c: 01 00 00 88 01 89 [01:09:46]Write i2c OK [01:09:46]MH_I2C_Read... [01:09:46]Read from MH i2c: 01 [01:09:46]MH_I2C_Read... [01:09:46]Read from MH i2c: 01 07 00 [01:09:46]MH_I2C_Read... [01:09:46]Read from MH i2c: 01 07 00 88 01 00 00 00 00 00 FF 0F 9E [01:09:46]RasterBufferAndPrint [01:09:46]line Счет N : (1)191535 [01:09:46]line ИНН: 02508201610067 [01:09:46]line Контрольно-Кассовый Чек [01:09:46]line ПРОДАЖА [01:09:46]line ТРК (МРК, ГНК) : 71 [01:09:46]line Товар: 2711190000 [01:09:46]line ГАЗ-К-5 [01:09:46]line 55.850 * 31.70 [01:09:46]line = 1770.45 [01:09:46]line НДС 12% НСП 1% [01:09:46]line > о реализуемом товаре [01:09:46]line ОКРУГЛЕНИЕ: -0.45 [01:09:46]line ИТОГО: 1770.00 [01:09:46]line Внесено: 2000.00 [01:09:46]line СДАЧА: 230.00 [01:09:46]line НСП 1% : 15.67 [01:09:46]line НДС 12% : 188.01 [01:09:46]line Наличными: 1770.00 [01:09:46]line Безнал.: 0.00 [01:09:46]line Место: АЗС № 106 "Партнер Нефть" [01:09:46]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [01:09:46]line СНО: Общий режим [01:09:46]line Чек 7 22.04.2024 01:09 [01:09:46]line Смена: 373 ФФД: 1.0 [01:09:46]line ЗНМ: 0300000141 [01:09:46]line РНМ: 0000000000091573 [01:09:46]line Версия ККМ: 001 [01:09:46]line [01:09:46]line Дисконтная программа [01:09:46]line СУГ [01:09:46]line номер 106 [01:09:46]line сэкономлено 55.85 сом [01:09:46]line ФМ: 0000000000874652 [01:09:46]line ФД: 76988 [01:09:47]line ФПД: 153447259431543 [01:09:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T010946&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76988&fm=153447259431543&tin=02508201610067®Number=0000000000091573&sum=177000 [01:09:47]OFD Sender: Processing packet 76988 [packets to send 129, broken 128] [01:09:47]ProducePacketName [01:09:47]name=ofd_packets/00076988 [01:09:47]OFD Sender: To server: pG, [01:09:47]CommunicateWithHost lk.salyk.kg:30040 [01:09:47]ConnectInit lk.salyk.kg [01:09:47]written 0, free lines is 4095 [01:09:47]Connected sock=10 [01:09:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 59 8A 06 01 89 B3 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 2A DA 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 95 B3 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 B3 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 49 00 00 00 00 07 04 06 00 68 B3 02 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 DA B8 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BC 2C 01 00 35 04 06 00 8B 8F 39 63 E2 77 C3 98 5C CB 83 23 7B CD [01:09:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 E5 FE 47 00 B0 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 34 36 35 32 10 04 04 00 BC 2C 01 00 F4 03 04 00 5E 60 25 66 B6 04 01 00 00 0E DD 1E 43 BC 48 30 93 [01:09:47]CommunicateWithHost err = 0 [01:09:47]CheckOFDResponse [01:09:47]1017 (14) - 77093643461234 [01:09:47]1041 (16) - 0000000000874652 [01:09:47]1040 (4) - 76988 [01:09:47]1012 (4) - 21.04.2024 18:52 [01:09:47]1206 (1) - 0 [01:09:47]OFD Sender: Remove packet 76988 [01:09:47]ProducePacketName [01:09:47]name=ofd_packets/00076988 [01:09:47]NVStorageDeleteData [01:09:47]Write to MH i2c: 01 00 00 B7 01 B8 [01:09:47]Write i2c OK [01:09:47]MH_I2C_Read... [01:09:47]Read from MH i2c: 01 [01:09:47]MH_I2C_Read... [01:09:47]Read from MH i2c: 01 07 00 [01:09:47]MH_I2C_Read... [01:09:47]Read from MH i2c: 01 07 00 B7 01 00 00 00 00 00 90 0C 5B [01:09:47]RasterBufferAndPrint [01:09:47]line [01:09:47]line [01:09:47]line [01:09:47]line [01:09:47]line [01:09:47]written 0, free lines is 3222 [01:09:47]MH_Cut [01:09:47]Write to MH i2c: D1 01 00 BE 01 01 91 [01:09:47]Write i2c OK [01:09:47]MH_I2C_Read... [01:09:47]Read from MH i2c: D1 [01:09:47]MH_I2C_Read... [01:09:47]Read from MH i2c: D1 01 00 [01:09:47]MH_I2C_Read... [01:09:47]Read from MH i2c: D1 01 00 BE 01 00 90 [01:09:47]Write to MH i2c: 01 00 00 BF 01 C0 [01:09:47]Write i2c OK [01:09:47]MH_I2C_Read... [01:09:48]OFD Sender: No OFD packet to send [01:09:48]*** Cut start [01:09:48]*** Partial cut [01:09:48]*** CUTSNS_PIN = 1 [01:09:48]*** CUTSNS_PIN = 0 [01:09:48]*** Brake cut motor [01:09:49]Read from MH i2c: 01 [01:09:49]MH_I2C_Read... [01:09:49]*** Stop cut motor [01:09:49]*** Cut end [01:09:49]Read from MH i2c: 01 07 00 [01:09:49]MH_I2C_Read... [01:09:49]Read from MH i2c: 01 07 00 BF 01 00 00 00 00 00 FF 0F D5 [01:09:49]process_action close_receipt done [01:09:49]requested_data is exist [01:09:49]produce_requested_data [01:09:49]requested_item fm.sn is exist - process it [01:09:49]wFMCommunicate request_size=4 [01:09:49]MH_SAM_APDU [01:09:49]CAPDU: 80 11 00 00 [01:09:49]Write to MH i2c: E2 08 00 C0 01 80 11 00 00 00 00 00 00 3B [01:09:49]Write i2c OK [01:09:49]MH_I2C_Read... [01:09:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:09:49]Read from MH i2c: E2 [01:09:49]MH_I2C_Read... [01:09:49]Read from MH i2c: E2 17 00 [01:09:49]MH_I2C_Read... [01:09:49]Read from MH i2c: E2 17 00 C0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 8E [01:09:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [01:09:49]wFMCommunicate OK [01:09:49]requested_item fd.num is exist - process it [01:09:49]SAM_PROTO_GetFieldsCounters [01:09:49]wFMCommunicate request_size=4 [01:09:49]MH_SAM_APDU [01:09:49]CAPDU: 80 13 00 00 [01:09:49]Write to MH i2c: E2 08 00 C1 01 80 13 00 00 00 00 00 00 3E [01:09:49]Write i2c OK [01:09:49]MH_I2C_Read... [01:09:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:09:49]Read from MH i2c: E2 [01:09:49]MH_I2C_Read... [01:09:49]Read from MH i2c: E2 62 00 [01:09:49]MH_I2C_Read... [01:09:49]Read from MH i2c: E2 62 00 C1 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 BC 2C 01 00 0E 04 04 00 75 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 D3 [01:09: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 BC 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:09:49]wFMCommunicate OK [01:09:49]SAM_PROTO_GetFieldsCounters done [01:09:49]requested_item shift.num is exist - process it [01:09:49]requested_item shift.opened is exist - process it [01:09:49]req_shift_opened [01:09:49]FM_GetShiftState [01:09:49]SAM_PROTO_GetShiftState [01:09:49]wFMCommunicate request_size=4 [01:09:49]MH_SAM_APDU [01:09:49]CAPDU: 80 13 01 00 [01:09:49]Write to MH i2c: E2 08 00 C2 01 80 13 01 00 00 00 00 00 40 [01:09:49]Write i2c OK [01:09:49]MH_I2C_Read... [01:09:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:09:49]Read from MH i2c: E2 [01:09:49]MH_I2C_Read... [01:09:49]Read from MH i2c: E2 0E 00 [01:09:49]MH_I2C_Read... [01:09:49]Read from MH i2c: E2 0E 00 C2 01 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 67 [01:09:49]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [01:09:49]wFMCommunicate OK [01:09:49]SAM_PROTO_GetShiftState done [01:09:49]FM_GetShiftState done [01:09:49]req_shift_opened done [01:09:49]requested_item shift.open_date is exist - process it [01:09:49]req_shift_open_date [01:09:49]req_shift_open_date done [01:09:49]produce_requested_data done [01:09:49]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76988,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [01:09:49]process_action_free close_receipt [01:09:49]json_value_free [01:09:49]json_value_free done [01:09:49]process_json_proto returns [01:09:49]Send response to host [01:09:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76988,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [01:09:49]free response buf [01:09:49]execute_script done [01:09:49]execute_script returns [01:09:49]free content buf [01:09:49]Sock 7.Close socket [01:09:49]Sock 7.Thread stoped [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:33]OFD Sender: No OFD packet to send [01:13:38]OFD Sender: No OFD packet to send [01:13:43]OFD Sender: No OFD packet to send [01:13:48]OFD Sender: No OFD packet to send [01:13:53]OFD Sender: No OFD packet to send [01:13:58]OFD Sender: No OFD packet to send [01:14:03]OFD Sender: No OFD packet to send [01:14:08]OFD Sender: No OFD packet to send [01:14:13]OFD Sender: No OFD packet to send [01:14:18]OFD Sender: No OFD packet to send [01:14:23]OFD Sender: No OFD packet to send [01:14:28]OFD Sender: No OFD packet to send [01:14:33]OFD Sender: No OFD packet to send [01:14:38]OFD Sender: No OFD packet to send [01:14:43]OFD Sender: No OFD packet to send [01:14:48]OFD Sender: No OFD packet to send [01:14:53]OFD Sender: No OFD packet to send [01:14:58]OFD Sender: No OFD packet to send [01:15:03]OFD Sender: No OFD packet to send [01:15:08]OFD Sender: No OFD packet to send [01:15:13]OFD Sender: No OFD packet to send [01:15:18]OFD Sender: No OFD packet to send [01:15:23]OFD Sender: No OFD packet to send [01:15:28]OFD Sender: No OFD packet to send [01:15:33]OFD Sender: No OFD packet to send [01:15:38]OFD Sender: No OFD packet to send [01:15:43]OFD Sender: No OFD packet to send [01:15:48]OFD Sender: No OFD packet to send [01:15:53]OFD Sender: No OFD packet to send [01:15:58]OFD Sender: No OFD packet to send [01:16:03]OFD Sender: No OFD packet to send [01:16:08]OFD Sender: No OFD packet to send [01:16:13]OFD Sender: No OFD packet to send [01:16:18]OFD Sender: No OFD packet to send [01:16:23]OFD Sender: No OFD packet to send [01:16:28]OFD Sender: No OFD packet to send [01:16:33]OFD Sender: No OFD packet to send [01:16:38]OFD Sender: No OFD packet to send [01:16:43]OFD Sender: No OFD packet to send [01:16:48]OFD Sender: No OFD packet to send [01:16:53]OFD Sender: No OFD packet to send [01:16:58]OFD Sender: No OFD packet to send [01:17:03]OFD Sender: No OFD packet to send [01:17:08]OFD Sender: No OFD packet to send [01:17:13]OFD Sender: No OFD packet to send [01:17:18]OFD Sender: No OFD packet to send [01:17:23]OFD Sender: No OFD packet to send [01:17:28]OFD Sender: No OFD packet to send [01:17:33]OFD Sender: No OFD packet to send [01:17:38]OFD Sender: No OFD packet to send [01:17:43]OFD Sender: No OFD packet to send [01:17:48]OFD Sender: No OFD packet to send [01:17:53]OFD Sender: No OFD packet to send [01:17:58]OFD Sender: No OFD packet to send [01:18:03]OFD Sender: No OFD packet to send [01:18:08]OFD Sender: No OFD packet to send [01:18:13]OFD Sender: No OFD packet to send [01:18:18]OFD Sender: No OFD packet to send [01:18:23]OFD Sender: No OFD packet to send [01:18:28]OFD Sender: No OFD packet to send [01:18:33]OFD Sender: No OFD packet to send [01:18:38]OFD Sender: No OFD packet to send [01:18:43]OFD Sender: No OFD packet to send [01:18:48]OFD Sender: No OFD packet to send [01:18:53]OFD Sender: No OFD packet to send [01:18:58]OFD Sender: No OFD packet to send [01:19:03]OFD Sender: No OFD packet to send [01:19:08]OFD Sender: No OFD packet to send [01:19:13]OFD Sender: No OFD packet to send [01:19:18]OFD Sender: No OFD packet to send [01:19:23]OFD Sender: No OFD packet to send [01:19:28]OFD Sender: No OFD packet to send [01:19:33]OFD Sender: No OFD packet to send [01:19:38]OFD Sender: No OFD packet to send [01:19:43]OFD Sender: No OFD packet to send [01:19:48]OFD Sender: No OFD packet to send [01:19:53]OFD Sender: No OFD packet to send [01:19:58]OFD Sender: No OFD packet to send [01:20:03]OFD Sender: No OFD packet to send [01:20:08]OFD Sender: No OFD packet to send [01:20:13]OFD Sender: No OFD packet to send [01:20:18]OFD Sender: No OFD packet to send [01:20:23]OFD Sender: No OFD packet to send [01:20:28]OFD Sender: No OFD packet to send [01:20:33]OFD Sender: No OFD packet to send [01:20:38]OFD Sender: No OFD packet to send [01:20:43]OFD Sender: No OFD packet to send [01:20:48]OFD Sender: No OFD packet to send [01:20:53]OFD Sender: No OFD packet to send [01:20:58]OFD Sender: No OFD packet to send [01:21:03]OFD Sender: No OFD packet to send [01:21:08]OFD Sender: No OFD packet to send [01:21:13]OFD Sender: No OFD packet to send [01:21:18]OFD Sender: No OFD packet to send [01:21:23]OFD Sender: No OFD packet to send [01:21:28]OFD Sender: No OFD packet to send [01:21:33]OFD Sender: No OFD packet to send [01:21:38]OFD Sender: No OFD packet to send [01:21:43]OFD Sender: No OFD packet to send [01:21:48]OFD Sender: No OFD packet to send [01:21:53]OFD Sender: No OFD packet to send [01:21:58]OFD Sender: No OFD packet to send [01:22:03]OFD Sender: No OFD packet to send [01:22:08]OFD Sender: No OFD packet to send [01:22:13]OFD Sender: No OFD packet to send [01:22:18]OFD Sender: No OFD packet to send [01:22:23]OFD Sender: No OFD packet to send [01:22:28]OFD Sender: No OFD packet to send [01:22:33]OFD Sender: No OFD packet to send [01:22:38]OFD Sender: No OFD packet to send [01:22:43]OFD Sender: No OFD packet to send [01:22:48]OFD Sender: No OFD packet to send [01:22:54]OFD Sender: No OFD packet to send [01:22:59]OFD Sender: No OFD packet to send [01:23:04]OFD Sender: No OFD packet to send [01:23:09]OFD Sender: No OFD packet to send [01:23:14]OFD Sender: No OFD packet to send [01:23:19]OFD Sender: No OFD packet to send [01:23:24]OFD Sender: No OFD packet to send [01:23:29]OFD Sender: No OFD packet to send [01:23:34]OFD Sender: No OFD packet to send [01:23:39]OFD Sender: No OFD packet to send [01:23:44]OFD Sender: No OFD packet to send [01:23:49]OFD Sender: No OFD packet to send [01:23:54]OFD Sender: No OFD packet to send [01:23:59]OFD Sender: No OFD packet to send [01:24:04]OFD Sender: No OFD packet to send [01:24:09]OFD Sender: No OFD packet to send [01:24:14]OFD Sender: No OFD packet to send [01:24:17]accept exits with 9 [01:24:17]New connection [01:24:17]New thread 3067174244 created [01:24:17]Thread 3067030884 joined [01:24:17]Waiting for new connection... [01:24:17] Sock 9.Parse request [01:24:17]Sock 9.Check first char [01:24:17]Sock 9.First char is OK [01:24:17]request: POST /json_proto HTTP/1.0 [01:24:17]Method: POST [01:24:17]URL: /json_proto [01:24:17]Method is POST - this is cgi request [01:24:17]url: /json_proto [01:24:17]query_string will be loaded in cgi processing [01:24:17]execute_cgi json_proto POST (null) [01:24:17]execute_cgi path=json_proto method=POST [01:24:17]POST find Content-Length [01:24:17]Host: 172.17.62.5:8080 [01:24:17]Content-Length: 990 [01:24:17]Content-Type: application/json [01:24:17] [01:24:17]POST finish read [01:24:17]Found Content-Length = 990 [01:24:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191537", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 76.510, "sum" : 2425.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 76.51 \u0441\u043E\u043C", "deposit" : 2800.00, "total" : 2425.00, "payments": [ { "type": 0, "sum" : 2425.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:24:17]execute_script... [01:24: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)191537", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 76.510, "sum" : 2425.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 76.51 \u0441\u043E\u043C", "deposit" : 2800.00, "total" : 2425.00, "payments": [ { "type": 0, "sum" : 2425.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:24:17]POST & json_proto [01:24:17]process_json_proto [01:24:17]json parsed OK: [01:24:17]protocol is kg_v1.0 [01:24:17]action value=close_receipt [01:24:17]process_action close_receipt [01:24:17]cmd_close_receipt [01:24:17]MH_GetDate [01:24:17]Write to MH i2c: F0 00 00 C3 01 B3 [01:24:17]Write i2c OK [01:24:17]MH_I2C_Read... [01:24:17]Read from MH i2c: F0 [01:24:17]MH_I2C_Read... [01:24:17]Read from MH i2c: F0 09 00 [01:24:17]MH_I2C_Read... [01:24:17]Read from MH i2c: F0 09 00 C3 01 00 42 BC 25 66 F4 E9 65 64 EB [01:24:17]GetLastDocTimeStamp 1713748186 [01:24:17]current date 1713749058 [01:24:17]FM_GetShiftState [01:24:17]SAM_PROTO_GetShiftState [01:24:17]wFMCommunicate request_size=4 [01:24:17]MH_SAM_APDU [01:24:17]CAPDU: 80 13 01 00 [01:24:17]Write to MH i2c: E2 08 00 C4 01 80 13 01 00 00 00 00 00 42 [01:24:17]Write i2c OK [01:24:17]MH_I2C_Read... [01:24:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:24:17]Read from MH i2c: E2 [01:24:17]MH_I2C_Read... [01:24:17]Read from MH i2c: E2 0E 00 [01:24:17]MH_I2C_Read... [01:24:17]Read from MH i2c: E2 0E 00 C4 01 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 69 [01:24:17]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [01:24:17]wFMCommunicate OK [01:24:17]SAM_PROTO_GetShiftState done [01:24:17]FM_GetShiftState done [01:24:17]opened in 1713745124 [01:24:17]opened+sec_in_day 1713831524 [01:24:17]quantity*price = 242536 [01:24:17]sum+1 = 242538 [01:24:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 2425.00 Внесено: 2800.00 СДАЧА: 375.00 НСП 1% : 21.46 НДС 12% : 257.56 Наличными: 2425.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 8 22.04.2024 01:24 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 76.51 сом ФМ: 0000000000874652 ФД: 76989 ФПД: 186621749015327 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T012418&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76989&fm=186621749015327&tin=02508201610067®Number=0000000000091573&sum=242500 [01:24:18]StoreToDocumentArchive [01:24:18]shift 373 fd 76989 [01:24:18]save to /storage/0373/doc_00076989 [01:24:18]save last doc name /storage/0373/doc_00076989 to /storage/kkm_last_doc_name [01:24:18]save OK [01:24:18]Clear old archive folders... [01:24:18]ProcessDocumentItem done err = 0, tmpTLVsize=250 [01:24:18]tlvbuf is 016F99A0 [01:24:18]SAM_PROTO_ClearQueue [01:24:18]wFMCommunicate request_size=4 [01:24:18]MH_SAM_APDU [01:24:18]CAPDU: 80 09 00 00 [01:24:18]Write to MH i2c: E2 08 00 D1 01 80 09 00 00 00 00 00 00 44 [01:24:18]Write i2c OK [01:24:18]MH_I2C_Read... [01:24:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:24:18]Read from MH i2c: E2 [01:24:18]MH_I2C_Read... [01:24:18]Read from MH i2c: E2 03 00 [01:24:18]MH_I2C_Read... [01:24:18]Read from MH i2c: E2 03 00 D1 01 00 90 00 46 [01:24:18]RAPDU: 90 00 [01:24:18]wFMCommunicate OK [01:24:18]SAM_PROTO_ClearQueue done [01:24:18]KKMCreateOFDPacket [01:24:18]OFDProtocolAddRootSTLVToBuf [01:24:18]FM_MakeSignedData [01:24:18]FM_MakeSignedData [01:24:18]SAM_PROTO_SignData [01:24:18]wFMCommunicate request_size=4 [01:24:18]MH_SAM_APDU [01:24:18]CAPDU: 80 0D 01 02 [01:24:18]Write to MH i2c: E2 08 00 D2 01 80 0D 01 02 00 00 00 00 4C [01:24:18]Write i2c OK [01:24:18]MH_I2C_Read... [01:24:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:24:18]Read from MH i2c: E2 [01:24:18]MH_I2C_Read... [01:24:18]Read from MH i2c: E2 03 00 [01:24:18]MH_I2C_Read... [01:24:18]Read from MH i2c: E2 03 00 D2 01 00 90 00 47 [01:24:18]RAPDU: 90 00 [01:24:18]wFMCommunicate OK [01:24:18]wFMCommunicate request_size=255 [01:24:18]MH_SAM_APDU [01:24:18]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 DE 2A 01 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 69 B3 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 B3 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 64 00 00 00 00 07 04 06 00 44 B3 03 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 42 BC 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BD 2C 01 00 35 04 06 00 A9 BB [01:24:18]Write to MH i2c: E2 02 01 D3 01 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 DE 2A 01 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 69 B3 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 B3 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 64 00 00 00 00 07 04 06 00 44 B3 03 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 42 BC 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BD 2C 01 00 35 04 06 00 A9 BB 00 00 46 [01:24:18]Write i2c OK [01:24:18]MH_I2C_Read... [01:24:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:24:18]Read from MH i2c: E2 [01:24:18]MH_I2C_Read... [01:24:18]Read from MH i2c: E2 03 00 [01:24:18]MH_I2C_Read... [01:24:18]Read from MH i2c: E2 03 00 D3 01 00 90 00 48 [01:24:18]RAPDU: 90 00 [01:24:18]wFMCommunicate OK [01:24:18]wFMCommunicate request_size=9 [01:24:18]MH_SAM_APDU [01:24:18]CAPDU: 80 0D 02 02 04 43 0E B3 1F [01:24:18]Write to MH i2c: E2 0C 00 D4 01 80 0D 02 02 04 00 43 0E B3 1F 00 00 7A [01:24:18]Write i2c OK [01:24:18]MH_I2C_Read... [01:24:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:24:18]Read from MH i2c: E2 [01:24:18]MH_I2C_Read... [01:24:18]Read from MH i2c: E2 03 00 [01:24:18]MH_I2C_Read... [01:24:18]Read from MH i2c: E2 03 00 D4 01 00 90 00 49 [01:24:18]RAPDU: 90 00 [01:24:18]wFMCommunicate OK [01:24:18]wFMCommunicate request_size=4 [01:24:18]MH_SAM_APDU [01:24:18]CAPDU: 80 0D 03 02 [01:24:18]Write to MH i2c: E2 08 00 D5 01 80 0D 03 02 00 00 00 00 51 [01:24:18]Write i2c OK [01:24:18]MH_I2C_Read... [01:24:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:24:18]Read from MH i2c: E2 [01:24:18]MH_I2C_Read... [01:24:18]Read from MH i2c: E2 0B 00 [01:24:18]MH_I2C_Read... [01:24:18]Read from MH i2c: E2 0B 00 D5 01 00 80 0D FA 68 35 13 B7 B7 90 00 F7 [01:24:18]RAPDU: 80 0D FA 68 35 13 B7 B7 90 00 [01:24:18]wFMCommunicate OK [01:24:18]SAM_PROTO_SignData done [01:24:18]FM_MakeSignedData done [01:24:18]CreateOFDProtocolMessage [01:24:18]wFMCommunicate request_size=4 [01:24:18]MH_SAM_APDU [01:24:18]CAPDU: 80 11 00 00 [01:24:18]Write to MH i2c: E2 08 00 D6 01 80 11 00 00 00 00 00 00 51 [01:24:18]Write i2c OK [01:24:18]MH_I2C_Read... [01:24:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:24:18]Read from MH i2c: E2 [01:24:18]MH_I2C_Read... [01:24:18]Read from MH i2c: E2 17 00 [01:24:18]MH_I2C_Read... [01:24:18]Read from MH i2c: E2 17 00 D6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 A4 [01:24:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [01:24:18]wFMCommunicate OK [01:24:18]CreateOFDProtocolMessage done [01:24:18]OFDSenderStorePacket 76989 [01:24:18]StoreOFDPacket docnum=76989 [01:24:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 08 22 06 01 ED 26 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 DE 2A 01 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 69 B3 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 B3 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 64 00 00 00 00 07 04 06 00 44 B3 03 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 42 BC 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BD 2C 01 00 35 04 06 00 A9 BB 43 0E B3 1F 80 0D FA 68 35 13 B7 B7 [01:24:18]CheckFolder [01:24:18]dirname=/storage/ofd_packets [01:24:18]CheckFolder done [01:24:18]ProducePacketName [01:24:18]name=ofd_packets/00076989 [01:24:18]NVStorageSaveData ofd_packets/00076989 [01:24:18]File name is /storage/ofd_packets/00076989 [01:24:18]Write 300 bytes [01:24:18]NVStorageSaveData done [01:24:18]OFDSenderStorePacket done [01:24:18]KKMCreateOFDPacket done [01:24:18]NVStorageSaveData kkm_last_timestamp [01:24:18]File name is /storage/kkm_last_timestamp [01:24:18]Write 4 bytes [01:24:18]NVStorageSaveData done [01:24:18]ExternCall_PrintAddStr [01:24:18]wPrintStart [01:24:18]Write to MH i2c: 01 00 00 D7 01 D8 [01:24:18]Write i2c OK [01:24:18]MH_I2C_Read... [01:24:18]Read from MH i2c: 01 [01:24:18]MH_I2C_Read... [01:24:18]Read from MH i2c: 01 07 00 [01:24:18]MH_I2C_Read... [01:24:18]Read from MH i2c: 01 07 00 D7 01 00 00 00 00 00 FF 0F ED [01:24:18]RasterBufferAndPrint [01:24:18]line Счет N : (1)191537 [01:24:18]line ИНН: 02508201610067 [01:24:18]line Контрольно-Кассовый Чек [01:24:18]line ПРОДАЖА [01:24:18]line ТРК (МРК, ГНК) : 71 [01:24:18]line Товар: 2711190000 [01:24:18]line ГАЗ-К-5 [01:24:18]line 76.510 * 31.70 [01:24:18]line = 2425.37 [01:24:18]line НДС 12% НСП 1% [01:24:18]line > о реализуемом товаре [01:24:18]line ОКРУГЛЕНИЕ: -0.37 [01:24:18]line ИТОГО: 2425.00 [01:24:18]line Внесено: 2800.00 [01:24:18]line СДАЧА: 375.00 [01:24:18]line НСП 1% : 21.46 [01:24:18]line НДС 12% : 257.56 [01:24:18]line Наличными: 2425.00 [01:24:18]line Безнал.: 0.00 [01:24:18]line Место: АЗС № 106 "Партнер Нефть" [01:24:18]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [01:24:18]line СНО: Общий режим [01:24:18]line Чек 8 22.04.2024 01:24 [01:24:18]line Смена: 373 ФФД: 1.0 [01:24:18]line ЗНМ: 0300000141 [01:24:18]line РНМ: 0000000000091573 [01:24:18]line Версия ККМ: 001 [01:24:18]line [01:24:18]line Дисконтная программа [01:24:18]line СУГ [01:24:18]line номер 106 [01:24:18]line сэкономлено 76.51 сом [01:24:18]line ФМ: 0000000000874652 [01:24:18]line ФД: 76989 [01:24:18]line ФПД: 186621749015327 [01:24:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T012418&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76989&fm=186621749015327&tin=02508201610067®Number=0000000000091573&sum=242500 [01:24:19]OFD Sender: Processing packet 76989 [packets to send 129, broken 128] [01:24:19]ProducePacketName [01:24:19]name=ofd_packets/00076989 [01:24:19]OFD Sender: To server: pG, [01:24:19]CommunicateWithHost lk.salyk.kg:30040 [01:24:19]ConnectInit lk.salyk.kg [01:24:19]written 0, free lines is 4095 [01:24:19]Connected sock=10 [01:24:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 08 22 06 01 ED 26 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 DE 2A 01 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 69 B3 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 B3 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 64 00 00 00 00 07 04 06 00 44 B3 03 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 42 BC 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BD 2C 01 00 35 04 06 00 A9 BB 43 0E B3 1F 80 0D FA 68 35 13 B7 B7 [01:24:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 B0 1A 47 00 4E 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BD 2C 01 00 F4 03 04 00 C6 63 25 66 B6 04 01 00 00 D9 D5 59 79 32 57 83 83 [01:24:19]CommunicateWithHost err = 0 [01:24:19]CheckOFDResponse [01:24:19]1017 (14) - 77093643461234 [01:24:19]1041 (16) - 0000000000874652 [01:24:19]1040 (4) - 76989 [01:24:19]1012 (4) - 21.04.2024 19:06 [01:24:19]1206 (1) - 0 [01:24:19]OFD Sender: Remove packet 76989 [01:24:19]ProducePacketName [01:24:19]name=ofd_packets/00076989 [01:24:19]NVStorageDeleteData [01:24:19]Write to MH i2c: 01 00 00 06 02 08 [01:24:19]Write i2c OK [01:24:19]MH_I2C_Read... [01:24:19]Read from MH i2c: 01 [01:24:19]MH_I2C_Read... [01:24:19]Read from MH i2c: 01 07 00 [01:24:19]MH_I2C_Read... [01:24:19]Read from MH i2c: 01 07 00 06 02 00 00 00 00 00 A1 0C BC [01:24:19]RasterBufferAndPrint [01:24:19]line [01:24:19]line [01:24:19]line [01:24:19]line [01:24:19]line [01:24:19]written 0, free lines is 3240 [01:24:19]MH_Cut [01:24:19]Write to MH i2c: D1 01 00 0D 02 01 E1 [01:24:19]Write i2c OK [01:24:19]MH_I2C_Read... [01:24:19]Read from MH i2c: D1 [01:24:19]MH_I2C_Read... [01:24:19]Read from MH i2c: D1 01 00 [01:24:19]MH_I2C_Read... [01:24:19]Read from MH i2c: D1 01 00 0D 02 00 E0 [01:24:19]Write to MH i2c: 01 00 00 0E 02 10 [01:24:19]Write i2c OK [01:24:19]MH_I2C_Read... [01:24:20]OFD Sender: No OFD packet to send [01:24:20]*** Cut start [01:24:20]*** Partial cut [01:24:20]*** CUTSNS_PIN = 1 [01:24:20]*** CUTSNS_PIN = 0 [01:24:20]*** Brake cut motor [01:24:21]Read from MH i2c: 01 [01:24:21]MH_I2C_Read... [01:24:21]*** Stop cut motor [01:24:21]*** Cut end [01:24:21]Read from MH i2c: 01 07 00 [01:24:21]MH_I2C_Read... [01:24:21]Read from MH i2c: 01 07 00 0E 02 00 00 00 00 00 FF 0F 25 [01:24:21]process_action close_receipt done [01:24:21]requested_data is exist [01:24:21]produce_requested_data [01:24:21]requested_item fm.sn is exist - process it [01:24:21]wFMCommunicate request_size=4 [01:24:21]MH_SAM_APDU [01:24:21]CAPDU: 80 11 00 00 [01:24:21]Write to MH i2c: E2 08 00 0F 02 80 11 00 00 00 00 00 00 8B [01:24:21]Write i2c OK [01:24:21]MH_I2C_Read... [01:24:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:24:21]Read from MH i2c: E2 [01:24:21]MH_I2C_Read... [01:24:21]Read from MH i2c: E2 17 00 [01:24:21]MH_I2C_Read... [01:24:21]Read from MH i2c: E2 17 00 0F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 DE [01:24:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [01:24:21]wFMCommunicate OK [01:24:21]requested_item fd.num is exist - process it [01:24:21]SAM_PROTO_GetFieldsCounters [01:24:21]wFMCommunicate request_size=4 [01:24:21]MH_SAM_APDU [01:24:21]CAPDU: 80 13 00 00 [01:24:21]Write to MH i2c: E2 08 00 10 02 80 13 00 00 00 00 00 00 8E [01:24:21]Write i2c OK [01:24:21]MH_I2C_Read... [01:24:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:24:21]Read from MH i2c: E2 [01:24:21]MH_I2C_Read... [01:24:21]Read from MH i2c: E2 62 00 [01:24:21]MH_I2C_Read... [01:24:21]Read from MH i2c: E2 62 00 10 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 BD 2C 01 00 0E 04 04 00 75 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 27 [01:24: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 BD 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:24:21]wFMCommunicate OK [01:24:21]SAM_PROTO_GetFieldsCounters done [01:24:21]requested_item shift.num is exist - process it [01:24:21]requested_item shift.opened is exist - process it [01:24:21]req_shift_opened [01:24:21]FM_GetShiftState [01:24:21]SAM_PROTO_GetShiftState [01:24:21]wFMCommunicate request_size=4 [01:24:21]MH_SAM_APDU [01:24:21]CAPDU: 80 13 01 00 [01:24:21]Write to MH i2c: E2 08 00 11 02 80 13 01 00 00 00 00 00 90 [01:24:21]Write i2c OK [01:24:21]MH_I2C_Read... [01:24:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:24:21]Read from MH i2c: E2 [01:24:21]MH_I2C_Read... [01:24:21]Read from MH i2c: E2 0E 00 [01:24:21]MH_I2C_Read... [01:24:21]Read from MH i2c: E2 0E 00 11 02 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 B7 [01:24:21]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [01:24:21]wFMCommunicate OK [01:24:21]SAM_PROTO_GetShiftState done [01:24:21]FM_GetShiftState done [01:24:21]req_shift_opened done [01:24:21]requested_item shift.open_date is exist - process it [01:24:21]req_shift_open_date [01:24:21]req_shift_open_date done [01:24:21]produce_requested_data done [01:24:21]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76989,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [01:24:21]process_action_free close_receipt [01:24:21]json_value_free [01:24:21]json_value_free done [01:24:21]process_json_proto returns [01:24:21]Send response to host [01:24:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76989,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [01:24:21]free response buf [01:24:21]execute_script done [01:24:21]execute_script returns [01:24:21]free content buf [01:24:21]Sock 9.Close socket [01:24:21]Sock 9.Thread stoped [01:24:25]OFD Sender: No OFD packet to send [01:24:30]OFD Sender: No OFD packet to send [01:24:35]OFD Sender: No OFD packet to send [01:24:40]OFD Sender: No OFD packet to send [01:24:45]OFD Sender: No OFD packet to send [01:24:50]OFD Sender: No OFD packet to send [01:24:55]OFD Sender: No OFD packet to send [01:25:00]OFD Sender: No OFD packet to send [01:25:05]OFD Sender: No OFD packet to send [01:25:10]OFD Sender: No OFD packet to send [01:25:15]OFD Sender: No OFD packet to send [01:25:20]OFD Sender: No OFD packet to send [01:25:25]OFD Sender: No OFD packet to send [01:25:30]OFD Sender: No OFD packet to send [01:25:35]OFD Sender: No OFD packet to send [01:25:40]OFD Sender: No OFD packet to send [01:25:45]OFD Sender: No OFD packet to send [01:25:50]OFD Sender: No OFD packet to send [01:25:55]OFD Sender: No OFD packet to send [01:26:00]OFD Sender: No OFD packet to send [01:26:05]OFD Sender: No OFD packet to send [01:26:10]OFD Sender: No OFD packet to send [01:26:15]OFD Sender: No OFD packet to send [01:26:20]OFD Sender: No OFD packet to send [01:26:25]OFD Sender: No OFD packet to send [01:26:30]OFD Sender: No OFD packet to send [01:26:35]OFD Sender: No OFD packet to send [01:26:40]OFD Sender: No OFD packet to send [01:26:45]OFD Sender: No OFD packet to send [01:26:50]OFD Sender: No OFD packet to send [01:26:55]OFD Sender: No OFD packet to send [01:27:00]OFD Sender: No OFD packet to send [01:27:05]OFD Sender: No OFD packet to send [01:27:10]OFD Sender: No OFD packet to send [01:27:15]OFD Sender: No OFD packet to send [01:27:20]OFD Sender: No OFD packet to send [01:27:25]OFD Sender: No OFD packet to send [01:27:30]OFD Sender: No OFD packet to send [01:27:35]OFD Sender: No OFD packet to send [01:27:40]OFD Sender: No OFD packet to send [01:27:45]OFD Sender: No OFD packet to send [01:27:50]OFD Sender: No OFD packet to send [01:27:55]OFD Sender: No OFD packet to send [01:28:00]OFD Sender: No OFD packet to send [01:28:05]OFD Sender: No OFD packet to send [01:28:10]OFD Sender: No OFD packet to send [01:28:15]OFD Sender: No OFD packet to send [01:28:20]OFD Sender: No OFD packet to send [01:28:25]OFD Sender: No OFD packet to send [01:28:30]OFD Sender: No OFD packet to send [01:28:35]OFD Sender: No OFD packet to send [01:28:40]OFD Sender: No OFD packet to send [01:28:45]OFD Sender: No OFD packet to send [01:28:50]OFD Sender: No OFD packet to send [01:28:55]OFD Sender: No OFD packet to send [01:29:00]OFD Sender: No OFD packet to send [01:29:05]OFD Sender: No OFD packet to send [01:29:10]OFD Sender: No OFD packet to send [01:29:15]OFD Sender: No OFD packet to send [01:29:20]OFD Sender: No OFD packet to send [01:29:25]OFD Sender: No OFD packet to send [01:29:30]OFD Sender: No OFD packet to send [01:29:35]OFD Sender: No OFD packet to send [01:29:40]OFD Sender: No OFD packet to send [01:29:45]OFD Sender: No OFD packet to send [01:29:50]OFD Sender: No OFD packet to send [01:29:55]OFD Sender: No OFD packet to send [01:30:00]OFD Sender: No OFD packet to send [01:30:05]OFD Sender: No OFD packet to send [01:30:10]OFD Sender: No OFD packet to send [01:30:15]OFD Sender: No OFD packet to send [01:30:20]OFD Sender: No OFD packet to send [01:30:25]OFD Sender: No OFD packet to send [01:30:30]OFD Sender: No OFD packet to send [01:30:35]OFD Sender: No OFD packet to send [01:30:40]OFD Sender: No OFD packet to send [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:01]OFD Sender: No OFD packet to send [01:37:06]OFD Sender: No OFD packet to send [01:37:11]OFD Sender: No OFD packet to send [01:37:16]OFD Sender: No OFD packet to send [01:37:21]OFD Sender: No OFD packet to send [01:37:26]OFD Sender: No OFD packet to send [01:37:31]OFD Sender: No OFD packet to send [01:37:36]OFD Sender: No OFD packet to send [01:37:41]OFD Sender: No OFD packet to send [01:37:46]OFD Sender: No OFD packet to send [01:37:51]OFD Sender: No OFD packet to send [01:37:56]OFD Sender: No OFD packet to send [01:38:01]OFD Sender: No OFD packet to send [01:38:06]OFD Sender: No OFD packet to send [01:38:11]OFD Sender: No OFD packet to send [01:38:16]OFD Sender: No OFD packet to send [01:38:21]OFD Sender: No OFD packet to send [01:38:21]accept exits with 7 [01:38:21]New connection [01:38:21]New thread 3067030884 created [01:38:21]Thread 3067174244 joined [01:38:21]Waiting for new connection... [01:38:21] Sock 7.Parse request [01:38:21]Sock 7.Check first char [01:38:21]Sock 7.First char is OK [01:38:21]request: POST /json_proto HTTP/1.0 [01:38:21]Method: POST [01:38:21]URL: /json_proto [01:38:21]Method is POST - this is cgi request [01:38:21]url: /json_proto [01:38:21]query_string will be loaded in cgi processing [01:38:21]execute_cgi json_proto POST (null) [01:38:21]execute_cgi path=json_proto method=POST [01:38:21]POST find Content-Length [01:38:21]Host: 172.17.62.5:8080 [01:38:21]Content-Length: 811 [01:38:21]Content-Type: application/json [01:38:21] [01:38:21]POST finish read [01:38:21]Found Content-Length = 811 [01:38:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191538", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 76.460, "sum" : 2500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:38:21]execute_script... [01:38: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)191538", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 76.460, "sum" : 2500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:38:21]POST & json_proto [01:38:21]process_json_proto [01:38:21]json parsed OK: [01:38:21]protocol is kg_v1.0 [01:38:21]action value=close_receipt [01:38:21]process_action close_receipt [01:38:21]cmd_close_receipt [01:38:21]MH_GetDate [01:38:21]Write to MH i2c: F0 00 00 12 02 03 [01:38:21]Write i2c OK [01:38:21]MH_I2C_Read... [01:38:21]Read from MH i2c: F0 [01:38:21]MH_I2C_Read... [01:38:21]Read from MH i2c: F0 09 00 [01:38:21]MH_I2C_Read... [01:38:21]Read from MH i2c: F0 09 00 12 02 00 8E BF 25 66 F4 E9 65 64 8A [01:38:21]GetLastDocTimeStamp 1713749058 [01:38:21]current date 1713749902 [01:38:21]FM_GetShiftState [01:38:21]SAM_PROTO_GetShiftState [01:38:21]wFMCommunicate request_size=4 [01:38:21]MH_SAM_APDU [01:38:21]CAPDU: 80 13 01 00 [01:38:21]Write to MH i2c: E2 08 00 13 02 80 13 01 00 00 00 00 00 92 [01:38:21]Write i2c OK [01:38:21]MH_I2C_Read... [01:38:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:38:21]Read from MH i2c: E2 [01:38:21]MH_I2C_Read... [01:38:21]Read from MH i2c: E2 0E 00 [01:38:21]MH_I2C_Read... [01:38:21]Read from MH i2c: E2 0E 00 13 02 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 B9 [01:38:21]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [01:38:21]wFMCommunicate OK [01:38:21]SAM_PROTO_GetShiftState done [01:38:21]FM_GetShiftState done [01:38:21]opened in 1713745124 [01:38:21]opened+sec_in_day 1713831524 [01:38:21]quantity*price = 250024 [01:38:21]sum+1 = 250025 [01:38:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.24 НСП 1% : 22.13 НДС 12% : 265.51 Наличными: 0.00 Безнал.: 2500.24 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 9 22.04.2024 01:38 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 76990 ФПД: 54207361221871 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T013822&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76990&fm=54207361221871&tin=02508201610067®Number=0000000000091573&sum=250024 [01:38:22]StoreToDocumentArchive [01:38:22]shift 373 fd 76990 [01:38:22]save to /storage/0373/doc_00076990 [01:38:22]save last doc name /storage/0373/doc_00076990 to /storage/kkm_last_doc_name [01:38:22]save OK [01:38:22]Clear old archive folders... [01:38:22]ProcessDocumentItem done err = 0, tmpTLVsize=250 [01:38:22]tlvbuf is 01750430 [01:38:22]SAM_PROTO_ClearQueue [01:38:22]wFMCommunicate request_size=4 [01:38:22]MH_SAM_APDU [01:38:22]CAPDU: 80 09 00 00 [01:38:22]Write to MH i2c: E2 08 00 20 02 80 09 00 00 00 00 00 00 94 [01:38:22]Write i2c OK [01:38:22]MH_I2C_Read... [01:38:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:38:22]Read from MH i2c: E2 [01:38:22]MH_I2C_Read... [01:38:22]Read from MH i2c: E2 03 00 [01:38:22]MH_I2C_Read... [01:38:22]Read from MH i2c: E2 03 00 20 02 00 90 00 96 [01:38:22]RAPDU: 90 00 [01:38:22]wFMCommunicate OK [01:38:22]SAM_PROTO_ClearQueue done [01:38:22]KKMCreateOFDPacket [01:38:22]OFDProtocolAddRootSTLVToBuf [01:38:22]FM_MakeSignedData [01:38:22]FM_MakeSignedData [01:38:22]SAM_PROTO_SignData [01:38:22]wFMCommunicate request_size=4 [01:38:22]MH_SAM_APDU [01:38:22]CAPDU: 80 0D 01 02 [01:38:22]Write to MH i2c: E2 08 00 21 02 80 0D 01 02 00 00 00 00 9C [01:38:22]Write i2c OK [01:38:22]MH_I2C_Read... [01:38:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:38:22]Read from MH i2c: E2 [01:38:22]MH_I2C_Read... [01:38:22]Read from MH i2c: E2 03 00 [01:38:22]MH_I2C_Read... [01:38:22]Read from MH i2c: E2 03 00 21 02 00 90 00 97 [01:38:22]RAPDU: 90 00 [01:38:22]wFMCommunicate OK [01:38:22]wFMCommunicate request_size=255 [01:38:22]MH_SAM_APDU [01:38:22]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 AC 2A 01 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 A8 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 8E BF 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BE 2C 01 00 35 04 06 00 31 4D [01:38:22]Write to MH i2c: E2 02 01 22 02 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 AC 2A 01 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 A8 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 8E BF 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BE 2C 01 00 35 04 06 00 31 4D 00 00 F2 [01:38:22]Write i2c OK [01:38:22]MH_I2C_Read... [01:38:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:38:22]Read from MH i2c: E2 [01:38:22]MH_I2C_Read... [01:38:22]Read from MH i2c: E2 03 00 [01:38:22]MH_I2C_Read... [01:38:22]Read from MH i2c: E2 03 00 22 02 00 90 00 98 [01:38:22]RAPDU: 90 00 [01:38:22]wFMCommunicate OK [01:38:22]wFMCommunicate request_size=9 [01:38:22]MH_SAM_APDU [01:38:22]CAPDU: 80 0D 02 02 04 22 82 84 EF [01:38:22]Write to MH i2c: E2 0C 00 23 02 80 0D 02 02 04 00 22 82 84 EF 00 00 BE [01:38:22]Write i2c OK [01:38:22]MH_I2C_Read... [01:38:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:38:22]Read from MH i2c: E2 [01:38:22]MH_I2C_Read... [01:38:22]Read from MH i2c: E2 03 00 [01:38:22]MH_I2C_Read... [01:38:22]Read from MH i2c: E2 03 00 23 02 00 90 00 99 [01:38:22]RAPDU: 90 00 [01:38:22]wFMCommunicate OK [01:38:22]wFMCommunicate request_size=4 [01:38:22]MH_SAM_APDU [01:38:22]CAPDU: 80 0D 03 02 [01:38:22]Write to MH i2c: E2 08 00 24 02 80 0D 03 02 00 00 00 00 A1 [01:38:22]Write i2c OK [01:38:22]MH_I2C_Read... [01:38:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:38:22]Read from MH i2c: E2 [01:38:22]MH_I2C_Read... [01:38:22]Read from MH i2c: E2 0B 00 [01:38:22]MH_I2C_Read... [01:38:22]Read from MH i2c: E2 0B 00 24 02 00 9F BF B3 04 23 21 49 AA 90 00 EE [01:38:22]RAPDU: 9F BF B3 04 23 21 49 AA 90 00 [01:38:22]wFMCommunicate OK [01:38:22]SAM_PROTO_SignData done [01:38:22]FM_MakeSignedData done [01:38:22]CreateOFDProtocolMessage [01:38:22]wFMCommunicate request_size=4 [01:38:22]MH_SAM_APDU [01:38:22]CAPDU: 80 11 00 00 [01:38:22]Write to MH i2c: E2 08 00 25 02 80 11 00 00 00 00 00 00 A1 [01:38:22]Write i2c OK [01:38:23]MH_I2C_Read... [01:38:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:38:23]Read from MH i2c: E2 [01:38:23]MH_I2C_Read... [01:38:23]Read from MH i2c: E2 17 00 [01:38:23]MH_I2C_Read... [01:38:23]Read from MH i2c: E2 17 00 25 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F4 [01:38:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [01:38:23]wFMCommunicate OK [01:38:23]CreateOFDProtocolMessage done [01:38:23]OFDSenderStorePacket 76990 [01:38:23]StoreOFDPacket docnum=76990 [01:38:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 D1 5D 06 01 F1 26 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 AC 2A 01 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 A8 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 8E BF 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BE 2C 01 00 35 04 06 00 31 4D 22 82 84 EF 9F BF B3 04 23 21 49 AA [01:38:23]CheckFolder [01:38:23]dirname=/storage/ofd_packets [01:38:23]CheckFolder done [01:38:23]ProducePacketName [01:38:23]name=ofd_packets/00076990 [01:38:23]NVStorageSaveData ofd_packets/00076990 [01:38:23]File name is /storage/ofd_packets/00076990 [01:38:23]Write 300 bytes [01:38:23]NVStorageSaveData done [01:38:23]OFDSenderStorePacket done [01:38:23]KKMCreateOFDPacket done [01:38:23]NVStorageSaveData kkm_last_timestamp [01:38:23]File name is /storage/kkm_last_timestamp [01:38:23]Write 4 bytes [01:38:23]NVStorageSaveData done [01:38:23]ExternCall_PrintAddStr [01:38:23]wPrintStart [01:38:23]Write to MH i2c: 01 00 00 26 02 28 [01:38:23]Write i2c OK [01:38:23]MH_I2C_Read... [01:38:23]Read from MH i2c: 01 [01:38:23]MH_I2C_Read... [01:38:23]Read from MH i2c: 01 07 00 [01:38:23]MH_I2C_Read... [01:38:23]Read from MH i2c: 01 07 00 26 02 00 00 00 00 00 FF 0F 3D [01:38:23]RasterBufferAndPrint [01:38:23]line Счет N : (1)191538 [01:38:23]line ИНН: 02508201610067 [01:38:23]line Контрольно-Кассовый Чек [01:38:23]line ПРОДАЖА [01:38:23]line ТРК (МРК, ГНК) : 71 [01:38:23]line Товар: 2711190000 [01:38:23]line ГАЗ-К-5 [01:38:23]line 76.460 * 32.70 [01:38:23]line = 2500.24 [01:38:23]line НДС 12% НСП 1% [01:38:23]line > о реализуемом товаре [01:38:23]line ИТОГО: 2500.24 [01:38:23]line НСП 1% : 22.13 [01:38:23]line НДС 12% : 265.51 [01:38:23]line Наличными: 0.00 [01:38:23]line Безнал.: 2500.24 [01:38:23]line Место: АЗС № 106 "Партнер Нефть" [01:38:23]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [01:38:23]line СНО: Общий режим [01:38:23]line Чек 9 22.04.2024 01:38 [01:38:23]line Смена: 373 ФФД: 1.0 [01:38:23]line ЗНМ: 0300000141 [01:38:23]line РНМ: 0000000000091573 [01:38:23]line Версия ККМ: 001 [01:38:23]line Платежная система: О! деньги [01:38:23]line ФМ: 0000000000874652 [01:38:23]line ФД: 76990 [01:38:23]line ФПД: 54207361221871 [01:38:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T013822&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76990&fm=54207361221871&tin=02508201610067®Number=0000000000091573&sum=250024 [01:38:23]written 0, free lines is 4095 [01:38:23]OFD Sender: Processing packet 76990 [packets to send 129, broken 128] [01:38:23]ProducePacketName [01:38:23]name=ofd_packets/00076990 [01:38:23]OFD Sender: To server: pG, [01:38:23]CommunicateWithHost lk.salyk.kg:30040 [01:38:23]ConnectInit lk.salyk.kg [01:38:23]Connected sock=10 [01:38:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 D1 5D 06 01 F1 26 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 AC 2A 01 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 A8 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 8E BF 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BE 2C 01 00 35 04 06 00 31 4D 22 82 84 EF 9F BF B3 04 23 21 49 AA [01:38:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 A2 AB 47 00 42 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 34 36 35 32 10 04 04 00 BE 2C 01 00 F4 03 04 00 11 67 25 66 B6 04 01 00 00 93 77 59 2C 9E 2E A4 A9 [01:38:23]CommunicateWithHost err = 0 [01:38:23]CheckOFDResponse [01:38:23]1017 (14) - 77093643461234 [01:38:23]1041 (16) - 0000000000874652 [01:38:23]1040 (4) - 76990 [01:38:23]1012 (4) - 21.04.2024 19:20 [01:38:23]1206 (1) - 0 [01:38:23]OFD Sender: Remove packet 76990 [01:38:23]ProducePacketName [01:38:23]name=ofd_packets/00076990 [01:38:23]NVStorageDeleteData [01:38:23]Write to MH i2c: 01 00 00 4F 02 51 [01:38:23]Write i2c OK [01:38:23]MH_I2C_Read... [01:38:23]Read from MH i2c: 01 [01:38:23]MH_I2C_Read... [01:38:23]Read from MH i2c: 01 07 00 [01:38:23]MH_I2C_Read... [01:38:23]Read from MH i2c: 01 07 00 4F 02 00 00 00 00 00 F6 0C 5A [01:38:23]RasterBufferAndPrint [01:38:23]line [01:38:23]line [01:38:23]line [01:38:23]line [01:38:23]line [01:38:23]written 0, free lines is 3324 [01:38:23]MH_Cut [01:38:23]Write to MH i2c: D1 01 00 56 02 01 2A [01:38:23]Write i2c OK [01:38:23]MH_I2C_Read... [01:38:23]Read from MH i2c: D1 [01:38:23]MH_I2C_Read... [01:38:23]Read from MH i2c: D1 01 00 [01:38:23]MH_I2C_Read... [01:38:23]Read from MH i2c: D1 01 00 56 02 00 29 [01:38:23]Write to MH i2c: 01 00 00 57 02 59 [01:38:23]Write i2c OK [01:38:23]MH_I2C_Read... [01:38:23]OFD Sender: No OFD packet to send [01:38:24]*** Cut start [01:38:24]*** Partial cut [01:38:24]*** CUTSNS_PIN = 1 [01:38:24]*** CUTSNS_PIN = 0 [01:38:24]*** Brake cut motor [01:38:24]Read from MH i2c: 01 [01:38:24]MH_I2C_Read... [01:38:24]*** Stop cut motor [01:38:24]*** Cut end [01:38:24]Read from MH i2c: 01 07 00 [01:38:24]MH_I2C_Read... [01:38:24]Read from MH i2c: 01 07 00 57 02 00 00 00 00 00 FF 0F 6E [01:38:24]process_action close_receipt done [01:38:24]requested_data is exist [01:38:24]produce_requested_data [01:38:24]requested_item fm.sn is exist - process it [01:38:24]wFMCommunicate request_size=4 [01:38:24]MH_SAM_APDU [01:38:24]CAPDU: 80 11 00 00 [01:38:24]Write to MH i2c: E2 08 00 58 02 80 11 00 00 00 00 00 00 D4 [01:38:24]Write i2c OK [01:38:24]MH_I2C_Read... [01:38:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:38:24]Read from MH i2c: E2 [01:38:24]MH_I2C_Read... [01:38:24]Read from MH i2c: E2 17 00 [01:38:24]MH_I2C_Read... [01:38:24]Read from MH i2c: E2 17 00 58 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 27 [01:38:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [01:38:24]wFMCommunicate OK [01:38:24]requested_item fd.num is exist - process it [01:38:24]SAM_PROTO_GetFieldsCounters [01:38:24]wFMCommunicate request_size=4 [01:38:24]MH_SAM_APDU [01:38:24]CAPDU: 80 13 00 00 [01:38:24]Write to MH i2c: E2 08 00 59 02 80 13 00 00 00 00 00 00 D7 [01:38:24]Write i2c OK [01:38:24]MH_I2C_Read... [01:38:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:38:25]Read from MH i2c: E2 [01:38:25]MH_I2C_Read... [01:38:25]Read from MH i2c: E2 62 00 [01:38:25]MH_I2C_Read... [01:38:25]Read from MH i2c: E2 62 00 59 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 BE 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [01:38: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 BE 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:38:25]wFMCommunicate OK [01:38:25]SAM_PROTO_GetFieldsCounters done [01:38:25]requested_item shift.num is exist - process it [01:38:25]requested_item shift.opened is exist - process it [01:38:25]req_shift_opened [01:38:25]FM_GetShiftState [01:38:25]SAM_PROTO_GetShiftState [01:38:25]wFMCommunicate request_size=4 [01:38:25]MH_SAM_APDU [01:38:25]CAPDU: 80 13 01 00 [01:38:25]Write to MH i2c: E2 08 00 5A 02 80 13 01 00 00 00 00 00 D9 [01:38:25]Write i2c OK [01:38:25]MH_I2C_Read... [01:38:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:38:25]Read from MH i2c: E2 [01:38:25]MH_I2C_Read... [01:38:25]Read from MH i2c: E2 0E 00 [01:38:25]MH_I2C_Read... [01:38:25]Read from MH i2c: E2 0E 00 5A 02 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 00 [01:38:25]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [01:38:25]wFMCommunicate OK [01:38:25]SAM_PROTO_GetShiftState done [01:38:25]FM_GetShiftState done [01:38:25]req_shift_opened done [01:38:25]requested_item shift.open_date is exist - process it [01:38:25]req_shift_open_date [01:38:25]req_shift_open_date done [01:38:25]produce_requested_data done [01:38:25]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76990,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [01:38:25]process_action_free close_receipt [01:38:25]json_value_free [01:38:25]json_value_free done [01:38:25]process_json_proto returns [01:38:25]Send response to host [01:38:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76990,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [01:38:25]free response buf [01:38:25]execute_script done [01:38:25]execute_script returns [01:38:25]free content buf [01:38:25]Sock 7.Close socket [01:38:25]Sock 7.Thread stoped [01:38:28]OFD Sender: No OFD packet to send [01:38:33]OFD Sender: No OFD packet to send [01:38:38]OFD Sender: No OFD packet to send [01:38:44]OFD Sender: No OFD packet to send [01:38:49]OFD Sender: No OFD packet to send [01:38:54]OFD Sender: No OFD packet to send [01:38:59]OFD Sender: No OFD packet to send [01:39:04]OFD Sender: No OFD packet to send [01:39:09]OFD Sender: No OFD packet to send [01:39:14]OFD Sender: No OFD packet to send [01:39:19]OFD Sender: No OFD packet to send [01:39:24]OFD Sender: No OFD packet to send [01:39:29]OFD Sender: No OFD packet to send [01:39:34]OFD Sender: No OFD packet to send [01:39:39]OFD Sender: No OFD packet to send [01:39:44]OFD Sender: No OFD packet to send [01:39:49]OFD Sender: No OFD packet to send [01:39:54]OFD Sender: No OFD packet to send [01:39:59]OFD Sender: No OFD packet to send [01:40:04]OFD Sender: No OFD packet to send [01:40:09]OFD Sender: No OFD packet to send [01:40:14]OFD Sender: No OFD packet to send [01:40:19]OFD Sender: No OFD packet to send [01:40:24]OFD Sender: No OFD packet to send [01:40:29]OFD Sender: No OFD packet to send [01:40:34]OFD Sender: No OFD packet to send [01:40:39]OFD Sender: No OFD packet to send [01:40:44]OFD Sender: No OFD packet to send [01:40:49]OFD Sender: No OFD packet to send [01:40:54]OFD Sender: No OFD packet to send [01:40:59]OFD Sender: No OFD packet to send [01:41:04]OFD Sender: No OFD packet to send [01:41:09]OFD Sender: No OFD packet to send [01:41:14]OFD Sender: No OFD packet to send [01:41:19]OFD Sender: No OFD packet to send [01:41:24]OFD Sender: No OFD packet to send [01:41:29]OFD Sender: No OFD packet to send [01:41:34]OFD Sender: No OFD packet to send [01:41:39]OFD Sender: No OFD packet to send [01:41:44]OFD Sender: No OFD packet to send [01:41:49]OFD Sender: No OFD packet to send [01:41:54]OFD Sender: No OFD packet to send [01:41:59]OFD Sender: No OFD packet to send [01:42:04]OFD Sender: No OFD packet to send [01:42:09]OFD Sender: No OFD packet to send [01:42:14]OFD Sender: No OFD packet to send [01:42:19]OFD Sender: No OFD packet to send [01:42:24]OFD Sender: No OFD packet to send [01:42:29]OFD Sender: No OFD packet to send [01:42:34]OFD Sender: No OFD packet to send [01:42:39]OFD Sender: No OFD packet to send [01:42:44]OFD Sender: No OFD packet to send [01:42:49]OFD Sender: No OFD packet to send [01:42:54]OFD Sender: No OFD packet to send [01:42:59]OFD Sender: No OFD packet to send [01:43:04]OFD Sender: No OFD packet to send [01:43:09]OFD Sender: No OFD packet to send [01:43:14]OFD Sender: No OFD packet to send [01:43:19]OFD Sender: No OFD packet to send [01:43:24]OFD Sender: No OFD packet to send [01:43:29]OFD Sender: No OFD packet to send [01:43:34]OFD Sender: No OFD packet to send [01:43:39]OFD Sender: No OFD packet to send [01:43:44]OFD Sender: No OFD packet to send [01:43:49]OFD Sender: No OFD packet to send [01:43:54]OFD Sender: No OFD packet to send [01:43:59]OFD Sender: No OFD packet to send [01:44:04]OFD Sender: No OFD packet to send [01:44:09]OFD Sender: No OFD packet to send [01:44:14]OFD Sender: No OFD packet to send [01:44:19]OFD Sender: No OFD packet to send [01:44:24]OFD Sender: No OFD packet to send [01:44:29]OFD Sender: No OFD packet to send [01:44:31]accept exits with 9 [01:44:31]New connection [01:44:31]New thread 3067174244 created [01:44:31]Thread 3067030884 joined [01:44:31]Waiting for new connection... [01:44:31] Sock 9.Parse request [01:44:31]Sock 9.Check first char [01:44:31]Sock 9.First char is OK [01:44:31]request: POST /json_proto HTTP/1.0 [01:44:31]Method: POST [01:44:31]URL: /json_proto [01:44:31]Method is POST - this is cgi request [01:44:31]url: /json_proto [01:44:31]query_string will be loaded in cgi processing [01:44:31]execute_cgi json_proto POST (null) [01:44:31]execute_cgi path=json_proto method=POST [01:44:31]POST find Content-Length [01:44:31]Host: 172.17.62.5:8080 [01:44:31]Content-Length: 682 [01:44:31]Content-Type: application/json [01:44:31] [01:44:31]POST finish read [01:44:31]Found Content-Length = 682 [01:44:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191539", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 24.380, "sum" : 1570.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1570.00, "total" : 1570.00, "payments": [ { "type": 0, "sum" : 1570.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:44:31]execute_script... [01:44: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)191539", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 24.380, "sum" : 1570.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1570.00, "total" : 1570.00, "payments": [ { "type": 0, "sum" : 1570.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:44:31]POST & json_proto [01:44:31]process_json_proto [01:44:31]json parsed OK: [01:44:31]protocol is kg_v1.0 [01:44:31]action value=close_receipt [01:44:31]process_action close_receipt [01:44:31]cmd_close_receipt [01:44:31]MH_GetDate [01:44:31]Write to MH i2c: F0 00 00 5B 02 4C [01:44:31]Write i2c OK [01:44:31]MH_I2C_Read... [01:44:31]Read from MH i2c: F0 [01:44:31]MH_I2C_Read... [01:44:31]Read from MH i2c: F0 09 00 [01:44:31]MH_I2C_Read... [01:44:31]Read from MH i2c: F0 09 00 5B 02 00 00 C1 25 66 F4 E9 65 64 47 [01:44:31]GetLastDocTimeStamp 1713749902 [01:44:31]current date 1713750272 [01:44:31]FM_GetShiftState [01:44:31]SAM_PROTO_GetShiftState [01:44:31]wFMCommunicate request_size=4 [01:44:31]MH_SAM_APDU [01:44:31]CAPDU: 80 13 01 00 [01:44:31]Write to MH i2c: E2 08 00 5C 02 80 13 01 00 00 00 00 00 DB [01:44:31]Write i2c OK [01:44:31]MH_I2C_Read... [01:44:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:44:31]Read from MH i2c: E2 [01:44:31]MH_I2C_Read... [01:44:31]Read from MH i2c: E2 0E 00 [01:44:31]MH_I2C_Read... [01:44:31]Read from MH i2c: E2 0E 00 5C 02 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 02 [01:44:31]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [01:44:31]wFMCommunicate OK [01:44:31]SAM_PROTO_GetShiftState done [01:44:31]FM_GetShiftState done [01:44:31]opened in 1713745124 [01:44:31]opened+sec_in_day 1713831524 [01:44:31]quantity*price = 157007 [01:44:31]sum+1 = 157008 [01:44:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 1570.00 Внесено: 1570.00 СДАЧА: 0.00 НСП 1% : 13.89 НДС 12% : 166.73 Наличными: 1570.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 10 22.04.2024 01:44 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76991 ФПД: 200966159681458 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T014432&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76991&fm=200966159681458&tin=02508201610067®Number=0000000000091573&sum=157000 [01:44:32]StoreToDocumentArchive [01:44:32]shift 373 fd 76991 [01:44:32]save to /storage/0373/doc_00076991 [01:44:32]save last doc name /storage/0373/doc_00076991 to /storage/kkm_last_doc_name [01:44:32]save OK [01:44:32]Clear old archive folders... [01:44:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:44:32]tlvbuf is 016FA330 [01:44:32]SAM_PROTO_ClearQueue [01:44:32]wFMCommunicate request_size=4 [01:44:32]MH_SAM_APDU [01:44:32]CAPDU: 80 09 00 00 [01:44:32]Write to MH i2c: E2 08 00 69 02 80 09 00 00 00 00 00 00 DD [01:44:32]Write i2c OK [01:44:32]MH_I2C_Read... [01:44:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:44:32]Read from MH i2c: E2 [01:44:32]MH_I2C_Read... [01:44:32]Read from MH i2c: E2 03 00 [01:44:32]MH_I2C_Read... [01:44:32]Read from MH i2c: E2 03 00 69 02 00 90 00 DF [01:44:32]RAPDU: 90 00 [01:44:32]wFMCommunicate OK [01:44:32]SAM_PROTO_ClearQueue done [01:44:32]KKMCreateOFDPacket [01:44:32]OFDProtocolAddRootSTLVToBuf [01:44:32]FM_MakeSignedData [01:44:32]FM_MakeSignedData [01:44:32]SAM_PROTO_SignData [01:44:32]wFMCommunicate request_size=4 [01:44:32]MH_SAM_APDU [01:44:32]CAPDU: 80 0D 01 02 [01:44:32]Write to MH i2c: E2 08 00 6A 02 80 0D 01 02 00 00 00 00 E5 [01:44:32]Write i2c OK [01:44:32]MH_I2C_Read... [01:44:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:44:32]Read from MH i2c: E2 [01:44:32]MH_I2C_Read... [01:44:32]Read from MH i2c: E2 03 00 [01:44:32]MH_I2C_Read... [01:44:32]Read from MH i2c: E2 03 00 6A 02 00 90 00 E0 [01:44:32]RAPDU: 90 00 [01:44:32]wFMCommunicate OK [01:44:32]wFMCommunicate request_size=255 [01:44:32]MH_SAM_APDU [01:44: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 3C 5F 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 4F 65 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 65 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 41 00 00 00 00 07 04 06 00 48 65 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 00 C1 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BF 2C 01 00 35 04 06 00 B6 [01:44:32]Write to MH i2c: E2 02 01 6B 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 3C 5F 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 4F 65 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 65 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 41 00 00 00 00 07 04 06 00 48 65 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 00 C1 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BF 2C 01 00 35 04 06 00 B6 00 00 21 [01:44:32]Write i2c OK [01:44:32]MH_I2C_Read... [01:44:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:44:32]Read from MH i2c: E2 [01:44:32]MH_I2C_Read... [01:44:32]Read from MH i2c: E2 03 00 [01:44:32]MH_I2C_Read... [01:44:32]Read from MH i2c: E2 03 00 6B 02 00 90 00 E1 [01:44:32]RAPDU: 90 00 [01:44:32]wFMCommunicate OK [01:44:32]wFMCommunicate request_size=10 [01:44:32]MH_SAM_APDU [01:44:32]CAPDU: 80 0D 02 02 05 C7 14 8F 47 B2 [01:44:32]Write to MH i2c: E2 0D 00 6C 02 80 0D 02 02 05 00 C7 14 8F 47 B2 00 00 55 [01:44:32]Write i2c OK [01:44:32]MH_I2C_Read... [01:44:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:44:32]Read from MH i2c: E2 [01:44:32]MH_I2C_Read... [01:44:32]Read from MH i2c: E2 03 00 [01:44:32]MH_I2C_Read... [01:44:32]Read from MH i2c: E2 03 00 6C 02 00 90 00 E2 [01:44:32]RAPDU: 90 00 [01:44:32]wFMCommunicate OK [01:44:32]wFMCommunicate request_size=4 [01:44:32]MH_SAM_APDU [01:44:32]CAPDU: 80 0D 03 02 [01:44:32]Write to MH i2c: E2 08 00 6D 02 80 0D 03 02 00 00 00 00 EA [01:44:32]Write i2c OK [01:44:32]MH_I2C_Read... [01:44:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:44:32]Read from MH i2c: E2 [01:44:32]MH_I2C_Read... [01:44:32]Read from MH i2c: E2 0B 00 [01:44:32]MH_I2C_Read... [01:44:32]Read from MH i2c: E2 0B 00 6D 02 00 CD A0 A7 6E 7A E9 4E 8D 90 00 AB [01:44:32]RAPDU: CD A0 A7 6E 7A E9 4E 8D 90 00 [01:44:32]wFMCommunicate OK [01:44:32]SAM_PROTO_SignData done [01:44:32]FM_MakeSignedData done [01:44:32]CreateOFDProtocolMessage [01:44:32]wFMCommunicate request_size=4 [01:44:32]MH_SAM_APDU [01:44:32]CAPDU: 80 11 00 00 [01:44:32]Write to MH i2c: E2 08 00 6E 02 80 11 00 00 00 00 00 00 EA [01:44:32]Write i2c OK [01:44:32]MH_I2C_Read... [01:44:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:44:32]Read from MH i2c: E2 [01:44:32]MH_I2C_Read... [01:44:32]Read from MH i2c: E2 17 00 [01:44:32]MH_I2C_Read... [01:44:32]Read from MH i2c: E2 17 00 6E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 3D [01:44:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [01:44:32]wFMCommunicate OK [01:44:32]CreateOFDProtocolMessage done [01:44:32]OFDSenderStorePacket 76991 [01:44:32]StoreOFDPacket docnum=76991 [01:44:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 5B 73 07 01 8B F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 5F 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 4F 65 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 65 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 41 00 00 00 00 07 04 06 00 48 65 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 00 C1 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BF 2C 01 00 35 04 06 00 B6 C7 14 8F 47 B2 CD A0 A7 6E 7A E9 4E 8D [01:44:32]CheckFolder [01:44:32]dirname=/storage/ofd_packets [01:44:32]CheckFolder done [01:44:32]ProducePacketName [01:44:32]name=ofd_packets/00076991 [01:44:32]NVStorageSaveData ofd_packets/00076991 [01:44:32]File name is /storage/ofd_packets/00076991 [01:44:32]Write 301 bytes [01:44:32]NVStorageSaveData done [01:44:32]OFDSenderStorePacket done [01:44:32]KKMCreateOFDPacket done [01:44:32]NVStorageSaveData kkm_last_timestamp [01:44:32]File name is /storage/kkm_last_timestamp [01:44:32]Write 4 bytes [01:44:32]NVStorageSaveData done [01:44:32]ExternCall_PrintAddStr [01:44:32]wPrintStart [01:44:32]Write to MH i2c: 01 00 00 6F 02 71 [01:44:32]Write i2c OK [01:44:32]MH_I2C_Read... [01:44:32]Read from MH i2c: 01 [01:44:32]MH_I2C_Read... [01:44:32]Read from MH i2c: 01 07 00 [01:44:32]MH_I2C_Read... [01:44:32]Read from MH i2c: 01 07 00 6F 02 00 00 00 00 00 FF 0F 86 [01:44:32]RasterBufferAndPrint [01:44:32]line Счет N : (1)191539 [01:44:32]line ИНН: 02508201610067 [01:44:32]line Контрольно-Кассовый Чек [01:44:32]line ПРОДАЖА [01:44:32]line ТРК (МРК, ГНК) : 43 [01:44:32]line Товар: 2710124130 [01:44:32]line Аи-92-К-5 [01:44:32]line 24.380 * 64.40 [01:44:32]line = 1570.07 [01:44:32]line НДС 12% НСП 1% [01:44:32]line > о реализуемом товаре [01:44:32]line ОКРУГЛЕНИЕ: -0.07 [01:44:32]line ИТОГО: 1570.00 [01:44:32]line Внесено: 1570.00 [01:44:32]line СДАЧА: 0.00 [01:44:32]line НСП 1% : 13.89 [01:44:32]line НДС 12% : 166.73 [01:44:32]line Наличными: 1570.00 [01:44:32]line Безнал.: 0.00 [01:44:32]line Место: АЗС № 106 "Партнер Нефть" [01:44:32]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [01:44:32]line СНО: Общий режим [01:44:32]line Чек 10 22.04.2024 01:44 [01:44:32]line Смена: 373 ФФД: 1.0 [01:44:32]line ЗНМ: 0300000141 [01:44:32]line РНМ: 0000000000091573 [01:44:32]line Версия ККМ: 001 [01:44:32]line ФМ: 0000000000874652 [01:44:32]line ФД: 76991 [01:44:32]line ФПД: 200966159681458 [01:44:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T014432&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76991&fm=200966159681458&tin=02508201610067®Number=0000000000091573&sum=157000 [01:44:33]OFD Sender: Processing packet 76991 [packets to send 129, broken 128] [01:44:33]ProducePacketName [01:44:33]name=ofd_packets/00076991 [01:44:33]OFD Sender: To server: pG, [01:44:33]CommunicateWithHost lk.salyk.kg:30040 [01:44:33]ConnectInit lk.salyk.kg [01:44:33]written 0, free lines is 4095 [01:44:33]Connected sock=10 [01:44:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 5B 73 07 01 8B F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 5F 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 4F 65 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 65 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 41 00 00 00 00 07 04 06 00 48 65 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 00 C1 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BF 2C 01 00 35 04 06 00 B6 C7 14 8F 47 B2 CD A0 A7 6E 7A E9 4E 8D [01:44:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 99 2D 47 00 6E 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BF 2C 01 00 F4 03 04 00 84 68 25 66 B6 04 01 00 00 DE C2 93 DD 37 65 A9 54 [01:44:33]CommunicateWithHost err = 0 [01:44:33]CheckOFDResponse [01:44:33]1017 (14) - 77093643461234 [01:44:33]1041 (16) - 0000000000874652 [01:44:33]1040 (4) - 76991 [01:44:33]1012 (4) - 21.04.2024 19:27 [01:44:33]1206 (1) - 0 [01:44:33]OFD Sender: Remove packet 76991 [01:44:33]ProducePacketName [01:44:33]name=ofd_packets/00076991 [01:44:33]NVStorageDeleteData [01:44:33]Write to MH i2c: 01 00 00 99 02 9B [01:44:33]Write i2c OK [01:44:33]MH_I2C_Read... [01:44:33]Read from MH i2c: 01 [01:44:33]MH_I2C_Read... [01:44:33]Read from MH i2c: 01 07 00 [01:44:33]MH_I2C_Read... [01:44:33]Read from MH i2c: 01 07 00 99 02 00 00 00 00 00 FA 0C A8 [01:44:33]RasterBufferAndPrint [01:44:33]line [01:44:33]line [01:44:33]line [01:44:33]line [01:44:33]line [01:44:33]written 0, free lines is 3328 [01:44:33]MH_Cut [01:44:33]Write to MH i2c: D1 01 00 A0 02 01 74 [01:44:33]Write i2c OK [01:44:33]MH_I2C_Read... [01:44:33]Read from MH i2c: D1 [01:44:33]MH_I2C_Read... [01:44:33]Read from MH i2c: D1 01 00 [01:44:33]MH_I2C_Read... [01:44:33]Read from MH i2c: D1 01 00 A0 02 00 73 [01:44:33]Write to MH i2c: 01 00 00 A1 02 A3 [01:44:33]Write i2c OK [01:44:33]MH_I2C_Read... [01:44:34]OFD Sender: No OFD packet to send [01:44:34]*** Cut start [01:44:34]*** Partial cut [01:44:34]*** CUTSNS_PIN = 1 [01:44:34]*** CUTSNS_PIN = 0 [01:44:34]*** Brake cut motor [01:44:34]Read from MH i2c: 01 [01:44:34]MH_I2C_Read... [01:44:34]*** Stop cut motor [01:44:34]*** Cut end [01:44:34]Read from MH i2c: 01 07 00 [01:44:34]MH_I2C_Read... [01:44:34]Read from MH i2c: 01 07 00 A1 02 00 00 00 00 00 FF 0F B8 [01:44:34]process_action close_receipt done [01:44:34]requested_data is exist [01:44:34]produce_requested_data [01:44:34]requested_item fm.sn is exist - process it [01:44:34]wFMCommunicate request_size=4 [01:44:34]MH_SAM_APDU [01:44:34]CAPDU: 80 11 00 00 [01:44:34]Write to MH i2c: E2 08 00 A2 02 80 11 00 00 00 00 00 00 1E [01:44:34]Write i2c OK [01:44:34]MH_I2C_Read... [01:44:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:44:35]Read from MH i2c: E2 [01:44:35]MH_I2C_Read... [01:44:35]Read from MH i2c: E2 17 00 [01:44:35]MH_I2C_Read... [01:44:35]Read from MH i2c: E2 17 00 A2 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 71 [01:44:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [01:44:35]wFMCommunicate OK [01:44:35]requested_item fd.num is exist - process it [01:44:35]SAM_PROTO_GetFieldsCounters [01:44:35]wFMCommunicate request_size=4 [01:44:35]MH_SAM_APDU [01:44:35]CAPDU: 80 13 00 00 [01:44:35]Write to MH i2c: E2 08 00 A3 02 80 13 00 00 00 00 00 00 21 [01:44:35]Write i2c OK [01:44:35]MH_I2C_Read... [01:44:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:44:35]Read from MH i2c: E2 [01:44:35]MH_I2C_Read... [01:44:35]Read from MH i2c: E2 62 00 [01:44:35]MH_I2C_Read... [01:44:35]Read from MH i2c: E2 62 00 A3 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 BF 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [01:44: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 BF 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:44:35]wFMCommunicate OK [01:44:35]SAM_PROTO_GetFieldsCounters done [01:44:35]requested_item shift.num is exist - process it [01:44:35]requested_item shift.opened is exist - process it [01:44:35]req_shift_opened [01:44:35]FM_GetShiftState [01:44:35]SAM_PROTO_GetShiftState [01:44:35]wFMCommunicate request_size=4 [01:44:35]MH_SAM_APDU [01:44:35]CAPDU: 80 13 01 00 [01:44:35]Write to MH i2c: E2 08 00 A4 02 80 13 01 00 00 00 00 00 23 [01:44:35]Write i2c OK [01:44:35]MH_I2C_Read... [01:44:35]Read from MH i2c: E2 [01:44:35]MH_I2C_Read... [01:44:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:44:35]Read from MH i2c: E2 0E 00 [01:44:35]MH_I2C_Read... [01:44:35]Read from MH i2c: E2 0E 00 A4 02 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 4A [01:44:35]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [01:44:35]wFMCommunicate OK [01:44:35]SAM_PROTO_GetShiftState done [01:44:35]FM_GetShiftState done [01:44:35]req_shift_opened done [01:44:35]requested_item shift.open_date is exist - process it [01:44:35]req_shift_open_date [01:44:35]req_shift_open_date done [01:44:35]produce_requested_data done [01:44:35]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76991,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [01:44:35]process_action_free close_receipt [01:44:35]json_value_free [01:44:35]json_value_free done [01:44:35]process_json_proto returns [01:44:35]Send response to host [01:44:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76991,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [01:44:35]free response buf [01:44:35]execute_script done [01:44:35]execute_script returns [01:44:35]free content buf [01:44:35]Sock 9.Close socket [01:44:35]Sock 9.Thread stoped [01:44:39]OFD Sender: No OFD packet to send [01:44:44]OFD Sender: No OFD packet to send [01:44:49]OFD Sender: No OFD packet to send [01:44:54]OFD Sender: No OFD packet to send [01:44:59]OFD Sender: No OFD packet to send [01:45:04]OFD Sender: No OFD packet to send [01:45:09]OFD Sender: No OFD packet to send [01:45:14]OFD Sender: No OFD packet to send [01:45:19]OFD Sender: No OFD packet to send [01:45:24]OFD Sender: No OFD packet to send [01:45:29]OFD Sender: No OFD packet to send [01:45:34]OFD Sender: No OFD packet to send [01:45:39]OFD Sender: No OFD packet to send [01:45:44]OFD Sender: No OFD packet to send [01:45:49]OFD Sender: No OFD packet to send [01:45:54]OFD Sender: No OFD packet to send [01:45:59]OFD Sender: No OFD packet to send [01:46:04]OFD Sender: No OFD packet to send [01:46:09]OFD Sender: No OFD packet to send [01:46:14]OFD Sender: No OFD packet to send [01:46:19]OFD Sender: No OFD packet to send [01:46:24]OFD Sender: No OFD packet to send [01:46:29]OFD Sender: No OFD packet to send [01:46:34]OFD Sender: No OFD packet to send [01:46:39]OFD Sender: No OFD packet to send [01:46:44]OFD Sender: No OFD packet to send [01:46:49]OFD Sender: No OFD packet to send [01:46:54]OFD Sender: No OFD packet to send [01:46:59]OFD Sender: No OFD packet to send [01:47:04]OFD Sender: No OFD packet to send [01:47:09]OFD Sender: No OFD packet to send [01:47:14]OFD Sender: No OFD packet to send [01:47:19]OFD Sender: No OFD packet to send [01:47:24]OFD Sender: No OFD packet to send [01:47:29]OFD Sender: No OFD packet to send [01:47:34]OFD Sender: No OFD packet to send [01:47:39]OFD Sender: No OFD packet to send [01:47:44]OFD Sender: No OFD packet to send [01:47:49]OFD Sender: No OFD packet to send [01:47:54]OFD Sender: No OFD packet to send [01:47:59]OFD Sender: No OFD packet to send [01:48:04]OFD Sender: No OFD packet to send [01:48:09]OFD Sender: No OFD packet to send [01:48:14]OFD Sender: No OFD packet to send [01:48:19]OFD Sender: No OFD packet to send [01:48:24]OFD Sender: No OFD packet to send [01:48:29]OFD Sender: No OFD packet to send [01:48:34]OFD Sender: No OFD packet to send [01:48:39]OFD Sender: No OFD packet to send [01:48:44]OFD Sender: No OFD packet to send [01:48:49]OFD Sender: No OFD packet to send [01:48:54]OFD Sender: No OFD packet to send [01:48:59]OFD Sender: No OFD packet to send [01:49:04]OFD Sender: No OFD packet to send [01:49:09]OFD Sender: No OFD packet to send [01:49:14]OFD Sender: No OFD packet to send [01:49:19]OFD Sender: No OFD packet to send [01:49:24]OFD Sender: No OFD packet to send [01:49:29]OFD Sender: No OFD packet to send [01:49:34]OFD Sender: No OFD packet to send [01:49:39]OFD Sender: No OFD packet to send [01:49:44]OFD Sender: No OFD packet to send [01:49:49]OFD Sender: No OFD packet to send [01:49:54]OFD Sender: No OFD packet to send [01:49:59]OFD Sender: No OFD packet to send [01:50:04]OFD Sender: No OFD packet to send [01:50:09]OFD Sender: No OFD packet to send [01:50:14]OFD Sender: No OFD packet to send [01:50:19]OFD Sender: No OFD packet to send [01:50:24]OFD Sender: No OFD packet to send [01:50:29]OFD Sender: No OFD packet to send [01:50:34]OFD Sender: No OFD packet to send [01:50:39]OFD Sender: No OFD packet to send [01:50:44]OFD Sender: No OFD packet to send [01:50:49]OFD Sender: No OFD packet to send [01:50:54]OFD Sender: No OFD packet to send [01:50:59]OFD Sender: No OFD packet to send [01:51:04]OFD Sender: No OFD packet to send [01:51:09]OFD Sender: No OFD packet to send [01:51:14]OFD Sender: No OFD packet to send [01:51:19]OFD Sender: No OFD packet to send [01:51:24]OFD Sender: No OFD packet to send [01:51:29]OFD Sender: No OFD packet to send [01:51:34]OFD Sender: No OFD packet to send [01:51:39]OFD Sender: No OFD packet to send [01:51:44]OFD Sender: No OFD packet to send [01:51:49]OFD Sender: No OFD packet to send [01:51:54]OFD Sender: No OFD packet to send [01:51:59]OFD Sender: No OFD packet to send [01:52:04]OFD Sender: No OFD packet to send [01:52:09]OFD Sender: No OFD packet to send [01:52:14]OFD Sender: No OFD packet to send [01:52:19]OFD Sender: No OFD packet to send [01:52:24]OFD Sender: No OFD packet to send [01:52:29]OFD Sender: No OFD packet to send [01:52:34]OFD Sender: No OFD packet to send [01:52:39]OFD Sender: No OFD packet to send [01:52:44]OFD Sender: No OFD packet to send [01:52:49]OFD Sender: No OFD packet to send [01:52:54]OFD Sender: No OFD packet to send [01:52:59]OFD Sender: No OFD packet to send [01:53:04]OFD Sender: No OFD packet to send [01:53:09]OFD Sender: No OFD packet to send [01:53:14]OFD Sender: No OFD packet to send [01:53:19]OFD Sender: No OFD packet to send [01:53:24]OFD Sender: No OFD packet to send [01:53:29]OFD Sender: No OFD packet to send [01:53:34]OFD Sender: No OFD packet to send [01:53:39]OFD Sender: No OFD packet to send [01:53:44]OFD Sender: No OFD packet to send [01:53:49]OFD Sender: No OFD packet to send [01:53:54]OFD Sender: No OFD packet to send [01:53:59]OFD Sender: No OFD packet to send [01:54:04]OFD Sender: No OFD packet to send [01:54:09]OFD Sender: No OFD packet to send [01:54:14]OFD Sender: No OFD packet to send [01:54:19]OFD Sender: No OFD packet to send [01:54:24]OFD Sender: No OFD packet to send [01:54:29]OFD Sender: No OFD packet to send [01:54:34]OFD Sender: No OFD packet to send [01:54:39]OFD Sender: No OFD packet to send [01:54:44]OFD Sender: No OFD packet to send [01:54:49]OFD Sender: No OFD packet to send [01:54:54]OFD Sender: No OFD packet to send [01:54:59]OFD Sender: No OFD packet to send [01:55:04]OFD Sender: No OFD packet to send [01:55:09]OFD Sender: No OFD packet to send [01:55:14]OFD Sender: No OFD packet to send [01:55:19]OFD Sender: No OFD packet to send [01:55:24]OFD Sender: No OFD packet to send [01:55:29]OFD Sender: No OFD packet to send [01:55:34]OFD Sender: No OFD packet to send [01:55:39]OFD Sender: No OFD packet to send [01:55:44]OFD Sender: No OFD packet to send [01:55:49]OFD Sender: No OFD packet to send [01:55:54]OFD Sender: No OFD packet to send [01:55:59]OFD Sender: No OFD packet to send [01:56:04]OFD Sender: No OFD packet to send [01:56:09]OFD Sender: No OFD packet to send [01:56:14]OFD Sender: No OFD packet to send [01:56:19]OFD Sender: No OFD packet to send [01:56:24]OFD Sender: No OFD packet to send [01:56:29]OFD Sender: No OFD packet to send [01:56:34]OFD Sender: No OFD packet to send [01:56:39]OFD Sender: No OFD packet to send [01:56:44]OFD Sender: No OFD packet to send [01:56:49]OFD Sender: No OFD packet to send [01:56:54]OFD Sender: No OFD packet to send [01:56:59]OFD Sender: No OFD packet to send [01:57:04]OFD Sender: No OFD packet to send [01:57:09]OFD Sender: No OFD packet to send [01:57:14]OFD Sender: No OFD packet to send [01:57:19]OFD Sender: No OFD packet to send [01:57:24]OFD Sender: No OFD packet to send [01:57:29]OFD Sender: No OFD packet to send [01:57:34]OFD Sender: No OFD packet to send [01:57:39]OFD Sender: No OFD packet to send [01:57:44]OFD Sender: No OFD packet to send [01:57:49]OFD Sender: No OFD packet to send [01:57:54]OFD Sender: No OFD packet to send [01:57:59]OFD Sender: No OFD packet to send [01:58:04]OFD Sender: No OFD packet to send [01:58:09]OFD Sender: No OFD packet to send [01:58:14]OFD Sender: No OFD packet to send [01:58:20]OFD Sender: No OFD packet to send [01:58:25]OFD Sender: No OFD packet to send [01:58:30]OFD Sender: No OFD packet to send [01:58:35]OFD Sender: No OFD packet to send [01:58:40]OFD Sender: No OFD packet to send [01:58:45]OFD Sender: No OFD packet to send [01:58:50]OFD Sender: No OFD packet to send [01:58:55]OFD Sender: No OFD packet to send [01:59:00]OFD Sender: No OFD packet to send [01:59:05]OFD Sender: No OFD packet to send [01:59:10]OFD Sender: No OFD packet to send [01:59:15]OFD Sender: No OFD packet to send [01:59:20]OFD Sender: No OFD packet to send [01:59:25]OFD Sender: No OFD packet to send [01:59:30]OFD Sender: No OFD packet to send [01:59:35]OFD Sender: No OFD packet to send [01:59:40]OFD Sender: No OFD packet to send [01:59:45]OFD Sender: No OFD packet to send [01:59:50]OFD Sender: No OFD packet to send [01:59:55]OFD Sender: No OFD packet to send [02:00:00]OFD Sender: No OFD packet to send [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:00]OFD Sender: No OFD packet to send [02:01:05]OFD Sender: No OFD packet to send [02:01:10]OFD Sender: No OFD packet to send [02:01:15]OFD Sender: No OFD packet to send [02:01:20]OFD Sender: No OFD packet to send [02:01:25]OFD Sender: No OFD packet to send [02:01:30]OFD Sender: No OFD packet to send [02:01:35]OFD Sender: No OFD packet to send [02:01:40]OFD Sender: No OFD packet to send [02:01:45]OFD Sender: No OFD packet to send [02:01:50]OFD Sender: No OFD packet to send [02:01:55]OFD Sender: No OFD packet to send [02:02:00]OFD Sender: No OFD packet to send [02:02:05]OFD Sender: No OFD packet to send [02:02:10]OFD Sender: No OFD packet to send [02:02:15]OFD Sender: No OFD packet to send [02:02:20]OFD Sender: No OFD packet to send [02:02:25]OFD Sender: No OFD packet to send [02:02:30]OFD Sender: No OFD packet to send [02:02:35]OFD Sender: No OFD packet to send [02:02:40]OFD Sender: No OFD packet to send [02:02:45]OFD Sender: No OFD packet to send [02:02:50]OFD Sender: No OFD packet to send [02:02:55]OFD Sender: No OFD packet to send [02:03:00]OFD Sender: No OFD packet to send [02:03:05]OFD Sender: No OFD packet to send [02:03:10]OFD Sender: No OFD packet to send [02:03:15]OFD Sender: No OFD packet to send [02:03:20]OFD Sender: No OFD packet to send [02:03:25]OFD Sender: No OFD packet to send [02:03:30]OFD Sender: No OFD packet to send [02:03:35]OFD Sender: No OFD packet to send [02:03:40]OFD Sender: No OFD packet to send [02:03:45]OFD Sender: No OFD packet to send [02:03:50]OFD Sender: No OFD packet to send [02:03:55]OFD Sender: No OFD packet to send [02:04:00]OFD Sender: No OFD packet to send [02:04:05]OFD Sender: No OFD packet to send [02:04:10]OFD Sender: No OFD packet to send [02:04:15]OFD Sender: No OFD packet to send [02:04:20]OFD Sender: No OFD packet to send [02:04:25]OFD Sender: No OFD packet to send [02:04:30]OFD Sender: No OFD packet to send [02:04:35]OFD Sender: No OFD packet to send [02:04:40]OFD Sender: No OFD packet to send [02:04:45]OFD Sender: No OFD packet to send [02:04:50]OFD Sender: No OFD packet to send [02:04:55]OFD Sender: No OFD packet to send [02:05:00]OFD Sender: No OFD packet to send [02:05:05]OFD Sender: No OFD packet to send [02:05:10]OFD Sender: No OFD packet to send [02:05:15]OFD Sender: No OFD packet to send [02:05:20]OFD Sender: No OFD packet to send [02:05:25]OFD Sender: No OFD packet to send [02:05:30]OFD Sender: No OFD packet to send [02:05:35]OFD Sender: No OFD packet to send [02:05:40]OFD Sender: No OFD packet to send [02:05:45]OFD Sender: No OFD packet to send [02:05:50]OFD Sender: No OFD packet to send [02:05:55]OFD Sender: No OFD packet to send [02:06:00]OFD Sender: No OFD packet to send [02:06:05]OFD Sender: No OFD packet to send [02:06:10]OFD Sender: No OFD packet to send [02:06:15]OFD Sender: No OFD packet to send [02:06:20]OFD Sender: No OFD packet to send [02:06:25]OFD Sender: No OFD packet to send [02:06:30]OFD Sender: No OFD packet to send [02:06:35]OFD Sender: No OFD packet to send [02:06:40]OFD Sender: No OFD packet to send [02:06:45]OFD Sender: No OFD packet to send [02:06:50]OFD Sender: No OFD packet to send [02:06:55]OFD Sender: No OFD packet to send [02:07:00]OFD Sender: No OFD packet to send [02:07:05]OFD Sender: No OFD packet to send [02:07:10]OFD Sender: No OFD packet to send [02:07:15]OFD Sender: No OFD packet to send [02:07:20]OFD Sender: No OFD packet to send [02:07:25]OFD Sender: No OFD packet to send [02:07:30]OFD Sender: No OFD packet to send [02:07:35]OFD Sender: No OFD packet to send [02:07:40]OFD Sender: No OFD packet to send [02:07:45]OFD Sender: No OFD packet to send [02:07:50]OFD Sender: No OFD packet to send [02:07:55]OFD Sender: No OFD packet to send [02:08:00]OFD Sender: No OFD packet to send [02:08:05]OFD Sender: No OFD packet to send [02:08:10]OFD Sender: No OFD packet to send [02:08:15]OFD Sender: No OFD packet to send [02:08:20]OFD Sender: No OFD packet to send [02:08:25]OFD Sender: No OFD packet to send [02:08:30]OFD Sender: No OFD packet to send [02:08:35]OFD Sender: No OFD packet to send [02:08:40]OFD Sender: No OFD packet to send [02:08:45]OFD Sender: No OFD packet to send [02:08:50]OFD Sender: No OFD packet to send [02:08:55]OFD Sender: No OFD packet to send [02:09:00]OFD Sender: No OFD packet to send [02:09:05]OFD Sender: No OFD packet to send [02:09:10]OFD Sender: No OFD packet to send [02:09:15]OFD Sender: No OFD packet to send [02:09:20]OFD Sender: No OFD packet to send [02:09:25]OFD Sender: No OFD packet to send [02:09:30]OFD Sender: No OFD packet to send [02:09:35]OFD Sender: No OFD packet to send [02:09:40]OFD Sender: No OFD packet to send [02:09:45]OFD Sender: No OFD packet to send [02:09:50]OFD Sender: No OFD packet to send [02:09:55]OFD Sender: No OFD packet to send [02:10:00]OFD Sender: No OFD packet to send [02:10:05]OFD Sender: No OFD packet to send [02:10:10]OFD Sender: No OFD packet to send [02:10:15]OFD Sender: No OFD packet to send [02:10:20]OFD Sender: No OFD packet to send [02:10:25]OFD Sender: No OFD packet to send [02:10:30]OFD Sender: No OFD packet to send [02:10:35]OFD Sender: No OFD packet to send [02:10:40]OFD Sender: No OFD packet to send [02:10:45]OFD Sender: No OFD packet to send [02:10:50]OFD Sender: No OFD packet to send [02:10:55]OFD Sender: No OFD packet to send [02:11:00]OFD Sender: No OFD packet to send [02:11:05]OFD Sender: No OFD packet to send [02:11:10]OFD Sender: No OFD packet to send [02:11:15]OFD Sender: No OFD packet to send [02:11:20]OFD Sender: No OFD packet to send [02:11:25]OFD Sender: No OFD packet to send [02:11:30]OFD Sender: No OFD packet to send [02:11:35]OFD Sender: No OFD packet to send [02:11:40]OFD Sender: No OFD packet to send [02:11:45]OFD Sender: No OFD packet to send [02:11:50]OFD Sender: No OFD packet to send [02:11:55]OFD Sender: No OFD packet to send [02:12:00]OFD Sender: No OFD packet to send [02:12:05]OFD Sender: No OFD packet to send [02:12:10]OFD Sender: No OFD packet to send [02:12:15]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:28]accept exits with 7 [02:12:28]New connection [02:12:28]New thread 3067030884 created [02:12:28]Thread 3067174244 joined [02:12:28]Waiting for new connection... [02:12:28] Sock 7.Parse request [02:12:28]Sock 7.Check first char [02:12:28]Sock 7.First char is OK [02:12:28]request: POST /json_proto HTTP/1.0 [02:12:28]Method: POST [02:12:28]URL: /json_proto [02:12:28]Method is POST - this is cgi request [02:12:28]url: /json_proto [02:12:28]query_string will be loaded in cgi processing [02:12:28]execute_cgi json_proto POST (null) [02:12:28]execute_cgi path=json_proto method=POST [02:12:28]POST find Content-Length [02:12:28]Host: 172.17.62.5:8080 [02:12:28]Content-Length: 679 [02:12:28]Content-Type: application/json [02:12:28] [02:12:28]POST finish read [02:12:28]Found Content-Length = 679 [02:12:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191540", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:12:28]execute_script... [02:12: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)191540", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:12:28]POST & json_proto [02:12:28]process_json_proto [02:12:28]json parsed OK: [02:12:28]protocol is kg_v1.0 [02:12:28]action value=close_receipt [02:12:28]process_action close_receipt [02:12:28]cmd_close_receipt [02:12:28]MH_GetDate [02:12:28]Write to MH i2c: F0 00 00 A5 02 96 [02:12:28]Write i2c OK [02:12:28]MH_I2C_Read... [02:12:28]Read from MH i2c: F0 [02:12:28]MH_I2C_Read... [02:12:28]Read from MH i2c: F0 09 00 [02:12:28]MH_I2C_Read... [02:12:28]Read from MH i2c: F0 09 00 A5 02 00 8D C7 25 66 F4 E9 65 64 24 [02:12:28]GetLastDocTimeStamp 1713750272 [02:12:28]current date 1713751949 [02:12:28]FM_GetShiftState [02:12:28]SAM_PROTO_GetShiftState [02:12:28]wFMCommunicate request_size=4 [02:12:28]MH_SAM_APDU [02:12:28]CAPDU: 80 13 01 00 [02:12:28]Write to MH i2c: E2 08 00 A6 02 80 13 01 00 00 00 00 00 25 [02:12:28]Write i2c OK [02:12:28]MH_I2C_Read... [02:12:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:12:28]Read from MH i2c: E2 [02:12:28]MH_I2C_Read... [02:12:28]Read from MH i2c: E2 0E 00 [02:12:28]MH_I2C_Read... [02:12:28]Read from MH i2c: E2 0E 00 A6 02 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 4C [02:12:28]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [02:12:28]wFMCommunicate OK [02:12:28]SAM_PROTO_GetShiftState done [02:12:28]FM_GetShiftState done [02:12:28]opened in 1713745124 [02:12:28]opened+sec_in_day 1713831524 [02:12:28]quantity*price = 100018 [02:12:28]sum+1 = 100020 [02:12:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 11 22.04.2024 02:12 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76992 ФПД: 154408917547734 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T021229&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76992&fm=154408917547734&tin=02508201610067®Number=0000000000091573&sum=100000 [02:12:29]StoreToDocumentArchive [02:12:29]shift 373 fd 76992 [02:12:29]save to /storage/0373/doc_00076992 [02:12:29]save last doc name /storage/0373/doc_00076992 to /storage/kkm_last_doc_name [02:12:29]save OK [02:12:29]Clear old archive folders... [02:12:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [02:12:29]tlvbuf is 01760960 [02:12:29]SAM_PROTO_ClearQueue [02:12:29]wFMCommunicate request_size=4 [02:12:29]MH_SAM_APDU [02:12:29]CAPDU: 80 09 00 00 [02:12:29]Write to MH i2c: E2 08 00 B3 02 80 09 00 00 00 00 00 00 27 [02:12:29]Write i2c OK [02:12:29]MH_I2C_Read... [02:12:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:12:29]Read from MH i2c: E2 [02:12:29]MH_I2C_Read... [02:12:29]Read from MH i2c: E2 03 00 [02:12:29]MH_I2C_Read... [02:12:29]Read from MH i2c: E2 03 00 B3 02 00 90 00 29 [02:12:29]RAPDU: 90 00 [02:12:29]wFMCommunicate OK [02:12:29]SAM_PROTO_ClearQueue done [02:12:29]KKMCreateOFDPacket [02:12:29]OFDProtocolAddRootSTLVToBuf [02:12:29]FM_MakeSignedData [02:12:29]FM_MakeSignedData [02:12:29]SAM_PROTO_SignData [02:12:29]wFMCommunicate request_size=4 [02:12:29]MH_SAM_APDU [02:12:29]CAPDU: 80 0D 01 02 [02:12:29]Write to MH i2c: E2 08 00 B4 02 80 0D 01 02 00 00 00 00 2F [02:12:29]Write i2c OK [02:12:29]MH_I2C_Read... [02:12:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:12:29]Read from MH i2c: E2 [02:12:29]MH_I2C_Read... [02:12:29]Read from MH i2c: E2 03 00 [02:12:29]MH_I2C_Read... [02:12:29]Read from MH i2c: E2 03 00 B4 02 00 90 00 2A [02:12:29]RAPDU: 90 00 [02:12:29]wFMCommunicate OK [02:12:29]wFMCommunicate request_size=255 [02:12:29]MH_SAM_APDU [02:12:29]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 0B 00 00 00 F4 03 04 00 8D C7 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C0 2C 01 00 35 04 06 00 8C 6F 20 AE [02:12:29]Write to MH i2c: E2 02 01 B5 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 0B 00 00 00 F4 03 04 00 8D C7 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C0 2C 01 00 35 04 06 00 8C 6F 20 AE 00 00 AB [02:12:29]Write i2c OK [02:12:29]MH_I2C_Read... [02:12:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:12:29]Read from MH i2c: E2 [02:12:29]MH_I2C_Read... [02:12:29]Read from MH i2c: E2 03 00 [02:12:29]MH_I2C_Read... [02:12:29]Read from MH i2c: E2 03 00 B5 02 00 90 00 2B [02:12:29]RAPDU: 90 00 [02:12:29]wFMCommunicate OK [02:12:29]wFMCommunicate request_size=7 [02:12:29]MH_SAM_APDU [02:12:29]CAPDU: 80 0D 02 02 02 3A D6 [02:12:29]Write to MH i2c: E2 0A 00 B6 02 80 0D 02 02 02 00 3A D6 00 00 46 [02:12:29]Write i2c OK [02:12:29]MH_I2C_Read... [02:12:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:12:30]Read from MH i2c: E2 [02:12:30]MH_I2C_Read... [02:12:30]Read from MH i2c: E2 03 00 [02:12:30]MH_I2C_Read... [02:12:30]Read from MH i2c: E2 03 00 B6 02 00 90 00 2C [02:12:30]RAPDU: 90 00 [02:12:30]wFMCommunicate OK [02:12:30]wFMCommunicate request_size=4 [02:12:30]MH_SAM_APDU [02:12:30]CAPDU: 80 0D 03 02 [02:12:30]Write to MH i2c: E2 08 00 B7 02 80 0D 03 02 00 00 00 00 34 [02:12:30]Write i2c OK [02:12:30]MH_I2C_Read... [02:12:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:12:30]Read from MH i2c: E2 [02:12:30]MH_I2C_Read... [02:12:30]Read from MH i2c: E2 0B 00 [02:12:30]MH_I2C_Read... [02:12:30]Read from MH i2c: E2 0B 00 B7 02 00 AD 30 AB 06 02 95 29 A6 90 00 29 [02:12:30]RAPDU: AD 30 AB 06 02 95 29 A6 90 00 [02:12:30]wFMCommunicate OK [02:12:30]SAM_PROTO_SignData done [02:12:30]FM_MakeSignedData done [02:12:30]CreateOFDProtocolMessage [02:12:30]wFMCommunicate request_size=4 [02:12:30]MH_SAM_APDU [02:12:30]CAPDU: 80 11 00 00 [02:12:30]Write to MH i2c: E2 08 00 B8 02 80 11 00 00 00 00 00 00 34 [02:12:30]Write i2c OK [02:12:30]MH_I2C_Read... [02:12:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:12:30]Read from MH i2c: E2 [02:12:30]MH_I2C_Read... [02:12:30]Read from MH i2c: E2 17 00 [02:12:30]MH_I2C_Read... [02:12:30]Read from MH i2c: E2 17 00 B8 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 87 [02:12:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [02:12:30]wFMCommunicate OK [02:12:30]CreateOFDProtocolMessage done [02:12:30]OFDSenderStorePacket 76992 [02:12:30]StoreOFDPacket docnum=76992 [02:12:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 43 54 04 01 C7 93 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 0B 00 00 00 F4 03 04 00 8D C7 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C0 2C 01 00 35 04 06 00 8C 6F 20 AE 3A D6 AD 30 AB 06 02 95 29 A6 [02:12:30]CheckFolder [02:12:30]dirname=/storage/ofd_packets [02:12:30]CheckFolder done [02:12:30]ProducePacketName [02:12:30]name=ofd_packets/00076992 [02:12:30]NVStorageSaveData ofd_packets/00076992 [02:12:30]File name is /storage/ofd_packets/00076992 [02:12:30]Write 298 bytes [02:12:30]NVStorageSaveData done [02:12:30]OFDSenderStorePacket done [02:12:30]KKMCreateOFDPacket done [02:12:30]NVStorageSaveData kkm_last_timestamp [02:12:30]File name is /storage/kkm_last_timestamp [02:12:30]Write 4 bytes [02:12:30]NVStorageSaveData done [02:12:30]ExternCall_PrintAddStr [02:12:30]wPrintStart [02:12:30]Write to MH i2c: 01 00 00 B9 02 BB [02:12:30]Write i2c OK [02:12:30]MH_I2C_Read... [02:12:30]Read from MH i2c: 01 [02:12:30]MH_I2C_Read... [02:12:30]Read from MH i2c: 01 07 00 [02:12:30]MH_I2C_Read... [02:12:30]Read from MH i2c: 01 07 00 B9 02 00 00 00 00 00 FF 0F D0 [02:12:30]RasterBufferAndPrint [02:12:30]line Счет N : (1)191540 [02:12:30]line ИНН: 02508201610067 [02:12:30]line Контрольно-Кассовый Чек [02:12:30]line ПРОДАЖА [02:12:30]line ТРК (МРК, ГНК) : 23 [02:12:30]line Товар: 2710194210 [02:12:30]line ДТ-К-5 [02:12:30]line 13.720 * 72.90 [02:12:30]line = 1000.19 [02:12:30]line НДС 12% НСП 1% [02:12:30]line > о реализуемом товаре [02:12:30]line ОКРУГЛЕНИЕ: -0.19 [02:12:30]line ИТОГО: 1000.00 [02:12:30]line Внесено: 1000.00 [02:12:30]line СДАЧА: 0.00 [02:12:30]line НСП 1% : 8.85 [02:12:30]line НДС 12% : 106.21 [02:12:30]line Наличными: 1000.00 [02:12:30]line Безнал.: 0.00 [02:12:30]line Место: АЗС № 106 "Партнер Нефть" [02:12:30]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [02:12:30]line СНО: Общий режим [02:12:30]line Чек 11 22.04.2024 02:12 [02:12:30]line Смена: 373 ФФД: 1.0 [02:12:30]line ЗНМ: 0300000141 [02:12:30]line РНМ: 0000000000091573 [02:12:30]line Версия ККМ: 001 [02:12:30]line ФМ: 0000000000874652 [02:12:30]line ФД: 76992 [02:12:30]line ФПД: 154408917547734 [02:12:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T021229&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76992&fm=154408917547734&tin=02508201610067®Number=0000000000091573&sum=100000 [02:12:30]OFD Sender: Processing packet 76992 [packets to send 129, broken 128] [02:12:30]ProducePacketName [02:12:30]name=ofd_packets/00076992 [02:12:30]OFD Sender: To server: pG, [02:12:30]CommunicateWithHost lk.salyk.kg:30040 [02:12:30]ConnectInit lk.salyk.kg [02:12:30]written 0, free lines is 4095 [02:12:30]Connected sock=10 [02:12:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 43 54 04 01 C7 93 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 0B 00 00 00 F4 03 04 00 8D C7 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C0 2C 01 00 35 04 06 00 8C 6F 20 AE 3A D6 AD 30 AB 06 02 95 29 A6 [02:12:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 C6 DE 47 00 90 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C0 2C 01 00 F4 03 04 00 11 6F 25 66 B6 04 01 00 00 47 DA 86 A6 B0 37 58 1C [02:12:30]CommunicateWithHost err = 0 [02:12:30]CheckOFDResponse [02:12:30]1017 (14) - 77093643461234 [02:12:30]1041 (16) - 0000000000874652 [02:12:30]1040 (4) - 76992 [02:12:30]1012 (4) - 21.04.2024 19:54 [02:12:30]1206 (1) - 0 [02:12:30]OFD Sender: Remove packet 76992 [02:12:30]ProducePacketName [02:12:30]name=ofd_packets/00076992 [02:12:30]NVStorageDeleteData [02:12:30]Write to MH i2c: 01 00 00 E3 02 E5 [02:12:30]Write i2c OK [02:12:30]MH_I2C_Read... [02:12:30]Read from MH i2c: 01 [02:12:30]MH_I2C_Read... [02:12:30]Read from MH i2c: 01 07 00 [02:12:30]MH_I2C_Read... [02:12:30]Read from MH i2c: 01 07 00 E3 02 00 00 00 00 00 E7 0C DF [02:12:30]RasterBufferAndPrint [02:12:30]line [02:12:30]line [02:12:30]line [02:12:30]line [02:12:30]line [02:12:30]written 0, free lines is 3309 [02:12:30]MH_Cut [02:12:30]Write to MH i2c: D1 01 00 EA 02 01 BE [02:12:30]Write i2c OK [02:12:30]MH_I2C_Read... [02:12:30]Read from MH i2c: D1 [02:12:30]MH_I2C_Read... [02:12:30]Read from MH i2c: D1 01 00 [02:12:30]MH_I2C_Read... [02:12:30]Read from MH i2c: D1 01 00 EA 02 00 BD [02:12:30]Write to MH i2c: 01 00 00 EB 02 ED [02:12:30]Write i2c OK [02:12:30]MH_I2C_Read... [02:12:31]OFD Sender: No OFD packet to send [02:12:31]*** Cut start [02:12:31]*** Partial cut [02:12:31]*** CUTSNS_PIN = 1 [02:12:31]*** CUTSNS_PIN = 0 [02:12:31]*** Brake cut motor [02:12:32]Read from MH i2c: 01 [02:12:32]MH_I2C_Read... [02:12:32]*** Stop cut motor [02:12:32]*** Cut end [02:12:32]Read from MH i2c: 01 07 00 [02:12:32]MH_I2C_Read... [02:12:32]Read from MH i2c: 01 07 00 EB 02 00 00 00 00 00 FF 0F 02 [02:12:32]process_action close_receipt done [02:12:32]requested_data is exist [02:12:32]produce_requested_data [02:12:32]requested_item fm.sn is exist - process it [02:12:32]wFMCommunicate request_size=4 [02:12:32]MH_SAM_APDU [02:12:32]CAPDU: 80 11 00 00 [02:12:32]Write to MH i2c: E2 08 00 EC 02 80 11 00 00 00 00 00 00 68 [02:12:32]Write i2c OK [02:12:32]MH_I2C_Read... [02:12:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:12:32]Read from MH i2c: E2 [02:12:32]MH_I2C_Read... [02:12:32]Read from MH i2c: E2 17 00 [02:12:32]MH_I2C_Read... [02:12:32]Read from MH i2c: E2 17 00 EC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 BB [02:12:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [02:12:32]wFMCommunicate OK [02:12:32]requested_item fd.num is exist - process it [02:12:32]SAM_PROTO_GetFieldsCounters [02:12:32]wFMCommunicate request_size=4 [02:12:32]MH_SAM_APDU [02:12:32]CAPDU: 80 13 00 00 [02:12:32]Write to MH i2c: E2 08 00 ED 02 80 13 00 00 00 00 00 00 6B [02:12:32]Write i2c OK [02:12:32]MH_I2C_Read... [02:12:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:12:32]Read from MH i2c: E2 [02:12:32]MH_I2C_Read... [02:12:32]Read from MH i2c: E2 62 00 [02:12:32]MH_I2C_Read... [02:12:32]Read from MH i2c: E2 62 00 ED 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C0 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [02:12: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C0 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:12:32]wFMCommunicate OK [02:12:32]SAM_PROTO_GetFieldsCounters done [02:12:32]requested_item shift.num is exist - process it [02:12:32]requested_item shift.opened is exist - process it [02:12:32]req_shift_opened [02:12:32]FM_GetShiftState [02:12:32]SAM_PROTO_GetShiftState [02:12:32]wFMCommunicate request_size=4 [02:12:32]MH_SAM_APDU [02:12:32]CAPDU: 80 13 01 00 [02:12:32]Write to MH i2c: E2 08 00 EE 02 80 13 01 00 00 00 00 00 6D [02:12:32]Write i2c OK [02:12:32]MH_I2C_Read... [02:12:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:12:32]Read from MH i2c: E2 [02:12:32]MH_I2C_Read... [02:12:32]Read from MH i2c: E2 0E 00 [02:12:32]MH_I2C_Read... [02:12:32]Read from MH i2c: E2 0E 00 EE 02 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 94 [02:12:32]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [02:12:32]wFMCommunicate OK [02:12:32]SAM_PROTO_GetShiftState done [02:12:32]FM_GetShiftState done [02:12:32]req_shift_opened done [02:12:32]requested_item shift.open_date is exist - process it [02:12:32]req_shift_open_date [02:12:32]req_shift_open_date done [02:12:32]produce_requested_data done [02:12:32]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76992,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [02:12:32]process_action_free close_receipt [02:12:32]json_value_free [02:12:32]json_value_free done [02:12:32]process_json_proto returns [02:12:32]Send response to host [02:12:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76992,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [02:12:32]free response buf [02:12:32]execute_script done [02:12:32]execute_script returns [02:12:32]free content buf [02:12:32]Sock 7.Close socket [02:12:32]Sock 7.Thread stoped [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:17]OFD Sender: No OFD packet to send [02:21:22]OFD Sender: No OFD packet to send [02:21:27]OFD Sender: No OFD packet to send [02:21:32]OFD Sender: No OFD packet to send [02:21:37]OFD Sender: No OFD packet to send [02:21:42]OFD Sender: No OFD packet to send [02:21:47]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:18]OFD Sender: No OFD packet to send [02:35:23]OFD Sender: No OFD packet to send [02:35:28]OFD Sender: No OFD packet to send [02:35:33]OFD Sender: No OFD packet to send [02:35:38]OFD Sender: No OFD packet to send [02:35:43]OFD Sender: No OFD packet to send [02:35:48]OFD Sender: No OFD packet to send [02:35:53]OFD Sender: No OFD packet to send [02:35:58]OFD Sender: No OFD packet to send [02:36:03]OFD Sender: No OFD packet to send [02:36:08]OFD Sender: No OFD packet to send [02:36:13]OFD Sender: No OFD packet to send [02:36:18]OFD Sender: No OFD packet to send [02:36:23]OFD Sender: No OFD packet to send [02:36:28]OFD Sender: No OFD packet to send [02:36:33]OFD Sender: No OFD packet to send [02:36:38]OFD Sender: No OFD packet to send [02:36:43]OFD Sender: No OFD packet to send [02:36:48]OFD Sender: No OFD packet to send [02:36:53]OFD Sender: No OFD packet to send [02:36:58]OFD Sender: No OFD packet to send [02:37:03]OFD Sender: No OFD packet to send [02:37:08]OFD Sender: No OFD packet to send [02:37:13]OFD Sender: No OFD packet to send [02:37:18]OFD Sender: No OFD packet to send [02:37:23]OFD Sender: No OFD packet to send [02:37:28]OFD Sender: No OFD packet to send [02:37:33]OFD Sender: No OFD packet to send [02:37:38]OFD Sender: No OFD packet to send [02:37:43]OFD Sender: No OFD packet to send [02:37:48]OFD Sender: No OFD packet to send [02:37:53]OFD Sender: No OFD packet to send [02:37:58]OFD Sender: No OFD packet to send [02:38:03]OFD Sender: No OFD packet to send [02:38:08]OFD Sender: No OFD packet to send [02:38:13]OFD Sender: No OFD packet to send [02:38:18]OFD Sender: No OFD packet to send [02:38:23]OFD Sender: No OFD packet to send [02:38:28]OFD Sender: No OFD packet to send [02:38:33]OFD Sender: No OFD packet to send [02:38:38]OFD Sender: No OFD packet to send [02:38:43]OFD Sender: No OFD packet to send [02:38:48]OFD Sender: No OFD packet to send [02:38:53]OFD Sender: No OFD packet to send [02:38:58]OFD Sender: No OFD packet to send [02:39:03]OFD Sender: No OFD packet to send [02:39:08]OFD Sender: No OFD packet to send [02:39:13]OFD Sender: No OFD packet to send [02:39:18]OFD Sender: No OFD packet to send [02:39:23]OFD Sender: No OFD packet to send [02:39:28]OFD Sender: No OFD packet to send [02:39:33]OFD Sender: No OFD packet to send [02:39:38]OFD Sender: No OFD packet to send [02:39:43]OFD Sender: No OFD packet to send [02:39:48]OFD Sender: No OFD packet to send [02:39:53]OFD Sender: No OFD packet to send [02:39:58]OFD Sender: No OFD packet to send [02:40:03]OFD Sender: No OFD packet to send [02:40:08]OFD Sender: No OFD packet to send [02:40:13]OFD Sender: No OFD packet to send [02:40:18]OFD Sender: No OFD packet to send [02:40:23]OFD Sender: No OFD packet to send [02:40:28]OFD Sender: No OFD packet to send [02:40:33]OFD Sender: No OFD packet to send [02:40:38]OFD Sender: No OFD packet to send [02:40:43]OFD Sender: No OFD packet to send [02:40:48]OFD Sender: No OFD packet to send [02:40:53]OFD Sender: No OFD packet to send [02:40:58]OFD Sender: No OFD packet to send [02:41:03]OFD Sender: No OFD packet to send [02:41:08]OFD Sender: No OFD packet to send [02:41:13]OFD Sender: No OFD packet to send [02:41:18]OFD Sender: No OFD packet to send [02:41:23]OFD Sender: No OFD packet to send [02:41:28]OFD Sender: No OFD packet to send [02:41:33]OFD Sender: No OFD packet to send [02:41:38]OFD Sender: No OFD packet to send [02:41:43]OFD Sender: No OFD packet to send [02:41:48]OFD Sender: No OFD packet to send [02:41:53]OFD Sender: No OFD packet to send [02:41:58]OFD Sender: No OFD packet to send [02:42:03]OFD Sender: No OFD packet to send [02:42:08]OFD Sender: No OFD packet to send [02:42:13]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:26]accept exits with 9 [02:46:26]New connection [02:46:26]New thread 3067174244 created [02:46:26]Thread 3067030884 joined [02:46:26]Waiting for new connection... [02:46:26] Sock 9.Parse request [02:46:26]Sock 9.Check first char [02:46:26]Sock 9.First char is OK [02:46:26]request: POST /json_proto HTTP/1.0 [02:46:26]Method: POST [02:46:26]URL: /json_proto [02:46:26]Method is POST - this is cgi request [02:46:26]url: /json_proto [02:46:26]query_string will be loaded in cgi processing [02:46:26]execute_cgi json_proto POST (null) [02:46:26]execute_cgi path=json_proto method=POST [02:46:26]POST find Content-Length [02:46:26]Host: 172.17.62.5:8080 [02:46:26]Content-Length: 809 [02:46:26]Content-Type: application/json [02:46:26] [02:46:26]POST finish read [02:46:26]Found Content-Length = 809 [02:46:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191541", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 15.300, "sum" : 500.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:46:26]execute_script... [02:46: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)191541", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 15.300, "sum" : 500.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:46:26]POST & json_proto [02:46:26]process_json_proto [02:46:26]json parsed OK: [02:46:26]protocol is kg_v1.0 [02:46:26]action value=close_receipt [02:46:26]process_action close_receipt [02:46:26]cmd_close_receipt [02:46:26]MH_GetDate [02:46:26]Write to MH i2c: F0 00 00 EF 02 E0 [02:46:26]Write i2c OK [02:46:26]MH_I2C_Read... [02:46:26]Read from MH i2c: F0 [02:46:26]MH_I2C_Read... [02:46:26]Read from MH i2c: F0 09 00 [02:46:26]MH_I2C_Read... [02:46:26]Read from MH i2c: F0 09 00 EF 02 00 83 CF 25 66 F4 E9 65 64 6C [02:46:26]GetLastDocTimeStamp 1713751949 [02:46:26]current date 1713753987 [02:46:26]FM_GetShiftState [02:46:26]SAM_PROTO_GetShiftState [02:46:26]wFMCommunicate request_size=4 [02:46:26]MH_SAM_APDU [02:46:26]CAPDU: 80 13 01 00 [02:46:26]Write to MH i2c: E2 08 00 F0 02 80 13 01 00 00 00 00 00 6F [02:46:26]Write i2c OK [02:46:26]MH_I2C_Read... [02:46:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:46:26]Read from MH i2c: E2 [02:46:26]MH_I2C_Read... [02:46:26]Read from MH i2c: E2 0E 00 [02:46:26]MH_I2C_Read... [02:46:26]Read from MH i2c: E2 0E 00 F0 02 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 96 [02:46:26]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [02:46:26]wFMCommunicate OK [02:46:26]SAM_PROTO_GetShiftState done [02:46:26]FM_GetShiftState done [02:46:26]opened in 1713745124 [02:46:26]opened+sec_in_day 1713831524 [02:46:26]quantity*price = 50031 [02:46:26]sum+1 = 50032 [02:46:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.31 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 0.00 Безнал.: 500.31 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 12 22.04.2024 02:46 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 76993 ФПД: 127715483248299 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T024627&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76993&fm=127715483248299&tin=02508201610067®Number=0000000000091573&sum=50031 [02:46:27]StoreToDocumentArchive [02:46:27]shift 373 fd 76993 [02:46:27]save to /storage/0373/doc_00076993 [02:46:27]save last doc name /storage/0373/doc_00076993 to /storage/kkm_last_doc_name [02:46:27]save OK [02:46:27]Clear old archive folders... [02:46:27]ProcessDocumentItem done err = 0, tmpTLVsize=250 [02:46:27]tlvbuf is 0176AEC0 [02:46:27]SAM_PROTO_ClearQueue [02:46:27]wFMCommunicate request_size=4 [02:46:27]MH_SAM_APDU [02:46:27]CAPDU: 80 09 00 00 [02:46:27]Write to MH i2c: E2 08 00 FD 02 80 09 00 00 00 00 00 00 71 [02:46:27]Write i2c OK [02:46:27]MH_I2C_Read... [02:46:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:46:27]Read from MH i2c: E2 [02:46:27]MH_I2C_Read... [02:46:27]Read from MH i2c: E2 03 00 [02:46:27]MH_I2C_Read... [02:46:27]Read from MH i2c: E2 03 00 FD 02 00 90 00 73 [02:46:27]RAPDU: 90 00 [02:46:27]wFMCommunicate OK [02:46:27]SAM_PROTO_ClearQueue done [02:46:27]KKMCreateOFDPacket [02:46:27]OFDProtocolAddRootSTLVToBuf [02:46:27]FM_MakeSignedData [02:46:27]FM_MakeSignedData [02:46:27]SAM_PROTO_SignData [02:46:27]wFMCommunicate request_size=4 [02:46:27]MH_SAM_APDU [02:46:27]CAPDU: 80 0D 01 02 [02:46:27]Write to MH i2c: E2 08 00 FE 02 80 0D 01 02 00 00 00 00 79 [02:46:27]Write i2c OK [02:46:27]MH_I2C_Read... [02:46:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:46:27]Read from MH i2c: E2 [02:46:27]MH_I2C_Read... [02:46:27]Read from MH i2c: E2 03 00 [02:46:27]MH_I2C_Read... [02:46:27]Read from MH i2c: E2 03 00 FE 02 00 90 00 74 [02:46:27]RAPDU: 90 00 [02:46:27]wFMCommunicate OK [02:46:27]wFMCommunicate request_size=255 [02:46:27]MH_SAM_APDU [02:46:27]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 6F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 83 CF 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C1 2C 01 00 35 04 06 00 74 28 [02:46:27]Write to MH i2c: E2 02 01 FF 02 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 6F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 83 CF 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C1 2C 01 00 35 04 06 00 74 28 00 00 0B [02:46:27]Write i2c OK [02:46:27]MH_I2C_Read... [02:46:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:46:28]Read from MH i2c: E2 [02:46:28]MH_I2C_Read... [02:46:28]Read from MH i2c: E2 03 00 [02:46:28]MH_I2C_Read... [02:46:28]Read from MH i2c: E2 03 00 FF 02 00 90 00 75 [02:46:28]RAPDU: 90 00 [02:46:28]wFMCommunicate OK [02:46:28]wFMCommunicate request_size=9 [02:46:28]MH_SAM_APDU [02:46:28]CAPDU: 80 0D 02 02 04 14 02 E6 AB [02:46:28]Write to MH i2c: E2 0C 00 00 03 80 0D 02 02 04 00 14 02 E6 AB 00 00 2C [02:46:28]Write i2c OK [02:46:28]MH_I2C_Read... [02:46:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:46:28]Read from MH i2c: E2 [02:46:28]MH_I2C_Read... [02:46:28]Read from MH i2c: E2 03 00 [02:46:28]MH_I2C_Read... [02:46:28]Read from MH i2c: E2 03 00 00 03 00 90 00 77 [02:46:28]RAPDU: 90 00 [02:46:28]wFMCommunicate OK [02:46:28]wFMCommunicate request_size=4 [02:46:28]MH_SAM_APDU [02:46:28]CAPDU: 80 0D 03 02 [02:46:28]Write to MH i2c: E2 08 00 01 03 80 0D 03 02 00 00 00 00 7F [02:46:28]Write i2c OK [02:46:28]MH_I2C_Read... [02:46:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:46:28]Read from MH i2c: E2 [02:46:28]MH_I2C_Read... [02:46:28]Read from MH i2c: E2 0B 00 [02:46:28]MH_I2C_Read... [02:46:28]Read from MH i2c: E2 0B 00 01 03 00 BF 51 7D 1E D5 28 DA 62 90 00 64 [02:46:28]RAPDU: BF 51 7D 1E D5 28 DA 62 90 00 [02:46:28]wFMCommunicate OK [02:46:28]SAM_PROTO_SignData done [02:46:28]FM_MakeSignedData done [02:46:28]CreateOFDProtocolMessage [02:46:28]wFMCommunicate request_size=4 [02:46:28]MH_SAM_APDU [02:46:28]CAPDU: 80 11 00 00 [02:46:28]Write to MH i2c: E2 08 00 02 03 80 11 00 00 00 00 00 00 7F [02:46:28]Write i2c OK [02:46:28]MH_I2C_Read... [02:46:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:46:28]Read from MH i2c: E2 [02:46:28]MH_I2C_Read... [02:46:28]Read from MH i2c: E2 17 00 [02:46:28]MH_I2C_Read... [02:46:28]Read from MH i2c: E2 17 00 02 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 D2 [02:46:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [02:46:28]wFMCommunicate OK [02:46:28]CreateOFDProtocolMessage done [02:46:28]OFDSenderStorePacket 76993 [02:46:28]StoreOFDPacket docnum=76993 [02:46:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 A2 CA 06 01 01 E9 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 6F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 83 CF 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C1 2C 01 00 35 04 06 00 74 28 14 02 E6 AB BF 51 7D 1E D5 28 DA 62 [02:46:28]CheckFolder [02:46:28]dirname=/storage/ofd_packets [02:46:28]CheckFolder done [02:46:28]ProducePacketName [02:46:28]name=ofd_packets/00076993 [02:46:28]NVStorageSaveData ofd_packets/00076993 [02:46:28]File name is /storage/ofd_packets/00076993 [02:46:28]Write 300 bytes [02:46:28]NVStorageSaveData done [02:46:28]OFDSenderStorePacket done [02:46:28]KKMCreateOFDPacket done [02:46:28]NVStorageSaveData kkm_last_timestamp [02:46:28]File name is /storage/kkm_last_timestamp [02:46:28]Write 4 bytes [02:46:28]NVStorageSaveData done [02:46:28]ExternCall_PrintAddStr [02:46:28]wPrintStart [02:46:28]Write to MH i2c: 01 00 00 03 03 06 [02:46:28]Write i2c OK [02:46:28]MH_I2C_Read... [02:46:28]Read from MH i2c: 01 [02:46:28]MH_I2C_Read... [02:46:28]Read from MH i2c: 01 07 00 [02:46:28]MH_I2C_Read... [02:46:28]Read from MH i2c: 01 07 00 03 03 00 00 00 00 00 FF 0F 1B [02:46:28]RasterBufferAndPrint [02:46:28]line Счет N : (1)191541 [02:46:28]line ИНН: 02508201610067 [02:46:28]line Контрольно-Кассовый Чек [02:46:28]line ПРОДАЖА [02:46:28]line ТРК (МРК, ГНК) : 71 [02:46:28]line Товар: 2711190000 [02:46:28]line ГАЗ-К-5 [02:46:28]line 15.300 * 32.70 [02:46:28]line = 500.31 [02:46:28]line НДС 12% НСП 1% [02:46:28]line > о реализуемом товаре [02:46:28]line ИТОГО: 500.31 [02:46:28]line НСП 1% : 4.43 [02:46:28]line НДС 12% : 53.13 [02:46:28]line Наличными: 0.00 [02:46:28]line Безнал.: 500.31 [02:46:28]line Место: АЗС № 106 "Партнер Нефть" [02:46:28]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [02:46:28]line СНО: Общий режим [02:46:28]line Чек 12 22.04.2024 02:46 [02:46:28]line Смена: 373 ФФД: 1.0 [02:46:28]line ЗНМ: 0300000141 [02:46:28]line РНМ: 0000000000091573 [02:46:28]line Версия ККМ: 001 [02:46:28]line Платежная система: О! деньги [02:46:28]line ФМ: 0000000000874652 [02:46:28]line ФД: 76993 [02:46:28]line ФПД: 127715483248299 [02:46:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T024627&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76993&fm=127715483248299&tin=02508201610067®Number=0000000000091573&sum=50031 [02:46:28]written 0, free lines is 4095 [02:46:28]OFD Sender: Processing packet 76993 [packets to send 129, broken 128] [02:46:28]ProducePacketName [02:46:28]name=ofd_packets/00076993 [02:46:28]OFD Sender: To server: pG, [02:46:28]CommunicateWithHost lk.salyk.kg:30040 [02:46:28]ConnectInit lk.salyk.kg [02:46:28]Connected sock=7 [02:46:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 A2 CA 06 01 01 E9 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 6F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 83 CF 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C1 2C 01 00 35 04 06 00 74 28 14 02 E6 AB BF 51 7D 1E D5 28 DA 62 [02:46:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 8E FA 47 00 9D 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 34 36 35 32 10 04 04 00 C1 2C 01 00 F4 03 04 00 07 77 25 66 B6 04 01 00 00 CE 84 B2 DE 9B F6 E1 51 [02:46:28]CommunicateWithHost err = 0 [02:46:28]CheckOFDResponse [02:46:28]1017 (14) - 77093643461234 [02:46:28]1041 (16) - 0000000000874652 [02:46:28]1040 (4) - 76993 [02:46:28]1012 (4) - 21.04.2024 20:28 [02:46:28]1206 (1) - 0 [02:46:28]OFD Sender: Remove packet 76993 [02:46:28]ProducePacketName [02:46:28]name=ofd_packets/00076993 [02:46:28]NVStorageDeleteData [02:46:28]Write to MH i2c: 01 00 00 2C 03 2F [02:46:28]Write i2c OK [02:46:28]MH_I2C_Read... [02:46:28]Read from MH i2c: 01 [02:46:28]MH_I2C_Read... [02:46:28]Read from MH i2c: 01 07 00 [02:46:28]MH_I2C_Read... [02:46:28]Read from MH i2c: 01 07 00 2C 03 00 00 00 00 00 09 0D 4C [02:46:28]RasterBufferAndPrint [02:46:28]line [02:46:28]line [02:46:28]line [02:46:28]line [02:46:28]line [02:46:28]written 0, free lines is 3343 [02:46:28]MH_Cut [02:46:28]Write to MH i2c: D1 01 00 33 03 01 08 [02:46:28]Write i2c OK [02:46:28]MH_I2C_Read... [02:46:28]Read from MH i2c: D1 [02:46:28]MH_I2C_Read... [02:46:28]Read from MH i2c: D1 01 00 [02:46:28]MH_I2C_Read... [02:46:28]Read from MH i2c: D1 01 00 33 03 00 07 [02:46:28]Write to MH i2c: 01 00 00 34 03 37 [02:46:28]Write i2c OK [02:46:28]MH_I2C_Read... [02:46:29]OFD Sender: No OFD packet to send [02:46:29]*** Cut start [02:46:29]*** Partial cut [02:46:29]*** CUTSNS_PIN = 1 [02:46:29]*** CUTSNS_PIN = 0 [02:46:29]*** Brake cut motor [02:46:29]Read from MH i2c: 01 [02:46:30]MH_I2C_Read... [02:46:30]*** Stop cut motor [02:46:30]*** Cut end [02:46:30]Read from MH i2c: 01 07 00 [02:46:30]MH_I2C_Read... [02:46:30]Read from MH i2c: 01 07 00 34 03 00 00 00 00 00 FF 0F 4C [02:46:30]process_action close_receipt done [02:46:30]requested_data is exist [02:46:30]produce_requested_data [02:46:30]requested_item fm.sn is exist - process it [02:46:30]wFMCommunicate request_size=4 [02:46:30]MH_SAM_APDU [02:46:30]CAPDU: 80 11 00 00 [02:46:30]Write to MH i2c: E2 08 00 35 03 80 11 00 00 00 00 00 00 B2 [02:46:30]Write i2c OK [02:46:30]MH_I2C_Read... [02:46:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:46:30]Read from MH i2c: E2 [02:46:30]MH_I2C_Read... [02:46:30]Read from MH i2c: E2 17 00 [02:46:30]MH_I2C_Read... [02:46:30]Read from MH i2c: E2 17 00 35 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 05 [02:46:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [02:46:30]wFMCommunicate OK [02:46:30]requested_item fd.num is exist - process it [02:46:30]SAM_PROTO_GetFieldsCounters [02:46:30]wFMCommunicate request_size=4 [02:46:30]MH_SAM_APDU [02:46:30]CAPDU: 80 13 00 00 [02:46:30]Write to MH i2c: E2 08 00 36 03 80 13 00 00 00 00 00 00 B5 [02:46:30]Write i2c OK [02:46:30]MH_I2C_Read... [02:46:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:46:30]Read from MH i2c: E2 [02:46:30]MH_I2C_Read... [02:46:30]Read from MH i2c: E2 62 00 [02:46:30]MH_I2C_Read... [02:46:30]Read from MH i2c: E2 62 00 36 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C1 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [02:46: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C1 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:46:30]wFMCommunicate OK [02:46:30]SAM_PROTO_GetFieldsCounters done [02:46:30]requested_item shift.num is exist - process it [02:46:30]requested_item shift.opened is exist - process it [02:46:30]req_shift_opened [02:46:30]FM_GetShiftState [02:46:30]SAM_PROTO_GetShiftState [02:46:30]wFMCommunicate request_size=4 [02:46:30]MH_SAM_APDU [02:46:30]CAPDU: 80 13 01 00 [02:46:30]Write to MH i2c: E2 08 00 37 03 80 13 01 00 00 00 00 00 B7 [02:46:30]Write i2c OK [02:46:30]MH_I2C_Read... [02:46:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:46:30]Read from MH i2c: E2 [02:46:30]MH_I2C_Read... [02:46:30]Read from MH i2c: E2 0E 00 [02:46:30]MH_I2C_Read... [02:46:30]Read from MH i2c: E2 0E 00 37 03 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 DE [02:46:30]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [02:46:30]wFMCommunicate OK [02:46:30]SAM_PROTO_GetShiftState done [02:46:30]FM_GetShiftState done [02:46:30]req_shift_opened done [02:46:30]requested_item shift.open_date is exist - process it [02:46:30]req_shift_open_date [02:46:30]req_shift_open_date done [02:46:30]produce_requested_data done [02:46:30]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76993,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [02:46:30]process_action_free close_receipt [02:46:30]json_value_free [02:46:30]json_value_free done [02:46:30]process_json_proto returns [02:46:30]Send response to host [02:46:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76993,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [02:46:30]free response buf [02:46:30]execute_script done [02:46:30]execute_script returns [02:46:30]free content buf [02:46:30]Sock 9.Close socket [02:46:30]Sock 9.Thread stoped [02:46:34]OFD Sender: No OFD packet to send [02:46:39]OFD Sender: No OFD packet to send [02:46:44]OFD Sender: No OFD packet to send [02:46:49]OFD Sender: No OFD packet to send [02:46:54]OFD Sender: No OFD packet to send [02:46:59]OFD Sender: No OFD packet to send [02:47:04]OFD Sender: No OFD packet to send [02:47:09]OFD Sender: No OFD packet to send [02:47:14]OFD Sender: No OFD packet to send [02:47:19]OFD Sender: No OFD packet to send [02:47:24]OFD Sender: No OFD packet to send [02:47:29]OFD Sender: No OFD packet to send [02:47:34]OFD Sender: No OFD packet to send [02:47:39]OFD Sender: No OFD packet to send [02:47:44]OFD Sender: No OFD packet to send [02:47:49]OFD Sender: No OFD packet to send [02:47:54]OFD Sender: No OFD packet to send [02:47:59]OFD Sender: No OFD packet to send [02:48:04]OFD Sender: No OFD packet to send [02:48:09]OFD Sender: No OFD packet to send [02:48:14]OFD Sender: No OFD packet to send [02:48:19]OFD Sender: No OFD packet to send [02:48:24]OFD Sender: No OFD packet to send [02:48:29]OFD Sender: No OFD packet to send [02:48:34]OFD Sender: No OFD packet to send [02:48:39]OFD Sender: No OFD packet to send [02:48:44]OFD Sender: No OFD packet to send [02:48:49]OFD Sender: No OFD packet to send [02:48:54]OFD Sender: No OFD packet to send [02:48:59]OFD Sender: No OFD packet to send [02:49:04]OFD Sender: No OFD packet to send [02:49:09]OFD Sender: No OFD packet to send [02:49:14]OFD Sender: No OFD packet to send [02:49:19]OFD Sender: No OFD packet to send [02:49:24]OFD Sender: No OFD packet to send [02:49:29]OFD Sender: No OFD packet to send [02:49:34]OFD Sender: No OFD packet to send [02:49:39]OFD Sender: No OFD packet to send [02:49:44]OFD Sender: No OFD packet to send [02:49:49]OFD Sender: No OFD packet to send [02:49:54]OFD Sender: No OFD packet to send [02:49:59]OFD Sender: No OFD packet to send [02:50:04]OFD Sender: No OFD packet to send [02:50:09]OFD Sender: No OFD packet to send [02:50:14]OFD Sender: No OFD packet to send [02:50:19]OFD Sender: No OFD packet to send [02:50:24]OFD Sender: No OFD packet to send [02:50:29]OFD Sender: No OFD packet to send [02:50:34]OFD Sender: No OFD packet to send [02:50:39]OFD Sender: No OFD packet to send [02:50:44]OFD Sender: No OFD packet to send [02:50:49]OFD Sender: No OFD packet to send [02:50:54]OFD Sender: No OFD packet to send [02:50:59]OFD Sender: No OFD packet to send [02:51:04]OFD Sender: No OFD packet to send [02:51:09]OFD Sender: No OFD packet to send [02:51:14]OFD Sender: No OFD packet to send [02:51:19]OFD Sender: No OFD packet to send [02:51:24]OFD Sender: No OFD packet to send [02:51:29]OFD Sender: No OFD packet to send [02:51:34]OFD Sender: No OFD packet to send [02:51:39]OFD Sender: No OFD packet to send [02:51:44]OFD Sender: No OFD packet to send [02:51:49]OFD Sender: No OFD packet to send [02:51:54]OFD Sender: No OFD packet to send [02:51:59]OFD Sender: No OFD packet to send [02:52:04]OFD Sender: No OFD packet to send [02:52:09]OFD Sender: No OFD packet to send [02:52:14]OFD Sender: No OFD packet to send [02:52:19]OFD Sender: No OFD packet to send [02:52:24]OFD Sender: No OFD packet to send [02:52:29]OFD Sender: No OFD packet to send [02:52:34]OFD Sender: No OFD packet to send [02:52:39]OFD Sender: No OFD packet to send [02:52:44]OFD Sender: No OFD packet to send [02:52:49]OFD Sender: No OFD packet to send [02:52:54]OFD Sender: No OFD packet to send [02:52:59]OFD Sender: No OFD packet to send [02:53:04]OFD Sender: No OFD packet to send [02:53:09]OFD Sender: No OFD packet to send [02:53:14]OFD Sender: No OFD packet to send [02:53:19]OFD Sender: No OFD packet to send [02:53:24]OFD Sender: No OFD packet to send [02:53:29]OFD Sender: No OFD packet to send [02:53:34]OFD Sender: No OFD packet to send [02:53:39]OFD Sender: No OFD packet to send [02:53:44]OFD Sender: No OFD packet to send [02:53:49]OFD Sender: No OFD packet to send [02:53:54]OFD Sender: No OFD packet to send [02:53:59]OFD Sender: No OFD packet to send [02:54:04]OFD Sender: No OFD packet to send [02:54:09]OFD Sender: No OFD packet to send [02:54:14]OFD Sender: No OFD packet to send [02:54:19]OFD Sender: No OFD packet to send [02:54:24]OFD Sender: No OFD packet to send [02:54:29]OFD Sender: No OFD packet to send [02:54:34]OFD Sender: No OFD packet to send [02:54:39]OFD Sender: No OFD packet to send [02:54:44]OFD Sender: No OFD packet to send [02:54:49]OFD Sender: No OFD packet to send [02:54:54]OFD Sender: No OFD packet to send [02:54:59]OFD Sender: No OFD packet to send [02:55:04]OFD Sender: No OFD packet to send [02:55:09]OFD Sender: No OFD packet to send [02:55:14]OFD Sender: No OFD packet to send [02:55:19]OFD Sender: No OFD packet to send [02:55:24]OFD Sender: No OFD packet to send [02:55:29]OFD Sender: No OFD packet to send [02:55:34]OFD Sender: No OFD packet to send [02:55:39]OFD Sender: No OFD packet to send [02:55:44]OFD Sender: No OFD packet to send [02:55:49]OFD Sender: No OFD packet to send [02:55:54]OFD Sender: No OFD packet to send [02:55:59]OFD Sender: No OFD packet to send [02:56:04]OFD Sender: No OFD packet to send [02:56:09]OFD Sender: No OFD packet to send [02:56:14]OFD Sender: No OFD packet to send [02:56:19]OFD Sender: No OFD packet to send [02:56:24]OFD Sender: No OFD packet to send [02:56:29]OFD Sender: No OFD packet to send [02:56:34]OFD Sender: No OFD packet to send [02:56:39]OFD Sender: No OFD packet to send [02:56:44]OFD Sender: No OFD packet to send [02:56:49]OFD Sender: No OFD packet to send [02:56:54]OFD Sender: No OFD packet to send [02:56:59]OFD Sender: No OFD packet to send [02:57:04]OFD Sender: No OFD packet to send [02:57:09]OFD Sender: No OFD packet to send [02:57:14]OFD Sender: No OFD packet to send [02:57:19]OFD Sender: No OFD packet to send [02:57:24]OFD Sender: No OFD packet to send [02:57:29]OFD Sender: No OFD packet to send [02:57:34]OFD Sender: No OFD packet to send [02:57:39]OFD Sender: No OFD packet to send [02:57:44]OFD Sender: No OFD packet to send [02:57:49]OFD Sender: No OFD packet to send [02:57:54]OFD Sender: No OFD packet to send [02:57:59]OFD Sender: No OFD packet to send [02:58:04]OFD Sender: No OFD packet to send [02:58:09]OFD Sender: No OFD packet to send [02:58:14]OFD Sender: No OFD packet to send [02:58:19]OFD Sender: No OFD packet to send [02:58:24]OFD Sender: No OFD packet to send [02:58:29]OFD Sender: No OFD packet to send [02:58:34]OFD Sender: No OFD packet to send [02:58:39]OFD Sender: No OFD packet to send [02:58:44]OFD Sender: No OFD packet to send [02:58:49]OFD Sender: No OFD packet to send [02:58:54]OFD Sender: No OFD packet to send [02:59:00]OFD Sender: No OFD packet to send [02:59:05]OFD Sender: No OFD packet to send [02:59:10]OFD Sender: No OFD packet to send [02:59:15]OFD Sender: No OFD packet to send [02:59:20]OFD Sender: No OFD packet to send [02:59:25]OFD Sender: No OFD packet to send [02:59:30]OFD Sender: No OFD packet to send [02:59:35]OFD Sender: No OFD packet to send [02:59:40]OFD Sender: No OFD packet to send [02:59:45]OFD Sender: No OFD packet to send [02:59:50]OFD Sender: No OFD packet to send [02:59:55]OFD Sender: No OFD packet to send [03:00:00]OFD Sender: No OFD packet to send [03:00:05]OFD Sender: No OFD packet to send [03:00:10]OFD Sender: No OFD packet to send [03:00:15]OFD Sender: No OFD packet to send [03:00:20]OFD Sender: No OFD packet to send [03:00:25]OFD Sender: No OFD packet to send [03:00:30]OFD Sender: No OFD packet to send [03:00:35]OFD Sender: No OFD packet to send [03:00:40]OFD Sender: No OFD packet to send [03:00:45]OFD Sender: No OFD packet to send [03:00:50]OFD Sender: No OFD packet to send [03:00:55]OFD Sender: No OFD packet to send [03:01:00]OFD Sender: No OFD packet to send [03:01:05]OFD Sender: No OFD packet to send [03:01:10]OFD Sender: No OFD packet to send [03:01:15]OFD Sender: No OFD packet to send [03:01:20]OFD Sender: No OFD packet to send [03:01:25]OFD Sender: No OFD packet to send [03:01:30]OFD Sender: No OFD packet to send [03:01:35]OFD Sender: No OFD packet to send [03:01:40]OFD Sender: No OFD packet to send [03:01:45]OFD Sender: No OFD packet to send [03:01:50]OFD Sender: No OFD packet to send [03:01:55]OFD Sender: No OFD packet to send [03:02:00]OFD Sender: No OFD packet to send [03:02:05]OFD Sender: No OFD packet to send [03:02:10]OFD Sender: No OFD packet to send [03:02:15]OFD Sender: No OFD packet to send [03:02:20]OFD Sender: No OFD packet to send [03:02:25]OFD Sender: No OFD packet to send [03:02:30]OFD Sender: No OFD packet to send [03:02:35]OFD Sender: No OFD packet to send [03:02:40]OFD Sender: No OFD packet to send [03:02:45]OFD Sender: No OFD packet to send [03:02:50]OFD Sender: No OFD packet to send [03:02:55]OFD Sender: No OFD packet to send [03:03:00]OFD Sender: No OFD packet to send [03:03:05]OFD Sender: No OFD packet to send [03:03:10]OFD Sender: No OFD packet to send [03:03:15]OFD Sender: No OFD packet to send [03:03:20]OFD Sender: No OFD packet to send [03:03:25]OFD Sender: No OFD packet to send [03:03:30]OFD Sender: No OFD packet to send [03:03:35]OFD Sender: No OFD packet to send [03:03:40]OFD Sender: No OFD packet to send [03:03:45]OFD Sender: No OFD packet to send [03:03:50]OFD Sender: No OFD packet to send [03:03:55]OFD Sender: No OFD packet to send [03:04:00]OFD Sender: No OFD packet to send [03:04:05]OFD Sender: No OFD packet to send [03:04:10]OFD Sender: No OFD packet to send [03:04:15]OFD Sender: No OFD packet to send [03:04:20]OFD Sender: No OFD packet to send [03:04:25]OFD Sender: No OFD packet to send [03:04:30]OFD Sender: No OFD packet to send [03:04:35]OFD Sender: No OFD packet to send [03:04:40]OFD Sender: No OFD packet to send [03:04:45]OFD Sender: No OFD packet to send [03:04:50]OFD Sender: No OFD packet to send [03:04:55]OFD Sender: No OFD packet to send [03:05:00]OFD Sender: No OFD packet to send [03:05:05]OFD Sender: No OFD packet to send [03:05:10]OFD Sender: No OFD packet to send [03:05:15]OFD Sender: No OFD packet to send [03:05:20]OFD Sender: No OFD packet to send [03:05:25]OFD Sender: No OFD packet to send [03:05:30]OFD Sender: No OFD packet to send [03:05:35]OFD Sender: No OFD packet to send [03:05:40]OFD Sender: No OFD packet to send [03:05:45]OFD Sender: No OFD packet to send [03:05:50]OFD Sender: No OFD packet to send [03:05:55]OFD Sender: No OFD packet to send [03:06:00]OFD Sender: No OFD packet to send [03:06:05]OFD Sender: No OFD packet to send [03:06:10]OFD Sender: No OFD packet to send [03:06:15]OFD Sender: No OFD packet to send [03:06:20]OFD Sender: No OFD packet to send [03:06:25]OFD Sender: No OFD packet to send [03:06:30]OFD Sender: No OFD packet to send [03:06:35]OFD Sender: No OFD packet to send [03:06:40]OFD Sender: No OFD packet to send [03:06:45]OFD Sender: No OFD packet to send [03:06:50]OFD Sender: No OFD packet to send [03:06:55]OFD Sender: No OFD packet to send [03:07:00]OFD Sender: No OFD packet to send [03:07:05]OFD Sender: No OFD packet to send [03:07:10]OFD Sender: No OFD packet to send [03:07:15]OFD Sender: No OFD packet to send [03:07:20]OFD Sender: No OFD packet to send [03:07:25]OFD Sender: No OFD packet to send [03:07:30]OFD Sender: No OFD packet to send [03:07:35]OFD Sender: No OFD packet to send [03:07:40]OFD Sender: No OFD packet to send [03:07:45]OFD Sender: No OFD packet to send [03:07:50]OFD Sender: No OFD packet to send [03:07:55]OFD Sender: No OFD packet to send [03:08:00]OFD Sender: No OFD packet to send [03:08:05]OFD Sender: No OFD packet to send [03:08:10]OFD Sender: No OFD packet to send [03:08:15]OFD Sender: No OFD packet to send [03:08:20]OFD Sender: No OFD packet to send [03:08:25]OFD Sender: No OFD packet to send [03:08:30]OFD Sender: No OFD packet to send [03:08:35]OFD Sender: No OFD packet to send [03:08:40]OFD Sender: No OFD packet to send [03:08:45]OFD Sender: No OFD packet to send [03:08:50]OFD Sender: No OFD packet to send [03:08:55]OFD Sender: No OFD packet to send [03:09:00]OFD Sender: No OFD packet to send [03:09:05]OFD Sender: No OFD packet to send [03:09:10]OFD Sender: No OFD packet to send [03:09:15]OFD Sender: No OFD packet to send [03:09:20]OFD Sender: No OFD packet to send [03:09:25]OFD Sender: No OFD packet to send [03:09:30]OFD Sender: No OFD packet to send [03:09:35]OFD Sender: No OFD packet to send [03:09:40]OFD Sender: No OFD packet to send [03:09:45]OFD Sender: No OFD packet to send [03:09:50]OFD Sender: No OFD packet to send [03:09:55]OFD Sender: No OFD packet to send [03:10:00]OFD Sender: No OFD packet to send [03:10:05]OFD Sender: No OFD packet to send [03:10:10]OFD Sender: No OFD packet to send [03:10:15]OFD Sender: No OFD packet to send [03:10:20]OFD Sender: No OFD packet to send [03:10:25]OFD Sender: No OFD packet to send [03:10:30]OFD Sender: No OFD packet to send [03:10:35]OFD Sender: No OFD packet to send [03:10:40]OFD Sender: No OFD packet to send [03:10:45]OFD Sender: No OFD packet to send [03:10:50]OFD Sender: No OFD packet to send [03:10:55]OFD Sender: No OFD packet to send [03:11:00]OFD Sender: No OFD packet to send [03:11:05]OFD Sender: No OFD packet to send [03:11:10]OFD Sender: No OFD packet to send [03:11:15]OFD Sender: No OFD packet to send [03:11:20]OFD Sender: No OFD packet to send [03:11:25]OFD Sender: No OFD packet to send [03:11:30]OFD Sender: No OFD packet to send [03:11:35]OFD Sender: No OFD packet to send [03:11:40]OFD Sender: No OFD packet to send [03:11:45]OFD Sender: No OFD packet to send [03:11:50]OFD Sender: No OFD packet to send [03:11:55]OFD Sender: No OFD packet to send [03:12:00]OFD Sender: No OFD packet to send [03:12:05]OFD Sender: No OFD packet to send [03:12:10]OFD Sender: No OFD packet to send [03:12:15]OFD Sender: No OFD packet to send [03:12:20]OFD Sender: No OFD packet to send [03:12:25]OFD Sender: No OFD packet to send [03:12:30]OFD Sender: No OFD packet to send [03:12:35]OFD Sender: No OFD packet to send [03:12:40]OFD Sender: No OFD packet to send [03:12:45]OFD Sender: No OFD packet to send [03:12:50]OFD Sender: No OFD packet to send [03:12:55]OFD Sender: No OFD packet to send [03:13:00]OFD Sender: No OFD packet to send [03:13:06]OFD Sender: No OFD packet to send [03:13:11]OFD Sender: No OFD packet to send [03:13:16]OFD Sender: No OFD packet to send [03:13:21]OFD Sender: No OFD packet to send [03:13:26]OFD Sender: No OFD packet to send [03:13:31]OFD Sender: No OFD packet to send [03:13:36]OFD Sender: No OFD packet to send [03:13:41]OFD Sender: No OFD packet to send [03:13:46]OFD Sender: No OFD packet to send [03:13:51]OFD Sender: No OFD packet to send [03:13:56]OFD Sender: No OFD packet to send [03:14:01]OFD Sender: No OFD packet to send [03:14:06]OFD Sender: No OFD packet to send [03:14:11]OFD Sender: No OFD packet to send [03:14:16]OFD Sender: No OFD packet to send [03:14:21]OFD Sender: No OFD packet to send [03:14:26]OFD Sender: No OFD packet to send [03:14:31]OFD Sender: No OFD packet to send [03:14:36]OFD Sender: No OFD packet to send [03:14:41]OFD Sender: No OFD packet to send [03:14:46]OFD Sender: No OFD packet to send [03:14:51]OFD Sender: No OFD packet to send [03:14:56]OFD Sender: No OFD packet to send [03:15:01]OFD Sender: No OFD packet to send [03:15:06]OFD Sender: No OFD packet to send [03:15:11]OFD Sender: No OFD packet to send [03:15:16]OFD Sender: No OFD packet to send [03:15:21]OFD Sender: No OFD packet to send [03:15:26]OFD Sender: No OFD packet to send [03:15:31]OFD Sender: No OFD packet to send [03:15:36]OFD Sender: No OFD packet to send [03:15:41]OFD Sender: No OFD packet to send [03:15:46]OFD Sender: No OFD packet to send [03:15:51]OFD Sender: No OFD packet to send [03:15:56]OFD Sender: No OFD packet to send [03:16:01]OFD Sender: No OFD packet to send [03:16:06]OFD Sender: No OFD packet to send [03:16:11]OFD Sender: No OFD packet to send [03:16:16]OFD Sender: No OFD packet to send [03:16:21]OFD Sender: No OFD packet to send [03:16:26]OFD Sender: No OFD packet to send [03:16:31]OFD Sender: No OFD packet to send [03:16:36]OFD Sender: No OFD packet to send [03:16:41]OFD Sender: No OFD packet to send [03:16:46]OFD Sender: No OFD packet to send [03:16:51]OFD Sender: No OFD packet to send [03:16:56]OFD Sender: No OFD packet to send [03:17:01]OFD Sender: No OFD packet to send [03:17:06]OFD Sender: No OFD packet to send [03:17:11]OFD Sender: No OFD packet to send [03:17:16]OFD Sender: No OFD packet to send [03:17:21]OFD Sender: No OFD packet to send